ruạṛ
a N��f� � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdd� Ze dd � �Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Zej dd� �Zdd� Zdd� Zdd� ZdS )�SqlTuningTaskCredentialDetailsz9 The credential used to connect to the database. �SECRET�PASSWORD�NORMAL�SYSDBAc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )a� Initializes a new SqlTuningTaskCredentialDetails 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: * :class:`~oci.database_management.models.SqlTuningTaskSecretCredentialDetails` * :class:`~oci.database_management.models.SqlTuningTaskPasswordCredentialDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param sql_tuning_task_credential_type: The value to assign to the sql_tuning_task_credential_type property of this SqlTuningTaskCredentialDetails. Allowed values for this property are: "SECRET", "PASSWORD" :type sql_tuning_task_credential_type: str :param username: The value to assign to the username property of this SqlTuningTaskCredentialDetails. :type username: str :param role: The value to assign to the role property of this SqlTuningTaskCredentialDetails. Allowed values for this property are: "NORMAL", "SYSDBA" :type role: str �str)�sql_tuning_task_credential_type�username�role�sqlTuningTaskCredentialTyper r N)� swagger_types� attribute_map� _sql_tuning_task_credential_type� _username�_role)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/database_management/models/sql_tuning_task_credential_details.py�__init__ s ��z'SqlTuningTaskCredentialDetails.__init__c C s( | d }|dkrdS |dkr dS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r �$SqlTuningTaskSecretCredentialDetailsr �&SqlTuningTaskPasswordCredentialDetailsr Nr )�object_dictionary�typer r r �get_subtypeI s z*SqlTuningTaskCredentialDetails.get_subtypec C s | j S )a` **[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" :return: The sql_tuning_task_credential_type of this SqlTuningTaskCredentialDetails. :rtype: str )r �r r r r r Y s z>SqlTuningTaskCredentialDetails.sql_tuning_task_credential_typec C s* ddg}t ||�s td�|���|| _dS )a+ Sets the sql_tuning_task_credential_type of this SqlTuningTaskCredentialDetails. The type of credential for the SQL tuning task. :param sql_tuning_task_credential_type: The sql_tuning_task_credential_type of this SqlTuningTaskCredentialDetails. :type: str r r zOInvalid value for `sql_tuning_task_credential_type`, must be None or one of {0}N)r � ValueError�formatr )r r �allowed_valuesr r r r g s ��c C s | j S )z� **[Required]** Gets the username of this SqlTuningTaskCredentialDetails. The user name used to connect to the database. :return: The username of this SqlTuningTaskCredentialDetails. :rtype: str �r r r r r r y s z'SqlTuningTaskCredentialDetails.usernamec C s || _ dS )z� Sets the username of this SqlTuningTaskCredentialDetails. The user name used to connect to the database. :param username: The username of this SqlTuningTaskCredentialDetails. :type: str Nr# )r r r r r r � s c C s | j S )a **[Required]** Gets the role of this SqlTuningTaskCredentialDetails. The role of the database user. Allowed values for this property are: "NORMAL", "SYSDBA" :return: The role of this SqlTuningTaskCredentialDetails. :rtype: str )r r r r r r � s z#SqlTuningTaskCredentialDetails.rolec C s* ddg}t ||�s td�|���|| _dS )z� Sets the role of this SqlTuningTaskCredentialDetails. The role of the database user. :param role: The role of this SqlTuningTaskCredentialDetails. :type: str r r z4Invalid value for `role`, must be None or one of {0}N)r r r! r )r r r"