ruạṛ
a N��f�5 � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�AbstractDataOperationConfig� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sb e Zd ZdZdZdZdZdZdZdd� Z e d d � �Zejdd � �Ze dd � �Z e jdd � �Z e dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejd d� �Ze d!d"� �Zejd#d"� �Ze d$d%� �Zejd&d%� �Ze d'd(� �Zejd)d(� �Zd*d+� Zd,d-� Zd.d/� Zd0S )1�WriteOperationConfigz4 The information about the write operation. � OVERWRITE�APPEND�MERGE�IGNORE�CREATEc K s� dddddddddddd d d � | _ ddd ddddddddddd � | _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _dS )a Initializes a new WriteOperationConfig object with values from keyword arguments. The default value of the :py:attr:`~oci.data_connectivity.models.WriteOperationConfig.model_type` attribute of this class is ``WRITE_OPERATION_CONFIG`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param model_type: The value to assign to the model_type property of this WriteOperationConfig. Allowed values for this property are: "READ_OPERATION_CONFIG", "WRITE_OPERATION_CONFIG" :type model_type: str :param derived_attributes: The value to assign to the derived_attributes property of this WriteOperationConfig. :type derived_attributes: dict(str, str) :param key: The value to assign to the key property of this WriteOperationConfig. :type key: str :param model_version: The value to assign to the model_version property of this WriteOperationConfig. :type model_version: str :param parent_ref: The value to assign to the parent_ref property of this WriteOperationConfig. :type parent_ref: oci.data_connectivity.models.ParentReference :param operations: The value to assign to the operations property of this WriteOperationConfig. :type operations: list[oci.data_connectivity.models.PushDownOperation] :param data_format: The value to assign to the data_format property of this WriteOperationConfig. :type data_format: oci.data_connectivity.models.DataFormat :param partition_config: The value to assign to the partition_config property of this WriteOperationConfig. :type partition_config: oci.data_connectivity.models.PartitionConfig :param write_attribute: The value to assign to the write_attribute property of this WriteOperationConfig. :type write_attribute: oci.data_connectivity.models.AbstractWriteAttribute :param write_mode: The value to assign to the write_mode property of this WriteOperationConfig. Allowed values for this property are: "OVERWRITE", "APPEND", "MERGE", "IGNORE", "CREATE" :type write_mode: str :param merge_key: The value to assign to the merge_key property of this WriteOperationConfig. :type merge_key: oci.data_connectivity.models.UniqueKey :param object_status: The value to assign to the object_status property of this WriteOperationConfig. :type object_status: int :param reject_limit: The value to assign to the reject_limit property of this WriteOperationConfig. :type reject_limit: int �strzdict(str, str)�ParentReferencezlist[PushDownOperation]� DataFormat�PartitionConfig�AbstractWriteAttribute� UniqueKey�int) � model_type�derived_attributes�key� model_version� parent_ref� operations�data_format�partition_config�write_attribute� write_mode� merge_key� object_status�reject_limit� modelType�derivedAttributesr �modelVersion� parentRefr � dataFormat�partitionConfig�writeAttribute� writeMode�mergeKey�objectStatus�rejectLimitN�WRITE_OPERATION_CONFIG)� swagger_types� attribute_map�_model_type�_derived_attributes�_key�_model_version�_parent_ref�_operations�_data_format�_partition_config�_write_attribute�_write_mode� _merge_key�_object_status� _reject_limit)�self�kwargs� r? ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/data_connectivity/models/write_operation_config.py�__init__$ sT >��zWriteOperationConfig.__init__c C s | j S )z� Gets the key of this WriteOperationConfig. The object key. :return: The key of this WriteOperationConfig. :rtype: str �r2 �r= r? r? r@ r � s zWriteOperationConfig.keyc C s || _ dS )z� Sets the key of this WriteOperationConfig. The object key. :param key: The key of this WriteOperationConfig. :type: str NrB )r= r r? r? r@ r � s c C s | j S )z� Gets the model_version of this WriteOperationConfig. The model version of the object. :return: The model_version of this WriteOperationConfig. :rtype: str �r3 rC r? r? r@ r � s z"WriteOperationConfig.model_versionc C s || _ dS )z� Sets the model_version of this WriteOperationConfig. The model version of the object. :param model_version: The model_version of this WriteOperationConfig. :type: str NrD )r= r r? r? r@ r � s c C s | j S )z� Gets the parent_ref of this WriteOperationConfig. :return: The parent_ref of this WriteOperationConfig. :rtype: oci.data_connectivity.models.ParentReference �r4 rC r? r? r@ r � s zWriteOperationConfig.parent_refc C s || _ dS )z� Sets the parent_ref of this WriteOperationConfig. :param parent_ref: The parent_ref of this WriteOperationConfig. :type: oci.data_connectivity.models.ParentReference NrE )r= r r? r? r@ r � s c C s | j S )z� Gets the operations of this WriteOperationConfig. An array of operations. :return: The operations of this WriteOperationConfig. :rtype: list[oci.data_connectivity.models.PushDownOperation] �r5 rC r? r? r@ r � s zWriteOperationConfig.operationsc C s || _ dS )z� Sets the operations of this WriteOperationConfig. An array of operations. :param operations: The operations of this WriteOperationConfig. :type: list[oci.data_connectivity.models.PushDownOperation] NrF )r= r r? r? r@ r � s c C s | j S )z� Gets the data_format of this WriteOperationConfig. :return: The data_format of this WriteOperationConfig. :rtype: oci.data_connectivity.models.DataFormat �r6 rC r? r? r@ r � s z WriteOperationConfig.data_formatc C s || _ dS )z� Sets the data_format of this WriteOperationConfig. :param data_format: The data_format of this WriteOperationConfig. :type: oci.data_connectivity.models.DataFormat NrG )r= r r? r? r@ r � s c C s | j S )z� Gets the partition_config of this WriteOperationConfig. :return: The partition_config of this WriteOperationConfig. :rtype: oci.data_connectivity.models.PartitionConfig �r7 rC r? r? r@ r s z%WriteOperationConfig.partition_configc C s || _ dS )z� Sets the partition_config of this WriteOperationConfig. :param partition_config: The partition_config of this WriteOperationConfig. :type: oci.data_connectivity.models.PartitionConfig NrH )r= r r? r? r@ r s c C s | j S )z� Gets the write_attribute of this WriteOperationConfig. :return: The write_attribute of this WriteOperationConfig. :rtype: oci.data_connectivity.models.AbstractWriteAttribute �r8 rC r? r? r@ r s z$WriteOperationConfig.write_attributec C s || _ dS )z� Sets the write_attribute of this WriteOperationConfig. :param write_attribute: The write_attribute of this WriteOperationConfig. :type: oci.data_connectivity.models.AbstractWriteAttribute NrI )r= r r? r? r@ r s c C s | j S )a# Gets the write_mode of this WriteOperationConfig. The mode for the write operation. Allowed values for this property are: "OVERWRITE", "APPEND", "MERGE", "IGNORE", "CREATE" :return: The write_mode of this WriteOperationConfig. :rtype: str )r9 rC r? r? r@ r ( s zWriteOperationConfig.write_modec C s* g d�}t ||�s td�|���|| _dS )z� Sets the write_mode of this WriteOperationConfig. The mode for the write operation. :param write_mode: The write_mode of this WriteOperationConfig. :type: str )r r r r r z:Invalid value for `write_mode`, must be None or one of {0}N)r � ValueError�formatr9 )r= r �allowed_valuesr? r? r@ r 6 s ��c C s | j S )z� Gets the merge_key of this WriteOperationConfig. :return: The merge_key of this WriteOperationConfig. :rtype: oci.data_connectivity.models.UniqueKey �r: rC r? r? r@ r H s zWriteOperationConfig.merge_keyc C s || _ dS )z� Sets the merge_key of this WriteOperationConfig. :param merge_key: The merge_key of this WriteOperationConfig. :type: oci.data_connectivity.models.UniqueKey NrM )r= r r? r? r@ r R s c C s | j S )a Gets the object_status of this WriteOperationConfig. The status of an object that can be set to value 1 for shallow references across objects, other values reserved. :return: The object_status of this WriteOperationConfig. :rtype: int �r; rC r? r? r@ r \ s z"WriteOperationConfig.object_statusc C s || _ dS )a" Sets the object_status of this WriteOperationConfig. The status of an object that can be set to value 1 for shallow references across objects, other values reserved. :param object_status: The object_status of this WriteOperationConfig. :type: int NrN )r= r r? r? r@ r h s c C s | j S )z� Gets the reject_limit of this WriteOperationConfig. The number of rows are rejected based on the operation that errors out. :return: The reject_limit of this WriteOperationConfig. :rtype: int �r<