403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.108
Web Server : Apache
System : Linux gator2125.hostgator.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 : cozeellc ( 2980)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/libexec/oracle-cloud-agent/plugins/osms/oci/database_migration/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/libexec/oracle-cloud-agent/plugins/osms/oci/database_migration/database_migration_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_migration_type_mapping�Missingc@sXeZdZdZdd�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*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4d5�Zd6d7�Zd8d9�Zd:d;�Z d<d=�Z!d>d?�Z"d@dA�Z#dBdC�Z$dDdE�Z%dFdG�Z&dHdI�Z'dJdK�Z(dLdM�Z)dNdO�Z*dPdQ�Z+dRdS�Z,dTS)U�DatabaseMigrationClientzo
    Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration operations.
    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	/20210929z-https://odms.{region}.oci.{secondLevelDomain}�skip_deserializationF�circuit_breaker_strategy)�regional_clientr�	base_path�service_endpoint_templaterr�timeoutN�allow_control_chars�database_migration�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_migration/database_migration_client.py�__init__s:0

�

�
z DatabaseMigrationClient.__init__c
s�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�}|du�rtj}|�rft|tj��s@|j�|�|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||d|�	d�||d�SdS)a

        Aborts a Migration Job (either Evaluation or Migration).


        :param str job_id: (required)
            The OCID of the job

        :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)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.Job`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/abort_job.py.html>`__ to see an example of how to use abort_job API.
        z/jobs/{jobId}/actions/abort�POST�	abort_jobzNhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/AbortJob�r"r$�if_match�opc_retry_token�opc_request_idcsg|]}|�vr|�qSr.r.��.0�_key��expected_kwargsr.r/�
<listcomp>��z5DatabaseMigrationClient.abort_job.<locals>.<listcomp>z"abort_job got unknown kwargs: {!r}�jobIdcSsi|]\}}|tur||�qSr.��missing�r8�k�vr.r.r/�
<dictcomp>�r=z5DatabaseMigrationClient.abort_job.<locals>.<dictcomp>Nr�7Parameter {} cannot be None, whitespace or empty string�application/jsonr4r5r6��accept�content-type�if-match�opc-retry-token�opc-request-idcSs&i|]\}}|tur|dur||�qS�Nr?rAr.r.r/rD�r=r$��operation_retry_strategy�client_retry_strategy�Jobr"��
resource_path�method�path_params�
header_params�
response_typer"�operation_name�api_reference_link�r�iterkeys�
ValueError�format�	iteritems�
isinstance�string_types�len�stripr&r@r)�get_preferred_retry_strategyr$r�DEFAULT_RETRY_STRATEGY�NoneRetryStrategy�add_opc_retry_token_if_needed�add_opc_client_retries_header�add_circuit_breaker_callbackr%�make_retrying_call�call_api�
r*�job_idr,rSrTrXrY�extra_kwargsrUrBrCrVr$r.r:r/r2ksn,��$


��
��z!DatabaseMigrationClient.abort_jobcstd}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�}
|
dur�tj}
|
�rNt|
tj��s(|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)a�
        Add excluded/included object to the list.


        :param str migration_id: (required)
            The OCID of the migration

        :param oci.database_migration.models.MigrationObjectCollection add_migration_objects_details: (required)
            Arrays of object.

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/add_migration_objects.py.html>`__ to see an example of how to use add_migration_objects API.
        z5/migrations/{migrationId}/actions/addMigrationObjectsr1�add_migration_objectsz_https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/AddMigrationObjects�r"r$r6r4csg|]}|�vr|�qSr.r.r7r:r.r/r<r=zADatabaseMigrationClient.add_migration_objects.<locals>.<listcomp>z.add_migration_objects got unknown kwargs: {!r}�migrationIdcSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=zADatabaseMigrationClient.add_migration_objects.<locals>.<dictcomp>NrrErFr6r4�rHrIrLrJcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD&r=r$rNr"�rSrTrUrV�bodyr"rXrY�rr[r\r]r^r_r`rarbr&r@r)rcr$rrdrergrhr%rirj)r*�migration_id�add_migration_objects_detailsr,rSrTrXrYrmrUrBrCrVr$r.r:r/rn�sj(��$

����z-DatabaseMigrationClient.add_migration_objectscs�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�}
|
du�rtj}
|
�rft|
tj��s@|j�|�|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)a�

        Used to configure an ODMS Agent Compartment ID.


        :param str agent_id: (required)
            The OCID of the agent

        :param oci.database_migration.models.ChangeAgentCompartmentDetails change_agent_compartment_details: (required)
            Details to change the compartment.

        :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)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/change_agent_compartment.py.html>`__ to see an example of how to use change_agent_compartment API.
        z+/agents/{agentId}/actions/changeCompartmentr1�change_agent_compartmentz^https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/ChangeAgentCompartment�r"r$r5r6r4csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zDDatabaseMigrationClient.change_agent_compartment.<locals>.<listcomp>z1change_agent_compartment got unknown kwargs: {!r}�agentIdcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=zDDatabaseMigrationClient.change_agent_compartment.<locals>.<dictcomp>NrrErFr5r6r4�rHrIrKrLrJcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr"rrrZ)r*�agent_id� change_agent_compartment_detailsr,rSrTrXrYrmrUrBrCrVr$r.r:r/rwHsn/��$


��
��z0DatabaseMigrationClient.change_agent_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�}
|
du�rtj}
|
�rft|
tj��s@|j�|�|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)a�

        Used to change the Database Connection compartment.


        :param str connection_id: (required)
            The OCID of the database connection

        :param oci.database_migration.models.ChangeConnectionCompartmentDetails change_connection_compartment_details: (required)
            Details to change the compartment.

        :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)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/change_connection_compartment.py.html>`__ to see an example of how to use change_connection_compartment API.
        z5/connections/{connectionId}/actions/changeCompartmentr1�change_connection_compartmentzhhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ChangeConnectionCompartmentrxcsg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zIDatabaseMigrationClient.change_connection_compartment.<locals>.<listcomp>z6change_connection_compartment got unknown kwargs: {!r}�connectionIdcSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=zIDatabaseMigrationClient.change_connection_compartment.<locals>.<dictcomp>NrrErFr5r6r4rzcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=r$rNr"rrrZ)r*�
