o
    ɶd                    @   s   d dl mZ d dlmZ d dlmZ d dlmZmZ d dlm	Z	 d dl
mZmZ d dlmZ d dlmZmZmZ d d	lmZmZ d
dlmZ edZG dd deZdS )    )absolute_import)requests)six)retrycircuit_breaker)
BaseClient)get_config_value_or_defaultvalidate_config)Signer)Sentinel#get_signer_from_authentication_typeAUTHENTICATION_TYPE_FIELD_NAME),back_up_body_calculate_stream_content_length(is_content_length_calculable_by_req_util   )cloud_migrations_type_mappingZMissingc                   @   sp  e Zd ZdZdd Zdd Zdd Zdd	 Zd
d Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd Zdd Zdd Zdd Zd d! Zd"d# Zd$d% Zd&d' Zd(d) Zd*d+ Zd,d- Zd.d/ Zd0d1 Zd2d3 Zd4d5 Zd6d7 Zd8d9 Zd: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,dTdU Z-dVdW Z.dXdY Z/dZS )[MigrationClientz;
    A description of the Oracle Cloud Migrations API.
    c              
   K   s  t ||dd d|v r|d }n"t|v rt|}nt|d |d |d |dt|d|dd	}d
|dddi |dd|dtj|dd}d|v rY|d|d< |ddu retj|d< d|v rp|d|d< t	d||t
fi || _|d| _|d| _dS )a  
        Creates a new service client

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
        workRequestId/workRequests/{workRequestId}DELETEcancel_work_requestzPhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/WorkRequest/CancelWorkRequestr   r   if_matchopc_request_idc                       g | ]}| vr|qS r&   r&   .0_keyZexpected_kwargsr&   r'   
<listcomp>       z7MigrationClient.cancel_work_request.<locals>.<listcomp>z,cancel_work_request got unknown kwargs: {!r}c                 S      i | ]\}}|t ur||qS r&   missingr3   kvr&   r&   r'   
<dictcomp>       z7MigrationClient.cancel_work_request.<locals>.<dictcomp>Nr   7Parameter {} cannot be None, whitespace or empty stringapplication/jsonr/   r0   acceptcontent-typeif-matchopc-request-idc                 S   &   i | ]\}}|t ur|d ur||qS Nr9   r;   r&   r&   r'   r>         & r   Zoperation_retry_strategyZclient_retry_strategyr   resource_pathmethodpath_paramsheader_paramsr   operation_nameapi_reference_linkrequired_argumentsr   iterkeys
ValueErrorformat	iteritems
isinstancestring_typeslenstripr!   r:   r"   get_preferred_retry_strategyr   r   DEFAULT_RETRY_STRATEGYNoneRetryStrategyadd_opc_client_retries_headeradd_circuit_breaker_callbackr    make_retrying_callcall_apir#   work_request_idr%   rR   rL   rM   rP   rQ   extra_kwargsrN   r<   r=   rO   r   r&   r5   r'   r-   s   n   %$

z#MigrationClient.cancel_work_requestc                      dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| | j| || j |j| jj|||
|||	d|||d
S | jj|||
|||	d|||d	S )a
  
        Moves a migration resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.


        :param str migration_id: (required)
            Unique migration identifier

        :param oci.cloud_migrations.models.ChangeMigrationCompartmentDetails change_migration_compartment_details: (required)
            The information to be updated.

        :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 that due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/change_migration_compartment.py.html>`__ to see an example of how to use change_migration_compartment API.
        migrationIdz3/migrations/{migrationId}/actions/changeCompartmentPOSTchange_migration_compartmentzWhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/Migration/ChangeMigrationCompartmentr   r   opc_retry_tokenr/   r0   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z@MigrationClient.change_migration_compartment.<locals>.<listcomp>z5change_migration_compartment got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   "  r?   z@MigrationClient.change_migration_compartment.<locals>.<dictcomp>Nr   r@   rA   rl   r/   r0   rC   rD   opc-retry-tokenrE   rF   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   /  rI   r   rJ   r   	rL   rM   rN   rO   bodyr   rP   rQ   rR   r   rT   rU   rV   rW   rX   rY   rZ   r[   r!   r:   r"   r\   r   r   r]   r^   add_opc_retry_token_if_neededr_   r`   r    ra   rb   )r#   migration_idZ$change_migration_compartment_detailsr%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   rj      v   /$


z,MigrationClient.change_migration_compartmentc                    rg   )a
  
        Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.


        :param str migration_plan_id: (required)
            Unique migration plan identifier

        :param oci.cloud_migrations.models.ChangeMigrationPlanCompartmentDetails change_migration_plan_compartment_details: (required)
            Details for the compartment move.

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/change_migration_plan_compartment.py.html>`__ to see an example of how to use change_migration_plan_compartment API.
        migrationPlanIdz;/migrationPlans/{migrationPlanId}/actions/changeCompartmentri   !change_migration_plan_compartmentz_https://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationPlan/ChangeMigrationPlanCompartmentr   r   r/   r0   rl   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   zEMigrationClient.change_migration_plan_compartment.<locals>.<listcomp>z:change_migration_plan_compartment got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   zEMigrationClient.change_migration_plan_compartment.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rl   rC   rD   rE   rF   rn   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   ro   rq   )r#   migration_plan_idZ)change_migration_plan_compartment_detailsr%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   rv   T  rt   z1MigrationClient.change_migration_plan_compartmentc                    rg   )a
  
        Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.


        :param str replication_schedule_id: (required)
            Unique replication schedule identifier in path

        :param oci.cloud_migrations.models.ChangeReplicationScheduleCompartmentDetails change_replication_schedule_compartment_details: (required)
            Details for the compartment move.

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/change_replication_schedule_compartment.py.html>`__ to see an example of how to use change_replication_schedule_compartment API.
        replicationScheduleIdzG/replicationSchedules/{replicationScheduleId}/actions/changeCompartmentri   'change_replication_schedule_compartmentzkhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/ReplicationSchedule/ChangeReplicationScheduleCompartmentrw   c                    r1   r&   r&   r2   r5   r&   r'   r6   	  r7   zKMigrationClient.change_replication_schedule_compartment.<locals>.<listcomp>z@change_replication_schedule_compartment got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   zKMigrationClient.change_replication_schedule_compartment.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rl   rx   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   ro   rq   )r#   replication_schedule_idZ/change_replication_schedule_compartment_detailsr%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   r{     rt   z7MigrationClient.change_replication_schedule_compartmentc                      g }d}d}d}d}g d  fddt |D }|r#td|d	d	|d
