ruạṛ
a ���f7 � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�PreferredCredential� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zed d� �Zej dd� �Zdd� Z dd� Zdd� ZdS )�BasicPreferredCredentialz: The details of the 'BASIC' preferred credential. �NORMAL�SYSDBA�SYSDGc K s` dddddddd�| _ dddddd d d�| _d| _d| _d| _d| _d| _d| _d| _d| _dS ) a� Initializes a new BasicPreferredCredential object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.BasicPreferredCredential.type` attribute of this class is ``BASIC`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this BasicPreferredCredential. Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param credential_name: The value to assign to the credential_name property of this BasicPreferredCredential. :type credential_name: str :param status: The value to assign to the status property of this BasicPreferredCredential. Allowed values for this property are: "SET", "NOT_SET", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param is_accessible: The value to assign to the is_accessible property of this BasicPreferredCredential. :type is_accessible: bool :param user_name: The value to assign to the user_name property of this BasicPreferredCredential. :type user_name: str :param role: The value to assign to the role property of this BasicPreferredCredential. Allowed values for this property are: "NORMAL", "SYSDBA", "SYSDG", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type role: str :param password_secret_id: The value to assign to the password_secret_id property of this BasicPreferredCredential. :type password_secret_id: str �str�bool)�typeZcredential_name�statusZ is_accessible� user_name�role�password_secret_idr ZcredentialNamer ZisAccessibleZuserNamer ZpasswordSecretIdNZBASIC) Z swagger_typesZ attribute_mapZ_typeZ_credential_nameZ_statusZ_is_accessible� _user_name�_role�_password_secret_id)�self�kwargs� r �]/usr/lib/python3.9/site-packages/oci/database_management/models/basic_preferred_credential.py�__init__ s0 *�� z!BasicPreferredCredential.__init__c C s | j S )z� Gets the user_name of this BasicPreferredCredential. The user name used to connect to the database. :return: The user_name of this BasicPreferredCredential. :rtype: str �r �r r r r r d s z"BasicPreferredCredential.user_namec C s || _ dS )z� Sets the user_name of this BasicPreferredCredential. The user name used to connect to the database. :param user_name: The user_name of this BasicPreferredCredential. :type: str Nr )r r r r r r p s c C s | j S )az Gets the role of this BasicPreferredCredential. The role of the database user. Allowed values for this property are: "NORMAL", "SYSDBA", "SYSDG", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The role of this BasicPreferredCredential. :rtype: str )r r r r r r | s zBasicPreferredCredential.rolec C s g d�}t ||�sd}|| _dS )z� Sets the role of this BasicPreferredCredential. The role of the database user. :param role: The role of this BasicPreferredCredential. :type: str )r r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r � s c C s | j S )a] Gets the password_secret_id of this BasicPreferredCredential. The `OCID`__ of the Vault service secret that contains the database user password. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The password_secret_id of this BasicPreferredCredential. :rtype: str �r r r r r r � s z+BasicPreferredCredential.password_secret_idc C s || _ dS )an Sets the password_secret_id of this BasicPreferredCredential. The `OCID`__ of the Vault service secret that contains the database user password. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param password_secret_id: The password_secret_id of this BasicPreferredCredential. :type: str Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s z!BasicPreferredCredential.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zBasicPreferredCredential.__eq__c C s | |k S r r r! r r r �__ne__� s zBasicPreferredCredential.__ne__N)�__name__� __module__�__qualname__�__doc__ZROLE_NORMALZROLE_SYSDBAZ ROLE_SYSDGr �propertyr �setterr r r r# r$ r r r r r s( F r N) Zpreferred_credentialr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn