UpdateScheduledJobDetails¶
-
class
oci.os_management_hub.models.
UpdateScheduledJobDetails
(**kwargs)¶ Bases:
object
Provides the information used to update a scheduled job.
Attributes
SCHEDULE_TYPE_ONETIME
A constant which can be used with the schedule_type property of a UpdateScheduledJobDetails. SCHEDULE_TYPE_RECURRING
A constant which can be used with the schedule_type property of a UpdateScheduledJobDetails. defined_tags
Gets the defined_tags of this UpdateScheduledJobDetails. description
Gets the description of this UpdateScheduledJobDetails. display_name
Gets the display_name of this UpdateScheduledJobDetails. freeform_tags
Gets the freeform_tags of this UpdateScheduledJobDetails. operations
Gets the operations of this UpdateScheduledJobDetails. recurring_rule
Gets the recurring_rule of this UpdateScheduledJobDetails. retry_intervals
Gets the retry_intervals of this UpdateScheduledJobDetails. schedule_type
Gets the schedule_type of this UpdateScheduledJobDetails. time_next_execution
Gets the time_next_execution of this UpdateScheduledJobDetails. Methods
__init__
(**kwargs)Initializes a new UpdateScheduledJobDetails object with values from keyword arguments. -
SCHEDULE_TYPE_ONETIME
= 'ONETIME'¶ A constant which can be used with the schedule_type property of a UpdateScheduledJobDetails. This constant has a value of “ONETIME”
-
SCHEDULE_TYPE_RECURRING
= 'RECURRING'¶ A constant which can be used with the schedule_type property of a UpdateScheduledJobDetails. This constant has a value of “RECURRING”
-
__init__
(**kwargs)¶ Initializes a new UpdateScheduledJobDetails 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 UpdateScheduledJobDetails.
- description (str) – The value to assign to the description property of this UpdateScheduledJobDetails.
- schedule_type (str) – The value to assign to the schedule_type property of this UpdateScheduledJobDetails. Allowed values for this property are: “ONETIME”, “RECURRING”
- time_next_execution (datetime) – The value to assign to the time_next_execution property of this UpdateScheduledJobDetails.
- recurring_rule (str) – The value to assign to the recurring_rule property of this UpdateScheduledJobDetails.
- operations (list[oci.os_management_hub.models.ScheduledJobOperation]) – The value to assign to the operations property of this UpdateScheduledJobDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this UpdateScheduledJobDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this UpdateScheduledJobDetails.
- retry_intervals (list[int]) – The value to assign to the retry_intervals property of this UpdateScheduledJobDetails.
Gets the defined_tags of this UpdateScheduledJobDetails. 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 UpdateScheduledJobDetails. Return type: dict(str, dict(str, object))
-
description
¶ Gets the description of this UpdateScheduledJobDetails. User-specified description for the scheduled job. Avoid entering confidential information.
Returns: The description of this UpdateScheduledJobDetails. Return type: str
-
display_name
¶ Gets the display_name of this UpdateScheduledJobDetails. User-friendly name for the scheduled job. Avoid entering confidential information.
Returns: The display_name of this UpdateScheduledJobDetails. Return type: str
Gets the freeform_tags of this UpdateScheduledJobDetails. 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 UpdateScheduledJobDetails. Return type: dict(str, str)
-
operations
¶ Gets the operations of this UpdateScheduledJobDetails. The list of operations this scheduled job needs to perform. A scheduled job supports only one operation type, unless it is one of the following: * UPDATE_PACKAGES * UPDATE_ALL * UPDATE_SECURITY * UPDATE_BUGFIX * UPDATE_ENHANCEMENT * UPDATE_OTHER * UPDATE_KSPLICE_USERSPACE * UPDATE_KSPLICE_KERNEL
Returns: The operations of this UpdateScheduledJobDetails. Return type: list[oci.os_management_hub.models.ScheduledJobOperation]
-
recurring_rule
¶ Gets the recurring_rule of this UpdateScheduledJobDetails. The frequency schedule for a recurring scheduled job.
Returns: The recurring_rule of this UpdateScheduledJobDetails. Return type: str
-
retry_intervals
¶ Gets the retry_intervals of this UpdateScheduledJobDetails. The amount of time in minutes to wait until retrying the scheduled job. If set, the service will automatically retry a failed scheduled job after the interval. For example, you could set the interval to [2,5,10]. If the initial execution of the job fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
Returns: The retry_intervals of this UpdateScheduledJobDetails. Return type: list[int]
-
schedule_type
¶ Gets the schedule_type of this UpdateScheduledJobDetails. The type of scheduling frequency for the job.
Allowed values for this property are: “ONETIME”, “RECURRING”
Returns: The schedule_type of this UpdateScheduledJobDetails. Return type: str
-