o
    ɶdeX                    @   s   d dl mZ d dlmZ d dlmZ d dlmZmZ d dlm	Z	 d dl
mZmZ d dlmZ d dlmZmZmZ d	d
lmZ edZG dd deZdS )    )absolute_import)requests)six)retrycircuit_breaker)
BaseClient)get_config_value_or_defaultvalidate_config)Signer)Sentinel#get_signer_from_authentication_typeAUTHENTICATION_TYPE_FIELD_NAME   )cloud_bridge_type_mappingZMissingc                   @   s   e Zd ZdZdd Zdd Zdd Zdd	 Zd
d Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd Zdd Zdd Zdd Zd S )!DiscoveryClientz.
    API for Oracle Cloud Bridge service.
    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	/20220509z4https://cloudbridge.{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_chars	discovery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%   Eusr/lib/python3.10/site-packages/oci/cloud_bridge/discovery_client.py__init__   s>   3





zDiscoveryClient.__init__c                      dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
|	dt
d}dd t |D }| jj|	d| jd}|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 resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.


        :param str asset_source_id: (required)
            The `OCID`__ of the asset source.

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

        :param oci.cloud_bridge.models.ChangeAssetSourceCompartmentDetails change_asset_source_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 the same action again. Retry tokens expire after 24
            hours, but can be invalidated before 24 hours due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, 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/cloudbridge/change_asset_source_compartment.py.html>`__ to see an example of how to use change_asset_source_compartment API.
        assetSourceIdz7/assetSources/{assetSourceId}/actions/changeCompartmentPOSTchange_asset_source_compartmentz[https://docs.oracle.com/iaas/api/#/en/OCB/20220509/AssetSource/ChangeAssetSourceCompartmentr   r   if_matchopc_request_idopc_retry_tokenc                       g | ]}| vr|qS r%   r%   .0_keyZexpected_kwargsr%   r&   
<listcomp>       zCDiscoveryClient.change_asset_source_compartment.<locals>.<listcomp>z8change_asset_source_compartment got unknown kwargs: {!r}c                 S      i | ]\}}|t ur||qS r%   missingr2   kvr%   r%   r&   
<dictcomp>       zCDiscoveryClient.change_asset_source_compartment.<locals>.<dictcomp>Nr   7Parameter {} cannot be None, whitespace or empty stringapplication/jsonr-   r.   r/   acceptcontent-typeif-matchopc-request-idopc-retry-tokenc                 S   &   i | ]\}}|t ur|d ur||qS Nr8   r:   r%   r%   r&   r=         & r   Zoperation_retry_strategyZclient_retry_strategyr   	resource_pathmethodpath_paramsheader_paramsbodyr   operation_nameapi_reference_linkrequired_argumentsr   iterkeys
ValueErrorformat	iteritems
isinstancestring_typeslenstripr    r9   r!   get_preferred_retry_strategyr   r   DEFAULT_RETRY_STRATEGYNoneRetryStrategyadd_opc_retry_token_if_neededadd_opc_client_retries_headeradd_circuit_breaker_callbackr   make_retrying_callcall_api)r"   asset_source_idZ'change_asset_source_compartment_detailsr$   rS   rL   rM   rQ   rR   extra_kwargsrN   r;   r<   rO   r   r%   r4   r&   r+   r   v   1$


z/DiscoveryClient.change_asset_source_compartmentc                    r(   )ak  
        Moves the specified discovery schedule into a different compartment. When provided, If-Match is checked against ETag values of the resource.


        :param str discovery_schedule_id: (required)
            The `OCID`__ of the discovery schedule.

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

        :param oci.cloud_bridge.models.ChangeDiscoveryScheduleCompartmentDetails change_discovery_schedule_compartment_details: (required)
            Information about the compartment in to which the discovery schedule should be moved.

        :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 the same action again. Retry tokens expire after 24
            hours, but can be invalidated before 24 hours due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, 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/cloudbridge/change_discovery_schedule_compartment.py.html>`__ to see an example of how to use change_discovery_schedule_compartment API.
        discoveryScheduleIdzC/discoverySchedules/{discoveryScheduleId}/actions/changeCompartmentr*   %change_discovery_schedule_compartmentzghttps://docs.oracle.com/iaas/api/#/en/OCB/20220509/DiscoverySchedule/ChangeDiscoveryScheduleCompartmentr,   c                    r0   r%   r%   r1   r4   r%   r&   r5   +  r6   zIDiscoveryClient.change_discovery_schedule_compartment.<locals>.<listcomp>z>change_discovery_schedule_compartment got unknown kwargs: {!r}c                 S   r7   r%   r8   r:   r%   r%   r&   r=   4  r>   zIDiscoveryClient.change_discovery_schedule_compartment.<locals>.<dictcomp>Nr   r?   r@   r-   r.   r/   rA   c                 S   rG   rH   r8   r:   r%   r%   r&   r=   A  rI   r   rJ   r   rK   rT   )r"   discovery_schedule_idZ-change_discovery_schedule_compartment_detailsr$   rS   rL   rM   rQ   rR   rf   rN   r;   r<   rO   r   r%   r4   r&   ri      rg   z5DiscoveryClient.change_discovery_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 )aS  
        Creates an asset source.


        :param oci.cloud_bridge.models.CreateAssetSourceDetails create_asset_source_details: (required)
            Details for the new asset source.

        :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 the same action again. Retry tokens expire after 24
            hours, but can be invalidated before 24 hours due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, 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_bridge.models.AssetSource`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudbridge/create_asset_source.py.html>`__ to see an example of how to use create_asset_source API.
        /assetSourcesr*   create_asset_sourcezPhttps://docs.oracle.com/iaas/api/#/en/OCB/20220509/AssetSource/CreateAssetSourcer   r   r/   r.   c                    r0   r%   r%   r1   r4   r%   r&   r5     r6   z7DiscoveryClient.create_asset_source.<locals>.<listcomp>z,create_asset_source got unknown kwargs: {!r}r@   r/   r.   rB   rC   rF   rE   c                 S   rG   rH   r8   r:   r%   r%   r&   r=     rI   z7DiscoveryClient.create_asset_source.<locals>.<dictcomp>r   rJ   NAssetSourcer   	rL   rM   rO   rP   response_typer   rQ   rR   rS   r   rU   rV   rW   r    r9   rX   r!   r]   r   r   r^   rY   r_   r`   ra   rb   r   rc   rd   )r"   Zcreate_asset_source_detailsr$   rS   rL   rM   rQ   rR   rf   rO   r   r%   r4   r&   rm   f  f   %

