o
    ɶdn                    @   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   )integration_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"S )#IntegrationInstanceClientz!
    Oracle Integration API.
    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	/20190131z4https://integration.{region}.ocp.{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integration_instance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$   Ousr/lib/python3.10/site-packages/oci/integration/integration_instance_client.py__init__   s>   3





z"IntegrationInstanceClient.__init__c                    ~  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}|rt|tjs| j| | j| || j |j| jj|||
|||	d|||d
S | jj|||
|||	d|||d	S )a
  
        Change the compartment for an integration instance


        :param str integration_instance_id: (required)
            Unique Integration Instance identifier.

        :param oci.integration.models.ChangeIntegrationInstanceCompartmentDetails change_integration_instance_compartment_details: (required)
            Details for the update integration instance

        :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 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 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/integration/change_integration_instance_compartment.py.html>`__ to see an example of how to use change_integration_instance_compartment API.
        integrationInstanceIdzG/integrationInstances/{integrationInstanceId}/actions/changeCompartmentPOST'change_integration_instance_compartmentzshttps://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/ChangeIntegrationInstanceCompartmentr   r   if_matchopc_request_idopc_retry_tokenc                       g | ]}| vr|qS r$   r$   .0_keyZexpected_kwargsr$   r%   
<listcomp>       zUIntegrationInstanceClient.change_integration_instance_compartment.<locals>.<listcomp>z@change_integration_instance_compartment got unknown kwargs: {!r}c                 S      i | ]\}}|t ur||qS r$   missingr1   kvr$   r$   r%   
<dictcomp>       zUIntegrationInstanceClient.change_integration_instance_compartment.<locals>.<dictcomp>Nr   7Parameter {} cannot be None, whitespace or empty stringapplication/jsonr,   r-   r.   acceptcontent-typeif-matchopc-request-idopc-retry-tokenc                 S   &   i | ]\}}|t ur|d ur||qS Nr7   r9   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   r8   r    get_preferred_retry_strategyr   r   NoneRetryStrategyadd_opc_retry_token_if_neededadd_opc_client_retries_headeradd_circuit_breaker_callbackr   make_retrying_callcall_api)r!   integration_instance_idZ/change_integration_instance_compartment_detailsr#   rR   rK   rL   rP   rQ   extra_kwargsrM   r:   r;   rN   r   r$   r3   r%   r*   r   sr   0$


zAIntegrationInstanceClient.change_integration_instance_compartmentc                    r'   )aH  
        Change an Integration instance network endpoint. The operation is long-running
        and creates a new WorkRequest.


        :param str integration_instance_id: (required)
            Unique Integration Instance identifier.

        :param oci.integration.models.ChangeIntegrationInstanceNetworkEndpointDetails change_integration_instance_network_endpoint_details: (required)
            Details for the updated Integration instance network endpoint

        :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 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 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/integration/change_integration_instance_network_endpoint.py.html>`__ to see an example of how to use change_integration_instance_network_endpoint API.
        r(   zK/integrationInstances/{integrationInstanceId}/actions/changeNetworkEndpointr)   ,change_integration_instance_network_endpointzwhttps://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/ChangeIntegrationInstanceNetworkEndpointr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   (  r5   zZIntegrationInstanceClient.change_integration_instance_network_endpoint.<locals>.<listcomp>zEchange_integration_instance_network_endpoint got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   1  r=   zZIntegrationInstanceClient.change_integration_instance_network_endpoint.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   >  rH   r   rI   r   rJ   rS   )r!   rc   Z4change_integration_instance_network_endpoint_detailsr#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   re      r   1$


