Skip to content

Commit d7ecdc3

Browse files
author
SDKAuto
committed
CodeGen from PR 11689 in Azure/azure-rest-api-specs
Merge 9f92c339bd0b47f0b7a293359fcacae05ef7fe62 into 150da63a09d1cb156cb0b6d8fe575cb9ccf7b6de
1 parent fd7f230 commit d7ecdc3

File tree

13 files changed

+179
-48
lines changed

13 files changed

+179
-48
lines changed

sdk/netapp/mgmt-v2020_02_01/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.3.2</version>
15-
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-netapp</artifactId>
1818
<version>1.0.0-beta</version>

sdk/netapp/mgmt-v2020_02_01/src/main/java/com/microsoft/azure/management/netapp/v2020_02_01/CapacityPool.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public interface CapacityPool extends HasInner<CapacityPoolInner>, Indexable, Re
5151
/**
5252
* @return the serviceLevel value.
5353
*/
54-
ServiceLevel serviceLevel();
54+
PoolServiceLevel serviceLevel();
5555

5656
/**
5757
* @return the size value.
@@ -118,7 +118,7 @@ interface WithServiceLevel {
118118
* @param serviceLevel The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra'
119119
* @return the next definition stage
120120
*/
121-
WithSize withServiceLevel(ServiceLevel serviceLevel);
121+
WithSize withServiceLevel(PoolServiceLevel serviceLevel);
122122
}
123123

124124
/**
@@ -172,7 +172,7 @@ interface WithServiceLevel {
172172
* @param serviceLevel The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra'
173173
* @return the next update stage
174174
*/
175-
Update withServiceLevel(ServiceLevel serviceLevel);
175+
Update withServiceLevel(PatchServiceLevel serviceLevel);
176176
}
177177

178178
/**

sdk/netapp/mgmt-v2020_02_01/src/main/java/com/microsoft/azure/management/netapp/v2020_02_01/CapacityPoolPatch.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class CapacityPoolPatch extends Resource {
3131
* 'Standard', 'Premium', 'Ultra'.
3232
*/
3333
@JsonProperty(value = "properties.serviceLevel")
34-
private ServiceLevel serviceLevel;
34+
private PatchServiceLevel serviceLevel;
3535

