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é   )Úlockbox_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ÚLockboxClientaK  
    Use the Managed Access API to approve access requests, create and manage templates, and manage resource approval settings. For more information, see [Managed Access Overview](https://docs.oracle.com/en-us/iaas/managed-access/overview.htm).

    Use the table of contents and search tool to explore the Managed Access 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	/20220126z7https://managed-access.{region}.oci.{secondLevelDomain}Úskip_deserializationFÚcircuit_breaker_strategyÚ5client_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lockboxÚ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/lockbox/lockbox_client.pyÚ__init__   s>   3

ú

ø

zLockboxClient.__init__c                    ó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 sMt|t jƒrTt| ¡ ƒdkrTtd |
¡ƒ‚q7dd| 	dt
¡| 	dt
¡dœ}dd„ t  |¡D ƒ}| jj| 	d¡| jd}|r¡t|tjƒsŽ| j |¡ | | j¡ |j| jj|||	|| 	d¡|||d	S | jj|||	|| 	d¡|||dS )aÜ  
        Cancels the work request 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/lockbox/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
        ÚworkRequestIdú/workRequests/{workRequestId}ÚDELETEÚcancel_work_requestz[https://docs.oracle.com/iaas/api/#/en/managed-access/20220126/WorkRequest/CancelWorkRequest©r   r   Úif_matchÚopc_request_idc                    ó   g | ]}|ˆ vr|‘qS r$   r$   ©Ú.0Ú_key©Zexpected_kwargsr$   r%   Ú
<listcomp>¦   ó    z5LockboxClient.cancel_work_request.<locals>.<listcomp>z,cancel_work_request got unknown kwargs: {!r}c                 S   ó   i | ]\}}|t ur||“qS r$   ©Úmissing©r1   ÚkÚvr$   r$   r%   Ú
<dictcomp>¯   ó    z5LockboxClient.cancel_work_request.<locals>.<dictcomp>Nr   ú7Parameter {} cannot be None, whitespace or empty stringúapplication/jsonr-   r.   ©Úacceptúcontent-typeúif-matchúopc-request-idc                 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_paramsr   Ú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_client_retries_headerÚadd_circuit_breaker_callbackr   Úmake_retrying_callÚcall_api©r!   Úwork_request_idr#   rP   rJ   rK   rN   rO   Úextra_kwargsrL   r:   r;   rM   r   r$   r3   r%   r+   t   ój   %ÿÿ$€

üþ÷øz!LockboxClient.cancel_work_requestc                    ó~  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}|r­t|tjƒs™| j |¡ | j |¡ | | j¡ |j| jj|||
||| 	d¡|||d
S | jj|||
||| 	d¡|||d	S )a#  
        Moves an ApprovalTemplate resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.


        :param str approval_template_id: (required)
            The unique identifier (OCID) of the approval template.

        :param oci.lockbox.models.ChangeApprovalTemplateCompartmentDetails change_approval_template_compartment_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 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/lockbox/change_approval_template_compartment.py.html>`__ to see an example of how to use change_approval_template_compartment API.
        ÚapprovalTemplateIdzA/approvalTemplates/{approvalTemplateId}/actions/changeCompartmentÚPOSTÚ$change_approval_template_compartmentzphttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/ApprovalTemplate/ChangeApprovalTemplateCompartment©r   r   r-   r.   Úopc_retry_tokenc                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zFLockboxClient.change_approval_template_compartment.<locals>.<listcomp>z=change_approval_template_compartment got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   !  r=   zFLockboxClient.change_approval_template_compartment.<locals>.<dictcomp>Nr   r>   r?   r-   r.   ri   ©rA   rB   rC   rD   úopc-retry-tokenc                 S   rE   rF   r7   r9   r$   r$   r%   r<   .  rG   r   rH   r   ©	rJ   rK   rL   rM   Úbodyr   rN   rO   rP   ©r   rR   rS   rT   rU   rV   rW   rX   rY   r   r8   r    rZ   r   r   r[   Úadd_opc_retry_token_if_neededr\   r]   r   r^   r_   )r!   Úapproval_template_idZ,change_approval_template_compartment_detailsr#   rP   rJ   rK   rN   rO   rb   rL   r:   r;   rM   r   r$   r3   r%   rg   Û   ór   /ÿÿ$€


ûþö÷z2LockboxClient.change_approval_template_compartmentc                    rd   )aË
  
        Moves a Lockbox resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.


        :param str lockbox_id: (required)
            unique Lockbox identifier

        :param oci.lockbox.models.ChangeLockboxCompartmentDetails change_lockbox_compartment_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 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/lockbox/change_lockbox_compartment.py.html>`__ to see an example of how to use change_lockbox_compartment API.
        Ú	lockboxIdz0/lockboxes/{lockboxId}/actions/changeCompartmentrf   Úchange_lockbox_compartmentz^https://docs.oracle.com/iaas/api/#/en/managed-access/20220126/Lockbox/ChangeLockboxCompartmentrh   c                    r/   r$   r$   r0   r3   r$   r%   r4   Ž  r5   z<LockboxClient.change_lockbox_compartment.<locals>.<listcomp>z3change_lockbox_compartment got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   —  r=   z<LockboxClient.change_lockbox_compartment.<locals>.<dictcomp>Nr   r>   r?   r-   r.   ri   rj   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   ¤  rG   r   rH   r   rl   rn   )r!   Ú
