o
    ɶd                    @   s   d dl mZ d dlmZ d dlmZ d dlmZmZ d dlm	Z	 d dl
mZmZ d dlmZ d dlmZmZmZ d	d
lmZ edZG dd deZdS )    )absolute_import)requests)six)retrycircuit_breaker)
BaseClient)get_config_value_or_defaultvalidate_config)Signer)Sentinel#get_signer_from_authentication_typeAUTHENTICATION_TYPE_FIELD_NAME   )nosql_type_mappingZMissingc                   @   s   e Zd ZdZdd Zdd Zdd Zdd	 Zd
d Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd Zdd Zdd Zdd Zd d! Zd"d# Zd$d% Zd&d' Zd(d) Zd*d+ Zd,d- Zd.d/ Zd0S )1NosqlClienta  
    The control plane API for NoSQL Database Cloud Service HTTPS
    provides endpoints to perform NDCS operations, including creation
    and deletion of tables and indexes; population and access of data
    in tables; and access of table usage metrics.
    c              
   K   s  t ||dd d|v r|d }n"t|v rt|}nt|d |d |d |dt|d|dd	}d
|dddi |dd|dtj|dd}d|v rY|d|d< |ddu retj|d< d|v rp|d|d< t	d||t
fi || _|d| _|d| _dS )a  
        Creates a new service client

        :param dict config:
            Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
            The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
            the dict using :py:meth:`~oci.config.validate_config`

        :param str service_endpoint: (optional)
            The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
            not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
            need to specify a service endpoint.

        :param timeout: (optional)
            The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
            as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
            a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
        :type timeout: float or tuple(float, float)

        :param signer: (optional)
            The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
            provided in the config parameter.

            One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
            by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
        :type signer: :py:class:`~oci.signer.AbstractBaseSigner`

        :param obj retry_strategy: (optional)
            A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
            Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
            Any value provided at the operation level will override whatever is specified at the client level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
            is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

        :param obj circuit_breaker_strategy: (optional)
            A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
            This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
            The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.

        :param function circuit_breaker_callback: (optional)
            Callback function to receive any exceptions triggerred by the circuit breaker.

        :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
            A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.

        :param allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
            allow control characters to be in the response object.
        signer)r   tenancyuserfingerprintZkey_filepass_phraseZkey_content)r   r   r   Zprivate_key_file_locationr   Zprivate_key_contentTservice_endpointz	/20190828z.https://nosql.{region}.oci.{secondLevelDomain}skip_deserializationFcircuit_breaker_strategy5client_level_realm_specific_endpoint_template_enabled)Zregional_clientr   	base_pathZservice_endpoint_templateZ#service_endpoint_template_per_realmr   r   r   timeoutNallow_control_charsZnosqlretry_strategycircuit_breaker_callback)r	   getr   r   r
   r   r   ZGLOBAL_CIRCUIT_BREAKER_STRATEGYZ DEFAULT_CIRCUIT_BREAKER_STRATEGYr   r   base_clientr   r   )selfconfigkwargsr   Zbase_client_init_kwargs r$   :usr/lib/python3.10/site-packages/oci/nosql/nosql_client.py__init__   s>   3





