UpdateBasicPreferredCredentialDetails¶
-
class
oci.database_management.models.
UpdateBasicPreferredCredentialDetails
(**kwargs)¶ Bases:
oci.database_management.models.update_preferred_credential_details.UpdatePreferredCredentialDetails
The details of the ‘BASIC’ preferred credential.
Attributes
ROLE_NORMAL
A constant which can be used with the role property of a UpdateBasicPreferredCredentialDetails. ROLE_SYSDBA
A constant which can be used with the role property of a UpdateBasicPreferredCredentialDetails. ROLE_SYSDG
A constant which can be used with the role property of a UpdateBasicPreferredCredentialDetails. TYPE_BASIC
str(object=’’) -> str TYPE_NAMED_CREDENTIAL
str(object=’’) -> str password_secret_id
Gets the password_secret_id of this UpdateBasicPreferredCredentialDetails. role
Gets the role of this UpdateBasicPreferredCredentialDetails. type
[Required] Gets the type of this UpdatePreferredCredentialDetails. user_name
Gets the user_name of this UpdateBasicPreferredCredentialDetails. Methods
__init__
(**kwargs)Initializes a new UpdateBasicPreferredCredentialDetails 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'¶ A constant which can be used with the role property of a UpdateBasicPreferredCredentialDetails. This constant has a value of “NORMAL”
-
ROLE_SYSDBA
= 'SYSDBA'¶ A constant which can be used with the role property of a UpdateBasicPreferredCredentialDetails. This constant has a value of “SYSDBA”
-
ROLE_SYSDG
= 'SYSDG'¶ A constant which can be used with the role property of a UpdateBasicPreferredCredentialDetails. This constant has a value of “SYSDG”
-
TYPE_BASIC
= 'BASIC'¶
-
TYPE_NAMED_CREDENTIAL
= 'NAMED_CREDENTIAL'¶
-
__init__
(**kwargs)¶ Initializes a new UpdateBasicPreferredCredentialDetails object with values from keyword arguments. The default value of the
type
attribute of this class isBASIC
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - type (str) – The value to assign to the type property of this UpdateBasicPreferredCredentialDetails. Allowed values for this property are: “BASIC”, “NAMED_CREDENTIAL”
- user_name (str) – The value to assign to the user_name property of this UpdateBasicPreferredCredentialDetails.
- role (str) – The value to assign to the role property of this UpdateBasicPreferredCredentialDetails. Allowed values for this property are: “NORMAL”, “SYSDBA”, “SYSDG”
- password_secret_id (str) – The value to assign to the password_secret_id property of this UpdateBasicPreferredCredentialDetails.
-
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
¶ Gets the password_secret_id of this UpdateBasicPreferredCredentialDetails. The OCID of the Vault service secret that contains the database user password.
Returns: The password_secret_id of this UpdateBasicPreferredCredentialDetails. Return type: str
-
role
¶ Gets the role of this UpdateBasicPreferredCredentialDetails. The role of the database user.
Allowed values for this property are: “NORMAL”, “SYSDBA”, “SYSDG”
Returns: The role of this UpdateBasicPreferredCredentialDetails. Return type: str
-
type
¶ [Required] Gets the type of this UpdatePreferredCredentialDetails. The type of preferred credential.
Allowed values for this property are: “BASIC”, “NAMED_CREDENTIAL”
Returns: The type of this UpdatePreferredCredentialDetails. Return type: str
-
user_name
¶ Gets the user_name of this UpdateBasicPreferredCredentialDetails. The user name used to connect to the database.
Returns: The user_name of this UpdateBasicPreferredCredentialDetails. Return type: str
-