HEX
Server: Apache
System: Linux box5936.bluehost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: aviatjd3 (1318)
PHP: 8.3.32
Disabled: NONE
Upload Files
File: //usr/libexec/oracle-cloud-agent/plugins/osms/oci/database_tools/database_tools_client.pyc
a

N��f���@s�ddlmZddlmZddlmZddlmZmZddlm	Z	ddl
mZmZddl
mZddlmZmZmZd	d
lmZed�ZGdd
�d
e�ZdS)�)�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�)�database_tools_type_mapping�Missingc@s�eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*S)+�DatabaseToolsClientz
    Use the Database Tools API to manage connections, private endpoints, and work requests in the Database Tools service.
    c	Ks
t||�d�d�d|vr$|d}nDt|vr6t|�}n2t|d|d|d|�d�t|d�|�d�d	�}d
|�d�dd
|�dd�|�dtj�d�}d|vr�|�d�|d<|�d�dur�tj|d<d|vr�|�d�|d<t	d||t
fi|��|_|�d�|_|�d�|_
dS)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 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�fingerprint�key_file�pass_phrase�key_content)rrr�private_key_file_locationr�private_key_contentT�service_endpointz	/20201005z0https://dbtools.{region}.oci.{secondLevelDomain}�skip_deserializationF�circuit_breaker_strategy)�regional_clientr�	base_path�service_endpoint_templaterr�timeoutN�allow_control_chars�database_tools�retry_strategy�circuit_breaker_callback)r	�getr
rr
rr�GLOBAL_CIRCUIT_BREAKER_STRATEGY� DEFAULT_CIRCUIT_BREAKER_STRATEGYrr�base_clientr$r%)�self�config�kwargsr�base_client_init_kwargs�r.��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/database_tools/database_tools_client.py�__init__s:0

�

�
zDatabaseToolsClient.__init__cs|d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rVt|
tj��s0|j�|�|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)aw
        Moves the specified Database Tools connection to a different compartment in the same tenancy.
        For information about moving resources between compartments, see
        `Moving Resources to a Different Compartment`__.

        __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes


        :param str database_tools_connection_id: (required)
            The `OCID`__ of a Database Tools connection.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param oci.database_tools.models.ChangeDatabaseToolsConnectionCompartmentDetails change_database_tools_connection_compartment_details: (required)
            Request to change the compartment of the DatabaseToolsConnection.

        :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/2.90.0/databasetools/change_database_tools_connection_compartment.py.html>`__ to see an example of how to use change_database_tools_connection_compartment API.
        zO/databaseToolsConnections/{databaseToolsConnectionId}/actions/changeCompartment�POST�,change_database_tools_connection_compartmentz~https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ChangeDatabaseToolsConnectionCompartment�r"r$�if_match�opc_request_id�opc_retry_tokencsg|]}|�vr|�qSr.r.��.0�_key��expected_kwargsr.r/�
<listcomp>��zTDatabaseToolsClient.change_database_tools_connection_compartment.<locals>.<listcomp>zEchange_database_tools_connection_compartment got unknown kwargs: {!r}�databaseToolsConnectionIdcSsi|]\}}|tur||�qSr.��missing�r8�k�vr.r.r/�
<dictcomp>�r=zTDatabaseToolsClient.change_database_tools_connection_compartment.<locals>.<dictcomp>Nr�7Parameter {} cannot be None, whitespace or empty string�application/jsonr4r5r6��accept�content-type�if-match�opc-request-id�opc-retry-tokencSs&i|]\}}|tur|dur||�qS�Nr?rAr.r.r/rD�r=r$��operation_retry_strategy�client_retry_strategyr"��
resource_path�method�path_params�
header_params�bodyr"�operation_name�api_reference_link�r�iterkeys�
ValueError�format�	iteritems�
isinstance�string_types�len�stripr&r@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*�database_tools_connection_id�4change_database_tools_connection_compartment_detailsr,rRrSrWrX�extra_kwargsrTrBrCrUr$r.r:r/r2ksj4��$


����z@DatabaseToolsClient.change_database_tools_connection_compartmentcs|d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rVt|
tj��s0|j�|�|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)a�
        Moves a Database Tools private endpoint into a different compartment in the same tenancy.
        For information about moving resources between compartments, see
        `Moving Resources to a Different Compartment`__.

        __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes


        :param str database_tools_private_endpoint_id: (required)
            The `OCID`__ of a Database Tools private endpoint.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param oci.database_tools.models.ChangeDatabaseToolsPrivateEndpointCompartmentDetails change_database_tools_private_endpoint_compartment_details: (required)
            Request to change the compartment of the DatabaseToolsPrivateEndpoint.

        :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/2.90.0/databasetools/change_database_tools_private_endpoint_compartment.py.html>`__ to see an example of how to use change_database_tools_private_endpoint_compartment API.
        zY/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}/actions/changeCompartmentr1�2change_database_tools_private_endpoint_compartmentz�https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ChangeDatabaseToolsPrivateEndpointCompartmentr3csg|]}|�vr|�qSr.r.r7r:r.r/r<$r=zZDatabaseToolsClient.change_database_tools_private_endpoint_compartment.<locals>.<listcomp>zKchange_database_tools_private_endpoint_compartment got unknown kwargs: {!r}�databaseToolsPrivateEndpointIdcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD-r=zZDatabaseToolsClient.change_database_tools_private_endpoint_compartment.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD:r=r$rNr"rQrY)r*�"database_tools_private_endpoint_id�:change_database_tools_private_endpoint_compartment_detailsr,rRrSrWrXrkrTrBrCrUr$r.r:r/rl�sj4��$


