HEX
Server: Apache
System: Linux box5514.bluehost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: smqcdvmy (3893)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/oci/psql/__pycache__/postgresql_client.cpython-39.pyc
a

���f2�@s�ddlmZddlmZddlmZddlmZmZddlm	Z	ddl
mZmZddl
mZddlmZmZmZdd	lmZdd
lmZddlmZed
�ZGdd�de�ZdS)�)�absolute_import)�requests)�six)�retry�circuit_breaker)�
BaseClient)�get_config_value_or_default�validate_config)�Signer)�Sentinel�#get_signer_from_authentication_type�AUTHENTICATION_TYPE_FIELD_NAME)�InvalidAlloyConfig)�OCI_SDK_ENABLED_SERVICES_SET�)�psql_type_mappingZMissingc@s eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4d5�Zd6d7�Zd8d9�Zd:d;�Z d<d=�Z!d>d?�Z"d@dA�Z#dBdC�Z$dDdE�Z%dFS)G�PostgresqlClientz�
    Use the OCI Database with PostgreSQL API to manage resources such as database systems, database nodes, backups, and configurations.
    For information, see the user guide documentation for the [service](/iaas/Content/postgresql/home.htm).
    c
Ks&t�d�std��t||�d�d�d|vr6|d}nDt|vrHt|�}n2t|d|d|d|�d�t|d	�|�d
�d�}d|�d
�ddi|�dd�|�dt	j
�|�d�d�}d|vr�|�d�|d<|�d�dur�t	j|d<d|vr�|�d�|d<td||t
fi|��|_|�d�|_|�d�|_dS)a�
        Creates a new service client

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

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

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

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

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

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

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

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

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

        :param 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.
        ZpsqlaThe Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service�signer)r�tenancy�user�fingerprintZkey_file�pass_phraseZkey_content)rrrZprivate_key_file_locationrZprivate_key_contentT�service_endpointz	/20220915z3https://postgresql.{region}.oci.{secondLevelDomain}�skip_deserializationF�circuit_breaker_strategy�5client_level_realm_specific_endpoint_template_enabled)Zregional_clientr�	base_pathZservice_endpoint_templateZ#service_endpoint_template_per_realmrrr�timeoutN�allow_control_charsZ
postgresql�retry_strategy�circuit_breaker_callback)rZis_service_enabledrr	�getr
rr
rrZGLOBAL_CIRCUIT_BREAKER_STRATEGYZ DEFAULT_CIRCUIT_BREAKER_STRATEGYrr�base_clientrr )�selfZconfig�kwargsrZbase_client_init_kwargs�r%�>/usr/lib/python3.9/site-packages/oci/psql/postgresql_client.py�__init__sB3


�

�

zPostgresqlClient.__init__cs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rpt|t
j��sH|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a9

        Moves a backup from one compartment to another. When provided, If-Match is checked against ETag values of the resource.


        :param str backup_id: (required)
            A unique identifier for the backup.

        :param oci.psql.models.ChangeBackupCompartmentDetails change_backup_compartment_details: (required)
            The information to be updated.

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

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

        :param 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, `retrytoken` could be expired or invalidated.

        :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/psql/change_backup_compartment.py.html>`__ to see an example of how to use change_backup_compartment API.
        �backupIdz-/backups/{backupId}/actions/changeCompartment�POST�change_backup_compartmentzXhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/Backup/ChangeBackupCompartment�rr�if_match�opc_request_id�opc_retry_tokencsg|]}|�vr|�qSr%r%��.0Z_key�Zexpected_kwargsr%r&�
<listcomp>��z>PostgresqlClient.change_backup_compartment.<locals>.<listcomp>z.change_backup_compartment got unknown kwargs: cSsi|]\}}|tur||�qSr%��missing�r0�k�vr%r%r&�
<dictcomp>�r3z>PostgresqlClient.change_backup_compartment.<locals>.<dictcomp>Nr�
Parameter �+ cannot be None, whitespace or empty string�application/jsonr,r-r.��accept�content-type�if-match�opc-request-id�opc-retry-tokencSs&i|]\}}|tur|dur||�qS�Nr4r6r%r%r&r9�r3r�Zoperation_retry_strategyZclient_retry_strategyr�	�
resource_path�method�path_params�
header_params�bodyr�operation_name�api_reference_link�required_arguments�r�iterkeys�
ValueError�	iteritems�
isinstance�string_types�len�stripr!r5r"�get_preferred_retry_strategyrr�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#�	backup_idZ!change_backup_compartment_detailsr$rMrFrGrKrL�extra_kwargsrHr7r8rIrr%r1r&r*xst+��$


��
��z*PostgresqlClient.change_backup_compartmentcs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rpt|t
j��sH|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)aj

        Moves a configuration from one compartment to another. When provided, If-Match is checked against ETag values of the resource.


        :param str configuration_id: (required)
            A unique identifier for the configuration.

        :param oci.psql.models.ChangeConfigurationCompartmentDetails change_configuration_compartment_details: (required)
            The information to be updated.

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

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

        :param 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, `retrytoken` could be expired or invalidated.

        :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/psql/change_configuration_compartment.py.html>`__ to see an example of how to use change_configuration_compartment API.
        �configurationIdz;/configurations/{configurationId}/actions/changeCompartmentr)� change_configuration_compartmentzfhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/Configuration/ChangeConfigurationCompartmentr+csg|]}|�vr|�qSr%r%r/r1r%r&r2%r3zEPostgresqlClient.change_configuration_compartment.<locals>.<listcomp>z5change_configuration_compartment got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9.r3zEPostgresqlClient.change_configuration_compartment.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9;r3rrDrrErN)r#�configuration_idZ(change_configuration_compartment_detailsr$rMrFrGrKrLr_rHr7r8rIrr%r1r&ra�st+��$


