ruạṛ
a N��fB � @ 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 )� TablespaceAdminCredentialDetailsz_ The credential to connect to the database to perform tablespace administration tasks. �SECRET�PASSWORD�NORMAL�SYSDBAc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )a� Initializes a new TablespaceAdminCredentialDetails 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.TablespaceAdminPasswordCredentialDetails` * :class:`~oci.database_management.models.TablespaceAdminSecretCredentialDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param tablespace_admin_credential_type: The value to assign to the tablespace_admin_credential_type property of this TablespaceAdminCredentialDetails. Allowed values for this property are: "SECRET", "PASSWORD" :type tablespace_admin_credential_type: str :param username: The value to assign to the username property of this TablespaceAdminCredentialDetails. :type username: str :param role: The value to assign to the role property of this TablespaceAdminCredentialDetails. Allowed values for this property are: "NORMAL", "SYSDBA" :type role: str �str)� tablespace_admin_credential_type�username�role�tablespaceAdminCredentialTyper r N)� swagger_types� attribute_map�!_tablespace_admin_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/tablespace_admin_credential_details.py�__init__ s ��z)TablespaceAdminCredentialDetails.__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 �(TablespaceAdminPasswordCredentialDetailsr �&TablespaceAdminSecretCredentialDetailsr Nr )�object_dictionary�typer r r �get_subtypeI s z,TablespaceAdminCredentialDetails.get_subtypec C s | j S )av **[Required]** Gets the tablespace_admin_credential_type of this TablespaceAdminCredentialDetails. The type of the credential for tablespace administration tasks. Allowed values for this property are: "SECRET", "PASSWORD" :return: The tablespace_admin_credential_type of this TablespaceAdminCredentialDetails. :rtype: str )r �r r r r r Y s zATablespaceAdminCredentialDetails.tablespace_admin_credential_typec C s* ddg}t ||�s td�|���|| _dS )aB Sets the tablespace_admin_credential_type of this TablespaceAdminCredentialDetails. The type of the credential for tablespace administration tasks. :param tablespace_admin_credential_type: The tablespace_admin_credential_type of this TablespaceAdminCredentialDetails. :type: str r r zPInvalid value for `tablespace_admin_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 TablespaceAdminCredentialDetails. The user to connect to the database. :return: The username of this TablespaceAdminCredentialDetails. :rtype: str �r r r r r r y s z)TablespaceAdminCredentialDetails.usernamec C s || _ dS )z� Sets the username of this TablespaceAdminCredentialDetails. The user to connect to the database. :param username: The username of this TablespaceAdminCredentialDetails. :type: str Nr# )r r r r r r � s c C s | j S )a **[Required]** Gets the role of this TablespaceAdminCredentialDetails. The role of the database user. Allowed values for this property are: "NORMAL", "SYSDBA" :return: The role of this TablespaceAdminCredentialDetails. :rtype: str )r r r r r r � s z%TablespaceAdminCredentialDetails.rolec C s* ddg}t ||�s td�|���|| _dS )z� Sets the role of this TablespaceAdminCredentialDetails. The role of the database user. :param role: The role of this TablespaceAdminCredentialDetails. :type: str r r z4Invalid value for `role`, must be None or one of {0}N)r r r! r )r r r"