zNosqlClient.__init__c                    s  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| | j| || j |j| jj|||
|||	d|||d
S | jj|||
|||	d|||d	S )ah
  
        Change a table's compartment.


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param oci.nosql.models.ChangeTableCompartmentDetails change_table_compartment_details: (required)
            Specifications of the source and target compartments.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried
            in case of a timeout or server error without risk of executing
            that same action again. Retry tokens expire after 24 hours, but
            can be invalidated before then due to conflicting
            operations. For example, if a resource has been deleted and
            purged from the system, then a retry of the original creation
            request might be rejected.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/change_table_compartment.py.html>`__ to see an example of how to use change_table_compartment API.
        tableNameOrIdz1/tables/{tableNameOrId}/actions/changeCompartmentPOSTchange_table_compartmentzZhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Table/ChangeTableCompartment)r   r   opc_retry_tokenif_matchopc_request_idc                       g | ]}| vr|qS r$   r$   .0_keyZexpected_kwargsr$   r%   
<listcomp>       z8NosqlClient.change_table_compartment.<locals>.<listcomp>z1change_table_compartment got unknown kwargs: {!r}c                 S      i | ]\}}|t ur||qS r$   missingr/   kvr$   r$   r%   
<dictcomp>       z8NosqlClient.change_table_compartment.<locals>.<dictcomp>Nr   7Parameter {} cannot be None, whitespace or empty stringapplication/jsonr*   r+   r,   )acceptcontent-typeopc-retry-tokenif-matchopc-request-idc                 S   &   i | ]\}}|t ur|d ur||qS Nr5   r7   r$   r$   r%   r:         & r   Zoperation_retry_strategyZclient_retry_strategyr   	resource_pathmethodpath_paramsheader_paramsbodyr   operation_nameapi_reference_linkrequired_argumentsr   iterkeys
ValueErrorformat	iteritems
isinstancestring_typeslenstripr   r6   r    get_preferred_retry_strategyr   r   DEFAULT_RETRY_STRATEGYNoneRetryStrategyadd_opc_retry_token_if_neededadd_opc_client_retries_headeradd_circuit_breaker_callbackr   make_retrying_callcall_api)r!   table_name_or_idZ change_table_compartment_detailsr#   rO   rH   rI   rM   rN   extra_kwargsrJ   r8   r9   rK   r   r$   r1   r%   r)   u   sv   1$


z$NosqlClient.change_table_compartmentc                    s  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| | j| || j |j| jj|||
|||	d|||d
S | jj|||
|||	d|||d	S )a  
        Create a new index on the table identified by tableNameOrId.


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param oci.nosql.models.CreateIndexDetails create_index_details: (required)
            Specifications for the new index.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried
            in case of a timeout or server error without risk of executing
            that same action again. Retry tokens expire after 24 hours, but
            can be invalidated before then due to conflicting
            operations. For example, if a resource has been deleted and
            purged from the system, then a retry of the original creation
            request might be rejected.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/create_index.py.html>`__ to see an example of how to use create_index API.
        r'   /tables/{tableNameOrId}/indexesr(   create_indexzOhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Index/CreateIndexr   r   r*   r,   c                    r-   r$   r$   r.   r1   r$   r%   r2   &  r3   z,NosqlClient.create_index.<locals>.<listcomp>z%create_index got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:   /  r;   z,NosqlClient.create_index.<locals>.<dictcomp>Nr   r<   r=   r*   r,   r>   r?   r@   rB   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   ;  rE   r   rF   r   rG   rP   )r!   ra   Zcreate_index_detailsr#   rO   rH   rI   rM   rN   rb   rJ   r8   r9   rK   r   r$   r1   r%   rd      st   *$

zNosqlClient.create_indexc                    s  g }d}d}d}d}g d  fddt |D }|r#td|d	d	|d
t|dtd}	dd t |	D }	| jj|d| j	d}
|
du rOt
j}
|
r|t|
t
jsi| j|	 | j|	 |
| j |
j| jj|||	||d|||d	S | jj|||	||d|||dS )a  
        Create a new table.


        :param oci.nosql.models.CreateTableDetails create_table_details: (required)
            Specifications for the new table.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried
            in case of a timeout or server error without risk of executing
            that same action again. Retry tokens expire after 24 hours, but
            can be invalidated before then due to conflicting
            operations. For example, if a resource has been deleted and
            purged from the system, then a retry of the original creation
            request might be rejected.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/create_table.py.html>`__ to see an example of how to use create_table API.
        /tablesr(   create_tablezOhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Table/CreateTablere   c                    r-   r$   r$   r.   r1   r$   r%   r2     r3   z,NosqlClient.create_table.<locals>.<listcomp>z%create_table got unknown kwargs: {!r}r=   r*   r,   rf   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   z,NosqlClient.create_table.<locals>.<dictcomp>r   rF   Nr   )rH   rI   rK   rL   r   rM   rN   rO   )r   rQ   rR   rS   r   r6   rT   r    rY   r   r   rZ   rU   r[   r\   r]   r^   r   r_   r`   )r!   Zcreate_table_detailsr#   rO   rH   rI   rM   rN   rb   rK   r   r$   r1   r%   rh   `  sb   '

