ScheduledAction¶
-
class
oci.database.models.
ScheduledAction
(**kwargs)¶ Bases:
object
Details of a Scheduled Action.
Attributes
ACTION_TYPE_DB_SERVER_FULL_SOFTWARE_UPDATE
A constant which can be used with the action_type property of a ScheduledAction. ACTION_TYPE_NETWORK_SWITCH_FULL_SOFTWARE_UPDATE
A constant which can be used with the action_type property of a ScheduledAction. ACTION_TYPE_STORAGE_SERVER_FULL_SOFTWARE_UPDATE
A constant which can be used with the action_type property of a ScheduledAction. LIFECYCLE_STATE_AVAILABLE
A constant which can be used with the lifecycle_state property of a ScheduledAction. LIFECYCLE_STATE_CREATING
A constant which can be used with the lifecycle_state property of a ScheduledAction. LIFECYCLE_STATE_DELETED
A constant which can be used with the lifecycle_state property of a ScheduledAction. LIFECYCLE_STATE_DELETING
A constant which can be used with the lifecycle_state property of a ScheduledAction. LIFECYCLE_STATE_FAILED
A constant which can be used with the lifecycle_state property of a ScheduledAction. LIFECYCLE_STATE_NEEDS_ATTENTION
A constant which can be used with the lifecycle_state property of a ScheduledAction. LIFECYCLE_STATE_UPDATING
A constant which can be used with the lifecycle_state property of a ScheduledAction. action_members
Gets the action_members of this ScheduledAction. action_order
[Required] Gets the action_order of this ScheduledAction. action_params
Gets the action_params of this ScheduledAction. action_type
[Required] Gets the action_type of this ScheduledAction. compartment_id
[Required] Gets the compartment_id of this ScheduledAction. defined_tags
Gets the defined_tags of this ScheduledAction. display_name
[Required] Gets the display_name of this ScheduledAction. estimated_time_in_mins
Gets the estimated_time_in_mins of this ScheduledAction. freeform_tags
Gets the freeform_tags of this ScheduledAction. id
[Required] Gets the id of this ScheduledAction. lifecycle_state
[Required] Gets the lifecycle_state of this ScheduledAction. scheduling_plan_id
[Required] Gets the scheduling_plan_id of this ScheduledAction. scheduling_window_id
Gets the scheduling_window_id of this ScheduledAction. system_tags
Gets the system_tags of this ScheduledAction. time_created
[Required] Gets the time_created of this ScheduledAction. time_updated
Gets the time_updated of this ScheduledAction. Methods
__init__
(**kwargs)Initializes a new ScheduledAction object with values from keyword arguments. -
ACTION_TYPE_DB_SERVER_FULL_SOFTWARE_UPDATE
= 'DB_SERVER_FULL_SOFTWARE_UPDATE'¶ A constant which can be used with the action_type property of a ScheduledAction. This constant has a value of “DB_SERVER_FULL_SOFTWARE_UPDATE”
-
ACTION_TYPE_NETWORK_SWITCH_FULL_SOFTWARE_UPDATE
= 'NETWORK_SWITCH_FULL_SOFTWARE_UPDATE'¶ A constant which can be used with the action_type property of a ScheduledAction. This constant has a value of “NETWORK_SWITCH_FULL_SOFTWARE_UPDATE”
-
ACTION_TYPE_STORAGE_SERVER_FULL_SOFTWARE_UPDATE
= 'STORAGE_SERVER_FULL_SOFTWARE_UPDATE'¶ A constant which can be used with the action_type property of a ScheduledAction. This constant has a value of “STORAGE_SERVER_FULL_SOFTWARE_UPDATE”
-
LIFECYCLE_STATE_AVAILABLE
= 'AVAILABLE'¶ A constant which can be used with the lifecycle_state property of a ScheduledAction. This constant has a value of “AVAILABLE”
-
LIFECYCLE_STATE_CREATING
= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a ScheduledAction. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a ScheduledAction. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a ScheduledAction. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED
= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a ScheduledAction. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_NEEDS_ATTENTION
= 'NEEDS_ATTENTION'¶ A constant which can be used with the lifecycle_state property of a ScheduledAction. This constant has a value of “NEEDS_ATTENTION”
-
LIFECYCLE_STATE_UPDATING
= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a ScheduledAction. This constant has a value of “UPDATING”
-
__init__
(**kwargs)¶ Initializes a new ScheduledAction 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 ScheduledAction.
- scheduling_plan_id (str) – The value to assign to the scheduling_plan_id property of this ScheduledAction.
- compartment_id (str) – The value to assign to the compartment_id property of this ScheduledAction.
- scheduling_window_id (str) – The value to assign to the scheduling_window_id property of this ScheduledAction.
- display_name (str) – The value to assign to the display_name property of this ScheduledAction.
- action_order (int) – The value to assign to the action_order property of this ScheduledAction.
- action_type (str) – The value to assign to the action_type property of this ScheduledAction. Allowed values for this property are: “DB_SERVER_FULL_SOFTWARE_UPDATE”, “STORAGE_SERVER_FULL_SOFTWARE_UPDATE”, “NETWORK_SWITCH_FULL_SOFTWARE_UPDATE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this ScheduledAction. Allowed values for this property are: “CREATING”, “NEEDS_ATTENTION”, “AVAILABLE”, “UPDATING”, “FAILED”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- estimated_time_in_mins (int) – The value to assign to the estimated_time_in_mins property of this ScheduledAction.
- action_params (dict(str, str)) – The value to assign to the action_params property of this ScheduledAction.
- action_members (list[oci.database.models.ActionMember]) – The value to assign to the action_members property of this ScheduledAction.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this ScheduledAction.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this ScheduledAction.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this ScheduledAction.
- time_created (datetime) – The value to assign to the time_created property of this ScheduledAction.
- time_updated (datetime) – The value to assign to the time_updated property of this ScheduledAction.
-
action_members
¶ Gets the action_members of this ScheduledAction. The list of action members in a scheduled action.
Returns: The action_members of this ScheduledAction. Return type: list[oci.database.models.ActionMember]
-
action_order
¶ [Required] Gets the action_order of this ScheduledAction. The order of the scheduled action.
Returns: The action_order of this ScheduledAction. Return type: int
-
action_params
¶ Gets the action_params of this ScheduledAction. Map<ParamName, ParamValue> where a key value pair describes the specific action parameter. Example: {“count”: “3”}
Returns: The action_params of this ScheduledAction. Return type: dict(str, str)
-
action_type
¶ [Required] Gets the action_type of this ScheduledAction. The type of the scheduled action being performed
Allowed values for this property are: “DB_SERVER_FULL_SOFTWARE_UPDATE”, “STORAGE_SERVER_FULL_SOFTWARE_UPDATE”, “NETWORK_SWITCH_FULL_SOFTWARE_UPDATE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The action_type of this ScheduledAction. Return type: str
-
compartment_id
¶ [Required] Gets the compartment_id of this ScheduledAction. The OCID of the compartment.
Returns: The compartment_id of this ScheduledAction. Return type: str
Gets the defined_tags of this ScheduledAction. 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 ScheduledAction. Return type: dict(str, dict(str, object))
-
display_name
¶ [Required] Gets the display_name of this ScheduledAction. The display name of the Scheduled Action.
Returns: The display_name of this ScheduledAction. Return type: str
-
estimated_time_in_mins
¶ Gets the estimated_time_in_mins of this ScheduledAction. The estimated patching time for the scheduled action.
Returns: The estimated_time_in_mins of this ScheduledAction. Return type: int
Gets the freeform_tags of this ScheduledAction. 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 ScheduledAction. Return type: dict(str, str)
-
id
¶ [Required] Gets the id of this ScheduledAction. The OCID of the Scheduled Action.
Returns: The id of this ScheduledAction. Return type: str
-
lifecycle_state
¶ [Required] Gets the lifecycle_state of this ScheduledAction. The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
Allowed values for this property are: “CREATING”, “NEEDS_ATTENTION”, “AVAILABLE”, “UPDATING”, “FAILED”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this ScheduledAction. Return type: str
-
scheduling_plan_id
¶ [Required] Gets the scheduling_plan_id of this ScheduledAction. The OCID of the Scheduling Plan.
Returns: The scheduling_plan_id of this ScheduledAction. Return type: str
-
scheduling_window_id
¶ Gets the scheduling_window_id of this ScheduledAction. The OCID of the Scheduling Window.
Returns: The scheduling_window_id of this ScheduledAction. Return type: str
Gets the system_tags of this ScheduledAction. 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 ScheduledAction. Return type: dict(str, dict(str, object))
-
time_created
¶ [Required] Gets the time_created of this ScheduledAction. The date and time the Scheduled Action Resource was created.
Returns: The time_created of this ScheduledAction. Return type: datetime
-
time_updated
¶ Gets the time_updated of this ScheduledAction. The date and time the Scheduled Action Resource was updated.
Returns: The time_updated of this ScheduledAction. Return type: datetime
-