t|dtd}	dd t |	D }	| jj|d| j	d}
|
du rOt
j}
|
r}t|
t
jsi| j|	 | j|	 |
| j |
j| jj|||	|d|d|||d
S | jj|||	|d|d|||d	S )aM  
        Creates a migration.


        :param oci.cloud_migrations.models.CreateMigrationDetails create_migration_details: (required)
            Details for the new migration.

        :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 that due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/create_migration.py.html>`__ to see an example of how to use create_migration API.
        /migrationsri   create_migrationzLhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/Migration/CreateMigrationr   r   rl   r0   c                    r1   r&   r&   r2   r5   r&   r'   r6   v  r7   z4MigrationClient.create_migration.<locals>.<listcomp>z)create_migration got unknown kwargs: {!r}rA   rl   r0   rC   rD   rn   rF   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   z4MigrationClient.create_migration.<locals>.<dictcomp>r   rJ   N	Migrationr   	rL   rM   rO   rp   response_typer   rP   rQ   rR   r   rT   rU   rV   r!   r:   rW   r"   r\   r   r   r]   rX   r^   rr   r_   r`   r    ra   rb   )r#   Zcreate_migration_detailsr%   rR   rL   rM   rP   rQ   re   rO   r   r&   r5   r'   r   D  f   %

z MigrationClient.create_migrationc                    r}   )au  
        Creates a migration asset.


        :param oci.cloud_migrations.models.CreateMigrationAssetDetails create_migration_asset_details: (required)
            Details for the new migration asset.

        :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 that due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/create_migration_asset.py.html>`__ to see an example of how to use create_migration_asset API.
        /migrationAssetsri   create_migration_assetzVhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationAsset/CreateMigrationAssetr   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z:MigrationClient.create_migration_asset.<locals>.<listcomp>z/create_migration_asset got unknown kwargs: {!r}rA   rl   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   z:MigrationClient.create_migration_asset.<locals>.<dictcomp>r   rJ   NMigrationAssetr   r   r   )r#   Zcreate_migration_asset_detailsr%   rR   rL   rM   rP   rQ   re   rO   r   r&   r5   r'   r     r   z&MigrationClient.create_migration_assetc                    r}   )an  
        Creates a migration plan.


        :param oci.cloud_migrations.models.CreateMigrationPlanDetails create_migration_plan_details: (required)
            Details for the new migration plan.

        :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 that due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/create_migration_plan.py.html>`__ to see an example of how to use create_migration_plan API.
        /migrationPlansri   create_migration_planzThttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationPlan/CreateMigrationPlanr   c                    r1   r&   r&   r2   r5   r&   r'   r6   :  r7   z9MigrationClient.create_migration_plan.<locals>.<listcomp>z.create_migration_plan got unknown kwargs: {!r}rA   rl   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   E  rI   z9MigrationClient.create_migration_plan.<locals>.<dictcomp>r   rJ   NMigrationPlanr   r   r   )r#   Zcreate_migration_plan_detailsr%   rR   rL   rM   rP   rQ   re   rO   r   r&   r5   r'   r     r   z%MigrationClient.create_migration_planc                    r}   )a  
        Creates a replication schedule.


        :param oci.cloud_migrations.models.CreateReplicationScheduleDetails create_replication_schedule_details: (required)
            Details for the new replication schedule.

        :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 that due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/create_replication_schedule.py.html>`__ to see an example of how to use create_replication_schedule API.
        /replicationSchedulesri   create_replication_schedulez`https://docs.oracle.com/iaas/api/#/en/ocm/20220919/ReplicationSchedule/CreateReplicationScheduler   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z?MigrationClient.create_replication_schedule.<locals>.<listcomp>z4create_replication_schedule got unknown kwargs: {!r}rA   rl   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   z?MigrationClient.create_replication_schedule.<locals>.<dictcomp>r   rJ   NReplicationScheduler   r   r   )r#   Z#create_replication_schedule_detailsr%   rR   rL   rM   rP   rQ   re   rO   r   r&   r5   r'   r   j  r   z+MigrationClient.create_replication_schedulec                    r}   )a`  
        Creates a target asset.


        :param oci.cloud_migrations.models.CreateTargetAssetDetails create_target_asset_details: (required)
            Details for the new target asset.

        :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 that due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/create_target_asset.py.html>`__ to see an example of how to use create_target_asset API.
        /targetAssetsri   create_target_assetzPhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/TargetAsset/CreateTargetAssetr   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z7MigrationClient.create_target_asset.<locals>.<listcomp>z,create_target_asset got unknown kwargs: {!r}rA   rl   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   	  rI   z7MigrationClient.create_target_asset.<locals>.<dictcomp>r   rJ   NTargetAssetr   r   r   )r#   Zcreate_target_asset_detailsr%   rR   rL   rM   rP   rQ   re   rO   r   r&   r5   r'   r     r   z#MigrationClient.create_target_assetc                    r)   )a  
        Deletes a migration resource by identifier.


        :param str migration_id: (required)
            Unique migration identifier

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/delete_migration.py.html>`__ to see an example of how to use delete_migration API.
        rh   /migrations/{migrationId}r,   delete_migrationzLhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/Migration/DeleteMigrationr.   c                    r1   r&   r&   r2   r5   r&   r'   r6   `  r7   z4MigrationClient.delete_migration.<locals>.<listcomp>z)delete_migration got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   i  r?   z4MigrationClient.delete_migration.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rB   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   u  rI   r   rJ   r   rK   rS   r#   rs   r%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   r   .  rf   z MigrationClient.delete_migrationc                    r)   )a  
        Deletes a migration asset resource by an identifier.


        :param str migration_asset_id: (required)
            Unique migration asset identifier

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/delete_migration_asset.py.html>`__ to see an example of how to use delete_migration_asset API.
        migrationAssetId#/migrationAssets/{migrationAssetId}r,   delete_migration_assetzVhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationAsset/DeleteMigrationAssetr.   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z:MigrationClient.delete_migration_asset.<locals>.<listcomp>z/delete_migration_asset got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z:MigrationClient.delete_migration_asset.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rB   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   rK   rS   r#   migration_asset_idr%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   r     rf   z&MigrationClient.delete_migration_assetc                    r)   )a  
        Deletes a migration plan resource by an identifier.


        :param str migration_plan_id: (required)
            Unique migration plan identifier

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/delete_migration_plan.py.html>`__ to see an example of how to use delete_migration_plan API.
        ru   !/migrationPlans/{migrationPlanId}r,   delete_migration_planzThttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationPlan/DeleteMigrationPlanr.   c                    r1   r&   r&   r2   r5   r&   r'   r6   2  r7   z9MigrationClient.delete_migration_plan.<locals>.<listcomp>z.delete_migration_plan got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   ;  r?   z9MigrationClient.delete_migration_plan.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rB   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   G  rI   r   rJ   r   rK   rS   r#   ry   r%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   r      rf   z%MigrationClient.delete_migration_planc                    r)   )a  
        Deletes a replication schedule resource by identifier.


        :param str replication_schedule_id: (required)
            Unique replication schedule identifier in path

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/delete_replication_schedule.py.html>`__ to see an example of how to use delete_replication_schedule API.
        rz   -/replicationSchedules/{replicationScheduleId}r,   delete_replication_schedulez`https://docs.oracle.com/iaas/api/#/en/ocm/20220919/ReplicationSchedule/DeleteReplicationScheduler.   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z?MigrationClient.delete_replication_schedule.<locals>.<listcomp>z4delete_replication_schedule got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z?MigrationClient.delete_replication_schedule.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rB   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   rK   rS   r#   r|   r%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   r   i  rf   z+MigrationClient.delete_replication_schedulec                    r)   )a  
        Deletes a target asset resource by identifier.


        :param str target_asset_id: (required)
            Unique target asset identifier

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/delete_target_asset.py.html>`__ to see an example of how to use delete_target_asset API.
        targetAssetId/targetAssets/{targetAssetId}r,   delete_target_assetzPhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/TargetAsset/DeleteTargetAssetr.   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z7MigrationClient.delete_target_asset.<locals>.<listcomp>z,delete_target_asset got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z7MigrationClient.delete_target_asset.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rB   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   rK   rS   r#   target_asset_idr%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   r     rf   z#MigrationClient.delete_target_assetc                      dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| | j| || j |j| jj|||	||	d|||d	S | jj|||	||	d|||dS )a	  
        Executes the migration plan with the migration plan ID.


        :param str migration_plan_id: (required)
            Unique migration plan identifier

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/execute_migration_plan.py.html>`__ to see an example of how to use execute_migration_plan API.
        ru   z1/migrationPlans/{migrationPlanId}/actions/executeri   execute_migration_planzUhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationPlan/ExecuteMigrationPlanrw   c                    r1   r&   r&   r2   r5   r&   r'   r6   u  r7   z:MigrationClient.execute_migration_plan.<locals>.<listcomp>z/execute_migration_plan got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   ~  r?   z:MigrationClient.execute_migration_plan.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rl   rx   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   rK   rq   r   r&   r5   r'   r   ;  r   ,$


