ScaleProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ScaleProfile

Implements

public final class ScaleProfile
implements JsonSerializable<ScaleProfile>

Specifications on how to scale a VirtualMachines agent pool.

Constructor Summary

Constructor Description
ScaleProfile()

Creates an instance of ScaleProfile class.

Method Summary

Modifier and Type Method and Description
List<AutoScaleProfile> autoscale()

Get the autoscale property: Specifications on how to auto-scale the VirtualMachines agent pool within a predefined size range.

static ScaleProfile fromJson(JsonReader jsonReader)

Reads an instance of ScaleProfile from the JsonReader.

List<ManualScaleProfile> manual()

Get the manual property: Specifications on how to scale the VirtualMachines agent pool to a fixed size.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScaleProfile withAutoscale(List<AutoScaleProfile> autoscale)

Set the autoscale property: Specifications on how to auto-scale the VirtualMachines agent pool within a predefined size range.

ScaleProfile withManual(List<ManualScaleProfile> manual)

Set the manual property: Specifications on how to scale the VirtualMachines agent pool to a fixed size.

Methods inherited from java.lang.Object

Constructor Details

ScaleProfile

public ScaleProfile()

Creates an instance of ScaleProfile class.

Method Details

autoscale

public List<AutoScaleProfile> autoscale()

Get the autoscale property: Specifications on how to auto-scale the VirtualMachines agent pool within a predefined size range. Each profile targets a specific VM SKU and is evaluated independently. Scaling decisions across profiles are governed by the cluster autoscaler expander, configurable via `ManagedCluster.properties.autoScalerProfile.expander`.

Returns:

the autoscale value.

fromJson

public static ScaleProfile fromJson(JsonReader jsonReader)

Reads an instance of ScaleProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScaleProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ScaleProfile.

manual

public List<ManualScaleProfile> manual()

Get the manual property: Specifications on how to scale the VirtualMachines agent pool to a fixed size.

Returns:

the manual value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAutoscale

public ScaleProfile withAutoscale(List<AutoScaleProfile> autoscale)

Set the autoscale property: Specifications on how to auto-scale the VirtualMachines agent pool within a predefined size range. Each profile targets a specific VM SKU and is evaluated independently. Scaling decisions across profiles are governed by the cluster autoscaler expander, configurable via `ManagedCluster.properties.autoScalerProfile.expander`.

Parameters:

autoscale - the autoscale value to set.

Returns:

the ScaleProfile object itself.

withManual

public ScaleProfile withManual(List<ManualScaleProfile> manual)

Set the manual property: Specifications on how to scale the VirtualMachines agent pool to a fixed size.

Parameters:

manual - the manual value to set.

Returns:

the ScaleProfile object itself.

Applies to