o
    ɶd0                    @   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   )mysql_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d2d3 Zd4d5 Zd6d7 Zd8S )9DbSystemClientz0
    The API for the MySQL Database Service
    c              
   K   s  t ||dd d|v r|d }n"t|v rt|}nt|d |d |d |dt|d|dd	}d
|dddi |dd|dtj|dd}d|v rY|d|d< |ddu retj|d< d|v rp|d|d< t	d||t
fi || _|d| _|d| _dS )a  
        Creates a new service client

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

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

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

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

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

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

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

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

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

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

        :param allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
            allow control characters to be in the response object.
        signer)r   tenancyuserfingerprintZkey_filepass_phraseZkey_content)r   r   r   Zprivate_key_file_locationr   Zprivate_key_contentTservice_endpointz	/20190415z.https://mysql.{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	db_system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$   >usr/lib/python3.10/site-packages/oci/mysql/db_system_client.py__init__   s>   3





zDbSystemClient.__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|||dS | jj|||
||d|	d|||d
S )a  
        DEPRECATED -- please use HeatWave API instead.
        Adds an Analytics Cluster to the DB System.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param oci.mysql.models.AddAnalyticsClusterDetails add_analytics_cluster_details: (required)
            Request to add an Analytics Cluster.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/add_analytics_cluster.py.html>`__ to see an example of how to use add_analytics_cluster API.
        
dbSystemIdz4/dbSystems/{dbSystemId}/analyticsCluster/actions/addPOSTadd_analytics_clusterzYhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/AnalyticsCluster/AddAnalyticsClusterr   r   if_matchopc_request_idopc_retry_tokenc                       g | ]}| vr|qS r$   r$   .0_keyZexpected_kwargsr$   r%   
<listcomp>       z8DbSystemClient.add_analytics_cluster.<locals>.<listcomp>z.add_analytics_cluster got unknown kwargs: {!r}c                 S      i | ]\}}|t ur||qS r$   missingr1   kvr$   r$   r%   
<dictcomp>       z8DbSystemClient.add_analytics_cluster.<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_strategyAnalyticsClusterr   
resource_pathmethodpath_paramsheader_paramsbodyresponse_typer   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!   db_system_idZadd_analytics_cluster_detailsr#   rT   rL   rM   rR   rS   extra_kwargsrN   r:   r;   rO   r   r$   r3   r%   r*   r   sz   5$


z$DbSystemClient.add_analytics_clusterc                    r'   )aQ  
        Adds a HeatWave cluster to the DB System.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param oci.mysql.models.AddHeatWaveClusterDetails add_heat_wave_cluster_details: (required)
            Request to add a HeatWave cluster.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/add_heat_wave_cluster.py.html>`__ to see an example of how to use add_heat_wave_cluster API.
        r(   z3/dbSystems/{dbSystemId}/heatWaveCluster/actions/addr)   add_heat_wave_clusterzWhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/AddHeatWaveClusterr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   4  r5   z8DbSystemClient.add_heat_wave_cluster.<locals>.<listcomp>z.add_heat_wave_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   =  r=   z8DbSystemClient.add_heat_wave_cluster.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   J  rH   r   rI   HeatWaveClusterr   rK   rU   )r!   rf   Zadd_heat_wave_cluster_detailsr#   rT   rL   rM   rR   rS   rg   rN   r:   r;   rO   r   r$   r3   r%   rh      sz   4$


z$DbSystemClient.add_heat_wave_clusterc                    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 )a  
        Creates and launches a DB System.


        :param oci.mysql.models.CreateDbSystemDetails create_db_system_details: (required)
            Request to create a DB System.

        :param str opc_request_id: (optional)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/create_db_system.py.html>`__ to see an example of how to use create_db_system API.
        
/dbSystemsr)   create_db_system r   r   r-   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z3DbSystemClient.create_db_system.<locals>.<listcomp>z)create_db_system got unknown kwargs: {!r}r?   r-   r.   rA   rB   rD   rE   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z3DbSystemClient.create_db_system.<locals>.<dictcomp>r   rI   NDbSystemr   )	rL   rM   rO   rP   rQ   r   rR   rS   rT   )r   rV   rW   rX   r   r8   rY   r    r^   r   r   r_   rZ   r`   ra   rb   rc   r   rd   re   )r!   Zcreate_db_system_detailsr#   rT   rL   rM   rR   rS   rg   rO   r   r$   r3   r%   rk   q  sf   (

