MaintenanceRun

class oci.database.models.MaintenanceRun(**kwargs)

Bases: object

Details of a Maintenance Run.

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a MaintenanceRun. 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 MaintenanceRun. This constant has a value of "IN_PROGRESS"

LIFECYCLE_STATE_SCHEDULED = 'SCHEDULED'

A constant which can be used with the lifecycle_state property of a MaintenanceRun. This constant has a value of "SCHEDULED"

LIFECYCLE_STATE_SKIPPED = 'SKIPPED'

A constant which can be used with the lifecycle_state property of a MaintenanceRun. This constant has a value of "SKIPPED"

LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'

A constant which can be used with the lifecycle_state property of a MaintenanceRun. This constant has a value of "SUCCEEDED"

MAINTENANCE_SUBTYPE_CRITICAL = 'CRITICAL'

A constant which can be used with the maintenance_subtype property of a MaintenanceRun. This constant has a value of "CRITICAL"

MAINTENANCE_SUBTYPE_HARDWARE = 'HARDWARE'

A constant which can be used with the maintenance_subtype property of a MaintenanceRun. This constant has a value of "HARDWARE"

MAINTENANCE_SUBTYPE_QUARTERLY = 'QUARTERLY'

A constant which can be used with the maintenance_subtype property of a MaintenanceRun. This constant has a value of "QUARTERLY"

MAINTENANCE_TYPE_PLANNED = 'PLANNED'

A constant which can be used with the maintenance_type property of a MaintenanceRun. This constant has a value of "PLANNED"

MAINTENANCE_TYPE_UNPLANNED = 'UNPLANNED'

A constant which can be used with the maintenance_type property of a MaintenanceRun. This constant has a value of "UNPLANNED"

TARGET_RESOURCE_TYPE_AUTONOMOUS_CONTAINER_DATABASE = 'AUTONOMOUS_CONTAINER_DATABASE'

A constant which can be used with the target_resource_type property of a MaintenanceRun. This constant has a value of "AUTONOMOUS_CONTAINER_DATABASE"

TARGET_RESOURCE_TYPE_AUTONOMOUS_EXADATA_INFRASTRUCTURE = 'AUTONOMOUS_EXADATA_INFRASTRUCTURE'

A constant which can be used with the target_resource_type property of a MaintenanceRun. This constant has a value of "AUTONOMOUS_EXADATA_INFRASTRUCTURE"

__init__(**kwargs)

Initializes a new MaintenanceRun 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 MaintenanceRun.
  • compartment_id (str) -- The value to assign to the compartment_id property of this MaintenanceRun.
  • display_name (str) -- The value to assign to the display_name property of this MaintenanceRun.
  • description (str) -- The value to assign to the description property of this MaintenanceRun.
  • lifecycle_state (str) -- The value to assign to the lifecycle_state property of this MaintenanceRun. Allowed values for this property are: "SCHEDULED", "IN_PROGRESS", "SUCCEEDED", "SKIPPED", "FAILED", '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 MaintenanceRun.
  • time_scheduled (datetime) -- The value to assign to the time_scheduled property of this MaintenanceRun.
  • time_started (datetime) -- The value to assign to the time_started property of this MaintenanceRun.
  • time_ended (datetime) -- The value to assign to the time_ended property of this MaintenanceRun.
  • target_resource_type (str) -- The value to assign to the target_resource_type property of this MaintenanceRun. Allowed values for this property are: "AUTONOMOUS_EXADATA_INFRASTRUCTURE", "AUTONOMOUS_CONTAINER_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • target_resource_id (str) -- The value to assign to the target_resource_id property of this MaintenanceRun.
  • maintenance_type (str) -- The value to assign to the maintenance_type property of this MaintenanceRun. 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 MaintenanceRun. Allowed values for this property are: "QUARTERLY", "HARDWARE", "CRITICAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
compartment_id

[Required] Gets the compartment_id of this MaintenanceRun. The OCID of the compartment.

Returns:The compartment_id of this MaintenanceRun.
Return type:str
description

Gets the description of this MaintenanceRun. The text describing this Maintenance Run.

Returns:The description of this MaintenanceRun.
Return type:str
display_name

[Required] Gets the display_name of this MaintenanceRun. The user-friendly name for the Maintenance Run.

Returns:The display_name of this MaintenanceRun.
Return type:str
id

[Required] Gets the id of this MaintenanceRun. The OCID of the Maintenance Run.

Returns:The id of this MaintenanceRun.
Return type:str
lifecycle_details

Gets the lifecycle_details of this MaintenanceRun. Additional information about the current lifecycleState.

Returns:The lifecycle_details of this MaintenanceRun.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this MaintenanceRun. The current state of the Maintenance Run.

Allowed values for this property are: "SCHEDULED", "IN_PROGRESS", "SUCCEEDED", "SKIPPED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The lifecycle_state of this MaintenanceRun.
Return type:str
maintenance_subtype

Gets the maintenance_subtype of this MaintenanceRun. Maintenance sub-type.

Allowed values for this property are: "QUARTERLY", "HARDWARE", "CRITICAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The maintenance_subtype of this MaintenanceRun.
Return type:str
maintenance_type

Gets the maintenance_type of this MaintenanceRun. 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 MaintenanceRun.
Return type:str
target_resource_id

Gets the target_resource_id of this MaintenanceRun. The ID of the target resource on which the Maintenance Run occurs.

Returns:The target_resource_id of this MaintenanceRun.
Return type:str
target_resource_type

Gets the target_resource_type of this MaintenanceRun. The type of the target resource on which the Maintenance Run occurs.

Allowed values for this property are: "AUTONOMOUS_EXADATA_INFRASTRUCTURE", "AUTONOMOUS_CONTAINER_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The target_resource_type of this MaintenanceRun.
Return type:str
time_ended

Gets the time_ended of this MaintenanceRun. The date and time the Maintenance Run was completed.

Returns:The time_ended of this MaintenanceRun.
Return type:datetime
time_scheduled

[Required] Gets the time_scheduled of this MaintenanceRun. The date and time the Maintenance Run is scheduled for.

Returns:The time_scheduled of this MaintenanceRun.
Return type:datetime
time_started

Gets the time_started of this MaintenanceRun. The date and time the Maintenance Run starts.

Returns:The time_started of this MaintenanceRun.
Return type:datetime