��
��z1PostgresqlClient.change_configuration_compartmentcs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rpt|t
j��sH|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)aY

        Moves a database system from one compartment to another. When provided, If-Match is checked against ETag values of the resource.


        :param str db_system_id: (required)
            A unique identifier for the database system.

        :param oci.psql.models.ChangeDbSystemCompartmentDetails change_db_system_compartment_details: (required)
            The information to be updated.

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

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

        :param 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, `retrytoken` could be expired or invalidated.

        :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/psql/change_db_system_compartment.py.html>`__ to see an example of how to use change_db_system_compartment API.
        �
dbSystemIdz1/dbSystems/{dbSystemId}/actions/changeCompartmentr)�change_db_system_compartmentz\https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/ChangeDbSystemCompartmentr+csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3zAPostgresqlClient.change_db_system_compartment.<locals>.<listcomp>z1change_db_system_compartment got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3zAPostgresqlClient.change_db_system_compartment.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrrErN)r#�db_system_idZ$change_db_system_compartment_detailsr$rMrFrGrKrLr_rHr7r8rIrr%r1r&rd`st+��$


��
��z-PostgresqlClient.change_db_system_compartmentcsg}d}d}d}d}gd���fdd�t�|�D�}|rFtd|����d	d	|�d
t�|�dt�d�}	d
d�t�|	�D�}	|jj|�d�|jd�}
|
dur�t	j
}
|
r�t|
t	j�s�|j�
|	�|j�|	�|
�|j�|
j|jj|||	||�d�|||d�	S|jj|||	||�d�|||d�SdS)a�
        Creates a new backup.


        :param oci.psql.models.CreateBackupDetails create_backup_details: (required)
            Details for the new backup.

        :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, `retrytoken` could be expired or invalidated.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/create_backup.py.html>`__ to see an example of how to use create_backup API.
        �/backupsr)�
create_backupzMhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/Backup/CreateBackup�rrr.r-csg|]}|�vr|�qSr%r%r/r1r%r&r2r3z2PostgresqlClient.create_backup.<locals>.<listcomp>z"create_backup got unknown kwargs: r<r.r-�r>r?rBrAcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9r3z2PostgresqlClient.create_backup.<locals>.<dictcomp>rrDNr)rFrGrIrJrrKrLrM�rrOrPr!r5rQr"rVrrrWrRrXrYrZr[r r\r])r#Zcreate_backup_detailsr$rMrFrGrKrLr_rIrr%r1r&rg�sb$�

����zPostgresqlClient.create_backupcs"g}d}d}d}d}gd���fdd�t�|�D�}|rFtd|����d	d	|�d
t�|�dt�d�}	d
d�t�|	�D�}	|jj|�d�|jd�}
|
dur�t	j
}
|
r�t|
t	j�s�|j�
|	�|j�|	�|
�|j�|
j|jj|||	|d|�d�|||d�
S|jj|||	|d|�d�|||d�	SdS)a+
        Creates a new configuration.


        :param oci.psql.models.CreateConfigurationDetails create_configuration_details: (required)
            Details for the new configuration.

        :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, `retrytoken` could be expired or invalidated.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/create_configuration.py.html>`__ to see an example of how to use create_configuration API.
        �/configurationsr)�create_configurationz[https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/Configuration/CreateConfigurationrhcsg|]}|�vr|�qSr%r%r/r1r%r&r2dr3z9PostgresqlClient.create_configuration.<locals>.<listcomp>z)create_configuration got unknown kwargs: r<r.r-ricSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9or3z9PostgresqlClient.create_configuration.<locals>.<dictcomp>rrDN�
Configurationr�	rFrGrIrJ�
response_typerrKrLrMrj)r#Zcreate_configuration_detailsr$rMrFrGrKrLr_rIrr%r1r&rl3sf$�

����z%PostgresqlClient.create_configurationcs"g}d}d}d}d}gd���fdd�t�|�D�}|rFtd|����d	d	|�d
t�|�dt�d�}	d
d�t�|	�D�}	|jj|�d�|jd�}
|
dur�t	j
}
|
r�t|
t	j�s�|j�
|	�|j�|	�|
�|j�|
j|jj|||	|d|�d�|||d�
S|jj|||	|d|�d�|||d�	SdS)a
        Creates a new database system.


        :param oci.psql.models.CreateDbSystemDetails create_db_system_details: (required)
            Details for the new database system.

        :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, `retrytoken` could be expired or invalidated.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/create_db_system.py.html>`__ to see an example of how to use create_db_system API.
        �
/dbSystemsr)�create_db_systemzQhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/CreateDbSystemrhcsg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z5PostgresqlClient.create_db_system.<locals>.<listcomp>z%create_db_system got unknown kwargs: r<r.r-ricSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3z5PostgresqlClient.create_db_system.<locals>.<dictcomp>rrDN�DbSystemrrnrj)r#Zcreate_db_system_detailsr$rMrFrGrKrLr_rIrr%r1r&rq�sf$�

����z!PostgresqlClient.create_db_systemcs~dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
du�rt
j}
|
�rXt|
t
j��s2|j
�|�|
�|j�|
j|j
j|||	||�d�|||d�	S|j
j|||	||�d�|||d�SdS)a^
        Deletes a backup by identifier.


        :param str backup_id: (required)
            A unique identifier for the backup.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/delete_backup.py.html>`__ to see an example of how to use delete_backup API.
        r(�/backups/{backupId}�DELETE�
delete_backupzMhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/Backup/DeleteBackup�rrr,r-csg|]}|�vr|�qSr%r%r/r1r%r&r2$r3z2PostgresqlClient.delete_backup.<locals>.<listcomp>z"delete_backup got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9-r3z2PostgresqlClient.delete_backup.<locals>.<dictcomp>Nrr:r;r<r,r-�r>r?r@rAcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r99r3rrDr�rFrGrHrIrrKrLrM�rrOrPrQrRrSrTrUr!r5r"rVrrrWrXrZr[r r\r]�r#r^r$rMrFrGrKrLr_rHr7r8rIrr%r1r&ru�sl"��$

