Patch¶
- class oci.database.models.Patch(**kwargs)¶
Bases:
objectPatch model.
Attributes:
A constant which can be used with the available_actions property of a Patch.
A constant which can be used with the available_actions property of a Patch.
A constant which can be used with the last_action property of a Patch.
A constant which can be used with the last_action property of a Patch.
A constant which can be used with the lifecycle_state property of a Patch.
A constant which can be used with the lifecycle_state property of a Patch.
A constant which can be used with the lifecycle_state property of a Patch.
A constant which can be used with the lifecycle_state property of a Patch.
Gets the available_actions of this Patch.
[Required] Gets the description of this Patch.
[Required] Gets the id of this Patch.
Gets the is_older_version_acknowledgment_required of this Patch.
Gets the last_action of this Patch.
Gets the lifecycle_details of this Patch.
Gets the lifecycle_state of this Patch.
[Required] Gets the time_released of this Patch.
[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.
is_older_version_acknowledgment_required (bool) – The value to assign to the is_older_version_acknowledgment_required property of this Patch.
- property 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]
- property description¶
[Required] Gets the description of this Patch. The text describing this patch package.
- Returns
The description of this Patch.
- Return type
str
- property id¶
[Required] Gets the id of this Patch. The OCID of the patch.
- Returns
The id of this Patch.
- Return type
str
- property is_older_version_acknowledgment_required¶
Gets the is_older_version_acknowledgment_required of this Patch. 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 Patch.
- Return type
bool
- property 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
- property 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
- property 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
- property 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
- property version¶
[Required] Gets the version of this Patch. The version of this patch package.
- Returns
The version of this Patch.
- Return type
str