zFIntegrationInstanceClient.change_integration_instance_network_endpointc                    r'   )aS  
        Change private endpoint outbound connection for given Integration instance. The operation is long-running
        and creates a new WorkRequest.


        :param str integration_instance_id: (required)
            Unique Integration Instance identifier.

        :param oci.integration.models.ChangePrivateEndpointOutboundConnectionDetails change_private_endpoint_outbound_connection_details: (required)
            Details for private endpoint outbound connection.

        :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 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 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/integration/change_private_endpoint_outbound_connection.py.html>`__ to see an example of how to use change_private_endpoint_outbound_connection API.
        r(   z]/integrationInstances/{integrationInstanceId}/actions/changePrivateEndpointOutboundConnectionr)   +change_private_endpoint_outbound_connectionzvhttps://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/ChangePrivateEndpointOutboundConnectionr+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zYIntegrationInstanceClient.change_private_endpoint_outbound_connection.<locals>.<listcomp>zDchange_private_endpoint_outbound_connection got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   zYIntegrationInstanceClient.change_private_endpoint_outbound_connection.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rJ   rS   )r!   rc   Z3change_private_endpoint_outbound_connection_detailsr#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   rg   a  rf   zEIntegrationInstanceClient.change_private_endpoint_outbound_connectionc                    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 )aj  
        Creates a new Integration Instance.


        :param oci.integration.models.CreateIntegrationInstanceDetails create_integration_instance_details: (required)
            Details for the new Integration Instance.

        :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/integration/create_integration_instance.py.html>`__ to see an example of how to use create_integration_instance API.
        /integrationInstancesr)   create_integration_instancezhhttps://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/CreateIntegrationInstance)r   r   r.   r-   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zIIntegrationInstanceClient.create_integration_instance.<locals>.<listcomp>z4create_integration_instance got unknown kwargs: {!r}r?   r.   r-   )rA   rB   rE   rD   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   zIIntegrationInstanceClient.create_integration_instance.<locals>.<dictcomp>r   rI   Nr   )rK   rL   rN   rO   r   rP   rQ   rR   )r   rT   rU   rV   r   r8   rW   r    r\   r   r   ZDEFAULT_RETRY_STRATEGYrX   r]   r^   r_   r`   r   ra   rb   )r!   Z#create_integration_instance_detailsr#   rR   rK   rL   rP   rQ   rd   rN   r   r$   r3   r%   ri     sb   &

z5IntegrationInstanceClient.create_integration_instancec                    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  
        Deletes an Integration Instance resource by identifier.


        :param str integration_instance_id: (required)
            Unique Integration Instance identifier.

        :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/integration/delete_integration_instance.py.html>`__ to see an example of how to use delete_integration_instance API.
        r(   -/integrationInstances/{integrationInstanceId}ZDELETEdelete_integration_instancezhhttps://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/DeleteIntegrationInstancer   r   r,   r-   c                    r/   r$   r$   r0   r3   r$   r%   r4   l  r5   zIIntegrationInstanceClient.delete_integration_instance.<locals>.<listcomp>z4delete_integration_instance got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   u  r=   zIIntegrationInstanceClient.delete_integration_instance.<locals>.<dictcomp>Nr   r>   r?   r,   r-   rA   rB   rC   rD   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rK   rL   rM   rN   r   rP   rQ   rR   r   rT   rU   rV   rW   rX   rY   rZ   r[   r   r8   r    r\   r   r   r]   r_   r`   r   ra   rb   r!   rc   r#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   rk   :  sj   %$

z5IntegrationInstanceClient.delete_integration_instancec                    z  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}|rt|tjs| j| | j| || j |j| jj|||	||	d|||d	S | jj|||	||	d|||dS )a
  
        Enable Process Automation for given Integration Instance


        :param str integration_instance_id: (required)
            Unique Integration Instance identifier.

        :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 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 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/integration/enable_process_automation.py.html>`__ to see an example of how to use enable_process_automation API.
        r(   zM/integrationInstances/{integrationInstanceId}/actions/enableProcessAutomationr)   enable_process_automationzfhttps://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/EnableProcessAutomationr+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zGIntegrationInstanceClient.enable_process_automation.<locals>.<listcomp>z2enable_process_automation got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   zGIntegrationInstanceClient.enable_process_automation.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rn   rS   rp   r$   r3   r%   rr     n   -$


z3IntegrationInstanceClient.enable_process_automationc                    ^  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}|rt|tjs| j| || j |j| jj|||	|d|	d|||d
S | jj|||	|d|	d|||d	S )a  
        Gets a IntegrationInstance by identifier


        :param str integration_instance_id: (required)
            Unique Integration Instance identifier.

        :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.integration.models.IntegrationInstance`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/integration/get_integration_instance.py.html>`__ to see an example of how to use get_integration_instance API.
        r(   rj   GETget_integration_instancezehttps://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/GetIntegrationInstancer   r   r-   c                    r/   r$   r$   r0   r3   r$   r%   r4   =  r5   zFIntegrationInstanceClient.get_integration_instance.<locals>.<listcomp>z1get_integration_instance got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   F  r=   zFIntegrationInstanceClient.get_integration_instance.<locals>.<dictcomp>Nr   r>   r?   r-   rA   rB   rD   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   Q  rH   r   rI   ZIntegrationInstancer   	rK   rL   rM   rN   response_typer   rP   rQ   rR   ro   rp   r$   r3   r%   rv     l   $
z2IntegrationInstanceClient.get_integration_instancec                    rt   )a|  
        Gets 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 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.integration.models.WorkRequest`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/integration/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
        workRequestIdz/workRequests/{workRequestId}ru   get_work_requestzUhttps://docs.oracle.com/iaas/api/#/en/integration/20190131/WorkRequest/GetWorkRequestrw   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z>IntegrationInstanceClient.get_work_request.<locals>.<listcomp>z)get_work_request got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z>IntegrationInstanceClient.get_work_request.<locals>.<dictcomp>Nr   r>   r?   r-   rx   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   ZWorkRequestr   ry   ro   )r!   work_request_idr#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   r}   s  r{   z*IntegrationInstanceClient.get_work_requestc                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d
