UpdateThresholdPolicyDetails¶
-
class
oci.autoscaling.models.
UpdateThresholdPolicyDetails
(**kwargs)¶ Bases:
oci.autoscaling.models.update_auto_scaling_policy_details.UpdateAutoScalingPolicyDetails
UpdateThresholdPolicyDetails model.
Methods
__init__
(**kwargs)Initializes a new UpdateThresholdPolicyDetails 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. Attributes
capacity
Gets the capacity of this UpdateAutoScalingPolicyDetails. display_name
Gets the display_name of this UpdateAutoScalingPolicyDetails. is_enabled
Gets the is_enabled of this UpdateAutoScalingPolicyDetails. policy_type
[Required] Gets the policy_type of this UpdateAutoScalingPolicyDetails. rules
Gets the rules of this UpdateThresholdPolicyDetails. -
__init__
(**kwargs)¶ Initializes a new UpdateThresholdPolicyDetails object with values from keyword arguments. The default value of the
policy_type
attribute of this class isthreshold
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - display_name (str) – The value to assign to the display_name property of this UpdateThresholdPolicyDetails.
- capacity (oci.autoscaling.models.Capacity) – The value to assign to the capacity property of this UpdateThresholdPolicyDetails.
- policy_type (str) – The value to assign to the policy_type property of this UpdateThresholdPolicyDetails.
- is_enabled (bool) – The value to assign to the is_enabled property of this UpdateThresholdPolicyDetails.
- rules (list[oci.autoscaling.models.UpdateConditionDetails]) – The value to assign to the rules property of this UpdateThresholdPolicyDetails.
-
capacity
¶ Gets the capacity of this UpdateAutoScalingPolicyDetails. The capacity requirements of the autoscaling policy.
Returns: The capacity of this UpdateAutoScalingPolicyDetails. Return type: oci.autoscaling.models.Capacity
-
display_name
¶ Gets the display_name of this UpdateAutoScalingPolicyDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Returns: The display_name of this UpdateAutoScalingPolicyDetails. Return type: str
-
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.
-
is_enabled
¶ Gets the is_enabled of this UpdateAutoScalingPolicyDetails. Whether the autoscaling policy is enabled.
Returns: The is_enabled of this UpdateAutoScalingPolicyDetails. Return type: bool
-
policy_type
¶ [Required] Gets the policy_type of this UpdateAutoScalingPolicyDetails. Indicates the type of autoscaling policy.
Returns: The policy_type of this UpdateAutoScalingPolicyDetails. Return type: str
-
rules
¶ Gets the rules of this UpdateThresholdPolicyDetails.
Returns: The rules of this UpdateThresholdPolicyDetails. Return type: list[oci.autoscaling.models.UpdateConditionDetails]
-