o
    ɶd4I                    @   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   )analytics_type_mappingZMissingc                   @   s   e Zd ZdZdd Zdd Zdd Zdd	 Zd
d Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd Zdd Zdd Zdd Zd d! Zd"d# Zd$d% Zd&d' Zd(d) Zd*d+ Zd,d- Zd.d/ Zd0d1 Zd2S )3AnalyticsClientz
    Analytics 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	/20190331z2https://analytics.{region}.ocp.{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	analytics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$   Busr/lib/python3.10/site-packages/oci/analytics/analytics_client.py__init__   s>   3





zAnalyticsClient.__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  
        Change the compartment of an Analytics instance. The operation is long-running
        and creates a new WorkRequest.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

        :param oci.analytics.models.ChangeCompartmentDetails change_compartment_details: (required)
            Input payload to move the resource to a different compartment.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/change_analytics_instance_compartment.py.html>`__ to see an example of how to use change_analytics_instance_compartment API.
        analyticsInstanceIdzC/analyticsInstances/{analyticsInstanceId}/actions/changeCompartmentPOST%change_analytics_instance_compartmentzmhttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/ChangeAnalyticsInstanceCompartmentr   r   if_matchopc_request_idopc_retry_tokenc                       g | ]}| vr|qS r$   r$   .0_keyZexpected_kwargsr$   r%   
<listcomp>       zIAnalyticsClient.change_analytics_instance_compartment.<locals>.<listcomp>z>change_analytics_instance_compartment got unknown kwargs: {!r}c                 S      i | ]\}}|t ur||qS r$   missingr1   kvr$   r$   r%   
<dictcomp>       zIAnalyticsClient.change_analytics_instance_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 Nr7   r9   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   r8   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!   analytics_instance_idZchange_compartment_detailsr#   rR   rK   rL   rP   rQ   extra_kwargsrM   r:   r;   rN   r   r$   r3   r%   r*   r   v   /$


z5AnalyticsClient.change_analytics_instance_compartmentc                    r'   )a@  
        Change an Analytics instance network endpoint. The operation is long-running
        and creates a new WorkRequest.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

        :param oci.analytics.models.ChangeAnalyticsInstanceNetworkEndpointDetails change_analytics_instance_network_endpoint_details: (required)
            Input payload for changing an Analytics instance network endpoint.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/change_analytics_instance_network_endpoint.py.html>`__ to see an example of how to use change_analytics_instance_network_endpoint API.
        r(   zG/analyticsInstances/{analyticsInstanceId}/actions/changeNetworkEndpointr)   *change_analytics_instance_network_endpointzqhttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/ChangeAnalyticsInstanceNetworkEndpointr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   '  r5   zNAnalyticsClient.change_analytics_instance_network_endpoint.<locals>.<listcomp>zCchange_analytics_instance_network_endpoint got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   0  r=   zNAnalyticsClient.change_analytics_instance_network_endpoint.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   =  rH   r   rI   r   rJ   rS   )r!   rd   Z2change_analytics_instance_network_endpoint_detailsr#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   rg      rf   z:AnalyticsClient.change_analytics_instance_network_endpointc                    s  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 )a2	  
        Create a new AnalyticsInstance in the specified compartment. The operation is long-running
        and creates a new WorkRequest.


        :param oci.analytics.models.CreateAnalyticsInstanceDetails create_analytics_instance_details: (required)
            Analytics Instance details.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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 :class:`~oci.analytics.models.AnalyticsInstance`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/analytics/create_analytics_instance.py.html>`__ to see an example of how to use create_analytics_instance API.
        /analyticsInstancesr)   create_analytics_instance r   r   r-   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z=AnalyticsClient.create_analytics_instance.<locals>.<listcomp>z2create_analytics_instance got unknown kwargs: {!r}r?   r-   r.   rA   rB   rD   rE   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z=AnalyticsClient.create_analytics_instance.<locals>.<dictcomp>r   rI   NAnalyticsInstancer   )	rK   rL   rN   rO   response_typer   rP   rQ   rR   )r   rT   rU   rV   r   r8   rW   r    r\   r   r   r]   rX   r^   r_   r`   ra   r   rb   rc   )r!   Z!create_analytics_instance_detailsr#   rR   rK   rL   rP   rQ   re   rN   r   r$   r3   r%   ri   b  sf   '

