UpdateScheduledPolicyDetails¶
- class oci.autoscaling.models.UpdateScheduledPolicyDetails(**kwargs)¶
Bases:
UpdateAutoScalingPolicyDetailsUpdateScheduledPolicyDetails model.
Methods:
__init__(**kwargs)Initializes a new UpdateScheduledPolicyDetails 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:
Gets the capacity of this UpdateAutoScalingPolicyDetails.
Gets the display_name of this UpdateAutoScalingPolicyDetails.
Gets the execution_schedule of this UpdateScheduledPolicyDetails.
Gets the is_enabled of this UpdateAutoScalingPolicyDetails.
[Required] Gets the policy_type of this UpdateAutoScalingPolicyDetails.
Gets the resource_action of this UpdateScheduledPolicyDetails.
- __init__(**kwargs)¶
Initializes a new UpdateScheduledPolicyDetails object with values from keyword arguments. The default value of the
policy_typeattribute of this class isscheduledand 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 UpdateScheduledPolicyDetails.
capacity (oci.autoscaling.models.Capacity) – The value to assign to the capacity property of this UpdateScheduledPolicyDetails.
policy_type (str) – The value to assign to the policy_type property of this UpdateScheduledPolicyDetails.
is_enabled (bool) – The value to assign to the is_enabled property of this UpdateScheduledPolicyDetails.
execution_schedule (oci.autoscaling.models.ExecutionSchedule) – The value to assign to the execution_schedule property of this UpdateScheduledPolicyDetails.
resource_action (oci.autoscaling.models.ResourceAction) – The value to assign to the resource_action property of this UpdateScheduledPolicyDetails.
- property capacity¶
Gets the capacity of this UpdateAutoScalingPolicyDetails. The capacity requirements of the autoscaling policy.
- Returns
The capacity of this UpdateAutoScalingPolicyDetails.
- Return type
- property 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
- property execution_schedule¶
Gets the execution_schedule of this UpdateScheduledPolicyDetails. The schedule for executing the autoscaling policy.
- Returns
The execution_schedule of this UpdateScheduledPolicyDetails.
- Return type
- 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 UpdateAutoScalingPolicyDetails. Whether the autoscaling policy is enabled.
- Returns
The is_enabled of this UpdateAutoScalingPolicyDetails.
- Return type
bool
- property 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
- property resource_action¶
Gets the resource_action of this UpdateScheduledPolicyDetails.
- Returns
The resource_action of this UpdateScheduledPolicyDetails.
- Return type