Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR sdk/netapp/mgmt-v2020_06_01] Anf 7051 2020 03 01 api version swagger linting issues kpi #15986

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/netapp/mgmt-v2020_06_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.2</version>
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-netapp</artifactId>
<version>1.0.0-beta</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
*/
Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ public final class ReplicationSchedule extends ExpandableStringEnum<ReplicationS
/** Static value daily for ReplicationSchedule. */
public static final ReplicationSchedule DAILY = fromString("daily");

/** Static value weekly for ReplicationSchedule. */
public static final ReplicationSchedule WEEKLY = fromString("weekly");

/** Static value monthly for ReplicationSchedule. */
public static final ReplicationSchedule MONTHLY = fromString("monthly");

/**
* Creates or finds a ReplicationSchedule from its string representation.
* @param name a name to look for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public interface SnapshotPolicy extends HasInner<SnapshotPolicyInner>, Indexable
/**
* @return the dailySchedule value.
*/
Object dailySchedule();
DailySchedule dailySchedule();

/**
* @return the enabled value.
Expand All @@ -36,7 +36,7 @@ public interface SnapshotPolicy extends HasInner<SnapshotPolicyInner>, Indexable
/**
* @return the hourlySchedule value.
*/
Object hourlySchedule();
HourlySchedule hourlySchedule();

/**
* @return the id value.
Expand All @@ -51,13 +51,23 @@ public interface SnapshotPolicy extends HasInner<SnapshotPolicyInner>, 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.
*/
Expand All @@ -71,7 +81,7 @@ public interface SnapshotPolicy extends HasInner<SnapshotPolicyInner>, Indexable
/**
* @return the weeklySchedule value.
*/
Object weeklySchedule();
WeeklySchedule weeklySchedule();

/**
* The entirety of the SnapshotPolicy definition.
Expand Down Expand Up @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand Down Expand Up @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,40 +47,52 @@ public class SnapshotPolicyDetails {
@JsonProperty(value = "tags")
private Map<String, String> 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.
*/
@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.
*
Expand Down Expand Up @@ -148,12 +160,21 @@ public SnapshotPolicyDetails withTags(Map<String, String> 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;
}

Expand All @@ -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;
}
Expand All @@ -173,7 +194,7 @@ public SnapshotPolicyDetails withHourlySchedule(Object hourlySchedule) {
*
* @return the dailySchedule value
*/
public Object dailySchedule() {
public DailySchedule dailySchedule() {
return this.dailySchedule;
}

Expand All @@ -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;
}
Expand All @@ -193,7 +214,7 @@ public SnapshotPolicyDetails withDailySchedule(Object dailySchedule) {
*
* @return the weeklySchedule value
*/
public Object weeklySchedule() {
public WeeklySchedule weeklySchedule() {
return this.weeklySchedule;
}

Expand All @@ -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;
}
Expand All @@ -213,7 +234,7 @@ public SnapshotPolicyDetails withWeeklySchedule(Object weeklySchedule) {
*
* @return the monthlySchedule value
*/
public Object monthlySchedule() {
public MonthlySchedule monthlySchedule() {
return this.monthlySchedule;
}

Expand All @@ -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;
}
Expand All @@ -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;
}

}
Loading