UpdateScheduleDetails¶
- class oci.resource_scheduler.models.UpdateScheduleDetails(**kwargs)¶
Bases:
objectThis is the data to update a schedule.
Attributes:
A constant which can be used with the action property of a UpdateScheduleDetails.
A constant which can be used with the action property of a UpdateScheduleDetails.
A constant which can be used with the action property of a UpdateScheduleDetails.
A constant which can be used with the recurrence_type property of a UpdateScheduleDetails.
A constant which can be used with the recurrence_type property of a UpdateScheduleDetails.
Gets the action of this UpdateScheduleDetails.
Gets the defined_tags of this UpdateScheduleDetails.
Gets the description of this UpdateScheduleDetails.
Gets the display_name of this UpdateScheduleDetails.
Gets the freeform_tags of this UpdateScheduleDetails.
Gets the local_time_zone of this UpdateScheduleDetails.
Gets the recurrence_details of this UpdateScheduleDetails.
Gets the recurrence_type of this UpdateScheduleDetails.
Gets the resource_filters of this UpdateScheduleDetails.
Gets the resources of this UpdateScheduleDetails.
Gets the time_ends of this UpdateScheduleDetails.
Gets the time_starts of this UpdateScheduleDetails.
Methods:
__init__(**kwargs)Initializes a new UpdateScheduleDetails object with values from keyword arguments.
- ACTION_BACKUP_RESOURCE = 'BACKUP_RESOURCE'¶
A constant which can be used with the action property of a UpdateScheduleDetails. This constant has a value of “BACKUP_RESOURCE”
- ACTION_START_RESOURCE = 'START_RESOURCE'¶
A constant which can be used with the action property of a UpdateScheduleDetails. This constant has a value of “START_RESOURCE”
- ACTION_STOP_RESOURCE = 'STOP_RESOURCE'¶
A constant which can be used with the action property of a UpdateScheduleDetails. This constant has a value of “STOP_RESOURCE”
- RECURRENCE_TYPE_CRON = 'CRON'¶
A constant which can be used with the recurrence_type property of a UpdateScheduleDetails. This constant has a value of “CRON”
- RECURRENCE_TYPE_ICAL = 'ICAL'¶
A constant which can be used with the recurrence_type property of a UpdateScheduleDetails. This constant has a value of “ICAL”
- __init__(**kwargs)¶
Initializes a new UpdateScheduleDetails object with values from keyword arguments. 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 UpdateScheduleDetails.
description (str) – The value to assign to the description property of this UpdateScheduleDetails.
action (str) – The value to assign to the action property of this UpdateScheduleDetails. Allowed values for this property are: “START_RESOURCE”, “STOP_RESOURCE”, “BACKUP_RESOURCE”
recurrence_details (str) – The value to assign to the recurrence_details property of this UpdateScheduleDetails.
recurrence_type (str) – The value to assign to the recurrence_type property of this UpdateScheduleDetails. Allowed values for this property are: “CRON”, “ICAL”
resource_filters (list[oci.resource_scheduler.models.ResourceFilter]) – The value to assign to the resource_filters property of this UpdateScheduleDetails.
resources (list[oci.resource_scheduler.models.Resource]) – The value to assign to the resources property of this UpdateScheduleDetails.
time_starts (datetime) – The value to assign to the time_starts property of this UpdateScheduleDetails.
time_ends (datetime) – The value to assign to the time_ends property of this UpdateScheduleDetails.
local_time_zone (str) – The value to assign to the local_time_zone property of this UpdateScheduleDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this UpdateScheduleDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this UpdateScheduleDetails.
- property action¶
Gets the action of this UpdateScheduleDetails. This is the action that will be executed by the schedule.
Allowed values for this property are: “START_RESOURCE”, “STOP_RESOURCE”, “BACKUP_RESOURCE”
- Returns
The action of this UpdateScheduleDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this UpdateScheduleDetails. These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
- Returns
The defined_tags of this UpdateScheduleDetails.
- Return type
dict(str, dict(str, object))
- property description¶
Gets the description of this UpdateScheduleDetails. This is the description of the schedule.
- Returns
The description of this UpdateScheduleDetails.
- Return type
str
- property display_name¶
Gets the display_name of this UpdateScheduleDetails. This is a user-friendly name for the schedule. It does not have to be unique, and it’s changeable.
- Returns
The display_name of this UpdateScheduleDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this UpdateScheduleDetails. These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
- Returns
The freeform_tags of this UpdateScheduleDetails.
- Return type
dict(str, str)
- property local_time_zone¶
Gets the local_time_zone of this UpdateScheduleDetails. IANA timezone identifier (e.g., ‘America/New_York’, ‘UTC’, ‘Europe/London’). This determines the timezone context for evaluating the recurrence expression.
- Returns
The local_time_zone of this UpdateScheduleDetails.
- Return type
str
- property recurrence_details¶
Gets the recurrence_details of this UpdateScheduleDetails. This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
- Returns
The recurrence_details of this UpdateScheduleDetails.
- Return type
str
- property recurrence_type¶
Gets the recurrence_type of this UpdateScheduleDetails. Type of recurrence of a schedule
Allowed values for this property are: “CRON”, “ICAL”
- Returns
The recurrence_type of this UpdateScheduleDetails.
- Return type
str
- property resource_filters¶
Gets the resource_filters of this UpdateScheduleDetails. This is a list of resources filters. The schedule will be applied to resources matching all of them.
- Returns
The resource_filters of this UpdateScheduleDetails.
- Return type
- property resources¶
Gets the resources of this UpdateScheduleDetails. This is the list of resources to which the scheduled operation is applied.
- Returns
The resources of this UpdateScheduleDetails.
- Return type