|v r9g d}	|d
 |	vr9td|	d|v rNddg}
|d |
vrNtd|
d|v rcddg}|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 }|rt
|tjs| j| || j |j| jj||||d!|d"|||d#
S | jj||||d!|d"|||d#	S )$a	  
        Returns a list of Integration Instances.


        :param str compartment_id: (required)
            The ID of the compartment in which to list resources.

        :param str display_name: (optional)
            A user-friendly name. Does not have to be unique, and it's changeable.

            Example: `My new resource`

        :param str lifecycle_state: (optional)
            Life cycle state to query on.

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

        :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 DISPLAYNAME is
            ascending. If no value is specified TIMECREATED is default.

            Allowed values are: "TIMECREATED", "DISPLAYNAME"

        :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 list of :class:`~oci.integration.models.IntegrationInstanceSummary`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/integration/list_integration_instances.py.html>`__ to see an example of how to use list_integration_instances API.
        compartmentIdrh   ru   list_integration_instancesznhttps://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstanceSummary/ListIntegrationInstances)	r   r   display_namelifecycle_statelimitpage
sort_ordersort_byr-   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zHIntegrationInstanceClient.list_integration_instances.<locals>.<listcomp>z3list_integration_instances got unknown kwargs: {!r}r   )ZCREATINGZUPDATINGZACTIVEZINACTIVEZDELETINGZDELETEDZFAILEDz7Invalid value for `lifecycle_state`, must be one of {0}r   ZASCZDESCz2Invalid value for `sort_order`, must be one of {0}r   ZTIMECREATEDZDISPLAYNAMEz/Invalid value for `sort_by`, must be one of {0}r   r   r   )r   ZdisplayNameZlifecycleStater   r   Z	sortOrderZsortByc                 S   rF   rG   r7   r9   r$   r$   r%   r<   B  rH   zHIntegrationInstanceClient.list_integration_instances.<locals>.<dictcomp>r?   r-   rx   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   I  rH   r   rI   z list[IntegrationInstanceSummary]r   	rK   rL   query_paramsrN   rz   r   rP   rQ   rR   r   rT   rU   rV   r   r8   rW   r    r\   r   rX   r   r]   r_   r`   r   ra   rb   )r!   compartment_idr#   rR   rK   rL   rP   rQ   rd   Zlifecycle_state_allowed_valuesZsort_order_allowed_valuesZsort_by_allowed_valuesr   rN   r   r$   r3   r%   r     s   :





	
z4IntegrationInstanceClient.list_integration_instancesc                      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
|	dt
d}dd t |D }dd|	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  
        Get the errors of a work request.


        :param str compartment_id: (required)
            The ID of the compartment in which to list resources.

        :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 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 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 list of :class:`~oci.integration.models.WorkRequestError`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/integration/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
        r|   r   z$/workRequests/{workRequestId}/errorsru   list_work_request_errorszahttps://docs.oracle.com/iaas/api/#/en/integration/20190131/WorkRequestError/ListWorkRequestErrorsr   r   r-   r   r   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zFIntegrationInstanceClient.list_work_request_errors.<locals>.<listcomp>z1list_work_request_errors got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   zFIntegrationInstanceClient.list_work_request_errors.<locals>.<dictcomp>Nr   r>   r   r   r   r   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r?   r-   rx   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   zlist[WorkRequestError]r   
rK   rL   rM   r   rN   rz   r   rP   rQ   rR   ro   r!   r   r~   r#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   r   rN   r   r$   r3   r%   r   k  z   '$


