diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Autoscale.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Autoscale.java new file mode 100644 index 000000000000..9b158937804a --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Autoscale.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The autoscale request parameters. + */ +public class Autoscale { + /** + * Parameters for load-based autoscale. + */ + @JsonProperty(value = "capacity") + private AutoscaleCapacity capacity; + + /** + * Parameters for schedule-based autoscale. + */ + @JsonProperty(value = "recurrence") + private AutoscaleRecurrence recurrence; + + /** + * Get parameters for load-based autoscale. + * + * @return the capacity value + */ + public AutoscaleCapacity capacity() { + return this.capacity; + } + + /** + * Set parameters for load-based autoscale. + * + * @param capacity the capacity value to set + * @return the Autoscale object itself. + */ + public Autoscale withCapacity(AutoscaleCapacity capacity) { + this.capacity = capacity; + return this; + } + + /** + * Get parameters for schedule-based autoscale. + * + * @return the recurrence value + */ + public AutoscaleRecurrence recurrence() { + return this.recurrence; + } + + /** + * Set parameters for schedule-based autoscale. + * + * @param recurrence the recurrence value to set + * @return the Autoscale object itself. + */ + public Autoscale withRecurrence(AutoscaleRecurrence recurrence) { + this.recurrence = recurrence; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleCapacity.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleCapacity.java new file mode 100644 index 000000000000..8249388ec345 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleCapacity.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The load-based autoscale request parameters. + */ +public class AutoscaleCapacity { + /** + * The minimum instance count of the cluster. + */ + @JsonProperty(value = "minInstanceCount") + private Integer minInstanceCount; + + /** + * The maximum instance count of the cluster. + */ + @JsonProperty(value = "maxInstanceCount") + private Integer maxInstanceCount; + + /** + * Get the minimum instance count of the cluster. + * + * @return the minInstanceCount value + */ + public Integer minInstanceCount() { + return this.minInstanceCount; + } + + /** + * Set the minimum instance count of the cluster. + * + * @param minInstanceCount the minInstanceCount value to set + * @return the AutoscaleCapacity object itself. + */ + public AutoscaleCapacity withMinInstanceCount(Integer minInstanceCount) { + this.minInstanceCount = minInstanceCount; + return this; + } + + /** + * Get the maximum instance count of the cluster. + * + * @return the maxInstanceCount value + */ + public Integer maxInstanceCount() { + return this.maxInstanceCount; + } + + /** + * Set the maximum instance count of the cluster. + * + * @param maxInstanceCount the maxInstanceCount value to set + * @return the AutoscaleCapacity object itself. + */ + public AutoscaleCapacity withMaxInstanceCount(Integer maxInstanceCount) { + this.maxInstanceCount = maxInstanceCount; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleRecurrence.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleRecurrence.java new file mode 100644 index 000000000000..42d0c231fe2a --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleRecurrence.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Schedule-based autoscale request parameters. + */ +public class AutoscaleRecurrence { + /** + * The time zone for the autoscale schedule times. + */ + @JsonProperty(value = "timeZone") + private String timeZone; + + /** + * Array of schedule-based autoscale rules. + */ + @JsonProperty(value = "schedule") + private List schedule; + + /** + * Get the time zone for the autoscale schedule times. + * + * @return the timeZone value + */ + public String timeZone() { + return this.timeZone; + } + + /** + * Set the time zone for the autoscale schedule times. + * + * @param timeZone the timeZone value to set + * @return the AutoscaleRecurrence object itself. + */ + public AutoscaleRecurrence withTimeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Get array of schedule-based autoscale rules. + * + * @return the schedule value + */ + public List schedule() { + return this.schedule; + } + + /** + * Set array of schedule-based autoscale rules. + * + * @param schedule the schedule value to set + * @return the AutoscaleRecurrence object itself. + */ + public AutoscaleRecurrence withSchedule(List schedule) { + this.schedule = schedule; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleSchedule.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleSchedule.java new file mode 100644 index 000000000000..fe8d2e3966bc --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleSchedule.java @@ -0,0 +1,71 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters for a schedule-based autoscale rule, consisting of an array of + * days + a time and capacity. + */ +public class AutoscaleSchedule { + /** + * Days of the week for a schedule-based autoscale rule. + */ + @JsonProperty(value = "days") + private List days; + + /** + * Time and capacity for a schedule-based autoscale rule. + */ + @JsonProperty(value = "timeAndCapacity") + private AutoscaleTimeAndCapacity timeAndCapacity; + + /** + * Get days of the week for a schedule-based autoscale rule. + * + * @return the days value + */ + public List days() { + return this.days; + } + + /** + * Set days of the week for a schedule-based autoscale rule. + * + * @param days the days value to set + * @return the AutoscaleSchedule object itself. + */ + public AutoscaleSchedule withDays(List days) { + this.days = days; + return this; + } + + /** + * Get time and capacity for a schedule-based autoscale rule. + * + * @return the timeAndCapacity value + */ + public AutoscaleTimeAndCapacity timeAndCapacity() { + return this.timeAndCapacity; + } + + /** + * Set time and capacity for a schedule-based autoscale rule. + * + * @param timeAndCapacity the timeAndCapacity value to set + * @return the AutoscaleSchedule object itself. + */ + public AutoscaleSchedule withTimeAndCapacity(AutoscaleTimeAndCapacity timeAndCapacity) { + this.timeAndCapacity = timeAndCapacity; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleTimeAndCapacity.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleTimeAndCapacity.java new file mode 100644 index 000000000000..70f42740330d --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/AutoscaleTimeAndCapacity.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Time and capacity request parameters. + */ +public class AutoscaleTimeAndCapacity { + /** + * 24-hour time in the form xx:xx. + */ + @JsonProperty(value = "time") + private String time; + + /** + * The minimum instance count of the cluster. + */ + @JsonProperty(value = "minInstanceCount") + private Integer minInstanceCount; + + /** + * The maximum instance count of the cluster. + */ + @JsonProperty(value = "maxInstanceCount") + private Integer maxInstanceCount; + + /** + * Get 24-hour time in the form xx:xx. + * + * @return the time value + */ + public String time() { + return this.time; + } + + /** + * Set 24-hour time in the form xx:xx. + * + * @param time the time value to set + * @return the AutoscaleTimeAndCapacity object itself. + */ + public AutoscaleTimeAndCapacity withTime(String time) { + this.time = time; + return this; + } + + /** + * Get the minimum instance count of the cluster. + * + * @return the minInstanceCount value + */ + public Integer minInstanceCount() { + return this.minInstanceCount; + } + + /** + * Set the minimum instance count of the cluster. + * + * @param minInstanceCount the minInstanceCount value to set + * @return the AutoscaleTimeAndCapacity object itself. + */ + public AutoscaleTimeAndCapacity withMinInstanceCount(Integer minInstanceCount) { + this.minInstanceCount = minInstanceCount; + return this; + } + + /** + * Get the maximum instance count of the cluster. + * + * @return the maxInstanceCount value + */ + public Integer maxInstanceCount() { + return this.maxInstanceCount; + } + + /** + * Set the maximum instance count of the cluster. + * + * @param maxInstanceCount the maxInstanceCount value to set + * @return the AutoscaleTimeAndCapacity object itself. + */ + public AutoscaleTimeAndCapacity withMaxInstanceCount(Integer maxInstanceCount) { + this.maxInstanceCount = maxInstanceCount; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/DaysOfWeek.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/DaysOfWeek.java new file mode 100644 index 000000000000..e54acfbbbf77 --- /dev/null +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/DaysOfWeek.java @@ -0,0 +1,68 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2015_03_01_preview; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for DaysOfWeek. + */ +public enum DaysOfWeek { + /** Enum value Monday. */ + MONDAY("Monday"), + + /** Enum value Tuesday. */ + TUESDAY("Tuesday"), + + /** Enum value Wednesday. */ + WEDNESDAY("Wednesday"), + + /** Enum value Thursday. */ + THURSDAY("Thursday"), + + /** Enum value Friday. */ + FRIDAY("Friday"), + + /** Enum value Saturday. */ + SATURDAY("Saturday"), + + /** Enum value Sunday. */ + SUNDAY("Sunday"); + + /** The actual serialized value for a DaysOfWeek instance. */ + private String value; + + DaysOfWeek(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a DaysOfWeek instance. + * + * @param value the serialized value to parse. + * @return the parsed DaysOfWeek object, or null if unable to parse. + */ + @JsonCreator + public static DaysOfWeek fromString(String value) { + DaysOfWeek[] items = DaysOfWeek.values(); + for (DaysOfWeek item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Role.java b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Role.java index 28f0d6ebb5fc..86cfff6ce90c 100644 --- a/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Role.java +++ b/hdinsight/resource-manager/v2015_03_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2015_03_01_preview/Role.java @@ -34,6 +34,12 @@ public class Role { @JsonProperty(value = "targetInstanceCount") private Integer targetInstanceCount; + /** + * The autoscale configurations. + */ + @JsonProperty(value = "autoscale") + private Autoscale autoscaleConfiguration; + /** * The hardware profile. */ @@ -124,6 +130,26 @@ public Role withTargetInstanceCount(Integer targetInstanceCount) { return this; } + /** + * Get the autoscale configurations. + * + * @return the autoscaleConfiguration value + */ + public Autoscale autoscaleConfiguration() { + return this.autoscaleConfiguration; + } + + /** + * Set the autoscale configurations. + * + * @param autoscaleConfiguration the autoscaleConfiguration value to set + * @return the Role object itself. + */ + public Role withAutoscaleConfiguration(Autoscale autoscaleConfiguration) { + this.autoscaleConfiguration = autoscaleConfiguration; + return this; + } + /** * Get the hardware profile. * diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Autoscale.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Autoscale.java new file mode 100644 index 000000000000..df317ce72ca2 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Autoscale.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The autoscale request parameters. + */ +public class Autoscale { + /** + * Parameters for load-based autoscale. + */ + @JsonProperty(value = "capacity") + private AutoscaleCapacity capacity; + + /** + * Parameters for schedule-based autoscale. + */ + @JsonProperty(value = "recurrence") + private AutoscaleRecurrence recurrence; + + /** + * Get parameters for load-based autoscale. + * + * @return the capacity value + */ + public AutoscaleCapacity capacity() { + return this.capacity; + } + + /** + * Set parameters for load-based autoscale. + * + * @param capacity the capacity value to set + * @return the Autoscale object itself. + */ + public Autoscale withCapacity(AutoscaleCapacity capacity) { + this.capacity = capacity; + return this; + } + + /** + * Get parameters for schedule-based autoscale. + * + * @return the recurrence value + */ + public AutoscaleRecurrence recurrence() { + return this.recurrence; + } + + /** + * Set parameters for schedule-based autoscale. + * + * @param recurrence the recurrence value to set + * @return the Autoscale object itself. + */ + public Autoscale withRecurrence(AutoscaleRecurrence recurrence) { + this.recurrence = recurrence; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleCapacity.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleCapacity.java new file mode 100644 index 000000000000..01b5fbcdc2be --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleCapacity.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The load-based autoscale request parameters. + */ +public class AutoscaleCapacity { + /** + * The minimum instance count of the cluster. + */ + @JsonProperty(value = "minInstanceCount") + private Integer minInstanceCount; + + /** + * The maximum instance count of the cluster. + */ + @JsonProperty(value = "maxInstanceCount") + private Integer maxInstanceCount; + + /** + * Get the minimum instance count of the cluster. + * + * @return the minInstanceCount value + */ + public Integer minInstanceCount() { + return this.minInstanceCount; + } + + /** + * Set the minimum instance count of the cluster. + * + * @param minInstanceCount the minInstanceCount value to set + * @return the AutoscaleCapacity object itself. + */ + public AutoscaleCapacity withMinInstanceCount(Integer minInstanceCount) { + this.minInstanceCount = minInstanceCount; + return this; + } + + /** + * Get the maximum instance count of the cluster. + * + * @return the maxInstanceCount value + */ + public Integer maxInstanceCount() { + return this.maxInstanceCount; + } + + /** + * Set the maximum instance count of the cluster. + * + * @param maxInstanceCount the maxInstanceCount value to set + * @return the AutoscaleCapacity object itself. + */ + public AutoscaleCapacity withMaxInstanceCount(Integer maxInstanceCount) { + this.maxInstanceCount = maxInstanceCount; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleRecurrence.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleRecurrence.java new file mode 100644 index 000000000000..addbf5debb35 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleRecurrence.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Schedule-based autoscale request parameters. + */ +public class AutoscaleRecurrence { + /** + * The time zone for the autoscale schedule times. + */ + @JsonProperty(value = "timeZone") + private String timeZone; + + /** + * Array of schedule-based autoscale rules. + */ + @JsonProperty(value = "schedule") + private List schedule; + + /** + * Get the time zone for the autoscale schedule times. + * + * @return the timeZone value + */ + public String timeZone() { + return this.timeZone; + } + + /** + * Set the time zone for the autoscale schedule times. + * + * @param timeZone the timeZone value to set + * @return the AutoscaleRecurrence object itself. + */ + public AutoscaleRecurrence withTimeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Get array of schedule-based autoscale rules. + * + * @return the schedule value + */ + public List schedule() { + return this.schedule; + } + + /** + * Set array of schedule-based autoscale rules. + * + * @param schedule the schedule value to set + * @return the AutoscaleRecurrence object itself. + */ + public AutoscaleRecurrence withSchedule(List schedule) { + this.schedule = schedule; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleSchedule.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleSchedule.java new file mode 100644 index 000000000000..fdad8b302d0f --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleSchedule.java @@ -0,0 +1,71 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters for a schedule-based autoscale rule, consisting of an array of + * days + a time and capacity. + */ +public class AutoscaleSchedule { + /** + * Days of the week for a schedule-based autoscale rule. + */ + @JsonProperty(value = "days") + private List days; + + /** + * Time and capacity for a schedule-based autoscale rule. + */ + @JsonProperty(value = "timeAndCapacity") + private AutoscaleTimeAndCapacity timeAndCapacity; + + /** + * Get days of the week for a schedule-based autoscale rule. + * + * @return the days value + */ + public List days() { + return this.days; + } + + /** + * Set days of the week for a schedule-based autoscale rule. + * + * @param days the days value to set + * @return the AutoscaleSchedule object itself. + */ + public AutoscaleSchedule withDays(List days) { + this.days = days; + return this; + } + + /** + * Get time and capacity for a schedule-based autoscale rule. + * + * @return the timeAndCapacity value + */ + public AutoscaleTimeAndCapacity timeAndCapacity() { + return this.timeAndCapacity; + } + + /** + * Set time and capacity for a schedule-based autoscale rule. + * + * @param timeAndCapacity the timeAndCapacity value to set + * @return the AutoscaleSchedule object itself. + */ + public AutoscaleSchedule withTimeAndCapacity(AutoscaleTimeAndCapacity timeAndCapacity) { + this.timeAndCapacity = timeAndCapacity; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleTimeAndCapacity.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleTimeAndCapacity.java new file mode 100644 index 000000000000..d8bdf29a06c3 --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/AutoscaleTimeAndCapacity.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Time and capacity request parameters. + */ +public class AutoscaleTimeAndCapacity { + /** + * 24-hour time in the form xx:xx. + */ + @JsonProperty(value = "time") + private String time; + + /** + * The minimum instance count of the cluster. + */ + @JsonProperty(value = "minInstanceCount") + private Integer minInstanceCount; + + /** + * The maximum instance count of the cluster. + */ + @JsonProperty(value = "maxInstanceCount") + private Integer maxInstanceCount; + + /** + * Get 24-hour time in the form xx:xx. + * + * @return the time value + */ + public String time() { + return this.time; + } + + /** + * Set 24-hour time in the form xx:xx. + * + * @param time the time value to set + * @return the AutoscaleTimeAndCapacity object itself. + */ + public AutoscaleTimeAndCapacity withTime(String time) { + this.time = time; + return this; + } + + /** + * Get the minimum instance count of the cluster. + * + * @return the minInstanceCount value + */ + public Integer minInstanceCount() { + return this.minInstanceCount; + } + + /** + * Set the minimum instance count of the cluster. + * + * @param minInstanceCount the minInstanceCount value to set + * @return the AutoscaleTimeAndCapacity object itself. + */ + public AutoscaleTimeAndCapacity withMinInstanceCount(Integer minInstanceCount) { + this.minInstanceCount = minInstanceCount; + return this; + } + + /** + * Get the maximum instance count of the cluster. + * + * @return the maxInstanceCount value + */ + public Integer maxInstanceCount() { + return this.maxInstanceCount; + } + + /** + * Set the maximum instance count of the cluster. + * + * @param maxInstanceCount the maxInstanceCount value to set + * @return the AutoscaleTimeAndCapacity object itself. + */ + public AutoscaleTimeAndCapacity withMaxInstanceCount(Integer maxInstanceCount) { + this.maxInstanceCount = maxInstanceCount; + return this; + } + +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/DaysOfWeek.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/DaysOfWeek.java new file mode 100644 index 000000000000..85a890ed846f --- /dev/null +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/DaysOfWeek.java @@ -0,0 +1,68 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for DaysOfWeek. + */ +public enum DaysOfWeek { + /** Enum value Monday. */ + MONDAY("Monday"), + + /** Enum value Tuesday. */ + TUESDAY("Tuesday"), + + /** Enum value Wednesday. */ + WEDNESDAY("Wednesday"), + + /** Enum value Thursday. */ + THURSDAY("Thursday"), + + /** Enum value Friday. */ + FRIDAY("Friday"), + + /** Enum value Saturday. */ + SATURDAY("Saturday"), + + /** Enum value Sunday. */ + SUNDAY("Sunday"); + + /** The actual serialized value for a DaysOfWeek instance. */ + private String value; + + DaysOfWeek(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a DaysOfWeek instance. + * + * @param value the serialized value to parse. + * @return the parsed DaysOfWeek object, or null if unable to parse. + */ + @JsonCreator + public static DaysOfWeek fromString(String value) { + DaysOfWeek[] items = DaysOfWeek.values(); + for (DaysOfWeek item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Role.java b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Role.java index 069ad311501d..6a0dc92b3c5a 100644 --- a/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Role.java +++ b/hdinsight/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/Role.java @@ -34,6 +34,12 @@ public class Role { @JsonProperty(value = "targetInstanceCount") private Integer targetInstanceCount; + /** + * The autoscale configurations. + */ + @JsonProperty(value = "autoscale") + private Autoscale autoscaleConfiguration; + /** * The hardware profile. */ @@ -124,6 +130,26 @@ public Role withTargetInstanceCount(Integer targetInstanceCount) { return this; } + /** + * Get the autoscale configurations. + * + * @return the autoscaleConfiguration value + */ + public Autoscale autoscaleConfiguration() { + return this.autoscaleConfiguration; + } + + /** + * Set the autoscale configurations. + * + * @param autoscaleConfiguration the autoscaleConfiguration value to set + * @return the Role object itself. + */ + public Role withAutoscaleConfiguration(Autoscale autoscaleConfiguration) { + this.autoscaleConfiguration = autoscaleConfiguration; + return this; + } + /** * Get the hardware profile. *