��
��zPostgresqlClient.delete_backupcs~dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
du�rt
j}
|
�rXt|
t
j��s2|j
�|�|
�|j�|
j|j
j|||	||�d�|||d�	S|j
j|||	||�d�|||d�SdS)a�
        Deletes a configuration by identifier.


        :param str configuration_id: (required)
            A unique identifier for the configuration.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/delete_configuration.py.html>`__ to see an example of how to use delete_configuration API.
        r`�!/configurations/{configurationId}rt�delete_configurationz[https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/Configuration/DeleteConfigurationrvcsg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z9PostgresqlClient.delete_configuration.<locals>.<listcomp>z)delete_configuration got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z9PostgresqlClient.delete_configuration.<locals>.<dictcomp>Nrr:r;r<r,r-rwcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrrxry�r#rbr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r|[sl"��$

��
��z%PostgresqlClient.delete_configurationcs~dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
du�rt
j}
|
�rXt|
t
j��s2|j
�|�|
�|j�|
j|j
j|||	||�d�|||d�	S|j
j|||	||�d�|||d�SdS)ay
        Deletes a database system by identifier.


        :param str db_system_id: (required)
            A unique identifier for the database system.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/delete_db_system.py.html>`__ to see an example of how to use delete_db_system API.
        rc�/dbSystems/{dbSystemId}rt�delete_db_systemzQhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/DeleteDbSystemrvcsg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z5PostgresqlClient.delete_db_system.<locals>.<listcomp>z%delete_db_system got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z5PostgresqlClient.delete_db_system.<locals>.<dictcomp>Nrr:r;r<r,r-rwcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9r3rrDrrxry�r#rer$rMrFrGrKrLr_rHr7r8rIrr%r1r&r�sl"��$

��
��z!PostgresqlClient.delete_db_systemcs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rpt|t
j��sH|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a

        Runs a failover operation. Optionally, specify the desired AD for regions with three ADs.


        :param str db_system_id: (required)
            A unique identifier for the database system.

        :param oci.psql.models.FailoverDbSystemDetails failover_db_system_details: (required)
            The information to be updated.

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

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

        :param 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, `retrytoken` could be expired or invalidated.

        :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/psql/failover_db_system.py.html>`__ to see an example of how to use failover_db_system API.
        rcz(/dbSystems/{dbSystemId}/actions/failoverr)�failover_db_systemzShttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/FailoverDbSystemr+csg|]}|�vr|�qSr%r%r/r1r%r&r2`r3z7PostgresqlClient.failover_db_system.<locals>.<listcomp>z'failover_db_system got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9ir3z7PostgresqlClient.failover_db_system.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9vr3rrDrrErN)r#reZfailover_db_system_detailsr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r�'st+��$


��
��z#PostgresqlClient.failover_db_systemcsvdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
dur�t
j}
|
�rNt|
t
j��s&|j
�|�|
�|j�|
j|j
j|||	|d|�d�|||d�
S|j
j|||	|d|�d�|||d�	SdS)a
        Gets a backup by identifier.


        :param str backup_id: (required)
            A unique identifier for the backup.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/get_backup.py.html>`__ to see an example of how to use get_backup API.
        r(rs�GET�
get_backupzJhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/Backup/GetBackup�rrr-csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z/PostgresqlClient.get_backup.<locals>.<listcomp>zget_backup got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z/PostgresqlClient.get_backup.<locals>.<dictcomp>Nrr:r;r<r-�r>r?rAcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrD�Backupr�	rFrGrHrIrorrKrLrMryrzr%r1r&r��sn��$
����zPostgresqlClient.get_backupcsvdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
dur�t
j}
|
�rNt|
t
j��s&|j
�|�|
�|j�|
j|j
j|||	|d|�d�|||d�
S|j
j|||	|d|�d�|||d�	SdS)a.
        Gets a configuration by identifier.


        :param str configuration_id: (required)
            A unique identifier for the configuration.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/get_configuration.py.html>`__ to see an example of how to use get_configuration API.
        r`r{r��get_configurationzXhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/Configuration/GetConfigurationr�csg|]}|�vr|�qSr%r%r/r1r%r&r2'r3z6PostgresqlClient.get_configuration.<locals>.<listcomp>z&get_configuration got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r90r3z6PostgresqlClient.get_configuration.<locals>.<dictcomp>Nrr:r;r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9;r3rrDrmrr�ryr}r%r1r&r��sn��$
����z"PostgresqlClient.get_configurationcsvdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
dur�t
j}
|
�rNt|
t
j��s&|j
�|�|
�|j�|
j|j
j|||	|d|�d�|||d�
S|j
j|||	|d|�d�|||d�	SdS)aC
        Gets the database system connection details.


        :param str db_system_id: (required)
            A unique identifier for the database system.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/get_connection_details.py.html>`__ to see an example of how to use get_connection_details API.
        rcz)/dbSystems/{dbSystemId}/connectionDetailsr��get_connection_detailsz`https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/ConnectionDetails/GetConnectionDetailsr�csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z;PostgresqlClient.get_connection_details.<locals>.<listcomp>z+get_connection_details got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z;PostgresqlClient.get_connection_details.<locals>.<dictcomp>Nrr:r;r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDZConnectionDetailsrr�ryr�r%r1r&r�_sn��$
