SqlTuningTaskSecretCredentialDetails

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

Bases: SqlTuningTaskCredentialDetails

The OCID of the Secret provided by the user to retrieve the password to connect to the database.

Attributes:

ROLE_NORMAL

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

ROLE_SYSDBA

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

SQL_TUNING_TASK_CREDENTIAL_TYPE_PASSWORD

A constant which can be used with the sql_tuning_task_credential_type property of a SqlTuningTaskCredentialDetails.

SQL_TUNING_TASK_CREDENTIAL_TYPE_SECRET

A constant which can be used with the sql_tuning_task_credential_type property of a SqlTuningTaskCredentialDetails.

password_secret_id

[Required] Gets the password_secret_id of this SqlTuningTaskSecretCredentialDetails.

role

[Required] Gets the role of this SqlTuningTaskCredentialDetails.

sql_tuning_task_credential_type

[Required] Gets the sql_tuning_task_credential_type of this SqlTuningTaskCredentialDetails.

username

[Required] Gets the username of this SqlTuningTaskCredentialDetails.

Methods:

__init__(**kwargs)

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

ROLE_SYSDBA = 'SYSDBA'

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

SQL_TUNING_TASK_CREDENTIAL_TYPE_PASSWORD = 'PASSWORD'

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

SQL_TUNING_TASK_CREDENTIAL_TYPE_SECRET = 'SECRET'

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

__init__(**kwargs)

Initializes a new SqlTuningTaskSecretCredentialDetails object with values from keyword arguments. The default value of the sql_tuning_task_credential_type attribute of this class is SECRET and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

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

  • password_secret_id (str) – The value to assign to the password_secret_id property of this SqlTuningTaskSecretCredentialDetails.

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

[Required] Gets the password_secret_id of this SqlTuningTaskSecretCredentialDetails. The OCID of the Secret where the database password is stored.

Returns

The password_secret_id of this SqlTuningTaskSecretCredentialDetails.

Return type

str

property role

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

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

Returns

The role of this SqlTuningTaskCredentialDetails.

Return type

str

property sql_tuning_task_credential_type

[Required] Gets the sql_tuning_task_credential_type of this SqlTuningTaskCredentialDetails. The type of credential for the SQL tuning task.

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

Returns

The sql_tuning_task_credential_type of this SqlTuningTaskCredentialDetails.

Return type

str

property username

[Required] Gets the username of this SqlTuningTaskCredentialDetails. The user name used to connect to the database.

Returns

The username of this SqlTuningTaskCredentialDetails.

Return type

str