����zFDatabaseToolsClient.change_database_tools_private_endpoint_compartmentc
sd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	d	|�d
t�|�dt�d�}d
d�t�|�D�}|jj|�d�|j	d�}	|	r�t
|	tj�s�|j�
|�|j�|�|	�|j�|	j|jj||||d|�d�||d�	S|jj||||d|�d�||d�SdS)a�
        Creates a new Database Tools connection.


        :param oci.database_tools.models.CreateDatabaseToolsConnectionDetails create_database_tools_connection_details: (required)
            Details for the new `DatabaseToolsConnection`.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/create_database_tools_connection.py.html>`__ to see an example of how to use create_database_tools_connection API.
        �/databaseToolsConnectionsr1� create_database_tools_connection��r"r$r6r5csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zHDatabaseToolsClient.create_database_tools_connection.<locals>.<listcomp>z9create_database_tools_connection got unknown kwargs: {!r}rFr6r5�rHrIrLrKcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=zHDatabaseToolsClient.create_database_tools_connection.<locals>.<dictcomp>r$rN�DatabaseToolsConnectionr"�rRrSrUrV�
response_typer"rWrXN�rrZr[r\r&r@r]r)rbr$r^rrcrdrerfr%rgrh)
r*�(create_database_tools_connection_detailsr,rRrSrWrXrkrUr$r.r:r/rq[s\$�

����z4DatabaseToolsClient.create_database_tools_connectionc
sd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	d	|�d
t�|�dt�d�}d
d�t�|�D�}|jj|�d�|j	d�}	|	r�t
|	tj�s�|j�
|�|j�|�|	�|j�|	j|jj||||d|�d�||d�	S|jj||||d|�d�||d�SdS)a	
        Creates a new Database Tools private endpoint.


        :param oci.database_tools.models.CreateDatabaseToolsPrivateEndpointDetails create_database_tools_private_endpoint_details: (required)
            Details for the new DatabaseToolsPrivateEndpoint.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/create_database_tools_private_endpoint.py.html>`__ to see an example of how to use create_database_tools_private_endpoint API.
        �/databaseToolsPrivateEndpointsr1�&create_database_tools_private_endpointrrrscsg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zNDatabaseToolsClient.create_database_tools_private_endpoint.<locals>.<listcomp>z?create_database_tools_private_endpoint got unknown kwargs: {!r}rFr6r5rtcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=zNDatabaseToolsClient.create_database_tools_private_endpoint.<locals>.<dictcomp>r$rN�DatabaseToolsPrivateEndpointr"rvNrx)
