diff --git a/sdk/netapp/mgmt-v2020_06_01/pom.xml b/sdk/netapp/mgmt-v2020_06_01/pom.xml index bcc8fbf6eb6c..91a57c26f2ec 100644 --- a/sdk/netapp/mgmt-v2020_06_01/pom.xml +++ b/sdk/netapp/mgmt-v2020_06_01/pom.xml @@ -11,8 +11,8 @@ com.microsoft.azure azure-arm-parent - 1.3.2 - ../../parents/azure-arm-parent/pom.xml + 1.1.0 + ../../../pom.management.xml azure-mgmt-netapp 1.0.0-beta diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/BackupPatch.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/BackupPatch.java index 59be84e5948b..59fc1c515e02 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/BackupPatch.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/BackupPatch.java @@ -24,6 +24,13 @@ public class BackupPatch { @JsonProperty(value = "tags") private Map tags; + /** + * backupId. + * UUID v4 used to identify the Backup. + */ + @JsonProperty(value = "properties.backupId", access = JsonProperty.Access.WRITE_ONLY) + private String backupId; + /** * name. * The creation date of the backup. @@ -75,6 +82,15 @@ public BackupPatch withTags(Map tags) { return this; } + /** + * Get uUID v4 used to identify the Backup. + * + * @return the backupId value + */ + public String backupId() { + return this.backupId; + } + /** * Get the creation date of the backup. * diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/CapacityPoolNetAppAccountBackup.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/CapacityPoolNetAppAccountBackup.java index 3605f7ce41ef..217c0d6c1627 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/CapacityPoolNetAppAccountBackup.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/CapacityPoolNetAppAccountBackup.java @@ -24,6 +24,11 @@ * Type representing CapacityPoolNetAppAccountBackup. */ public interface CapacityPoolNetAppAccountBackup extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the backupId value. + */ + String backupId(); + /** * @return the backupType value. */ diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/NetAppAccountBackup.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/NetAppAccountBackup.java index 66fcc7ec2d05..ddea038f58bf 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/NetAppAccountBackup.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/NetAppAccountBackup.java @@ -20,6 +20,11 @@ * Type representing NetAppAccountBackup. */ public interface NetAppAccountBackup extends HasInner, Indexable, Refreshable, HasManager { + /** + * @return the backupId value. + */ + String backupId(); + /** * @return the backupType value. */ diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/ReplicationObject.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/ReplicationObject.java index 8d31ccbae502..a34c8c91fd83 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/ReplicationObject.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/ReplicationObject.java @@ -28,8 +28,7 @@ public class ReplicationObject { private EndpointType endpointType; /** - * Schedule. Possible values include: '_10minutely', 'hourly', 'daily', - * 'weekly', 'monthly'. + * Schedule. Possible values include: '_10minutely', 'hourly', 'daily'. */ @JsonProperty(value = "replicationSchedule", required = true) private ReplicationSchedule replicationSchedule; @@ -87,7 +86,7 @@ public ReplicationObject withEndpointType(EndpointType endpointType) { } /** - * Get schedule. Possible values include: '_10minutely', 'hourly', 'daily', 'weekly', 'monthly'. + * Get schedule. Possible values include: '_10minutely', 'hourly', 'daily'. * * @return the replicationSchedule value */ @@ -96,7 +95,7 @@ public ReplicationSchedule replicationSchedule() { } /** - * Set schedule. Possible values include: '_10minutely', 'hourly', 'daily', 'weekly', 'monthly'. + * Set schedule. Possible values include: '_10minutely', 'hourly', 'daily'. * * @param replicationSchedule the replicationSchedule value to set * @return the ReplicationObject object itself. diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/ReplicationSchedule.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/ReplicationSchedule.java index b548c9a94f07..768de261b8fb 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/ReplicationSchedule.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/ReplicationSchedule.java @@ -25,12 +25,6 @@ public final class ReplicationSchedule extends ExpandableStringEnum, Indexable /** * @return the dailySchedule value. */ - Object dailySchedule(); + DailySchedule dailySchedule(); /** * @return the enabled value. @@ -36,7 +36,7 @@ public interface SnapshotPolicy extends HasInner, Indexable /** * @return the hourlySchedule value. */ - Object hourlySchedule(); + HourlySchedule hourlySchedule(); /** * @return the id value. @@ -51,13 +51,23 @@ public interface SnapshotPolicy extends HasInner, Indexable /** * @return the monthlySchedule value. */ - Object monthlySchedule(); + MonthlySchedule monthlySchedule(); /** * @return the name value. */ String name(); + /** + * @return the name1 value. + */ + String name1(); + + /** + * @return the provisioningState value. + */ + String provisioningState(); + /** * @return the tags value. */ @@ -71,7 +81,7 @@ public interface SnapshotPolicy extends HasInner, Indexable /** * @return the weeklySchedule value. */ - Object weeklySchedule(); + WeeklySchedule weeklySchedule(); /** * The entirety of the SnapshotPolicy definition. @@ -123,7 +133,7 @@ interface WithDailySchedule { * @param dailySchedule Schedule for daily snapshots * @return the next definition stage */ - WithCreate withDailySchedule(Object dailySchedule); + WithCreate withDailySchedule(DailySchedule dailySchedule); } /** @@ -147,7 +157,7 @@ interface WithHourlySchedule { * @param hourlySchedule Schedule for hourly snapshots * @return the next definition stage */ - WithCreate withHourlySchedule(Object hourlySchedule); + WithCreate withHourlySchedule(HourlySchedule hourlySchedule); } /** @@ -159,7 +169,7 @@ interface WithMonthlySchedule { * @param monthlySchedule Schedule for monthly snapshots * @return the next definition stage */ - WithCreate withMonthlySchedule(Object monthlySchedule); + WithCreate withMonthlySchedule(MonthlySchedule monthlySchedule); } /** @@ -183,7 +193,7 @@ interface WithWeeklySchedule { * @param weeklySchedule Schedule for weekly snapshots * @return the next definition stage */ - WithCreate withWeeklySchedule(Object weeklySchedule); + WithCreate withWeeklySchedule(WeeklySchedule weeklySchedule); } /** @@ -213,7 +223,7 @@ interface WithDailySchedule { * @param dailySchedule Schedule for daily snapshots * @return the next update stage */ - Update withDailySchedule(Object dailySchedule); + Update withDailySchedule(DailySchedule dailySchedule); } /** @@ -237,7 +247,7 @@ interface WithHourlySchedule { * @param hourlySchedule Schedule for hourly snapshots * @return the next update stage */ - Update withHourlySchedule(Object hourlySchedule); + Update withHourlySchedule(HourlySchedule hourlySchedule); } /** @@ -261,7 +271,7 @@ interface WithMonthlySchedule { * @param monthlySchedule Schedule for monthly snapshots * @return the next update stage */ - Update withMonthlySchedule(Object monthlySchedule); + Update withMonthlySchedule(MonthlySchedule monthlySchedule); } /** @@ -285,7 +295,7 @@ interface WithWeeklySchedule { * @param weeklySchedule Schedule for weekly snapshots * @return the next update stage */ - Update withWeeklySchedule(Object weeklySchedule); + Update withWeeklySchedule(WeeklySchedule weeklySchedule); } } diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/SnapshotPolicyDetails.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/SnapshotPolicyDetails.java index 6552a8a0241c..ca226f900ea1 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/SnapshotPolicyDetails.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/SnapshotPolicyDetails.java @@ -47,33 +47,39 @@ public class SnapshotPolicyDetails { @JsonProperty(value = "tags") private Map tags; + /** + * Snapshot policy name. + */ + @JsonProperty(value = "properties.name", access = JsonProperty.Access.WRITE_ONLY) + private String name1; + /** * hourlySchedule. * Schedule for hourly snapshots. */ @JsonProperty(value = "properties.hourlySchedule") - private Object hourlySchedule; + private HourlySchedule hourlySchedule; /** * dailySchedule. * Schedule for daily snapshots. */ @JsonProperty(value = "properties.dailySchedule") - private Object dailySchedule; + private DailySchedule dailySchedule; /** * weeklySchedule. * Schedule for weekly snapshots. */ @JsonProperty(value = "properties.weeklySchedule") - private Object weeklySchedule; + private WeeklySchedule weeklySchedule; /** * monthlySchedule. * Schedule for monthly snapshots. */ @JsonProperty(value = "properties.monthlySchedule") - private Object monthlySchedule; + private MonthlySchedule monthlySchedule; /** * The property to decide policy is enabled or not. @@ -81,6 +87,12 @@ public class SnapshotPolicyDetails { @JsonProperty(value = "properties.enabled") private Boolean enabled; + /** + * Azure lifecycle management. + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + /** * Get resource location. * @@ -148,12 +160,21 @@ public SnapshotPolicyDetails withTags(Map tags) { return this; } + /** + * Get snapshot policy name. + * + * @return the name1 value + */ + public String name1() { + return this.name1; + } + /** * Get schedule for hourly snapshots. * * @return the hourlySchedule value */ - public Object hourlySchedule() { + public HourlySchedule hourlySchedule() { return this.hourlySchedule; } @@ -163,7 +184,7 @@ public Object hourlySchedule() { * @param hourlySchedule the hourlySchedule value to set * @return the SnapshotPolicyDetails object itself. */ - public SnapshotPolicyDetails withHourlySchedule(Object hourlySchedule) { + public SnapshotPolicyDetails withHourlySchedule(HourlySchedule hourlySchedule) { this.hourlySchedule = hourlySchedule; return this; } @@ -173,7 +194,7 @@ public SnapshotPolicyDetails withHourlySchedule(Object hourlySchedule) { * * @return the dailySchedule value */ - public Object dailySchedule() { + public DailySchedule dailySchedule() { return this.dailySchedule; } @@ -183,7 +204,7 @@ public Object dailySchedule() { * @param dailySchedule the dailySchedule value to set * @return the SnapshotPolicyDetails object itself. */ - public SnapshotPolicyDetails withDailySchedule(Object dailySchedule) { + public SnapshotPolicyDetails withDailySchedule(DailySchedule dailySchedule) { this.dailySchedule = dailySchedule; return this; } @@ -193,7 +214,7 @@ public SnapshotPolicyDetails withDailySchedule(Object dailySchedule) { * * @return the weeklySchedule value */ - public Object weeklySchedule() { + public WeeklySchedule weeklySchedule() { return this.weeklySchedule; } @@ -203,7 +224,7 @@ public Object weeklySchedule() { * @param weeklySchedule the weeklySchedule value to set * @return the SnapshotPolicyDetails object itself. */ - public SnapshotPolicyDetails withWeeklySchedule(Object weeklySchedule) { + public SnapshotPolicyDetails withWeeklySchedule(WeeklySchedule weeklySchedule) { this.weeklySchedule = weeklySchedule; return this; } @@ -213,7 +234,7 @@ public SnapshotPolicyDetails withWeeklySchedule(Object weeklySchedule) { * * @return the monthlySchedule value */ - public Object monthlySchedule() { + public MonthlySchedule monthlySchedule() { return this.monthlySchedule; } @@ -223,7 +244,7 @@ public Object monthlySchedule() { * @param monthlySchedule the monthlySchedule value to set * @return the SnapshotPolicyDetails object itself. */ - public SnapshotPolicyDetails withMonthlySchedule(Object monthlySchedule) { + public SnapshotPolicyDetails withMonthlySchedule(MonthlySchedule monthlySchedule) { this.monthlySchedule = monthlySchedule; return this; } @@ -248,4 +269,13 @@ public SnapshotPolicyDetails withEnabled(Boolean enabled) { return this; } + /** + * Get azure lifecycle management. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + } diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/SnapshotPolicyPatch.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/SnapshotPolicyPatch.java index d0f09ee62b4d..e84874620143 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/SnapshotPolicyPatch.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/SnapshotPolicyPatch.java @@ -47,33 +47,39 @@ public class SnapshotPolicyPatch { @JsonProperty(value = "tags") private Map tags; + /** + * Snapshot policy name. + */ + @JsonProperty(value = "properties.name", access = JsonProperty.Access.WRITE_ONLY) + private String name1; + /** * hourlySchedule. * Schedule for hourly snapshots. */ @JsonProperty(value = "properties.hourlySchedule") - private Object hourlySchedule; + private HourlySchedule hourlySchedule; /** * dailySchedule. * Schedule for daily snapshots. */ @JsonProperty(value = "properties.dailySchedule") - private Object dailySchedule; + private DailySchedule dailySchedule; /** * weeklySchedule. * Schedule for weekly snapshots. */ @JsonProperty(value = "properties.weeklySchedule") - private Object weeklySchedule; + private WeeklySchedule weeklySchedule; /** * monthlySchedule. * Schedule for monthly snapshots. */ @JsonProperty(value = "properties.monthlySchedule") - private Object monthlySchedule; + private MonthlySchedule monthlySchedule; /** * The property to decide policy is enabled or not. @@ -81,6 +87,12 @@ public class SnapshotPolicyPatch { @JsonProperty(value = "properties.enabled") private Boolean enabled; + /** + * Azure lifecycle management. + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + /** * Get resource location. * @@ -148,12 +160,21 @@ public SnapshotPolicyPatch withTags(Map tags) { return this; } + /** + * Get snapshot policy name. + * + * @return the name1 value + */ + public String name1() { + return this.name1; + } + /** * Get schedule for hourly snapshots. * * @return the hourlySchedule value */ - public Object hourlySchedule() { + public HourlySchedule hourlySchedule() { return this.hourlySchedule; } @@ -163,7 +184,7 @@ public Object hourlySchedule() { * @param hourlySchedule the hourlySchedule value to set * @return the SnapshotPolicyPatch object itself. */ - public SnapshotPolicyPatch withHourlySchedule(Object hourlySchedule) { + public SnapshotPolicyPatch withHourlySchedule(HourlySchedule hourlySchedule) { this.hourlySchedule = hourlySchedule; return this; } @@ -173,7 +194,7 @@ public SnapshotPolicyPatch withHourlySchedule(Object hourlySchedule) { * * @return the dailySchedule value */ - public Object dailySchedule() { + public DailySchedule dailySchedule() { return this.dailySchedule; } @@ -183,7 +204,7 @@ public Object dailySchedule() { * @param dailySchedule the dailySchedule value to set * @return the SnapshotPolicyPatch object itself. */ - public SnapshotPolicyPatch withDailySchedule(Object dailySchedule) { + public SnapshotPolicyPatch withDailySchedule(DailySchedule dailySchedule) { this.dailySchedule = dailySchedule; return this; } @@ -193,7 +214,7 @@ public SnapshotPolicyPatch withDailySchedule(Object dailySchedule) { * * @return the weeklySchedule value */ - public Object weeklySchedule() { + public WeeklySchedule weeklySchedule() { return this.weeklySchedule; } @@ -203,7 +224,7 @@ public Object weeklySchedule() { * @param weeklySchedule the weeklySchedule value to set * @return the SnapshotPolicyPatch object itself. */ - public SnapshotPolicyPatch withWeeklySchedule(Object weeklySchedule) { + public SnapshotPolicyPatch withWeeklySchedule(WeeklySchedule weeklySchedule) { this.weeklySchedule = weeklySchedule; return this; } @@ -213,7 +234,7 @@ public SnapshotPolicyPatch withWeeklySchedule(Object weeklySchedule) { * * @return the monthlySchedule value */ - public Object monthlySchedule() { + public MonthlySchedule monthlySchedule() { return this.monthlySchedule; } @@ -223,7 +244,7 @@ public Object monthlySchedule() { * @param monthlySchedule the monthlySchedule value to set * @return the SnapshotPolicyPatch object itself. */ - public SnapshotPolicyPatch withMonthlySchedule(Object monthlySchedule) { + public SnapshotPolicyPatch withMonthlySchedule(MonthlySchedule monthlySchedule) { this.monthlySchedule = monthlySchedule; return this; } @@ -248,4 +269,13 @@ public SnapshotPolicyPatch withEnabled(Boolean enabled) { return this; } + /** + * Get azure lifecycle management. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + } diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/BackupInner.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/BackupInner.java index 41964952db35..c05b94a9eff5 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/BackupInner.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/BackupInner.java @@ -24,6 +24,13 @@ public class BackupInner extends ProxyResource { @JsonProperty(value = "location", required = true) private String location; + /** + * backupId. + * UUID v4 used to identify the Backup. + */ + @JsonProperty(value = "properties.backupId", access = JsonProperty.Access.WRITE_ONLY) + private String backupId; + /** * name. * The creation date of the backup. @@ -75,6 +82,15 @@ public BackupInner withLocation(String location) { return this; } + /** + * Get uUID v4 used to identify the Backup. + * + * @return the backupId value + */ + public String backupId() { + return this.backupId; + } + /** * Get the creation date of the backup. * diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/CapacityPoolNetAppAccountBackupImpl.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/CapacityPoolNetAppAccountBackupImpl.java index 1a3815110662..3c9e6d4f1888 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/CapacityPoolNetAppAccountBackupImpl.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/CapacityPoolNetAppAccountBackupImpl.java @@ -97,6 +97,11 @@ private void resetCreateUpdateParameters() { this.updateParameter = new BackupPatch(); } + @Override + public String backupId() { + return this.inner().backupId(); + } + @Override public String backupType() { return this.inner().backupType(); diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/NetAppAccountBackupImpl.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/NetAppAccountBackupImpl.java index 2d0f594ce3ac..5ecddd26117b 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/NetAppAccountBackupImpl.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/NetAppAccountBackupImpl.java @@ -41,6 +41,11 @@ protected Observable getInnerAsync() { + @Override + public String backupId() { + return this.inner().backupId(); + } + @Override public String backupType() { return this.inner().backupType(); diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/SnapshotPolicyImpl.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/SnapshotPolicyImpl.java index ced51c1ca386..ca5c195a3cc1 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/SnapshotPolicyImpl.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/SnapshotPolicyImpl.java @@ -13,6 +13,10 @@ import rx.Observable; import com.microsoft.azure.management.netapp.v2020_06_01.SnapshotPolicyPatch; import java.util.Map; +import com.microsoft.azure.management.netapp.v2020_06_01.HourlySchedule; +import com.microsoft.azure.management.netapp.v2020_06_01.DailySchedule; +import com.microsoft.azure.management.netapp.v2020_06_01.WeeklySchedule; +import com.microsoft.azure.management.netapp.v2020_06_01.MonthlySchedule; import rx.functions.Func1; class SnapshotPolicyImpl extends CreatableUpdatableImpl implements SnapshotPolicy, SnapshotPolicy.Definition, SnapshotPolicy.Update { @@ -93,7 +97,7 @@ private void resetCreateUpdateParameters() { } @Override - public Object dailySchedule() { + public DailySchedule dailySchedule() { return this.inner().dailySchedule(); } @@ -103,7 +107,7 @@ public Boolean enabled() { } @Override - public Object hourlySchedule() { + public HourlySchedule hourlySchedule() { return this.inner().hourlySchedule(); } @@ -118,7 +122,7 @@ public String location() { } @Override - public Object monthlySchedule() { + public MonthlySchedule monthlySchedule() { return this.inner().monthlySchedule(); } @@ -127,6 +131,16 @@ public String name() { return this.inner().name(); } + @Override + public String name1() { + return this.inner().name1(); + } + + @Override + public String provisioningState() { + return this.inner().provisioningState(); + } + @Override public Map tags() { return this.inner().getTags(); @@ -138,7 +152,7 @@ public String type() { } @Override - public Object weeklySchedule() { + public WeeklySchedule weeklySchedule() { return this.inner().weeklySchedule(); } @@ -160,7 +174,7 @@ public SnapshotPolicyImpl withLocation(String location) { } @Override - public SnapshotPolicyImpl withDailySchedule(Object dailySchedule) { + public SnapshotPolicyImpl withDailySchedule(DailySchedule dailySchedule) { if (isInCreateMode()) { this.inner().withDailySchedule(dailySchedule); } else { @@ -180,7 +194,7 @@ public SnapshotPolicyImpl withEnabled(Boolean enabled) { } @Override - public SnapshotPolicyImpl withHourlySchedule(Object hourlySchedule) { + public SnapshotPolicyImpl withHourlySchedule(HourlySchedule hourlySchedule) { if (isInCreateMode()) { this.inner().withHourlySchedule(hourlySchedule); } else { @@ -190,7 +204,7 @@ public SnapshotPolicyImpl withHourlySchedule(Object hourlySchedule) { } @Override - public SnapshotPolicyImpl withMonthlySchedule(Object monthlySchedule) { + public SnapshotPolicyImpl withMonthlySchedule(MonthlySchedule monthlySchedule) { if (isInCreateMode()) { this.inner().withMonthlySchedule(monthlySchedule); } else { @@ -210,7 +224,7 @@ public SnapshotPolicyImpl withTags(Map tags) { } @Override - public SnapshotPolicyImpl withWeeklySchedule(Object weeklySchedule) { + public SnapshotPolicyImpl withWeeklySchedule(WeeklySchedule weeklySchedule) { if (isInCreateMode()) { this.inner().withWeeklySchedule(weeklySchedule); } else { diff --git a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/SnapshotPolicyInner.java b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/SnapshotPolicyInner.java index a36177e47295..587feb2426b1 100644 --- a/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/SnapshotPolicyInner.java +++ b/sdk/netapp/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/netapp/v2020_06_01/implementation/SnapshotPolicyInner.java @@ -8,6 +8,10 @@ package com.microsoft.azure.management.netapp.v2020_06_01.implementation; +import com.microsoft.azure.management.netapp.v2020_06_01.HourlySchedule; +import com.microsoft.azure.management.netapp.v2020_06_01.DailySchedule; +import com.microsoft.azure.management.netapp.v2020_06_01.WeeklySchedule; +import com.microsoft.azure.management.netapp.v2020_06_01.MonthlySchedule; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.Resource; @@ -17,33 +21,39 @@ */ @JsonFlatten public class SnapshotPolicyInner extends Resource { + /** + * Snapshot policy name. + */ + @JsonProperty(value = "properties.name", access = JsonProperty.Access.WRITE_ONLY) + private String name1; + /** * hourlySchedule. * Schedule for hourly snapshots. */ @JsonProperty(value = "properties.hourlySchedule") - private Object hourlySchedule; + private HourlySchedule hourlySchedule; /** * dailySchedule. * Schedule for daily snapshots. */ @JsonProperty(value = "properties.dailySchedule") - private Object dailySchedule; + private DailySchedule dailySchedule; /** * weeklySchedule. * Schedule for weekly snapshots. */ @JsonProperty(value = "properties.weeklySchedule") - private Object weeklySchedule; + private WeeklySchedule weeklySchedule; /** * monthlySchedule. * Schedule for monthly snapshots. */ @JsonProperty(value = "properties.monthlySchedule") - private Object monthlySchedule; + private MonthlySchedule monthlySchedule; /** * The property to decide policy is enabled or not. @@ -51,12 +61,27 @@ public class SnapshotPolicyInner extends Resource { @JsonProperty(value = "properties.enabled") private Boolean enabled; + /** + * Azure lifecycle management. + */ + @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private String provisioningState; + + /** + * Get snapshot policy name. + * + * @return the name1 value + */ + public String name1() { + return this.name1; + } + /** * Get schedule for hourly snapshots. * * @return the hourlySchedule value */ - public Object hourlySchedule() { + public HourlySchedule hourlySchedule() { return this.hourlySchedule; } @@ -66,7 +91,7 @@ public Object hourlySchedule() { * @param hourlySchedule the hourlySchedule value to set * @return the SnapshotPolicyInner object itself. */ - public SnapshotPolicyInner withHourlySchedule(Object hourlySchedule) { + public SnapshotPolicyInner withHourlySchedule(HourlySchedule hourlySchedule) { this.hourlySchedule = hourlySchedule; return this; } @@ -76,7 +101,7 @@ public SnapshotPolicyInner withHourlySchedule(Object hourlySchedule) { * * @return the dailySchedule value */ - public Object dailySchedule() { + public DailySchedule dailySchedule() { return this.dailySchedule; } @@ -86,7 +111,7 @@ public Object dailySchedule() { * @param dailySchedule the dailySchedule value to set * @return the SnapshotPolicyInner object itself. */ - public SnapshotPolicyInner withDailySchedule(Object dailySchedule) { + public SnapshotPolicyInner withDailySchedule(DailySchedule dailySchedule) { this.dailySchedule = dailySchedule; return this; } @@ -96,7 +121,7 @@ public SnapshotPolicyInner withDailySchedule(Object dailySchedule) { * * @return the weeklySchedule value */ - public Object weeklySchedule() { + public WeeklySchedule weeklySchedule() { return this.weeklySchedule; } @@ -106,7 +131,7 @@ public Object weeklySchedule() { * @param weeklySchedule the weeklySchedule value to set * @return the SnapshotPolicyInner object itself. */ - public SnapshotPolicyInner withWeeklySchedule(Object weeklySchedule) { + public SnapshotPolicyInner withWeeklySchedule(WeeklySchedule weeklySchedule) { this.weeklySchedule = weeklySchedule; return this; } @@ -116,7 +141,7 @@ public SnapshotPolicyInner withWeeklySchedule(Object weeklySchedule) { * * @return the monthlySchedule value */ - public Object monthlySchedule() { + public MonthlySchedule monthlySchedule() { return this.monthlySchedule; } @@ -126,7 +151,7 @@ public Object monthlySchedule() { * @param monthlySchedule the monthlySchedule value to set * @return the SnapshotPolicyInner object itself. */ - public SnapshotPolicyInner withMonthlySchedule(Object monthlySchedule) { + public SnapshotPolicyInner withMonthlySchedule(MonthlySchedule monthlySchedule) { this.monthlySchedule = monthlySchedule; return this; } @@ -151,4 +176,13 @@ public SnapshotPolicyInner withEnabled(Boolean enabled) { return this; } + /** + * Get azure lifecycle management. + * + * @return the provisioningState value + */ + public String provisioningState() { + return this.provisioningState; + } + }