DatabaseNamedCredentialConnectionDetails

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

Bases: DatabaseConnectionCredentials

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

Attributes:

CREDENTIAL_TYPE_DETAILS

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

CREDENTIAL_TYPE_NAMED_CREDENTIALS

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

CREDENTIAL_TYPE_NAME_REFERENCE

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

CREDENTIAL_TYPE_SSL_DETAILS

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

credential_type

Gets the credential_type of this DatabaseConnectionCredentials.

named_credential_id

[Required] Gets the named_credential_id of this DatabaseNamedCredentialConnectionDetails.

Methods:

__init__(**kwargs)

Initializes a new DatabaseNamedCredentialConnectionDetails 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_DETAILS = 'DETAILS'

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

CREDENTIAL_TYPE_NAMED_CREDENTIALS = 'NAMED_CREDENTIALS'

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

CREDENTIAL_TYPE_NAME_REFERENCE = 'NAME_REFERENCE'

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

CREDENTIAL_TYPE_SSL_DETAILS = 'SSL_DETAILS'

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

__init__(**kwargs)

Initializes a new DatabaseNamedCredentialConnectionDetails object with values from keyword arguments. The default value of the credential_type attribute of this class is NAMED_CREDENTIAL 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 DatabaseNamedCredentialConnectionDetails. Allowed values for this property are: “NAME_REFERENCE”, “DETAILS”, “SSL_DETAILS”, “NAMED_CREDENTIALS”

  • named_credential_id (str) – The value to assign to the named_credential_id property of this DatabaseNamedCredentialConnectionDetails.

property credential_type

Gets the credential_type of this DatabaseConnectionCredentials. The type of credential used to connect to the database.

Allowed values for this property are: “NAME_REFERENCE”, “DETAILS”, “SSL_DETAILS”, “NAMED_CREDENTIALS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The credential_type of this DatabaseConnectionCredentials.

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 named_credential_id

[Required] Gets the named_credential_id of this DatabaseNamedCredentialConnectionDetails. The OCID of the Named Credential where the database password metadata is stored.

Returns

The named_credential_id of this DatabaseNamedCredentialConnectionDetails.

Return type

str