z&MigrationClient.execute_migration_planc                    sl  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
d}dd t |D }| jj|	d| jd}|du r|tj}|rt|tjs| j| || j |j| jj|||	|d|	d|||d
S | jj|||	|d|	d|||d	S )a  
        Exports the migration plan to a csv file.


        :param str migration_plan_id: (required)
            Unique migration plan identifier

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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/latest/cloudmigrations/export_migration_plan.py.html>`__ to see an example of how to use export_migration_plan API.
        ru   z0/migrationPlans/{migrationPlanId}/actions/exportGETexport_migration_planzThttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationPlan/ExportMigrationPlanr   r   r0   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z9MigrationClient.export_migration_plan.<locals>.<listcomp>z.export_migration_plan got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z9MigrationClient.export_migration_plan.<locals>.<dictcomp>Nr   r@   ztext/csvrA   r0   rC   rD   rF   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   streamr   	rL   rM   rN   rO   r   r   rP   rQ   rR   rS   r   r&   r5   r'   r     p   $
z%MigrationClient.export_migration_planc                    l  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
d}dd t |D }| jj|	d| jd}|du r|tj}|rt|tjs| j| || j |j| jj|||	|d|	d|||d
S | jj|||	|d|	d|||d	S )a"  
        Gets a migration by identifier.


        :param str migration_id: (required)
            Unique migration identifier

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.cloud_migrations.models.Migration`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/get_migration.py.html>`__ to see an example of how to use get_migration API.
        rh   r   r   get_migrationzIhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/Migration/GetMigrationr   c                    r1   r&   r&   r2   r5   r&   r'   r6   :  r7   z1MigrationClient.get_migration.<locals>.<listcomp>z&get_migration got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   C  r?   z1MigrationClient.get_migration.<locals>.<dictcomp>Nr   r@   rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   N  rI   r   rJ   r   r   r   rS   r   r&   r5   r'   r     r   zMigrationClient.get_migrationc                    r   )aE  
        Gets a migration asset by identifier.


        :param str migration_asset_id: (required)
            Unique migration asset identifier

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.cloud_migrations.models.MigrationAsset`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/get_migration_asset.py.html>`__ to see an example of how to use get_migration_asset API.
        r   r   r   get_migration_assetzShttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationAsset/GetMigrationAssetr   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z7MigrationClient.get_migration_asset.<locals>.<listcomp>z,get_migration_asset got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z7MigrationClient.get_migration_asset.<locals>.<dictcomp>Nr   r@   rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   r   r   rS   r   r&   r5   r'   r   r  r   z#MigrationClient.get_migration_assetc                    r   )a?  
        Gets a migration plan by identifier.


        :param str migration_plan_id: (required)
            Unique migration plan identifier

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.cloud_migrations.models.MigrationPlan`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/get_migration_plan.py.html>`__ to see an example of how to use get_migration_plan API.
        ru   r   r   get_migration_planzQhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationPlan/GetMigrationPlanr   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z6MigrationClient.get_migration_plan.<locals>.<listcomp>z+get_migration_plan got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z6MigrationClient.get_migration_plan.<locals>.<dictcomp>Nr   r@   rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   r   r   rS   r   r&   r5   r'   r     r   z"MigrationClient.get_migration_planc                    r   )aw  
        Gets the progress percentage of a migration asset's replication process.


        :param str migration_asset_id: (required)
            Unique migration asset identifier

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.cloud_migrations.models.ReplicationProgress`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/get_replication_progress.py.html>`__ to see an example of how to use get_replication_progress API.
        r   z?/migrationAssets/{migrationAssetId}/actions/replicationProgressr   get_replication_progresszXhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationAsset/GetReplicationProgressr   c                    r1   r&   r&   r2   r5   r&   r'   r6   `  r7   z<MigrationClient.get_replication_progress.<locals>.<listcomp>z1get_replication_progress got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   i  r?   z<MigrationClient.get_replication_progress.<locals>.<dictcomp>Nr   r@   rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   t  rI   r   rJ   ZReplicationProgressr   r   rS   r   r&   r5   r'   r   6  r   z(MigrationClient.get_replication_progressc                    r   )ak  
        Gets a replication schedule by identifier.


        :param str replication_schedule_id: (required)
            Unique replication schedule identifier in path

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/get_replication_schedule.py.html>`__ to see an example of how to use get_replication_schedule API.
        rz   r   r   get_replication_schedulez]https://docs.oracle.com/iaas/api/#/en/ocm/20220919/ReplicationSchedule/GetReplicationScheduler   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z<MigrationClient.get_replication_schedule.<locals>.<listcomp>z1get_replication_schedule got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z<MigrationClient.get_replication_schedule.<locals>.<dictcomp>Nr   r@   rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   r   r   rS   r   r&   r5   r'   r     r   z(MigrationClient.get_replication_schedulec                    r   )a3  
        Gets a target asset by identifier.


        :param str target_asset_id: (required)
            Unique target asset identifier

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.cloud_migrations.models.TargetAsset`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/get_target_asset.py.html>`__ to see an example of how to use get_target_asset API.
        r   r   r   get_target_assetzMhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/TargetAsset/GetTargetAssetr   c                    r1   r&   r&   r2   r5   r&   r'   r6   $	  r7   z4MigrationClient.get_target_asset.<locals>.<listcomp>z)get_target_asset got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   -	  r?   z4MigrationClient.get_target_asset.<locals>.<dictcomp>Nr   r@   rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   8	  rI   r   rJ   r   r   r   rS   r   r&   r5   r'   r     r   z MigrationClient.get_target_assetc                    r   )aL  
        Gets the status of the work request with the given ID.


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

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.cloud_migrations.models.WorkRequest`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
        r*   r+   r   get_work_requestzMhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/WorkRequest/GetWorkRequestr   c                    r1   r&   r&   r2   r5   r&   r'   r6   	  r7   z4MigrationClient.get_work_request.<locals>.<listcomp>z)get_work_request got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   	  r?   z4MigrationClient.get_work_request.<locals>.<dictcomp>Nr   r@   rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   	  rI   r   rJ   ZWorkRequestr   r   rS   rc   r&   r5   r'   r   \	  r   z MigrationClient.get_work_requestc                    sV  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7d|	dt
