DatabaseSecretCredentialDetails

class oci.database_management.models.DatabaseSecretCredentialDetails(**kwargs)

Bases: DatabaseCredentialDetails

User provides a secret OCID, which will be used to retrieve the password to connect to the database.

Attributes:

CREDENTIAL_TYPE_NAMED_CREDENTIAL

A constant which can be used with the credential_type property of a DatabaseCredentialDetails.

CREDENTIAL_TYPE_PASSWORD

A constant which can be used with the credential_type property of a DatabaseCredentialDetails.

CREDENTIAL_TYPE_SECRET

A constant which can be used with the credential_type property of a DatabaseCredentialDetails.

ROLE_NORMAL

A constant which can be used with the role property of a DatabaseSecretCredentialDetails.

ROLE_SYSDBA

A constant which can be used with the role property of a DatabaseSecretCredentialDetails.

ROLE_SYSDG

A constant which can be used with the role property of a DatabaseSecretCredentialDetails.

credential_type

[Required] Gets the credential_type of this DatabaseCredentialDetails.

password_secret_id

[Required] Gets the password_secret_id of this DatabaseSecretCredentialDetails.

role

Gets the role of this DatabaseSecretCredentialDetails.

username

Gets the username of this DatabaseSecretCredentialDetails.

Methods:

__init__(**kwargs)

Initializes a new DatabaseSecretCredentialDetails object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

CREDENTIAL_TYPE_NAMED_CREDENTIAL = 'NAMED_CREDENTIAL'

A constant which can be used with the credential_type property of a DatabaseCredentialDetails. This constant has a value of “NAMED_CREDENTIAL”

CREDENTIAL_TYPE_PASSWORD = 'PASSWORD'

A constant which can be used with the credential_type property of a DatabaseCredentialDetails. This constant has a value of “PASSWORD”

CREDENTIAL_TYPE_SECRET = 'SECRET'

A constant which can be used with the credential_type property of a DatabaseCredentialDetails. This constant has a value of “SECRET”

ROLE_NORMAL = 'NORMAL'

A constant which can be used with the role property of a DatabaseSecretCredentialDetails. This constant has a value of “NORMAL”

ROLE_SYSDBA = 'SYSDBA'

A constant which can be used with the role property of a DatabaseSecretCredentialDetails. This constant has a value of “SYSDBA”

ROLE_SYSDG = 'SYSDG'

A constant which can be used with the role property of a DatabaseSecretCredentialDetails. This constant has a value of “SYSDG”

__init__(**kwargs)

Initializes a new DatabaseSecretCredentialDetails object with values from keyword arguments. The default value of the credential_type attribute of this class is SECRET and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • credential_type (str) – The value to assign to the credential_type property of this DatabaseSecretCredentialDetails. Allowed values for this property are: “SECRET”, “PASSWORD”, “NAMED_CREDENTIAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • password_secret_id (str) – The value to assign to the password_secret_id property of this DatabaseSecretCredentialDetails.

  • username (str) – The value to assign to the username property of this DatabaseSecretCredentialDetails.

  • role (str) – The value to assign to the role property of this DatabaseSecretCredentialDetails. Allowed values for this property are: “NORMAL”, “SYSDBA”, “SYSDG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property credential_type

[Required] Gets the credential_type of this DatabaseCredentialDetails. The type of the credential for tablespace administration tasks.

Allowed values for this property are: “SECRET”, “PASSWORD”, “NAMED_CREDENTIAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The credential_type of this DatabaseCredentialDetails.

Return type

str

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property password_secret_id

[Required] Gets the password_secret_id of this DatabaseSecretCredentialDetails. The OCID of the Secret where the database password is stored.

Returns

The password_secret_id of this DatabaseSecretCredentialDetails.

Return type

str

property role

Gets the role of this DatabaseSecretCredentialDetails. The role of the database user.

Allowed values for this property are: “NORMAL”, “SYSDBA”, “SYSDG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The role of this DatabaseSecretCredentialDetails.

Return type

str

property username

Gets the username of this DatabaseSecretCredentialDetails. The user to connect to the database.

Returns

The username of this DatabaseSecretCredentialDetails.

Return type

str