z#DiscoveryClient.create_asset_sourcec                    rk   )a  
        Creates the discovery schedule.


        :param oci.cloud_bridge.models.CreateDiscoveryScheduleDetails create_discovery_schedule_details: (required)
            Information about the discovery schedule being created.

        :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 the same action again. Retry tokens expire after 24
            hours, but can be invalidated before 24 hours due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, 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_bridge.models.DiscoverySchedule`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudbridge/create_discovery_schedule.py.html>`__ to see an example of how to use create_discovery_schedule API.
        /discoverySchedulesr*   create_discovery_schedulez\https://docs.oracle.com/iaas/api/#/en/OCB/20220509/DiscoverySchedule/CreateDiscoverySchedulern   c                    r0   r%   r%   r1   r4   r%   r&   r5     r6   z=DiscoveryClient.create_discovery_schedule.<locals>.<listcomp>z2create_discovery_schedule got unknown kwargs: {!r}r@   r/   r.   ro   c                 S   rG   rH   r8   r:   r%   r%   r&   r=     rI   z=DiscoveryClient.create_discovery_schedule.<locals>.<dictcomp>r   rJ   NDiscoveryScheduler   rq   rs   )r"   Z!create_discovery_schedule_detailsr$   rS   rL   rM   rQ   rR   rf   rO   r   r%   r4   r&   rv     rt   z)DiscoveryClient.create_discovery_schedulec                    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  
        Deletes the asset source by ID.


        :param str asset_source_id: (required)
            The `OCID`__ of the asset source.

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

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

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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/cloudbridge/delete_asset_source.py.html>`__ to see an example of how to use delete_asset_source API.
        r)   /assetSources/{assetSourceId}DELETEdelete_asset_sourcezPhttps://docs.oracle.com/iaas/api/#/en/OCB/20220509/AssetSource/DeleteAssetSourcer   r   r-   r.   c                    r0   r%   r%   r1   r4   r%   r&   r5   ^  r6   z7DiscoveryClient.delete_asset_source.<locals>.<listcomp>z,delete_asset_source got unknown kwargs: {!r}c                 S   r7   r%   r8   r:   r%   r%   r&   r=   g  r>   z7DiscoveryClient.delete_asset_source.<locals>.<dictcomp>Nr   r?   r@   r-   r.   rB   rC   rD   rE   c                 S   rG   rH   r8   r:   r%   r%   r&   r=   s  rI   r   rJ   r   rL   rM   rN   rO   r   rQ   rR   rS   r   rU   rV   rW   rX   rY   rZ   r[   r\   r    r9   r!   r]   r   r   r^   r_   ra   rb   r   rc   rd   r"   re   r$   rS   rL   rM   rQ   rR   rf   rN   r;   r<   rO   r   r%   r4   r&   r{   *  n   '$

z#DiscoveryClient.delete_asset_sourcec                    rx   )a  
        Deletes the specified discovery schedule.


        :param str discovery_schedule_id: (required)
            The `OCID`__ of the discovery schedule.

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

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

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

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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/cloudbridge/delete_discovery_schedule.py.html>`__ to see an example of how to use delete_discovery_schedule API.
        rh   )/discoverySchedules/{discoveryScheduleId}rz   delete_discovery_schedulez\https://docs.oracle.com/iaas/api/#/en/OCB/20220509/DiscoverySchedule/DeleteDiscoveryScheduler|   c                    r0   r%   r%   r1   r4   r%   r&   r5     r6   z=DiscoveryClient.delete_discovery_schedule.<locals>.<listcomp>z2delete_discovery_schedule got unknown kwargs: {!r}c                 S   r7   r%   r8   r:   r%   r%   r&   r=     r>   z=DiscoveryClient.delete_discovery_schedule.<locals>.<dictcomp>Nr   r?   r@   r-   r.   r}   c                 S   rG   rH   r8   r:   r%   r%   r&   r=     rI   r   rJ   r   r~   r   r"   rj   r$   rS   rL   rM   rQ   rR   rf   rN   r;   r<   rO   r   r%   r4   r&   r     r   z)DiscoveryClient.delete_discovery_schedulec                    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 the asset source by ID.


        :param str asset_source_id: (required)
            The `OCID`__ of the asset source.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudbridge/get_asset_source.py.html>`__ to see an example of how to use get_asset_source API.
        r)   ry   GETget_asset_sourcezMhttps://docs.oracle.com/iaas/api/#/en/OCB/20220509/AssetSource/GetAssetSourcer   r   r.   c                    r0   r%   r%   r1   r4   r%   r&   r5   ,  r6   z4DiscoveryClient.get_asset_source.<locals>.<listcomp>z)get_asset_source got unknown kwargs: {!r}c                 S   r7   r%   r8   r:   r%   r%   r&   r=   5  r>   z4DiscoveryClient.get_asset_source.<locals>.<dictcomp>Nr   r?   r@   r.   rB   rC   rE   c                 S   rG   rH   r8   r:   r%   r%   r&   r=   @  rI   r   rJ   rp   r   	rL   rM   rN   rO   rr   r   rQ   rR   rS   r   r   r%   r4   r&   r      p    $
z DiscoveryClient.get_asset_sourcec                    r   )a  
        Reads information about the specified discovery schedule.


        :param str discovery_schedule_id: (required)
            The `OCID`__ of the discovery schedule.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudbridge/get_discovery_schedule.py.html>`__ to see an example of how to use get_discovery_schedule API.
        rh   r   r   get_discovery_schedulezYhttps://docs.oracle.com/iaas/api/#/en/OCB/20220509/DiscoverySchedule/GetDiscoveryScheduler   c                    r0   r%   r%   r1   r4   r%   r&   r5     r6   z:DiscoveryClient.get_discovery_schedule.<locals>.<listcomp>z/get_discovery_schedule got unknown kwargs: {!r}c                 S   r7   r%   r8   r:   r%   r%   r&   r=     r>   z:DiscoveryClient.get_discovery_schedule.<locals>.<dictcomp>Nr   r?   r@   r.   r   c                 S   rG   rH   r8   r:   r%   r%   r&   r=     rI   r   rJ   rw   r   r   r   r   r%   r4   r&   r   d  r   z&DiscoveryClient.get_discovery_schedulec                    s  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|