connection_id�%change_connection_compartment_detailsr,rSrTrXrYrmrUrBrCrVr$r.r:r/r}�sn/��$


��
��z5DatabaseMigrationClient.change_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�}
|
du�rtj}
|
�rft|
tj��s@|j�|�|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)a�

        Used to change the Migration compartment.


        :param str migration_id: (required)
            The OCID of the migration

        :param oci.database_migration.models.ChangeMigrationCompartmentDetails change_migration_compartment_details: (required)
            Details to change the compartment.

        :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)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/change_migration_compartment.py.html>`__ to see an example of how to use change_migration_compartment API.
        z3/migrations/{migrationId}/actions/changeCompartmentr1�change_migration_compartmentzfhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/ChangeMigrationCompartmentrxcsg|]}|�vr|�qSr.r.r7r:r.r/r<nr=zHDatabaseMigrationClient.change_migration_compartment.<locals>.<listcomp>z5change_migration_compartment got unknown kwargs: {!r}rpcSsi|]\}}|tur||�qSr.r?rAr.r.r/rDwr=zHDatabaseMigrationClient.change_migration_compartment.<locals>.<dictcomp>NrrErFr5r6r4rzcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr"rrrZ)r*ru�$change_migration_compartment_detailsr,rSrTrXrYrmrUrBrCrVr$r.r:r/r�2sn/��$


��
��z4DatabaseMigrationClient.change_migration_compartmentcs�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�}
|
du�rtj}
|
�rht|
tj��s@|j�|�|j�|�|
�|j�|
j|jj|||	||d|�	d�||d�
S|jj|||	||d|�	d�||d�	SdS)a�

        Clone a configuration from an existing Migration.


        :param str migration_id: (required)
            The OCID of the migration

        :param oci.database_migration.models.CloneMigrationDetails clone_migration_details: (required)
            Clone Migration properties.

        :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)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.Migration`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/clone_migration.py.html>`__ to see an example of how to use clone_migration API.
        z'/migrations/{migrationId}/actions/cloner1�clone_migrationzZhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/CloneMigrationr3csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z;DatabaseMigrationClient.clone_migration.<locals>.<listcomp>z(clone_migration got unknown kwargs: {!r}rpcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z;DatabaseMigrationClient.clone_migration.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�	Migrationr"�	rSrTrUrVrsrWr"rXrYrZ)r*ru�clone_migration_detailsr,rSrTrXrYrmrUrBrCrVr$r.r:r/r��sr/��$


��
��z'DatabaseMigrationClient.clone_migrationc
sd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	d	|�d
t�|�dt�d�}d
d�t�|�D�}|jj|�d�|j	d�}	|	dur�t
j}	|	r�t|	t
j
�s�|j�|�|j�|�|	�|j�|	j|jj||||d|�d�||d�	S|jj||||d|�d�||d�SdS)aD	
        Create a Database Connection resource that contains the details to connect to either a Source or Target Database
        in the migration.


        :param oci.database_migration.models.CreateConnectionDetails create_connection_details: (required)
            Database Connection properties.

        :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)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.Connection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/create_connection.py.html>`__ to see an example of how to use create_connection API.
        �/connectionsr1�create_connection��r"r$r5r6csg|]}|�vr|�qSr.r.r7r:r.r/r<Pr=z=DatabaseMigrationClient.create_connection.<locals>.<listcomp>z*create_connection got unknown kwargs: {!r}rFr5r6�rHrIrKrLcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD[r=z=DatabaseMigrationClient.create_connection.<locals>.<dictcomp>r$rNN�
Connectionr"�rSrTrVrsrWr"rXrY�rr[r\r]r&r@r^r)rcr$rrdr_rerfrgrhr%rirj)
r*�create_connection_detailsr,rSrTrXrYrmrVr$r.r:r/r�s`&�

����z)DatabaseMigrationClient.create_connectionc
sd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	d	|�d
t�|�dt�d�}d
d�t�|�D�}|jj|�d�|j	d�}	|	dur�t
j}	|	r�t|	t
j
�s�|j�|�|j�|�|	�|j�|	j|jj||||d|�d�||d�	S|jj||||d|�d�||d�SdS)ad	
        Create a Migration resource that contains all the details to perform the
        database migration operation, such as source and destination database
        details, credentials, etc.


        :param oci.database_migration.models.CreateMigrationDetails create_migration_details: (required)
            Migration properties.

        :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)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.Migration`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/create_migration.py.html>`__ to see an example of how to use create_migration API.
        �/migrationsr1�create_migrationr�r�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z<DatabaseMigrationClient.create_migration.<locals>.<listcomp>z)create_migration got unknown kwargs: {!r}rFr5r6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=z<DatabaseMigrationClient.create_migration.<locals>.<dictcomp>r$rNNr�r"r�r�)
r*�create_migration_detailsr,rSrTrXrYrmrVr$r.r:r/r�~s`'�

����z(DatabaseMigrationClient.create_migrationc

spd}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�}|dur�tj}|�rLt|tj��s(|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	d�||d�SdS)a
        Delete the ODMS Agent represented by the specified ODMS Agent ID.


        :param str agent_id: (required)
            The OCID of the agent

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/delete_agent.py.html>`__ to see an example of how to use delete_agent API.
        �/agents/{agentId}�DELETE�delete_agentzShttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/DeleteAgentrocsg|]}|�vr|�qSr.r.r7r:r.r/r<r=z8DatabaseMigrationClient.delete_agent.<locals>.<listcomp>z%delete_agent got unknown kwargs: {!r}rycSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=z8DatabaseMigrationClient.delete_agent.<locals>.<dictcomp>NrrErFr6r4rqcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD%r=r$rNr"�rSrTrUrVr"rXrYrt�
r*r{r,rSrTrXrYrmrUrBrCrVr$r.r:r/r��sf%��$

���
�z$DatabaseMigrationClient.delete_agentc

spd}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�}|dur�tj}|�rLt|tj��s(|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	d�||d�SdS)a<
        Deletes the Database Connection represented by the specified connection ID.


        :param str connection_id: (required)
            The OCID of the database connection

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/delete_connection.py.html>`__ to see an example of how to use delete_connection API.
        �/connections/{connectionId}r��delete_connectionz]https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/DeleteConnectionrocsg|]}|�vr|�qSr.r.r7r:r.r/r<vr=z=DatabaseMigrationClient.delete_connection.<locals>.<listcomp>z*delete_connection got unknown kwargs: {!r}r~cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=z=DatabaseMigrationClient.delete_connection.<locals>.<dictcomp>NrrErFr6r4rqcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr"r�rt�
r*rr,rSrTrXrYrmrUrBrCrVr$r.r:r/r�Esf%��$

���
�z)DatabaseMigrationClient.delete_connectionc

spd}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�}|dur�tj}|�rLt|tj��s(|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	d�||d�SdS)a
        Deletes the migration job represented by the given job ID.


        :param str job_id: (required)
            The OCID of the job

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/delete_job.py.html>`__ to see an example of how to use delete_job API.
        �
/jobs/{jobId}r��
delete_jobzOhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/DeleteJobrocsg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z6DatabaseMigrationClient.delete_job.<locals>.<listcomp>z#delete_job got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z6DatabaseMigrationClient.delete_job.<locals>.<dictcomp>NrrErFr6r4rqcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr"r�rtrkr.r:r/r��sf%��$

���
�z"DatabaseMigrationClient.delete_jobc

spd}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�}|dur�tj}|�rLt|tj��s(|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	d�||d�SdS)a$
        Deletes the Migration represented by the specified migration ID.


        :param str migration_id: (required)
            The OCID of the migration

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/delete_migration.py.html>`__ to see an example of how to use delete_migration API.
        �/migrations/{migrationId}r��delete_migrationz[https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/DeleteMigrationrocsg|]}|�vr|�qSr.r.r7r:r.r/r<Br=z<DatabaseMigrationClient.delete_migration.<locals>.<listcomp>z)delete_migration got unknown kwargs: {!r}rpcSsi|]\}}|tur||�qSr.r?rAr.r.r/rDKr=z<DatabaseMigrationClient.delete_migration.<locals>.<dictcomp>NrrErFr6r4rqcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDWr=r$rNr"r�rt�
r*rur,rSrTrXrYrmrUrBrCrVr$r.r:r/r�sf%��$

���
�z(DatabaseMigrationClient.delete_migrationc
s�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�}|du�rtj}|�rft|tj��s@|j�|�|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||d|�	d�||d�SdS)a

        Start Validate Migration job.


        :param str migration_id: (required)
            The OCID of the migration

        :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)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.Job`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/evaluate_migration.py.html>`__ to see an example of how to use evaluate_migration API.
        z*/migrations/{migrationId}/actions/validater1�evaluate_migrationzWhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/EvaluateMigrationr3csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z>DatabaseMigrationClient.evaluate_migration.<locals>.<listcomp>z+evaluate_migration got unknown kwargs: {!r}rpcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z>DatabaseMigrationClient.evaluate_migration.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNrQr"rRrZr�r.r:r/r�wsn,��$


��
��z*DatabaseMigrationClient.evaluate_migrationc
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�
        Get the Pre-Migration Advisor report details


        :param str job_id: (required)
            The OCID of the job

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.AdvisorReport`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/get_advisor_report.py.html>`__ to see an example of how to use get_advisor_report API.
        z/jobs/{jobId}/advisorReport�GET�get_advisor_reportzVhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetAdvisorReport�r"r$r6csg|]}|�vr|�qSr.r.r7r:r.r/r<r=z>DatabaseMigrationClient.get_advisor_report.<locals>.<listcomp>z+get_advisor_report got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=z>DatabaseMigrationClient.get_advisor_report.<locals>.<dictcomp>NrrErFr6�rHrIrLcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD&r=r$rN�
AdvisorReportr"rRrtrkr.r:r/r��sh��$
����z*DatabaseMigrationClient.get_advisor_reportc
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�
        Display the ODMS Agent configuration.


        :param str agent_id: (required)
            The OCID of the agent

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.Agent`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/get_agent.py.html>`__ to see an example of how to use get_agent API.
        r�r��	get_agentzPhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/GetAgentr�csg|]}|�vr|�qSr.r.r7r:r.r/r<qr=z5DatabaseMigrationClient.get_agent.<locals>.<listcomp>z"get_agent got unknown kwargs: {!r}rycSsi|]\}}|tur||�qSr.r?rAr.r.r/rDzr=z5DatabaseMigrationClient.get_agent.<locals>.<dictcomp>NrrErFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�Agentr"rRrtr�r.r:r/r�Hsh��$
