BasicNamedCredentialContent¶
- class oci.database_management.models.BasicNamedCredentialContent(**kwargs)¶
Bases:
NamedCredentialContentThe details of the ‘BASIC’ named credential.
Attributes:
A constant which can be used with the credential_type property of a NamedCredentialContent.
A constant which can be used with the password_secret_access_mode property of a BasicNamedCredentialContent.
A constant which can be used with the password_secret_access_mode property of a BasicNamedCredentialContent.
A constant which can be used with the role property of a BasicNamedCredentialContent.
A constant which can be used with the role property of a BasicNamedCredentialContent.
A constant which can be used with the role property of a BasicNamedCredentialContent.
[Required] Gets the credential_type of this NamedCredentialContent.
[Required] Gets the password_secret_access_mode of this BasicNamedCredentialContent.
[Required] Gets the password_secret_id of this BasicNamedCredentialContent.
[Required] Gets the role of this BasicNamedCredentialContent.
[Required] Gets the user_name of this BasicNamedCredentialContent.
Methods:
__init__(**kwargs)Initializes a new BasicNamedCredentialContent 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_BASIC = 'BASIC'¶
A constant which can be used with the credential_type property of a NamedCredentialContent. This constant has a value of “BASIC”
- PASSWORD_SECRET_ACCESS_MODE_RESOURCE_PRINCIPAL = 'RESOURCE_PRINCIPAL'¶
A constant which can be used with the password_secret_access_mode property of a BasicNamedCredentialContent. This constant has a value of “RESOURCE_PRINCIPAL”
- PASSWORD_SECRET_ACCESS_MODE_USER_PRINCIPAL = 'USER_PRINCIPAL'¶
A constant which can be used with the password_secret_access_mode property of a BasicNamedCredentialContent. This constant has a value of “USER_PRINCIPAL”
- ROLE_NORMAL = 'NORMAL'¶
A constant which can be used with the role property of a BasicNamedCredentialContent. This constant has a value of “NORMAL”
- ROLE_SYSDBA = 'SYSDBA'¶
A constant which can be used with the role property of a BasicNamedCredentialContent. This constant has a value of “SYSDBA”
- ROLE_SYSDG = 'SYSDG'¶
A constant which can be used with the role property of a BasicNamedCredentialContent. This constant has a value of “SYSDG”
- __init__(**kwargs)¶
Initializes a new BasicNamedCredentialContent object with values from keyword arguments. The default value of the
credential_typeattribute of this class isBASICand 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 BasicNamedCredentialContent. Allowed values for this property are: “BASIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
user_name (str) – The value to assign to the user_name property of this BasicNamedCredentialContent.
role (str) – The value to assign to the role property of this BasicNamedCredentialContent. 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’.
password_secret_id (str) – The value to assign to the password_secret_id property of this BasicNamedCredentialContent.
password_secret_access_mode (str) – The value to assign to the password_secret_access_mode property of this BasicNamedCredentialContent. Allowed values for this property are: “USER_PRINCIPAL”, “RESOURCE_PRINCIPAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- property credential_type¶
[Required] Gets the credential_type of this NamedCredentialContent. The type of named credential. Only ‘BASIC’ is supported currently.
Allowed values for this property are: “BASIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The credential_type of this NamedCredentialContent.
- 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_secret_access_mode¶
[Required] Gets the password_secret_access_mode of this BasicNamedCredentialContent. The mechanism used to access the password plain text value.
Allowed values for this property are: “USER_PRINCIPAL”, “RESOURCE_PRINCIPAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The password_secret_access_mode of this BasicNamedCredentialContent.
- Return type
str
- property password_secret_id¶
[Required] Gets the password_secret_id of this BasicNamedCredentialContent. The OCID of the Vault service secret that contains the database user password.
- Returns
The password_secret_id of this BasicNamedCredentialContent.
- Return type
str
- property role¶
[Required] Gets the role of this BasicNamedCredentialContent. 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 BasicNamedCredentialContent.
- Return type
str
- property user_name¶
[Required] Gets the user_name of this BasicNamedCredentialContent. The user name used to connect to the database.
- Returns
The user_name of this BasicNamedCredentialContent.
- Return type
str