PatchHistoryEntry

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

Bases: object

PatchHistoryEntry model.

Attributes

ACTION_APPLY A constant which can be used with the action property of a PatchHistoryEntry.
ACTION_PRECHECK A constant which can be used with the action property of a PatchHistoryEntry.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a PatchHistoryEntry.
LIFECYCLE_STATE_IN_PROGRESS A constant which can be used with the lifecycle_state property of a PatchHistoryEntry.
LIFECYCLE_STATE_SUCCEEDED A constant which can be used with the lifecycle_state property of a PatchHistoryEntry.
PATCH_TYPE_DB A constant which can be used with the patch_type property of a PatchHistoryEntry.
PATCH_TYPE_GI A constant which can be used with the patch_type property of a PatchHistoryEntry.
PATCH_TYPE_OS A constant which can be used with the patch_type property of a PatchHistoryEntry.
action Gets the action of this PatchHistoryEntry.
id [Required] Gets the id of this PatchHistoryEntry.
lifecycle_details Gets the lifecycle_details of this PatchHistoryEntry.
lifecycle_state [Required] Gets the lifecycle_state of this PatchHistoryEntry.
patch_id [Required] Gets the patch_id of this PatchHistoryEntry.
patch_type Gets the patch_type of this PatchHistoryEntry.
time_ended Gets the time_ended of this PatchHistoryEntry.
time_started [Required] Gets the time_started of this PatchHistoryEntry.

Methods

__init__(**kwargs) Initializes a new PatchHistoryEntry object with values from keyword arguments.
ACTION_APPLY = 'APPLY'

A constant which can be used with the action property of a PatchHistoryEntry. This constant has a value of “APPLY”

ACTION_PRECHECK = 'PRECHECK'

A constant which can be used with the action property of a PatchHistoryEntry. This constant has a value of “PRECHECK”

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'

A constant which can be used with the lifecycle_state property of a PatchHistoryEntry. This constant has a value of “SUCCEEDED”

PATCH_TYPE_DB = 'DB'

A constant which can be used with the patch_type property of a PatchHistoryEntry. This constant has a value of “DB”

PATCH_TYPE_GI = 'GI'

A constant which can be used with the patch_type property of a PatchHistoryEntry. This constant has a value of “GI”

PATCH_TYPE_OS = 'OS'

A constant which can be used with the patch_type property of a PatchHistoryEntry. This constant has a value of “OS”

__init__(**kwargs)

Initializes a new PatchHistoryEntry 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 PatchHistoryEntry.
  • patch_id (str) – The value to assign to the patch_id property of this PatchHistoryEntry.
  • action (str) – The value to assign to the action property of this PatchHistoryEntry. Allowed values for this property are: “APPLY”, “PRECHECK”, ‘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 PatchHistoryEntry. Allowed values for this property are: “IN_PROGRESS”, “SUCCEEDED”, “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 PatchHistoryEntry.
  • time_started (datetime) – The value to assign to the time_started property of this PatchHistoryEntry.
  • time_ended (datetime) – The value to assign to the time_ended property of this PatchHistoryEntry.
  • patch_type (str) – The value to assign to the patch_type property of this PatchHistoryEntry. Allowed values for this property are: “OS”, “DB”, “GI”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
action

Gets the action of this PatchHistoryEntry. The action being performed or was completed.

Allowed values for this property are: “APPLY”, “PRECHECK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The action of this PatchHistoryEntry.
Return type:str
id

[Required] Gets the id of this PatchHistoryEntry. The OCID of the patch history entry.

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

Gets the lifecycle_details of this PatchHistoryEntry. A descriptive text associated with the lifecycleState. Typically contains additional displayable text.

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

[Required] Gets the lifecycle_state of this PatchHistoryEntry. The current state of the action.

Allowed values for this property are: “IN_PROGRESS”, “SUCCEEDED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this PatchHistoryEntry.
Return type:str
patch_id

[Required] Gets the patch_id of this PatchHistoryEntry. The OCID of the patch.

Returns:The patch_id of this PatchHistoryEntry.
Return type:str
patch_type

Gets the patch_type of this PatchHistoryEntry. The type of Patch operation.

Allowed values for this property are: “OS”, “DB”, “GI”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The patch_type of this PatchHistoryEntry.
Return type:str
time_ended

Gets the time_ended of this PatchHistoryEntry. The date and time when the patch action completed

Returns:The time_ended of this PatchHistoryEntry.
Return type:datetime
time_started

[Required] Gets the time_started of this PatchHistoryEntry. The date and time when the patch action started.

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