zDbSystemClient.create_db_systemc                    r  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||	||	d|||d	S | jj|||	||	d|||dS )a8	  
        DEPRECATED -- please use HeatWave API instead.
        Deletes the Analytics Cluster including terminating, detaching, removing, finalizing and
        otherwise deleting all related resources.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/delete_analytics_cluster.py.html>`__ to see an example of how to use delete_analytics_cluster API.
        r(   (/dbSystems/{dbSystemId}/analyticsClusterDELETEdelete_analytics_clusterz\https://docs.oracle.com/iaas/api/#/en/mysql/20190415/AnalyticsCluster/DeleteAnalyticsClusterr   r   r,   r-   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z;DbSystemClient.delete_analytics_cluster.<locals>.<listcomp>z1delete_analytics_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z;DbSystemClient.delete_analytics_cluster.<locals>.<dictcomp>Nr   r>   r?   r,   r-   rA   rB   rC   rD   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   #  rH   r   rI   r   rL   rM   rN   rO   r   rR   rS   rT   r   rV   rW   rX   rY   rZ   r[   r\   r]   r   r8   r    r^   r   r   r_   r`   rb   rc   r   rd   re   r!   rf   r#   rT   rL   rM   rR   rS   rg   rN   r:   r;   rO   r   r$   r3   r%   rs     sn   +$

z'DbSystemClient.delete_analytics_clusterc                    rp   )a  
        Delete a DB System, including terminating, detaching,
        removing, finalizing and otherwise deleting all related resources.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/delete_db_system.py.html>`__ to see an example of how to use delete_db_system API.
        r(   /dbSystems/{dbSystemId}rr   delete_db_systemzLhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/DeleteDbSystemrt   c                    r/   r$   r$   r0   r3   r$   r%   r4   |  r5   z3DbSystemClient.delete_db_system.<locals>.<listcomp>z)delete_db_system got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z3DbSystemClient.delete_db_system.<locals>.<dictcomp>Nr   r>   r?   r,   r-   ru   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rv   rw   rx   r$   r3   r%   rz   E  n   *$

zDbSystemClient.delete_db_systemc                    rp   )a 	  
        Deletes the HeatWave cluster including terminating, detaching, removing, finalizing and
        otherwise deleting all related resources.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/delete_heat_wave_cluster.py.html>`__ to see an example of how to use delete_heat_wave_cluster API.
        r(   '/dbSystems/{dbSystemId}/heatWaveClusterrr   delete_heat_wave_clusterzZhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/DeleteHeatWaveClusterrt   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z;DbSystemClient.delete_heat_wave_cluster.<locals>.<listcomp>z1delete_heat_wave_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z;DbSystemClient.delete_heat_wave_cluster.<locals>.<dictcomp>Nr   r>   r?   r,   r-   ru   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rv   rw   rx   r$   r3   r%   r}     r{   z'DbSystemClient.delete_heat_wave_clusterc                      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|||d
S | jj|||	|d|	d|||d	S )a	  
        DEPRECATED -- please use HeatWave API instead.
        Sends a request to estimate the memory footprints of user tables when loaded to Analytics Cluster memory.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str opc_request_id: (optional)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/generate_analytics_cluster_memory_estimate.py.html>`__ to see an example of how to use generate_analytics_cluster_memory_estimate API.
        r(   zG/dbSystems/{dbSystemId}/analyticsClusterMemoryEstimate/actions/generater)   *generate_analytics_cluster_memory_estimatezzhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/AnalyticsClusterMemoryEstimate/GenerateAnalyticsClusterMemoryEstimaterm   c                    r/   r$   r$   r0   r3   r$   r%   r4   Y  r5   zMDbSystemClient.generate_analytics_cluster_memory_estimate.<locals>.<listcomp>zCgenerate_analytics_cluster_memory_estimate got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   b  r=   zMDbSystemClient.generate_analytics_cluster_memory_estimate.<locals>.<dictcomp>Nr   r>   r?   r-   r.   rn   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   n  rH   r   rI   AnalyticsClusterMemoryEstimater   	rL   rM   rN   rO   rQ   r   rR   rS   rT   rU   rx   r$   r3   r%   r   !  st   +$

z9DbSystemClient.generate_analytics_cluster_memory_estimatec                    r~   )a	  
        Sends a request to estimate the memory footprints of user tables when loaded to HeatWave cluster memory.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str opc_request_id: (optional)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/generate_heat_wave_cluster_memory_estimate.py.html>`__ to see an example of how to use generate_heat_wave_cluster_memory_estimate API.
        r(   zF/dbSystems/{dbSystemId}/heatWaveClusterMemoryEstimate/actions/generater)   *generate_heat_wave_cluster_memory_estimatezxhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveClusterMemoryEstimate/GenerateHeatWaveClusterMemoryEstimaterm   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zMDbSystemClient.generate_heat_wave_cluster_memory_estimate.<locals>.<listcomp>zCgenerate_heat_wave_cluster_memory_estimate got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   zMDbSystemClient.generate_heat_wave_cluster_memory_estimate.<locals>.<dictcomp>Nr   r>   r?   r-   r.   rn   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   HeatWaveClusterMemoryEstimater   r   rU   rx   r$   r3   r%   r     st   *$

