403Webshell
Server IP : 162.241.219.206  /  Your IP : 216.73.216.195
Web Server : Apache
System : Linux box5669.bluehost.com 5.14.0-687.15.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 11 08:51:45 EDT 2026 x86_64
User : signavd5 ( 2863)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/oracle-cloud-agent/plugins/osms/oci/container_engine/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/oracle-cloud-agent/plugins/osms/oci/container_engine/container_engine_client.pyc
a

N��fU��@s�ddlmZddlmZddlmZddlmZmZddlm	Z	ddl
mZmZddl
mZddlmZmZmZd	d
lmZed�ZGdd
�d
e�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�)�container_engine_type_mapping�Missingc@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/�Zd0S)1�ContainerEngineClienta
    API for the Container Engine for Kubernetes service. Use this API to build, deploy,
    and manage cloud-native applications. For more information, see
    [Overview of Container Engine for Kubernetes](/iaas/Content/ContEng/Concepts/contengoverview.htm).
    c	Ks
t||�d�d�d|vr$|d}nDt|vr6t|�}n2t|d|d|d|�d�t|d�|�d�d	�}d
|�d�dd
|�dd�|�dtj�d�}d|vr�|�d�|d<|�d�dur�tj|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 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�fingerprint�key_file�pass_phrase�key_content)rrr�private_key_file_locationr�private_key_contentT�service_endpointz	/20180222z8https://containerengine.{region}.oci.{secondLevelDomain}�skip_deserializationF�circuit_breaker_strategy)�regional_clientr�	base_path�service_endpoint_templaterr�timeoutN�allow_control_chars�container_engine�retry_strategy�circuit_breaker_callback)r	�getr
rr
rr�GLOBAL_CIRCUIT_BREAKER_STRATEGY� DEFAULT_CIRCUIT_BREAKER_STRATEGYrr�base_clientr$r%)�self�config�kwargsr�base_client_init_kwargs�r.��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/container_engine/container_engine_client.py�__init__s:0

�

�
zContainerEngineClient.__init__cstd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
dur�tj}
|
�rNt|
tj��s(|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)a�
        Initiates cluster migration to use native VCN.


        :param str cluster_id: (required)
            The OCID of the cluster.

        :param oci.container_engine.models.ClusterMigrateToNativeVcnDetails cluster_migrate_to_native_vcn_details: (required)
            The details for the cluster's migration to native VCN.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/cluster_migrate_to_native_vcn.py.html>`__ to see an example of how to use cluster_migrate_to_native_vcn API.
        z0/clusters/{clusterId}/actions/migrateToNativeVcn�POST�cluster_migrate_to_native_vcnz`https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/ClusterMigrateToNativeVcn�r"r$�if_match�opc_request_idcsg|]}|�vr|�qSr.r.��.0�_key��expected_kwargsr.r/�
<listcomp>��zGContainerEngineClient.cluster_migrate_to_native_vcn.<locals>.<listcomp>z6cluster_migrate_to_native_vcn got unknown kwargs: {!r}�	clusterIdcSsi|]\}}|tur||�qSr.��missing�r7�k�vr.r.r/�
<dictcomp>�r<zGContainerEngineClient.cluster_migrate_to_native_vcn.<locals>.<dictcomp>Nr�7Parameter {} cannot be None, whitespace or empty string�application/jsonr4r5��accept�content-typezif-match�opc-request-idcSs&i|]\}}|tur|dur||�qS�Nr>r@r.r.r/rC�r<r$��operation_retry_strategy�client_retry_strategyr"��
resource_path�method�path_params�
header_params�bodyr"�operation_name�api_reference_link�r�iterkeys�
ValueError�format�	iteritems�
isinstance�string_types�len�stripr&r?r)�get_preferred_retry_strategyr$r�DEFAULT_RETRY_STRATEGY�NoneRetryStrategy�add_opc_client_retries_header�add_circuit_breaker_callbackr%�make_retrying_call�call_api)r*�
cluster_id�%cluster_migrate_to_native_vcn_detailsr,rOrPrTrU�extra_kwargsrQrArBrRr$r.r9r/r2msj&��$

����z3ContainerEngineClient.cluster_migrate_to_native_vcnc

sd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	d	|�d
t�|�dt�d�}d
d�t�|�D�}|jj|�d�|j	d�}	|	dur�t
j}	|	r�t|	t
j
�s�|j�|�|j�|�|	�|j�|	j|jj|||||�d�||d�S|jj|||||�d�||d�SdS)a~
        Create a new cluster.


        :param oci.container_engine.models.CreateClusterDetails create_cluster_details: (required)
            The details of the cluster to create.

        :param str opc_retry_token: (optional)
            A token you supply to uniquely identify the request and provide idempotency if
            the request is retried. Idempotency tokens expire after 24 hours.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/create_cluster.py.html>`__ to see an example of how to use create_cluster API.
        �	/clustersr1�create_clusterzThttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/CreateCluster�r"r$�opc_retry_tokenr5csg|]}|�vr|�qSr.r.r6r9r.r/r;r<z8ContainerEngineClient.create_cluster.<locals>.<listcomp>z'create_cluster got unknown kwargs: {!r}rErlr5�rGrHzopc-retry-tokenrIcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCr<z8ContainerEngineClient.create_cluster.<locals>.<dictcomp>r$rKNr"�rOrPrRrSr"rTrU�rrWrXrYr&r?rZr)r_r$rr`r[ra�add_opc_retry_token_if_neededrbrcr%rdre)