q7|	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  
        Gets known connections to the asset source by the asset source ID.


        :param str asset_source_id: (required)
            The `OCID`__ of the asset source.

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

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

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

        :param str 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_bridge.models.AssetSourceConnectionCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudbridge/list_asset_source_connections.py.html>`__ to see an example of how to use list_asset_source_connections API.
        r)   z5/assetSources/{assetSourceId}/actions/listConnectionsr*   list_asset_source_connectionszYhttps://docs.oracle.com/iaas/api/#/en/OCB/20220509/AssetSource/ListAssetSourceConnections)r   r   limitpager.   c                    r0   r%   r%   r1   r4   r%   r&   r5     r6   zADiscoveryClient.list_asset_source_connections.<locals>.<listcomp>z6list_asset_source_connections got unknown kwargs: {!r}c                 S   r7   r%   r8   r:   r%   r%   r&   r=     r>   zADiscoveryClient.list_asset_source_connections.<locals>.<dictcomp>Nr   r?   r   r   )r   r   c                 S   rG   rH   r8   r:   r%   r%   r&   r=     rI   r@   r.   r   c                 S   rG   rH   r8   r:   r%   r%   r&   r=     rI   r   rJ   ZAssetSourceConnectionCollectionr   )
rL   rM   rN   query_paramsrO   rr   r   rQ   rR   rS   r   )r"   re   r$   rS   rL   rM   rQ   rR   rf   rN   r;   r<   r   rO   r   r%   r4   r&   r     s|   &$


z-DiscoveryClient.list_asset_source_connectionsc                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d
|v r9ddg}	|d
 |	vr9td|	d|v rNg d}
|d |
vrNtd|
d|v rcddg}|d |vrctd||dt|d
t|dt|dt|dt||dt|d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 asset sources.


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

        :param str asset_source_id: (optional)
            The `OCID`__ of the asset source.

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

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be provided. By default, the timeCreated is in descending order and displayName is in ascending order.

            Allowed values are: "timeCreated", "displayName"

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

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

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

            Allowed values are: "ASC", "DESC"

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

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

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

        :param str 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_bridge.models.AssetSourceCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudbridge/list_asset_sources.py.html>`__ to see an example of how to use list_asset_sources API.
        compartmentIdrl   r   list_asset_sourceszOhttps://docs.oracle.com/iaas/api/#/en/OCB/20220509/AssetSource/ListAssetSources)