z9DbSystemClient.generate_heat_wave_cluster_memory_estimatec                    v  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||	|d|	d|||d
S | jj|||	|d|	d|||d	S )a!	  
        DEPRECATED -- please use HeatWave API instead.
        Gets information about the Analytics Cluster.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str opc_request_id: (optional)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :param str if_none_match: (optional)
            For conditional requests. In the GET call for a resource, set the
            `If-None-Match` header to the value of the ETag from a previous GET (or
            POST or PUT) response for that resource. The server will return with
            either a 304 Not Modified response if the resource has not changed, or a
            200 OK response with the updated representation.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/get_analytics_cluster.py.html>`__ to see an example of how to use get_analytics_cluster API.
        r(   rq   GETget_analytics_clusterzYhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/AnalyticsCluster/GetAnalyticsClusterr   r   r-   if_none_matchc                    r/   r$   r$   r0   r3   r$   r%   r4   ;  r5   z8DbSystemClient.get_analytics_cluster.<locals>.<listcomp>z.get_analytics_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   D  r=   z8DbSystemClient.get_analytics_cluster.<locals>.<dictcomp>Nr   r>   r?   r-   r   rA   rB   rD   zif-none-matchc                 S   rF   rG   r7   r9   r$   r$   r%   r<   P  rH   r   rI   rJ   r   r   rw   rx   r$   r3   r%   r     sr   *$

z$DbSystemClient.get_analytics_clusterc                    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  
        DEPRECATED -- please use HeatWave API instead.
        Gets the most recent Analytics Cluster memory estimate that can be used to determine a suitable
        Analytics Cluster size.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str opc_request_id: (optional)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/get_analytics_cluster_memory_estimate.py.html>`__ to see an example of how to use get_analytics_cluster_memory_estimate API.
        r(   z6/dbSystems/{dbSystemId}/analyticsClusterMemoryEstimater   %get_analytics_cluster_memory_estimatezuhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/AnalyticsClusterMemoryEstimate/GetAnalyticsClusterMemoryEstimater   r   r-   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zHDbSystemClient.get_analytics_cluster_memory_estimate.<locals>.<listcomp>z>get_analytics_cluster_memory_estimate got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   zHDbSystemClient.get_analytics_cluster_memory_estimate.<locals>.<dictcomp>Nr   r>   r?   r-   rA   rB   rD   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   r   r   rw   rx   r$   r3   r%   r   t  sp   $$
z4DbSystemClient.get_analytics_cluster_memory_estimatec                    r   )a  
        Get information about the specified DB System.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str opc_request_id: (optional)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :param str if_none_match: (optional)
            For conditional requests. In the GET call for a resource, set the
            `If-None-Match` header to the value of the ETag from a previous GET (or
            POST or PUT) response for that resource. The server will return with
            either a 304 Not Modified response if the resource has not changed, or a
            200 OK response with the updated representation.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/get_db_system.py.html>`__ to see an example of how to use get_db_system API.
        r(   ry   r   get_db_systemzIhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/GetDbSystemr   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z0DbSystemClient.get_db_system.<locals>.<listcomp>z&get_db_system got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z0DbSystemClient.get_db_system.<locals>.<dictcomp>Nr   r>   r?   r-   r   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   '  rH   r   rI   ro   r   r   rw   rx   r$   r3   r%   r     r   )$

zDbSystemClient.get_db_systemc                    r   )a  
        Gets information about the HeatWave cluster.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str opc_request_id: (optional)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :param str if_none_match: (optional)
            For conditional requests. In the GET call for a resource, set the
            `If-None-Match` header to the value of the ETag from a previous GET (or
            POST or PUT) response for that resource. The server will return with
            either a 304 Not Modified response if the resource has not changed, or a
            200 OK response with the updated representation.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/get_heat_wave_cluster.py.html>`__ to see an example of how to use get_heat_wave_cluster API.
        r(   r|   r   get_heat_wave_clusterzWhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/GetHeatWaveClusterr   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z8DbSystemClient.get_heat_wave_cluster.<locals>.<listcomp>z.get_heat_wave_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z8DbSystemClient.get_heat_wave_cluster.<locals>.<dictcomp>Nr   r>   r?   r-   r   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   ri   r   r   rw   rx   r$   r3   r%   r   K  r   z$DbSystemClient.get_heat_wave_clusterc                    r   )a  
        Gets the most recent HeatWave cluster memory estimate that can be used to determine a suitable
        HeatWave cluster size.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str opc_request_id: (optional)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/get_heat_wave_cluster_memory_estimate.py.html>`__ to see an example of how to use get_heat_wave_cluster_memory_estimate API.
        r(   z5/dbSystems/{dbSystemId}/heatWaveClusterMemoryEstimater   %get_heat_wave_cluster_memory_estimatezshttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveClusterMemoryEstimate/GetHeatWaveClusterMemoryEstimater   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zHDbSystemClient.get_heat_wave_cluster_memory_estimate.<locals>.<listcomp>z>get_heat_wave_cluster_memory_estimate got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   zHDbSystemClient.get_heat_wave_cluster_memory_estimate.<locals>.<dictcomp>Nr   r>   r?   r-   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   r   r   rw   rx   r$   r3   r%   r     sp   #$
z4DbSystemClient.get_heat_wave_cluster_memory_estimatec                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d
|v r9g d}	|d
 |	vr9td|	d|v rNddg}
|d |
vrNtd|
d|v rcddg}|d |vrctd||dt|dt||dt|dt|d
t|dt|dt|dt|dt|dt|dtd}dd t |D }d d |d!td"}d#d t |D }| jj|d$| j	d%}|d&u rt
j}|rt|t
js| j| || j |j| jj||||d'|d(|||d)
S | jj||||d'|d(|||d)	S )*a  
        Get a list of DB Systems in the specified compartment.
        The default sort order is by timeUpdated, descending.


        :param str compartment_id: (required)
            The compartment `OCID`__.

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

        :param str opc_request_id: (optional)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :param bool is_analytics_cluster_attached: (optional)
            DEPRECATED -- please use HeatWave API instead.
            If true, return only DB Systems with an Analytics Cluster attached, if false
            return only DB Systems with no Analytics Cluster attached. If not
            present, return all DB Systems.

        :param bool is_heat_wave_cluster_attached: (optional)
            If true, return only DB Systems with a HeatWave cluster attached, if false
            return only DB Systems with no HeatWave cluster attached. If not
            present, return all DB Systems.

        :param str db_system_id: (optional)
            The DB System `OCID`__.

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

        :param str display_name: (optional)
            A filter to return only the resource matching the given display name exactly.

        :param str lifecycle_state: (optional)
            DbSystem Lifecycle State

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

        :param str configuration_id: (optional)
            The requested Configuration instance.

        :param bool is_up_to_date: (optional)
            Filter instances if they are using the latest revision of the
            Configuration they are associated with.

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be provided. Time fields are default ordered as descending. Display name is default ordered as ascending.

            Allowed values are: "displayName", "timeCreated"

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

            Allowed values are: "ASC", "DESC"

        :param int limit: (optional)
            The maximum number of items to return in a paginated list call. For information about pagination, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/#API/Concepts/usingapi.htm#List_Pagination

        :param str page: (optional)
            The value of the `opc-next-page` or `opc-prev-page` response header from
            the previous list call. For information about pagination, see `List
            Pagination`__.

            __ https://docs.cloud.oracle.com/#API/Concepts/usingapi.htm#List_Pagination

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/mysql/list_db_systems.py.html>`__ to see an example of how to use list_db_systems API.
        compartmentIdrj   r   list_db_systemszRhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystemSummary/ListDbSystems)r   r   r-   is_analytics_cluster_attachedis_heat_wave_cluster_attachedrf   display_namelifecycle_stateconfiguration_idis_up_to_datesort_by
