DbInstance

class oci.psql.models.DbInstance(**kwargs)

Bases: object

Information about a database instance node.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a DbInstance.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a DbInstance.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a DbInstance.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a DbInstance.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a DbInstance.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a DbInstance.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a DbInstance.
availability_domain [Required] Gets the availability_domain of this DbInstance.
description Gets the description of this DbInstance.
display_name Gets the display_name of this DbInstance.
id [Required] Gets the id of this DbInstance.
lifecycle_details Gets the lifecycle_details of this DbInstance.
lifecycle_state [Required] Gets the lifecycle_state of this DbInstance.
time_created [Required] Gets the time_created of this DbInstance.
time_updated Gets the time_updated of this DbInstance.

Methods

__init__(**kwargs) Initializes a new DbInstance object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

__init__(**kwargs)

Initializes a new DbInstance 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 DbInstance.
  • display_name (str) – The value to assign to the display_name property of this DbInstance.
  • description (str) – The value to assign to the description property of this DbInstance.
  • availability_domain (str) – The value to assign to the availability_domain property of this DbInstance.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this DbInstance. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘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 DbInstance.
  • time_created (datetime) – The value to assign to the time_created property of this DbInstance.
  • time_updated (datetime) – The value to assign to the time_updated property of this DbInstance.
availability_domain

[Required] Gets the availability_domain of this DbInstance. The availability domain in which the database instance node is located.

Returns:The availability_domain of this DbInstance.
Return type:str
description

Gets the description of this DbInstance. Description of the database instance node.

Returns:The description of this DbInstance.
Return type:str
display_name

Gets the display_name of this DbInstance. A user-friendly display name for the database instance node. Avoid entering confidential information.

Returns:The display_name of this DbInstance.
Return type:str
id

[Required] Gets the id of this DbInstance. A unique identifier for the database instance node. Immutable on creation.

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

Gets the lifecycle_details of this DbInstance. A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

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

[Required] Gets the lifecycle_state of this DbInstance. The current state of the database instance node.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this DbInstance.
Return type:str
time_created

[Required] Gets the time_created of this DbInstance. The date and time that the database instance node was created, expressed in RFC 3339 timestamp format.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_created of this DbInstance.
Return type:datetime
time_updated

Gets the time_updated of this DbInstance. The date and time that the database instance node was updated, expressed in RFC 3339 timestamp format.

Example: 2016-08-25T21:10:29.600Z

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