OneoffPatchSummary

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

Bases: object

An Oracle one-off patch for a specified database version.

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.

Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.

Attributes

LIFECYCLE_STATE_AVAILABLE A constant which can be used with the lifecycle_state property of a OneoffPatchSummary.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a OneoffPatchSummary.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a OneoffPatchSummary.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a OneoffPatchSummary.
LIFECYCLE_STATE_EXPIRED A constant which can be used with the lifecycle_state property of a OneoffPatchSummary.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a OneoffPatchSummary.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a OneoffPatchSummary.
LIFECYCLE_STATE_TERMINATED A constant which can be used with the lifecycle_state property of a OneoffPatchSummary.
LIFECYCLE_STATE_TERMINATING A constant which can be used with the lifecycle_state property of a OneoffPatchSummary.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a OneoffPatchSummary.
compartment_id [Required] Gets the compartment_id of this OneoffPatchSummary.
db_version [Required] Gets the db_version of this OneoffPatchSummary.
defined_tags Gets the defined_tags of this OneoffPatchSummary.
display_name [Required] Gets the display_name of this OneoffPatchSummary.
freeform_tags Gets the freeform_tags of this OneoffPatchSummary.
id [Required] Gets the id of this OneoffPatchSummary.
lifecycle_details Gets the lifecycle_details of this OneoffPatchSummary.
lifecycle_state [Required] Gets the lifecycle_state of this OneoffPatchSummary.
one_off_patches Gets the one_off_patches of this OneoffPatchSummary.
release_update [Required] Gets the release_update of this OneoffPatchSummary.
sha256_sum Gets the sha256_sum of this OneoffPatchSummary.
size_in_kbs Gets the size_in_kbs of this OneoffPatchSummary.
time_created [Required] Gets the time_created of this OneoffPatchSummary.
time_of_expiration Gets the time_of_expiration of this OneoffPatchSummary.
time_updated Gets the time_updated of this OneoffPatchSummary.

Methods

__init__(**kwargs) Initializes a new OneoffPatchSummary object with values from keyword arguments.
LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_EXPIRED = 'EXPIRED'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

LIFECYCLE_STATE_TERMINATED = 'TERMINATED'

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

LIFECYCLE_STATE_TERMINATING = 'TERMINATING'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

__init__(**kwargs)

Initializes a new OneoffPatchSummary 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 OneoffPatchSummary.
  • compartment_id (str) – The value to assign to the compartment_id property of this OneoffPatchSummary.
  • display_name (str) – The value to assign to the display_name property of this OneoffPatchSummary.
  • db_version (str) – The value to assign to the db_version property of this OneoffPatchSummary.
  • release_update (str) – The value to assign to the release_update property of this OneoffPatchSummary.
  • one_off_patches (list[str]) – The value to assign to the one_off_patches property of this OneoffPatchSummary.
  • size_in_kbs (float) – The value to assign to the size_in_kbs property of this OneoffPatchSummary.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this OneoffPatchSummary. 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 OneoffPatchSummary.
  • sha256_sum (str) – The value to assign to the sha256_sum property of this OneoffPatchSummary.
  • time_updated (datetime) – The value to assign to the time_updated property of this OneoffPatchSummary.
  • time_created (datetime) – The value to assign to the time_created property of this OneoffPatchSummary.
  • time_of_expiration (datetime) – The value to assign to the time_of_expiration property of this OneoffPatchSummary.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this OneoffPatchSummary.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this OneoffPatchSummary.
compartment_id

[Required] Gets the compartment_id of this OneoffPatchSummary. The OCID of the compartment.

Returns:The compartment_id of this OneoffPatchSummary.
Return type:str
db_version

[Required] Gets the db_version of this OneoffPatchSummary. 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 OneoffPatchSummary.
Return type:str
defined_tags

Gets the defined_tags of this OneoffPatchSummary. 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 OneoffPatchSummary.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this OneoffPatchSummary. One-off patch name.

Returns:The display_name of this OneoffPatchSummary.
Return type:str
freeform_tags

Gets the freeform_tags of this OneoffPatchSummary. 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 OneoffPatchSummary.
Return type:dict(str, str)
id

[Required] Gets the id of this OneoffPatchSummary. The OCID of the one-off patch.

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

Gets the lifecycle_details of this OneoffPatchSummary. Detailed message for the lifecycle state.

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

[Required] Gets the lifecycle_state of this OneoffPatchSummary. 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 OneoffPatchSummary.
Return type:str
one_off_patches

Gets the one_off_patches of this OneoffPatchSummary. List of one-off patches for Database Homes.

Returns:The one_off_patches of this OneoffPatchSummary.
Return type:list[str]
release_update

[Required] Gets the release_update of this OneoffPatchSummary. 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 OneoffPatchSummary.
Return type:str
sha256_sum

Gets the sha256_sum of this OneoffPatchSummary. SHA-256 checksum of the one-off patch.

Returns:The sha256_sum of this OneoffPatchSummary.
Return type:str
size_in_kbs

Gets the size_in_kbs of this OneoffPatchSummary. The size of one-off patch in kilobytes.

Returns:The size_in_kbs of this OneoffPatchSummary.
Return type:float
time_created

[Required] Gets the time_created of this OneoffPatchSummary. The date and time one-off patch was created.

Returns:The time_created of this OneoffPatchSummary.
Return type:datetime
time_of_expiration

Gets the time_of_expiration of this OneoffPatchSummary. The date and time until which the one-off patch will be available for download.

Returns:The time_of_expiration of this OneoffPatchSummary.
Return type:datetime
time_updated

Gets the time_updated of this OneoffPatchSummary. The date and time one-off patch was updated.

Returns:The time_updated of this OneoffPatchSummary.
Return type:datetime