sort_orderlimitpagec                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z2DbSystemClient.list_db_systems.<locals>.<listcomp>z(list_db_systems got unknown kwargs: {!r}r   )ZCREATINGZACTIVEZINACTIVEZUPDATINGZDELETINGZDELETEDZFAILEDz7Invalid value for `lifecycle_state`, must be one of {0}r   displayNameZtimeCreatedz/Invalid value for `sort_by`, must be one of {0}r   ZASCZDESCz2Invalid value for `sort_order`, must be one of {0}r   r   rf   r   r   r   r   r   )ZisAnalyticsClusterAttachedZisHeatWaveClusterAttachedr   r(   r   ZlifecycleStateZconfigurationIdZ
isUpToDateZsortByZ	sortOrderr   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z2DbSystemClient.list_db_systems.<locals>.<dictcomp>r?   r-   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   Nzlist[DbSystemSummary]r   )	rL   rM   query_paramsrO   rQ   r   rR   rS   rT   )r   rV   rW   rX   r   r8   rY   r    r^   r   r   r_   rZ   r`   rb   rc   r   rd   re   )r!   Zcompartment_idr#   rT   rL   rM   rR   rS   rg   Zlifecycle_state_allowed_valuesZsort_by_allowed_valuesZsort_order_allowed_valuesr   rO   r   r$   r3   r%   r   !  s   Y











zDbSystemClient.list_db_systemsc                      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
  
        DEPRECATED -- please use HeatWave API instead.
        Restarts the Analytics Cluster.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/restart_analytics_cluster.py.html>`__ to see an example of how to use restart_analytics_cluster API.
        r(   z8/dbSystems/{dbSystemId}/analyticsCluster/actions/restartr)   restart_analytics_clusterz]https://docs.oracle.com/iaas/api/#/en/mysql/20190415/AnalyticsCluster/RestartAnalyticsClusterr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   $  r5   z<DbSystemClient.restart_analytics_cluster.<locals>.<listcomp>z2restart_analytics_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   -  r=   z<DbSystemClient.restart_analytics_cluster.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   :  rH   r   rI   r   rv   rU   rx   r$   r3   r%   r     r   2$


