Patch

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

Bases: object

Patch model.

Attributes

AVAILABLE_ACTIONS_APPLY A constant which can be used with the available_actions property of a Patch.
AVAILABLE_ACTIONS_PRECHECK A constant which can be used with the available_actions property of a Patch.
LAST_ACTION_APPLY A constant which can be used with the last_action property of a Patch.
LAST_ACTION_PRECHECK A constant which can be used with the last_action property of a Patch.
LIFECYCLE_STATE_AVAILABLE A constant which can be used with the lifecycle_state property of a Patch.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a Patch.
LIFECYCLE_STATE_IN_PROGRESS A constant which can be used with the lifecycle_state property of a Patch.
LIFECYCLE_STATE_SUCCESS A constant which can be used with the lifecycle_state property of a Patch.
available_actions Gets the available_actions of this Patch.
description [Required] Gets the description of this Patch.
id [Required] Gets the id of this Patch.
last_action Gets the last_action of this Patch.
lifecycle_details Gets the lifecycle_details of this Patch.
lifecycle_state Gets the lifecycle_state of this Patch.
time_released [Required] Gets the time_released of this Patch.
version [Required] Gets the version of this Patch.

Methods

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

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

AVAILABLE_ACTIONS_PRECHECK = 'PRECHECK'

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

LAST_ACTION_APPLY = 'APPLY'

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

LAST_ACTION_PRECHECK = 'PRECHECK'

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

LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_SUCCESS = 'SUCCESS'

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

__init__(**kwargs)

Initializes a new Patch 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 Patch.
  • description (str) – The value to assign to the description property of this Patch.
  • last_action (str) – The value to assign to the last_action property of this Patch. 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’.
  • available_actions (list[str]) – The value to assign to the available_actions property of this Patch. Allowed values for items in this list are: “APPLY”, “PRECHECK”, ‘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 Patch.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Patch. Allowed values for this property are: “AVAILABLE”, “SUCCESS”, “IN_PROGRESS”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_released (datetime) – The value to assign to the time_released property of this Patch.
  • version (str) – The value to assign to the version property of this Patch.
available_actions

Gets the available_actions of this Patch. Actions that can possibly be performed using this patch.

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

Returns:The available_actions of this Patch.
Return type:list[str]
description

[Required] Gets the description of this Patch. The text describing this patch package.

Returns:The description of this Patch.
Return type:str
id

[Required] Gets the id of this Patch. The OCID of the patch.

Returns:The id of this Patch.
Return type:str
last_action

Gets the last_action of this Patch. Action that is currently being performed or was completed last.

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 last_action of this Patch.
Return type:str
lifecycle_details

Gets the lifecycle_details of this Patch. A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.

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

Gets the lifecycle_state of this Patch. The current state of the patch as a result of lastAction.

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

Returns:The lifecycle_state of this Patch.
Return type:str
time_released

[Required] Gets the time_released of this Patch. The date and time that the patch was released.

Returns:The time_released of this Patch.
Return type:datetime
version

[Required] Gets the version of this Patch. The version of this patch package.

Returns:The version of this Patch.
Return type:str