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

[AutoPR hdinsight/resource-manager] [HDInsight] Add ListBillingSpecs API to HDInsight's stable and preview version #3936

Merged
merged 3 commits into from
Jun 28, 2019
Merged
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
Original file line number Diff line number Diff line change
@@ -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;
}

}
Original file line number Diff line number Diff line change
@@ -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;
}

}
Original file line number Diff line number Diff line change
@@ -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<AutoscaleSchedule> 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<AutoscaleSchedule> 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<AutoscaleSchedule> schedule) {
this.schedule = schedule;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -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<DaysOfWeek> 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<DaysOfWeek> 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<DaysOfWeek> 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;
}

}
Original file line number Diff line number Diff line change
@@ -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;
}

}
Loading