zNosqlClient.create_tablec                    s  ddg}d}d}d}d}g d  fdd	t |D }	|	r%td
|	||d}
dd t |
D }
t |
D ]\}}|du sOt|t jrVt| dkrVtd|q9|	dt
|	dt
d}dd t |D }dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|rt|tjs| j| || j |j| jj|||
|||	d|||d
S | jj|||
|||	d|||d	S )a	  
        Delete an index from the table identified by tableNameOrId.


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param str index_name: (required)
            The name of a table's index.

        :param str compartment_id: (optional)
            The ID of a table's compartment. When a table is identified
            by name, the compartmentId is often needed to provide
            context for interpreting the name.

        :param bool is_if_exists: (optional)
            Set as true to select "if exists" behavior.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/delete_index.py.html>`__ to see an example of how to use delete_index API.
        r'   	indexName+/tables/{tableNameOrId}/indexes/{indexName}DELETEdelete_indexzOhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Index/DeleteIndexr   r   compartment_idis_if_existsr+   r,   c                    r-   r$   r$   r.   r1   r$   r%   r2     r3   z,NosqlClient.delete_index.<locals>.<listcomp>z%delete_index got unknown kwargs: {!r}r'   ri   c                 S   r4   r$   r5   r7   r$   r$   r%   r:     r;   z,NosqlClient.delete_index.<locals>.<dictcomp>Nr   r<   rn   ro   compartmentIdZ
isIfExistsc                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r=   r+   r,   r>   r?   rA   rB   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r   rF   r   	rH   rI   rJ   query_paramsrK   r   rM   rN   rO   r   rQ   rR   rS   rT   rU   rV   rW   rX   r   r6   r    rY   r   r   r[   r]   r^   r   r_   r`   r!   ra   Z
index_namer#   rO   rH   rI   rM   rN   rb   rJ   r8   r9   ru   rK   r   r$   r1   r%   rl     sx   0$



zNosqlClient.delete_indexc                    s  ddg}d}d}d}d}g d  fdd	t |D }	|	r%td
|	d|i}
dd t |
D }
t |
D ]\}}|du sNt|t jrUt| dkrUtd|q8|	dt
| j|d|	dt
|	dt
d}dd t |D }dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|rt|tjs| j| || j |j| jj|||
||d|	d|||dS | jj|||
||d|	d|||d
S ) a
  
        Delete a single row from the table, by primary key.


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param oci.nosql.models.list[str] key: (required)
            An array of strings, each of the format "column-name:value",
            representing the primary key of the row.

        :param str compartment_id: (optional)
            The ID of a table's compartment. When a table is identified
            by name, the compartmentId is often needed to provide
            context for interpreting the name.

        :param bool is_get_return_row: (optional)
            If true, and the operation fails due to an option setting
            (ifVersion et al), then the existing row will be returned.

        :param int timeout_in_ms: (optional)
            Timeout setting for this operation.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.DeleteRowResult`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/delete_row.py.html>`__ to see an example of how to use delete_row API.
        r'   key/tables/{tableNameOrId}/rowsrk   
delete_rowzKhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Row/DeleteRow)r   r   rn   is_get_return_rowtimeout_in_msr+   r,   c                    r-   r$   r$   r.   r1   r$   r%   r2     r3   z*NosqlClient.delete_row.<locals>.<listcomp>z#delete_row got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:     r;   z*NosqlClient.delete_row.<locals>.<dictcomp>Nr   r<   rn   multir{   r|   )rr   rx   ZisGetReturnRowtimeoutInMsc                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r=   r+   r,   rs   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r   rF   ZDeleteRowResultr   
rH   rI   rJ   ru   rK   response_typer   rM   rN   rO   )r   rQ   rR   rS   rT   rU   rV   rW   rX   r   r6   r     generate_collection_format_paramrY   r   r   r[   r]   r^   r   r_   r`   )r!   ra   rx   r#   rO   rH   rI   rM   rN   rb   rJ   r8   r9   ru   rK   r   r$   r1   r%   rz   ?  s~   5	$




zNosqlClient.delete_rowc                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7|	dt
|	dt
d}dd t |D }dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|rt|tjs| j| || j |j| jj|||	|||	d|||d
S | jj|||	|||	d|||d	S )a"	  
        Delete a table by tableNameOrId.


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param str compartment_id: (optional)
            The ID of a table's compartment. When a table is identified
            by name, the compartmentId is often needed to provide
            context for interpreting the name.

        :param bool is_if_exists: (optional)
            Set as true to select "if exists" behavior.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/delete_table.py.html>`__ to see an example of how to use delete_table API.
        r'   /tables/{tableNameOrId}rk   delete_tablezOhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Table/DeleteTablerm   c                    r-   r$   r$   r.   r1   r$   r%   r2     r3   z,NosqlClient.delete_table.<locals>.<listcomp>z%delete_table got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:   
  r;   z,NosqlClient.delete_table.<locals>.<dictcomp>Nr   r<   rn   ro   rq   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r=   r+   r,   rs   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r   rF   r   rt   rv   r!   ra   r#   rO   rH   rI   rM   rN   rb   rJ   r8   r9   ru   rK   r   r$   r1   r%   r     sv   -$