z)AnalyticsClient.create_analytics_instancec                      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	  
        Create an Private access Channel for the Analytics instance. The operation is long-running
        and creates a new WorkRequest.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

        :param oci.analytics.models.CreatePrivateAccessChannelDetails create_private_access_channel_details: (required)
            Input payload for creating a private access channel for an Analytics instance.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/create_private_access_channel.py.html>`__ to see an example of how to use create_private_access_channel API.
        r(   z?/analyticsInstances/{analyticsInstanceId}/privateAccessChannelsr)   create_private_access_channelzehttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/CreatePrivateAccessChannelrk   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zAAnalyticsClient.create_private_access_channel.<locals>.<listcomp>z6create_private_access_channel got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   zAAnalyticsClient.create_private_access_channel.<locals>.<dictcomp>Nr   r>   r?   r-   r.   rl   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rJ   rS   )r!   rd   Z%create_private_access_channel_detailsr#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   rp     t   *$

z-AnalyticsClient.create_private_access_channelc                    ro   )ab	  
        Allows specifying a custom host name to be used to access the analytics instance.  This requires prior setup of DNS entry and certificate
        for this host.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

        :param oci.analytics.models.CreateVanityUrlDetails create_vanity_url_details: (required)
            Vanity url details.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/create_vanity_url.py.html>`__ to see an example of how to use create_vanity_url API.
        r(   z4/analyticsInstances/{analyticsInstanceId}/vanityUrlsr)   create_vanity_urlzZhttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/CreateVanityUrlrk   c                    r/   r$   r$   r0   r3   r$   r%   r4   n  r5   z5AnalyticsClient.create_vanity_url.<locals>.<listcomp>z*create_vanity_url got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   w  r=   z5AnalyticsClient.create_vanity_url.<locals>.<dictcomp>Nr   r>   r?   r-   r.   rl   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rJ   rS   )r!   rd   Zcreate_vanity_url_detailsr#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   rr   7  rq   z!AnalyticsClient.create_vanity_urlc                      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;
  
        Terminates the specified Analytics instance. The operation is long-running
        and creates a new WorkRequest.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/delete_analytics_instance.py.html>`__ to see an example of how to use delete_analytics_instance API.
        r(   )/analyticsInstances/{analyticsInstanceId}DELETEdelete_analytics_instancezbhttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/DeleteAnalyticsInstancer+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z=AnalyticsClient.delete_analytics_instance.<locals>.<listcomp>z2delete_analytics_instance got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z=AnalyticsClient.delete_analytics_instance.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rK   rL   rM   rN   r   rP   rQ   rR   rS   r!   rd   r#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   rv     r   ,$


z)AnalyticsClient.delete_analytics_instancec                      ddg}d}d}d}d}g d  fdd	t |D }	|	r%td
|	||d}
dd t |
D }
t |
D ]\}}|du sOt|t jrVt| dkrVtd|q9d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
  
        Delete an Analytics instance's Private access channel with the given unique identifier key.


        :param str private_access_channel_key: (required)
            The unique identifier key of the Private Access Channel.

        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/delete_private_access_channel.py.html>`__ to see an example of how to use delete_private_access_channel API.
        privateAccessChannelKeyr(   Y/analyticsInstances/{analyticsInstanceId}/privateAccessChannels/{privateAccessChannelKey}ru   delete_private_access_channelzehttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/DeletePrivateAccessChannelr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   W  r5   zAAnalyticsClient.delete_private_access_channel.<locals>.<listcomp>z6delete_private_access_channel got unknown kwargs: {!r}r{   r(   c                 S   r6   r$   r7   r9   r$   r$   r%   r<   a  r=   zAAnalyticsClient.delete_private_access_channel.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   n  rH   r   rI   r   rw   rS   r!   private_access_channel_keyrd   r#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   r}     t   .$


z-AnalyticsClient.delete_private_access_channelc                    rz   )ah
  
        Allows deleting a previously created vanity url.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

        :param str vanity_url_key: (required)
            Specify unique identifier key of a vanity url to update or delete.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/delete_vanity_url.py.html>`__ to see an example of how to use delete_vanity_url API.
        r(   vanityUrlKeyC/analyticsInstances/{analyticsInstanceId}/vanityUrls/{vanityUrlKey}ru   delete_vanity_urlzZhttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/DeleteVanityUrlr+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z5AnalyticsClient.delete_vanity_url.<locals>.<listcomp>z*delete_vanity_url got unknown kwargs: {!r}r(   r   c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z5AnalyticsClient.delete_vanity_url.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rw   rS   )r!   rd   vanity_url_keyr#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   r     r   z!AnalyticsClient.delete_vanity_urlc                    sd  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}|rt|tjs| j| || j |j| jj|||	||	d|||d	S | jj|||	||	d|||dS )a*  
        Cancel a work request that has not started yet.


        :param str work_request_id: (required)
            The OCID of the work 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)
            Unique identifier for the request.
            If you need to contact Oracle about a particular request, please provide the request ID.

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/analytics/delete_work_request.py.html>`__ to see an example of how to use delete_work_request API.
        workRequestId/workRequests/{workRequestId}ru   delete_work_requestzVhttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/WorkRequest/DeleteWorkRequestr   r   r,   r-   c                    r/   r$   r$   r0   r3   r$   r%   r4   8  r5   z7AnalyticsClient.delete_work_request.<locals>.<listcomp>z,delete_work_request got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   A  r=   z7AnalyticsClient.delete_work_request.<locals>.<dictcomp>Nr   r>   r?   r,   r-   rA   rB   rC   rD   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   M  rH   r   rI   r   rw   r   rT   rU   rV   rW   rX   rY   rZ   r[   r   r8   r    r\   r   r   r^   r`   ra   r   rb   rc   r!   work_request_idr#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   r     sj   $$

z#AnalyticsClient.delete_work_requestc                    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  
        Info for a specific Analytics instance.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/analytics/get_analytics_instance.py.html>`__ to see an example of how to use get_analytics_instance API.
        r(   rt   GETget_analytics_instancez_https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/GetAnalyticsInstancer   r   r-   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z:AnalyticsClient.get_analytics_instance.<locals>.<listcomp>z/get_analytics_instance got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z:AnalyticsClient.get_analytics_instance.<locals>.<dictcomp>Nr   r>   r?   r-   rA   rB   rD   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   rm   r   	rK   rL   rM   rN   rn   r   rP   rQ   rR   r   rT   rU   rV   rW   rX   rY   rZ   r[   r   r8   r    r\   r   r   r]   r^   r`   ra   r   rb   rc   rx   r$   r3   r%   r   m  p   $
z&AnalyticsClient.get_analytics_instancec                    sp  ddg}d}d}d}d}g d  fdd	t |D }	|	r%td
|	||d}
dd t |
D }
t |
D ]\}}|du sOt|t jrVt| dkrVtd|q9d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 )aT  
        Retrieve private access channel in the specified Analytics Instance.


        :param str private_access_channel_key: (required)
            The unique identifier key of the Private Access Channel.

        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/analytics/get_private_access_channel.py.html>`__ to see an example of how to use get_private_access_channel API.
        r{   r(   r|   r   get_private_access_channelzbhttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/GetPrivateAccessChannelr   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z>AnalyticsClient.get_private_access_channel.<locals>.<listcomp>z3get_private_access_channel got unknown kwargs: {!r}r~   c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z>AnalyticsClient.get_private_access_channel.<locals>.<dictcomp>Nr   r>   r?   r-   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   ZPrivateAccessChannelr   r   r   r   r$   r3   r%   r     sr   "$
z*AnalyticsClient.get_private_access_channelc                    r   )a  
        Get the details of a work request.


        :param str work_request_id: (required)
            The OCID of the work request.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/analytics/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
        r   r   r   get_work_requestzShttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/WorkRequest/GetWorkRequestr   c                    r/   r$   r$   r0   r3   r$   r%   r4   b  r5   z4AnalyticsClient.get_work_request.<locals>.<listcomp>z)get_work_request got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   k  r=   z4AnalyticsClient.get_work_request.<locals>.<dictcomp>Nr   r>   r?   r-   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   v  rH   r   rI   ZWorkRequestr   r   r   r   r$   r3   r%   r   7  r   z AnalyticsClient.get_work_requestc                    sJ  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 rcg d}|d |vrctd|d|v rxg d}|d |vrxtd|d|v rddg}|d |vrt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 Analytics instances.


        :param str compartment_id: (required)
            The OCID of the compartment.

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

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

        :param str capacity_type: (optional)
            A filter to only return resources matching the capacity type enum. Values are
            case-insensitive.

            Allowed values are: "OLPU_COUNT", "USER_COUNT"

        :param str feature_set: (optional)
            A filter to only return resources matching the feature set. Values are
            case-insensitive.

            Allowed values are: "SELF_SERVICE_ANALYTICS", "ENTERPRISE_ANALYTICS"

        :param str lifecycle_state: (optional)
            A filter to only return resources matching the lifecycle state. The state
            value is case-insensitive.

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

        :param int limit: (optional)
            For list pagination. The maximum number of results per page, or items to return in a paginated
            "List" call. For important details about how pagination works, see
            `List Pagination`__.

            Example: `50`

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str page: (optional)
            For list pagination. The value of the `opc-next-page` response header from the previous "List"
            call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str sort_by: (optional)
            The field to sort by (one column only). Default sort order is
            ascending exception of `timeCreated` column (descending).

            Allowed values are: "capacityType", "capacityValue", "featureSet", "lifecycleState", "name", "timeCreated"

        :param str sort_order: (optional)
            The sort order to use, either ascending (`ASC`) or descending (`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 list of :class:`~oci.analytics.models.AnalyticsInstanceSummary`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/analytics/list_analytics_instances.py.html>`__ to see an example of how to use list_analytics_instances API.
        compartmentIdrh   r   list_analytics_instanceszhhttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstanceSummary/ListAnalyticsInstances)r   r   r-   namecapacity_typefeature_setlifecycle_statelimitpagesort_by
sort_orderc                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z<AnalyticsClient.list_analytics_instances.<locals>.<listcomp>z1list_analytics_instances got unknown kwargs: {!r}r   Z
OLPU_COUNTZ
USER_COUNTz5Invalid value for `capacity_type`, must be one of {0}r   ZSELF_SERVICE_ANALYTICSZENTERPRISE_ANALYTICSz3Invalid value for `feature_set`, must be one of {0}r   )ZACTIVEZCREATINGZDELETEDZDELETINGFAILEDZINACTIVEZUPDATINGz7Invalid value for `lifecycle_state`, must be one of {0}r   )capacityTypeZcapacityValue
featureSetlifecycleStater   ZtimeCreated/Invalid value for `sort_by`, must be one of {0}r   ASCDESC2Invalid value for `sort_order`, must be one of {0}r   r   r   )	r   r   r   r   r   r   r   sortBy	sortOrderc                 S   rF   rG   r7   r9   r$   r$   r%   r<   0  rH   z<AnalyticsClient.list_analytics_instances.<locals>.<dictcomp>r?   r-   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   7  rH   r   rI   Nzlist[AnalyticsInstanceSummary]r   	rK   rL   query_paramsrN   rn   r   rP   rQ   rR   )r   rT   rU   rV   r   r8   rW   r    r\   r   r   r]   rX   r^   r`   ra   r   rb   rc   )r!   compartment_idr#   rR   rK   rL   rP   rQ   re   Zcapacity_type_allowed_valuesZfeature_set_allowed_valuesZlifecycle_state_allowed_valuessort_by_allowed_valuessort_order_allowed_valuesr   rN   r   r$   r3   r%   r     s   O








z(AnalyticsClient.list_analytics_instancesc                      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 )ao	  
        Get the errors of a work request.


        :param str work_request_id: (required)
            The OCID of the work request.

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

        :param int limit: (optional)
            For list pagination. The maximum number of results per page, or items to return in a paginated
            "List" call. For important details about how pagination works, see
            `List Pagination`__.

            Example: `50`

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str page: (optional)
            For list pagination. The value of the `opc-next-page` response header from the previous "List"
            call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :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 list of :class:`~oci.analytics.models.WorkRequestError`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/analytics/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_errorsz_https://docs.oracle.com/iaas/api/#/en/analytics/20190331/WorkRequestError/ListWorkRequestErrorsr   r   r-   r   r   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z<AnalyticsClient.list_work_request_errors.<locals>.<listcomp>z1list_work_request_errors got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z<AnalyticsClient.list_work_request_errors.<locals>.<dictcomp>Nr   r>   r   r   r   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r?   r-   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   zlist[WorkRequestError]r   
rK   rL   rM   r   rN   rn   r   rP   rQ   rR   r   r!   r   r#   rR   rK   rL   rP   rQ   re   rM   r:   r;   r   rN   r   r$   r3   r%   r   [  |   /$


z(AnalyticsClient.list_work_request_errorsc                    r   )ag	  
        Get the logs of a work request.


        :param str work_request_id: (required)
            The OCID of the work request.

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

        :param int limit: (optional)
            For list pagination. The maximum number of results per page, or items to return in a paginated
            "List" call. For important details about how pagination works, see
            `List Pagination`__.

            Example: `50`

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str page: (optional)
            For list pagination. The value of the `opc-next-page` response header from the previous "List"
            call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :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 list of :class:`~oci.analytics.models.WorkRequestLog`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/analytics/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_logsz[https://docs.oracle.com/iaas/api/#/en/analytics/20190331/WorkRequestLog/ListWorkRequestLogsr   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z:AnalyticsClient.list_work_request_logs.<locals>.<listcomp>z/list_work_request_logs got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z:AnalyticsClient.list_work_request_logs.<locals>.<dictcomp>Nr   r>   r   r   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   (  rH   r?   r-   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   /  rH   r   rI   zlist[WorkRequestLog]r   r   r   r   r$   r3   r%   r     r   z&AnalyticsClient.list_work_request_logsc                    s(  dg}d}d}d}d}g d  fddt |D }|r$td	|d
|v r8dg}	|d
 |	vr8td|	d|v rRg d}
|d D ]}||
vrQtd|
qDd|v rgg d}|d |vrgtd|d|v r|ddg}|d |vr|td|||dt|d
t| j|d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}|rt|tjs| j| || j |j| jj||||d%|d&|||d'
S | jj||||d%|d&|||d'	S )(a  
        List all work requests in a compartment.


        :param str compartment_id: (required)
            The OCID of the compartment.

        :param str resource_id: (optional)
            The OCID of the resource associated with a work request.

        :param str resource_type: (optional)
            Type of the resource associated with a work request.

            Allowed values are: "ANALYTICS_INSTANCE"

        :param list[str] status: (optional)
            One or more work request status values to filter on.

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

        :param int limit: (optional)
            For list pagination. The maximum number of results per page, or items to return in a paginated
            "List" call. For important details about how pagination works, see
            `List Pagination`__.

            Example: `50`

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str page: (optional)
            For list pagination. The value of the `opc-next-page` response header from the previous "List"
            call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str sort_by: (optional)
            The field used for sorting work request results.

            Allowed values are: "id", "operationType", "status", "timeAccepted", "timeStarted", "timeFinished"

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

            Allowed values are: "ASC", "DESC"

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

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

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

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

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

        :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.analytics.models.WorkRequestSummary`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/analytics/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
        r   z/workRequestsr   list_work_requestsz\https://docs.oracle.com/iaas/api/#/en/analytics/20190331/WorkRequestSummary/ListWorkRequests)
