Skip to content

Commit 61fe328

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

File tree

14 files changed

+231
-68
lines changed

14 files changed

+231
-68
lines changed

sdk/netapp/mgmt-v2020_06_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_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/BackupPatch.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ public class BackupPatch {
2424
@JsonProperty(value = "tags")
2525
private Map<String, String> tags;
2626

27+
/**
28+
* backupId.
29+
* UUID v4 used to identify the Backup.
30+
*/
31+
@JsonProperty(value = "properties.backupId", access = JsonProperty.Access.WRITE_ONLY)
32+
private String backupId;
33+
2734
/**
2835
* name.
2936
* The creation date of the backup.
@@ -75,6 +82,15 @@ public BackupPatch withTags(Map<String, String> tags) {
7582
return this;
7683
}
7784

85+
/**
86+
* Get uUID v4 used to identify the Backup.
87+
*
88+
* @return the backupId value
89+
*/
90+
public String backupId() {
91+
return this.backupId;
92+
}
93+
7894
/**
7995
* Get the creation date of the backup.
8096
*

sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/CapacityPoolNetAppAccountBackup.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
* Type representing CapacityPoolNetAppAccountBackup.
2525
*/
2626
public interface CapacityPoolNetAppAccountBackup extends HasInner<BackupInner>, Indexable, Refreshable<CapacityPoolNetAppAccountBackup>, Updatable<CapacityPoolNetAppAccountBackup.Update>, HasManager<NetAppManager> {
27+
/**
28+
* @return the backupId value.
29+
*/
30+
String backupId();
31+
2732
/**
2833
* @return the backupType value.
2934
*/

sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/NetAppAccountBackup.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
* Type representing NetAppAccountBackup.
2121
*/
2222
public interface NetAppAccountBackup extends HasInner<BackupInner>, Indexable, Refreshable<NetAppAccountBackup>, HasManager<NetAppManager> {
23+
/**
24+
* @return the backupId value.
25+
*/
26+
String backupId();
27+
2328
/**
2429
* @return the backupType value.
2530
*/

sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_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_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_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_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/SnapshotPolicy.java

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public interface SnapshotPolicy extends HasInner<SnapshotPolicyInner>, Indexable
2626
/**
2727
* @return the dailySchedule value.
2828
*/
29-
Object dailySchedule();
29+
DailySchedule dailySchedule();
3030

3131
/**
3232
* @return the enabled value.
@@ -36,7 +36,7 @@ public interface SnapshotPolicy extends HasInner<SnapshotPolicyInner>, Indexable
3636
/**
3737
* @return the hourlySchedule value.
3838
*/
39-
Object hourlySchedule();
39+
HourlySchedule hourlySchedule();
4040

4141
/**
4242
* @return the id value.
@@ -51,13 +51,23 @@ public interface SnapshotPolicy extends HasInner<SnapshotPolicyInner>, Indexable
5151
/**
5252
* @return the monthlySchedule value.
5353
*/
54-
Object monthlySchedule();
54+
MonthlySchedule monthlySchedule();
5555

5656
/**
5757
* @return the name value.
5858
*/
5959
String name();
6060

61+
/**
62+
* @return the name1 value.
63+
*/
64+
String name1();
65+
66+
/**
67+
* @return the provisioningState value.
68+
*/
69+
String provisioningState();
70+
6171
/**
6272
* @return the tags value.
6373
*/
@@ -71,7 +81,7 @@ public interface SnapshotPolicy extends HasInner<SnapshotPolicyInner>, Indexable
7181
/**
7282
* @return the weeklySchedule value.
7383
*/
74-
Object weeklySchedule();
84+
WeeklySchedule weeklySchedule();
7585

7686
/**
7787
* The entirety of the SnapshotPolicy definition.
@@ -123,7 +133,7 @@ interface WithDailySchedule {
123133
* @param dailySchedule Schedule for daily snapshots
124134
* @return the next definition stage
125135
*/
126-
WithCreate withDailySchedule(Object dailySchedule);
136+
WithCreate withDailySchedule(DailySchedule dailySchedule);
127137
}
128138

129139
/**
@@ -147,7 +157,7 @@ interface WithHourlySchedule {
147157
* @param hourlySchedule Schedule for hourly snapshots
148158
* @return the next definition stage
149159
*/
150-
WithCreate withHourlySchedule(Object hourlySchedule);
160+
WithCreate withHourlySchedule(HourlySchedule hourlySchedule);
151161
}
152162

153163
/**
@@ -159,7 +169,7 @@ interface WithMonthlySchedule {
159169
* @param monthlySchedule Schedule for monthly snapshots
160170
* @return the next definition stage
161171
*/
162-
WithCreate withMonthlySchedule(Object monthlySchedule);
172+
WithCreate withMonthlySchedule(MonthlySchedule monthlySchedule);
163173
}
164174

165175
/**
@@ -183,7 +193,7 @@ interface WithWeeklySchedule {
183193
* @param weeklySchedule Schedule for weekly snapshots
184194
* @return the next definition stage
185195
*/
186-
WithCreate withWeeklySchedule(Object weeklySchedule);
196+
WithCreate withWeeklySchedule(WeeklySchedule weeklySchedule);
187197
}
188198

189199
/**
@@ -213,7 +223,7 @@ interface WithDailySchedule {
213223
* @param dailySchedule Schedule for daily snapshots
214224
* @return the next update stage
215225
*/
216-
Update withDailySchedule(Object dailySchedule);
226+
Update withDailySchedule(DailySchedule dailySchedule);
217227
}
218228

219229
/**
@@ -237,7 +247,7 @@ interface WithHourlySchedule {
237247
* @param hourlySchedule Schedule for hourly snapshots
238248
* @return the next update stage
239249
*/
240-
Update withHourlySchedule(Object hourlySchedule);
250+
Update withHourlySchedule(HourlySchedule hourlySchedule);
241251
}
242252

243253
/**
@@ -261,7 +271,7 @@ interface WithMonthlySchedule {
261271
* @param monthlySchedule Schedule for monthly snapshots
262272
* @return the next update stage
263273
*/
264-
Update withMonthlySchedule(Object monthlySchedule);
274+
Update withMonthlySchedule(MonthlySchedule monthlySchedule);
265275
}
266276

267277
/**
@@ -285,7 +295,7 @@ interface WithWeeklySchedule {
285295
* @param weeklySchedule Schedule for weekly snapshots
286296
* @return the next update stage
287297
*/
288-
Update withWeeklySchedule(Object weeklySchedule);
298+
Update withWeeklySchedule(WeeklySchedule weeklySchedule);
289299
}
290300

291301
}

sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/SnapshotPolicyDetails.java

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,40 +47,52 @@ public class SnapshotPolicyDetails {
4747
@JsonProperty(value = "tags")
4848
private Map<String, String> tags;
4949

50+
/**
51+
* Snapshot policy name.
52+
*/
53+
@JsonProperty(value = "properties.name", access = JsonProperty.Access.WRITE_ONLY)
54+
private String name1;
55+
5056
/**
5157
* hourlySchedule.
5258
* Schedule for hourly snapshots.
5359
*/
5460
@JsonProperty(value = "properties.hourlySchedule")
55-
private Object hourlySchedule;
61+
private HourlySchedule hourlySchedule;
5662

5763
/**
5864
* dailySchedule.
5965
* Schedule for daily snapshots.
6066
*/
6167
@JsonProperty(value = "properties.dailySchedule")
62-
private Object dailySchedule;
68+
private DailySchedule dailySchedule;
6369

6470
/**
6571
* weeklySchedule.
6672
* Schedule for weekly snapshots.
6773
*/
6874
@JsonProperty(value = "properties.weeklySchedule")
69-
private Object weeklySchedule;
75+
private WeeklySchedule weeklySchedule;
7076

7177
/**
7278
* monthlySchedule.
7379
* Schedule for monthly snapshots.
7480
*/
7581
@JsonProperty(value = "properties.monthlySchedule")
76-
private Object monthlySchedule;
82+
private MonthlySchedule monthlySchedule;
7783

7884
/**
7985
* The property to decide policy is enabled or not.
8086
*/
8187
@JsonProperty(value = "properties.enabled")
8288
private Boolean enabled;
8389

90+
/**
91+
* Azure lifecycle management.
92+
*/
93+
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
94+
private String provisioningState;
95+
8496
/**
8597
* Get resource location.
8698
*
@@ -148,12 +160,21 @@ public SnapshotPolicyDetails withTags(Map<String, String> tags) {
148160
return this;
149161
}
150162

163+
/**
164+
* Get snapshot policy name.
165+
*
166+
* @return the name1 value
167+
*/
168+
public String name1() {
169+
return this.name1;
170+
}
171+
151172
/**
152173
* Get schedule for hourly snapshots.
153174
*
154175
* @return the hourlySchedule value
155176
*/
156-
public Object hourlySchedule() {
177+
public HourlySchedule hourlySchedule() {
157178
return this.hourlySchedule;
158179
}
159180

@@ -163,7 +184,7 @@ public Object hourlySchedule() {
163184
* @param hourlySchedule the hourlySchedule value to set
164185
* @return the SnapshotPolicyDetails object itself.
165186
*/
166-
public SnapshotPolicyDetails withHourlySchedule(Object hourlySchedule) {
187+
public SnapshotPolicyDetails withHourlySchedule(HourlySchedule hourlySchedule) {
167188
this.hourlySchedule = hourlySchedule;
168189
return this;
169190
}
@@ -173,7 +194,7 @@ public SnapshotPolicyDetails withHourlySchedule(Object hourlySchedule) {
173194
*
174195
* @return the dailySchedule value
175196
*/
176-
public Object dailySchedule() {
197+
public DailySchedule dailySchedule() {
177198
return this.dailySchedule;
178199
}
179200

@@ -183,7 +204,7 @@ public Object dailySchedule() {
183204
* @param dailySchedule the dailySchedule value to set
184205
* @return the SnapshotPolicyDetails object itself.
185206
*/
186-
public SnapshotPolicyDetails withDailySchedule(Object dailySchedule) {
207+
public SnapshotPolicyDetails withDailySchedule(DailySchedule dailySchedule) {
187208
this.dailySchedule = dailySchedule;
188209
return this;
189210
}
@@ -193,7 +214,7 @@ public SnapshotPolicyDetails withDailySchedule(Object dailySchedule) {
193214
*
194215
* @return the weeklySchedule value
195216
*/
196-
public Object weeklySchedule() {
217+
public WeeklySchedule weeklySchedule() {
197218
return this.weeklySchedule;
198219
}
199220

@@ -203,7 +224,7 @@ public Object weeklySchedule() {
203224
* @param weeklySchedule the weeklySchedule value to set
204225
* @return the SnapshotPolicyDetails object itself.
205226
*/
206-
public SnapshotPolicyDetails withWeeklySchedule(Object weeklySchedule) {
227+
public SnapshotPolicyDetails withWeeklySchedule(WeeklySchedule weeklySchedule) {
207228
this.weeklySchedule = weeklySchedule;
208229
return this;
209230
}
@@ -213,7 +234,7 @@ public SnapshotPolicyDetails withWeeklySchedule(Object weeklySchedule) {
213234
*
214235
* @return the monthlySchedule value
215236
*/
216-
public Object monthlySchedule() {
237+
public MonthlySchedule monthlySchedule() {
217238
return this.monthlySchedule;
218239
}
219240

@@ -223,7 +244,7 @@ public Object monthlySchedule() {
223244
* @param monthlySchedule the monthlySchedule value to set
224245
* @return the SnapshotPolicyDetails object itself.
225246
*/
226-
public SnapshotPolicyDetails withMonthlySchedule(Object monthlySchedule) {
247+
public SnapshotPolicyDetails withMonthlySchedule(MonthlySchedule monthlySchedule) {
227248
this.monthlySchedule = monthlySchedule;
228249
return this;
229250
}
@@ -248,4 +269,13 @@ public SnapshotPolicyDetails withEnabled(Boolean enabled) {
248269
return this;
249270
}
250271

272+
/**
273+
* Get azure lifecycle management.
274+
*
275+
* @return the provisioningState value
276+
*/
277+
public String provisioningState() {
278+
return this.provisioningState;
279+
}
280+
251281
}

0 commit comments

Comments
 (0)