DatabaseSslConnectionCredentials

class oci.database.models.DatabaseSslConnectionCredentials(**kwargs)

Bases: oci.database.models.database_connection_credentials.DatabaseConnectionCredentials

Ssl connection credential details used to connect to the database.

Attributes

CREDENTIAL_TYPE_DETAILS str(object=’’) -> str
CREDENTIAL_TYPE_NAME_REFERENCE str(object=’’) -> str
CREDENTIAL_TYPE_SSL_DETAILS str(object=’’) -> str
ROLE_NORMAL A constant which can be used with the role property of a DatabaseSslConnectionCredentials.
ROLE_SYSDBA A constant which can be used with the role property of a DatabaseSslConnectionCredentials.
ROLE_SYSDG A constant which can be used with the role property of a DatabaseSslConnectionCredentials.
credential_name Gets the credential_name of this DatabaseSslConnectionCredentials.
credential_type Gets the credential_type of this DatabaseConnectionCredentials.
password [Required] Gets the password of this DatabaseSslConnectionCredentials.
role [Required] Gets the role of this DatabaseSslConnectionCredentials.
ssl_secret_id [Required] Gets the ssl_secret_id of this DatabaseSslConnectionCredentials.
username [Required] Gets the username of this DatabaseSslConnectionCredentials.

Methods

__init__(**kwargs) Initializes a new DatabaseSslConnectionCredentials 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_DETAILS = 'DETAILS'
CREDENTIAL_TYPE_NAME_REFERENCE = 'NAME_REFERENCE'
CREDENTIAL_TYPE_SSL_DETAILS = 'SSL_DETAILS'
ROLE_NORMAL = 'NORMAL'

A constant which can be used with the role property of a DatabaseSslConnectionCredentials. This constant has a value of “NORMAL”

ROLE_SYSDBA = 'SYSDBA'

A constant which can be used with the role property of a DatabaseSslConnectionCredentials. This constant has a value of “SYSDBA”

ROLE_SYSDG = 'SYSDG'

A constant which can be used with the role property of a DatabaseSslConnectionCredentials. This constant has a value of “SYSDG”

__init__(**kwargs)

Initializes a new DatabaseSslConnectionCredentials object with values from keyword arguments. The default value of the credential_type attribute of this class is SSL_DETAILS and 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 DatabaseSslConnectionCredentials. Allowed values for this property are: “NAME_REFERENCE”, “DETAILS”, “SSL_DETAILS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • credential_name (str) – The value to assign to the credential_name property of this DatabaseSslConnectionCredentials.
  • username (str) – The value to assign to the username property of this DatabaseSslConnectionCredentials.
  • password (str) – The value to assign to the password property of this DatabaseSslConnectionCredentials.
  • role (str) – The value to assign to the role property of this DatabaseSslConnectionCredentials. Allowed values for this property are: “SYSDBA”, “NORMAL”, “SYSDG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • ssl_secret_id (str) – The value to assign to the ssl_secret_id property of this DatabaseSslConnectionCredentials.
credential_name

Gets the credential_name of this DatabaseSslConnectionCredentials. The name of the credential information that used to connect to the database. The name should be in “x.y” format, where the length of “x” has a maximum of 64 characters, and length of “y” has a maximum of 199 characters. The name strings can contain letters, numbers and the underscore character only. Other characters are not valid, except for the “.” character that separates the “x” and “y” portions of the name. IMPORTANT - The name must be unique within the OCI region the credential is being created in. If you specify a name that duplicates the name of another credential within the same OCI region, you may overwrite or corrupt the credential that is already using the name.

For example: inventorydb.abc112233445566778899

Returns:The credential_name of this DatabaseSslConnectionCredentials.
Return type:str
credential_type

Gets the credential_type of this DatabaseConnectionCredentials. The type of credential used to connect to the database.

Allowed values for this property are: “NAME_REFERENCE”, “DETAILS”, “SSL_DETAILS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The credential_type of this DatabaseConnectionCredentials.
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

[Required] Gets the password of this DatabaseSslConnectionCredentials. The password that will be used to connect to the database.

Returns:The password of this DatabaseSslConnectionCredentials.
Return type:str
role

[Required] Gets the role of this DatabaseSslConnectionCredentials. The role of the user that will be connecting to the database.

Allowed values for this property are: “SYSDBA”, “NORMAL”, “SYSDG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The role of this DatabaseSslConnectionCredentials.
Return type:str
ssl_secret_id

[Required] Gets the ssl_secret_id of this DatabaseSslConnectionCredentials. The OCID of the Oracle Cloud Infrastructure secret.

Returns:The ssl_secret_id of this DatabaseSslConnectionCredentials.
Return type:str
username

[Required] Gets the username of this DatabaseSslConnectionCredentials. The username that will be used to connect to the database.

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