lockbox_idZ"change_lockbox_compartment_detailsr#   rP   rJ   rK   rN   rO   rb   rL   r:   r;   rM   r   r$   r3   r%   rs   Q  rq   z(LockboxClient.change_lockbox_compartmentc                    ó  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}
|
rvt
|
tjƒsb| j |	¡ | j |	¡ |
 | j¡ |
j| jj|||	|d| d¡|||d
S | jj|||	|d| d¡|||d	S )a‘  
        Creates a new access request.


        :param oci.lockbox.models.CreateAccessRequestDetails create_access_request_details: (required)
            Details for the new access request.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/create_access_request.py.html>`__ to see an example of how to use create_access_request API.
        ú/accessRequestsrf   Úcreate_access_requestz_https://docs.oracle.com/iaas/api/#/en/managed-access/20220126/AccessRequest/CreateAccessRequest©r   r   ri   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4   ù  r5   z7LockboxClient.create_access_request.<locals>.<listcomp>z.create_access_request got unknown kwargs: {!r}r?   ri   r.   ©rA   rB   rk   rD   c                 S   rE   rF   r7   r9   r$   r$   r%   r<     rG   z7LockboxClient.create_access_request.<locals>.<dictcomp>r   rH   ÚAccessRequestr   ©	rJ   rK   rM   rm   Úresponse_typer   rN   rO   rP   ©r   rR   rS   rT   r   r8   rU   r    rZ   r   rV   r   r[   ro   r\   r]   r   r^   r_   )r!   Zcreate_access_request_detailsr#   rP   rJ   rK   rN   rO   rb   rM   r   r$   r3   r%   rw   Ç  ób   %ÿ

üþö÷z#LockboxClient.create_access_requestc                    ru   )a¦  
        Creates a new approval template.


        :param oci.lockbox.models.CreateApprovalTemplateDetails create_approval_template_details: (required)
            Details for the new approval template.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/create_approval_template.py.html>`__ to see an example of how to use create_approval_template API.
        ú/approvalTemplatesrf   Úcreate_approval_templatezehttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/ApprovalTemplate/CreateApprovalTemplaterx   c                    r/   r$   r$   r0   r3   r$   r%   r4   Y  r5   z:LockboxClient.create_approval_template.<locals>.<listcomp>z1create_approval_template got unknown kwargs: {!r}r?   ri   r.   ry   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   d  rG   z:LockboxClient.create_approval_template.<locals>.<dictcomp>r   rH   ÚApprovalTemplater   r{   r}   )r!   Z create_approval_template_detailsr#   rP   rJ   rK   rN   rO   rb   rM   r   r$   r3   r%   r€   '  r~   z&LockboxClient.create_approval_templatec                    ru   )ab  
        Creates a new Lockbox.


        :param oci.lockbox.models.CreateLockboxDetails create_lockbox_details: (required)
            Details for the new Lockbox.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/create_lockbox.py.html>`__ to see an example of how to use create_lockbox API.
        ú
/lockboxesrf   Úcreate_lockboxzShttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/Lockbox/CreateLockboxrx   c                    r/   r$   r$   r0   r3   r$   r%   r4   ¹  r5   z0LockboxClient.create_lockbox.<locals>.<listcomp>z'create_lockbox got unknown kwargs: {!r}r?   ri   r.   ry   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   Ä  rG   z0LockboxClient.create_lockbox.<locals>.<dictcomp>r   rH   ÚLockboxr   r{   r}   )r!   Zcreate_lockbox_detailsr#   rP   rJ   rK   rN   rO   rb   rM   r   r$   r3   r%   rƒ   ‡  r~   zLockboxClient.create_lockboxc                    r'   )a  
        Deletes an ApprovalTemplate resource by identifier


        :param str approval_template_id: (required)
            The unique identifier (OCID) of the approval template.

        :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/lockbox/delete_approval_template.py.html>`__ to see an example of how to use delete_approval_template API.
        re   ú'/approvalTemplates/{approvalTemplateId}r*   Údelete_approval_templatezehttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/ApprovalTemplate/DeleteApprovalTemplater,   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z:LockboxClient.delete_approval_template.<locals>.<listcomp>z1delete_approval_template got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   "  r=   z:LockboxClient.delete_approval_template.<locals>.<dictcomp>Nr   r>   r?   r-   r.   r@   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   .  rG   r   rH   r   rI   rQ   ©r!   rp   r#   rP   rJ   rK   rN   rO   rb   rL   r:   r;   rM   r   r$   r3   r%   r†   ç  rc   z&LockboxClient.delete_approval_templatec                    sz  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}|r¬t|tjƒs™| j |¡ | j |¡ | | j¡ |j| jj|||	|| 	d¡|||d	S | jj|||	|| 	d¡|||dS )a²	  
        Deletes a Lockbox resource by identifier


        :param str lockbox_id: (required)
            unique Lockbox 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/lockbox/delete_lockbox.py.html>`__ to see an example of how to use delete_lockbox API.
        rr   ú/lockboxes/{lockboxId}r*   Údelete_lockboxzShttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/Lockbox/DeleteLockboxrh   c                    r/   r$   r$   r0   r3   r$   r%   r4   ˆ  r5   z0LockboxClient.delete_lockbox.<locals>.<listcomp>z'delete_lockbox got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   ‘  r=   z0LockboxClient.delete_lockbox.<locals>.<dictcomp>Nr   r>   r?   r-   r.   ri   rj   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   ž  rG   r   rH   r   rI   rn   ©r!   rt   r#   rP   rJ   rK   rN   rO   rb   rL   r:   r;   rM   r   r$   r3   r%   r‰   N  sn   ,ÿÿ$€


ûþ÷øzLockboxClient.delete_lockboxc                    ó^  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¨  
        Retrieves the access credential/material associated with the access request.


        :param str access_request_id: (required)
            The unique identifier (OCID) of the access 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.lockbox.models.AccessMaterials`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/get_access_materials.py.html>`__ to see an example of how to use get_access_materials API.
        ÚaccessRequestIdz1/accessRequests/{accessRequestId}/accessMaterialsÚGETÚget_access_materialsz`https://docs.oracle.com/iaas/api/#/en/managed-access/20220126/AccessMaterials/GetAccessMaterials©r   r   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4   é  r5   z6LockboxClient.get_access_materials.<locals>.<listcomp>z-get_access_materials got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   ò  r=   z6LockboxClient.get_access_materials.<locals>.<dictcomp>Nr   r>   r?   r.   ©rA   rB   rD   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   ý  rG   r   rH   ZAccessMaterialsr   ©	rJ   rK   rL   rM   r|   r   rN   rO   rP   rQ   ©r!   Úaccess_request_idr#   rP   rJ   rK   rN   rO   rb   rL   r:   r;   rM   r   r$   r3   r%   rŽ   ¿  ól   ÿÿ$€