z(DbSystemClient.restart_analytics_clusterc                      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 )a1  
        Restarts the specified DB System.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param oci.mysql.models.RestartDbSystemDetails restart_db_system_details: (required)
            Optional parameters for the stop portion of the restart action.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/restart_db_system.py.html>`__ to see an example of how to use restart_db_system API.
        r(   z'/dbSystems/{dbSystemId}/actions/restartr)   restart_db_systemzMhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/RestartDbSystemr+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z4DbSystemClient.restart_db_system.<locals>.<listcomp>z*restart_db_system got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z4DbSystemClient.restart_db_system.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   	rL   rM   rN   rO   rP   r   rR   rS   rT   rU   )r!   rf   Zrestart_db_system_detailsr#   rT   rL   rM   rR   rS   rg   rN   r:   r;   rO   r   r$   r3   r%   r   ]  sv   4$


z DbSystemClient.restart_db_systemc                    r   )a
  
        Restarts the HeatWave cluster.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/restart_heat_wave_cluster.py.html>`__ to see an example of how to use restart_heat_wave_cluster API.
        r(   z7/dbSystems/{dbSystemId}/heatWaveCluster/actions/restartr)   restart_heat_wave_clusterz[https://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/RestartHeatWaveClusterr+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z<DbSystemClient.restart_heat_wave_cluster.<locals>.<listcomp>z2restart_heat_wave_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   "  r=   z<DbSystemClient.restart_heat_wave_cluster.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   /  rH   r   rI   r   rv   rU   rx   r$   r3   r%   r     r   1$


z(DbSystemClient.restart_heat_wave_clusterc                    r   )a
  
        DEPRECATED -- please use HeatWave API instead.
        Starts the Analytics Cluster.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/start_analytics_cluster.py.html>`__ to see an example of how to use start_analytics_cluster API.
        r(   z6/dbSystems/{dbSystemId}/analyticsCluster/actions/startr)   start_analytics_clusterz[https://docs.oracle.com/iaas/api/#/en/mysql/20190415/AnalyticsCluster/StartAnalyticsClusterr+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z:DbSystemClient.start_analytics_cluster.<locals>.<listcomp>z0start_analytics_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z:DbSystemClient.start_analytics_cluster.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rv   rU   rx   r$   r3   r%   r   R  r   z&DbSystemClient.start_analytics_clusterc                    r   )a
  
        Start the specified DB System.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/start_db_system.py.html>`__ to see an example of how to use start_db_system API.
        r(   z%/dbSystems/{dbSystemId}/actions/startr)   start_db_systemzKhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/StartDbSystemr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   
	  r5   z2DbSystemClient.start_db_system.<locals>.<listcomp>z(start_db_system got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   	  r=   z2DbSystemClient.start_db_system.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<    	  rH   r   rI   r   rv   rU   rx   r$   r3   r%   r     r   zDbSystemClient.start_db_systemc                    r   )a
  
        Starts the HeatWave cluster.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/start_heat_wave_cluster.py.html>`__ to see an example of how to use start_heat_wave_cluster API.
        r(   z5/dbSystems/{dbSystemId}/heatWaveCluster/actions/startr)   start_heat_wave_clusterzYhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/StartHeatWaveClusterr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   	  r5   z:DbSystemClient.start_heat_wave_cluster.<locals>.<listcomp>z0start_heat_wave_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   	  r=   z:DbSystemClient.start_heat_wave_cluster.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   	  rH   r   rI   r   rv   rU   rx   r$   r3   r%   r   C	  r   z&DbSystemClient.start_heat_wave_clusterc                    r   )a
  
        DEPRECATED -- please use HeatWave API instead.
        Stops the Analytics Cluster.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/stop_analytics_cluster.py.html>`__ to see an example of how to use stop_analytics_cluster API.
        r(   z5/dbSystems/{dbSystemId}/analyticsCluster/actions/stopr)   stop_analytics_clusterzZhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/AnalyticsCluster/StopAnalyticsClusterr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   	  r5   z9DbSystemClient.stop_analytics_cluster.<locals>.<listcomp>z/stop_analytics_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   
  r=   z9DbSystemClient.stop_analytics_cluster.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   
  rH   r   rI   r   rv   rU   rx   r$   r3   r%   r   	  r   z%DbSystemClient.stop_analytics_clusterc                    r   )a7  
        Stops the specified DB System.

        A stopped DB System is not billed.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param oci.mysql.models.StopDbSystemDetails stop_db_system_details: (required)
            Optional parameters for the stop action.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/stop_db_system.py.html>`__ to see an example of how to use stop_db_system API.
        r(   z$/dbSystems/{dbSystemId}/actions/stopr)   stop_db_systemzJhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/StopDbSystemr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   x
  r5   z1DbSystemClient.stop_db_system.<locals>.<listcomp>z'stop_db_system got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   
  r=   z1DbSystemClient.stop_db_system.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   
  rH   r   rI   r   r   rU   )r!   rf   Zstop_db_system_detailsr#   rT   rL   rM   rR   rS   rg   rN   r:   r;   rO   r   r$   r3   r%   r   4
  sv   6$


zDbSystemClient.stop_db_systemc                    r   )a
  
        Stops the HeatWave cluster.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/stop_heat_wave_cluster.py.html>`__ to see an example of how to use stop_heat_wave_cluster API.
        r(   z4/dbSystems/{dbSystemId}/heatWaveCluster/actions/stopr)   stop_heat_wave_clusterzXhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/StopHeatWaveClusterr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   
  r5   z9DbSystemClient.stop_heat_wave_cluster.<locals>.<listcomp>z/stop_heat_wave_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   
  r=   z9DbSystemClient.stop_heat_wave_cluster.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rv   rU   rx   r$   r3   r%   r   
  r   z%DbSystemClient.stop_heat_wave_clusterc                    v  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||
