a f@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@s^eZdZdZdZdZddZeddZe dd Z e j d d Z d d Z d dZ ddZdS)PasswordDetailsz Details for the database system password. Password can be passed as `VaultSecretPasswordDetails` or `PlainTextPasswordDetails`. PLAIN_TEXT VAULT_SECRETcKsddi|_ddi|_d|_dS)a Initializes a new PasswordDetails 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.psql.models.PlainTextPasswordDetails` * :class:`~oci.psql.models.VaultSecretPasswordDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param password_type: The value to assign to the password_type property of this PasswordDetails. Allowed values for this property are: "PLAIN_TEXT", "VAULT_SECRET" :type password_type: str password_typestr passwordTypeN)Z swagger_typesZ attribute_map_password_type)selfkwargsrD/usr/lib/python3.9/site-packages/oci/psql/models/password_details.py__init__s zPasswordDetails.__init__cCs(|d}|dkrdS|dkr dSdSdS)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 rZPlainTextPasswordDetailsrZVaultSecretPasswordDetailsrNr)Zobject_dictionarytyperrr get_subtype5s zPasswordDetails.get_subtypecCs|jS)a  **[Required]** Gets the password_type of this PasswordDetails. The password type. Allowed values for this property are: "PLAIN_TEXT", "VAULT_SECRET" :return: The password_type of this PasswordDetails. :rtype: str )r r rrrr Es zPasswordDetails.password_typecCs*ddg}t||s td|||_dS)z Sets the password_type of this PasswordDetails. The password type. :param password_type: The password_type of this PasswordDetails. :type: str rrz:Invalid value for `password_type`, must be None or one of N)r ValueErrorr )r r Zallowed_valuesrrrr Ss  cCst|SN)rrrrr__repr__dszPasswordDetails.__repr__cCs|dur dS|j|jkS)NF)__dict__r otherrrr__eq__gszPasswordDetails.__eq__cCs ||k Srrrrrr__ne__mszPasswordDetails.__ne__N)__name__ __module__ __qualname____doc__ZPASSWORD_TYPE_PLAIN_TEXTZPASSWORD_TYPE_VAULT_SECRETr staticmethodrpropertyr setterrrrrrrrr s   rN)Zoci.utilrrrZoci.decoratorsrobjectrrrrrs