r*�create_cluster_detailsr,rOrPrTrUrhrRr$r.r9r/rj�s\"�

���
�z$ContainerEngineClient.create_clusterc
szd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|dur�tj}|�rLt|tj��s|j�|�|�|j�|j|jj|||||�	d�d|�	d�||d�
S|jj|||||�	d�d|�	d�||d�	SdS)a@
        Create the Kubeconfig YAML for a cluster.


        :param str cluster_id: (required)
            The OCID of the cluster.

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

        :param oci.container_engine.models.CreateClusterKubeconfigContentDetails create_cluster_kubeconfig_content_details: (optional)
            The details of the cluster kubeconfig to create.

        :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/2.90.0/containerengine/create_kubeconfig.py.html>`__ to see an example of how to use create_kubeconfig API.
        z(/clusters/{clusterId}/kubeconfig/contentr1�create_kubeconfigzWhttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/CreateKubeconfig)r"r$r5�)create_cluster_kubeconfig_content_detailscsg|]}|�vr|�qSr.r.r6r9r.r/r;]r<z;ContainerEngineClient.create_kubeconfig.<locals>.<listcomp>z*create_kubeconfig got unknown kwargs: {!r}r=cSsi|]\}}|tur||�qSr.r>r@r.r.r/rCfr<z;ContainerEngineClient.create_kubeconfig.<locals>.<dictcomp>NrrDzapplication/x-yamlrEr5�rGrHrIcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCqr<r$rKrs�streamr")	rOrPrQrRrS�
response_typer"rTrUrV�
r*rfr,rOrPrTrUrhrQrArBrRr$r.r9r/rr0sl!��$
����z'ContainerEngineClient.create_kubeconfigc

sd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	d	|�d
t�|�dt�d�}d
d�t�|�D�}|jj|�d�|j	d�}	|	dur�t
j}	|	r�t|	t
j
�s�|j�|�|j�|�|	�|j�|	j|jj|||||�d�||d�S|jj|||||�d�||d�SdS)a�
        Create a new node pool.


        :param oci.container_engine.models.CreateNodePoolDetails create_node_pool_details: (required)
            The details of the node pool to create.

        :param str opc_retry_token: (optional)
            A token you supply to uniquely identify the request and provide idempotency if
            the request is retried. Idempotency tokens expire after 24 hours.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/create_node_pool.py.html>`__ to see an example of how to use create_node_pool API.
        �
/nodePoolsr1�create_node_poolzVhttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/CreateNodePoolrkcsg|]}|�vr|�qSr.r.r6r9r.r/r;�r<z:ContainerEngineClient.create_node_pool.<locals>.<listcomp>z)create_node_pool got unknown kwargs: {!r}rErlr5rmcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<z:ContainerEngineClient.create_node_pool.<locals>.<dictcomp>r$rKNr"rnro)
r*�create_node_pool_detailsr,rOrPrTrUrhrRr$r.r9r/ry�s\"�

���
�z&ContainerEngineClient.create_node_poolc

spd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|dur�tj}|�rLt|tj��s(|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	d�||d�SdS)a�
        Delete a cluster.


        :param str cluster_id: (required)
            The OCID of the cluster.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/delete_cluster.py.html>`__ to see an example of how to use delete_cluster API.
        �/clusters/{clusterId}�DELETE�delete_clusterzThttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/DeleteClusterr3csg|]}|�vr|�qSr.r.r6r9r.r/r;r<z8ContainerEngineClient.delete_cluster.<locals>.<listcomp>z'delete_cluster got unknown kwargs: {!r}r=cSsi|]\}}|tur||�qSr.r>r@r.r.r/rC'r<z8ContainerEngineClient.delete_cluster.<locals>.<dictcomp>NrrDrEr4r5rFcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC3r<r$rKr"�rOrPrQrRr"rTrUrVrwr.r9r/r}�sf#��$

���
�z$ContainerEngineClient.delete_clustercs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���||d	�}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rjt|���d
krjtd�|
���qj|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}dd|�	dt
�|�	dt
�d�}
dd�t�|
�D�}
|jj|�	d�|j
d�}|du�r8tj}|�r�t|tj��sd|j�|
�|�|j�|j|jj|||	||
|�	d�||d�	S|jj|||	||
|�	d�||d�SdS)a�

        Delete node.


        :param str node_pool_id: (required)
            The OCID of the node pool.

        :param str node_id: (required)
            The OCID of the compute instance.

        :param bool is_decrement_size: (optional)
            If the nodepool should be scaled down after the node is deleted.

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

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

        :param str override_eviction_grace_duration: (optional)
            Duration after which OKE will give up eviction of the pods on the node.
            PT0M will indicate you want to delete the node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M

        :param bool is_force_deletion_after_override_grace_duration: (optional)
            If the underlying compute instance should be deleted if you cannot evict all the pods in grace period

        :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/2.90.0/containerengine/delete_node.py.html>`__ to see an example of how to use delete_node API.
        z%/nodePools/{nodePoolId}/node/{nodeId}r|�delete_nodezRhttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/DeleteNode)r"r$�is_decrement_sizer4r5� override_eviction_grace_duration�/is_force_deletion_after_override_grace_durationcsg|]}|�vr|�qSr.r.r6r9r.r/r;�r<z5ContainerEngineClient.delete_node.<locals>.<listcomp>z$delete_node got unknown kwargs: {!r})�
nodePoolId�nodeIdcSsi|]\}}|tur||�qSr.r>r@r.r.r/rC�r<z5ContainerEngineClient.delete_node.<locals>.<dictcomp>NrrDr�r�r�)�isDecrementSize�overrideEvictionGraceDuration�)isForceDeletionAfterOverrideGraceDurationcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<rEr4r5rFcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<r$rKr"�rOrPrQ�query_paramsrRr"rTrUrV)r*�node_pool_id�node_idr,rOrPrTrUrhrQrArBr�rRr$r.r9r/rSsv0	��$


�

��
��z!ContainerEngineClient.delete_nodecs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qh|�	dt
�|�	dt
�d�}dd�t�|�D�}dd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
du�r,tj}
|
�r~t|
tj��sX|j�|�|
�|j�|
j|jj||||||�	d�||d�	S|jj||||||�	d�||d�SdS)a�	
        Delete a node pool.


        :param str node_pool_id: (required)
            The OCID of the node pool.

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

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

        :param str override_eviction_grace_duration: (optional)
            Duration after which OKE will give up eviction of the pods on the node.
            PT0M will indicate you want to delete the node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M

        :param bool is_force_deletion_after_override_grace_duration: (optional)
            If the underlying compute instance should be deleted if you cannot evict all the pods in grace period

        :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/2.90.0/containerengine/delete_node_pool.py.html>`__ to see an example of how to use delete_node_pool API.
        �/nodePools/{nodePoolId}r|�delete_node_poolzVhttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/DeleteNodePool�r"r$r4r5r�r�csg|]}|�vr|�qSr.r.r6r9r.r/r;	r<z:ContainerEngineClient.delete_node_pool.<locals>.<listcomp>z)delete_node_pool got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r>r@r.r.r/rCr<z:ContainerEngineClient.delete_node_pool.<locals>.<dictcomp>NrrDr�r��r�r�cSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCr<rEr4r5rFcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC$r<r$rKr"r�rV)r*r�r,rOrPrTrUrhrQrArBr�rRr$r.r9r/r��sr*��$

�

��
��z&ContainerEngineClient.delete_node_poolc

spd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|dur�tj}|�rLt|tj��s(|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	d�||d�SdS)a
        Cancel a work request that has not started.


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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/delete_work_request.py.html>`__ to see an example of how to use delete_work_request API.
        �/workRequests/{workRequestId}r|�delete_work_requestz\https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequest/DeleteWorkRequestr3csg|]}|�vr|�qSr.r.r6r9r.r/r;ur<z=ContainerEngineClient.delete_work_request.<locals>.<listcomp>z,delete_work_request got unknown kwargs: {!r}�
workRequestIdcSsi|]\}}|tur||�qSr.r>r@r.r.r/rC~r<z=ContainerEngineClient.delete_work_request.<locals>.<dictcomp>NrrDrEr4r5rFcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<r$rKr"r~rV�
r*�work_request_idr,rOrPrTrUrhrQrArBrRr$r.r9r/r�Fsf#��$

���
�z)ContainerEngineClient.delete_work_requestc
sjd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|dur�tj}|�rDt|tj��s|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||d|�	d�||d�SdS)a�
        Get the details of a cluster.


        :param str cluster_id: (required)
            The OCID of the cluster.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/get_cluster.py.html>`__ to see an example of how to use get_cluster API.
        r{�GET�get_clusterzQhttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/GetCluster�r"r$r5csg|]}|�vr|�qSr.r.r6r9r.r/r;�r<z5ContainerEngineClient.get_cluster.<locals>.<listcomp>z$get_cluster got unknown kwargs: {!r}r=cSsi|]\}}|tur||�qSr.r>r@r.r.r/rC�r<z5ContainerEngineClient.get_cluster.<locals>.<dictcomp>NrrDrEr5rtcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<r$rK�Clusterr"�rOrPrQrRrvr"rTrUrVrwr.r9r/r��sh��$
����z!ContainerEngineClient.get_clusterc
sjd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|dur�tj}|�rDt|tj��s|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||d|�	d�||d�SdS)a�
        Get details on a cluster's migration to native VCN.


        :param str cluster_id: (required)
            The OCID of the cluster.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/get_cluster_migrate_to_native_vcn_status.py.html>`__ to see an example of how to use get_cluster_migrate_to_native_vcn_status API.
        z./clusters/{clusterId}/migrateToNativeVcnStatusr��(get_cluster_migrate_to_native_vcn_statusz�https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterMigrateToNativeVcnStatus/GetClusterMigrateToNativeVcnStatusr�csg|]}|�vr|�qSr.r.r6r9r.r/r;2r<zRContainerEngineClient.get_cluster_migrate_to_native_vcn_status.<locals>.<listcomp>zAget_cluster_migrate_to_native_vcn_status got unknown kwargs: {!r}r=cSsi|]\}}|tur||�qSr.r>r@r.r.r/rC;r<zRContainerEngineClient.get_cluster_migrate_to_native_vcn_status.<locals>.<dictcomp>NrrDrEr5rtcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCFr<r$rK�ClusterMigrateToNativeVcnStatusr"r�rVrwr.r9r/r�	sh��$