3636
/**
3737
* Get provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be multiply of 4398046511104).
@@ -58,7 +58,7 @@ public CapacityPoolPatch withSize(Long size) {
5858
*
5959
* @return the serviceLevel value
6060
*/
61-
public ServiceLevel serviceLevel() {
61+
public PatchServiceLevel serviceLevel() {
6262
return this.serviceLevel;
6363
}
6464

@@ -68,7 +68,7 @@ public ServiceLevel serviceLevel() {
6868
* @param serviceLevel the serviceLevel value to set
6969
* @return the CapacityPoolPatch object itself.
7070
*/
71-
public CapacityPoolPatch withServiceLevel(ServiceLevel serviceLevel) {
71+
public CapacityPoolPatch withServiceLevel(PatchServiceLevel serviceLevel) {
7272
this.serviceLevel = serviceLevel;
7373
return this;
7474
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.netapp.v2020_02_01;
10+
11+
import java.util.Collection;
12+
import com.fasterxml.jackson.annotation.JsonCreator;
13+
import com.microsoft.rest.ExpandableStringEnum;
14+
15+
/**
16+
* Defines values for PatchServiceLevel.
17+
*/
18+
public final class PatchServiceLevel extends ExpandableStringEnum<PatchServiceLevel> {
19+
/** Static value Standard for PatchServiceLevel. */
20+
public static final PatchServiceLevel STANDARD = fromString("Standard");
21+
22+
/** Static value Premium for PatchServiceLevel. */
23+
public static final PatchServiceLevel PREMIUM = fromString("Premium");
24+
25+
/** Static value Ultra for PatchServiceLevel. */
26+
public static final PatchServiceLevel ULTRA = fromString("Ultra");
27+
28+
/**
29+
* Creates or finds a PatchServiceLevel from its string representation.
30+
* @param name a name to look for
31+
* @return the corresponding PatchServiceLevel
32+
*/
33+
@JsonCreator
34+
public static PatchServiceLevel fromString(String name) {
35+
return fromString(name, PatchServiceLevel.class);
36+
}
37+
38+
/**
39+
* @return known PatchServiceLevel values
40+
*/
41+
public static Collection<PatchServiceLevel> values() {
42+
return values(PatchServiceLevel.class);
43+
}
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.netapp.v2020_02_01;
10+
11+
import java.util.Collection;
12+
import com.fasterxml.jackson.annotation.JsonCreator;
13+
import com.microsoft.rest.ExpandableStringEnum;
14+
15+
/**
16+
* Defines values for PoolServiceLevel.
17+
*/
18+
public final class PoolServiceLevel extends ExpandableStringEnum<PoolServiceLevel> {
19+
/** Static value Standard for PoolServiceLevel. */
20+
public static final PoolServiceLevel STANDARD = fromString("Standard");
21+
22+
/** Static value Premium for PoolServiceLevel. */
23+
public static final PoolServiceLevel PREMIUM = fromString("Premium");
24+
25+
/** Static value Ultra for PoolServiceLevel. */
26+
public static final PoolServiceLevel ULTRA = fromString("Ultra");
27+
28+
/**
29+
* Creates or finds a PoolServiceLevel from its string representation.
30+
* @param name a name to look for
31+
* @return the corresponding PoolServiceLevel
32+
*/
33+
@JsonCreator
34+
public static PoolServiceLevel fromString(String name) {
35+
return fromString(name, PoolServiceLevel.class);
36+
}
37+
38+
/**
39+
* @return known PoolServiceLevel values
40+
*/
41+
public static Collection<PoolServiceLevel> values() {
42+
return values(PoolServiceLevel.class);
43+
}
44+
}

sdk/netapp/mgmt-v2020_02_01/src/main/java/com/microsoft/azure/management/netapp/v2020_02_01/ReplicationObject.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ public class ReplicationObject {
2828
private EndpointType endpointType;
2929

3030
/**
31-
* Schedule. Possible values include: '_10minutely', 'hourly', 'daily',
32-
* 'weekly', 'monthly'.
31+
* Schedule. Possible values include: '_10minutely', 'hourly', 'daily'.
3332
*/
3433
@JsonProperty(value = "replicationSchedule", required = true)
3534
private ReplicationSchedule replicationSchedule;
@@ -87,7 +86,7 @@ public ReplicationObject withEndpointType(EndpointType endpointType) {
8786
}
8887

8988
/**
90-
* Get schedule. Possible values include: '_10minutely', 'hourly', 'daily', 'weekly', 'monthly'.
89+
* Get schedule. Possible values include: '_10minutely', 'hourly', 'daily'.
9190
*
9291
* @return the replicationSchedule value
9392
*/
@@ -96,7 +95,7 @@ public ReplicationSchedule replicationSchedule() {
9695
}
9796

9897
/**
99-
* Set schedule. Possible values include: '_10minutely', 'hourly', 'daily', 'weekly', 'monthly'.
98+
* Set schedule. Possible values include: '_10minutely', 'hourly', 'daily'.
10099
*
101100
* @param replicationSchedule the replicationSchedule value to set
102101
* @return the ReplicationObject object itself.

sdk/netapp/mgmt-v2020_02_01/src/main/java/com/microsoft/azure/management/netapp/v2020_02_01/ReplicationSchedule.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ public final class ReplicationSchedule extends ExpandableStringEnum<ReplicationS
2525
/** Static value daily for ReplicationSchedule. */
2626
public static final ReplicationSchedule DAILY = fromString("daily");
2727

28-
/** Static value weekly for ReplicationSchedule. */
29-
public static final ReplicationSchedule WEEKLY = fromString("weekly");
30-
31-
/** Static value monthly for ReplicationSchedule. */
32-
public static final ReplicationSchedule MONTHLY = fromString("monthly");
33-
3428
/**
3529
* Creates or finds a ReplicationSchedule from its string representation.
3630
* @param name a name to look for

sdk/netapp/mgmt-v2020_02_01/src/main/java/com/microsoft/azure/management/netapp/v2020_02_01/Volume.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public interface Volume extends HasInner<VolumeInner>, Indexable, Refreshable<Vo
8787
/**
8888
* @return the serviceLevel value.
8989
*/
90-
ServiceLevel serviceLevel();
90+
VolumeServiceLevel serviceLevel();
9191

9292
/**
9393
* @return the snapshotDirectoryVisible value.
@@ -271,7 +271,7 @@ interface WithServiceLevel {
271271
* @param serviceLevel The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra'
272272
* @return the next definition stage
273273
*/
274-
WithCreate withServiceLevel(ServiceLevel serviceLevel);
274+
WithCreate withServiceLevel(VolumeServiceLevel serviceLevel);
275275
}
276276

277277
/**
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.netapp.v2020_02_01;
10+
11+
import java.util.Collection;
12+
import com.fasterxml.jackson.annotation.JsonCreator;
13+
import com.microsoft.rest.ExpandableStringEnum;
14+
15+
/**
16+
* Defines values for VolumeServiceLevel.
17+
*/
18+
public final class VolumeServiceLevel extends ExpandableStringEnum<VolumeServiceLevel> {
19+
/** Static value Standard for VolumeServiceLevel. */
20+
public static final VolumeServiceLevel STANDARD = fromString("Standard");
21+
22+
/** Static value Premium for VolumeServiceLevel. */
23+
public static final VolumeServiceLevel PREMIUM = fromString("Premium");
24+
25+
/** Static value Ultra for VolumeServiceLevel. */
26+
public static final VolumeServiceLevel ULTRA = fromString("Ultra");
27+
28+
/**
29+
* Creates or finds a VolumeServiceLevel from its string representation.
30+
* @param name a name to look for
31+
* @return the corresponding VolumeServiceLevel
32+
*/
33+
@JsonCreator
34+
public static VolumeServiceLevel fromString(String name) {
35+
return fromString(name, VolumeServiceLevel.class);
36+
}
37+
38+
/**
39+
* @return known VolumeServiceLevel values
40+
*/
41+
public static Collection<VolumeServiceLevel> values() {
42+
return values(VolumeServiceLevel.class);
43+
}
44+
}

sdk/netapp/mgmt-v2020_02_01/src/main/java/com/microsoft/azure/management/netapp/v2020_02_01/implementation/CapacityPoolImpl.java

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl;
1313
import rx.Observable;
1414
import com.microsoft.azure.management.netapp.v2020_02_01.CapacityPoolPatch;
15-
import com.microsoft.azure.management.netapp.v2020_02_01.ServiceLevel;
15+
import com.microsoft.azure.management.netapp.v2020_02_01.PoolServiceLevel;
1616
import java.util.Map;
17+
import com.microsoft.azure.management.netapp.v2020_02_01.PatchServiceLevel;
1718
import rx.functions.Func1;
1819

1920
class CapacityPoolImpl extends CreatableUpdatableImpl<CapacityPool, CapacityPoolInner, CapacityPoolImpl> implements CapacityPool, CapacityPool.Definition, CapacityPool.Update {
@@ -119,7 +120,7 @@ public String provisioningState() {
119120
}
120121

121122
@Override
122-
public ServiceLevel serviceLevel() {
123+
public PoolServiceLevel serviceLevel() {
123124
return this.inner().serviceLevel();
124125
}
125126

@@ -151,25 +152,27 @@ public CapacityPoolImpl withLocation(String location) {
151152
return this;
152153
}
153154

155+
@Override
156+
public CapacityPoolImpl withServiceLevel(PoolServiceLevel serviceLevel) {
157+
this.inner().withServiceLevel(serviceLevel);
158+
return this;
159+
}
160+
154161
@Override
155162
public CapacityPoolImpl withSize(long size) {
156163
this.inner().withSize(size);
157164
return this;
158165
}
159166

160167
@Override
161-
public CapacityPoolImpl withSize(Long size) {
162-
this.updateParameter.withSize(size);
168+
public CapacityPoolImpl withServiceLevel(PatchServiceLevel serviceLevel) {
169+
this.updateParameter.withServiceLevel(serviceLevel);
163170
return this;
164171
}
165172

166173
@Override
167-
public CapacityPoolImpl withServiceLevel(ServiceLevel serviceLevel) {
168-
if (isInCreateMode()) {
169-
this.inner().withServiceLevel(serviceLevel);
170-
} else {
171-
this.updateParameter.withServiceLevel(serviceLevel);
172-
}
174+
public CapacityPoolImpl withSize(Long size) {
175+
this.updateParameter.withSize(size);
173176
return this;
174177
}
175178

0 commit comments

Comments
 (0)