zNosqlClient.delete_tablec                    sd  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|rt|tjs| j| || j |j| jj|||	||	d|||d	S | jj|||	||	d|||dS )a  
        Cancel a work request operation with the given ID.


        :param str work_request_id: (required)
            The ID of the asynchronous request.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/delete_work_request.py.html>`__ to see an example of how to use delete_work_request API.
        workRequestId/workRequests/{workRequestId}rk   delete_work_requestz[https://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/WorkRequest/DeleteWorkRequestr   r   r+   r,   c                    r-   r$   r$   r.   r1   r$   r%   r2   p  r3   z3NosqlClient.delete_work_request.<locals>.<listcomp>z,delete_work_request got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:   y  r;   z3NosqlClient.delete_work_request.<locals>.<dictcomp>Nr   r<   r=   r+   r,   rs   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r   rF   r   )rH   rI   rJ   rK   r   rM   rN   rO   rv   r!   work_request_idr#   rO   rH   rI   rM   rN   rb   rJ   r8   r9   rK   r   r$   r1   r%   r   >  sj   %$

zNosqlClient.delete_work_requestc                    s  ddg}d}d}d}d}g d  fdd	t |D }	|	r%td
|	||d}
dd t |
D }
t |
D ]\}}|du sOt|t jrVt| dkrVtd|q9d|	dt
i}dd t |D }dd|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||
||d|	d|||dS | jj|||
||d|	d|||d
S )aa  
        Get information about a single index.


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param str index_name: (required)
            The name of a table's index.

        :param str compartment_id: (optional)
            The ID of a table's compartment. When a table is identified
            by name, the compartmentId is often needed to provide
            context for interpreting the name.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.Index`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/get_index.py.html>`__ to see an example of how to use get_index API.
        r'   ri   rj   GET	get_indexzLhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Index/GetIndexr   r   rn   r,   c                    r-   r$   r$   r.   r1   r$   r%   r2     r3   z)NosqlClient.get_index.<locals>.<listcomp>z"get_index got unknown kwargs: {!r}rp   c                 S   r4   r$   r5   r7   r$   r$   r%   r:     r;   z)NosqlClient.get_index.<locals>.<dictcomp>Nr   r<   rr   rn   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r=   r,   r>   r?   rB   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r   rF   Indexr   r   r   rQ   rR   rS   rT   rU   rV   rW   rX   r   r6   r    rY   r   r   rZ   r[   r]   r^   r   r_   r`   rw   r$   r1   r%   r     s|   &$
zNosqlClient.get_indexc                    s  ddg}d}d}d}d}g d  fdd	t |D }	|	r%td
|	d|i}
dd t |
D }
t |
D ]\}}|du sNt|t jrUt| dkrUtd|q8d|v rkddg}|d |vrktd||	dt
| j|d|	dt
|	dt
d}dd t |D }dd|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||
||d|	d |||d!S | jj|||
||d|	d |||d!
S )"a  
        Get a single row from the table by primary key.


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param oci.nosql.models.list[str] key: (required)
            An array of strings, each of the format "column-name:value",
            representing the primary key of the row.

        :param str compartment_id: (optional)
            The ID of a table's compartment. When a table is identified
            by name, the compartmentId is often needed to provide
            context for interpreting the name.

        :param str consistency: (optional)
            Consistency requirement for a read operation.

            Allowed values are: "EVENTUAL", "ABSOLUTE"

        :param int timeout_in_ms: (optional)
            Timeout setting for this operation.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.Row`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/get_row.py.html>`__ to see an example of how to use get_row API.
        r'   rx   ry   r   get_rowzHhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Row/GetRow)r   r   rn   consistencyr|   r,   c                    r-   r$   r$   r.   r1   r$   r%   r2   V  r3   z'NosqlClient.get_row.<locals>.<listcomp>z get_row got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:   _  r;   z'NosqlClient.get_row.<locals>.<dictcomp>Nr   r<   r   ZEVENTUALZABSOLUTEz3Invalid value for `consistency`, must be one of {0}rn   r}   r|   )rr   rx   r   r~   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   r  rE   r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   y  rE   r   rF   ZRowr   r   )r   rQ   rR   rS   rT   rU   rV   rW   rX   r   r6   r    r   rY   r   r   rZ   r[   r]   r^   r   r_   r`   )r!   ra   rx   r#   rO   rH   rI   rM   rN   rb   rJ   r8   r9   Zconsistency_allowed_valuesru   rK   r   r$   r1   r%   r     s   /$