r   r   re   sort_bylifecycle_state
sort_orderdisplay_namer   r   r.   c                    r0   r%   r%   r1   r4   r%   r&   r5     r6   z6DiscoveryClient.list_asset_sources.<locals>.<listcomp>z+list_asset_sources got unknown kwargs: {!r}r   timeCreateddisplayName/Invalid value for `sort_by`, must be one of {0}r   )ZCREATINGACTIVEZDELETINGDELETEDZFAILEDZUPDATINGZNEEDS_ATTENTION7Invalid value for `lifecycle_state`, must be one of {0}r   ASCDESC2Invalid value for `sort_order`, must be one of {0}re   r   r   r   )r)   sortBylifecycleState	sortOrderr   r   r   r   c                 S   rG   rH   r8   r:   r%   r%   r&   r=     rI   z6DiscoveryClient.list_asset_sources.<locals>.<dictcomp>r@   r.   r   c                 S   rG   rH   r8   r:   r%   r%   r&   r=     rI   r   rJ   NZAssetSourceCollectionr   	rL   rM   r   rO   rr   r   rQ   rR   rS   r   rU   rV   rW   r    r9   rX   r!   r]   r   r   r^   rY   r_   ra   rb   r   rc   rd   )r"   compartment_idr$   rS   rL   rM   rQ   rR   rf   sort_by_allowed_valueslifecycle_state_allowed_valuessort_order_allowed_valuesr   rO   r   r%   r4   r&   r   <     ;








