MaintenanceExecution¶
-
class
oci.datacc.models.MaintenanceExecution(**kwargs)¶ Bases:
objectDetails of a maintenance executions.
Attributes
LIFECYCLE_STATE_CANCELEDA constant which can be used with the lifecycle_state property of a MaintenanceExecution. LIFECYCLE_STATE_CREATINGA constant which can be used with the lifecycle_state property of a MaintenanceExecution. LIFECYCLE_STATE_DELETEDA constant which can be used with the lifecycle_state property of a MaintenanceExecution. LIFECYCLE_STATE_DELETINGA constant which can be used with the lifecycle_state property of a MaintenanceExecution. LIFECYCLE_STATE_FAILEDA constant which can be used with the lifecycle_state property of a MaintenanceExecution. LIFECYCLE_STATE_IN_PROGRESSA constant which can be used with the lifecycle_state property of a MaintenanceExecution. LIFECYCLE_STATE_PARTIAL_SUCCESSA constant which can be used with the lifecycle_state property of a MaintenanceExecution. LIFECYCLE_STATE_SCHEDULEDA constant which can be used with the lifecycle_state property of a MaintenanceExecution. LIFECYCLE_STATE_SKIPPEDA constant which can be used with the lifecycle_state property of a MaintenanceExecution. LIFECYCLE_STATE_SUCCEEDEDA constant which can be used with the lifecycle_state property of a MaintenanceExecution. LIFECYCLE_STATE_UPDATINGA constant which can be used with the lifecycle_state property of a MaintenanceExecution. MAINTENANCE_SUBTYPE_CPS_SERVICES_UPDATEA constant which can be used with the maintenance_subtype property of a MaintenanceExecution. MAINTENANCE_SUBTYPE_CPS_VM_UPDATEA constant which can be used with the maintenance_subtype property of a MaintenanceExecution. MAINTENANCE_SUBTYPE_CRITICALA constant which can be used with the maintenance_subtype property of a MaintenanceExecution. MAINTENANCE_SUBTYPE_DAILYA constant which can be used with the maintenance_subtype property of a MaintenanceExecution. MAINTENANCE_SUBTYPE_HALFYEARLYA constant which can be used with the maintenance_subtype property of a MaintenanceExecution. MAINTENANCE_SUBTYPE_HARDWAREA constant which can be used with the maintenance_subtype property of a MaintenanceExecution. MAINTENANCE_SUBTYPE_INFRA_UPDATEA constant which can be used with the maintenance_subtype property of a MaintenanceExecution. MAINTENANCE_SUBTYPE_MONTHLYA constant which can be used with the maintenance_subtype property of a MaintenanceExecution. MAINTENANCE_SUBTYPE_QUARTERLYA constant which can be used with the maintenance_subtype property of a MaintenanceExecution. MAINTENANCE_SUBTYPE_SECURITY_MONTHLYA constant which can be used with the maintenance_subtype property of a MaintenanceExecution. MAINTENANCE_SUBTYPE_YEARLYA constant which can be used with the maintenance_subtype property of a MaintenanceExecution. MAINTENANCE_TYPE_PLANNEDA constant which can be used with the maintenance_type property of a MaintenanceExecution. MAINTENANCE_TYPE_UNPLANNEDA constant which can be used with the maintenance_type property of a MaintenanceExecution. PATCHING_MODE_NONROLLINGA constant which can be used with the patching_mode property of a MaintenanceExecution. PATCHING_MODE_ROLLINGA constant which can be used with the patching_mode property of a MaintenanceExecution. TARGET_RESOURCE_TYPE_DB_CC_INFRASTRUCTUREA constant which can be used with the target_resource_type property of a MaintenanceExecution. compartment_idGets the compartment_id of this MaintenanceExecution. custom_action_timeout_in_minsGets the custom_action_timeout_in_mins of this MaintenanceExecution. defined_tagsGets the defined_tags of this MaintenanceExecution. descriptionGets the description of this MaintenanceExecution. display_name[Required] Gets the display_name of this MaintenanceExecution. freeform_tagsGets the freeform_tags of this MaintenanceExecution. id[Required] Gets the id of this MaintenanceExecution. infrastructure_idGets the infrastructure_id of this MaintenanceExecution. is_custom_action_timeout_enabledGets the is_custom_action_timeout_enabled of this MaintenanceExecution. lifecycle_detailsGets the lifecycle_details of this MaintenanceExecution. lifecycle_state[Required] Gets the lifecycle_state of this MaintenanceExecution. maintenance_run_idGets the maintenance_run_id of this MaintenanceExecution. maintenance_subtypeGets the maintenance_subtype of this MaintenanceExecution. maintenance_typeGets the maintenance_type of this MaintenanceExecution. patching_modeGets the patching_mode of this MaintenanceExecution. source_versionGets the source_version of this MaintenanceExecution. system_tagsGets the system_tags of this MaintenanceExecution. target_resource_typeGets the target_resource_type of this MaintenanceExecution. target_versionGets the target_version of this MaintenanceExecution. time_endedGets the time_ended of this MaintenanceExecution. time_startedGets the time_started of this MaintenanceExecution. total_time_taken_in_minsGets the total_time_taken_in_mins of this MaintenanceExecution. workflow_idGets the workflow_id of this MaintenanceExecution. Methods
__init__(**kwargs)Initializes a new MaintenanceExecution object with values from keyword arguments. -
LIFECYCLE_STATE_CANCELED= 'CANCELED'¶ A constant which can be used with the lifecycle_state property of a MaintenanceExecution. This constant has a value of “CANCELED”
-
LIFECYCLE_STATE_CREATING= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a MaintenanceExecution. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a MaintenanceExecution. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a MaintenanceExecution. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a MaintenanceExecution. 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 MaintenanceExecution. 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 MaintenanceExecution. 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 MaintenanceExecution. This constant has a value of “SCHEDULED”
-
LIFECYCLE_STATE_SKIPPED= 'SKIPPED'¶ A constant which can be used with the lifecycle_state property of a MaintenanceExecution. This constant has a value of “SKIPPED”
-
LIFECYCLE_STATE_SUCCEEDED= 'SUCCEEDED'¶ A constant which can be used with the lifecycle_state property of a MaintenanceExecution. This constant has a value of “SUCCEEDED”
-
LIFECYCLE_STATE_UPDATING= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a MaintenanceExecution. This constant has a value of “UPDATING”
-
MAINTENANCE_SUBTYPE_CPS_SERVICES_UPDATE= 'CPS_SERVICES_UPDATE'¶ A constant which can be used with the maintenance_subtype property of a MaintenanceExecution. This constant has a value of “CPS_SERVICES_UPDATE”
-
MAINTENANCE_SUBTYPE_CPS_VM_UPDATE= 'CPS_VM_UPDATE'¶ A constant which can be used with the maintenance_subtype property of a MaintenanceExecution. This constant has a value of “CPS_VM_UPDATE”
-
MAINTENANCE_SUBTYPE_CRITICAL= 'CRITICAL'¶ A constant which can be used with the maintenance_subtype property of a MaintenanceExecution. This constant has a value of “CRITICAL”
-
MAINTENANCE_SUBTYPE_DAILY= 'DAILY'¶ A constant which can be used with the maintenance_subtype property of a MaintenanceExecution. This constant has a value of “DAILY”
-
MAINTENANCE_SUBTYPE_HALFYEARLY= 'HALFYEARLY'¶ A constant which can be used with the maintenance_subtype property of a MaintenanceExecution. This constant has a value of “HALFYEARLY”
-
MAINTENANCE_SUBTYPE_HARDWARE= 'HARDWARE'¶ A constant which can be used with the maintenance_subtype property of a MaintenanceExecution. This constant has a value of “HARDWARE”
-
MAINTENANCE_SUBTYPE_INFRA_UPDATE= 'INFRA_UPDATE'¶ A constant which can be used with the maintenance_subtype property of a MaintenanceExecution. This constant has a value of “INFRA_UPDATE”
-
MAINTENANCE_SUBTYPE_MONTHLY= 'MONTHLY'¶ A constant which can be used with the maintenance_subtype property of a MaintenanceExecution. This constant has a value of “MONTHLY”
-
MAINTENANCE_SUBTYPE_QUARTERLY= 'QUARTERLY'¶ A constant which can be used with the maintenance_subtype property of a MaintenanceExecution. This constant has a value of “QUARTERLY”
-
MAINTENANCE_SUBTYPE_SECURITY_MONTHLY= 'SECURITY_MONTHLY'¶ A constant which can be used with the maintenance_subtype property of a MaintenanceExecution. This constant has a value of “SECURITY_MONTHLY”
-
MAINTENANCE_SUBTYPE_YEARLY= 'YEARLY'¶ A constant which can be used with the maintenance_subtype property of a MaintenanceExecution. This constant has a value of “YEARLY”
-
MAINTENANCE_TYPE_PLANNED= 'PLANNED'¶ A constant which can be used with the maintenance_type property of a MaintenanceExecution. This constant has a value of “PLANNED”
-
MAINTENANCE_TYPE_UNPLANNED= 'UNPLANNED'¶ A constant which can be used with the maintenance_type property of a MaintenanceExecution. This constant has a value of “UNPLANNED”
-
PATCHING_MODE_NONROLLING= 'NONROLLING'¶ A constant which can be used with the patching_mode property of a MaintenanceExecution. This constant has a value of “NONROLLING”
-
PATCHING_MODE_ROLLING= 'ROLLING'¶ A constant which can be used with the patching_mode property of a MaintenanceExecution. This constant has a value of “ROLLING”
-
TARGET_RESOURCE_TYPE_DB_CC_INFRASTRUCTURE= 'DB_CC_INFRASTRUCTURE'¶ A constant which can be used with the target_resource_type property of a MaintenanceExecution. This constant has a value of “DB_CC_INFRASTRUCTURE”
-
__init__(**kwargs)¶ Initializes a new MaintenanceExecution 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 MaintenanceExecution.
- compartment_id (str) – The value to assign to the compartment_id property of this MaintenanceExecution.
- display_name (str) – The value to assign to the display_name property of this MaintenanceExecution.
- description (str) – The value to assign to the description property of this MaintenanceExecution.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this MaintenanceExecution. Allowed values for this property are: “CREATING”, “SCHEDULED”, “IN_PROGRESS”, “SUCCEEDED”, “SKIPPED”, “FAILED”, “UPDATING”, “DELETING”, “DELETED”, “CANCELED”, “PARTIAL_SUCCESS”, ‘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 MaintenanceExecution.
- time_started (datetime) – The value to assign to the time_started property of this MaintenanceExecution.
- time_ended (datetime) – The value to assign to the time_ended property of this MaintenanceExecution.
- target_resource_type (str) – The value to assign to the target_resource_type property of this MaintenanceExecution. Allowed values for this property are: “DB_CC_INFRASTRUCTURE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- infrastructure_id (str) – The value to assign to the infrastructure_id property of this MaintenanceExecution.
- maintenance_run_id (str) – The value to assign to the maintenance_run_id property of this MaintenanceExecution.
- maintenance_type (str) – The value to assign to the maintenance_type property of this MaintenanceExecution. 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’.
- maintenance_subtype (str) – The value to assign to the maintenance_subtype property of this MaintenanceExecution. Allowed values for this property are: “YEARLY”, “HALFYEARLY”, “QUARTERLY”, “MONTHLY”, “DAILY”, “HARDWARE”, “CRITICAL”, “INFRA_UPDATE”, “CPS_SERVICES_UPDATE”, “CPS_VM_UPDATE”, “SECURITY_MONTHLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- patching_mode (str) – The value to assign to the patching_mode property of this MaintenanceExecution. Allowed values for this property are: “ROLLING”, “NONROLLING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- source_version (str) – The value to assign to the source_version property of this MaintenanceExecution.
- target_version (str) – The value to assign to the target_version property of this MaintenanceExecution.
- is_custom_action_timeout_enabled (bool) – The value to assign to the is_custom_action_timeout_enabled property of this MaintenanceExecution.
- custom_action_timeout_in_mins (int) – The value to assign to the custom_action_timeout_in_mins property of this MaintenanceExecution.
- workflow_id (str) – The value to assign to the workflow_id property of this MaintenanceExecution.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this MaintenanceExecution.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this MaintenanceExecution.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this MaintenanceExecution.
- total_time_taken_in_mins (int) – The value to assign to the total_time_taken_in_mins property of this MaintenanceExecution.
-
compartment_id¶ Gets the compartment_id of this MaintenanceExecution. The OCID of the compartment.
Returns: The compartment_id of this MaintenanceExecution. Return type: str
-
custom_action_timeout_in_mins¶ Gets the custom_action_timeout_in_mins of this MaintenanceExecution. Determines the amount of time the system will wait before the start of each compute server patching operation. Supported values are 15 to 120 minutes.
Returns: The custom_action_timeout_in_mins of this MaintenanceExecution. Return type: int
Gets the defined_tags of this MaintenanceExecution. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
Returns: The defined_tags of this MaintenanceExecution. Return type: dict(str, dict(str, object))
-
description¶ Gets the description of this MaintenanceExecution. Description of the maintenance run execution.
Returns: The description of this MaintenanceExecution. Return type: str
-
display_name¶ [Required] Gets the display_name of this MaintenanceExecution. The user-friendly name for the maintenance run execution.
Returns: The display_name of this MaintenanceExecution. Return type: str
Gets the freeform_tags of this MaintenanceExecution. Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {“bar-key”: “value”}
Returns: The freeform_tags of this MaintenanceExecution. Return type: dict(str, str)
-
id¶ [Required] Gets the id of this MaintenanceExecution. The OCID of the maintenance run execution.
Returns: The id of this MaintenanceExecution. Return type: str
-
infrastructure_id¶ Gets the infrastructure_id of this MaintenanceExecution. The OCID of the Database Infrastructure on which the maintenance run execution occurred.
Returns: The infrastructure_id of this MaintenanceExecution. Return type: str
-
is_custom_action_timeout_enabled¶ Gets the is_custom_action_timeout_enabled of this MaintenanceExecution. At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.
Returns: The is_custom_action_timeout_enabled of this MaintenanceExecution. Return type: bool
-
lifecycle_details¶ Gets the lifecycle_details of this MaintenanceExecution. Additional information about the current lifecycle state.
Returns: The lifecycle_details of this MaintenanceExecution. Return type: str
-
lifecycle_state¶ [Required] Gets the lifecycle_state of this MaintenanceExecution. The state of the maintenance run execution.
Allowed values for this property are: “CREATING”, “SCHEDULED”, “IN_PROGRESS”, “SUCCEEDED”, “SKIPPED”, “FAILED”, “UPDATING”, “DELETING”, “DELETED”, “CANCELED”, “PARTIAL_SUCCESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this MaintenanceExecution. Return type: str
-
maintenance_run_id¶ Gets the maintenance_run_id of this MaintenanceExecution. The OCID of the maintenance run to which this maintenance execution belongs.
Returns: The maintenance_run_id of this MaintenanceExecution. Return type: str
-
maintenance_subtype¶ Gets the maintenance_subtype of this MaintenanceExecution. Maintenance run execution sub-type.
Allowed values for this property are: “YEARLY”, “HALFYEARLY”, “QUARTERLY”, “MONTHLY”, “DAILY”, “HARDWARE”, “CRITICAL”, “INFRA_UPDATE”, “CPS_SERVICES_UPDATE”, “CPS_VM_UPDATE”, “SECURITY_MONTHLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The maintenance_subtype of this MaintenanceExecution. Return type: str
-
maintenance_type¶ Gets the maintenance_type of this MaintenanceExecution. Maintenance 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 maintenance_type of this MaintenanceExecution. Return type: str
-
patching_mode¶ Gets the patching_mode of this MaintenanceExecution. The patching mode for the maintenance run that is being executed.
Allowed values for this property are: “ROLLING”, “NONROLLING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The patching_mode of this MaintenanceExecution. Return type: str
-
source_version¶ Gets the source_version of this MaintenanceExecution. The source software version for the Oracle infrastructure.
Returns: The source_version of this MaintenanceExecution. Return type: str
Gets the system_tags of this MaintenanceExecution. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: { “orcl-cloud”: { “free-tier-retained”: “true” } }
Returns: The system_tags of this MaintenanceExecution. Return type: dict(str, dict(str, object))
-
target_resource_type¶ Gets the target_resource_type of this MaintenanceExecution. The type of the target resource on which the maintenance run execution occurred.
Allowed values for this property are: “DB_CC_INFRASTRUCTURE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The target_resource_type of this MaintenanceExecution. Return type: str
-
target_version¶ Gets the target_version of this MaintenanceExecution. The target software version for the Database Infrastructure patching operation.
Returns: The target_version of this MaintenanceExecution. Return type: str
-
time_ended¶ Gets the time_ended of this MaintenanceExecution. The date and time the maintenance run was completed.
Returns: The time_ended of this MaintenanceExecution. Return type: datetime
-
time_started¶ Gets the time_started of this MaintenanceExecution. The date and time the maintenance run execution started.
Returns: The time_started of this MaintenanceExecution. Return type: datetime
-
total_time_taken_in_mins¶ Gets the total_time_taken_in_mins of this MaintenanceExecution. The total time taken by this execution in minutes.
Returns: The total_time_taken_in_mins of this MaintenanceExecution. Return type: int
-