/
lib
/
python3.9
/
site-packages
/
oci
/
globally_distributed_database
/
models
/
__pycache__
/
Upload File
HOME
a ���f � @ 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 ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z dd� Zd d� Z dd� ZdS )�PrevalidatePayloadz� Payload required to run prevalidation operation for create sharded database or patch sharded database, based on operation selected. �CREATE�PATCHc K s ddi| _ ddi| _d| _dS )a� Initializes a new PrevalidatePayload 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.globally_distributed_database.models.PrevalidatePatchPayload` * :class:`~oci.globally_distributed_database.models.PrevalidateCreatePayload` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param operation: The value to assign to the operation property of this PrevalidatePayload. Allowed values for this property are: "CREATE", "PATCH" :type operation: str � operation�strN)Z swagger_typesZ attribute_map� _operation)�self�kwargs� r �`/usr/lib/python3.9/site-packages/oci/globally_distributed_database/models/prevalidate_payload.py�__init__ s ��zPrevalidatePayload.__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 ZPrevalidatePatchPayloadr ZPrevalidateCreatePayloadr Nr )Zobject_dictionary�typer r r �get_subtype4 s zPrevalidatePayload.get_subtypec C s | j S )a* **[Required]** Gets the operation of this PrevalidatePayload. The operation on sharded database that need to be pre-validated. Allowed values for this property are: "CREATE", "PATCH" :return: The operation of this PrevalidatePayload. :rtype: str )r �r r r r r D s zPrevalidatePayload.operationc C s* ddg}t ||�s td|� ���|| _dS )z� Sets the operation of this PrevalidatePayload. The operation on sharded database that need to be pre-validated. :param operation: The operation of this PrevalidatePayload. :type: str r r z6Invalid value for `operation`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r R s �c C s t | �S �N)r r r r r �__repr__c s zPrevalidatePayload.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__f s zPrevalidatePayload.__eq__c C s | |k S r r r r r r �__ne__l s zPrevalidatePayload.__ne__N)�__name__� __module__�__qualname__�__doc__ZOPERATION_CREATEZOPERATION_PATCHr �staticmethodr �propertyr �setterr r r r r r r r s r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s