����z'PostgresqlClient.get_connection_detailsc
s�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qnd|vr�dg}|dD]}
|
|vr�td|����q�d|j�	|�
dt�d�i}dd�t�|�D�}dd|�
dt�d�}dd�t�|�D�}|jj|�
d�|j
d�}|du�r\tj}|�r�t|tj��s�|j�|�|�|j�|j|jj|||	||d|�
d�|||d�S|jj|||	||d|�
d�|||d�
SdS)a�
        Gets a database system by identifier.


        :param str db_system_id: (required)
            A unique identifier for the database system.

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

        :param list[str] excluded_fields: (optional)
            A filter to exclude database configuration when this query parameter is set to OverrideDbConfig.

            Allowed values are: "dbConfigurationParams"

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/get_db_system.py.html>`__ to see an example of how to use get_db_system API.
        rcr~r��
get_db_systemzNhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/GetDbSystem)rrr-�excluded_fieldscsg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z2PostgresqlClient.get_db_system.<locals>.<listcomp>z"get_db_system got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z2PostgresqlClient.get_db_system.<locals>.<dictcomp>Nrr:r;r�ZdbConfigurationParamsz4Invalid value for `excluded_fields`, must be one of ZexcludedFieldsZmulticSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9r3r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9r3rrDrrr�
rFrGrH�query_paramsrIrorrKrLrM)rrOrPrQrRrSrTrUr"Z generate_collection_format_paramr!r5rVrrrWrXrZr[r r\r])r#rer$rMrFrGrKrLr_rHr7r8Zexcluded_fields_allowed_valuesZexcluded_fields_itemr�rIrr%r1r&r��s�#��$��
��
�
�zPostgresqlClient.get_db_systemcsvdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
dur�t
j}
|
�rNt|
t
j��s&|j
�|�|
�|j�|
j|j
j|||	|d|�d�|||d�
S|j
j|||	|d|�d�|||d�	SdS)aU
        Gets a default configuration by identifier.


        :param str default_configuration_id: (required)
            A unique identifier for the configuration.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/get_default_configuration.py.html>`__ to see an example of how to use get_default_configuration API.
        ZdefaultConfigurationIdz//defaultConfigurations/{defaultConfigurationId}r��get_default_configurationzfhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DefaultConfiguration/GetDefaultConfigurationr�csg|]}|�vr|�qSr%r%r/r1r%r&r2br3z>PostgresqlClient.get_default_configuration.<locals>.<listcomp>z.get_default_configuration got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9kr3z>PostgresqlClient.get_default_configuration.<locals>.<dictcomp>Nrr:r;r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9vr3rrDZDefaultConfigurationrr�ry)r#Zdefault_configuration_idr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r�8sn��$
����z*PostgresqlClient.get_default_configurationcsvdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
dur�t
j}
|
�rNt|
t
j��s&|j
�|�|
�|j�|
j|j
j|||	|d|�d�|||d�
S|j
j|||	|d|�d�|||d�	SdS)aP
        Gets the primary database instance node details.


        :param str db_system_id: (required)
            A unique identifier for the database system.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/get_primary_db_instance.py.html>`__ to see an example of how to use get_primary_db_instance API.
        rcz)/dbSystems/{dbSystemId}/primaryDbInstancer��get_primary_db_instancezWhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/GetPrimaryDbInstancer�csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z<PostgresqlClient.get_primary_db_instance.<locals>.<listcomp>z,get_primary_db_instance got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z<PostgresqlClient.get_primary_db_instance.<locals>.<dictcomp>Nrr:r;r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDZPrimaryDbInstanceDetailsrr�ryr�r%r1r&r��sn��$
����z(PostgresqlClient.get_primary_db_instancecsvdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
dur�t
j}
|
�rNt|
t
j��s&|j
�|�|
�|j�|
j|j
j|||	|d|�d�|||d�
S|j
j|||	|d|�d�|||d�	SdS)a2
        Gets details of the work request with the given ID.


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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
        �
workRequestIdz/workRequests/{workRequestId}r��get_work_requestzThttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/WorkRequest/GetWorkRequestr�csg|]}|�vr|�qSr%r%r/r1r%r&r2&r3z5PostgresqlClient.get_work_request.<locals>.<listcomp>z%get_work_request got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9/r3z5PostgresqlClient.get_work_request.<locals>.<dictcomp>Nrr:r;r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9:r3rrDZWorkRequestrr�ry)r#�work_request_idr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r��sn��$
����z!PostgresqlClient.get_work_requestcsg}d}d}d}d}gd���fdd�t�|�D�}|rFtd|����d	|vrpgd
�}|d	|vrptd|����d|vr�d
dg}	|d|	vr�td|	����d|vr�ddg}
|d|
vr�td|
����|�dt�|�dt�|�dt�|�d	t�|�dt�|�dt�|�dt�|�dt�|�dt�|�dt�|�dt�d�}dd�t�|�D�}dd|�d t�d!�}d"d�t�|�D�}|jj|�d#�|jd$�}
|
d%u�r�t	j
}
|
�r�t|
t	j��s�|j�
|�|
�|j�|
j|jj||||d&|�d'�|||d(�
S|jj||||d&|�d'�|||d(�	Sd%S))a�
        Returns a list of backups.


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

        :param datetime time_started: (optional)
            The start date for getting backups. An `RFC 3339`__ formatted datetime string.

            __ https://tools.ietf.org/rfc/rfc3339

        :param datetime time_ended: (optional)
            The end date for getting backups. An `RFC 3339`__ formatted datetime string.

            __ https://tools.ietf.org/rfc/rfc3339

        :param str lifecycle_state: (optional)
            A filter to return only resources if their `lifecycleState` matches the given `lifecycleState`.

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

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

        :param str backup_id: (optional)
            A unique identifier for the backup.

        :param str id: (optional)
            A unique identifier for the database system.

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

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

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

            Allowed values are: "ASC", "DESC"

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

            Allowed values are: "timeCreated", "displayName"

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/list_backups.py.html>`__ to see an example of how to use list_backups API.
        rfr��list_backupszVhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/BackupCollection/ListBackups)rr�compartment_id�time_started�
time_ended�lifecycle_state�display_namer^�id�limit�page�
sort_order�sort_byr-csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z1PostgresqlClient.list_backups.<locals>.<listcomp>z!list_backups got unknown kwargs: r�)�CREATING�ACTIVE�DELETING�DELETED�FAILED�4Invalid value for `lifecycle_state`, must be one of r��ASC�DESC�/Invalid value for `sort_order`, must be one of r��timeCreated�displayName�,Invalid value for `sort_by`, must be one of r�r�r�r�r^r�r�r�)�
compartmentIdZtimeStartedZ	timeEnded�lifecycleStater�r(r�r�r��	sortOrder�sortBycSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3z1PostgresqlClient.list_backups.<locals>.<dictcomp>r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDNZBackupCollectionr�	rFrGr�rIrorrKrLrM�rrOrPr!r5rQr"rVrrrWrRrXrZr[r r\r]�r#r$rMrFrGrKrLr_Zlifecycle_state_allowed_values�sort_order_allowed_values�sort_by_allowed_valuesr�rIrr%r1r&r�^s�F����










�

��
��zPostgresqlClient.list_backupsc
sg}d}d}d}d}gd���fdd�t�|�D�}|rFtd|����d	|vrpgd
�}|d	|vrptd|����d|vr�d
dg}	|d|	vr�td|	����d|vr�ddg}
|d|
vr�td|
����|�dt�|�d	t�|�dt�|�dt�|�dt�|�dt�|�dt�|�dt�|�dt�|�dt�d�
}dd�t�|�D�}dd|�dt�d �}d!d�t�|�D�}|jj|�d"�|jd#�}
|
d$u�r�t	j
}
|
�r�t|
t	j��s�|j�
|�|
�|j�|
j|jj||||d%|�d&�|||d'�
S|jj||||d%|�d&�|||d'�	Sd$S)(a�
        Returns a list of configurations.


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

        :param str lifecycle_state: (optional)
            A filter to return only resources if their `lifecycleState` matches the given `lifecycleState`.

            Allowed values are: "ACTIVE", "DELETING", "DELETED", "FAILED"

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

        :param str db_version: (optional)
            Version of the PostgreSQL database, such as 14.9.

        :param str shape: (optional)
            The name of the shape for the configuration.
            Example: `VM.Standard.E4.Flex`

        :param str configuration_id: (optional)
            A unique identifier for the configuration.

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

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

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

            Allowed values are: "ASC", "DESC"

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

            Allowed values are: "timeCreated", "displayName"

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/list_configurations.py.html>`__ to see an example of how to use list_configurations API.
        rkr��list_configurationszdhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/ConfigurationCollection/ListConfigurations)
rrr�r�r��
db_version�shaperbr�r�r�r�r-csg|]}|�vr|�qSr%r%r/r1r%r&r2cr3z8PostgresqlClient.list_configurations.<locals>.<listcomp>z(list_configurations got unknown kwargs: r��r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rbr�r�)
r�r�r��	dbVersionr�r`r�r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3z8PostgresqlClient.list_configurations.<locals>.<dictcomp>r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDNZConfigurationCollectionrr�r�r�r%r1r&r�
s�@����









