ruạṛ
a N��fO � @ 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 )�ManagedDatabaseCredentialzz The credential used to connect to the Managed Database and obtain the details of the optimizer statistics tasks. �SECRET�PASSWORD�NORMAL�SYSDBAc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )aw Initializes a new ManagedDatabaseCredential 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.ManagedDatabasePasswordCredential` * :class:`~oci.database_management.models.ManagedDatabaseSecretCredential` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param credential_type: The value to assign to the credential_type property of this ManagedDatabaseCredential. Allowed values for this property are: "SECRET", "PASSWORD" :type credential_type: str :param username: The value to assign to the username property of this ManagedDatabaseCredential. :type username: str :param role: The value to assign to the role property of this ManagedDatabaseCredential. Allowed values for this property are: "NORMAL", "SYSDBA" :type role: str �str)�credential_type�username�role�credentialTyper r N)� swagger_types� attribute_map�_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/managed_database_credential.py�__init__ s ��z"ManagedDatabaseCredential.__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 �!ManagedDatabasePasswordCredentialr �ManagedDatabaseSecretCredentialr Nr )�object_dictionary�typer r r �get_subtypeI s z%ManagedDatabaseCredential.get_subtypec C s | j S )ak **[Required]** Gets the credential_type of this ManagedDatabaseCredential. Indicates the type of credential required to retrieve the details of the optimizer statistics tasks. Allowed values for this property are: "SECRET", "PASSWORD" :return: The credential_type of this ManagedDatabaseCredential. :rtype: str )r �r r r r r Y s z)ManagedDatabaseCredential.credential_typec C s* ddg}t ||�s td�|���|| _dS )a& Sets the credential_type of this ManagedDatabaseCredential. Indicates the type of credential required to retrieve the details of the optimizer statistics tasks. :param credential_type: The credential_type of this ManagedDatabaseCredential. :type: str r r z?Invalid value for `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 ManagedDatabaseCredential. The user name used to connect to the database. :return: The username of this ManagedDatabaseCredential. :rtype: str �r r r r r r y s z"ManagedDatabaseCredential.usernamec C s || _ dS )z� Sets the username of this ManagedDatabaseCredential. The user name used to connect to the database. :param username: The username of this ManagedDatabaseCredential. :type: str Nr# )r r r r r r � s c C s | j S )a **[Required]** Gets the role of this ManagedDatabaseCredential. The role of the database user. Allowed values for this property are: "NORMAL", "SYSDBA" :return: The role of this ManagedDatabaseCredential. :rtype: str )r r r r r r � s zManagedDatabaseCredential.rolec C s* ddg}t ||�s td�|���|| _dS )z� Sets the role of this ManagedDatabaseCredential. The role of the database user. :param role: The role of this ManagedDatabaseCredential. :type: str r r z4Invalid value for `role`, must be None or one of {0}N)r r r! r )r r r"