TablespaceAdminSecretCredentialDetails

class oci.database_management.models.TablespaceAdminSecretCredentialDetails(**kwargs)

Bases: oci.database_management.models.tablespace_admin_credential_details.TablespaceAdminCredentialDetails

User provides a secret OCID, which will be used to retrieve the password to connect to the database.

Attributes

ROLE_NORMAL str(object=’’) -> str
ROLE_SYSDBA str(object=’’) -> str
TABLESPACE_ADMIN_CREDENTIAL_TYPE_PASSWORD str(object=’’) -> str
TABLESPACE_ADMIN_CREDENTIAL_TYPE_SECRET str(object=’’) -> str
password_secret_id [Required] Gets the password_secret_id of this TablespaceAdminSecretCredentialDetails.
role [Required] Gets the role of this TablespaceAdminCredentialDetails.
tablespace_admin_credential_type [Required] Gets the tablespace_admin_credential_type of this TablespaceAdminCredentialDetails.
username [Required] Gets the username of this TablespaceAdminCredentialDetails.

Methods

__init__(**kwargs) Initializes a new TablespaceAdminSecretCredentialDetails 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.
ROLE_NORMAL = 'NORMAL'
ROLE_SYSDBA = 'SYSDBA'
TABLESPACE_ADMIN_CREDENTIAL_TYPE_PASSWORD = 'PASSWORD'
TABLESPACE_ADMIN_CREDENTIAL_TYPE_SECRET = 'SECRET'
__init__(**kwargs)

Initializes a new TablespaceAdminSecretCredentialDetails object with values from keyword arguments. The default value of the tablespace_admin_credential_type attribute of this class is SECRET and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • tablespace_admin_credential_type (str) – The value to assign to the tablespace_admin_credential_type property of this TablespaceAdminSecretCredentialDetails. Allowed values for this property are: “SECRET”, “PASSWORD”
  • username (str) – The value to assign to the username property of this TablespaceAdminSecretCredentialDetails.
  • role (str) – The value to assign to the role property of this TablespaceAdminSecretCredentialDetails. Allowed values for this property are: “NORMAL”, “SYSDBA”
  • password_secret_id (str) – The value to assign to the password_secret_id property of this TablespaceAdminSecretCredentialDetails.
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 TablespaceAdminSecretCredentialDetails. The OCID of the Secret where the database password is stored.

Returns:The password_secret_id of this TablespaceAdminSecretCredentialDetails.
Return type:str
role

[Required] Gets the role of this TablespaceAdminCredentialDetails. The role of the database user.

Allowed values for this property are: “NORMAL”, “SYSDBA”

Returns:The role of this TablespaceAdminCredentialDetails.
Return type:str
tablespace_admin_credential_type

[Required] Gets the tablespace_admin_credential_type of this TablespaceAdminCredentialDetails. The type of the credential for tablespace administration tasks.

Allowed values for this property are: “SECRET”, “PASSWORD”

Returns:The tablespace_admin_credential_type of this TablespaceAdminCredentialDetails.
Return type:str
username

[Required] Gets the username of this TablespaceAdminCredentialDetails. The user to connect to the database.

Returns:The username of this TablespaceAdminCredentialDetails.
Return type:str