zNosqlClient.get_rowc                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7d|	dt
i}dd t |D }dd|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||	||d|	d|||dS | jj|||	||d|	d|||d
S )a  
        Get table info by identifier.


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param str compartment_id: (optional)
            The ID of a table's compartment. When a table is identified
            by name, the compartmentId is often needed to provide
            context for interpreting the name.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.Table`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/get_table.py.html>`__ to see an example of how to use get_table API.
        r'   r   r   	get_tablezLhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Table/GetTabler   c                    r-   r$   r$   r.   r1   r$   r%   r2     r3   z)NosqlClient.get_table.<locals>.<listcomp>z"get_table got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:     r;   z)NosqlClient.get_table.<locals>.<dictcomp>Nr   r<   rr   rn   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r   rF   ZTabler   r   r   r   r$   r1   r%   r     sz   #$
zNosqlClient.get_tablec                    sl  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
d}dd t |D }| jj|	d| jd}|du r|tj}|rt|tjs| j| || j |j| jj|||	|d|	d|||d
S | jj|||	|d|	d|||d	S )a6  
        Get the status of the work request with the given ID.


        :param str work_request_id: (required)
            The ID of the asynchronous request.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.WorkRequest`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
        r   r   r   get_work_requestzXhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/WorkRequest/GetWorkRequestr   r   r,   c                    r-   r$   r$   r.   r1   r$   r%   r2   8  r3   z0NosqlClient.get_work_request.<locals>.<listcomp>z)get_work_request got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:   A  r;   z0NosqlClient.get_work_request.<locals>.<dictcomp>Nr   r<   r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   L  rE   r   rF   ZWorkRequestr   )	rH   rI   rJ   rK   r   r   rM   rN   rO   r   r   r$   r1   r%   r     sp   $
zNosqlClient.get_work_requestc                    sR  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7d|v rjg d}|d |vrjtd|d|v rddg}|d |vrtd|d|v rddg}|d |vrtd||	dt
|	dt
|	dt
|	dt
|	dt
|	dt
|	dt
d}dd t |D }dd|	d t
d!}d"d t |D }| jj|	d#| jd$}|du rtj}|rt|tjs| j| || j |j| jj|||	||d%|	d&|||d'S | jj|||	||d%|	d&|||d'
S )(a`  
        Get a list of indexes on a table.


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param str compartment_id: (optional)
            The ID of a table's compartment. When a table is identified
            by name, the compartmentId is often needed to provide
            context for interpreting the name.

        :param str name: (optional)
            A shell-globbing-style (*?[]) filter for names.

        :param str lifecycle_state: (optional)
            Filter list by the lifecycle state of the item.

            Allowed values are: "ALL", "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "INACTIVE"

        :param int limit: (optional)
            The maximum number of items to return.

        :param str page: (optional)
            The page token representing the page at which to start
            retrieving results. This is usually retrieved from a previous
            list call.

        :param str sort_order: (optional)
            The sort order to use, either 'ASC' or 'DESC'.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be
            provided. Default order for timeCreated is descending. Default
            order for name is ascending. If no value is specified
            timeCreated is default.

            Allowed values are: "timeCreated", "name"

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.IndexCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/list_indexes.py.html>`__ to see an example of how to use list_indexes API.
        r'   rc   r   list_indexeszOhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Index/ListIndexes)
r   r   rn   namelifecycle_statelimitpage
sort_ordersort_byr,   c                    r-   r$   r$   r.   r1   r$   r%   r2     r3   z,NosqlClient.list_indexes.<locals>.<listcomp>z%list_indexes got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:     r;   z,NosqlClient.list_indexes.<locals>.<dictcomp>Nr   r<   r   ZALLZCREATINGZUPDATINGZACTIVEZDELETINGZDELETEDZFAILEDZINACTIVE7Invalid value for `lifecycle_state`, must be one of {0}r   ASCDESC2Invalid value for `sort_order`, must be one of {0}r   timeCreatedr   /Invalid value for `sort_by`, must be one of {0}rn   r   r   )rr   r   lifecycleStater   r   	sortOrdersortByc                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r   rF   ZIndexCollectionr   r   r   )r!   ra   r#   rO   rH   rI   rM   rN   rb   rJ   r8   r9   lifecycle_state_allowed_valuessort_order_allowed_valuessort_by_allowed_valuesru   rK   r   r$   r1   r%   r   p  s   @$






	
zNosqlClient.list_indexesc                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7|	dt
|	dt
|	dt
|	dt
|	dt
d}dd t |D }dd|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||	||d|	d|||dS | jj|||	||d|	d|||d
S )as	  
        Get table usage info.


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param str compartment_id: (optional)
            The ID of a table's compartment. When a table is identified
            by name, the compartmentId is often needed to provide
            context for interpreting the name.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param datetime time_start: (optional)
            The start time to use for the request. If no time range
            is set for this request, the most recent complete usage
            record is returned.

        :param datetime time_end: (optional)
            The end time to use for the request.

        :param int limit: (optional)
            The maximum number of items to return.

        :param str page: (optional)
            The page token representing the page at which to start
            retrieving results. This is usually retrieved from a previous
            list call.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.TableUsageCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/list_table_usage.py.html>`__ to see an example of how to use list_table_usage API.
        r'   z/tables/{tableNameOrId}/usager   list_table_usagezRhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Table/ListTableUsage)r   r   rn   r,   
