DatabasePasswordCredentialDetails¶
- class oci.database_management.models.DatabasePasswordCredentialDetails(**kwargs)¶
Bases:
DatabaseCredentialDetailsUser provides a password to be used 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.
A constant which can be used with the role property of a DatabasePasswordCredentialDetails.
A constant which can be used with the role property of a DatabasePasswordCredentialDetails.
A constant which can be used with the role property of a DatabasePasswordCredentialDetails.
[Required] Gets the credential_type of this DatabaseCredentialDetails.
[Required] Gets the password of this DatabasePasswordCredentialDetails.
Gets the role of this DatabasePasswordCredentialDetails.
Gets the username of this DatabasePasswordCredentialDetails.
Methods:
__init__(**kwargs)Initializes a new DatabasePasswordCredentialDetails 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 DatabasePasswordCredentialDetails. This constant has a value of “NORMAL”
- ROLE_SYSDBA = 'SYSDBA'¶
A constant which can be used with the role property of a DatabasePasswordCredentialDetails. This constant has a value of “SYSDBA”
- ROLE_SYSDG = 'SYSDG'¶
A constant which can be used with the role property of a DatabasePasswordCredentialDetails. This constant has a value of “SYSDG”
- __init__(**kwargs)¶
Initializes a new DatabasePasswordCredentialDetails object with values from keyword arguments. The default value of the
credential_typeattribute of this class isPASSWORDand 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 DatabasePasswordCredentialDetails. 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 (str) – The value to assign to the password property of this DatabasePasswordCredentialDetails.
username (str) – The value to assign to the username property of this DatabasePasswordCredentialDetails.
role (str) – The value to assign to the role property of this DatabasePasswordCredentialDetails. 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¶
[Required] Gets the password of this DatabasePasswordCredentialDetails. The database user’s password encoded using BASE64 scheme.
- Returns
The password of this DatabasePasswordCredentialDetails.
- Return type
str
- property role¶
Gets the role of this DatabasePasswordCredentialDetails. 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 DatabasePasswordCredentialDetails.
- Return type
str
- property username¶
Gets the username of this DatabasePasswordCredentialDetails. The user to connect to the database.
- Returns
The username of this DatabasePasswordCredentialDetails.
- Return type
str