r*�.create_database_tools_private_endpoint_detailsr,rRrSrWrXrkrUr$r.r:r/r{�s\$�

����z:DatabaseToolsClient.create_database_tools_private_endpointc

sbd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|�r>t|tj��s|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	d�||d�SdS)aw
        Deletes the specified Database Tools connection resource.


        :param str database_tools_connection_id: (required)
            The `OCID`__ of a Database Tools connection.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :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/2.90.0/databasetools/delete_database_tools_connection.py.html>`__ to see an example of how to use delete_database_tools_connection API.
        �5/databaseToolsConnections/{databaseToolsConnectionId}�DELETE� delete_database_tools_connectionzshttps://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/DeleteDatabaseToolsConnection�r"r$r4r5csg|]}|�vr|�qSr.r.r7r:r.r/r<Er=zHDatabaseToolsClient.delete_database_tools_connection.<locals>.<listcomp>z9delete_database_tools_connection got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDNr=zHDatabaseToolsClient.delete_database_tools_connection.<locals>.<dictcomp>NrrErFr4r5�rHrIrJrKcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDZr=r$rNr"�rRrSrTrUr"rWrX�rrZr[r\r]r^r_r`rar&r@r)rbr$rrcrerfr%rgrh�
r*rir,rRrSrWrXrkrTrBrCrUr$r.r:r/r�sb&��$

���
�z4DatabaseToolsClient.delete_database_tools_connectionc

sbd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|�r>t|tj��s|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	d�||d�SdS)a�
        Deletes the specified Database Tools private endpoint.


        :param str database_tools_private_endpoint_id: (required)
            The `OCID`__ of a Database Tools private endpoint.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :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/2.90.0/databasetools/delete_database_tools_private_endpoint.py.html>`__ to see an example of how to use delete_database_tools_private_endpoint API.
        �?/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}r�&delete_database_tools_private_endpointz}https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/DeleteDatabaseToolsPrivateEndpointr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zNDatabaseToolsClient.delete_database_tools_private_endpoint.<locals>.<listcomp>z?delete_database_tools_private_endpoint got unknown kwargs: {!r}rmcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=zNDatabaseToolsClient.delete_database_tools_private_endpoint.<locals>.<dictcomp>NrrErFr4r5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr"r�r��
r*rnr,rRrSrWrXrkrTrBrCrUr$r.r:r/r�xsb&��$

���
�z:DatabaseToolsClient.delete_database_tools_private_endpointc
sjd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|dur�tj}|�rDt|tj��s|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||d|�	d�||d�SdS)a�
        Gets details of the specified Database Tools connection.


        :param str database_tools_connection_id: (required)
            The `OCID`__ of a Database Tools connection.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/get_database_tools_connection.py.html>`__ to see an example of how to use get_database_tools_connection API.
        r~�GET�get_database_tools_connectionzphttps://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/GetDatabaseToolsConnection�r"r$r5csg|]}|�vr|�qSr.r.r7r:r.r/r<r=zEDatabaseToolsClient.get_database_tools_connection.<locals>.<listcomp>z6get_database_tools_connection got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=zEDatabaseToolsClient.get_database_tools_connection.<locals>.<dictcomp>NrrErFr5�rHrIrKcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=r$rNrur"�rRrSrTrUrwr"rWrX�rrZr[r\r]r^r_r`rar&r@r)rbr$r�DEFAULT_RETRY_STRATEGYrcrerfr%rgrhr�r.r:r/r��sh��$