����z>ContainerEngineClient.get_cluster_migrate_to_native_vcn_statuscs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhd|�	dt
�i}dd�t�|�D�}dd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
du�rtj}
|
�rlt|
tj��sD|j�|�|
�|j�|
j|jj|||||d|�	d�||d�
S|jj|||||d|�	d�||d�	SdS)as
        Get options available for clusters.


        :param str cluster_option_id: (required)
            The id of the option set to retrieve. Use "all" get all options, or use a cluster ID to get options specific to the provided cluster.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/get_cluster_options.py.html>`__ to see an example of how to use get_cluster_options API.
        z!/clusterOptions/{clusterOptionId}r��get_cluster_optionsz_https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterOptions/GetClusterOptions�r"r$�compartment_idr5csg|]}|�vr|�qSr.r.r6r9r.r/r;�r<z=ContainerEngineClient.get_cluster_options.<locals>.<listcomp>z,get_cluster_options got unknown kwargs: {!r}�clusterOptionIdcSsi|]\}}|tur||�qSr.r>r@r.r.r/rC�r<z=ContainerEngineClient.get_cluster_options.<locals>.<dictcomp>NrrD�
compartmentIdr�cSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<rEr5rtcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<r$rK�ClusterOptionsr"�	rOrPrQr�rRrvr"rTrUrV)r*�cluster_option_idr,rOrPrTrUrhrQrArBr�rRr$r.r9r/r�hsr!��$�
��
��z)ContainerEngineClient.get_cluster_optionsc
sjd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|dur�tj}|�rDt|tj��s|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||d|�	d�||d�SdS)a�
        Get the details of a node pool.


        :param str node_pool_id: (required)
            The OCID of the node pool.

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/get_node_pool.py.html>`__ to see an example of how to use get_node_pool API.
        r�r��
get_node_poolzShttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/GetNodePoolr�csg|]}|�vr|�qSr.r.r6r9r.r/r;�r<z7ContainerEngineClient.get_node_pool.<locals>.<listcomp>z&get_node_pool got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r>r@r.r.r/rCr<z7ContainerEngineClient.get_node_pool.<locals>.<dictcomp>NrrDrEr5rtcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCr<r$rK�NodePoolr"r�rV)
r*r�r,rOrPrTrUrhrQrArBrRr$r.r9r/r��sh��$
����z#ContainerEngineClient.get_node_poolcs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhd|�	dt
�i}dd�t�|�D�}dd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
du�rtj}
|
�rlt|
tj��sD|j�|�|
�|j�|
j|jj|||||d|�	d�||d�
S|jj|||||d|�	d�||d�	SdS)a|
        Get options available for node pools.


        :param str node_pool_option_id: (required)
            The id of the option set to retrieve. Use "all" get all options, or use a cluster ID to get options specific to the provided cluster.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/get_node_pool_options.py.html>`__ to see an example of how to use get_node_pool_options API.
        z#/nodePoolOptions/{nodePoolOptionId}r��get_node_pool_optionszahttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePoolOptions/GetNodePoolOptionsr�csg|]}|�vr|�qSr.r.r6r9r.r/r;^r<z?ContainerEngineClient.get_node_pool_options.<locals>.<listcomp>z.get_node_pool_options got unknown kwargs: {!r}�nodePoolOptionIdcSsi|]\}}|tur||�qSr.r>r@r.r.r/rCgr<z?ContainerEngineClient.get_node_pool_options.<locals>.<dictcomp>NrrDr�r�cSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCpr<rEr5rtcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCwr<r$rK�NodePoolOptionsr"r�rV)r*�node_pool_option_idr,rOrPrTrUrhrQrArBr�rRr$r.r9r/r�1sr!��$�
��
��z+ContainerEngineClient.get_node_pool_optionsc
sjd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|dur�tj}|�rDt|tj��s|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||d|�	d�||d�SdS)a�
        Get the details of a work request.


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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
        r�r��get_work_requestzYhttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequest/GetWorkRequestr�csg|]}|�vr|�qSr.r.r6r9r.r/r;�r<z:ContainerEngineClient.get_work_request.<locals>.<listcomp>z)get_work_request got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r>r@r.r.r/rC�r<z:ContainerEngineClient.get_work_request.<locals>.<dictcomp>NrrDrEr5rtcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<r$rK�WorkRequestr"r�rVr�r.r9r/r��sh��$
����z&ContainerEngineClient.get_work_requestcs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrvgd
�}|d	D]}	|	|vrZtd�|���qZd|vr�d
dg}
|d|
vr�td�|
���d|vr�gd�}|d|vr�td�|���||j�|�d	t�d�|�dt�|�dt�|�dt�|�dt�|�dt�d�}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�
        List all the cluster objects in a compartment.


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

        :param list[str] lifecycle_state: (optional)
            A cluster lifecycle state to filter on. Can have multiple parameters of this name.

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

        :param str name: (optional)
            The name to filter on.

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

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

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

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

        :param str sort_order: (optional)
            The optional order in which to sort the results.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The optional field to sort the results by.

            Allowed values are: "ID", "NAME", "TIME_CREATED"

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/list_clusters.py.html>`__ to see an example of how to use list_clusters API.
        rir��
list_clusterszZhttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterSummary/ListClusters)	r"r$�lifecycle_state�name�limit�page�
sort_order�sort_byr5csg|]}|�vr|�qSr.r.r6r9r.r/r;Hr<z7ContainerEngineClient.list_clusters.<locals>.<listcomp>z&list_clusters got unknown kwargs: {!r}r�)�CREATING�ACTIVE�FAILED�DELETING�DELETED�UPDATING�7Invalid value for `lifecycle_state`, must be one of {0}r��ASC�DESC�2Invalid value for `sort_order`, must be one of {0}r���ID�NAME�TIME_CREATED�/Invalid value for `sort_by`, must be one of {0}�multir�r�r�)r��lifecycleStater�r�r��	sortOrder�sortBycSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rClr<z7ContainerEngineClient.list_clusters.<locals>.<dictcomp>rEr5rtcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCsr<r$rKNzlist[ClusterSummary]r"�rOrPr�rRrvr"rTrU)rrWrXrYr)� generate_collection_format_paramr&r?rZr_r$rr`r[rarbrcr%rdre)r*r�r,rOrPrTrUrh�lifecycle_state_allowed_values�lifecycle_state_item�sort_order_allowed_values�sort_by_allowed_valuesr�rRr$r.r9r/r��s�=����




�	
��
��z#ContainerEngineClient.list_clustersc
s�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrld
dg}|d	|vrltd�|���d
|vr�gd�}	|d
|	vr�td�|	���d|vr�gd�}
|dD]}||
vr�td�|
���q�||�dt�|�dt�|�dt�|�dt�|�d	t�|�d
t�|j�|�dt�d�d�}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�
        List all the node pools in a compartment, and optionally filter by cluster.


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

        :param str cluster_id: (optional)
            The OCID of the cluster.

        :param str name: (optional)
            The name to filter on.

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

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

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

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

        :param str sort_order: (optional)
            The optional order in which to sort the results.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The optional field to sort the results by.

            Allowed values are: "ID", "NAME", "TIME_CREATED"

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

        :param list[str] lifecycle_state: (optional)
            A list of nodepool lifecycle states on which to filter on, matching any of the list items (OR logic). eg. [ACTIVE, DELETING]

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/list_node_pools.py.html>`__ to see an example of how to use list_node_pools API.
        rxr��list_node_poolsz\https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePoolSummary/ListNodePools)