time_starttime_endr   r   c                    r-   r$   r$   r.   r1   r$   r%   r2   a  r3   z0NosqlClient.list_table_usage.<locals>.<listcomp>z)list_table_usage got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:   j  r;   z0NosqlClient.list_table_usage.<locals>.<dictcomp>Nr   r<   rn   r   r   r   r   )rr   Z	timeStartZtimeEndr   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   w  rE   r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   ~  rE   r   rF   ZTableUsageCollectionr   r   r   r   r$   r1   r%   r     s   3
$





zNosqlClient.list_table_usagec                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d
|v r9ddg}	|d
 |	vr9td|	d|v rNddg}
|d |
vrNtd|
d|v rcg d}|d |vrctd|||dt|dt|dt|d
t|dt|dtd}dd t |D }dd|dtd}dd t |D }| jj|d| j	d}|d u rt
j}|rt|t
js| j| || j |j| jj||||d!|d"|||d#
S | jj||||d!|d"|||d#	S )$ad
  
        Get a list of tables in a compartment.


        :param str compartment_id: (required)
            The ID of a table's compartment.

        :param str name: (optional)
            A shell-globbing-style (*?[]) filter for names.

        :param int limit: (optional)
            The maximum number of items to return.

        :param str page: (optional)
            The page token representing the page at which to start
            retrieving results. This is usually retrieved from a previous
            list call.

        :param str sort_order: (optional)
            The sort order to use, either 'ASC' or 'DESC'.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be
            provided. Default order for timeCreated is descending. Default
            order for name is ascending. If no value is specified
            timeCreated is default.

            Allowed values are: "timeCreated", "name"

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str lifecycle_state: (optional)
            Filter list by the lifecycle state of the item.

            Allowed values are: "ALL", "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "INACTIVE"

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.TableCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/list_tables.py.html>`__ to see an example of how to use list_tables API.
        rr   rg   r   list_tableszNhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Table/ListTables)	r   r   r   r   r   r   r   r,   r   c                    r-   r$   r$   r.   r1   r$   r%   r2     r3   z+NosqlClient.list_tables.<locals>.<listcomp>z$list_tables got unknown kwargs: {!r}r   r   r   r   r   r   r   r   r   r   r   r   r   )rr   r   r   r   r   r   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   z+NosqlClient.list_tables.<locals>.<dictcomp>r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r   rF   NZTableCollectionr   	rH   rI   ru   rK   r   r   rM   rN   rO   r   rQ   rR   rS   r   r6   rT   r    rY   r   r   rZ   rU   r[   r]   r^   r   r_   r`   )r!   rn   r#   rO   rH   rI   rM   rN   rb   r   r   r   ru   rK   r   r$   r1   r%   r     s   ;





	
zNosqlClient.list_tablesc                      dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7|	dt
|	dt
d}dd t |D }dd|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||	||d|	d|||dS | jj|||	||d|	d|||d
S )a  
        Return a (paginated) list of errors for a given work request.


        :param str work_request_id: (required)
            The ID of the asynchronous request.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str page: (optional)
            The page token representing the page at which to start
            retrieving results. This is usually retrieved from a previous
            list call.

        :param int limit: (optional)
            The maximum number of items to return.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.WorkRequestErrorCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
        r   z$/workRequests/{workRequestId}/errorsr   list_work_request_errorsz_https://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/WorkRequest/ListWorkRequestErrorsr   r   r,   r   r   c                    r-   r$   r$   r.   r1   r$   r%   r2   s  r3   z8NosqlClient.list_work_request_errors.<locals>.<listcomp>z1list_work_request_errors got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:   |  r;   z8NosqlClient.list_work_request_errors.<locals>.<dictcomp>Nr   r<   r   r   r   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r   rF   ZWorkRequestErrorCollectionr   r   r   r!   r   r#   rO   rH   rI   rM   rN   rb   rJ   r8   r9   ru   rK   r   r$   r1   r%   r   ?  |   &$


