DbCredential

class oci.identity.models.DbCredential(**kwargs)

Bases: object

Database credentials are needed for onboarding cloud database to identity. The DB credentials are used for DB authentication with the service.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a DbCredential.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a DbCredential.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a DbCredential.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a DbCredential.
id Gets the id of this DbCredential.
lifecycle_details Gets the lifecycle_details of this DbCredential.
lifecycle_state Gets the lifecycle_state of this DbCredential.
time_created Gets the time_created of this DbCredential.
time_expires Gets the time_expires of this DbCredential.
user_id Gets the user_id of this DbCredential.

Methods

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

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

__init__(**kwargs)

Initializes a new DbCredential 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 DbCredential.
  • user_id (str) – The value to assign to the user_id property of this DbCredential.
  • time_created (datetime) – The value to assign to the time_created property of this DbCredential.
  • time_expires (datetime) – The value to assign to the time_expires property of this DbCredential.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this DbCredential. Allowed values for this property are: “CREATING”, “ACTIVE”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_details (int) – The value to assign to the lifecycle_details property of this DbCredential.
id

Gets the id of this DbCredential. The OCID of the DB credential.

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

Gets the lifecycle_details of this DbCredential. The detailed status of INACTIVE lifecycleState.

Returns:The lifecycle_details of this DbCredential.
Return type:int
lifecycle_state

Gets the lifecycle_state of this DbCredential. The credential’s current state. After creating a DB credential, make sure its lifecycleState changes from CREATING to ACTIVE before using it.

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

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

Gets the time_created of this DbCredential. Date and time the DbCredential object was created, in the format defined by RFC3339.

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

Returns:The time_created of this DbCredential.
Return type:datetime
time_expires

Gets the time_expires of this DbCredential. Date and time when this credential will expire, in the format defined by RFC3339. Null if it never expires.

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

Returns:The time_expires of this DbCredential.
Return type:datetime
user_id

Gets the user_id of this DbCredential. The OCID of the user the DB credential belongs to.

Returns:The user_id of this DbCredential.
Return type:str