CreateScheduledPolicyDetails

class oci.autoscaling.models.CreateScheduledPolicyDetails(**kwargs)

Bases: oci.autoscaling.models.create_auto_scaling_policy_details.CreateAutoScalingPolicyDetails

Creation details for a schedule-based autoscaling policy.

In a schedule-based autoscaling policy, an autoscaling action is triggered when execution time is current.

Methods

__init__(**kwargs) Initializes a new CreateScheduledPolicyDetails 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 [Required] Gets the capacity of this CreateAutoScalingPolicyDetails.
display_name Gets the display_name of this CreateAutoScalingPolicyDetails.
execution_schedule [Required] Gets the execution_schedule of this CreateScheduledPolicyDetails.
is_enabled Gets the is_enabled of this CreateAutoScalingPolicyDetails.
policy_type [Required] Gets the policy_type of this CreateAutoScalingPolicyDetails.
__init__(**kwargs)

Initializes a new CreateScheduledPolicyDetails object with values from keyword arguments. The default value of the policy_type attribute of this class is scheduled and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • capacity (Capacity) – The value to assign to the capacity property of this CreateScheduledPolicyDetails.
  • display_name (str) – The value to assign to the display_name property of this CreateScheduledPolicyDetails.
  • policy_type (str) – The value to assign to the policy_type property of this CreateScheduledPolicyDetails.
  • is_enabled (bool) – The value to assign to the is_enabled property of this CreateScheduledPolicyDetails.
  • execution_schedule (ExecutionSchedule) – The value to assign to the execution_schedule property of this CreateScheduledPolicyDetails.
capacity

[Required] Gets the capacity of this CreateAutoScalingPolicyDetails. The capacity requirements of the autoscaling policy.

Returns:The capacity of this CreateAutoScalingPolicyDetails.
Return type:Capacity
display_name

Gets the display_name of this CreateAutoScalingPolicyDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns:The display_name of this CreateAutoScalingPolicyDetails.
Return type:str
execution_schedule

[Required] Gets the execution_schedule of this CreateScheduledPolicyDetails.

Returns:The execution_schedule of this CreateScheduledPolicyDetails.
Return type:ExecutionSchedule
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 CreateAutoScalingPolicyDetails. Boolean field indicating whether this policy is enabled or not.

Returns:The is_enabled of this CreateAutoScalingPolicyDetails.
Return type:bool
policy_type

[Required] Gets the policy_type of this CreateAutoScalingPolicyDetails. The type of autoscaling policy.

Returns:The policy_type of this CreateAutoScalingPolicyDetails.
Return type:str