ýþö÷z"LockboxClient.get_access_materialsc                    r‹   )a–  
        Retrieves an access request identified by the access request ID.


        :param str access_request_id: (required)
            The unique identifier (OCID) of the access 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.lockbox.models.AccessRequest`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/get_access_request.py.html>`__ to see an example of how to use get_access_request API.
        rŒ   z!/accessRequests/{accessRequestId}r   Úget_access_requestz\https://docs.oracle.com/iaas/api/#/en/managed-access/20220126/AccessRequest/GetAccessRequestr   c                    r/   r$   r$   r0   r3   r$   r%   r4   I  r5   z4LockboxClient.get_access_request.<locals>.<listcomp>z+get_access_request got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   R  r=   z4LockboxClient.get_access_request.<locals>.<dictcomp>Nr   r>   r?   r.   r   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   ]  rG   r   rH   rz   r   r‘   rQ   r’   r$   r3   r%   r•     r”   z LockboxClient.get_access_requestc                    r‹   )a«  
        Retrieves an approval template identified by the approval template ID.


        :param str approval_template_id: (required)
            The unique identifier (OCID) of the approval template.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/get_approval_template.py.html>`__ to see an example of how to use get_approval_template API.
        re   r…   r   Úget_approval_templatezbhttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/ApprovalTemplate/GetApprovalTemplater   c                    r/   r$   r$   r0   r3   r$   r%   r4   ©  r5   z7LockboxClient.get_approval_template.<locals>.<listcomp>z.get_approval_template got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   ²  r=   z7LockboxClient.get_approval_template.<locals>.<dictcomp>Nr   r>   r?   r.   r   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   ½  rG   r   rH   r   r   r‘   rQ   r‡   r$   r3   r%   r–     r”   z#LockboxClient.get_approval_templatec                    r‹   )a=  
        Gets a Lockbox by identifier


        :param str lockbox_id: (required)
            unique Lockbox 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.lockbox.models.Lockbox`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/get_lockbox.py.html>`__ to see an example of how to use get_lockbox API.
        rr   rˆ   r   Úget_lockboxzPhttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/Lockbox/GetLockboxr   c                    r/   r$   r$   r0   r3   r$   r%   r4   	  r5   z-LockboxClient.get_lockbox.<locals>.<listcomp>z$get_lockbox got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z-LockboxClient.get_lockbox.<locals>.<dictcomp>Nr   r>   r?   r.   r   c                 S   rE   rF   r7   r9   r$   r$   r%   r<     rG   r   rH   r„   r   r‘   rQ   rŠ   r$   r3   r%   r—   ß  r”   zLockboxClient.get_lockboxc                    r‹   )aq  
        Gets details 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.lockbox.models.WorkRequest`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/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/managed-access/20220126/WorkRequest/GetWorkRequestr   c                    r/   r$   r$   r0   r3   r$   r%   r4   i  r5   z2LockboxClient.get_work_request.<locals>.<listcomp>z)get_work_request got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   r  r=   z2LockboxClient.get_work_request.<locals>.<dictcomp>Nr   r>   r?   r.   r   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   }  rG   r   rH   ZWorkRequestr   r‘   rQ   r`   r$   r3   r%   r˜   ?  r”   zLockboxClient.get_work_requestc                    rd   )al
  
        Handle the AccessRequest


        :param str access_request_id: (required)
            The unique identifier (OCID) of the access request.

        :param oci.lockbox.models.HandleAccessRequestDetails handle_access_request_details: (required)
            The details of handling access 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_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 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/lockbox/handle_access_request.py.html>`__ to see an example of how to use handle_access_request API.
        rŒ   z0/accessRequests/{accessRequestId}/actions/handlerf   Úhandle_access_requestz_https://docs.oracle.com/iaas/api/#/en/managed-access/20220126/AccessRequest/HandleAccessRequest)r   r   r-   ri   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4   Ü  r5   z7LockboxClient.handle_access_request.<locals>.<listcomp>z.handle_access_request got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   å  r=   z7LockboxClient.handle_access_request.<locals>.<dictcomp>Nr   r>   r?   r-   ri   r.   )rA   rB   rC   rk   rD   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   ò  rG   r   rH   r   rl   rn   )r!   r“   Zhandle_access_request_detailsr#   rP   rJ   rK   rN   rO   rb   rL   r:   r;   rM   r   r$   r3   r%   r™   Ÿ  rq   z#LockboxClient.handle_access_requestc                    s   g }d}d}d}d}g d¢‰ ‡ fdd„t  |¡D ƒ}|r#td |¡ƒ‚d	|v r8g d
