DatabasePasswordCredentialDetails¶
-
class
oci.database_management.models.
DatabasePasswordCredentialDetails
(**kwargs)¶ Bases:
oci.database_management.models.database_credential_details.DatabaseCredentialDetails
User provides a password to be used to connect to the database.
Attributes
CREDENTIAL_TYPE_NAMED_CREDENTIAL
str(object=’’) -> str CREDENTIAL_TYPE_PASSWORD
str(object=’’) -> str CREDENTIAL_TYPE_SECRET
str(object=’’) -> str ROLE_NORMAL
A constant which can be used with the role property of a DatabasePasswordCredentialDetails. ROLE_SYSDBA
A constant which can be used with the role property of a DatabasePasswordCredentialDetails. ROLE_SYSDG
A constant which can be used with the role property of a DatabasePasswordCredentialDetails. credential_type
[Required] Gets the credential_type of this DatabaseCredentialDetails. password
[Required] Gets the password of this DatabasePasswordCredentialDetails. role
Gets the role of this DatabasePasswordCredentialDetails. username
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'¶
-
CREDENTIAL_TYPE_PASSWORD
= 'PASSWORD'¶
-
CREDENTIAL_TYPE_SECRET
= '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_type
attribute of this class isPASSWORD
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 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’.
-
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.
-
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
-
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
-
username
¶ Gets the username of this DatabasePasswordCredentialDetails. The user to connect to the database.
Returns: The username of this DatabasePasswordCredentialDetails. Return type: str
-