z$NosqlClient.list_work_request_errorsc                    r   )a|  
        Return a (paginated) list of logs for a given work request.


        :param str work_request_id: (required)
            The ID of the asynchronous request.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str page: (optional)
            The page token representing the page at which to start
            retrieving results. This is usually retrieved from a previous
            list call.

        :param int limit: (optional)
            The maximum number of items to return.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.WorkRequestLogEntryCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
        r   z"/workRequests/{workRequestId}/logsr   list_work_request_logsz]https://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/WorkRequest/ListWorkRequestLogsr   c                    r-   r$   r$   r.   r1   r$   r%   r2     r3   z6NosqlClient.list_work_request_logs.<locals>.<listcomp>z/list_work_request_logs got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:     r;   z6NosqlClient.list_work_request_logs.<locals>.<dictcomp>Nr   r<   r   r   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r   rF   ZWorkRequestLogEntryCollectionr   r   r   r   r$   r1   r%   r     r   z"NosqlClient.list_work_request_logsc                    s:  dg}d}d}d}d}g d  fddt |D }|r$td	|||d
t|dtd}	dd t |	D }	dd|dtd}
dd t |
D }
| jj|d| j	d}|du rct
j}|rt|t
jsw| j|
 || j |j| jj|||	|
d|d|||d
S | jj|||	|
d|d|||d	S )aU  
        List the work requests in a compartment.


        :param str compartment_id: (required)
            The ID of a table's compartment.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str page: (optional)
            The page token representing the page at which to start
            retrieving results. This is usually retrieved from a previous
            list call.

        :param int limit: (optional)
            The maximum number of items to return.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.WorkRequestCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
        rr   z/workRequestsr   list_work_requestszZhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/WorkRequest/ListWorkRequestsr   c                    r-   r$   r$   r.   r1   r$   r%   r2   [  r3   z2NosqlClient.list_work_requests.<locals>.<listcomp>z+list_work_requests got unknown kwargs: {!r}r   r   )rr   r   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   e  rE   z2NosqlClient.list_work_requests.<locals>.<dictcomp>r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   l  rE   r   rF   NZWorkRequestCollectionr   r   r   )r!   rn   r#   rO   rH   rI   rM   rN   rb   ru   rK   r   r$   r1   r%   r   '  sl   &


zNosqlClient.list_work_requestsc                    s4  ddg}d}d}d}d}g d  fdd	t |D }	|	r%td
|	|||dtd}
dd t |
D }
dd|dtd}dd t |D }| jj|d| j	d}|du r`t
j}|rt|t
jst| j| || j |j| jj|||
|d|d|||d
S | jj|||
|d|d|||d	S )a  
        Prepare a SQL statement for use in a query with variable substitution.


        :param str compartment_id: (required)
            The ID of a table's compartment.

        :param str statement: (required)
            A NoSQL SQL statement.

        :param bool is_get_query_plan: (optional)
            Include a query execution plan in the result.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.PreparedStatement`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/prepare_statement.py.html>`__ to see an example of how to use prepare_statement API.
        rr   	statementz/query/preparer   prepare_statementzdhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/QueryResultCollection/PrepareStatement)r   r   is_get_query_planr,   c                    r-   r$   r$   r.   r1   r$   r%   r2     r3   z1NosqlClient.prepare_statement.<locals>.<listcomp>z*prepare_statement got unknown kwargs: {!r}r   )rr   r   ZisGetQueryPlanc                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   z1NosqlClient.prepare_statement.<locals>.<dictcomp>r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:     rE   r   rF   NZPreparedStatementr   r   r   r!   rn   r   r#   rO   rH   rI   rM   rN   rb   ru   rK   r   r$   r1   r%   r     sl   $

zNosqlClient.prepare_statementc                    s,  g }d}d}d}d}g d  fddt |D }|r#td||d	t|d
td}	dd t |	D }	dd|dtd}
dd t |
D }
| jj|d| j	d}|rt
|tjsn| j|
 || j |j| jj|||	|
|d|d|||dS | jj|||	|
|d|d|||d
S )a  
        Execute a SQL query.


        :param oci.nosql.models.QueryDetails query_details: (required)
            SQL query statement and ancillary information.

        :param int limit: (optional)
            The maximum number of items to return.

        :param str page: (optional)
            The page token representing the page at which to start
            retrieving results. This is usually retrieved from a previous
            list call.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.QueryResultCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/query.py.html>`__ to see an example of how to use query API.
        z/queryr(   queryzYhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/QueryResultCollection/Query)r   r   r   r   r,   c                    r-   r$   r$   r.   r1   r$   r%   r2   *	  r3   z%NosqlClient.query.<locals>.<listcomp>zquery got unknown kwargs: {!r}r   r   )r   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   3	  rE   z%NosqlClient.query.<locals>.<dictcomp>r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   :	  rE   r   rF   ZQueryResultCollectionr   )