¢}|d	 |vr8td |¡ƒ‚d|v rMddg}	|d |	vrMtd |	¡ƒ‚d|v rbddg}
|d |
vrbtd |
¡ƒ‚d|v rwg d¢}|d |vrwtd |¡ƒ‚| dt¡| dt¡| dt¡| 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%}|rþt
|tjƒsê| j |¡ | | j¡ |j| jj||||d&| d'¡|||d(
S | jj||||d&| d'¡|||d(	S ))a†  
        Retrieves a list of AccessRequestSummary objects in a compartment.


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

        :param str lockbox_id: (optional)
            The unique identifier (OCID) of the associated lockbox.

        :param str id: (optional)
            A generic Id query param used to filter lockbox, access request and approval template by Id.

        :param str display_name: (optional)
            A filter to return only resources that match the entire display name given.

        :param str lifecycle_state: (optional)
            A filter to return only resources their lifecycleState matches the given lifecycleState.

            Allowed values are: "IN_PROGRESS", "WAITING", "SUCCEEDED", "CANCELING", "CANCELED", "FAILED"

        :param str lockbox_partner: (optional)
            The name of the lockbox partner.

            Allowed values are: "FAAAS", "CANARY"

        :param str requestor_id: (optional)
            The unique identifier (OCID) of the requestor in which to list resources.

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

        :param str page: (optional)
            A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.

        :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.

            Allowed values are: "timeCreated", "displayName", "id"

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/list_access_requests.py.html>`__ to see an example of how to use list_access_requests API.
        rv   r   Úlist_access_requestszhhttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/AccessRequestCollection/ListAccessRequests)r   r   r.   rt   ÚidÚdisplay_nameÚlifecycle_stateÚlockbox_partnerÚrequestor_idÚlimitÚpageÚ
sort_orderÚsort_byc                    r/   r$   r$   r0   r3   r$   r%   r4   l  r5   z6LockboxClient.list_access_requests.<locals>.<listcomp>z-list_access_requests got unknown kwargs: {!r}r   )ÚIN_PROGRESSÚWAITINGÚ	SUCCEEDEDÚ	CANCELINGÚCANCELEDÚFAILEDú7Invalid value for `lifecycle_state`, must be one of {0}rž   ÚFAAASÚCANARYú7Invalid value for `lockbox_partner`, must be one of {0}r¢   ÚASCÚDESCú2Invalid value for `sort_order`, must be one of {0}r£   ©ZtimeCreatedÚdisplayNamer›   ú/Invalid value for `sort_by`, must be one of {0}rt   r›   rœ   rŸ   r    r¡   )
rr   r›   r²   ÚlifecycleStateÚlockboxPartnerZrequestorIdr    r¡   Ú	sortOrderÚsortByc                 S   rE   rF   r7   r9   r$   r$   r%   r<   ™  rG   z6LockboxClient.list_access_requests.<locals>.<dictcomp>r?   r.   r   c                 S   rE   rF   r7   r9   r$   r$   r%   r<      rG   r   rH   ZAccessRequestCollectionr   ©	rJ   rK   Úquery_paramsrM   r|   r   rN   rO   rP   ©r   rR   rS   rT   r   r8   rU   r    rZ   r   rV   r   r[   r\   r]   r   r^   r_   ©r!   r#   rP   rJ   rK   rN   rO   rb   Úlifecycle_state_allowed_valuesZlockbox_partner_allowed_valuesÚsort_order_allowed_valuesÚsort_by_allowed_valuesr¹   rM   r   r$   r3   r%   rš     ó¦   Aÿÿÿÿÿ









ö
ýþö÷z"LockboxClient.list_access_requestsc                    sâ  g }d}d}d}d}g d¢‰ ‡ fdd„t  |¡D ƒ}|r#td |¡ƒ‚d	|v r8g d
¢}|d	 |vr8td |¡ƒ‚d|v rMddg}	|d |	vrMtd |	¡ƒ‚d|v rbg d¢}
|d |
vrbtd |
¡ƒ‚| dt¡| 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 }|rßt
|tjƒsË| j |¡ | | j¡ |j| jj||||d!| d"¡|||d#
S | jj||||d!| d"¡|||d#	S )$a„  
        Retrieves a list of ApprovalTemplateSummary objects in a compartment.


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

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

        :param str id: (optional)
            A generic Id query param used to filter lockbox, access request and approval template by Id.

        :param str display_name: (optional)
            A filter to return only resources that match the entire display name given.

        :param str lifecycle_state: (optional)
            A filter to return only resources for which their lifecycleState matches the given lifecycleState.

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

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

        :param str page: (optional)
            A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.

        :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.

            Allowed values are: "timeCreated", "displayName", "id"

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/list_approval_templates.py.html>`__ to see an example of how to use list_approval_templates API.
        r   r   Úlist_approval_templatesznhttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/ApprovalTemplateCollection/ListApprovalTemplates)r   r   r.   Úcompartment_idr›   rœ   r   r    r¡   r¢   r£   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z9LockboxClient.list_approval_templates.<locals>.<listcomp>z0list_approval_templates got unknown kwargs: {!r}r   ©ZACTIVEZCREATINGZUPDATINGZDELETINGZDELETEDr©   rª   r¢   r®   r¯   r°   r£   r±   r³   rÁ   r›   rœ   r    r¡   )ÚcompartmentIdr›   r²   r´   r    r¡   r¶   r·   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   3  rG   z9LockboxClient.list_approval_templates.<locals>.<dictcomp>r?   r.   r   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   :  rG   r   rH   ZApprovalTemplateCollectionr   r¸   rº   )r!   r#   rP   rJ   rK   rN   rO   rb   r¼   r½   r¾   r¹   rM   r   r$   r3   r%   rÀ   Â  s–   9ÿÿÿÿ







ø

ýþö÷z%LockboxClient.list_approval_templatesc                    s   g }d}d}d}d}g d¢‰ ‡ fdd„t  |¡D ƒ}|r#td |¡ƒ‚d	|v r8g d
¢}|d	 |vr8td |¡ƒ‚d|v rMddg}	|d |	vrMtd |	¡ƒ‚d|v rbddg}
|d |
vrbtd |
¡ƒ‚d|v rwg d¢}|d |vrwtd |¡ƒ‚| dt¡| d	t¡| dt¡| 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%}|rþt
|tjƒsê| j |¡ | | j¡ |j| jj||||d&| d'¡|||d(
S | jj||||d&| d'¡|||d(	S ))aï  
        Returns a list of Lockboxes.


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

        :param str lifecycle_state: (optional)
            A filter to return only resources their lifecycleState matches the given lifecycleState.

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

        :param str display_name: (optional)
            A filter to return only resources that match the entire display name given.

        :param str id: (optional)
            unique Lockbox identifier

        :param str resource_id: (optional)
            The ID of the resource associated with the lockbox.

        :param str lockbox_partner: (optional)
            The name of the lockbox partner.

            Allowed values are: "FAAAS", "CANARY"

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

        :param str page: (optional)
            A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.

        :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.

            Allowed values are: "timeCreated", "displayName", "id"

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/list_lockboxes.py.html>`__ to see an example of how to use list_lockboxes API.
        r‚   r   Úlist_lockboxesz]https://docs.oracle.com/iaas/api/#/en/managed-access/20220126/LockboxCollection/ListLockboxes)r   r   rÁ   r   rœ   r›   Úresource_idrž   r    r¡   r¢   r£   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4   ³  r5   z0LockboxClient.list_lockboxes.<locals>.<listcomp>z'list_lockboxes got unknown kwargs: {!r}r   rÂ   rª   rž   r«   r¬   r­   r¢   r®   r¯   r°   r£   r±   r³   rÁ   rœ   r›   rÅ   r    r¡   )
rÃ   r´   r²   r›   Ú
resourceIdrµ   r    r¡   r¶   r·   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   à  rG   z0LockboxClient.list_lockboxes.<locals>.<dictcomp>r?   r.   r   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   ç  rG   r   rH   ZLockboxCollectionr   r¸   rº   r»   r$   r3   r%   rÄ   \  r¿   zLockboxClient.list_lockboxesc                    óö  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 ridg}|d |vritd |¡ƒ‚d|v r~ddg}|d |vr~td |¡ƒ‚| 	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}|rèt|tjƒsÓ| j |¡ | | j¡ |j| jj|||	||d | 	d!¡|||d"S | jj|||	||d | 	d!¡|||d"
S )#a*	  
        Returns a (paginated) list of errors for 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 str page: (optional)
            A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.

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

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.

            Allowed values are: "timeAccepted"

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

            Allowed values are: "ASC", "DESC"

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/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_errorszdhttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/WorkRequestError/ListWorkRequestErrors©r   r   r.   r¡   r    r£   r¢   c                    r/   r$   r$   r0   r3   r$   r%   r4   G  r5   z:LockboxClient.list_work_request_errors.<locals>.<listcomp>z1list_work_request_errors got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   P  r=   z:LockboxClient.list_work_request_errors.<locals>.<dictcomp>Nr   r>   r£   ÚtimeAcceptedr³   r¢   r®   r¯   r°   r¡   r    ©r¡   r    r·   r¶   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   j  rG   r?   r.   r   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   q  rG   r   rH   ZWorkRequestErrorCollectionr   ©
rJ   rK   rL   r¹   rM   r|   r   rN   rO   rP   rQ   ©r!   ra   r#   rP   rJ   rK   rN   rO   rb   rL   r:   r;   r¾   r½   r¹   rM   r   r$   r3   r%   rÈ   	  ó”   .	ÿÿ$€ÿÿ



ü
ýþõöz&LockboxClient.list_work_request_errorsc                    rÇ   )#a'	  
        Returns a (paginated) list of logs for 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 str page: (optional)
            A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.

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

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.

            Allowed values are: "timeAccepted"

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

            Allowed values are: "ASC", "DESC"

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/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_logszehttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/WorkRequestLogEntry/ListWorkRequestLogsrÉ   c                    r/   r$   r$   r0   r3   r$   r%   r4   Ó  r5   z8LockboxClient.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=   z8LockboxClient.list_work_request_logs.<locals>.<dictcomp>Nr   r>   r£   rÊ   r³   r¢   r®   r¯   r°   r¡   r    rË   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   ö  rG   r?   r.   r   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   ý  rG   r   rH   ZWorkRequestLogEntryCollectionr   rÌ   rQ   rÍ   r$   r3   r%   rÏ   •  rÎ   z$LockboxClient.list_work_request_logsc                    sà  g }d}d}d}d}g d¢‰ ‡ fdd„t  |¡D ƒ}|r#td |¡ƒ‚d	|v r8g d
¢}|d	 |vr8td |¡ƒ‚d|v rMddg}	|d |	vrMtd |	¡ƒ‚d|v radg}
|d |
vratd |
¡ƒ‚| dt¡| 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 }|rÞt
|tjƒsÊ| 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: (optional)
            The ID of the compartment in which to list resources.

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

        :param str status: (optional)
            A filter to return only resources their lifecycleState matches the given OperationStatus.

            Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"

        :param str resource_id: (optional)
            The ID of the resource affected by the work request.

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

        :param str page: (optional)
            A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.

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

        :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 timeAccepted is descending.

            Allowed values are: "timeAccepted"

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
        z/workRequestsr   Úlist_work_requestszZhttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/WorkRequest/ListWorkRequests)r   r   rÁ   ra   ÚstatusrÅ   r.   r¡   r    r¢   r£   c                    r/   r$   r$   r0   r3   r$   r%   r4   n	  r5   z4LockboxClient.list_work_requests.<locals>.<listcomp>z+list_work_requests got unknown kwargs: {!r}rÑ   )ZACCEPTEDr¤   r¥   r©   r¦   r§   r¨   z.Invalid value for `status`, must be one of {0}r¢   r®   r¯   r°   r£   rÊ   r³   rÁ   ra   rÅ   r¡   r    )rÃ   r(   rÑ   rÆ   r¡   r    r¶   r·   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   ’	  rG   z4LockboxClient.list_work_requests.<locals>.<dictcomp>r?   r.   r   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   ™	  rG   r   rH   ZWorkRequestSummaryCollectionr   r¸   rº   )r!   r#   rP   rJ   rK   rN   rO   rb   Zstatus_allowed_valuesr½   r¾   r¹   rM   r   r$   r3   r%   rÐ   !	  s–   9ÿÿÿÿ







ø

ýþö÷z LockboxClient.list_work_requestsc                    ól  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}|r£t|tjƒsŽ| j |¡ | | j¡ |j| jj|||
||d| 	d¡|||dS | jj|||
||d| 	d¡|||d
S )a±  
        Updates the ApprovalTemplate


        :param str approval_template_id: (required)
            The unique identifier (OCID) of the approval template.

        :param oci.lockbox.models.UpdateApprovalTemplateDetails update_approval_template_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 :class:`~oci.lockbox.models.ApprovalTemplate`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/update_approval_template.py.html>`__ to see an example of how to use update_approval_template API.
        re   r…   ÚPUTÚupdate_approval_templatezehttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/ApprovalTemplate/UpdateApprovalTemplater,   c                    r/   r$   r$   r0   r3   r$   r%   r4   ð	  r5   z:LockboxClient.update_approval_template.<locals>.<listcomp>z1update_approval_template got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   ù	  r=   z:LockboxClient.update_approval_template.<locals>.<dictcomp>Nr   r>   r?   r-   r.   r@   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   
  rG   r   rH   r   r   ©