|	dt
|	dt
d}dd t |D }z| W n ty   |	dt
}Y nw |t
ur|durt|t jt jfst|dstdt|drt|dr|jdkrtj|dkrd|d< nd|vrt|st||	d}|d |d< |d }| jj|	d | jd!}|du rtj}|rt|tjs| j| | j| || j |j| jj |||
|||	d"|||d#
S | jj |||
|||	d"|||d#	S )$a  
        Imports a migration plan from a csv file.


        :param str migration_plan_id: (required)
            Unique migration plan identifier

        :param stream import_migration_plan_details: (required)
            The csv file to be uploaded.

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

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

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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
        :param int buffer_limit: (optional)
            A buffer limit for the stream to be buffered. buffer_limit is used to set the buffer size capacity. Streams will be read until the size of the buffer reaches the buffer_limit.
            If the stream size is greater than the buffer_limit, a BufferError exception will be thrown.

            The buffer_limit parameter is used when the stream object does not have a `seek`, `tell`, or `fileno` property for the Python Request library to calculate out the content length.
            If buffer_limit is not passed, then the buffer_limit will be defaulted to 100MB.
            Large streams can cause the process to freeze, consider passing in content-length for large streams instead.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/import_migration_plan.py.html>`__ to see an example of how to use import_migration_plan API.
        ru   z0/migrationPlans/{migrationPlanId}/actions/importri   import_migration_planzThttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationPlan/ImportMigrationPlan)r   r   buffer_limitr/   r0   rl   c                    r1   r&   r&   r2   r5   r&   r'   r6   
  r7   z9MigrationClient.import_migration_plan.<locals>.<listcomp>z.import_migration_plan got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   
  r?   z9MigrationClient.import_migration_plan.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rl   )rC   rE   rF   rn   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   
  rI   import_migration_plan_detailsreadz=The body must be a string, bytes, or provide a read() method.filenonamez<stdin>0zContent-Lengthr   Zcontent_lengthZbyte_contentr   rJ   r   ro   )!r   rT   rU   rV   rW   rX   rY   rZ   r[   r!   r:   	NameErrorZbinary_typehasattr	TypeErrorr   r   utilsZ	super_lenr   r   r"   r\   r   r   r]   r^   rr   r_   r`   r    ra   rb   )r#   ry   r   r%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   Zcalculated_objr   r&   r5   r'   r   	  s   6$


