ExecutionWindow¶
- class oci.database.models.ExecutionWindow(**kwargs)¶
Bases:
objectDetails of an execution window.
Attributes:
A constant which can be used with the lifecycle_state property of a ExecutionWindow.
A constant which can be used with the lifecycle_state property of a ExecutionWindow.
A constant which can be used with the lifecycle_state property of a ExecutionWindow.
A constant which can be used with the lifecycle_state property of a ExecutionWindow.
A constant which can be used with the lifecycle_state property of a ExecutionWindow.
A constant which can be used with the lifecycle_state property of a ExecutionWindow.
A constant which can be used with the lifecycle_state property of a ExecutionWindow.
A constant which can be used with the lifecycle_state property of a ExecutionWindow.
A constant which can be used with the lifecycle_state property of a ExecutionWindow.
A constant which can be used with the lifecycle_state property of a ExecutionWindow.
A constant which can be used with the lifecycle_state property of a ExecutionWindow.
A constant which can be used with the lifecycle_substate property of a ExecutionWindow.
A constant which can be used with the lifecycle_substate property of a ExecutionWindow.
A constant which can be used with the lifecycle_substate property of a ExecutionWindow.
A constant which can be used with the lifecycle_substate property of a ExecutionWindow.
A constant which can be used with the lifecycle_substate property of a ExecutionWindow.
A constant which can be used with the window_type property of a ExecutionWindow.
A constant which can be used with the window_type property of a ExecutionWindow.
[Required] Gets the compartment_id of this ExecutionWindow.
Gets the deferred_execution_window_id of this ExecutionWindow.
Gets the defined_tags of this ExecutionWindow.
Gets the description of this ExecutionWindow.
[Required] Gets the display_name of this ExecutionWindow.
Gets the estimated_time_in_mins of this ExecutionWindow.
[Required] Gets the execution_resource_id of this ExecutionWindow.
Gets the freeform_tags of this ExecutionWindow.
[Required] Gets the id of this ExecutionWindow.
Gets the is_enforced_duration of this ExecutionWindow.
Gets the lifecycle_details of this ExecutionWindow.
[Required] Gets the lifecycle_state of this ExecutionWindow.
Gets the lifecycle_substate of this ExecutionWindow.
Gets the system_tags of this ExecutionWindow.
Gets the time_created of this ExecutionWindow.
Gets the time_ended of this ExecutionWindow.
[Required] Gets the time_scheduled of this ExecutionWindow.
Gets the time_started of this ExecutionWindow.
Gets the time_updated of this ExecutionWindow.
Gets the total_time_taken_in_mins of this ExecutionWindow.
Gets the window_details of this ExecutionWindow.
[Required] Gets the window_duration_in_mins of this ExecutionWindow.
Gets the window_type of this ExecutionWindow.
Methods:
__init__(**kwargs)Initializes a new ExecutionWindow object with values from keyword arguments.
- LIFECYCLE_STATE_CANCELED = 'CANCELED'¶
A constant which can be used with the lifecycle_state property of a ExecutionWindow. This constant has a value of “CANCELED”
- LIFECYCLE_STATE_CREATED = 'CREATED'¶
A constant which can be used with the lifecycle_state property of a ExecutionWindow. This constant has a value of “CREATED”
- LIFECYCLE_STATE_CREATING = 'CREATING'¶
A constant which can be used with the lifecycle_state property of a ExecutionWindow. This constant has a value of “CREATING”
- LIFECYCLE_STATE_DELETED = 'DELETED'¶
A constant which can be used with the lifecycle_state property of a ExecutionWindow. This constant has a value of “DELETED”
- LIFECYCLE_STATE_DELETING = 'DELETING'¶
A constant which can be used with the lifecycle_state property of a ExecutionWindow. This constant has a value of “DELETING”
- LIFECYCLE_STATE_FAILED = 'FAILED'¶
A constant which can be used with the lifecycle_state property of a ExecutionWindow. This constant has a value of “FAILED”
- LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS'¶
A constant which can be used with the lifecycle_state property of a ExecutionWindow. This constant has a value of “IN_PROGRESS”
- LIFECYCLE_STATE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS'¶
A constant which can be used with the lifecycle_state property of a ExecutionWindow. This constant has a value of “PARTIAL_SUCCESS”
- LIFECYCLE_STATE_SCHEDULED = 'SCHEDULED'¶
A constant which can be used with the lifecycle_state property of a ExecutionWindow. This constant has a value of “SCHEDULED”
- LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'¶
A constant which can be used with the lifecycle_state property of a ExecutionWindow. This constant has a value of “SUCCEEDED”
- LIFECYCLE_STATE_UPDATING = 'UPDATING'¶
A constant which can be used with the lifecycle_state property of a ExecutionWindow. This constant has a value of “UPDATING”
- LIFECYCLE_SUBSTATE_CANCELED_BY_OPS = 'CANCELED_BY_OPS'¶
A constant which can be used with the lifecycle_substate property of a ExecutionWindow. This constant has a value of “CANCELED_BY_OPS”
- LIFECYCLE_SUBSTATE_DURATION_EXCEEDED = 'DURATION_EXCEEDED'¶
A constant which can be used with the lifecycle_substate property of a ExecutionWindow. This constant has a value of “DURATION_EXCEEDED”
- LIFECYCLE_SUBSTATE_MAINTENANCE_IN_PROGRESS = 'MAINTENANCE_IN_PROGRESS'¶
A constant which can be used with the lifecycle_substate property of a ExecutionWindow. This constant has a value of “MAINTENANCE_IN_PROGRESS”
- LIFECYCLE_SUBSTATE_RESCHEDULED = 'RESCHEDULED'¶
A constant which can be used with the lifecycle_substate property of a ExecutionWindow. This constant has a value of “RESCHEDULED”
- LIFECYCLE_SUBSTATE_WAITING = 'WAITING'¶
A constant which can be used with the lifecycle_substate property of a ExecutionWindow. This constant has a value of “WAITING”
- WINDOW_TYPE_PLANNED = 'PLANNED'¶
A constant which can be used with the window_type property of a ExecutionWindow. This constant has a value of “PLANNED”
- WINDOW_TYPE_UNPLANNED = 'UNPLANNED'¶
A constant which can be used with the window_type property of a ExecutionWindow. This constant has a value of “UNPLANNED”
- __init__(**kwargs)¶
Initializes a new ExecutionWindow object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (str) – The value to assign to the id property of this ExecutionWindow.
execution_resource_id (str) – The value to assign to the execution_resource_id property of this ExecutionWindow.
deferred_execution_window_id (str) – The value to assign to the deferred_execution_window_id property of this ExecutionWindow.
compartment_id (str) – The value to assign to the compartment_id property of this ExecutionWindow.
display_name (str) – The value to assign to the display_name property of this ExecutionWindow.
description (str) – The value to assign to the description property of this ExecutionWindow.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this ExecutionWindow. Allowed values for this property are: “CREATED”, “SCHEDULED”, “IN_PROGRESS”, “FAILED”, “CANCELED”, “UPDATING”, “DELETED”, “SUCCEEDED”, “PARTIAL_SUCCESS”, “CREATING”, “DELETING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
lifecycle_substate (str) – The value to assign to the lifecycle_substate property of this ExecutionWindow. Allowed values for this property are: “DURATION_EXCEEDED”, “MAINTENANCE_IN_PROGRESS”, “WAITING”, “RESCHEDULED”, “CANCELED_BY_OPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
lifecycle_details (str) – The value to assign to the lifecycle_details property of this ExecutionWindow.
time_created (datetime) – The value to assign to the time_created property of this ExecutionWindow.
time_updated (datetime) – The value to assign to the time_updated property of this ExecutionWindow.
time_started (datetime) – The value to assign to the time_started property of this ExecutionWindow.
time_ended (datetime) – The value to assign to the time_ended property of this ExecutionWindow.
time_scheduled (datetime) – The value to assign to the time_scheduled property of this ExecutionWindow.
window_duration_in_mins (int) – The value to assign to the window_duration_in_mins property of this ExecutionWindow.
is_enforced_duration (bool) – The value to assign to the is_enforced_duration property of this ExecutionWindow.
estimated_time_in_mins (int) – The value to assign to the estimated_time_in_mins property of this ExecutionWindow.
total_time_taken_in_mins (int) – The value to assign to the total_time_taken_in_mins property of this ExecutionWindow.
window_type (str) – The value to assign to the window_type property of this ExecutionWindow. Allowed values for this property are: “PLANNED”, “UNPLANNED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this ExecutionWindow.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this ExecutionWindow.
system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this ExecutionWindow.
window_details (str) – The value to assign to the window_details property of this ExecutionWindow.
- property compartment_id¶
[Required] Gets the compartment_id of this ExecutionWindow. The OCID of the compartment.
- Returns
The compartment_id of this ExecutionWindow.
- Return type
str
- property deferred_execution_window_id¶
Gets the deferred_execution_window_id of this ExecutionWindow. The OCID of the new execution window created as part of reschedule for the execution window failure.
- Returns
The deferred_execution_window_id of this ExecutionWindow.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this ExecutionWindow. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Returns
The defined_tags of this ExecutionWindow.
- Return type
dict(str, dict(str, object))
- property description¶
Gets the description of this ExecutionWindow. Description of the execution window.
- Returns
The description of this ExecutionWindow.
- Return type
str
- property display_name¶
[Required] Gets the display_name of this ExecutionWindow. The user-friendly name for the execution window. The name does not need to be unique.
- Returns
The display_name of this ExecutionWindow.
- Return type
str
- property estimated_time_in_mins¶
Gets the estimated_time_in_mins of this ExecutionWindow. The estimated time of the execution window in minutes.
- Returns
The estimated_time_in_mins of this ExecutionWindow.
- Return type
int
- property execution_resource_id¶
[Required] Gets the execution_resource_id of this ExecutionWindow. The OCID of the execution resource the execution window belongs to.
- Returns
The execution_resource_id of this ExecutionWindow.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this ExecutionWindow. 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 ExecutionWindow.
- Return type
dict(str, str)
- property id¶
[Required] Gets the id of this ExecutionWindow. The OCID of the execution window.
- Returns
The id of this ExecutionWindow.
- Return type
str
- property is_enforced_duration¶
Gets the is_enforced_duration of this ExecutionWindow. Indicates if duration the user plans to allocate for scheduling window is strictly enforced. The default value is FALSE.
- Returns
The is_enforced_duration of this ExecutionWindow.
- Return type
bool
- property lifecycle_details¶
Gets the lifecycle_details of this ExecutionWindow. Additional information about the current lifecycle state.
- Returns
The lifecycle_details of this ExecutionWindow.
- Return type
str
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this ExecutionWindow. The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS.
Allowed values for this property are: “CREATED”, “SCHEDULED”, “IN_PROGRESS”, “FAILED”, “CANCELED”, “UPDATING”, “DELETED”, “SUCCEEDED”, “PARTIAL_SUCCESS”, “CREATING”, “DELETING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this ExecutionWindow.
- Return type
str
- property lifecycle_substate¶
Gets the lifecycle_substate of this ExecutionWindow. The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING.
Allowed values for this property are: “DURATION_EXCEEDED”, “MAINTENANCE_IN_PROGRESS”, “WAITING”, “RESCHEDULED”, “CANCELED_BY_OPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_substate of this ExecutionWindow.
- Return type
str
- property system_tags¶
Gets the system_tags of this ExecutionWindow. System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Returns
The system_tags of this ExecutionWindow.
- Return type
dict(str, dict(str, object))
- property time_created¶
Gets the time_created of this ExecutionWindow. The date and time the execution window was created.
- Returns
The time_created of this ExecutionWindow.
- Return type
datetime
- property time_ended¶
Gets the time_ended of this ExecutionWindow. The date and time that the execution window ended.
- Returns
The time_ended of this ExecutionWindow.
- Return type
datetime
- property time_scheduled¶
[Required] Gets the time_scheduled of this ExecutionWindow. The scheduled start date and time of the execution window.
- Returns
The time_scheduled of this ExecutionWindow.
- Return type
datetime
- property time_started¶
Gets the time_started of this ExecutionWindow. The date and time that the execution window was started.
- Returns
The time_started of this ExecutionWindow.
- Return type
datetime
- property time_updated¶
Gets the time_updated of this ExecutionWindow. The last date and time that the execution window was updated.
- Returns
The time_updated of this ExecutionWindow.
- Return type
datetime
- property total_time_taken_in_mins¶
Gets the total_time_taken_in_mins of this ExecutionWindow. The total time taken by corresponding resource activity in minutes.
- Returns
The total_time_taken_in_mins of this ExecutionWindow.
- Return type
int
- property window_details¶
Gets the window_details of this ExecutionWindow. A message that gives a description of its creation. For example, if the window type is unplanned, the message must specify the window display name. If the window has been deferred from another window, the message should additionally reference the deferred window’s display name and provide the justification for creating the unplanned window.
- Returns
The window_details of this ExecutionWindow.
- Return type
str
- property window_duration_in_mins¶
[Required] Gets the window_duration_in_mins of this ExecutionWindow. Duration window allows user to set a duration they plan to allocate for Scheduling window. The duration is in minutes.
- Returns
The window_duration_in_mins of this ExecutionWindow.
- Return type
int
- property window_type¶
Gets the window_type of this ExecutionWindow. The execution window is of PLANNED or UNPLANNED type.
Allowed values for this property are: “PLANNED”, “UNPLANNED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The window_type of this ExecutionWindow.
- Return type
str