rJ   rK   rL   rM   rm   r|   r   rN   rO   rP   rQ   )r!   rp   Z update_approval_template_detailsr#   rP   rJ   rK   rN   rO   rb   rL   r:   r;   rM   r   r$   r3   r%   rÔ   »	  ór   (ÿÿ$€

üþõöz&LockboxClient.update_approval_templatec                    rÒ   )aQ  
        Updates the Lockbox


        :param str lockbox_id: (required)
            unique Lockbox identifier

        :param oci.lockbox.models.UpdateLockboxDetails update_lockbox_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 :class:`~oci.lockbox.models.Lockbox`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/lockbox/update_lockbox.py.html>`__ to see an example of how to use update_lockbox API.
        rr   rˆ   rÓ   Úupdate_lockboxzShttps://docs.oracle.com/iaas/api/#/en/managed-access/20220126/Lockbox/UpdateLockboxr,   c                    r/   r$   r$   r0   r3   r$   r%   r4   ^
  r5   z0LockboxClient.update_lockbox.<locals>.<listcomp>z'update_lockbox got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   g
  r=   z0LockboxClient.update_lockbox.<locals>.<dictcomp>Nr   r>   r?   r-   r.   r@   c                 S   rE   rF   r7   r9   r$   r$   r%   r<   s
  rG   r   rH   r„   r   rÕ   rQ   )r!   rt   Zupdate_lockbox_detailsr#   rP   rJ   rK   rN   rO   rb   rL   r:   r;   rM   r   r$   r3   r%   r×   )
  rÖ   zLockboxClient.update_lockboxN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r&   r+   rg   rs   rw   r€   rƒ   r†   r‰   rŽ   r•   r–   r—   r˜   r™   rš   rÀ   rÄ   rÈ   rÏ   rÐ   rÔ   r×   r$   r$   r$   r%   r      s>    Xgvv```gq`````v .  .   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   r8   Úobjectr   r$   r$   r$   r%   Ú<module>   s   