����z!DatabaseMigrationClient.get_agentc
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�
        Display Database Connection details.


        :param str connection_id: (required)
            The OCID of the database connection

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.Connection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/get_connection.py.html>`__ to see an example of how to use get_connection API.
        r�r��get_connectionzZhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/GetConnectionr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z:DatabaseMigrationClient.get_connection.<locals>.<listcomp>z'get_connection got unknown kwargs: {!r}r~cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z:DatabaseMigrationClient.get_connection.<locals>.<dictcomp>NrrErFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr�r"rRrtr�r.r:r/r��sh��$
����z&DatabaseMigrationClient.get_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)ap
        Get a migration job.


        :param str job_id: (required)
            The OCID of the job

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.Job`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/get_job.py.html>`__ to see an example of how to use get_job API.
        r�r��get_jobzLhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJobr�csg|]}|�vr|�qSr.r.r7r:r.r/r</r=z3DatabaseMigrationClient.get_job.<locals>.<listcomp>z get_job got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD8r=z3DatabaseMigrationClient.get_job.<locals>.<dictcomp>NrrErFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDCr=r$rNrQr"rRrtrkr.r:r/r�sh��$
����zDatabaseMigrationClient.get_jobc
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�
        Get the migration Job Output content as a String.


        :param str job_id: (required)
            The OCID of the job

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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 stream
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/get_job_output_content.py.html>`__ to see an example of how to use get_job_output_content API.
        z/jobs/{jobId}/output/contentr��get_job_output_contentzYhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJobOutputContentr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zBDatabaseMigrationClient.get_job_output_content.<locals>.<listcomp>z/get_job_output_content got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=zBDatabaseMigrationClient.get_job_output_content.<locals>.<dictcomp>NrrEzapplication/x-yamlrFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�streamr"rRrtrkr.r:r/r�esh��$
����z.DatabaseMigrationClient.get_job_output_contentc
std}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�}|dur�tj}|�rNt|tj��s(|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||d|�	d�||d�SdS)a%
        Display Migration details.


        :param str migration_id: (required)
            The OCID of the migration

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/get_migration.py.html>`__ to see an example of how to use get_migration API.
        r�r��
get_migrationzXhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/GetMigrationrocsg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z9DatabaseMigrationClient.get_migration.<locals>.<listcomp>z&get_migration got unknown kwargs: {!r}rpcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z9DatabaseMigrationClient.get_migration.<locals>.<dictcomp>NrrErFr6r4rqcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD
r=r$rNr�r"rRrtr�r.r:r/r��sj%��$

����z%DatabaseMigrationClient.get_migrationc
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 details of a work request.


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

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.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/databasemigration/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
        z/workRequests/{workRequestId}r��get_work_requestz\https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequest/GetWorkRequestr�csg|]}|�vr|�qSr.r.r7r:r.r/r<Ur=z<DatabaseMigrationClient.get_work_request.<locals>.<listcomp>z)get_work_request got unknown kwargs: {!r}�
workRequestIdcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD^r=z<DatabaseMigrationClient.get_work_request.<locals>.<dictcomp>NrrErFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDir=r$rN�WorkRequestr"rRrt)
r*�work_request_idr,rSrTrXrYrmrUrBrCrVr$r.r:r/r�,sh��$
����z(DatabaseMigrationClient.get_work_requestcsjd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrld
dg}|d	|vrltd�|���|�d
t�|�dt�|�d	t�d�}dd�t�|�D�}dd|�dt�d�}	dd�t�|	�D�}	|jj|�d�|j	d�}
|
dur�t
j}
|
�rDt|
t
j
��s|j�|	�|
�|j�|
j|jj||||	d|�d�||d�	S|jj||||	d|�d�||d�SdS)a
        Get details of the ODMS Agent Images available to install on-premises.


        :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 opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.AgentImageCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/list_agent_images.py.html>`__ to see an example of how to use list_agent_images API.
        z/agentImagesr��list_agent_imageszchttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentImageSummary/ListAgentImages)r"r$�limit�page�
sort_orderr6csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z=DatabaseMigrationClient.list_agent_images.<locals>.<listcomp>z*list_agent_images got unknown kwargs: {!r}r��ASC�DESC�2Invalid value for `sort_order`, must be one of {0}r�r�)r�r��	sortOrdercSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=z=DatabaseMigrationClient.list_agent_images.<locals>.<dictcomp>rFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNN�AgentImageCollectionr"�rSrT�query_paramsrVrWr"rXrY�rr[r\r]r&r@r^r)rcr$rrdr_rergrhr%rirj)r*r,rSrTrXrYrm�sort_order_allowed_valuesr�rVr$r.r:r/r��sr&��


�
����z)DatabaseMigrationClient.list_agent_imagescs�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�d�}dd�t�|�D�}dd|�dt�d�}dd�t�|�D�}|jj|�d�|j	d�}
|
d u�rht
j}
|
�r�t|
t
j
��s�|j�|�|
�|j�|
j|jj||||d!|�d"�||d#�	S|jj||||d!|�d"�||d#�Sd S)$a#
        Display the name of all the existing ODMS Agents in the server.


        :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_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 sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'.

            Allowed values are: "ASC", "DESC"

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

        :param str lifecycle_state: (optional)
            The current state of the Database Migration Deployment.

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

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.AgentCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/list_agents.py.html>`__ to see an example of how to use list_agents API.
        z/agentsr��list_agentszYhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentSummary/ListAgents)	r"r$r�r��sort_byr��display_name�lifecycle_stater6csg|]}|�vr|�qSr.r.r7r:r.r/r<A	r=z7DatabaseMigrationClient.list_agents.<locals>.<listcomp>z$list_agents got unknown kwargs: {!r}r��timeCreated�displayName�/Invalid value for `sort_by`, must be one of {0}r�r�r�r�r���CREATING�UPDATING�ACTIVE�INACTIVE�DELETING�DELETED�FAILED�7Invalid value for `lifecycle_state`, must be one of {0}r�r�r�)�
compartmentIdr�r��sortByr�r��lifecycleStatecSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDd	r=z7DatabaseMigrationClient.list_agents.<locals>.<dictcomp>rFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDk	r=r$rNN�AgentCollectionr"r�r��r*�compartment_idr,rSrTrXrYrm�sort_by_allowed_valuesr��lifecycle_state_allowed_valuesr�rVr$r.r:r/r��s�7����





�	
��
��z#DatabaseMigrationClient.list_agentscs�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�d�}dd�t�|�D�}dd|�dt�d�}dd�t�|�D�}|jj|�d�|j	d�}
|
d u�rht
j}
|
�r�t|
t
j
��s�|j�|�|
�|j�|
j|jj||||d!|�d"�||d#�	S|jj||||d!|�d"�||d#�Sd S)$a
        List all Database Connections.


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

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

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

        :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_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 sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'.

            Allowed values are: "ASC", "DESC"

        :param str lifecycle_state: (optional)
            The current state of the Database Migration Deployment.

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/list_connections.py.html>`__ to see an example of how to use list_connections API.
        r�r��list_connectionszchttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ConnectionSummary/ListConnections�	r"r$r6r�r�r�r�r�r�csg|]}|�vr|�qSr.r.r7r:r.r/r<�	r=z<DatabaseMigrationClient.list_connections.<locals>.<listcomp>z)list_connections 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�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�	r=z<DatabaseMigrationClient.list_connections.<locals>.<dictcomp>rFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�	r=r$rNN�ConnectionCollectionr"r�r�r�r.r:r/r��	s�7����





�	
��
��z(DatabaseMigrationClient.list_connectionscszd}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�|���d|v�r&gd�}
|d|
v�r&td�|
���|�	dt
�|�	dt
�|�	dt
�|�	dt
�|�	dt
�|�	dt
�|�	dt
�|�	dt
�|�	dt
�|�	dt
�|�	d t
�d!�}d"d�t�|�D�}d#d#|�	d$t
�d%�}d&d�t�|�D�}|jj|�	d'�|j
d(�}|du�r�tj}|�rRt|tj��s*|j�|�|�|j�|j|jj|||||d)|�	d*�||d+�
S|jj|||||d)|�	d*�||d+�	SdS),a�
        List the excluded database objects.


        :param str job_id: (required)
            The OCID of the job

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

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

            Allowed values are: "type", "reasonCategory"

        :param str type: (optional)
            Excluded object type.

        :param str owner: (optional)
            Excluded object owner

        :param str object: (optional)
            Excluded object name

        :param str owner_contains: (optional)
            Excluded object owner which contains provided value.

        :param str object_contains: (optional)
            Excluded object name which contains provided value.

        :param str reason_category: (optional)
            Reason category for the excluded object

            Allowed values are: "ORACLE_MAINTAINED", "GG_UNSUPPORTED", "USER_EXCLUDED", "MANDATORY_EXCLUDED", "USER_EXCLUDED_TYPE"

        :param str source_rule: (optional)
            Exclude object rule that matches the excluded object, if applicable.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/list_excluded_objects.py.html>`__ to see an example of how to use list_excluded_objects API.
        z/jobs/{jobId}/excludedObjectsr��list_excluded_objectszkhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ExcludedObjectSummary/ListExcludedObjects)r"r$r6r�r�r�r��type�owner�object�owner_contains�object_contains�reason_category�source_rulecsg|]}|�vr|�qSr.r.r7r:r.r/r<~
r=zADatabaseMigrationClient.list_excluded_objects.<locals>.<listcomp>z.list_excluded_objects got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�
r=zADatabaseMigrationClient.list_excluded_objects.<locals>.<dictcomp>NrrEr�r�r�r�r�r��reasonCategoryr�r�)�ORACLE_MAINTAINED�GG_UNSUPPORTED�
USER_EXCLUDED�MANDATORY_EXCLUDED�USER_EXCLUDED_TYPEz7Invalid value for `reason_category`, must be one of {0}r�r�r�r�r�r�r�)r�r�r�r�r�r�r��
ownerContains�objectContainsr��
sourceRulecSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�
r=rFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�
r=r$rN�ExcludedObjectSummaryCollectionr"�	rSrTrUr�rVrWr"rXrYrt)r*rlr,rSrTrXrYrmrUrBrCr�r��reason_category_allowed_valuesr�rVr$r.r:r/r�!
s�G��$��
�










�

��
��z-DatabaseMigrationClient.list_excluded_objectscs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qh|�	dt
�|�	dt
�d�}dd�t�|�D�}dd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
du�r"tj}
|
�rvt|
tj��sN|j�|�|
�|j�|
j|jj|||||d|�	d�||d�
S|jj|||||d|�	d�||d�	SdS)a�
        List the Job Outputs


        :param str job_id: (required)
            The OCID of the job

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/list_job_outputs.py.html>`__ to see an example of how to use list_job_outputs API.
        z/jobs/{jobId}/outputr��list_job_outputszahttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobOutputSummary/ListJobOutputs)r"r$r6r�r�csg|]}|�vr|�qSr.r.r7r:r.r/r<r=z<DatabaseMigrationClient.list_job_outputs.<locals>.<listcomp>z)list_job_outputs got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=z<DatabaseMigrationClient.list_job_outputs.<locals>.<dictcomp>NrrEr�r��r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=rFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD%r=r$rN�JobOutputSummaryCollectionr"r�rt)r*rlr,rSrTrXrYrmrUrBrCr�rVr$r.r:r/r��
st$��$

