ManagedComputeClusterFixedSizeScalingPolicy¶
-
class
oci.data_science.models.ManagedComputeClusterFixedSizeScalingPolicy(**kwargs)¶ Bases:
oci.data_science.models.managed_compute_cluster_scaling_policy.ManagedComputeClusterScalingPolicyThe fixed size scaling policy.
Attributes
POLICY_TYPE_AUTOSCALINGstr(object=’’) -> str POLICY_TYPE_FIXED_SIZEstr(object=’’) -> str instance_count[Required] Gets the instance_count of this ManagedComputeClusterFixedSizeScalingPolicy. policy_type[Required] Gets the policy_type of this ManagedComputeClusterScalingPolicy. Methods
__init__(**kwargs)Initializes a new ManagedComputeClusterFixedSizeScalingPolicy 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'¶
-
POLICY_TYPE_FIXED_SIZE= 'FIXED_SIZE'¶
-
__init__(**kwargs)¶ Initializes a new ManagedComputeClusterFixedSizeScalingPolicy object with values from keyword arguments. The default value of the
policy_typeattribute of this class isFIXED_SIZEand 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 ManagedComputeClusterFixedSizeScalingPolicy. Allowed values for this property are: “FIXED_SIZE”, “AUTOSCALING”
- instance_count (int) – The value to assign to the instance_count property of this ManagedComputeClusterFixedSizeScalingPolicy.
-
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.
-
instance_count¶ [Required] Gets the instance_count of this ManagedComputeClusterFixedSizeScalingPolicy. The number of instances for the managed compute cluster type compute target.
Returns: The instance_count of this ManagedComputeClusterFixedSizeScalingPolicy. Return type: int
-
policy_type¶ [Required] Gets the policy_type of this ManagedComputeClusterScalingPolicy. 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 ManagedComputeClusterScalingPolicy. Return type: str
-