ScheduledPolicy¶
-
class
oci.autoscaling.models.ScheduledPolicy(**kwargs)¶ Bases:
oci.autoscaling.models.auto_scaling_policy.AutoScalingPolicyAn autoscaling policy that defines execution schedules for an autoscaling configuration.
Methods
__init__(**kwargs)Initializes a new ScheduledPolicy 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
capacityGets the capacity of this AutoScalingPolicy. display_nameGets the display_name of this AutoScalingPolicy. execution_schedule[Required] Gets the execution_schedule of this ScheduledPolicy. idGets the id of this AutoScalingPolicy. is_enabledGets the is_enabled of this AutoScalingPolicy. policy_type[Required] Gets the policy_type of this AutoScalingPolicy. resource_actionGets the resource_action of this ScheduledPolicy. time_created[Required] Gets the time_created of this AutoScalingPolicy. -
__init__(**kwargs)¶ Initializes a new ScheduledPolicy 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: - capacity (oci.autoscaling.models.Capacity) – The value to assign to the capacity property of this ScheduledPolicy.
- id (str) – The value to assign to the id property of this ScheduledPolicy.
- display_name (str) – The value to assign to the display_name property of this ScheduledPolicy.
- policy_type (str) – The value to assign to the policy_type property of this ScheduledPolicy.
- time_created (datetime) – The value to assign to the time_created property of this ScheduledPolicy.
- is_enabled (bool) – The value to assign to the is_enabled property of this ScheduledPolicy.
- execution_schedule (oci.autoscaling.models.ExecutionSchedule) – The value to assign to the execution_schedule property of this ScheduledPolicy.
- resource_action (oci.autoscaling.models.ResourceAction) – The value to assign to the resource_action property of this ScheduledPolicy.
-
capacity¶ Gets the capacity of this AutoScalingPolicy. The capacity requirements of the autoscaling policy.
Returns: The capacity of this AutoScalingPolicy. Return type: oci.autoscaling.models.Capacity
-
display_name¶ Gets the display_name of this AutoScalingPolicy. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Returns: The display_name of this AutoScalingPolicy. Return type: str
-
execution_schedule¶ [Required] Gets the execution_schedule of this ScheduledPolicy. The schedule for executing the autoscaling policy.
Returns: The execution_schedule of this ScheduledPolicy. Return type: oci.autoscaling.models.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.
-
id¶ Gets the id of this AutoScalingPolicy. The ID of the autoscaling policy that is assigned after creation.
Returns: The id of this AutoScalingPolicy. Return type: str
-
is_enabled¶ Gets the is_enabled of this AutoScalingPolicy. Whether the autoscaling policy is enabled.
Returns: The is_enabled of this AutoScalingPolicy. Return type: bool
-
policy_type¶ [Required] Gets the policy_type of this AutoScalingPolicy. The type of autoscaling policy.
Returns: The policy_type of this AutoScalingPolicy. Return type: str
-
resource_action¶ Gets the resource_action of this ScheduledPolicy.
Returns: The resource_action of this ScheduledPolicy. Return type: oci.autoscaling.models.ResourceAction
-
time_created¶ [Required] Gets the time_created of this AutoScalingPolicy. The date and time the autoscaling configuration was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z
Returns: The time_created of this AutoScalingPolicy. Return type: datetime
-