r"r$rfr�r�r�r�r�r5r�csg|]}|�vr|�qSr.r.r6r9r.r/r;�r<z9ContainerEngineClient.list_node_pools.<locals>.<listcomp>z(list_node_pools got unknown kwargs: {!r}r�r�r�r�r�r�r�r�)r�r�r�r�r�r��INACTIVE�NEEDS_ATTENTIONr�rfr�r�r�r�)r�r=r�r�r�r�r�r�cSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCr<z9ContainerEngineClient.list_node_pools.<locals>.<dictcomp>rEr5rtcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCr<r$rKNzlist[NodePoolSummary]r"r��rrWrXrYr&r?r)r�rZr_r$rr`r[rarbrcr%rdre)r*r�r,rOrPrTrUrhr�r�r�r�r�rRr$r.r9r/r��s�@����





�

��
��z%ContainerEngineClient.list_node_poolscs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhd|i}dd�t�|�D�}dd|�	dt
�d�}
dd�t�|
�D�}
|jj|�	d�|j
d�}|du�rtj}|�rdt|tj��s<|j�|
�|�|j�|j|jj|||	||
d|�	d�||d�
S|jj|||	||
d|�	d�||d�	SdS)a
        Get the errors of a work request.


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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
        z$/workRequests/{workRequestId}/errorsr��list_work_request_errorszehttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestError/ListWorkRequestErrorsr�csg|]}|�vr|�qSr.r.r6r9r.r/r;ar<zBContainerEngineClient.list_work_request_errors.<locals>.<listcomp>z1list_work_request_errors got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r>r@r.r.r/rCjr<zBContainerEngineClient.list_work_request_errors.<locals>.<dictcomp>NrrDr�cSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCsr<rEr5rtcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rCzr<r$rKzlist[WorkRequestError]r"r�rV�r*r�r�r,rOrPrTrUrhrQrArBr�rRr$r.r9r/r�5sr!��$�
��
��z.ContainerEngineClient.list_work_request_errorscs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhd|i}dd�t�|�D�}dd|�	dt
�d�}
dd�t�|
�D�}
|jj|�	d�|j
d�}|du�rtj}|�rdt|tj��s<|j�|
�|�|j�|j|jj|||	||
d|�	d�||d�
S|jj|||	||
d|�	d�||d�	SdS)a
        Get the logs of a work request.


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

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
        z"/workRequests/{workRequestId}/logsr��list_work_request_logszfhttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestLogEntry/ListWorkRequestLogsr�csg|]}|�vr|�qSr.r.r6r9r.r/r;�r<z@ContainerEngineClient.list_work_request_logs.<locals>.<listcomp>z/list_work_request_logs got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r>r@r.r.r/rC�r<z@ContainerEngineClient.list_work_request_logs.<locals>.<dictcomp>NrrDr�cSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<rEr5rtcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<r$rKzlist[WorkRequestLogEntry]r"r�rVr�r.r9r/r��sr!��$�
��
��z,ContainerEngineClient.list_work_request_logscs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrld
dg}|d	|vrltd�|���d
|vr�ddg}	|d
|	vr�td�|	���d|vr�gd�}
|d|
vr�td�|
���||�dt�|�dt�|�d	t�|j�|�dt�d�|�dt�|�dt�|�d
t�|�dt�d�	}dd�t�|�D�}dd|�dt�d�}d d�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�
        List all work requests in a compartment.


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

        :param str cluster_id: (optional)
            The OCID of the cluster.

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

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

            Allowed values are: "CLUSTER", "NODEPOOL"

        :param list[str] status: (optional)
            A work request status to filter on. Can have multiple parameters of this name.

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

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

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

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

        :param str sort_order: (optional)
            The optional order in which to sort the results.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The optional field to sort the results by.

            Allowed values are: "ID", "OPERATION_TYPE", "STATUS", "TIME_ACCEPTED", "TIME_STARTED", "TIME_FINISHED"

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
        z
/workRequestsr��list_work_requestszbhttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestSummary/ListWorkRequests)r"r$rf�resource_id�
resource_type�statusr�r�r�r�r5csg|]}|�vr|�qSr.r.r6r9r.r/r;]r<z<ContainerEngineClient.list_work_requests.<locals>.<listcomp>z+list_work_requests got unknown kwargs: {!r}r��CLUSTER�NODEPOOLz5Invalid value for `resource_type`, must be one of {0}r�r�r�r�r�)r��OPERATION_TYPE�STATUS�
TIME_ACCEPTED�TIME_STARTED�
TIME_FINISHEDr�rfr�r�r�r�r�)	r�r=�
resourceId�resourceTyper�r�r�r�r�cSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<z<ContainerEngineClient.list_work_requests.<locals>.<dictcomp>rEr5rtcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<r$rKNzlist[WorkRequestSummary]r"r�r�)r*r�r,rOrPrTrUrh�resource_type_allowed_valuesr�r�r�rRr$r.r9r/r�s�C
����






�
��
��z(ContainerEngineClient.list_work_requestscstd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
dur�tj}
|
�rNt|
tj��s(|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)az
        Update the details of a cluster.


        :param str cluster_id: (required)
            The OCID of the cluster.

        :param oci.container_engine.models.UpdateClusterDetails update_cluster_details: (required)
            The details of the cluster to update.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/update_cluster.py.html>`__ to see an example of how to use update_cluster API.
        r{�PUT�update_clusterzThttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/UpdateClusterr3csg|]}|�vr|�qSr.r.r6r9r.r/r;�r<z8ContainerEngineClient.update_cluster.<locals>.<listcomp>z'update_cluster got unknown kwargs: {!r}r=cSsi|]\}}|tur||�qSr.r>r@r.r.r/rC�r<z8ContainerEngineClient.update_cluster.<locals>.<dictcomp>NrrDrEr4r5rFcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�r<r$rKr"rNrV)r*rf�update_cluster_detailsr,rOrPrTrUrhrQrArBrRr$r.r9r/r��sj&��$

