ManagedComputeClusterWorkloadAutoScalingPolicy¶
- class oci.data_science.models.ManagedComputeClusterWorkloadAutoScalingPolicy(**kwargs)¶
Bases:
ManagedComputeClusterWorkloadScalingPolicyThe scaling policy to enable autoscaling of workload on the managed compute cluster type compute target .
Attributes:
A constant which can be used with the policy_type property of a ManagedComputeClusterWorkloadScalingPolicy.
A constant which can be used with the policy_type property of a ManagedComputeClusterWorkloadScalingPolicy.
[Required] Gets the auto_scaling_policies of this ManagedComputeClusterWorkloadAutoScalingPolicy.
Gets the is_enabled of this ManagedComputeClusterWorkloadAutoScalingPolicy.
[Required] Gets the policy_type of this ManagedComputeClusterWorkloadScalingPolicy.
Methods:
__init__(**kwargs)Initializes a new ManagedComputeClusterWorkloadAutoScalingPolicy object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- POLICY_TYPE_AUTOSCALING = 'AUTOSCALING'¶
A constant which can be used with the policy_type property of a ManagedComputeClusterWorkloadScalingPolicy. This constant has a value of “AUTOSCALING”
- POLICY_TYPE_FIXED_SIZE = 'FIXED_SIZE'¶
A constant which can be used with the policy_type property of a ManagedComputeClusterWorkloadScalingPolicy. This constant has a value of “FIXED_SIZE”
- __init__(**kwargs)¶
Initializes a new ManagedComputeClusterWorkloadAutoScalingPolicy object with values from keyword arguments. The default value of the
policy_typeattribute of this class isAUTOSCALINGand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
policy_type (str) – The value to assign to the policy_type property of this ManagedComputeClusterWorkloadAutoScalingPolicy. Allowed values for this property are: “FIXED_SIZE”, “AUTOSCALING”
is_enabled (bool) – The value to assign to the is_enabled property of this ManagedComputeClusterWorkloadAutoScalingPolicy.
auto_scaling_policies (list[oci.data_science.models.ManagedComputeClusterWorkloadAutoScalingPolicyDetails]) – The value to assign to the auto_scaling_policies property of this ManagedComputeClusterWorkloadAutoScalingPolicy.
- property auto_scaling_policies¶
[Required] Gets the auto_scaling_policies of this ManagedComputeClusterWorkloadAutoScalingPolicy. The list of autoscaling policy details.
- Returns
The auto_scaling_policies of this ManagedComputeClusterWorkloadAutoScalingPolicy.
- Return type
list[oci.data_science.models.ManagedComputeClusterWorkloadAutoScalingPolicyDetails]
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property is_enabled¶
Gets the is_enabled of this ManagedComputeClusterWorkloadAutoScalingPolicy. Whether the autoscaling policy is enabled.
- Returns
The is_enabled of this ManagedComputeClusterWorkloadAutoScalingPolicy.
- Return type
bool
- property policy_type¶
[Required] Gets the policy_type of this ManagedComputeClusterWorkloadScalingPolicy. The type of scaling policy.
Allowed values for this property are: “FIXED_SIZE”, “AUTOSCALING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The policy_type of this ManagedComputeClusterWorkloadScalingPolicy.
- Return type
str