ruạṛ
a N��fv � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )� UpdatePreferredCredentialDetails� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z edd � �Zej dd � �Zdd� Zdd� Z dd� ZdS )�%UpdateBasicPreferredCredentialDetailsz: The details of the 'BASIC' preferred credential. �NORMAL�SYSDBAc K sB ddddd�| _ ddddd�| _d| _d| _d| _d| _d| _dS ) a� Initializes a new UpdateBasicPreferredCredentialDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.UpdateBasicPreferredCredentialDetails.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 UpdateBasicPreferredCredentialDetails. Allowed values for this property are: "BASIC" :type type: str :param user_name: The value to assign to the user_name property of this UpdateBasicPreferredCredentialDetails. :type user_name: str :param role: The value to assign to the role property of this UpdateBasicPreferredCredentialDetails. Allowed values for this property are: "NORMAL", "SYSDBA" :type role: str :param password_secret_id: The value to assign to the password_secret_id property of this UpdateBasicPreferredCredentialDetails. :type password_secret_id: str �str)�type� user_name�role�password_secret_idr �userNamer �passwordSecretIdN�BASIC)� swagger_types� attribute_map�_type� _user_name�_role�_password_secret_id)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/database_management/models/update_basic_preferred_credential_details.py�__init__ s ��z.UpdateBasicPreferredCredentialDetails.__init__c C s | j S )z� Gets the user_name of this UpdateBasicPreferredCredentialDetails. The user name used to connect to the database. :return: The user_name of this UpdateBasicPreferredCredentialDetails. :rtype: str �r �r r r r r E s z/UpdateBasicPreferredCredentialDetails.user_namec C s || _ dS )z� Sets the user_name of this UpdateBasicPreferredCredentialDetails. The user name used to connect to the database. :param user_name: The user_name of this UpdateBasicPreferredCredentialDetails. :type: str Nr )r r r r r r Q s c C s | j S )a Gets the role of this UpdateBasicPreferredCredentialDetails. The role of the database user. Allowed values for this property are: "NORMAL", "SYSDBA" :return: The role of this UpdateBasicPreferredCredentialDetails. :rtype: str )r r r r r r ] s z*UpdateBasicPreferredCredentialDetails.rolec C s* ddg}t ||�s td�|���|| _dS )z� Sets the role of this UpdateBasicPreferredCredentialDetails. The role of the database user. :param role: The role of this UpdateBasicPreferredCredentialDetails. :type: str r r z4Invalid value for `role`, must be None or one of {0}N)r � ValueError�formatr )r r �allowed_valuesr r r r k s ��c C s | j S )aw Gets the password_secret_id of this UpdateBasicPreferredCredentialDetails. 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 UpdateBasicPreferredCredentialDetails. :rtype: str �r r r r r r } s z8UpdateBasicPreferredCredentialDetails.password_secret_idc C s || _ dS )a� Sets the password_secret_id of this UpdateBasicPreferredCredentialDetails. 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 UpdateBasicPreferredCredentialDetails. :type: str Nr# )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s z.UpdateBasicPreferredCredentialDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z,UpdateBasicPreferredCredentialDetails.__eq__c C s | |k S r$ r r'