����z$ContainerEngineClient.update_clustercstd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
dur�tj}
|
�rNt|
tj��s(|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	d�||d�SdS)a�
        Update the details of the cluster endpoint configuration.


        :param str cluster_id: (required)
            The OCID of the cluster.

        :param oci.container_engine.models.UpdateClusterEndpointConfigDetails update_cluster_endpoint_config_details: (required)
            The details of the cluster's endpoint to update.

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

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

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

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

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

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

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

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.90.0/containerengine/update_cluster_endpoint_config.py.html>`__ to see an example of how to use update_cluster_endpoint_config API.
        z2/clusters/{clusterId}/actions/updateEndpointConfigr1�update_cluster_endpoint_configzbhttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/UpdateClusterEndpointConfigr3csg|]}|�vr|�qSr.r.r6r9r.r/r;F	r<zHContainerEngineClient.update_cluster_endpoint_config.<locals>.<listcomp>z7update_cluster_endpoint_config got unknown kwargs: {!r}r=cSsi|]\}}|tur||�qSr.r>r@r.r.r/rCO	r<zHContainerEngineClient.update_cluster_endpoint_config.<locals>.<dictcomp>NrrDrEr4r5rFcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC[	r<r$rKr"rNrV)r*rf�&update_cluster_endpoint_config_detailsr,rOrPrTrUrhrQrArBrRr$r.r9r/r�	sj&��$

����z4ContainerEngineClient.update_cluster_endpoint_configcs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qh|�	dt
�|�	dt
�d�}dd�t�|�D�}dd|�	dt
�|�	dt
�d�}
dd�t�|
�D�}
|jj|�	d�|j
d�}|du�r,tj}|�r�t|tj��sX|j�|
�|�|j�|j|jj|||	||
||�	d�||d�
S|jj|||	||
||�	d�||d�	SdS)ar

        Update the details of a node pool.


        :param str node_pool_id: (required)
            The OCID of the node pool.

        :param oci.container_engine.models.UpdateNodePoolDetails update_node_pool_details: (required)
            The fields to update in a node pool.

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

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

        :param str override_eviction_grace_duration: (optional)
            Duration after which OKE will give up eviction of the pods on the node.
            PT0M will indicate you want to delete the node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M

        :param bool is_force_deletion_after_override_grace_duration: (optional)
            If the underlying compute instance should be deleted if you cannot evict all the pods in grace period

        :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/2.90.0/containerengine/update_node_pool.py.html>`__ to see an example of how to use update_node_pool API.
        r�r��update_node_poolzVhttps://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/UpdateNodePoolr�csg|]}|�vr|�qSr.r.r6r9r.r/r;�	r<z:ContainerEngineClient.update_node_pool.<locals>.<listcomp>z)update_node_pool got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r>r@r.r.r/rC�	r<z:ContainerEngineClient.update_node_pool.<locals>.<dictcomp>NrrDr�r�r�cSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�	r<rEr4r5rFcSs&i|]\}}|tur|dur||�qSrJr>r@r.r.r/rC�	r<r$rKr")	rOrPrQr�rRrSr"rTrUrV)r*r��update_node_pool_detailsr,rOrPrTrUrhrQrArBr�rRr$r.r9r/r�}	sv-��$

�

��
��z&ContainerEngineClient.update_node_poolN)�__name__�
__module__�__qualname__�__doc__r0r2rjrrryr}rr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r.r.r.r/rs6SiZeZd~ud__j_j_!ii%iirN)�
__future__r�oci._vendorrr�ocirr�oci.base_clientr�
oci.configrr	�
oci.signerr
�oci.utilrrr
�modelsrr?�objectrr.r.r.r/�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit