SqlTuningSetAdminCredentialDetails

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

Bases: object

The credential to connect to the database to perform Sql tuning set administration tasks.

Attributes:

ROLE_NORMAL

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

ROLE_SYSDBA

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

SQL_TUNING_SET_ADMIN_CREDENTIAL_TYPE_PASSWORD

A constant which can be used with the sql_tuning_set_admin_credential_type property of a SqlTuningSetAdminCredentialDetails.

SQL_TUNING_SET_ADMIN_CREDENTIAL_TYPE_SECRET

A constant which can be used with the sql_tuning_set_admin_credential_type property of a SqlTuningSetAdminCredentialDetails.

role

[Required] Gets the role of this SqlTuningSetAdminCredentialDetails.

sql_tuning_set_admin_credential_type

[Required] Gets the sql_tuning_set_admin_credential_type of this SqlTuningSetAdminCredentialDetails.

username

[Required] Gets the username of this SqlTuningSetAdminCredentialDetails.

Methods:

__init__(**kwargs)

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

ROLE_SYSDBA = 'SYSDBA'

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

SQL_TUNING_SET_ADMIN_CREDENTIAL_TYPE_PASSWORD = 'PASSWORD'

A constant which can be used with the sql_tuning_set_admin_credential_type property of a SqlTuningSetAdminCredentialDetails. This constant has a value of “PASSWORD”

SQL_TUNING_SET_ADMIN_CREDENTIAL_TYPE_SECRET = 'SECRET'

A constant which can be used with the sql_tuning_set_admin_credential_type property of a SqlTuningSetAdminCredentialDetails. This constant has a value of “SECRET”

__init__(**kwargs)

Initializes a new SqlTuningSetAdminCredentialDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • sql_tuning_set_admin_credential_type (str) – The value to assign to the sql_tuning_set_admin_credential_type property of this SqlTuningSetAdminCredentialDetails. Allowed values for this property are: “SECRET”, “PASSWORD”

  • username (str) – The value to assign to the username property of this SqlTuningSetAdminCredentialDetails.

  • role (str) – The value to assign to the role property of this SqlTuningSetAdminCredentialDetails. Allowed values for this property are: “NORMAL”, “SYSDBA”

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 role

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

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

Returns

The role of this SqlTuningSetAdminCredentialDetails.

Return type

str

property sql_tuning_set_admin_credential_type

[Required] Gets the sql_tuning_set_admin_credential_type of this SqlTuningSetAdminCredentialDetails. The type of the credential for Sql tuning set administration tasks.

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

Returns

The sql_tuning_set_admin_credential_type of this SqlTuningSetAdminCredentialDetails.

Return type

str

property username

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

Returns

The username of this SqlTuningSetAdminCredentialDetails.

Return type

str