PatchSummary

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

Bases: object

A Patch for a DB system or DB Home.

To use any of the API operations, you must be authorized in an IAM policy. If you’re not authorized, talk to an administrator. If you’re an administrator who needs to write policies to give users access, see Getting Started with Policies.

Attributes:

AVAILABLE_ACTIONS_APPLY

A constant which can be used with the available_actions property of a PatchSummary.

AVAILABLE_ACTIONS_PRECHECK

A constant which can be used with the available_actions property of a PatchSummary.

LAST_ACTION_APPLY

A constant which can be used with the last_action property of a PatchSummary.

LAST_ACTION_PRECHECK

A constant which can be used with the last_action property of a PatchSummary.

LIFECYCLE_STATE_AVAILABLE

A constant which can be used with the lifecycle_state property of a PatchSummary.

LIFECYCLE_STATE_FAILED

A constant which can be used with the lifecycle_state property of a PatchSummary.

LIFECYCLE_STATE_IN_PROGRESS

A constant which can be used with the lifecycle_state property of a PatchSummary.

LIFECYCLE_STATE_SUCCESS

A constant which can be used with the lifecycle_state property of a PatchSummary.

available_actions

Gets the available_actions of this PatchSummary.

description

[Required] Gets the description of this PatchSummary.

id

[Required] Gets the id of this PatchSummary.

is_older_version_acknowledgment_required

Gets the is_older_version_acknowledgment_required of this PatchSummary.

last_action

Gets the last_action of this PatchSummary.

lifecycle_details

Gets the lifecycle_details of this PatchSummary.

lifecycle_state

Gets the lifecycle_state of this PatchSummary.

time_released

[Required] Gets the time_released of this PatchSummary.

version

[Required] Gets the version of this PatchSummary.

Methods:

__init__(**kwargs)

Initializes a new PatchSummary object with values from keyword arguments.

AVAILABLE_ACTIONS_APPLY = 'APPLY'

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

AVAILABLE_ACTIONS_PRECHECK = 'PRECHECK'

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

LAST_ACTION_APPLY = 'APPLY'

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

LAST_ACTION_PRECHECK = 'PRECHECK'

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

LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

__init__(**kwargs)

Initializes a new PatchSummary 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 PatchSummary.

  • description (str) – The value to assign to the description property of this PatchSummary.

  • last_action (str) – The value to assign to the last_action property of this PatchSummary. 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 PatchSummary. 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 PatchSummary.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this PatchSummary. 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 PatchSummary.

  • version (str) – The value to assign to the version property of this PatchSummary.

  • is_older_version_acknowledgment_required (bool) – The value to assign to the is_older_version_acknowledgment_required property of this PatchSummary.

property available_actions

Gets the available_actions of this PatchSummary. 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 PatchSummary.

Return type

list[str]

property description

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

Returns

The description of this PatchSummary.

Return type

str

property id

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

Returns

The id of this PatchSummary.

Return type

str

property is_older_version_acknowledgment_required

Gets the is_older_version_acknowledgment_required of this PatchSummary. True when selecting or applying this DB, Grid Infrastructure, or operating system software version requires older-version acknowledgment.

Returns

The is_older_version_acknowledgment_required of this PatchSummary.

Return type

bool

property last_action

Gets the last_action of this PatchSummary. 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 PatchSummary.

Return type

str

property lifecycle_details

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

Returns

The lifecycle_details of this PatchSummary.

Return type

str

property lifecycle_state

Gets the lifecycle_state of this PatchSummary. 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 PatchSummary.

Return type

str

property time_released

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

Returns

The time_released of this PatchSummary.

Return type

datetime

property version

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

Returns

The version of this PatchSummary.

Return type

str