�
��
��z$PostgresqlClient.list_configurationscs�g}d}d}d}d}gd���fdd�t�|�D�}|rFtd|����d	|vrpgd
�}|d	|vrptd|����d|vr�d
dg}	|d|	vr�td|	����d|vr�ddg}
|d|
vr�td|
����|�dt�|�d	t�|�dt�|�dt�|�dt�|�dt�|�dt�|�dt�d�}dd�t�|�D�}dd|�dt�d�}dd�t�|�D�}|jj|�d �|jd!�}
|
d"u�r~t	j
}
|
�r�t|
t	j��s�|j�
|�|
�|j�|
j|jj||||d#|�d$�|||d%�
S|jj||||d#|�d$�|||d%�	Sd"S)&a�

        Returns a list of database systems.


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

        :param str lifecycle_state: (optional)
            A filter to return only resources if their `lifecycleState` matches the given `lifecycleState`.

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

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

        :param str id: (optional)
            A unique identifier for the database system.

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

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

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

            Allowed values are: "ASC", "DESC"

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

            Allowed values are: "timeCreated", "displayName"

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/list_db_systems.py.html>`__ to see an example of how to use list_db_systems API.
        rpr��list_db_systemszZhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystemCollection/ListDbSystems)rrr�r�r�r�r�r�r�r�r-csg|]}|�vr|�qSr%r%r/r1r%r&r2	r3z4PostgresqlClient.list_db_systems.<locals>.<listcomp>z$list_db_systems got unknown kwargs: r�)r�ZUPDATINGr�ZINACTIVEr�r�r�ZNEEDS_ATTENTIONr�r�r�r�r�r�r�r�r�r�r�r�r�r�)r�r�r�r�r�r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9%	r3z4PostgresqlClient.list_db_systems.<locals>.<dictcomp>r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9,	r3rrDNZDbSystemCollectionrr�r�r�r%r1r&r��s�9
����







�

��
��z PostgresqlClient.list_db_systemscsg}d}d}d}d}gd���fdd�t�|�D�}|rFtd|����d	|vrpgd
�}|d	|vrptd|����d|vr�d
dg}	|d|	vr�td|	����d|vr�ddg}
|d|
vr�td|
����|�d	t�|�dt�|�dt�|�dt�|�dt�|�dt�|�dt�|�dt�|�dt�d�	}dd�t�|�D�}dd|�dt�d�}d d�t�|�D�}|jj|�d!�|jd"�}
|
d#u�r�t	j
}
|
�r�t|
t	j��s�|j�
|�|
�|j�|
j|jj||||d$|�d%�|||d&�
S|jj||||d$|�d%�|||d&�	Sd#S)'ar
        Returns a list of default configurations.


        :param str lifecycle_state: (optional)
            A filter to return only resources if their `lifecycleState` matches the given `lifecycleState`.

            Allowed values are: "ACTIVE", "DELETING", "DELETED", "FAILED"

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

        :param str db_version: (optional)
            Version of the PostgreSQL database, such as 14.9.

        :param str shape: (optional)
            The name of the shape for the configuration.
            Example: `VM.Standard.E4.Flex`

        :param str configuration_id: (optional)
            A unique identifier for the configuration.

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

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

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

            Allowed values are: "ASC", "DESC"

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

            Allowed values are: "timeCreated", "displayName"

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/list_default_configurations.py.html>`__ to see an example of how to use list_default_configurations API.
        z/defaultConfigurationsr��list_default_configurationszrhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DefaultConfigurationCollection/ListDefaultConfigurations)rrr�r�r�r�rbr�r�r�r�r-csg|]}|�vr|�qSr%r%r/r1r%r&r2�	r3z@PostgresqlClient.list_default_configurations.<locals>.<listcomp>z0list_default_configurations got unknown kwargs: r�r�r�r�r�r�r�r�r�r�r�r�r�r�rbr�r�)	r�r�r�r�r`r�r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�	r3z@PostgresqlClient.list_default_configurations.<locals>.<dictcomp>r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�	r3rrDNZDefaultConfigurationCollectionrr�r�r�r%r1r&r�P	s�=����








�
��
��z,PostgresqlClient.list_default_configurationsc
s�g}d}d}d}d}gd���fdd�t�|�D�}|rFtd|����d	|vrpd
dg}|d	|vrptd|����d
|vr�ddg}	|d
|	vr�td|	����|�dt�|�dt�|�dt�|�dt�|�d	t�|�d
t�d�}
dd�t�|
�D�}
dd|�dt�d�}dd�t�|�D�}|jj|�d�|jd�}|du�r@t	j
}|�r�t|t	j��sl|j�
|�|�|j�|j|jj|||
|d|�d �|||d!�
S|jj|||
|d|�d �|||d!�	SdS)"aV	
        Returns the list of shapes allowed in the region.


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

        :param str id: (optional)
            A filter to return the feature by the shape name.

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

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

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

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

            Allowed values are: "ASC", "DESC"

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

            Allowed values are: "timeCreated", "displayName"

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/list_shapes.py.html>`__ to see an example of how to use list_shapes API.
        z/shapesr��list_shapeszQhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/ShapeSummary/ListShapes)	rrr�r�r-r�r�r�r�csg|]}|�vr|�qSr%r%r/r1r%r&r25
r3z0PostgresqlClient.list_shapes.<locals>.<listcomp>z list_shapes got unknown kwargs: r�r�r�r�r�r�r�r�r�r�r�r�)r�r�r�r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9P
r3z0PostgresqlClient.list_shapes.<locals>.<dictcomp>r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9W
r3rrDNZShapeCollectionrr�r�)
r#r$rMrFrGrKrLr_r�r�r�rIrr%r1r&r��	s�1���





�
��
��zPostgresqlClient.list_shapesc
sdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qnd|vr�dg}|d|vr�td|����d|vr�ddg}
|d|
vr�td|
����|�dt	�|�dt	�|�dt	�|�dt	�d�}dd�t�|�D�}dd|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd �}|du�r�t
j}|�r�t|t
j��s�|j
�|�|�|j�|j|j
j|||	||d!|�d"�|||d#�S|j
j|||	||d!|�d"�|||d#�
SdS)$a�
        Returns a (paginated) list of errors for the work request with the given ID.


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

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

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

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

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

            Allowed values are: "timestamp"

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

            Allowed values are: "ASC", "DESC"

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
        r�z$/workRequests/{workRequestId}/errorsr��list_work_request_errorsz`https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/WorkRequestError/ListWorkRequestErrors�rrr-r�r�r�r�csg|]}|�vr|�qSr%r%r/r1r%r&r2�
r3z=PostgresqlClient.list_work_request_errors.<locals>.<listcomp>z-list_work_request_errors got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�
r3z=PostgresqlClient.list_work_request_errors.<locals>.<dictcomp>Nrr:r;r��	timestampr�r�r�r�r�r�r��r�r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�
r3r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�
r3rrDZWorkRequestErrorCollectionrr�ry�r#r�r$rMrFrGrKrLr_rHr7r8r�r�r�rIrr%r1r&r�{
s�.	��$��



�
��
�
�z)PostgresqlClient.list_work_request_errorsc
sdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qnd|vr�dg}|d|vr�td|����d|vr�ddg}
|d|
vr�td|
����|�dt	�|�dt	�|�dt	�|�dt	�d�}dd�t�|�D�}dd|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd �}|du�r�t
j}|�r�t|t
j��s�|j
�|�|�|j�|j|j
j|||	||d!|�d"�|||d#�S|j
j|||	||d!|�d"�|||d#�
SdS)$a�
        Returns a (paginated) list of logs for the work request with the given ID.


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

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

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

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

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

            Allowed values are: "timestamp"

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

            Allowed values are: "ASC", "DESC"

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
        r�z"/workRequests/{workRequestId}/logsr��list_work_request_logszahttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/WorkRequestLogEntry/ListWorkRequestLogsr�csg|]}|�vr|�qSr%r%r/r1r%r&r2Gr3z;PostgresqlClient.list_work_request_logs.<locals>.<listcomp>z+list_work_request_logs got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9Pr3z;PostgresqlClient.list_work_request_logs.<locals>.<dictcomp>Nrr:r;r�r�r�r�r�r�r�r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9jr3r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9qr3rrDZWorkRequestLogEntryCollectionrr�ryr�r%r1r&r�	s�.	��$��



�
��
�
�z'PostgresqlClient.list_work_request_logscs�g}d}d}d}d}gd���fdd�t�|�D�}|rFtd|����d	|vrpgd
�}|d	|vrptd|����d|vr�d
dg}	|d|	vr�td|	����d|vr�dg}
|d|
vr�td|
����|�dt�|�dt�|�d	t�|�dt�|�dt�|�dt�|�dt�|�dt�d�}dd�t�|�D�}dd|�dt�d�}dd�t�|�D�}|jj|�d�|jd �}
|
d!u�r|t	j
}
|
�r�t|
t	j��s�|j�
|�|
�|j�|
j|jj||||d"|�d#�|||d$�
S|jj||||d"|�d#�|||d$�	Sd!S)%a�

        Lists the work requests in a compartment.


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

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

        :param str status: (optional)
            A filter to return only resources if their `lifecycleState` matches the given OperationStatus.

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

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

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

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

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

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

            Allowed values are: "ASC", "DESC"

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

            Allowed values are: "timeAccepted"

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
        z
/workRequestsr��list_work_requestszVhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/WorkRequest/ListWorkRequests)rrr�r��status�resource_idr-r�r�r�r�csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z7PostgresqlClient.list_work_requests.<locals>.<listcomp>z'list_work_requests got unknown kwargs: r�)ZACCEPTEDZIN_PROGRESSZWAITINGr�Z	SUCCEEDEDZ	CANCELINGZCANCELEDz+Invalid value for `status`, must be one of r�r�r�r�r�ZtimeAcceptedr�r�r�r�r�r�)r�r�r�Z
resourceIdr�r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9r3z7PostgresqlClient.list_work_requests.<locals>.<dictcomp>r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9r3rrDNZWorkRequestSummaryCollectionrr�r�)r#r$rMrFrGrKrLr_Zstatus_allowed_valuesr�r�r�rIrr%r1r&r��s�9
����







�

��
��z#PostgresqlClient.list_work_requestscs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rZt|t
j��s2|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a
        Modifies the database system by adding or removing database instance nodes.


        :param str db_system_id: (required)
            A unique identifier for the database system.

        :param oci.psql.models.PatchDbSystemDetails patch_db_system_details: (required)
            The information to be modified.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/patch_db_system.py.html>`__ to see an example of how to use patch_db_system API.
        rcr~ZPATCH�patch_db_systemzPhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/PatchDbSystemrvcsg|]}|�vr|�qSr%r%r/r1r%r&r2er3z4PostgresqlClient.patch_db_system.<locals>.<listcomp>z$patch_db_system got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9nr3z4PostgresqlClient.patch_db_system.<locals>.<dictcomp>Nrr:r;r<r,r-rwcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9zr3rrDrrEry)r#reZpatch_db_system_detailsr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r�3sp%��$

��
��z PostgresqlClient.patch_db_systemcs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rpt|t
j��sH|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a�	
        Resets the database system's master password.


        :param str db_system_id: (required)
            A unique identifier for the database system.

        :param oci.psql.models.ResetMasterUserPasswordDetails reset_master_user_password_details: (required)
            The information to be updated.

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

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

        :param 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, `retrytoken` could be expired or invalidated.

        :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/psql/reset_master_user_password.py.html>`__ to see an example of how to use reset_master_user_password API.
        rcz7/dbSystems/{dbSystemId}/actions/resetMasterUserPasswordr)�reset_master_user_passwordzZhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/ResetMasterUserPasswordr+csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z?PostgresqlClient.reset_master_user_password.<locals>.<listcomp>z/reset_master_user_password got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z?PostgresqlClient.reset_master_user_password.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrrErN)r#reZ"reset_master_user_password_detailsr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r��st+��$


��
��z+PostgresqlClient.reset_master_user_passwordcs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rpt|t
j��sH|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a

        Restarts the running database instance node.


        :param str db_system_id: (required)
            A unique identifier for the database system.

        :param oci.psql.models.RestartDbInstanceInDbSystemDetails restart_db_instance_in_db_system_details: (required)
            Database instance node restart parameters.

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

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

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

        :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/psql/restart_db_instance_in_db_system.py.html>`__ to see an example of how to use restart_db_instance_in_db_system API.
        rcz1/dbSystems/{dbSystemId}/actions/restartDbInstancer)� restart_db_instance_in_db_systemz^https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/RestartDbInstanceInDbSystemr+csg|]}|�vr|�qSr%r%r/r1r%r&r2K
r3zEPostgresqlClient.restart_db_instance_in_db_system.<locals>.<listcomp>z5restart_db_instance_in_db_system got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9T
r3zEPostgresqlClient.restart_db_instance_in_db_system.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9a
r3rrDrrErN)r#reZ(restart_db_instance_in_db_system_detailsr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r�
st+��$


