o
    ɶd                    @   s   d dl mZ d dlmZ d dlmZ d dlmZmZ d dlm	Z	 d dl
mZmZ d dlmZ d dlmZmZmZ d	d
lmZ edZG dd deZdS )    )absolute_import)requests)six)retrycircuit_breaker)
BaseClient)get_config_value_or_defaultvalidate_config)Signer)Sentinel#get_signer_from_authentication_typeAUTHENTICATION_TYPE_FIELD_NAME   )apigateway_type_mappingZMissingc                   @   s   e Zd ZdZdd Zdd Zdd Zdd	 Zd
d Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd Zdd Zdd Zdd Zd d! Zd"d# Zd$d% Zd&d' Zd(d) Zd*d+ Zd,d- Zd.S )/ApiGatewayClientz
    API for the API Gateway service. Use this API to manage gateways, deployments, and related items.
    For more information, see
    [Overview of API Gateway](/iaas/Content/APIGateway/Concepts/apigatewayoverview.htm).
    c              
   K   s  t ||dd d|v r|d }n"t|v rt|}nt|d |d |d |dt|d|dd	}d
|dddi |dd|dtj|dd}d|v rY|d|d< |ddu retj|d< d|v rp|d|d< t	d||t
fi || _|d| _|d| _dS )a  
        Creates a new service client

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

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

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

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

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

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

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

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

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

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

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


        :param str api_id: (required)
            The ocid of the API.

        :param oci.apigateway.models.ChangeApiCompartmentDetails change_api_compartment_details: (required)
            Details of the target compartment.

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/change_api_compartment.py.html>`__ to see an example of how to use change_api_compartment API.
        apiIdz'/apis/{apiId}/actions/changeCompartmentPOSTchange_api_compartmentzShttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/ChangeApiCompartmentr   r   opc_retry_tokenif_matchopc_request_idc                       g | ]}| vr|qS r$   r$   .0_keyZexpected_kwargsr$   r%   
<listcomp>       z;ApiGatewayClient.change_api_compartment.<locals>.<listcomp>z/change_api_compartment got unknown kwargs: {!r}c                 S      i | ]\}}|t ur||qS r$   missingr1   kvr$   r$   r%   
<dictcomp>       z;ApiGatewayClient.change_api_compartment.<locals>.<dictcomp>Nr   7Parameter {} cannot be None, whitespace or empty stringapplication/jsonr,   r-   r.   acceptcontent-typeopc-retry-tokenif-matchopc-request-idc                 S   &   i | ]\}}|t ur|d ur||qS Nr7   r9   r$   r$   r%   r<         & r   Zoperation_retry_strategyZclient_retry_strategyr   	resource_pathmethodpath_paramsheader_paramsbodyr   operation_nameapi_reference_linkrequired_argumentsr   iterkeys
ValueErrorformat	iteritems
isinstancestring_typeslenstripr   r8   r    get_preferred_retry_strategyr   r   NoneRetryStrategyadd_opc_retry_token_if_neededadd_opc_client_retries_headeradd_circuit_breaker_callbackr   make_retrying_callcall_api)r!   api_idZchange_api_compartment_detailsr#   rR   rK   rL   rP   rQ   extra_kwargsrM   r:   r;   rN   r   r$   r3   r%   r*   t   r   /$


z'ApiGatewayClient.change_api_compartmentc                    r'   )a
  
        Changes the certificate compartment.


        :param str certificate_id: (required)
            The ocid of the certificate.

        :param oci.apigateway.models.ChangeCertificateCompartmentDetails change_certificate_compartment_details: (required)
            Details of the target compartment.

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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/change_certificate_compartment.py.html>`__ to see an example of how to use change_certificate_compartment API.
        certificateIdz7/certificates/{certificateId}/actions/changeCompartmentr)   change_certificate_compartmentzchttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/ChangeCertificateCompartmentr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   '  r5   zCApiGatewayClient.change_certificate_compartment.<locals>.<listcomp>z7change_certificate_compartment got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   0  r=   zCApiGatewayClient.change_certificate_compartment.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   =  rH   r   rI   r   rJ   rS   )r!   certificate_idZ&change_certificate_compartment_detailsr#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   rg      re   z/ApiGatewayClient.change_certificate_compartmentc                      g }d}d}d}d}g d  fddt |D }|r#td|d	d	|d