z2IntegrationInstanceClient.list_work_request_errorsc                    r   )a  
        Get the logs of a work request.


        :param str compartment_id: (required)
            The ID of the compartment in which to list resources.

        :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 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 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 list of :class:`~oci.integration.models.WorkRequestLogEntry`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/integration/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
        r|   r   z"/workRequests/{workRequestId}/logsru   list_work_request_logszbhttps://docs.oracle.com/iaas/api/#/en/integration/20190131/WorkRequestLogEntry/ListWorkRequestLogsr   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zDIntegrationInstanceClient.list_work_request_logs.<locals>.<listcomp>z/list_work_request_logs got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   zDIntegrationInstanceClient.list_work_request_logs.<locals>.<dictcomp>Nr   r>   r   r   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   (  rH   r?   r-   rx   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   /  rH   r   rI   zlist[WorkRequestLogEntry]r   r   ro   r   r$   r3   r%   r     r   z0IntegrationInstanceClient.list_work_request_logsc                    s6  dg}d}d}d}d}g d  fddt |D }|r$td	|||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}|rt
|tjsu| j|
 || j |j| jj|||	|
d|d|||d
S | jj|||	|
d|d|||d	S )a  
        Lists the work requests in a compartment.


        :param str compartment_id: (required)
            The ID of the compartment in which to list resources.

        :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 str integration_instance_id: (optional)
            The Integration Instance identifier to use to filter results

        :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 list of :class:`~oci.integration.models.WorkRequestSummary`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/integration/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
        r   z/workRequestsru   list_work_requestsz^https://docs.oracle.com/iaas/api/#/en/integration/20190131/WorkRequestSummary/ListWorkRequests)r   r   r-   r   r   rc   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z@IntegrationInstanceClient.list_work_requests.<locals>.<listcomp>z+list_work_requests got unknown kwargs: {!r}r   r   rc   )r   r   r   r(   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z@IntegrationInstanceClient.list_work_requests.<locals>.<dictcomp>r?   r-   rx   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   zlist[WorkRequestSummary]r   r   r   )r!   r   r#   rR   rK   rL   rP   rQ   rd   r   rN   r   r$   r3   r%   r   S  sj   '



z,IntegrationInstanceClient.list_work_requestsc                    rq   )a
  
        Start an integration instance that was previously in an INACTIVE state


        :param str integration_instance_id: (required)
            Unique Integration Instance identifier.

        :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 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 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/integration/start_integration_instance.py.html>`__ to see an example of how to use start_integration_instance API.
        r(   z;/integrationInstances/{integrationInstanceId}/actions/startr)   start_integration_instancezghttps://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/StartIntegrationInstancer+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zHIntegrationInstanceClient.start_integration_instance.<locals>.<listcomp>z3start_integration_instance got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   zHIntegrationInstanceClient.start_integration_instance.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rn   rS   rp   r$   r3   r%   r     rs   z4IntegrationInstanceClient.start_integration_instancec                    rq   )a
  
        Stop an integration instance that was previously in an ACTIVE state


        :param str integration_instance_id: (required)
            Unique Integration Instance identifier.

        :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 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 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/integration/stop_integration_instance.py.html>`__ to see an example of how to use stop_integration_instance API.
        r(   z:/integrationInstances/{integrationInstanceId}/actions/stopr)   stop_integration_instancezfhttps://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/StopIntegrationInstancer+   c                    r/   r$   r$   r0   r3   r$   r%   r4   j  r5   zGIntegrationInstanceClient.stop_integration_instance.<locals>.<listcomp>z2stop_integration_instance got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   s  r=   zGIntegrationInstanceClient.stop_integration_instance.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rn   rS   rp   r$   r3   r%   r   /  rs   z3IntegrationInstanceClient.stop_integration_instancec                    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  
        Updates the Integration Instance.


        :param str integration_instance_id: (required)
            Unique Integration Instance identifier.

        :param oci.integration.models.UpdateIntegrationInstanceDetails update_integration_instance_details: (required)
            The information to be updated.

        :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/integration/update_integration_instance.py.html>`__ to see an example of how to use update_integration_instance API.
        r(   rj   ZPUTupdate_integration_instancezhhttps://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/UpdateIntegrationInstancerl   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zIIntegrationInstanceClient.update_integration_instance.<locals>.<listcomp>z4update_integration_instance got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   zIIntegrationInstanceClient.update_integration_instance.<locals>.<dictcomp>Nr   r>   r?   r,   r-   rm   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rJ   ro   )r!   rc   Z#update_integration_instance_detailsr#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   r     sn   ($

z5IntegrationInstanceClient.update_integration_instanceN)__name__
__module____qualname____doc__r&   r*   re   rg   ri   rk   rr   rv   r}   r   r   r   r   r   r   r   r$   r$   r$   r%   r      s&    Xwxxagr`` ttjrrr   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   r8   objectr   r$   r$   r$   r%   <module>   s   