
    ~iu!                     J    d Z ddlmZ ddlZddlZddlZ G d de          ZdS )z
    pca

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )absolute_importNc                   2    e Zd ZdZddZd Zd Zd Zd ZdS )	PCAApizNOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    Ref: https://github.com/swagger-api/swagger-codegen
    Nc                 >    |t          j                    }|| _        d S N)volcenginesdkcore	ApiClient
api_client)selfr
   s     e/root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkpca/api/pca_api.py__init__zPCAApi.__init__   s!    *466J$    c                 r    d|d<   |                     d          r | j        |fi |S  | j        |fi |}|S )a  create_leaf_instance  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.create_leaf_instance(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param CreateLeafInstanceRequest body: (required)
        :return: CreateLeafInstanceResponse
                 If the method is called asynchronously,
                 returns the request thread.
        T_return_http_data_only	async_req)get#create_leaf_instance_with_http_infor   bodykwargsdatas       r   create_leaf_instancezPCAApi.create_leaf_instance$   s]     ,0'(::k"" 	;4;DKKFKKK=T=dMMfMMTKr   c                 4   dg}|                     d           |                     d           |                     d           |                     d           t                      }t          j        |d                   D ] \  }}||vrt	          d|z            |||<   !|d= | j        j        rd|vs|d         t          d	          i }i }g }	i }
g }i }d}d|v r|d         }| j                            d
g          |
d<   | j        	                    d
g          |
d<   dg}| j        
                    dd||	|
|||d||                    d          |                    d          |                    dd          |                    d          |          S )a  create_leaf_instance  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.create_leaf_instance_with_http_info(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param CreateLeafInstanceRequest body: (required)
        :return: CreateLeafInstanceResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   _preload_content_request_timeoutr   zFGot an unexpected keyword argument '%s' to method create_leaf_instanceNzIMissing the required parameter `body` when calling `create_leaf_instance`application/jsonAcceptContent-TypevolcengineSignz9/CreateLeafInstance/2025-03-04/pca/post/application_json/POSTCreateLeafInstanceResponseT
r   post_paramsfilesresponse_typeauth_settingsr   r   r   r   collection_formatsappendlocalssix	iteritems	TypeErrorr
   client_side_validation
ValueErrorselect_header_acceptselect_header_content_typecall_apir   r   r   r   
all_paramsparamskeyvalr'   path_paramsquery_paramsheader_paramsform_paramslocal_var_filesbody_paramsr&   s                  r   r   z*PCAApi.create_leaf_instance_with_http_info9   s    X
+&&&2333,---,---fX&677 	 	HC*$$68;<   F3KK8?1 	jvV7K7K7=f~7MhiiiV .K"&/"F"F #" #"h )-(R(R )" )"n% **''G#!6'jj--#)::.F#G#G#ZZ(:DAA#ZZ(:;;1 ( 3 3 	3r   c                 r    d|d<   |                     d          r | j        |fi |S  | j        |fi |}|S )a  download_leaf_instance  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.download_leaf_instance(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param DownloadLeafInstanceRequest body: (required)
        :return: DownloadLeafInstanceResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   %download_leaf_instance_with_http_infor   s       r   download_leaf_instancezPCAApi.download_leaf_instance   s]     ,0'(::k"" 	=4=dMMfMMM?T?OOOOTKr   c                 4   dg}|                     d           |                     d           |                     d           |                     d           t                      }t          j        |d                   D ] \  }}||vrt	          d|z            |||<   !|d= | j        j        rd|vs|d         t          d	          i }i }g }	i }
g }i }d}d|v r|d         }| j                            d
g          |
d<   | j        	                    d
g          |
d<   dg}| j        
                    dd||	|
|||d||                    d          |                    d          |                    dd          |                    d          |          S )a  download_leaf_instance  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.download_leaf_instance_with_http_info(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param DownloadLeafInstanceRequest body: (required)
        :return: DownloadLeafInstanceResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   zHGot an unexpected keyword argument '%s' to method download_leaf_instanceNzKMissing the required parameter `body` when calling `download_leaf_instance`r   r   r   r   z;/DownloadLeafInstance/2025-03-04/pca/post/application_json/r    DownloadLeafInstanceResponseTr"   r(   r3   s                  r   r?   z,PCAApi.download_leaf_instance_with_http_info   s    X
+&&&2333,---,---fX&677 	 	HC*$$8:=>   F3KK8?1 	lvV7K7K7=f~7MjkkkV .K"&/"F"F #" #"h )-(R(R )" )"n% **''I6#!8'jj--#)::.F#G#G#ZZ(:DAA#ZZ(:;;1 ( 3 3 	3r   r   )	__name__
__module____qualname____doc__r   r   r   r@   r?    r   r   r   r      sw         % % % %
  *J3 J3 J3X  *J3 J3 J3 J3 J3r   r   )rF   
__future__r   rer+   r   objectr   rG   r   r   <module>rK      s     ' & & & & & 				 


    L3 L3 L3 L3 L3V L3 L3 L3 L3 L3r   