t|dtd}	dd t |	D }	| jj|d| j	d}
|
du rOt
j}
|
r}t|
t
jsi| j|	 | j|	 |
| j |
j| jj|||	|d|d|||d
S | jj|||	|d|d|||d	S )a  
        Creates a new API.


        :param oci.apigateway.models.CreateApiDetails create_api_details: (required)
            Details for the new API.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/create_api.py.html>`__ to see an example of how to use create_api API.
        /apisr)   
create_api r   r   r,   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z/ApiGatewayClient.create_api.<locals>.<listcomp>z#create_api got unknown kwargs: {!r}r?   r,   r.   rA   rB   rC   rE   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z/ApiGatewayClient.create_api.<locals>.<dictcomp>r   rI   NApir   	rK   rL   rN   rO   response_typer   rP   rQ   rR   r   rT   rU   rV   r   r8   rW   r    r\   r   r   DEFAULT_RETRY_STRATEGYrX   r]   r^   r_   r`   r   ra   rb   )r!   Zcreate_api_detailsr#   rR   rK   rL   rP   rQ   rd   rN   r   r$   r3   r%   rk   `  f   %

zApiGatewayClient.create_apic                    ri   )aM  
        Creates a new Certificate.


        :param oci.apigateway.models.CreateCertificateDetails create_certificate_details: (required)
            Details for the new certificate

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/create_certificate.py.html>`__ to see an example of how to use create_certificate API.
        /certificatesr)   create_certificaterl   rm   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z7ApiGatewayClient.create_certificate.<locals>.<listcomp>z+create_certificate got unknown kwargs: {!r}r?   r,   r.   rn   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z7ApiGatewayClient.create_certificate.<locals>.<dictcomp>r   rI   NCertificater   rp   rr   )r!   Zcreate_certificate_detailsr#   rR   rK   rL   rP   rQ   rd   rN   r   r$   r3   r%   rv     rt   z#ApiGatewayClient.create_certificatec                    ri   )a  
        Creates a new SDK.


        :param oci.apigateway.models.CreateSdkDetails create_sdk_details: (required)
            Details for the new SDK.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/create_sdk.py.html>`__ to see an example of how to use create_sdk API.
        /sdksr)   
create_sdkzHhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/CreateSdkrm   c                    r/   r$   r$   r0   r3   r$   r%   r4   V  r5   z/ApiGatewayClient.create_sdk.<locals>.<listcomp>z#create_sdk got unknown kwargs: {!r}r?   r,   r.   rn   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   a  rH   z/ApiGatewayClient.create_sdk.<locals>.<dictcomp>r   rI   NSdkr   rp   rr   )r!   Zcreate_sdk_detailsr#   rR   rK   rL   rP   rQ   rd   rN   r   r$   r3   r%   ry   $  rt   zApiGatewayClient.create_sdkc                    d  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|rt|tjs| j| || j |j| jj|||	||	d|||d	S | jj|||	||	d|||dS )a  
        Deletes the API with the given identifier.


        :param str api_id: (required)
            The ocid of the API.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/delete_api.py.html>`__ to see an example of how to use delete_api API.
        r(   /apis/{apiId}DELETE
delete_apizHhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/DeleteApir   r   r-   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z/ApiGatewayClient.delete_api.<locals>.<listcomp>z#delete_api got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z/ApiGatewayClient.delete_api.<locals>.<dictcomp>Nr   r>   r?   r-   r.   rA   rB   rD   rE   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rK   rL   rM   rN   r   rP   rQ   rR   r   rT   rU   rV   rW   rX   rY   rZ   r[   r   r8   r    r\   r   r   r]   r_   r`   r   ra   rb   r!   rc   r#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   r~     j   %$

zApiGatewayClient.delete_apic                    r{   )a  
        Deletes the certificate with the given identifier.


        :param str certificate_id: (required)
            The ocid of the certificate.

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

        :param str opc_request_id: (optional)
            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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/delete_certificate.py.html>`__ to see an example of how to use delete_certificate API.
        rf   /certificates/{certificateId}r}   delete_certificatezXhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/DeleteCertificater   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z7ApiGatewayClient.delete_certificate.<locals>.<listcomp>z+delete_certificate got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   (  r=   z7ApiGatewayClient.delete_certificate.<locals>.<dictcomp>Nr   r>   r?   r-   r.   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   4  rH   r   rI   r   r   r   r!   rh   r#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   r     r   z#ApiGatewayClient.delete_certificatec                    r{   )a  
        Deletes provided SDK.


        :param str sdk_id: (required)
            The ocid of the SDK.

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

        :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 obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/delete_sdk.py.html>`__ to see an example of how to use delete_sdk API.
        sdkId/sdks/{sdkId}r}   
delete_sdkzHhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/DeleteSdkr   r   r.   r-   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z/ApiGatewayClient.delete_sdk.<locals>.<listcomp>z#delete_sdk got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z/ApiGatewayClient.delete_sdk.<locals>.<dictcomp>Nr   r>   r?   r.   r-   rA   rB   rE   rD   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   r   r   r!   sdk_idr#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   r   T  r   zApiGatewayClient.delete_sdkc                    l  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
d}dd t |D }| jj|	d| jd}|du r|tj}|rt|tjs| j| || j |j| jj|||	|d|	d|||d
S | jj|||	|d|	d|||d	S )a  
        Gets an API by identifier.


        :param str api_id: (required)
            The ocid of the API.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/get_api.py.html>`__ to see an example of how to use get_api API.
        r(   r|   GETget_apizEhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/GetApir   r   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z,ApiGatewayClient.get_api.<locals>.<listcomp>z get_api got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z,ApiGatewayClient.get_api.<locals>.<dictcomp>Nr   r>   r?   r.   rA   rB   rE   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   ro   r   	rK   rL   rM   rN   rq   r   rP   rQ   rR   r   rT   rU   rV   rW   rX   rY   rZ   r[   r   r8   r    r\   r   r   rs   r]   r_   r`   r   ra   rb   r   r$   r3   r%   r     p   $
zApiGatewayClient.get_apic                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||	|d|	d|||d
S | jj|||	|d|	d|||d	S )a  
        Get the raw API content.


        :param str api_id: (required)
            The ocid of the API.

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

        :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 range: (optional)
            The Range HTTP request header indicates the part of a document that the
            server should return. `RFC 7233`__.
            Note that only a single range of bytes is supported.

            __ https://tools.ietf.org/html/rfc7233#section-3.1

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/get_api_content.py.html>`__ to see an example of how to use get_api_content API.
        r(   z/apis/{apiId}/contentr   get_api_contentzLhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/GetApiContent)r   r   r.   r-   rangec                    r/   r$   r$   r0   r3   r$   r%   r4   W  r5   z4ApiGatewayClient.get_api_content.<locals>.<listcomp>z(get_api_content got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   `  r=   z4ApiGatewayClient.get_api_content.<locals>.<dictcomp>Nr   r>   r?   r.   r-   r   )rA   rB   rE   rD   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   m  rH   r   rI   streamr   r   r   r   r$   r3   r%   r     st   ,$


z ApiGatewayClient.get_api_contentc                    v  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||	|d|	d|||d
S | jj|||	|d|	d|||d	S )a  
        Gets an API Deployment specification by identifier.


        :param str api_id: (required)
            The ocid of the API.

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/get_api_deployment_specification.py.html>`__ to see an example of how to use get_api_deployment_specification API.
        r(   z%/apis/{apiId}/deploymentSpecificationr    get_api_deployment_specificationzihttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/ApiSpecification/GetApiDeploymentSpecificationr   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zEApiGatewayClient.get_api_deployment_specification.<locals>.<listcomp>z9get_api_deployment_specification got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   zEApiGatewayClient.get_api_deployment_specification.<locals>.<dictcomp>Nr   r>   r?   r.   r-   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   ZApiSpecificationr   r   r   r   r$   r3   r%   r     r   %$

z1ApiGatewayClient.get_api_deployment_specificationc                    r   )a  
        Gets the API validation results.


        :param str api_id: (required)
            The ocid of the API.

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/get_api_validations.py.html>`__ to see an example of how to use get_api_validations API.
        r(   z/apis/{apiId}/validationsr   get_api_validationsz[https://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/ApiValidations/GetApiValidationsr   c                    r/   r$   r$   r0   r3   r$   r%   r4   .  r5   z8ApiGatewayClient.get_api_validations.<locals>.<listcomp>z,get_api_validations got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   7  r=   z8ApiGatewayClient.get_api_validations.<locals>.<dictcomp>Nr   r>   r?   r.   r-   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   C  rH   r   rI   ZApiValidationsr   r   r   r   r$   r3   r%   r     r   z$ApiGatewayClient.get_api_validationsc                    r   )a"  
        Gets a certificate by identifier.


        :param str certificate_id: (required)
            The ocid of the certificate.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/get_certificate.py.html>`__ to see an example of how to use get_certificate API.
        rf   r   r   get_certificatezUhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/GetCertificater   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z4ApiGatewayClient.get_certificate.<locals>.<listcomp>z(get_certificate got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z4ApiGatewayClient.get_certificate.<locals>.<dictcomp>Nr   r>   r?   r.   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   rw   r   r   r   r   r$   r3   r%   r   g  r   z ApiGatewayClient.get_certificatec                    r   )a  
        Return object store downloadable URL and metadata.


        :param str sdk_id: (required)
            The ocid of the SDK.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/get_sdk.py.html>`__ to see an example of how to use get_sdk API.
        r   r   r   get_sdkzEhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/GetSdkr   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z,ApiGatewayClient.get_sdk.<locals>.<listcomp>z get_sdk got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z,ApiGatewayClient.get_sdk.<locals>.<dictcomp>Nr   r>   r?   r.   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   rz   r   r   r   r   r$   r3   r%   r     r   zApiGatewayClient.get_sdkc                      dg}d}d}d}d}g d  fddt |D }|r$td	|d
|v r9g d}	|d
 |	vr9td|	d|v rNddg}
|d |
vrNtd|
d|v rcddg}|d |vrctd|||dt|d
t|dt|dt|dt|dtd}dd t |D }dd|dtd}dd t |D }| jj|d| j	d }|d!u rt
j}|rt|t
js| j| || j |j| jj||||d"|d#|||d$
S | jj||||d"|d#|||d$	S )%a  
        Returns a list of APIs.


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

        :param str display_name: (optional)
            A user-friendly name. Does not have to be unique, and it's changeable.

            Example: `My new resource`

        :param str lifecycle_state: (optional)
            A filter to return only resources that match the given lifecycle state.

            Example: `ACTIVE`

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

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

        :param str page: (optional)
            The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.

        :param str sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'. The default order depends on the sortBy value.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. You can provide one sort order (`sortOrder`).
            Default order for `timeCreated` is descending. Default order for
            `displayName` is ascending. The `displayName` sort order is case
            sensitive.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/list_apis.py.html>`__ to see an example of how to use list_apis API.
        compartmentIdrj   r   	list_apiszGhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/ListApis	r   r   display_namelifecycle_statelimitpage
sort_ordersort_byr.   c                    r/   r$   r$   r0   r3   r$   r%   r4   z  r5   z.ApiGatewayClient.list_apis.<locals>.<listcomp>z"list_apis got unknown kwargs: {!r}r   CREATINGACTIVEZUPDATINGDELETINGDELETEDFAILED7Invalid value for `lifecycle_state`, must be one of {0}r   ASCDESC2Invalid value for `sort_order`, must be one of {0}r   timeCreateddisplayName/Invalid value for `sort_by`, must be one of {0}r   r   r   r   r   lifecycleStater   r   	sortOrdersortByc                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z.ApiGatewayClient.list_apis.<locals>.<dictcomp>r?   r.   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   NZApiCollectionr   	rK   rL   query_paramsrN   rq   r   rP   rQ   rR   r   rT   rU   rV   r   r8   rW   r    r\   r   r   rs   rX   r]   r_   r`   r   ra   rb   r!   compartment_idr#   rR   rK   rL   rP   rQ   rd   lifecycle_state_allowed_valuessort_order_allowed_valuessort_by_allowed_valuesr   rN   r   r$   r3   r%   r   +     =





	
zApiGatewayClient.list_apisc                    r   )%a9  
        Returns a list of certificates.


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

        :param str display_name: (optional)
            A user-friendly name. Does not have to be unique, and it's changeable.

            Example: `My new resource`

        :param str lifecycle_state: (optional)
            A filter to return only resources that match the given lifecycle state.

            Example: `ACTIVE` or `DELETED`

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

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

        :param str page: (optional)
            The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.

        :param str sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'. The default order depends on the sortBy value.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. You can provide one sort order (`sortOrder`).
            Default order for `timeCreated` is descending. Default order for
            `displayName` is ascending. The `displayName` sort order is case
            sensitive.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/list_certificates.py.html>`__ to see an example of how to use list_certificates API.
        r   ru   r   list_certificateszWhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/ListCertificatesr   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z6ApiGatewayClient.list_certificates.<locals>.<listcomp>z*list_certificates got unknown kwargs: {!r}r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   :  rH   z6ApiGatewayClient.list_certificates.<locals>.<dictcomp>r?   r.   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   A  rH   r   rI   NZCertificateCollectionr   r   r   r   r$   r3   r%   r     r   z"ApiGatewayClient.list_certificatesc                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d
|v r9ddg}	|d
 |	vr9td|	d|v rNddg}
|d |
vrNtd|
|dt|dt|dt|d
t|dt|d}dd t |D }dd|dtd}dd t |D }| jj|d| j	d}|du rt
j}|rt|t
js| j| || j |j| jj||||d|d |||d!
S | jj||||d|d |||d!	S )"aQ
  
        Lists programming languages in which SDK can be generated.


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

        :param str display_name: (optional)
            A user-friendly name. Does not have to be unique, and it's changeable.

            Example: `My new resource`

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

        :param str page: (optional)
            The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.

        :param str sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'. The default order depends on the sortBy value.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. You can provide one sort order (`sortOrder`).
            Default order for `timeCreated` is descending. Default order for
            `displayName` is ascending. The `displayName` sort order is case
            sensitive.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/list_sdk_language_types.py.html>`__ to see an example of how to use list_sdk_language_types API.
        r   z/sdkLanguageTypesr   list_sdk_language_typeszfhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/SdkLanguageTypeSummary/ListSdkLanguageTypes)r   r   r   r   r   r   r   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z<ApiGatewayClient.list_sdk_language_types.<locals>.<listcomp>z0list_sdk_language_types got unknown kwargs: {!r}r   r   r   r   r   r   r   r   r   r   r   )r   r   r   r   r   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z<ApiGatewayClient.list_sdk_language_types.<locals>.<dictcomp>r?   r.   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   NZSdkLanguageTypeCollectionr   r   r   )r!   r   r#   rR   rK   rL   rP   rQ   rd   r   r   r   rN   r   r$   r3   r%   r   e  s   6






