ManagedComputeClusterWorkloadScalingPolicy

class oci.data_science.models.ManagedComputeClusterWorkloadScalingPolicy(**kwargs)

Bases: object

The scaling policy to apply to workloads on managed compute cluster type compute target.

Attributes:

POLICY_TYPE_AUTOSCALING

A constant which can be used with the policy_type property of a ManagedComputeClusterWorkloadScalingPolicy.

POLICY_TYPE_FIXED_SIZE

A constant which can be used with the policy_type property of a ManagedComputeClusterWorkloadScalingPolicy.

policy_type

[Required] Gets the policy_type of this ManagedComputeClusterWorkloadScalingPolicy.

Methods:

__init__(**kwargs)

Initializes a new ManagedComputeClusterWorkloadScalingPolicy 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 ManagedComputeClusterWorkloadScalingPolicy object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 ManagedComputeClusterWorkloadScalingPolicy. 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’.

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 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