��
��z1PostgresqlClient.restart_db_instance_in_db_systemcs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rpt|t
j��sH|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a�	
        Restore the database system.


        :param str db_system_id: (required)
            A unique identifier for the database system.

        :param oci.psql.models.RestoreDbSystemDetails restore_db_system_details: (required)
            Database system restore parameters.

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

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

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

        :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/psql/restore_db_system.py.html>`__ to see an example of how to use restore_db_system API.
        rcz'/dbSystems/{dbSystemId}/actions/restorer)�restore_db_systemzRhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/RestoreDbSystemr+csg|]}|�vr|�qSr%r%r/r1r%r&r2�
r3z6PostgresqlClient.restore_db_system.<locals>.<listcomp>z&restore_db_system got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�
r3z6PostgresqlClient.restore_db_system.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�
r3rrDrrErN)r#reZrestore_db_system_detailsr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r��
st+��$


��
��z"PostgresqlClient.restore_db_systemc
s�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�r\t|t
j��s2|j
�|
�|�|j�|j|j
j|||
|
|d|�d�|||d�S|j
j|||
|
|d|�d�|||d�
SdS)a�
        Updates the backup.


        :param str backup_id: (required)
            A unique identifier for the backup.

        :param oci.psql.models.UpdateBackupDetails update_backup_details: (required)
            The information to be updated.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/update_backup.py.html>`__ to see an example of how to use update_backup API.
        r(rs�PUT�
update_backupzMhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/Backup/UpdateBackuprvcsg|]}|�vr|�qSr%r%r/r1r%r&r2,r3z2PostgresqlClient.update_backup.<locals>.<listcomp>z"update_backup got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r95r3z2PostgresqlClient.update_backup.<locals>.<dictcomp>Nrr:r;r<r,r-rwcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9Ar3rrDr�r�
rFrGrHrIrJrorrKrLrMry)r#r^Zupdate_backup_detailsr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r��
st%��$

��
�
�zPostgresqlClient.update_backupc
s�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rrt|t
j��sH|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
|d|�d�|||d�S|j
j|||
|
|d|�d�|||d�
SdS)aB

        Updates a display name or description of the configuration.


        :param str configuration_id: (required)
            A unique identifier for the configuration.

        :param oci.psql.models.UpdateConfigurationDetails update_configuration_details: (required)
            Details for updating display name or description for a configuration.

        :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, `retrytoken` could be expired or invalidated.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/psql/update_configuration.py.html>`__ to see an example of how to use update_configuration API.
        r`r{r��update_configurationz[https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/Configuration/UpdateConfiguration)rrr.r,r-csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z9PostgresqlClient.update_configuration.<locals>.<listcomp>z)update_configuration got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z9PostgresqlClient.update_configuration.<locals>.<dictcomp>Nrr:r;r<r.r,r-)r>r?rBr@rAcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrmrr�rN)r#rbZupdate_configuration_detailsr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r�gsx+��$


��
�
�z%PostgresqlClient.update_configurationcs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rpt|t
j��sH|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a�	
        Updates the database system.


        :param str db_system_id: (required)
            A unique identifier for the database system.

        :param oci.psql.models.UpdateDbSystemDetails update_db_system_details: (required)
            The information to be updated.

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

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

        :param 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, `retrytoken` could be expired or invalidated.

        :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/psql/update_db_system.py.html>`__ to see an example of how to use update_db_system API.
        rcr~r��update_db_systemzQhttps://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/UpdateDbSystemr+csg|]}|�vr|�qSr%r%r/r1r%r&r2r3z5PostgresqlClient.update_db_system.<locals>.<listcomp>z%update_db_system got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9r3z5PostgresqlClient.update_db_system.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9,r3rrDrrErN)r#reZupdate_db_system_detailsr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r��st+��$


��
��z!PostgresqlClient.update_db_systemcs�ddg}d}d}d}d}	gd���fdd	�t�|�D�}
|
rJtd
|
����||d�}dd
�t�|�D�}t�|�D]<\}}
|
dus�t|
tj�rrt|
���dkrrtd|�d���qrdd|�dt	�|�dt	�|�dt	�d�}dd
�t�|�D�}|j
j|�d�|jd�}|du�rt
j}|�rtt|t
j��sL|j
�|�|j
�|�|�|j�|j|j
j||||||�d�||	|d�
S|j
j||||||�d�||	|d�	SdS)au

        Updates the database instance node.


        :param str db_system_id: (required)
            A unique identifier for the database system.

        :param str db_instance_id: (required)
            A unique identifier for the database instance node.

        :param oci.psql.models.UpdateDbSystemDbInstanceDetails update_db_system_db_instance_details: (required)
            Database instance node update parameters.

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

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

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

        :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/psql/update_db_system_db_instance.py.html>`__ to see an example of how to use update_db_system_db_instance API.
        rc�dbInstanceIdz2/dbSystems/{dbSystemId}/dbinstances/{dbInstanceId}r��update_db_system_db_instancez[https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/UpdateDbSystemDbInstancer+csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3zAPostgresqlClient.update_db_system_db_instance.<locals>.<listcomp>z1update_db_system_db_instance got unknown kwargs: )rcr�cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3zAPostgresqlClient.update_db_system_db_instance.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrrErN)r#reZdb_instance_idZ$update_db_system_db_instance_detailsr$rMrFrGrKrLr_rHr7r8rIrr%r1r&r�Qsv.��$


��
��z-PostgresqlClient.update_db_system_db_instanceN)&�__name__�
__module__�__qualname__�__doc__r'r*rardrgrlrqrur|rr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r%r%r%r&rsV[ttt_aaffftbbbwbbb0(#
ktttmvtrN)Z
__future__rZoci._vendorrrZocirrZoci.base_clientrZ
oci.configrr	Z
oci.signerr
Zoci.utilrrr
Zoci.exceptionsrZ	oci.alloyrZmodelsrr5�objectrr%r%r%r&�<module>s