r   r   resource_idresource_typestatusr   r   r   r   r-   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z6AnalyticsClient.list_work_requests.<locals>.<listcomp>z+list_work_requests got unknown kwargs: {!r}r   ZANALYTICS_INSTANCEz5Invalid value for `resource_type`, must be one of {0}r   )ZACCEPTEDZIN_PROGRESSr   Z	SUCCEEDEDZ	CANCELINGZCANCELEDz.Invalid value for `status`, must be one of {0}r   )idZoperationTyper   ZtimeAcceptedZtimeStartedZtimeFinishedr   r   r   r   r   r   Zmultir   r   )r   Z
resourceIdZresourceTyper   r   r   r   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z6AnalyticsClient.list_work_requests.<locals>.<dictcomp>r?   r-   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   Nzlist[WorkRequestSummary]r   r   )r   rT   rU   rV   r   r8   r    Z generate_collection_format_paramrW   r\   r   r   r]   rX   r^   r`   ra   r   rb   rc   )r!   r   r#   rR   rK   rL   rP   rQ   re   Zresource_type_allowed_valuesZstatus_allowed_valuesZstatus_itemr   r   r   rN   r   r$   r3   r%   r   U  s   F







z"AnalyticsClient.list_work_requestsc                    r'   )a
  
        Scale an Analytics instance up or down. The operation is long-running
        and creates a new WorkRequest.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

        :param oci.analytics.models.ScaleAnalyticsInstanceDetails scale_analytics_instance_details: (required)
            Input payload for scaling an Analytics instance up or down.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/scale_analytics_instance.py.html>`__ to see an example of how to use scale_analytics_instance API.
        r(   z7/analyticsInstances/{analyticsInstanceId}/actions/scaler)   scale_analytics_instancezahttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/ScaleAnalyticsInstancer+   c                    r/   r$   r$   r0   r3   r$   r%   r4   B  r5   z<AnalyticsClient.scale_analytics_instance.<locals>.<listcomp>z1scale_analytics_instance got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   K  r=   z<AnalyticsClient.scale_analytics_instance.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   X  rH   r   rI   r   rJ   rS   )r!   rd   Z scale_analytics_instance_detailsr#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   r     rf   z(AnalyticsClient.scale_analytics_instancec                    r'   )a
  
        Encrypts the customer data of this Analytics instance using either a customer OCI Vault Key or Oracle managed default key.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

        :param oci.analytics.models.SetKmsKeyDetails set_kms_key_details: (required)
            Input payload to reset the OCI Vault encryption key.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/set_kms_key.py.html>`__ to see an example of how to use set_kms_key API.
        r(   z;/analyticsInstances/{analyticsInstanceId}/actions/setKmsKeyr)   set_kms_keyzThttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/SetKmsKeyr+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z/AnalyticsClient.set_kms_key.<locals>.<listcomp>z$set_kms_key got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z/AnalyticsClient.set_kms_key.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rJ   rS   )r!   rd   Zset_kms_key_detailsr#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   r   }  sv   .$


zAnalyticsClient.set_kms_keyc                    rs   )a5
  
        Starts the specified Analytics instance. The operation is long-running
        and creates a new WorkRequest.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/start_analytics_instance.py.html>`__ to see an example of how to use start_analytics_instance API.
        r(   z7/analyticsInstances/{analyticsInstanceId}/actions/startr)   start_analytics_instancezahttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/StartAnalyticsInstancer+   c                    r/   r$   r$   r0   r3   r$   r%   r4   .	  r5   z<AnalyticsClient.start_analytics_instance.<locals>.<listcomp>z1start_analytics_instance got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   7	  r=   z<AnalyticsClient.start_analytics_instance.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   D	  rH   r   rI   r   rw   rS   rx   r$   r3   r%   r     ry   z(AnalyticsClient.start_analytics_instancec                    rs   )a1
  
        Stop the specified Analytics instance. The operation is long-running
        and creates a new WorkRequest.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/stop_analytics_instance.py.html>`__ to see an example of how to use stop_analytics_instance API.
        r(   z6/analyticsInstances/{analyticsInstanceId}/actions/stopr)   stop_analytics_instancez`https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/StopAnalyticsInstancer+   c                    r/   r$   r$   r0   r3   r$   r%   r4   	  r5   z;AnalyticsClient.stop_analytics_instance.<locals>.<listcomp>z0stop_analytics_instance got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   	  r=   z;AnalyticsClient.stop_analytics_instance.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   	  rH   r   rI   r   rw   rS   rx   r$   r3   r%   r   g	  ry   z'AnalyticsClient.stop_analytics_instancec                    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t
