DatabaseNamedCredentialDetails¶
- class oci.database_management.models.DatabaseNamedCredentialDetails(**kwargs)¶
Bases:
DatabaseCredentialDetailsUser provides a named credential OCID, which will be used to retrieve the password to connect to the database.
Attributes:
A constant which can be used with the credential_type property of a DatabaseCredentialDetails.
A constant which can be used with the credential_type property of a DatabaseCredentialDetails.
A constant which can be used with the credential_type property of a DatabaseCredentialDetails.
[Required] Gets the credential_type of this DatabaseCredentialDetails.
[Required] Gets the named_credential_id of this DatabaseNamedCredentialDetails.
Methods:
__init__(**kwargs)Initializes a new DatabaseNamedCredentialDetails 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”
- __init__(**kwargs)¶
Initializes a new DatabaseNamedCredentialDetails object with values from keyword arguments. The default value of the
credential_typeattribute of this class isNAMED_CREDENTIALand 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 DatabaseNamedCredentialDetails. Allowed values for this property are: “SECRET”, “PASSWORD”, “NAMED_CREDENTIAL”
named_credential_id (str) – The value to assign to the named_credential_id property of this DatabaseNamedCredentialDetails.
- 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.