TestBasicPreferredCredentialDetails

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

Bases: TestPreferredCredentialDetails

The details of the ‘BASIC’ preferred credential.

Attributes:

ROLE_NORMAL

A constant which can be used with the role property of a TestBasicPreferredCredentialDetails.

ROLE_SYSDBA

A constant which can be used with the role property of a TestBasicPreferredCredentialDetails.

ROLE_SYSDG

A constant which can be used with the role property of a TestBasicPreferredCredentialDetails.

TYPE_BASIC

A constant which can be used with the type property of a TestPreferredCredentialDetails.

TYPE_NAMED_CREDENTIAL

A constant which can be used with the type property of a TestPreferredCredentialDetails.

password_secret_id

Gets the password_secret_id of this TestBasicPreferredCredentialDetails.

role

Gets the role of this TestBasicPreferredCredentialDetails.

type

[Required] Gets the type of this TestPreferredCredentialDetails.

user_name

Gets the user_name of this TestBasicPreferredCredentialDetails.

Methods:

__init__(**kwargs)

Initializes a new TestBasicPreferredCredentialDetails 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 TestBasicPreferredCredentialDetails. This constant has a value of “NORMAL”

ROLE_SYSDBA = 'SYSDBA'

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

ROLE_SYSDG = 'SYSDG'

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

TYPE_BASIC = 'BASIC'

A constant which can be used with the type property of a TestPreferredCredentialDetails. This constant has a value of “BASIC”

TYPE_NAMED_CREDENTIAL = 'NAMED_CREDENTIAL'

A constant which can be used with the type property of a TestPreferredCredentialDetails. This constant has a value of “NAMED_CREDENTIAL”

__init__(**kwargs)

Initializes a new TestBasicPreferredCredentialDetails object with values from keyword arguments. The default value of the type attribute of this class is BASIC 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 TestBasicPreferredCredentialDetails. Allowed values for this property are: “BASIC”, “NAMED_CREDENTIAL”

  • user_name (str) – The value to assign to the user_name property of this TestBasicPreferredCredentialDetails.

  • role (str) – The value to assign to the role property of this TestBasicPreferredCredentialDetails. 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 TestBasicPreferredCredentialDetails.

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_id

Gets the password_secret_id of this TestBasicPreferredCredentialDetails. The OCID of the Vault service secret that contains the database user password.

Returns

The password_secret_id of this TestBasicPreferredCredentialDetails.

Return type

str

property role

Gets the role of this TestBasicPreferredCredentialDetails. The role of the database user.

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

Returns

The role of this TestBasicPreferredCredentialDetails.

Return type

str

property type

[Required] Gets the type of this TestPreferredCredentialDetails. The type of preferred credential. Only ‘BASIC’ is supported currently.

Allowed values for this property are: “BASIC”, “NAMED_CREDENTIAL”

Returns

The type of this TestPreferredCredentialDetails.

Return type

str

property user_name

Gets the user_name of this TestBasicPreferredCredentialDetails. The user name used to connect to the database.

Returns

The user_name of this TestBasicPreferredCredentialDetails.

Return type

str