DatabaseSecretCredentialDetails¶
- 
class oci.database_management.models.DatabaseSecretCredentialDetails(**kwargs)¶
- Bases: - oci.database_management.models.database_credential_details.DatabaseCredentialDetails- User provides a secret OCID, which will be used to retrieve the password 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 DatabaseSecretCredentialDetails. - ROLE_SYSDBA- A constant which can be used with the role property of a DatabaseSecretCredentialDetails. - ROLE_SYSDG- A constant which can be used with the role property of a DatabaseSecretCredentialDetails. - credential_type- [Required] Gets the credential_type of this DatabaseCredentialDetails. - password_secret_id- [Required] Gets the password_secret_id of this DatabaseSecretCredentialDetails. - role- Gets the role of this DatabaseSecretCredentialDetails. - username- Gets the username of this DatabaseSecretCredentialDetails. - Methods - __init__(**kwargs)- Initializes a new DatabaseSecretCredentialDetails 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 DatabaseSecretCredentialDetails. This constant has a value of “NORMAL” 
 - 
ROLE_SYSDBA= 'SYSDBA'¶
- A constant which can be used with the role property of a DatabaseSecretCredentialDetails. This constant has a value of “SYSDBA” 
 - 
ROLE_SYSDG= 'SYSDG'¶
- A constant which can be used with the role property of a DatabaseSecretCredentialDetails. This constant has a value of “SYSDG” 
 - 
__init__(**kwargs)¶
- Initializes a new DatabaseSecretCredentialDetails object with values from keyword arguments. The default value of the - credential_typeattribute of this class is- SECRETand 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 DatabaseSecretCredentialDetails. 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_secret_id (str) – The value to assign to the password_secret_id property of this DatabaseSecretCredentialDetails.
- username (str) – The value to assign to the username property of this DatabaseSecretCredentialDetails.
- role (str) – The value to assign to the role property of this DatabaseSecretCredentialDetails. 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_secret_id¶
- [Required] Gets the password_secret_id of this DatabaseSecretCredentialDetails. The OCID of the Secret where the database password is stored. - Returns: - The password_secret_id of this DatabaseSecretCredentialDetails. - Return type: - str 
 - 
role¶
- Gets the role of this DatabaseSecretCredentialDetails. 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 DatabaseSecretCredentialDetails. - Return type: - str 
 - 
username¶
- Gets the username of this DatabaseSecretCredentialDetails. The user to connect to the database. - Returns: - The username of this DatabaseSecretCredentialDetails. - Return type: - str 
 
-