z%MigrationClient.import_migration_planc                    s0  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7d|v rjddg}|d |vrjtd|d|v rddg}|d |vrtd||	dt
|	dt
|	dt
|	dt
|	dt
|	dt
|	dt
|	dt
d}dd t |D }dd|	d t
d!}d"d t |D }| jj|	d#| jd$}|du rtj}|rt|tjs| j| || j |j| jj|||	||d%|	d&|||d'S | jj|||	||d%|	d&|||d'
S )(a
  
        List of shapes by parameters.


        :param str migration_plan_id: (required)
            Unique migration plan identifier

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

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

        :param str availability_domain: (optional)
            The availability domain in which to list resources.

        :param str reserved_capacity_id: (optional)
            The reserved capacity ID for which to list resources.

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

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

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

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

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. Only one sort order can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.

            Allowed values are: "timeCreated", "displayName"

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/list_available_shapes.py.html>`__ to see an example of how to use list_available_shapes API.
        ru   z1/migrationPlans/{migrationPlanId}/availableShapesr   list_available_shapesz`https://docs.oracle.com/iaas/api/#/en/ocm/20220919/AvailableShapesCollection/ListAvailableShapes)r   r   compartment_iddvh_host_idavailability_domainreserved_capacity_idr0   limitpage
sort_ordersort_byc                    r1   r&   r&   r2   r5   r&   r'   r6   
  r7   z9MigrationClient.list_available_shapes.<locals>.<listcomp>z.list_available_shapes got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   
  r?   z9MigrationClient.list_available_shapes.<locals>.<dictcomp>Nr   r@   r   ASCDESC2Invalid value for `sort_order`, must be one of {0}r   timeCreateddisplayName/Invalid value for `sort_by`, must be one of {0}r   r   r   r   r   r   )compartmentIdZ	dvhHostIdZavailabilityDomainZreservedCapacityIdr   r   	sortOrdersortByc                 S   rG   rH   r9   r;   r&   r&   r'   r>   
  rI   rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   
  rI   r   rJ   ZAvailableShapesCollectionr   
rL   rM   rN   query_paramsrO   r   r   rP   rQ   rR   rS   )r#   ry   r%   rR   rL   rM   rP   rQ   re   rN   r<   r=   sort_order_allowed_valuessort_by_allowed_valuesr   rO   r   r&   r5   r'   r   R
  s   :$









z%MigrationClient.list_available_shapesc                      g }d}d}d}d}g d  fddt |D }|r#td|d	|v r8g d
}|d	 |vr8td|d|v rMddg}	|d |	vrMtd|	d|v rbddg}
|d |
vrbtd|
|dt|dt|dt|dt|dt|d	t|dt|dtd}dd t |D }dd|dtd}dd t |D }| jj|d | j	d!}|d"u rt
j}|rt|t
js| j| || j |j| jj||||d#|d$|||d%
S | jj||||d#|d$|||d%	S )&a
  
        Returns a list of migration assets.


        :param str migration_id: (optional)
            Unique migration identifier

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

        :param str migration_asset_id: (optional)
            Unique migration asset identifier

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

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

        :param str lifecycle_state: (optional)
            The current state of the migration asset.

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

        :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 can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.

            Allowed values are: "timeCreated", "displayName"

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/list_migration_assets.py.html>`__ to see an example of how to use list_migration_assets API.
        r   r   list_migration_assetsz_https://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationAssetCollection/ListMigrationAssets)r   r   rs   display_namer   r   r   lifecycle_stater   r   r0   c                    r1   r&   r&   r2   r5   r&   r'   r6   A  r7   z9MigrationClient.list_migration_assets.<locals>.<listcomp>z.list_migration_assets got unknown kwargs: {!r}r   ZCREATINGZUPDATINGNEEDS_ATTENTIONZACTIVEZDELETINGZDELETEDFAILED7Invalid value for `lifecycle_state`, must be one of {0}r   r   r   r   r   r   r   r   rs   r   r   r   r   )rh   r   r   r   r   lifecycleStater   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   e  rI   z9MigrationClient.list_migration_assets.<locals>.<dictcomp>rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   l  rI   r   rJ   NZMigrationAssetCollectionr   	rL   rM   r   rO   r   r   rP   rQ   rR   r   rT   rU   rV   r!   r:   rW   r"   r\   r   r   r]   rX   r^   r_   r`   r    ra   rb   r#   r%   rR   rL   rM   rP   rQ   re   Zlifecycle_state_allowed_valuesr   r   r   rO   r   r&   r5   r'   r   
     9