z"DiscoveryClient.list_asset_sourcesc                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d
|v r9ddg}	|d
 |	vr9td|	d|v rNddg}
|d |
vrNtd|
d|v rcddg}|d |vrctd||dt|d
t|dt|dt|dt||dt|d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
  
        Lists discovery schedules.


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

        :param str discovery_schedule_id: (optional)
            The `OCID`__ of the discovery schedule.

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

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

            Allowed values are: "ACTIVE", "DELETED"

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be provided. By default, the timeCreated is in descending order and displayName is in ascending order.

            Allowed values are: "timeCreated", "displayName"

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

            Allowed values are: "ASC", "DESC"

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

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

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

        :param str 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_bridge.models.DiscoveryScheduleCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudbridge/list_discovery_schedules.py.html>`__ to see an example of how to use list_discovery_schedules API.
        r   ru   r   list_discovery_schedulesz[https://docs.oracle.com/iaas/api/#/en/OCB/20220509/DiscoverySchedule/ListDiscoverySchedules)
r   r   rj   r   r   r   r   r   r   r.   c                    r0   r%   r%   r1   r4   r%   r&   r5   '  r6   z<DiscoveryClient.list_discovery_schedules.<locals>.<listcomp>z1list_discovery_schedules got unknown kwargs: {!r}r   r   r   r   r   r   r   r   r   r   r   r   rj   r   r   r   )rh   r   r   r   r   r   r   r   c                 S   rG   rH   r8   r:   r%   r%   r&   r=   K  rI   z<DiscoveryClient.list_discovery_schedules.<locals>.<dictcomp>r@   r.   r   c                 S   rG   rH   r8   r:   r%   r%   r&   r=   R  rI   r   rJ   NZDiscoveryScheduleCollectionr   r   r   )r"   r   r$   rS   rL   rM   rQ   rR   rf   r   r   r   r   rO   r   r%   r4   r&   r     r   z(DiscoveryClient.list_discovery_schedulesc                    s~  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j|||	||	d|||d	S | jj|||	||	d|||dS )a  
        Initiates the process of asset metadata synchronization with the related asset source.


        :param str asset_source_id: (required)
            The `OCID`__ of the asset source.

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

        :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 the same action again. Retry tokens expire after 24
            hours, but can be invalidated before 24 hours due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, 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/cloudbridge/refresh_asset_source.py.html>`__ to see an example of how to use refresh_asset_source API.
        r)   z-/assetSources/{assetSourceId}/actions/refreshr*   refresh_asset_sourcezQhttps://docs.oracle.com/iaas/api/#/en/OCB/20220509/AssetSource/RefreshAssetSource)r   r   r.   r/   c                    r0   r%   r%   r1   r4   r%   r&   r5     r6   z8DiscoveryClient.refresh_asset_source.<locals>.<listcomp>z-refresh_asset_source got unknown kwargs: {!r}c                 S   r7   r%   r8   r:   r%   r%   r&   r=     r>   z8DiscoveryClient.refresh_asset_source.<locals>.<dictcomp>Nr   r?   r@   r.   r/   )rB   rC   rE   rF   c                 S   rG   rH   r8   r:   r%   r%   r&   r=     rI   r   rJ   r   r~   rT   r   r%   r4   r&   r   v  sp   '$

z$DiscoveryClient.refresh_asset_sourcec                    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|	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  
        Updates the asset source.


        :param str asset_source_id: (required)
            The `OCID`__ of the asset source.

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

        :param oci.cloud_bridge.models.UpdateAssetSourceDetails update_asset_source_details: (required)
            Asset source 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 None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudbridge/update_asset_source.py.html>`__ to see an example of how to use update_asset_source API.
        r)   ry   PUTupdate_asset_sourcezPhttps://docs.oracle.com/iaas/api/#/en/OCB/20220509/AssetSource/UpdateAssetSourcer|   c                    r0   r%   r%   r1   r4   r%   r&   r5     r6   z7DiscoveryClient.update_asset_source.<locals>.<listcomp>z,update_asset_source got unknown kwargs: {!r}c                 S   r7   r%   r8   r:   r%   r%   r&   r=   "  r>   z7DiscoveryClient.update_asset_source.<locals>.<dictcomp>Nr   r?   r@   r-   r.   r}   c                 S   rG   rH   r8   r:   r%   r%   r&   r=   .  rI   r   rJ   r   rK   r   )r"   re   Zupdate_asset_source_detailsr$   rS   rL   rM   rQ   rR   rf   rN   r;   r<   rO   r   r%   r4   r&   r     sr   *$

z#DiscoveryClient.update_asset_sourcec                    sz  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
d}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  
        Updates the specified discovery schedule.


        :param oci.cloud_bridge.models.UpdateDiscoveryScheduleDetails update_discovery_schedule_details: (required)
            Discovery schedule information to be updated.

        :param str discovery_schedule_id: (required)
            The `OCID`__ of the discovery schedule.

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/cloudbridge/update_discovery_schedule.py.html>`__ to see an example of how to use update_discovery_schedule API.
        rh   r   r   update_discovery_schedulez\https://docs.oracle.com/iaas/api/#/en/OCB/20220509/DiscoverySchedule/UpdateDiscoveryScheduler|   c                    r0   r%   r%   r1   r4   r%   r&   r5     r6   z=DiscoveryClient.update_discovery_schedule.<locals>.<listcomp>z2update_discovery_schedule got unknown kwargs: {!r}c                 S   r7   r%   r8   r:   r%   r%   r&   r=     r>   z=DiscoveryClient.update_discovery_schedule.<locals>.<dictcomp>Nr   r?   r@   r-   r.   r}   c                 S   rG   rH   r8   r:   r%   r%   r&   r=     rI   r   rJ   rw   r   )
rL   rM   rN   rO   rP   rr   r   rQ   rR   rS   r   )r"   Z!update_discovery_schedule_detailsrj   r$   rS   rL   rM   rQ   rR   rf   rN   r;   r<   rO   r   r%   r4   r&   r   R  sv   *$

z)DiscoveryClient.update_discovery_scheduleN)__name__
__module____qualname____doc__r'   r+   ri   rm   rv   r{   r   r   r   r   r   r   r   r   r   r%   r%   r%   r&   r      s&    Xzzbbkkddt  lpr   N)
__future__r   Zoci._vendorr   r   ocir   r   Zoci.base_clientr   Z
oci.configr   r	   Z
oci.signerr
   Zoci.utilr   r   r   Zmodelsr   r9   objectr   r%   r%   r%   r&   <module>   s   