OneoffPatch¶
-
class
oci.database.models.
OneoffPatch
(**kwargs)¶ Bases:
object
One-off patches are created by specifying a database version, releaseUpdate and one-off patch number.
Attributes
LIFECYCLE_STATE_AVAILABLE
A constant which can be used with the lifecycle_state property of a OneoffPatch. LIFECYCLE_STATE_CREATING
A constant which can be used with the lifecycle_state property of a OneoffPatch. LIFECYCLE_STATE_DELETED
A constant which can be used with the lifecycle_state property of a OneoffPatch. LIFECYCLE_STATE_DELETING
A constant which can be used with the lifecycle_state property of a OneoffPatch. LIFECYCLE_STATE_EXPIRED
A constant which can be used with the lifecycle_state property of a OneoffPatch. LIFECYCLE_STATE_FAILED
A constant which can be used with the lifecycle_state property of a OneoffPatch. LIFECYCLE_STATE_INACTIVE
A constant which can be used with the lifecycle_state property of a OneoffPatch. LIFECYCLE_STATE_TERMINATED
A constant which can be used with the lifecycle_state property of a OneoffPatch. LIFECYCLE_STATE_TERMINATING
A constant which can be used with the lifecycle_state property of a OneoffPatch. LIFECYCLE_STATE_UPDATING
A constant which can be used with the lifecycle_state property of a OneoffPatch. compartment_id
[Required] Gets the compartment_id of this OneoffPatch. db_version
[Required] Gets the db_version of this OneoffPatch. defined_tags
Gets the defined_tags of this OneoffPatch. display_name
[Required] Gets the display_name of this OneoffPatch. freeform_tags
Gets the freeform_tags of this OneoffPatch. id
[Required] Gets the id of this OneoffPatch. lifecycle_details
Gets the lifecycle_details of this OneoffPatch. lifecycle_state
[Required] Gets the lifecycle_state of this OneoffPatch. one_off_patches
Gets the one_off_patches of this OneoffPatch. release_update
[Required] Gets the release_update of this OneoffPatch. sha256_sum
Gets the sha256_sum of this OneoffPatch. size_in_kbs
Gets the size_in_kbs of this OneoffPatch. time_created
[Required] Gets the time_created of this OneoffPatch. time_of_expiration
Gets the time_of_expiration of this OneoffPatch. time_updated
Gets the time_updated of this OneoffPatch. Methods
__init__
(**kwargs)Initializes a new OneoffPatch object with values from keyword arguments. -
LIFECYCLE_STATE_AVAILABLE
= 'AVAILABLE'¶ A constant which can be used with the lifecycle_state property of a OneoffPatch. This constant has a value of “AVAILABLE”
-
LIFECYCLE_STATE_CREATING
= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a OneoffPatch. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a OneoffPatch. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a OneoffPatch. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_EXPIRED
= 'EXPIRED'¶ A constant which can be used with the lifecycle_state property of a OneoffPatch. This constant has a value of “EXPIRED”
-
LIFECYCLE_STATE_FAILED
= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a OneoffPatch. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_INACTIVE
= 'INACTIVE'¶ A constant which can be used with the lifecycle_state property of a OneoffPatch. This constant has a value of “INACTIVE”
-
LIFECYCLE_STATE_TERMINATED
= 'TERMINATED'¶ A constant which can be used with the lifecycle_state property of a OneoffPatch. This constant has a value of “TERMINATED”
-
LIFECYCLE_STATE_TERMINATING
= 'TERMINATING'¶ A constant which can be used with the lifecycle_state property of a OneoffPatch. This constant has a value of “TERMINATING”
-
LIFECYCLE_STATE_UPDATING
= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a OneoffPatch. This constant has a value of “UPDATING”
-
__init__
(**kwargs)¶ Initializes a new OneoffPatch 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 OneoffPatch.
- compartment_id (str) – The value to assign to the compartment_id property of this OneoffPatch.
- display_name (str) – The value to assign to the display_name property of this OneoffPatch.
- db_version (str) – The value to assign to the db_version property of this OneoffPatch.
- release_update (str) – The value to assign to the release_update property of this OneoffPatch.
- one_off_patches (list[str]) – The value to assign to the one_off_patches property of this OneoffPatch.
- size_in_kbs (float) – The value to assign to the size_in_kbs property of this OneoffPatch.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this OneoffPatch. Allowed values for this property are: “CREATING”, “AVAILABLE”, “UPDATING”, “INACTIVE”, “FAILED”, “EXPIRED”, “DELETING”, “DELETED”, “TERMINATING”, “TERMINATED”, ‘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 OneoffPatch.
- sha256_sum (str) – The value to assign to the sha256_sum property of this OneoffPatch.
- time_updated (datetime) – The value to assign to the time_updated property of this OneoffPatch.
- time_created (datetime) – The value to assign to the time_created property of this OneoffPatch.
- time_of_expiration (datetime) – The value to assign to the time_of_expiration property of this OneoffPatch.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this OneoffPatch.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this OneoffPatch.
-
compartment_id
¶ [Required] Gets the compartment_id of this OneoffPatch. The OCID of the compartment.
Returns: The compartment_id of this OneoffPatch. Return type: str
-
db_version
¶ [Required] Gets the db_version of this OneoffPatch. A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier.
Returns: The db_version of this OneoffPatch. Return type: str
Gets the defined_tags of this OneoffPatch. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Returns: The defined_tags of this OneoffPatch. Return type: dict(str, dict(str, object))
-
display_name
¶ [Required] Gets the display_name of this OneoffPatch. One-off patch name.
Returns: The display_name of this OneoffPatch. Return type: str
Gets the freeform_tags of this OneoffPatch. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
Returns: The freeform_tags of this OneoffPatch. Return type: dict(str, str)
-
id
¶ [Required] Gets the id of this OneoffPatch. The OCID of the one-off patch.
Returns: The id of this OneoffPatch. Return type: str
-
lifecycle_details
¶ Gets the lifecycle_details of this OneoffPatch. Detailed message for the lifecycle state.
Returns: The lifecycle_details of this OneoffPatch. Return type: str
-
lifecycle_state
¶ [Required] Gets the lifecycle_state of this OneoffPatch. The current state of the one-off patch.
Allowed values for this property are: “CREATING”, “AVAILABLE”, “UPDATING”, “INACTIVE”, “FAILED”, “EXPIRED”, “DELETING”, “DELETED”, “TERMINATING”, “TERMINATED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this OneoffPatch. Return type: str
-
one_off_patches
¶ Gets the one_off_patches of this OneoffPatch. List of one-off patches for Database Homes.
Returns: The one_off_patches of this OneoffPatch. Return type: list[str]
-
release_update
¶ [Required] Gets the release_update of this OneoffPatch. The PSU or PBP or Release Updates. To get a list of supported versions, use the
list_db_versions()
operation.Returns: The release_update of this OneoffPatch. Return type: str
-
sha256_sum
¶ Gets the sha256_sum of this OneoffPatch. SHA-256 checksum of the one-off patch.
Returns: The sha256_sum of this OneoffPatch. Return type: str
-
size_in_kbs
¶ Gets the size_in_kbs of this OneoffPatch. The size of one-off patch in kilobytes.
Returns: The size_in_kbs of this OneoffPatch. Return type: float
-
time_created
¶ [Required] Gets the time_created of this OneoffPatch. The date and time one-off patch was created.
Returns: The time_created of this OneoffPatch. Return type: datetime
-
time_of_expiration
¶ Gets the time_of_expiration of this OneoffPatch. The date and time until which the one-off patch will be available for download.
Returns: The time_of_expiration of this OneoffPatch. Return type: datetime
-
time_updated
¶ Gets the time_updated of this OneoffPatch. The date and time one-off patch was updated.
Returns: The time_updated of this OneoffPatch. Return type: datetime
-