�
��
��z(DatabaseMigrationClient.list_job_outputscs�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�d�}dd�t�|�D�}dd|�dt�d�}dd�t�|�D�}|jj|�d�|j	d�}
|
d u�rht
j}
|
�r�t|
t
j
��s�|j�|�|
�|j�|
j|jj||||d!|�d"�||d#�	S|jj||||d!|�d"�||d#�Sd S)$aH
        List all the names of the Migration jobs associated to the specified
        migration site.


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

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

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

        :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_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 sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'.

            Allowed values are: "ASC", "DESC"

        :param str lifecycle_state: (optional)
            The lifecycle state of the Migration Job.

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/list_jobs.py.html>`__ to see an example of how to use list_jobs API.
        z/jobsr��	list_jobszUhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobSummary/ListJobsr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z5DatabaseMigrationClient.list_jobs.<locals>.<listcomp>z"list_jobs got unknown kwargs: {!r}r�r�r�r�r�r�r�r�r�)	�ACCEPTED�IN_PROGRESS�UNKNOWN�
TERMINATEDr��	SUCCEEDED�WAITING�	CANCELING�CANCELEDr�r�r�r�)rpr�r�r�r�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=z5DatabaseMigrationClient.list_jobs.<locals>.<dictcomp>rFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNN�
JobCollectionr"r�r�)r*rur,rSrTrXrYrmr�r�r�r�rVr$r.r:r/r�Is�8����





�	
��
��z!DatabaseMigrationClient.list_jobscs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrjd
g}|d	|vrjtd�|���d|vr�d
dg}|d|vr�td�|���|�d	t�|�dt�|�dt�|�dt�d�}	dd�t�|	�D�}	dd|�dt�d�}
dd�t�|
�D�}
|jj|�d�|j	d�}|du�r&t
j}|�rxt|t
j
��sR|j�|
�|�|j�|j|jj|||	|
d|�d�||d�	S|jj|||	|
d|�d�||d�SdS)aL	
        Display sample object types to exclude or include for a Migration.


        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be provided.
            Default order for name is custom based on it's usage frequency. If no value is specified name is default.

            Allowed values are: "name"

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

            Allowed values are: "ASC", "DESC"

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/list_migration_object_types.py.html>`__ to see an example of how to use list_migration_object_types API.
        z/migrationObjectTypesr��list_migration_object_typeszuhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectTypeSummary/ListMigrationObjectTypes)r"r$r6r�r�r�r�csg|]}|�vr|�qSr.r.r7r:r.r/r<r=zGDatabaseMigrationClient.list_migration_object_types.<locals>.<listcomp>z4list_migration_object_types got unknown kwargs: {!r}r��namer�r�r�r�r�r�r�)r�r�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD2r=zGDatabaseMigrationClient.list_migration_object_types.<locals>.<dictcomp>rFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD9r=r$rNN�$MigrationObjectTypeSummaryCollectionr"r�r�)r*r,rSrTrXrYrmr�r�r�rVr$r.r:r/r��s�,	���



�
��
��z3DatabaseMigrationClient.list_migration_object_typescs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qh|�	dt
�|�	dt
�d�}dd�t�|�D�}dd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
du�r,tj}
|
�r�t|
tj��sX|j�|�|
�|j�|
j|jj|||||d|�	d�||d�
S|jj|||||d|�	d�||d�	SdS)aY	
        Display excluded/included objects.


        :param str migration_id: (required)
            The OCID of the migration

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 int limit: (optional)
            The maximum number of items to return.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/list_migration_objects.py.html>`__ to see an example of how to use list_migration_objects API.
        z*/migrations/{migrationId}/migrationObjectsr��list_migration_objectszphttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectCollection/ListMigrationObjects)r"r$r6r4r�r�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zBDatabaseMigrationClient.list_migration_objects.<locals>.<listcomp>z/list_migration_objects got unknown kwargs: {!r}rpcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=zBDatabaseMigrationClient.list_migration_objects.<locals>.<dictcomp>NrrEr�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=rFr6r4rqcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�MigrationObjectCollectionr"r�rt)r*rur,rSrTrXrYrmrUrBrCr�rVr$r.r:r/r�[sv+��$

�

��
��z.DatabaseMigrationClient.list_migration_objectscsd}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�|
���d|vr�gd�}|d|vr�td�|���||�dt�|�dt�|�dt�|�d	t�|�d
t�|�dt�|�dt�d�}dd�t�|�D�}dd|�dt�d�}
d d�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"
        List all Migrations.


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

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

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

        :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_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 sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'.

            Allowed values are: "ASC", "DESC"

        :param str lifecycle_state: (optional)
            The lifecycle state of the Migration.

            Allowed values are: "CREATING", "UPDATING", "ACTIVE", "IN_PROGRESS", "ACCEPTED", "SUCCEEDED", "CANCELED", "WAITING", "NEEDS_ATTENTION", "INACTIVE", "DELETING", "DELETED", "FAILED"

        :param str lifecycle_details: (optional)
            The lifecycle detailed status of the Migration.

            Allowed values are: "READY", "ABORTING", "VALIDATING", "VALIDATED", "WAITING", "MIGRATING", "DONE"

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/list_migrations.py.html>`__ to see an example of how to use list_migrations API.
        r�r��list_migrationszahttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationSummary/ListMigrations)
r"r$r6r�r�r�r�r�r��lifecycle_detailscsg|]}|�vr|�qSr.r.r7r:r.r/r<!
r=z;DatabaseMigrationClient.list_migrations.<locals>.<listcomp>z(list_migrations got unknown kwargs: {!r}r�r�r�r�r�r�r�r�r�)
r�r�r�r�r�r�r�r��NEEDS_ATTENTIONr�r�r�r�r�r)�READY�ABORTING�
VALIDATING�	VALIDATEDr��	MIGRATING�DONEz9Invalid value for `lifecycle_details`, must be one of {0}r�r�r�)r�r�r�r�r�r�r��lifecycleDetailscSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDL
r=z;DatabaseMigrationClient.list_migrations.<locals>.<dictcomp>rFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDS
r=r$rNN�MigrationCollectionr"r�r�)r*r�r,rSrTrXrYrmr�r�r�� lifecycle_details_allowed_valuesr�rVr$r.r:r/r��s�<�����






�

��
��z'DatabaseMigrationClient.list_migrationsc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�dg}|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)#a7	
        Gets the errors for a work request.


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

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

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

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

            Allowed values are: "timestamp"

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

            Allowed values are: "ASC", "DESC"

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.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/databasemigration/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_errorszhhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestError/ListWorkRequestErrors�r"r$r�r�r�r�r6csg|]}|�vr|�qSr.r.r7r:r.r/r<�
r=zDDatabaseMigrationClient.list_work_request_errors.<locals>.<listcomp>z1list_work_request_errors got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�
r=zDDatabaseMigrationClient.list_work_request_errors.<locals>.<dictcomp>NrrEr��	timestampr�r�r�r�r�r�r��r�r�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�
r=rFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�
r=r$rN�WorkRequestErrorCollectionr"r�rt�r*r�r,rSrTrXrYrmrUrBrCr�r�r�rVr$r.r:r/ru
s�.	��$��



�
��
��z0DatabaseMigrationClient.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�dg}|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)#a4	
        Gets the logs for a work request.


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

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

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

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

            Allowed values are: "timestamp"

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

            Allowed values are: "ASC", "DESC"

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.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/databasemigration/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_logszihttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestLogEntry/ListWorkRequestLogsrcsg|]}|�vr|�qSr.r.r7r:r.r/r<=r=zBDatabaseMigrationClient.list_work_request_logs.<locals>.<listcomp>z/list_work_request_logs got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDFr=zBDatabaseMigrationClient.list_work_request_logs.<locals>.<dictcomp>NrrEr�r
r�r�r�r�r�r�r�rcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD`r=rFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDgr=r$rN�WorkRequestLogEntryCollectionr"r�rtrr.r:r/rs�.	��$��



�
��
��z.DatabaseMigrationClient.list_work_request_logscs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrlgd
�}|d	|vrltd�|���d|vr�d
g}	|d|	vr�td�|	���d|vr�ddg}
|d|
vr�td�|
���||�dt�|�d	t�|�dt�|�dt�|�dt�|�dt�d�}dd�t�|�D�}dd|�dt�d�}dd�t�|�D�}|jj|�d�|j	d�}
|
du�rft
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 or for a specified resource.


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

        :param str resource_id: (optional)
            The `OCID`__ of the resource.

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

        :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 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_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 str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.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/databasemigration/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
        z
/workRequestsr��list_work_requestszehttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestSummary/ListWorkRequests)	r"r$�resource_id�statusr�r�r�r�r6csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z>DatabaseMigrationClient.list_work_requests.<locals>.<listcomp>z+list_work_requests got unknown kwargs: {!r}r)r�r�r�r�r�r�r�z.Invalid value for `status`, must be one of {0}r��timeAcceptedr�r�r�r�r�rr�r�)r��
resourceIdrr�r�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=z>DatabaseMigrationClient.list_work_requests.<locals>.<dictcomp>rFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNN�WorkRequestCollectionr"r�r�)r*r�r,rSrTrXrYrm�status_allowed_valuesr�r�r�rVr$r.r:r/r�s�8����





�	
��
��z*DatabaseMigrationClient.list_work_requestscstd}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�}
|
dur�tj}
|
�rNt|
tj��s(|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)a�
        Remove excluded/included objects.


        :param str migration_id: (required)
            The OCID of the migration

        :param oci.database_migration.models.MigrationObjectCollection remove_migration_objects_details: (required)
            Arrays of object.

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/remove_migration_objects.py.html>`__ to see an example of how to use remove_migration_objects API.
        z8/migrations/{migrationId}/actions/removeMigrationObjectsr1�remove_migration_objectszbhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RemoveMigrationObjectsrocsg|]}|�vr|�qSr.r.r7r:r.r/r<Tr=zDDatabaseMigrationClient.remove_migration_objects.<locals>.<listcomp>z1remove_migration_objects got unknown kwargs: {!r}rpcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD]r=zDDatabaseMigrationClient.remove_migration_objects.<locals>.<dictcomp>NrrErFr6r4rqcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDir=r$rNr"rrrt)r*ru� remove_migration_objects_detailsr,rSrTrXrYrmrUrBrCrVr$r.r:r/r sj(��$

����z0DatabaseMigrationClient.remove_migration_objectsc
s�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�}|du�rtj}|�rnt|tj��s@|j�|�|j�|�|�|j�|j|jj|||||�	d�d|�	d�||d�
S|jj|||||�	d�d|�	d�||d�	SdS)az

        Resume a migration Job.


        :param str job_id: (required)
            The OCID of the job

        :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)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :param oci.database_migration.models.ResumeJobDetails resume_job_details: (optional)
            Resume Job options.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/resume_job.py.html>`__ to see an example of how to use resume_job API.
        z/jobs/{jobId}/actions/resumer1�
resume_jobzOhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/ResumeJob)r"r$r4r5r6�resume_job_detailscsg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z6DatabaseMigrationClient.resume_job.<locals>.<listcomp>z#resume_job got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z6DatabaseMigrationClient.resume_job.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNrrQr"r�rZrkr.r:r/r�sr/��$


��
��z"DatabaseMigrationClient.resume_jobc
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�
        Display Migration Phases for a specified migration.


        :param str migration_id: (required)
            The OCID of the migration

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request 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 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_migration.models.MigrationPhaseCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/retrieve_supported_phases.py.html>`__ to see an example of how to use retrieve_supported_phases API.
        z4/migrations/{migrationId}/actions/getSupportedPhasesr1�retrieve_supported_phaseszchttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RetrieveSupportedPhasesr�csg|]}|�vr|�qSr.r.r7r:r.r/r<,r=zEDatabaseMigrationClient.retrieve_supported_phases.<locals>.<listcomp>z2retrieve_supported_phases got unknown kwargs: {!r}rpcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD5r=zEDatabaseMigrationClient.retrieve_supported_phases.<locals>.<dictcomp>NrrErFr6r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD@r=r$rN�MigrationPhaseCollectionr"rRrtr�r.r:r/rsh��$