rH   rI   ru   rK   rL   r   r   rM   rN   rO   )r   rQ   rR   rS   r   r6   rT   r    rY   r   rU   r   r[   r]   r^   r   r_   r`   )r!   Zquery_detailsr#   rO   rH   rI   rM   rN   rb   ru   rK   r   r$   r1   r%   r     sj   &


zNosqlClient.queryc                    s*  ddg}d}d}d}d}g d  fdd	t |D }	|	r%td
|	||d}
dd t |
D }
dd|dtd}dd t |D }| jj|d| j	d}|du r[t
j}|rt|t
jso| j| || j |j| jj|||
|d|d|||d
S | jj|||
|d|d|||d	S )a  
        Check the syntax and return a brief summary of a SQL statement.


        :param str compartment_id: (required)
            The ID of a table's compartment.

        :param str statement: (required)
            A NoSQL SQL statement.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.StatementSummary`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/summarize_statement.py.html>`__ to see an example of how to use summarize_statement API.
        rr   r   z/query/summarizer   summarize_statementzfhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/QueryResultCollection/SummarizeStatementr   c                    r-   r$   r$   r.   r1   r$   r%   r2   	  r3   z3NosqlClient.summarize_statement.<locals>.<listcomp>z,summarize_statement got unknown kwargs: {!r})rr   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   	  rE   z3NosqlClient.summarize_statement.<locals>.<dictcomp>r=   r,   r   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   	  rE   r   rF   NZStatementSummaryr   r   )r   rQ   rR   rS   rT   r   r6   r    rY   r   r   rZ   rU   r[   r]   r^   r   r_   r`   r   r$   r1   r%   r   ^	  sj   !
zNosqlClient.summarize_statementc                    sl  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|rt|tjs| j| || j |j| jj|||
||d|	d|||dS | jj|||
||d|	d|||d
S )a  
        Write a single row into the table.


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param oci.nosql.models.UpdateRowDetails update_row_details: (required)
            Specifications for the putting of a table row.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.UpdateRowResult`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/update_row.py.html>`__ to see an example of how to use update_row API.
        r'   ry   PUT
update_rowzKhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Row/UpdateRowr   c                    r-   r$   r$   r.   r1   r$   r%   r2   	  r3   z*NosqlClient.update_row.<locals>.<listcomp>z#update_row got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:   	  r;   z*NosqlClient.update_row.<locals>.<dictcomp>Nr   r<   r=   r+   r,   rs   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   	
  rE   r   rF   ZUpdateRowResultr   )
rH   rI   rJ   rK   rL   r   r   rM   rN   rO   rv   )r!   ra   Zupdate_row_detailsr#   rO   rH   rI   rM   rN   rb   rJ   r8   r9   rK   r   r$   r1   r%   r   	  sr   ($

zNosqlClient.update_rowc                    sh  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|rt|tjs| j| || j |j| jj|||
|||	d|||d
S | jj|||
|||	d|||d	S )a  
        Alter the table identified by tableNameOrId,
        changing schema, limits, or tags


        :param str table_name_or_id: (required)
            A table name within the compartment, or a table OCID.

        :param oci.nosql.models.UpdateTableDetails update_table_details: (required)
            Specifications for the alteration.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/nosql/update_table.py.html>`__ to see an example of how to use update_table API.
        r'   r   r   update_tablezOhttps://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Table/UpdateTabler   c                    r-   r$   r$   r.   r1   r$   r%   r2   c
  r3   z,NosqlClient.update_table.<locals>.<listcomp>z%update_table got unknown kwargs: {!r}c                 S   r4   r$   r5   r7   r$   r$   r%   r:   l
  r;   z,NosqlClient.update_table.<locals>.<dictcomp>Nr   r<   r=   r+   r,   rs   c                 S   rC   rD   r5   r7   r$   r$   r%   r:   x
  rE   r   rF   r   rG   rv   )r!   ra   Zupdate_table_detailsr#   rO   rH   rI   rM   rN   rb   rJ   r8   r9   rK   r   r$   r1   r%   r   -
  sn   )$

zNosqlClient.update_tableN)__name__
__module____qualname____doc__r&   r)   rd   rh   rl   rz   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r$   r$   r$   r%   r      s<    Xzqb} ygs ob .  ttifhanr   N)
__future__r   Zoci._vendorr   r   ocir   r   Zoci.base_clientr   Z
oci.configr   r	   Z
oci.signerr
   Zoci.utilr   r   r   Zmodelsr   r6   objectr   r$   r$   r$   r%   <module>   s   