z(ApiGatewayClient.list_sdk_language_typesc                    s  g }d}d}d}d}g d  fddt |D }|r#td|d	|v r8g d
}|d	 |vr8td|d|v rMddg}	|d |	vrMtd|	d|v rbddg}
|d |
vrbtd|
|dt|dt|d	t|dt|dt|dt|dt|dtd}dd t |D }dd|dtd}dd t |D }| jj|d | j	d!}|d"u rt
j}|rt|t
js| j| || j |j| jj||||d#|d$|||d%
S | jj||||d#|d$|||d%	S )&a2  
        Returns list of generated SDKs.


        :param str sdk_id: (optional)
            The ocid of the SDK.

        :param str display_name: (optional)
            A user-friendly name. Does not have to be unique, and it's changeable.

            Example: `My new resource`

        :param str lifecycle_state: (optional)
            A filter to return only resources that match the given lifecycle state.

            Example: `ACTIVE` or `DELETED`

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

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

        :param str page: (optional)
            The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.

        :param str sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'. The default order depends on the sortBy value.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. You can provide one sort order (`sortOrder`).
            Default order for `timeCreated` is descending. Default order for
            `displayName` is ascending. The `displayName` sort order is case
            sensitive.

            Allowed values are: "timeCreated", "displayName"

        :param str api_id: (optional)
            The ocid of the API.

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/list_sdks.py.html>`__ to see an example of how to use list_sdks API.
        rx   r   	list_sdkszGhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/ListSdks)r   r   r   r   r   r   r   r   r   rc   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4   F  r5   z.ApiGatewayClient.list_sdks.<locals>.<listcomp>z"list_sdks got unknown kwargs: {!r}r   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rc   )r   r   r   r   r   r   r   r(   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   j  rH   z.ApiGatewayClient.list_sdks.<locals>.<dictcomp>r?   r.   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   q  rH   r   rI   NZSdkCollectionr   r   r   )r!   r#   rR   rK   rL   rP   rQ   rd   r   r   r   r   rN   r   r$   r3   r%   r     s   @









zApiGatewayClient.list_sdksc                    h  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|rt|tjs| j| || j |j| jj|||
|||	d|||d
S | jj|||
|||	d|||d	S )a5  
        Updates the API with the given identifier.


        :param str api_id: (required)
            The ocid of the API.

        :param oci.apigateway.models.UpdateApiDetails update_api_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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/update_api.py.html>`__ to see an example of how to use update_api API.
        r(   r|   PUT
update_apizHhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Api/UpdateApir   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z/ApiGatewayClient.update_api.<locals>.<listcomp>z#update_api got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z/ApiGatewayClient.update_api.<locals>.<dictcomp>Nr   r>   r?   r-   r.   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rJ   r   )r!   rc   Zupdate_api_detailsr#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   r     n   ($

zApiGatewayClient.update_apic                    r   )aj  
        Updates a certificate with the given identifier


        :param str certificate_id: (required)
            The ocid of the certificate.

        :param oci.apigateway.models.UpdateCertificateDetails update_certificate_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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/update_certificate.py.html>`__ to see an example of how to use update_certificate API.
        rf   r   r   update_certificatezXhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Certificate/UpdateCertificater   c                    r/   r$   r$   r0   r3   r$   r%   r4   6	  r5   z7ApiGatewayClient.update_certificate.<locals>.<listcomp>z+update_certificate got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   ?	  r=   z7ApiGatewayClient.update_certificate.<locals>.<dictcomp>Nr   r>   r?   r-   r.   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   K	  rH   r   rI   r   rJ   r   )r!   rh   Zupdate_certificate_detailsr#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   r   	  r   z#ApiGatewayClient.update_certificatec                    r   )a5  
        Updates the SDK with the given identifier.


        :param str sdk_id: (required)
            The ocid of the SDK.

        :param oci.apigateway.models.UpdateSdkDetails update_sdk_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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/apigateway/update_sdk.py.html>`__ to see an example of how to use update_sdk API.
        r   r   r   
update_sdkzHhttps://docs.oracle.com/iaas/api/#/en/api-gateway/20190501/Sdk/UpdateSdkr   c                    r/   r$   r$   r0   r3   r$   r%   r4   	  r5   z/ApiGatewayClient.update_sdk.<locals>.<listcomp>z#update_sdk got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   	  r=   z/ApiGatewayClient.update_sdk.<locals>.<dictcomp>Nr   r>   r?   r-   r.   r   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   	  rH   r   rI   r   rJ   r   )r!   r   Zupdate_sdk_detailsr#   rR   rK   rL   rP   rQ   rd   rM   r:   r;   rN   r   r$   r3   r%   r   m	  r   zApiGatewayClient.update_sdkN)__name__
__module____qualname____doc__r&   r*   rg   rk   rv   ry   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r$   r$   r$   r%   r      s8    Xvvbbbgggbtkkbb    $llr   N)
__future__r   Zoci._vendorr   r   ocir   r   Zoci.base_clientr   Z
oci.configr   r	   Z
oci.signerr
   Zoci.utilr   r   r   Zmodelsr   r8   objectr   r$   r$   r$   r%   <module>   s   