|||	d|||d
S | jj|||
|||	d|||d	S )al	  
        DEPRECATED -- please use HeatWave API instead.
        Updates the Analytics Cluster.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param oci.mysql.models.UpdateAnalyticsClusterDetails update_analytics_cluster_details: (required)
            Request to update an Analytics Cluster.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/update_analytics_cluster.py.html>`__ to see an example of how to use update_analytics_cluster API.
        r(   rq   PUTupdate_analytics_clusterz\https://docs.oracle.com/iaas/api/#/en/mysql/20190415/AnalyticsCluster/UpdateAnalyticsClusterrt   c                    r/   r$   r$   r0   r3   r$   r%   r4   e  r5   z;DbSystemClient.update_analytics_cluster.<locals>.<listcomp>z1update_analytics_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   n  r=   z;DbSystemClient.update_analytics_cluster.<locals>.<dictcomp>Nr   r>   r?   r,   r-   ru   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   z  rH   r   rI   r   r   rw   )r!   rf   Z update_analytics_cluster_detailsr#   rT   rL   rM   rR   rS   rg   rN   r:   r;   rO   r   r$   r3   r%   r   +  sr   -$

z'DbSystemClient.update_analytics_clusterc                    r   )a
  
        Update the configuration of a DB System.

        Updating different fields in the DB System will have different results
        on the uptime of the DB System. For example, changing the displayName of
        a DB System will take effect immediately, but changing the shape of a
        DB System is an asynchronous operation that involves provisioning new
        Compute resources, pausing the DB System and migrating storage
        before making the DB System available again.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param oci.mysql.models.UpdateDbSystemDetails update_db_system_details: (required)
            Request to update a DB System.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/update_db_system.py.html>`__ to see an example of how to use update_db_system API.
        r(   ry   r   update_db_systemzLhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/UpdateDbSystemrt   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z3DbSystemClient.update_db_system.<locals>.<listcomp>z)update_db_system got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z3DbSystemClient.update_db_system.<locals>.<dictcomp>Nr   r>   r?   r,   r-   ru   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   r   rw   )r!   rf   Zupdate_db_system_detailsr#   rT   rL   rM   rR   rS   rg   rN   r:   r;   rO   r   r$   r3   r%   r     sr   3$

