ManagedDatabasePasswordCredential¶
- class oci.database_management.models.ManagedDatabasePasswordCredential(**kwargs)¶
Bases:
ManagedDatabaseCredentialUser 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 ManagedDatabaseCredential.
A constant which can be used with the credential_type property of a ManagedDatabaseCredential.
A constant which can be used with the role property of a ManagedDatabaseCredential.
A constant which can be used with the role property of a ManagedDatabaseCredential.
[Required] Gets the credential_type of this ManagedDatabaseCredential.
[Required] Gets the password of this ManagedDatabasePasswordCredential.
[Required] Gets the role of this ManagedDatabaseCredential.
[Required] Gets the username of this ManagedDatabaseCredential.
Methods:
__init__(**kwargs)Initializes a new ManagedDatabasePasswordCredential 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_PASSWORD = 'PASSWORD'¶
A constant which can be used with the credential_type property of a ManagedDatabaseCredential. This constant has a value of “PASSWORD”
- CREDENTIAL_TYPE_SECRET = 'SECRET'¶
A constant which can be used with the credential_type property of a ManagedDatabaseCredential. This constant has a value of “SECRET”
- ROLE_NORMAL = 'NORMAL'¶
A constant which can be used with the role property of a ManagedDatabaseCredential. This constant has a value of “NORMAL”
- ROLE_SYSDBA = 'SYSDBA'¶
A constant which can be used with the role property of a ManagedDatabaseCredential. This constant has a value of “SYSDBA”
- __init__(**kwargs)¶
Initializes a new ManagedDatabasePasswordCredential 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 ManagedDatabasePasswordCredential. Allowed values for this property are: “SECRET”, “PASSWORD”
username (str) – The value to assign to the username property of this ManagedDatabasePasswordCredential.
role (str) – The value to assign to the role property of this ManagedDatabasePasswordCredential. Allowed values for this property are: “NORMAL”, “SYSDBA”
password (str) – The value to assign to the password property of this ManagedDatabasePasswordCredential.
- property credential_type¶
[Required] Gets the credential_type of this ManagedDatabaseCredential. Indicates the type of credential required to retrieve the details of the optimizer statistics tasks.
Allowed values for this property are: “SECRET”, “PASSWORD”
- Returns
The credential_type of this ManagedDatabaseCredential.
- 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 ManagedDatabasePasswordCredential. The database user’s password encoded using BASE64 scheme.
- Returns
The password of this ManagedDatabasePasswordCredential.
- Return type
str
- property role¶
[Required] Gets the role of this ManagedDatabaseCredential. The role of the database user.
Allowed values for this property are: “NORMAL”, “SYSDBA”
- Returns
The role of this ManagedDatabaseCredential.
- Return type
str
- property username¶
[Required] Gets the username of this ManagedDatabaseCredential. The user name used to connect to the database.
- Returns
The username of this ManagedDatabaseCredential.
- Return type
str