����z1DatabaseToolsClient.get_database_tools_connectionc
sjd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|dur�tj}|�rDt|tj��s|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||d|�	d�||d�SdS)a
        Gets details for the specified Database Tools endpoint service.


        :param str database_tools_endpoint_service_id: (required)
            The `OCID`__ of a Database Tools Endpoint Service.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/get_database_tools_endpoint_service.py.html>`__ to see an example of how to use get_database_tools_endpoint_service API.
        z?/databaseToolsEndpointServices/{databaseToolsEndpointServiceId}r��#get_database_tools_endpoint_servicezzhttps://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/GetDatabaseToolsEndpointServicer�csg|]}|�vr|�qSr.r.r7r:r.r/r<gr=zKDatabaseToolsClient.get_database_tools_endpoint_service.<locals>.<listcomp>z<get_database_tools_endpoint_service got unknown kwargs: {!r}�databaseToolsEndpointServiceIdcSsi|]\}}|tur||�qSr.r?rAr.r.r/rDpr=zKDatabaseToolsClient.get_database_tools_endpoint_service.<locals>.<dictcomp>NrrErFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD{r=r$rN�DatabaseToolsEndpointServicer"r�r�)
r*�"database_tools_endpoint_service_idr,rRrSrWrXrkrTrBrCrUr$r.r:r/r�=sh��$
����z7DatabaseToolsClient.get_database_tools_endpoint_servicec
sjd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|dur�tj}|�rDt|tj��s|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||d|�	d�||d�SdS)a�
        Gets details of a specified Database Tools private endpoint.


        :param str database_tools_private_endpoint_id: (required)
            The `OCID`__ of a Database Tools private endpoint.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/get_database_tools_private_endpoint.py.html>`__ to see an example of how to use get_database_tools_private_endpoint API.
        r�r��#get_database_tools_private_endpointzzhttps://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/GetDatabaseToolsPrivateEndpointr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zKDatabaseToolsClient.get_database_tools_private_endpoint.<locals>.<listcomp>z<get_database_tools_private_endpoint got unknown kwargs: {!r}rmcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=zKDatabaseToolsClient.get_database_tools_private_endpoint.<locals>.<dictcomp>NrrErFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr|r"r�r�r�r.r:r/r��sh��$
����z7DatabaseToolsClient.get_database_tools_private_endpointc
sjd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|dur�tj}|�rDt|tj��s|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||d|�	d�||d�SdS)a@
        Gets the status of the specified work request.


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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
        z/workRequests/{workRequestId}r��get_work_requestzXhttps://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/GetWorkRequestr�csg|]}|�vr|�qSr.r.r7r:r.r/r<%r=z8DatabaseToolsClient.get_work_request.<locals>.<listcomp>z)get_work_request got unknown kwargs: {!r}�
workRequestIdcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD.r=z8DatabaseToolsClient.get_work_request.<locals>.<dictcomp>NrrErFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD9r=r$rN�WorkRequestr"r�r�)
r*�work_request_idr,rRrSrWrXrkrTrBrCrUr$r.r:r/r��sh��$
����z$DatabaseToolsClient.get_work_requestcs(d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrlgd
�}|d	|vrltd�|���d|vr�d
dg}	|dD]}
|
|	vr�td�|	���q�d|vr�ddg}|d|vr�td�|���d|vr�ddg}|d|vr�td�|���||�d	t�|�dt�|j�|�dt�d�|�dt�|�dt�|�dt�|�dt�d�}
dd�t�|
�D�}
dd|�d t�d!�}d"d�t�|�D�}|jj	|�d#�|j
d$�}|d%u�r�tj}|�rt
|tj��s�|j�|�|�|j�|j|jj|||
|d&|�d'�||d(�	S|jj|||
|d&|�d'�||d(�Sd%S))a�
        Returns a list of Database Tools connections.


        :param str compartment_id: (required)
            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 specified `lifecycleState`.

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

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

        :param list[str] type: (optional)
            A filter to return only resources their type matches the specified type.

            Allowed values are: "ORACLE_DATABASE", "MYSQL"

        :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 uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/list_database_tools_connections.py.html>`__ to see an example of how to use list_database_tools_connections API.
        rpr��list_database_tools_connectionszrhttps://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ListDatabaseToolsConnections)
r"r$�lifecycle_state�display_name�type�limit�page�
sort_order�sort_byr5csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zGDatabaseToolsClient.list_database_tools_connections.<locals>.<listcomp>z8list_database_tools_connections got unknown kwargs: {!r}r���CREATING�UPDATING�ACTIVE�DELETING�DELETED�FAILED�7Invalid value for `lifecycle_state`, must be one of {0}r��ORACLE_DATABASE�MYSQLz,Invalid value for `type`, must be one of {0}r��ASC�DESC�2Invalid value for `sort_order`, must be one of {0}r��timeCreated�displayName�/Invalid value for `sort_by`, must be one of {0}r��multir�r�)�
compartmentId�lifecycleStater�r�r�r��	sortOrder�sortBycSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=zGDatabaseToolsClient.list_database_tools_connections.<locals>.<dictcomp>rFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNN�!DatabaseToolsConnectionCollectionr"�rRrS�query_paramsrUrwr"rWrX)rrZr[r\r&r@r)� generate_collection_format_paramr]rbr$rr�r^rcrerfr%rgrh)r*�compartment_idr,rRrSrWrXrk�lifecycle_state_allowed_values�type_allowed_values�	type_item�sort_order_allowed_values�sort_by_allowed_valuesr�rUr$r.r:r/r�[s�:�����





�

��
��z3DatabaseToolsClient.list_database_tools_connectionscs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrld
dg}|d	|vrltd�|���d
|vr�ddg}	|d
|	vr�td�|	���d|vr�gd�}
|d|
vr�td�|
���||�dt�|�dt�|�d	t�|�d
t�|�dt�|�dt�|�dt�d�}dd�t�|�D�}dd|�dt�d�}dd�t�|�D�}|jj|�d�|j	d �}
|
d!u�rrt
j}
|
�r�t|
t
j
��s�|j�|�|
�|j�|
j|jj||||d"|�d#�||d$�	S|jj||||d"|�d#�||d$�Sd!S)%as
        Returns a list of Database Tools endpoint services.


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

        :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 str lifecycle_state: (optional)
            A filter to return only resources their `lifecycleState` matches the specified `lifecycleState`.

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/list_database_tools_endpoint_services.py.html>`__ to see an example of how to use list_database_tools_endpoint_services API.
        z/databaseToolsEndpointServicesr��%list_database_tools_endpoint_servicesz|https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/ListDatabaseToolsEndpointServices)
r"r$r�r�r�r�r5r�r��namecsg|]}|�vr|�qSr.r.r7r:r.r/r<Fr=zMDatabaseToolsClient.list_database_tools_endpoint_services.<locals>.<listcomp>z>list_database_tools_endpoint_services 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�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDjr=zMDatabaseToolsClient.list_database_tools_endpoint_services.<locals>.<dictcomp>rFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDqr=r$rNN�&DatabaseToolsEndpointServiceCollectionr"r��rrZr[r\r&r@r]r)rbr$rr�r^rcrerfr%rgrh�r*r�r,rRrSrWrXrkr�r�r�r�rUr$r.r:r/r��s�8����






�

��
��z9DatabaseToolsClient.list_database_tools_endpoint_servicescs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrld
dg}|d	|vrltd�|���d
|vr�ddg}	|d
|	vr�td�|	���d|vr�gd�}
|d|
vr�td�|
���||�dt�|�dt�|�dt�|�d	t�|�d
t�|�dt�|�dt�|�dt�d�	}dd�t�|�D�}dd|�dt�d�}dd�t�|�D�}|jj|�d �|j	d!�}
|
d"u�r|t
j}
|
�r�t|
t
j
��s�|j�|�|
�|j�|
j|jj||||d#|�d$�||d%�	S|jj||||d#|�d$�||d%�Sd"S)&a,
        Returns a list of Database Tools private endpoints.


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

        :param str subnet_id: (optional)
            A filter to return only resources their `subnetId` matches the specified `subnetId`.

        :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 str endpoint_service_id: (optional)
            A filter to return only resources their `endpointServiceId` matches the specified `endpointServiceId`.

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/list_database_tools_private_endpoints.py.html>`__ to see an example of how to use list_database_tools_private_endpoints API.
        rzr��%list_database_tools_private_endpointsz|https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ListDatabaseToolsPrivateEndpoints)r"r$�	subnet_idr�r�r�r�r5�endpoint_service_idr�r�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zMDatabaseToolsClient.list_database_tools_private_endpoints.<locals>.<listcomp>z>list_database_tools_private_endpoints got unknown kwargs: {!r}r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�)	r��subnetIdr�r�r�r��endpointServiceIdr�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=zMDatabaseToolsClient.list_database_tools_private_endpoints.<locals>.<dictcomp>rFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD
r=r$rNN�&DatabaseToolsPrivateEndpointCollectionr"r�r�r�r.r:r/r��s�;
����







�
��
��z9DatabaseToolsClient.list_database_tools_private_endpointscsd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhd|vr�ddg}|d|vr�td�|���d|vr�ddg}|d|vr�td�|���|�	dt
�|�	dt
�|�	dt
�|�	dt
�d�}
dd�t�|
�D�}
dd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d �}|du�r�tj}|�r�t|tj��s�|j�|�|�|j�|j|jj||||
|d!|�	d"�||d#�
S|jj||||
|d!|�	d"�||d#�	SdS)$aI	
        Returns a paginated list of errors for the specified work request.


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

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

        :param str 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 page: (optional)
            The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
        z$/workRequests/{workRequestId}/errorsr��list_work_request_errorszdhttps://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestError/ListWorkRequestErrors�r"r$r5r�r�r�r�csg|]}|�vr|�qSr.r.r7r:r.r/r<kr=z@DatabaseToolsClient.list_work_request_errors.<locals>.<listcomp>z1list_work_request_errors got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDtr=z@DatabaseToolsClient.list_work_request_errors.<locals>.<dictcomp>NrrEr�r�r�r�r�r�r�r�r�r��r�r�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=rFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�WorkRequestErrorCollectionr"�	rRrSrTr�rUrwr"rWrXr��r*r�r,rRrSrWrXrkrTrBrCr�r�r�rUr$r.r:r/r�/s�-	��$��



�
��
��z,DatabaseToolsClient.list_work_request_errorscsd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhd|vr�ddg}|d|vr�td�|���d|vr�ddg}|d|vr�td�|���|�	dt
�|�	dt
�|�	dt
�|�	dt
�d�}
dd�t�|
�D�}
dd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d �}|du�r�tj}|�r�t|tj��s�|j�|�|�|j�|j|jj||||
|d!|�	d"�||d#�
S|jj||||
|d!|�	d"�||d#�	SdS)$aF	
        Returns a paginated list of logs for the specified work request.


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

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

        :param str 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 page: (optional)
            The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
        z"/workRequests/{workRequestId}/logsr��list_work_request_logszehttps://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestLogEntry/ListWorkRequestLogsr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z>DatabaseToolsClient.list_work_request_logs.<locals>.<listcomp>z/list_work_request_logs got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z>DatabaseToolsClient.list_work_request_logs.<locals>.<dictcomp>NrrEr�r�r�r�r�r�r�r�r�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=rFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=r$rN�WorkRequestLogEntryCollectionr"r�r�r�r.r:r/r��s�-	��$��



�
��
��z*DatabaseToolsClient.list_work_request_logsc
s�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrld
dg}|d	|vrltd�|���d
|vr�dg}	|d
|	vr�td�|	���||�dt�|�d	t�|�d
t�|�dt�|�dt�d�}
dd�t�|
�D�}
dd|�dt�d�}dd�t�|�D�}|jj|�d�|j	d�}|du�r2t
j}|�r�t|t
j
��s^|j�|�|�|j�|j|jj|||
|d|�d�||d�	S|jj|||
|d|�d�||d�SdS) 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 resource_identifier: (optional)
            The `OCID`__ of the resource.

            __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm

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

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

            Allowed values are: "timeAccepted"

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/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/database-tools/20201005/WorkRequest/ListWorkRequests)r"r$�resource_identifierr5r�r�r�r�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z:DatabaseToolsClient.list_work_requests.<locals>.<listcomp>z+list_work_requests got unknown kwargs: {!r}r�r�r�r�r��timeAcceptedr�r�r�r�)r��resourceIdentifierr�r�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=z:DatabaseToolsClient.list_work_requests.<locals>.<dictcomp>rFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNN�WorkRequestCollectionr"r�r�)
r*r�r,rRrSrWrXrkr�r�r�rUr$r.r:r/r�Cs�2
���




�
��
��z&DatabaseToolsClient.list_work_requestscsfd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�r@t|
tj��s|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)a	
        Updates the specified Database Tools connection.


        :param str database_tools_connection_id: (required)
            The `OCID`__ of a Database Tools connection.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param oci.database_tools.models.UpdateDatabaseToolsConnectionDetails update_database_tools_connection_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/2.90.0/databasetools/update_database_tools_connection.py.html>`__ to see an example of how to use update_database_tools_connection API.
        r~�PUT� update_database_tools_connectionzshttps://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/UpdateDatabaseToolsConnectionr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zHDatabaseToolsClient.update_database_tools_connection.<locals>.<listcomp>z9update_database_tools_connection got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=zHDatabaseToolsClient.update_database_tools_connection.<locals>.<dictcomp>NrrErFr4r5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=r$rNr"rQr�)r*ri�(update_database_tools_connection_detailsr,rRrSrWrXrkrTrBrCrUr$r.r:r/r��sf)��$

����z4DatabaseToolsClient.update_database_tools_connectioncsfd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�r@t|
tj��s|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)aF	
        Updates the specified Database Tools private endpoint.


        :param str database_tools_private_endpoint_id: (required)
            The `OCID`__ of a Database Tools private endpoint.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param oci.database_tools.models.UpdateDatabaseToolsPrivateEndpointDetails update_database_tools_private_endpoint_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/2.90.0/databasetools/update_database_tools_private_endpoint.py.html>`__ to see an example of how to use update_database_tools_private_endpoint API.
        r�r��&update_database_tools_private_endpointz}https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/UpdateDatabaseToolsPrivateEndpointr�csg|]}|�vr|�qSr.r.r7r:r.r/r<hr=zNDatabaseToolsClient.update_database_tools_private_endpoint.<locals>.<listcomp>z?update_database_tools_private_endpoint got unknown kwargs: {!r}rmcSsi|]\}}|tur||�qSr.r?rAr.r.r/rDqr=zNDatabaseToolsClient.update_database_tools_private_endpoint.<locals>.<dictcomp>NrrErFr4r5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD}r=r$rNr"rQr�)r*rn�.update_database_tools_private_endpoint_detailsr,rRrSrWrXrkrTrBrCrUr$r.r:r/r�3sf)��$

����z:DatabaseToolsClient.update_database_tools_private_endpointcsjd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rBt|
tj��s|j�|�|
�|j�|
j|jj|||	||d|�	d�||d�
S|jj|||	||d|�	d�||d�	SdS)a�	
        Validates the Database Tools connection details by establishing a connection to the database.


        :param str database_tools_connection_id: (required)
            The `OCID`__ of a Database Tools connection.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param oci.database_tools.models.ValidateDatabaseToolsConnectionDetails validate_database_tools_connection_details: (required)
            Request to validate a DatabaseToolsConnection.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasetools/validate_database_tools_connection.py.html>`__ to see an example of how to use validate_database_tools_connection API.
        zP/databaseToolsConnections/{databaseToolsConnectionId}/actions/validateConnectionr1�"validate_database_tools_connectionzuhttps://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ValidateDatabaseToolsConnectionr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zJDatabaseToolsClient.validate_database_tools_connection.<locals>.<listcomp>z;validate_database_tools_connection got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=zJDatabaseToolsClient.validate_database_tools_connection.<locals>.<dictcomp>NrrErFr4r5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�%ValidateDatabaseToolsConnectionResultr")	rRrSrTrUrVrwr"rWrXr�)r*ri�*validate_database_tools_connection_detailsr,rRrSrWrXrkrTrBrCrUr$r.r:r/r��sj)��$

����z6DatabaseToolsClient.validate_database_tools_connectionN)�__name__�
__module__�__qualname__�__doc__r0r2rlrqr{r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r.r.r.r/rs6Sxx\\ee```^"jjrN)�
__future__r�oci._vendorrr�ocirr�oci.base_clientr�
oci.configrr	�
oci.signerr
�oci.utilrrr
�modelsrr@�objectrr.r.r.r/�<module>s