zDbSystemClient.update_db_systemc                    r   )a1	  
        Updates the HeatWave cluster.


        :param str db_system_id: (required)
            The DB System `OCID`__.

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

        :param oci.mysql.models.UpdateHeatWaveClusterDetails update_heat_wave_cluster_details: (required)
            Request to update a HeatWave cluster.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call for a
            resource, set the `If-Match` header 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)
            Customer-defined unique identifier for the request. If you need to
            contact Oracle about a specific request, please provide the request
            ID that you supplied in this header with the request.

        :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/mysql/update_heat_wave_cluster.py.html>`__ to see an example of how to use update_heat_wave_cluster API.
        r(   r|   r   update_heat_wave_clusterzZhttps://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/UpdateHeatWaveClusterrt   c                    r/   r$   r$   r0   r3   r$   r%   r4   P  r5   z;DbSystemClient.update_heat_wave_cluster.<locals>.<listcomp>z1update_heat_wave_cluster got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   Y  r=   z;DbSystemClient.update_heat_wave_cluster.<locals>.<dictcomp>Nr   r>   r?   r,   r-   ru   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   e  rH   r   rI   r   r   rw   )r!   rf   Z update_heat_wave_cluster_detailsr#   rT   rL   rM   rR   rS   rg   rN   r:   r;   rO   r   r$   r3   r%   r     sr   ,$

z'DbSystemClient.update_heat_wave_clusterN)__name__
__module____qualname____doc__r&   r*   rh   rk   rs   rz   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r$   r$   r$   r%   r      s>    X eonnrqphoog Dy}xyxxyxsyr   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   