z%MigrationClient.list_migration_assetsc                    s  g }d}d}d}d}g d  fddt |D }|r#td|d	|v r8g d
}|d	 |vr8td|d|v rMddg}	|d |	vrMtd|	d|v rbddg}
|d |
vrbtd|
|dt|dt|dt|dt|dt|dt|d	t|dt|dtd	}dd t |D }dd|dtd}d d t |D }| jj|d!| j	d"}|d#u rt
j}|rt|t
js| j| || j |j| jj||||d$|d%|||d&
S | jj||||d$|d%|||d&	S )'a9  
        Returns a list of migration plans.


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

        :param str migration_id: (optional)
            Unique migration identifier

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

        :param str migration_plan_id: (optional)
            Unique migration plan identifier

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

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

        :param str lifecycle_state: (optional)
            The current state of the migration plan.

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

        :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 can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.

            Allowed values are: "timeCreated", "displayName"

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/list_migration_plans.py.html>`__ to see an example of how to use list_migration_plans API.
        r   r   list_migration_plansz]https://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationPlanCollection/ListMigrationPlans)r   r   r   rs   r   ry   r   r   r   r   r   r0   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z8MigrationClient.list_migration_plans.<locals>.<listcomp>z-list_migration_plans got unknown kwargs: {!r}r   r   r   r   r   r   r   r   r   r   r   r   rs   r   ry   r   r   )	r   rh   r   ru   r   r   r   r   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   z8MigrationClient.list_migration_plans.<locals>.<dictcomp>rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   NZMigrationPlanCollectionr   r   r   r   r&   r5   r'   r     s   <









z$MigrationClient.list_migration_plansc                      g }d}d}d}d}g d  fddt |D }|r#td|d	|v r8g d
}|d	 |vr8td|d|v rMddg}	|d |	vrMtd|	d|v rbddg}
|d |
vrbtd|
|dt|d	t|dt|dt|dt|dt|dt|dtd}dd t |D }dd|dtd}dd t |D }| jj|d | j	d!}|d"u rt
j}|rt|t
js| j| || j |j| jj||||d#|d$|||d%
S | jj||||d#|d$|||d%	S )&a  
        Returns a list of migrations.


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

        :param str lifecycle_state: (optional)
            A filter to return only resources where the resource's lifecycle state matches the given lifecycle state.

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

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

        :param str migration_id: (optional)
            Unique migration identifier

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

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

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

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. Only one sort order can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.

            Allowed values are: "timeCreated", "displayName"

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/list_migrations.py.html>`__ to see an example of how to use list_migrations API.
        r~   r   list_migrationszUhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationCollection/ListMigrations)r   r   r   r   r   rs   r   r   r   r   r0   c                    r1   r&   r&   r2   r5   r&   r'   r6   ~  r7   z3MigrationClient.list_migrations.<locals>.<listcomp>z(list_migrations got unknown kwargs: {!r}r   r   r   r   r   r   r   r   r   r   r   r   r   rs   r   r   )r   r   r   rh   r   r   r   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   z3MigrationClient.list_migrations.<locals>.<dictcomp>rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   NZMigrationCollectionr   r   r   r   r&   r5   r'   r   1  r   zMigrationClient.list_migrationsc                    r   )&a  
        Returns a list of replication schedules.


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

        :param str lifecycle_state: (optional)
            The current state of the replication schedule.

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

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

        :param str replication_schedule_id: (optional)
            Unique replication schedule identifier in query

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

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

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

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. Only one sort order can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.

            Allowed values are: "timeCreated", "displayName"

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/list_replication_schedules.py.html>`__ to see an example of how to use list_replication_schedules API.
        r   r   list_replication_scheduleszihttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/ReplicationScheduleCollection/ListReplicationSchedules)r   r   r   r   r   r|   r   r   r   r   r0   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z>MigrationClient.list_replication_schedules.<locals>.<listcomp>z3list_replication_schedules got unknown kwargs: {!r}r   r   r   r   r   r   r   r   r   r   r   r   r   r|   r   r   )r   r   r   rz   r   r   r   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   >  rI   z>MigrationClient.list_replication_schedules.<locals>.<dictcomp>rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   E  rI   r   rJ   NZReplicationScheduleCollectionr   r   r   r   r&   r5   r'   r     r   z*MigrationClient.list_replication_schedulesc                    r   )&a
  
        Returns a list of target assets.


        :param str migration_plan_id: (optional)
            Unique migration plan identifier

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

        :param str target_asset_id: (optional)
            Unique target asset identifier

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

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

        :param str lifecycle_state: (optional)
            The current state of the target asset.

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

        :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 can be provided. The default order for 'timeCreated' is descending. The default order for 'displayName' is ascending.

            Allowed values are: "timeCreated", "displayName"

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/list_target_assets.py.html>`__ to see an example of how to use list_target_assets API.
        r   r   list_target_assetszYhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/TargetAssetCollection/ListTargetAssets)r   r   ry   r   r   r   r   r   r   r   r0   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z6MigrationClient.list_target_assets.<locals>.<listcomp>z+list_target_assets got unknown kwargs: {!r}r   r   r   r   r   r   r   r   r   r   r   ry   r   r   r   r   )ru   r   r   r   r   r   r   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   z6MigrationClient.list_target_assets.<locals>.<dictcomp>rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   NZTargetAssetCollectionr   r   r   r   r&   r5   r'   r   i  r   z"MigrationClient.list_target_assetsc                      dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7d|v ridg}|d |vritd|d|v r~ddg}|d |vr~td||	dt
|	dt
|	dt
|	dt
d}dd t |D }dd|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||	||d |	d!|||d"S | jj|||	||d |	d!|||d"
S )#a  
        Returns a paginated list of errors for a given work request.


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

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

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

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

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

            Allowed values are: "timeAccepted"

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

            Allowed values are: "ASC", "DESC"

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.cloud_migrations.models.WorkRequestErrorCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
        r*   z$/workRequests/{workRequestId}/errorsr   list_work_request_errorszYhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/WorkRequestError/ListWorkRequestErrorsr   r   r0   r   r   r   r   c                    r1   r&   r&   r2   r5   r&   r'   r6   C  r7   z<MigrationClient.list_work_request_errors.<locals>.<listcomp>z1list_work_request_errors got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   L  r?   z<MigrationClient.list_work_request_errors.<locals>.<dictcomp>Nr   r@   r   timeAcceptedr   r   r   r   r   r   r   r   r   r   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   f  rI   rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   m  rI   r   rJ   ZWorkRequestErrorCollectionr   r   rS   r#   rd   r%   rR   rL   rM   rP   rQ   re   rN   r<   r=   r   r   r   rO   r   r&   r5   r'   r        .	$




z(MigrationClient.list_work_request_errorsc                    r   )#a  
        Returns a paginated list of logs for a given work request.


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

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

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

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

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

            Allowed values are: "timeAccepted"

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

            Allowed values are: "ASC", "DESC"

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.cloud_migrations.models.WorkRequestLogEntryCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
        r*   z"/workRequests/{workRequestId}/logsr   list_work_request_logszZhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/WorkRequestLogEntry/ListWorkRequestLogsr   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z:MigrationClient.list_work_request_logs.<locals>.<listcomp>z/list_work_request_logs got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z:MigrationClient.list_work_request_logs.<locals>.<dictcomp>Nr   r@   r   r   r   r   r   r   r   r   r   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   ZWorkRequestLogEntryCollectionr   r   rS   r   r&   r5   r'   r     r   z&MigrationClient.list_work_request_logsc                    s"  g }d}d}d}d}g d  fddt |D }|r#td|d	|v r8g d
}|d	 |vr8td|d|v rMg d}	|d |	vrMtd|	d|v rbddg}
|d |
vrbtd|
d|v rvdg}|d |vrvtd||dt|dt|d	t|dt|dt|dt|dt|dt|dtd	}dd t |D }dd|dtd }d!d t |D }| jj|d"| j	d#}|d$u rt
j}|rt|t
js| j| || j |j| jj||||d%|d&|||d'
S | jj||||d%|d&|||d'	S )(a  
        List of work requests in a compartment.


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

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

        :param str status: (optional)
            A filter to return only resources where the resource's lifecycle state matches the given operation status.

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

        :param str operation_type: (optional)
            A filter to return only resources where the resource's lifecycle state matches the given operation type.

            Allowed values are: "CREATE_MIGRATION", "UPDATE_MIGRATION", "REFRESH_MIGRATION", "DELETE_MIGRATION", "MOVE_MIGRATION", "START_ASSET_REPLICATION", "START_MIGRATION_REPLICATION", "CREATE_REPLICATION_SCHEDULE", "UPDATE_REPLICATION_SCHEDULE", "DELETE_REPLICATION_SCHEDULE", "MOVE_REPLICATION_SCHEDULE", "CREATE_MIGRATION_PLAN", "UPDATE_MIGRATION_PLAN", "DELETE_MIGRATION_PLAN", "MOVE_MIGRATION_PLAN", "REFRESH_MIGRATION_PLAN", "EXECUTE_MIGRATION_PLAN", "REFRESH_MIGRATION_ASSET", "CREATE_MIGRATION_ASSET", "DELETE_MIGRATION_ASSET", "CREATE_TARGET_ASSET", "UPDATE_TARGET_ASSET", "DELETE_TARGET_ASSET"

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

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

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

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

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

            Allowed values are: "ASC", "DESC"

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

            Allowed values are: "timeAccepted"

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.cloud_migrations.models.WorkRequestSummaryCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
        z/workRequestsr   list_work_requestszOhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/WorkRequest/ListWorkRequests)r   r   r   rd   statusoperation_typeresource_idr0   r   r   r   r   c                    r1   r&   r&   r2   r5   r&   r'   r6   t  r7   z6MigrationClient.list_work_requests.<locals>.<listcomp>z+list_work_requests got unknown kwargs: {!r}r   )ZACCEPTEDZIN_PROGRESSZWAITINGr   Z	SUCCEEDEDZ	CANCELINGZCANCELEDr   z.Invalid value for `status`, must be one of {0}r   )ZCREATE_MIGRATIONZUPDATE_MIGRATIONZREFRESH_MIGRATIONZDELETE_MIGRATIONZMOVE_MIGRATIONZSTART_ASSET_REPLICATIONZSTART_MIGRATION_REPLICATIONZCREATE_REPLICATION_SCHEDULEZUPDATE_REPLICATION_SCHEDULEZDELETE_REPLICATION_SCHEDULEZMOVE_REPLICATION_SCHEDULEZCREATE_MIGRATION_PLANZUPDATE_MIGRATION_PLANZDELETE_MIGRATION_PLANZMOVE_MIGRATION_PLANZREFRESH_MIGRATION_PLANZEXECUTE_MIGRATION_PLANZREFRESH_MIGRATION_ASSETZCREATE_MIGRATION_ASSETZDELETE_MIGRATION_ASSETZCREATE_TARGET_ASSETZUPDATE_TARGET_ASSETZDELETE_TARGET_ASSETz6Invalid value for `operation_type`, must be one of {0}r   r   r   r   r   r   r   r   rd   r   r   r   )	r   r*   r   ZoperationTypeZ
resourceIdr   r   r   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   z6MigrationClient.list_work_requests.<locals>.<dictcomp>rA   r0   r   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   NZWorkRequestSummaryCollectionr   r   r   )r#   r%   rR   rL   rM   rP   rQ   re   Zstatus_allowed_valuesZoperation_type_allowed_valuesr   r   r   rO   r   r&   r5   r'   r   !  s   >









z"MigrationClient.list_work_requestsc                    r   )a	  
        Refreshes migration based on the migration ID.


        :param str migration_id: (required)
            Unique migration identifier

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/refresh_migration.py.html>`__ to see an example of how to use refresh_migration API.
        rh   z)/migrations/{migrationId}/actions/refreshri   refresh_migrationzMhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/Migration/RefreshMigrationrw   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z5MigrationClient.refresh_migration.<locals>.<listcomp>z*refresh_migration got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z5MigrationClient.refresh_migration.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rl   rx   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   rK   rq   r   r&   r5   r'   r     r   z!MigrationClient.refresh_migrationc                    r   )a	  
        Refreshes the migration asset with the migration asset ID.


        :param str migration_asset_id: (required)
            Unique migration asset identifier

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/refresh_migration_asset.py.html>`__ to see an example of how to use refresh_migration_asset API.
        r   z3/migrationAssets/{migrationAssetId}/actions/refreshri   refresh_migration_assetzWhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationAsset/RefreshMigrationAssetrw   c                    r1   r&   r&   r2   r5   r&   r'   r6   x  r7   z;MigrationClient.refresh_migration_asset.<locals>.<listcomp>z0refresh_migration_asset got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z;MigrationClient.refresh_migration_asset.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rl   rx   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   rK   rq   r   r&   r5   r'   r   >  r   z'MigrationClient.refresh_migration_assetc                    r   )a	  
        Refreshes the migration plan with the migration plan ID.


        :param str migration_plan_id: (required)
            Unique migration plan identifier

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/refresh_migration_plan.py.html>`__ to see an example of how to use refresh_migration_plan API.
        ru   z1/migrationPlans/{migrationPlanId}/actions/refreshri   refresh_migration_planzUhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationPlan/RefreshMigrationPlanrw   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z:MigrationClient.refresh_migration_plan.<locals>.<listcomp>z/refresh_migration_plan got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z:MigrationClient.refresh_migration_plan.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rl   rx   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   rK   rq   r   r&   r5   r'   r     r   z&MigrationClient.refresh_migration_planc                    r   )a	  
        Starts replication for the asset with the migration asset ID.


        :param str migration_asset_id: (required)
            Unique migration asset identifier

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/start_asset_replication.py.html>`__ to see an example of how to use start_asset_replication API.
        r   zA/migrationAssets/{migrationAssetId}/actions/startAssetReplicationri   start_asset_replicationzWhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationAsset/StartAssetReplicationrw   c                    r1   r&   r&   r2   r5   r&   r'   r6   ^  r7   z;MigrationClient.start_asset_replication.<locals>.<listcomp>z0start_asset_replication got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   g  r?   z;MigrationClient.start_asset_replication.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rl   rx   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   t  rI   r   rJ   r   rK   rq   r   r&   r5   r'   r   $  r   z'MigrationClient.start_asset_replicationc                    r   )a	  
        Starts replication for a migration or for some asset.


        :param str migration_id: (required)
            Unique migration identifier

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/start_migration_replication.py.html>`__ to see an example of how to use start_migration_replication API.
        rh   z;/migrations/{migrationId}/actions/startMigrationReplicationri   start_migration_replicationzVhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/Migration/StartMigrationReplicationrw   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z?MigrationClient.start_migration_replication.<locals>.<listcomp>z4start_migration_replication got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z?MigrationClient.start_migration_replication.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rl   rx   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   rK   rq   r   r&   r5   r'   r     r   z+MigrationClient.start_migration_replicationc                    z  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||
||d|	d|||dS | jj|||
||d|	d|||d
S )aC  
        Updates the migration.


        :param str migration_id: (required)
            Unique migration identifier

        :param oci.cloud_migrations.models.UpdateMigrationDetails update_migration_details: (required)
            The information to be updated.

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

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.cloud_migrations.models.Migration`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/update_migration.py.html>`__ to see an example of how to use update_migration API.
        rh   r   PUTupdate_migrationzLhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/Migration/UpdateMigrationr.   c                    r1   r&   r&   r2   r5   r&   r'   r6   ?  r7   z4MigrationClient.update_migration.<locals>.<listcomp>z)update_migration got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   H  r?   z4MigrationClient.update_migration.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rB   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   T  rI   r   rJ   r   r   
rL   rM   rN   rO   rp   r   r   rP   rQ   rR   rS   )r#   rs   Zupdate_migration_detailsr%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   r   
  v   ($

z MigrationClient.update_migrationc                    r   )aq  
        Updates the migration asset.


        :param str migration_asset_id: (required)
            Unique migration asset identifier

        :param oci.cloud_migrations.models.UpdateMigrationAssetDetails update_migration_asset_details: (required)
            The information to be updated.

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

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.cloud_migrations.models.MigrationAsset`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/update_migration_asset.py.html>`__ to see an example of how to use update_migration_asset API.
        r   r   r   update_migration_assetzVhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationAsset/UpdateMigrationAssetr.   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z:MigrationClient.update_migration_asset.<locals>.<listcomp>z/update_migration_asset got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z:MigrationClient.update_migration_asset.<locals>.<dictcomp>Nr   r@   rA   r/   r0   rB   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   r   r   rS   )r#   r   Zupdate_migration_asset_detailsr%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   r  z  r   z&MigrationClient.update_migration_assetc                    rg   )a,
  
        Updates the migration plan.


        :param str migration_plan_id: (required)
            Unique migration plan identifier

        :param oci.cloud_migrations.models.UpdateMigrationPlanDetails update_migration_plan_details: (required)
            The information to be updated.

        :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 that due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/update_migration_plan.py.html>`__ to see an example of how to use update_migration_plan API.
        ru   r   r   update_migration_planzThttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/MigrationPlan/UpdateMigrationPlanrk   c                    r1   r&   r&   r2   r5   r&   r'   r6   '  r7   z9MigrationClient.update_migration_plan.<locals>.<listcomp>z.update_migration_plan got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>   0  r?   z9MigrationClient.update_migration_plan.<locals>.<dictcomp>Nr   r@   rA   rl   r/   r0   rm   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   =  rI   r   rJ   r   ro   rq   )r#   ry   Zupdate_migration_plan_detailsr%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   r    rt   z%MigrationClient.update_migration_planc                    rg   )a^
  
        Updates the replication schedule.


        :param str replication_schedule_id: (required)
            Unique replication schedule identifier in path

        :param oci.cloud_migrations.models.UpdateReplicationScheduleDetails update_replication_schedule_details: (required)
            The information to be updated.

        :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 that due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/update_replication_schedule.py.html>`__ to see an example of how to use update_replication_schedule API.
        rz   r   r   update_replication_schedulez`https://docs.oracle.com/iaas/api/#/en/ocm/20220919/ReplicationSchedule/UpdateReplicationSchedulerk   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z?MigrationClient.update_replication_schedule.<locals>.<listcomp>z4update_replication_schedule got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>     r?   z?MigrationClient.update_replication_schedule.<locals>.<dictcomp>Nr   r@   rA   rl   r/   r0   rm   c                 S   rG   rH   r9   r;   r&   r&   r'   r>     rI   r   rJ   r   ro   rq   )r#   r|   Z#update_replication_schedule_detailsr%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   r  b  rt   z+MigrationClient.update_replication_schedulec                    rg   )a
  
        Updates the target asset.


        :param str target_asset_id: (required)
            Unique target asset identifier

        :param oci.cloud_migrations.models.UpdateTargetAssetDetails update_target_asset_details: (required)
            The information to be updated.

        :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 that due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudmigrations/update_target_asset.py.html>`__ to see an example of how to use update_target_asset API.
        r   r   r   update_target_assetzPhttps://docs.oracle.com/iaas/api/#/en/ocm/20220919/TargetAsset/UpdateTargetAssetrk   c                    r1   r&   r&   r2   r5   r&   r'   r6     r7   z7MigrationClient.update_target_asset.<locals>.<listcomp>z,update_target_asset got unknown kwargs: {!r}c                 S   r8   r&   r9   r;   r&   r&   r'   r>      r?   z7MigrationClient.update_target_asset.<locals>.<dictcomp>Nr   r@   rA   rl   r/   r0   rm   c                 S   rG   rH   r9   r;   r&   r&   r'   r>   -  rI   r   rJ   r   ro   rq   )r#   r   Zupdate_target_asset_detailsr%   rR   rL   rM   rP   rQ   re   rN   r<   r=   rO   r   r&   r5   r'   r    rt   z#MigrationClient.update_target_assetN)0__name__
__module____qualname____doc__r(   r-   rj   rv   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   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r&   r&   r&   r'   r      sp    Xixxxbbbbbiiiiisbbbbbbbb  #  "      +sssssppxxr   N)
__future__r   Zoci._vendorr   r   ocir   r   Zoci.base_clientr   Z
oci.configr   r	   Z
oci.signerr
   Zoci.utilr   r   r   r   r   Zmodelsr   r:   objectr   r&   r&   r&   r'   <module>   s   