d}dd t |D }| jj|	d| jd}|rt|tjs| j| || j |j| jj|||
||d|	d|||dS | jj|||
||d|	d|||d
S )a	  
        Updates certain fields of an Analytics instance. Fields that are not provided in the
        request will not be updated.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

        :param oci.analytics.models.UpdateAnalyticsInstanceDetails update_analytics_instance_details: (required)
            The Analytics Instance fields to update. Fields that are not provided
            will not 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)
            Unique identifier for the request.
            If you need to contact Oracle about a particular request, please provide the request ID.

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

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/analytics/update_analytics_instance.py.html>`__ to see an example of how to use update_analytics_instance API.
        r(   rt   PUTupdate_analytics_instancezbhttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/UpdateAnalyticsInstancer   c                    r/   r$   r$   r0   r3   r$   r%   r4   
  r5   z=AnalyticsClient.update_analytics_instance.<locals>.<listcomp>z2update_analytics_instance got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   
  r=   z=AnalyticsClient.update_analytics_instance.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   %
  rH   r   rI   rm   r   )
rK   rL   rM   rN   rO   rn   r   rP   rQ   rR   r   )r!   rd   Z!update_analytics_instance_detailsr#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   r   	  sr   )$

z)AnalyticsClient.update_analytics_instancec                      ddg}d}d}d}d}	g d  fdd	t |D }
|
r%td
|
||d}dd t |D }t |D ]\}}|du sOt|t jrVt| dkrVtd|q9d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  
        Update the Private Access Channel with the given unique identifier key in the specified Analytics Instance.


        :param str private_access_channel_key: (required)
            The unique identifier key of the Private Access Channel.

        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

        :param oci.analytics.models.UpdatePrivateAccessChannelDetails update_private_access_channel_details: (required)
            Update the Private Access Channel with the given unique identifier key in the specified Analytics Instance.

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/update_private_access_channel.py.html>`__ to see an example of how to use update_private_access_channel API.
        r{   r(   r|   r   update_private_access_channelzehttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/UpdatePrivateAccessChannelr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   
  r5   zAAnalyticsClient.update_private_access_channel.<locals>.<listcomp>z6update_private_access_channel got unknown kwargs: {!r}r~   c                 S   r6   r$   r7   r9   r$   r$   r%   r<   
  r=   zAAnalyticsClient.update_private_access_channel.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   
  rH   r   rI   r   rJ   rS   )r!   r   rd   Z%update_private_access_channel_detailsr#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   r   I
  x   1$


z-AnalyticsClient.update_private_access_channelc                    r   )aK  
        Allows uploading a new certificate for a vanity url, which will have to be done when the current certificate is expiring.


        :param str analytics_instance_id: (required)
            The OCID of the AnalyticsInstance.

        :param str vanity_url_key: (required)
            Specify unique identifier key of a vanity url to update or delete.

        :param oci.analytics.models.UpdateVanityUrlDetails update_vanity_url_details: (required)
            Vanity url details to update (certificate).

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

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may 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/analytics/update_vanity_url.py.html>`__ to see an example of how to use update_vanity_url API.
        r(   r   r   r   update_vanity_urlzZhttps://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/UpdateVanityUrlr+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z5AnalyticsClient.update_vanity_url.<locals>.<listcomp>z*update_vanity_url got unknown kwargs: {!r}r   c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z5AnalyticsClient.update_vanity_url.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rJ   rS   )r!   rd   r   Zupdate_vanity_url_detailsr#   rR   rK   rL   rP   rQ   re   rM   r:   r;   rN   r   r$   r3   r%   r   
  r   z!AnalyticsClient.update_vanity_urlN)__name__
__module____qualname____doc__r&   r*   rg   ri   rp   rr   rv   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r$   r$   r$   r%   r      s8    Xxxdqqsvvfcgc B}} 1xwsso{r   N)
__future__r   Zoci._vendorr   r   ocir   r   Zoci.base_clientr   Z
oci.configr   r	   Z
oci.signerr
   Zoci.utilr   r   r   Zmodelsr   r8   objectr   r$   r$   r$   r%   <module>   s   