����z1DatabaseMigrationClient.retrieve_supported_phasesc
s�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�}|du�rtj}|�rnt|tj��s@|j�|�|j�|�|�|j�|j|jj|||||�	d�d|�	d�||d�
S|jj|||||�	d�d|�	d�||d�	SdS)a�

        Start Migration job.


        :param str migration_id: (required)
            The OCID of the migration

        :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)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :param oci.database_migration.models.StartMigrationDetails start_migration_details: (optional)
            Start Migration Job properties.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/start_migration.py.html>`__ to see an example of how to use start_migration API.
        z'/migrations/{migrationId}/actions/startr1�start_migrationzThttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/StartMigration)r"r$r4r5r6�start_migration_detailscsg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z;DatabaseMigrationClient.start_migration.<locals>.<listcomp>z(start_migration got unknown kwargs: {!r}rpcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z;DatabaseMigrationClient.start_migration.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr!rQr"r�rZr�r.r:r/r bsr/��$


��
��z'DatabaseMigrationClient.start_migrationcs�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�}
|
du�rtj}
|
�rht|
tj��s@|j�|�|j�|�|
�|j�|
j|jj|||	||d|�	d�||d�
S|jj|||	||d|�	d�||d�	SdS)a�

        Modifies the ODMS Agent represented by the given ODMS Agent ID.


        :param str agent_id: (required)
            The OCID of the agent

        :param oci.database_migration.models.UpdateAgentDetails update_agent_details: (required)
            Update ODMS Agent properties.

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

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

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

        :param 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_migration.models.Agent`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/update_agent.py.html>`__ to see an example of how to use update_agent API.
        r��PUT�update_agentzShttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/UpdateAgent)r"r$r6r5r4csg|]}|�vr|�qSr.r.r7r:r.r/r<r=z8DatabaseMigrationClient.update_agent.<locals>.<listcomp>z%update_agent got unknown kwargs: {!r}rycSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=z8DatabaseMigrationClient.update_agent.<locals>.<dictcomp>NrrErFr6r5r4)rHrIrLrKrJcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD,r=r$rNr�r"r�rZ)r*r{�update_agent_detailsr,rSrTrXrYrmrUrBrCrVr$r.r:r/r#�sr/��$


��
��z$DatabaseMigrationClient.update_agentcstd}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�}
|
dur�tj}
|
�rNt|
tj��s(|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)a�
        Update Database Connection resource details.


        :param str connection_id: (required)
            The OCID of the database connection

        :param oci.database_migration.models.UpdateConnectionDetails update_connection_details: (required)
            Database Connection properties.

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/update_connection.py.html>`__ to see an example of how to use update_connection API.
        r�r"�update_connectionz]https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/UpdateConnectionrocsg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z=DatabaseMigrationClient.update_connection.<locals>.<listcomp>z*update_connection got unknown kwargs: {!r}r~cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z=DatabaseMigrationClient.update_connection.<locals>.<dictcomp>NrrErFr6r4rqcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr"rrrt)r*r�update_connection_detailsr,rSrTrXrYrmrUrBrCrVr$r.r:r/r%Qsj(��$

����z)DatabaseMigrationClient.update_connectioncsxd}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�}
|
dur�tj}
|
�rPt|
tj��s(|j�|�|
�|j�|
j|jj|||	||d|�	d�||d�
S|jj|||	||d|�	d�||d�	SdS)a�
        Update Migration Job resource details.


        :param str job_id: (required)
            The OCID of the job

        :param oci.database_migration.models.UpdateJobDetails update_job_details: (required)
            Migration Job properties.

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/update_job.py.html>`__ to see an example of how to use update_job API.
        r�r"�
update_jobzOhttps://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/UpdateJobrocsg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z6DatabaseMigrationClient.update_job.<locals>.<listcomp>z#update_job got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z6DatabaseMigrationClient.update_job.<locals>.<dictcomp>NrrErFr6r4rqcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=r$rNrQr"r�rt)r*rl�update_job_detailsr,rSrTrXrYrmrUrBrCrVr$r.r:r/r'�sn(��$

����z"DatabaseMigrationClient.update_jobcstd}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�}
|
dur�tj}
|
�rNt|
tj��s(|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)a�
        Update Migration resource details.


        :param str migration_id: (required)
            The OCID of the migration

        :param oci.database_migration.models.UpdateMigrationDetails update_migration_details: (required)
            Migration properties.

        :param str opc_request_id: (optional)
            Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
            particular request, please provide the request ID.

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/databasemigration/update_migration.py.html>`__ to see an example of how to use update_migration API.
        r�r"�update_migrationz[https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/UpdateMigrationrocsg|]}|�vr|�qSr.r.r7r:r.r/r<]r=z<DatabaseMigrationClient.update_migration.<locals>.<listcomp>z)update_migration got unknown kwargs: {!r}rpcSsi|]\}}|tur||�qSr.r?rAr.r.r/rDfr=z<DatabaseMigrationClient.update_migration.<locals>.<dictcomp>NrrErFr6r4rqcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDrr=r$rNr"rrrt)r*ru�update_migration_detailsr,rSrTrXrYrmrUrBrCrVr$r.r:r/r))sj(��$

����z(DatabaseMigrationClient.update_migrationN)-�__name__�
__module__�__qualname__�__doc__r0r2rnrwr}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�rrrrrrr r#r%r'r)r.r.r.r/rsdSrkuuuw`affffr_____h_n:o}x#kx_xwkmrN)�
__future__r�oci._vendorrr�ocirr�oci.base_clientr�
oci.configrr	�
oci.signerr
�oci.utilrrr
�modelsrr@r�rr.r.r.r/�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit