
    ~iy                     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
    vefaas_dev

    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                   z    e Zd ZdZddZd Zd Zd Zd Zd Z	d	 Z
d
 Zd Zd Zd Zd Zd Zd Zd Zd Zd ZdS )VEFAASDEVApizNOTE: 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     r/root/.openclaw/workspace/.venvs/ark-sdk/lib/python3.11/site-packages/volcenginesdkvefaasdev/api/vefaas_dev_api.py__init__zVEFAASDEVApi.__init__   s!    *466J$    c                 r    d|d<   |                     d          r | j        |fi |S  | j        |fi |}|S )a  create_sandbox  # 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_sandbox(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param CreateSandboxRequest body: (required)
        :return: CreateSandboxResponse
                 If the method is called asynchronously,
                 returns the request thread.
        T_return_http_data_only	async_req)getcreate_sandbox_with_http_infor   bodykwargsdatas       r   create_sandboxzVEFAASDEVApi.create_sandbox$   ]     ,0'(::k"" 	545dEEfEEE7T7GGGGT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_sandbox  # 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_sandbox_with_http_info(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param CreateSandboxRequest body: (required)
        :return: CreateSandboxResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   _preload_content_request_timeoutr   z@Got an unexpected keyword argument '%s' to method create_sandboxNzCMissing the required parameter `body` when calling `create_sandbox`application/jsonAcceptContent-TypevolcengineSignz;/CreateSandbox/2024-06-06/vefaas_dev/post/application_json/POSTCreateSandboxResponseT
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*VEFAASDEVApi.create_sandbox_with_http_info9       X
+&&&2333,---,---fX&677 	 	HC*$$0256   F3KK8?1 	dvV7K7K7=f~7MbcccV .K"&/"F"F #" #"h )-(R(R )" )"n% **''I6#!1'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  kill_sandbox  # noqa: E501

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

        :param async_req bool
        :param KillSandboxRequest body: (required)
        :return: KillSandboxResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   kill_sandbox_with_http_infor   s       r   kill_sandboxzVEFAASDEVApi.kill_sandbox   s]     ,0'(::k"" 	343DCCFCCC5T5dEEfEET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  kill_sandbox  # noqa: E501

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

        :param async_req bool
        :param KillSandboxRequest body: (required)
        :return: KillSandboxResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   z>Got an unexpected keyword argument '%s' to method kill_sandboxNzAMissing the required parameter `body` when calling `kill_sandbox`r   r   r   r    z9/KillSandbox/2024-06-06/vefaas_dev/post/application_json/r!   KillSandboxResponseTr#   r)   r4   s                  r   rA   z(VEFAASDEVApi.kill_sandbox_with_http_info   s    X
+&&&2333,---,---fX&677 	 	HC*$$.034   F3KK8?1 	bvV7K7K7=f~7M`aaaV .K"&/"F"F #" #"h )-(R(R )" )"n% **''G#!/'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  list_sandboxes  # noqa: E501

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

        :param async_req bool
        :param ListSandboxesRequest body: (required)
        :return: ListSandboxesResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   list_sandboxes_with_http_infor   s       r   list_sandboxeszVEFAASDEVApi.list_sandboxes   r   r   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   list_sandboxes  # noqa: E501

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

        :param async_req bool
        :param ListSandboxesRequest body: (required)
        :return: ListSandboxesResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   z@Got an unexpected keyword argument '%s' to method list_sandboxesNzCMissing the required parameter `body` when calling `list_sandboxes`r   r   r   r    z;/ListSandboxes/2024-06-06/vefaas_dev/post/application_json/r!   ListSandboxesResponseTr#   r)   r4   s                  r   rF   z*VEFAASDEVApi.list_sandboxes_with_http_info   r?   r   c                 r    d|d<   |                     d          r | j        |fi |S  | j        |fi |}|S )a  read_files  # noqa: E501

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

        :param async_req bool
        :param ReadFilesRequest body: (required)
        :return: ReadFilesResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   read_files_with_http_infor   s       r   
read_fileszVEFAASDEVApi.read_filesG  s]     ,0'(::k"" 	141$AA&AAA3T3DCCFCCT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  read_files  # noqa: E501

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

        :param async_req bool
        :param ReadFilesRequest body: (required)
        :return: ReadFilesResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   z<Got an unexpected keyword argument '%s' to method read_filesNz?Missing the required parameter `body` when calling `read_files`r   r   r   r    z7/ReadFiles/2024-06-06/vefaas_dev/post/application_json/r!   ReadFilesResponseTr#   r)   r4   s                  r   rK   z&VEFAASDEVApi.read_files_with_http_info\  s    X
+&&&2333,---,---fX&677 	 	HC*$$,.12   F3KK8?1 	`vV7K7K7=f~7M^___V .K"&/"F"F #" #"h )-(R(R )" )"n% **''Ev#!-'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  run_code  # noqa: E501

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

        :param async_req bool
        :param RunCodeRequest body: (required)
        :return: RunCodeResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   run_code_with_http_infor   s       r   run_codezVEFAASDEVApi.run_code  s]     ,0'(::k"" 	/4/?????1T1$AA&AAT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  run_code  # noqa: E501

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

        :param async_req bool
        :param RunCodeRequest body: (required)
        :return: RunCodeResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   z:Got an unexpected keyword argument '%s' to method run_codeNz=Missing the required parameter `body` when calling `run_code`r   r   r   r    z5/RunCode/2024-06-06/vefaas_dev/post/application_json/r!   RunCodeResponseTr#   r)   r4   s                  r   rP   z$VEFAASDEVApi.run_code_with_http_info  s    X
+&&&2333,---,---fX&677 	 	HC*$$*,/0   F3KK8?1 	^vV7K7K7=f~7M\]]]V .K"&/"F"F #" #"h )-(R(R )" )"n% **''CV#!+'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  set_sandbox_timeout  # noqa: E501

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

        :param async_req bool
        :param SetSandboxTimeoutRequest body: (required)
        :return: SetSandboxTimeoutResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   "set_sandbox_timeout_with_http_infor   s       r   set_sandbox_timeoutz VEFAASDEVApi.set_sandbox_timeout	  s]     ,0'(::k"" 	:4:4JJ6JJJ<T<TLLVLLT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  set_sandbox_timeout  # noqa: E501

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

        :param async_req bool
        :param SetSandboxTimeoutRequest body: (required)
        :return: SetSandboxTimeoutResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   zEGot an unexpected keyword argument '%s' to method set_sandbox_timeoutNzHMissing the required parameter `body` when calling `set_sandbox_timeout`r   r   r   r    z?/SetSandboxTimeout/2024-06-06/vefaas_dev/post/application_json/r!   SetSandboxTimeoutResponseTr#   r)   r4   s                  r   rU   z/VEFAASDEVApi.set_sandbox_timeout_with_http_info  s    X
+&&&2333,---,---fX&677 	 	HC*$$57:;   F3KK8?1 	ivV7K7K7=f~7MghhhV .K"&/"F"F #" #"h )-(R(R )" )"n% **''Mv#!5'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  transition_sandbox  # noqa: E501

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

        :param async_req bool
        :param TransitionSandboxRequest body: (required)
        :return: TransitionSandboxResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   !transition_sandbox_with_http_infor   s       r   transition_sandboxzVEFAASDEVApi.transition_sandboxj  s]     ,0'(::k"" 	949$II&III;T;DKKFKKT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  transition_sandbox  # noqa: E501

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

        :param async_req bool
        :param TransitionSandboxRequest body: (required)
        :return: TransitionSandboxResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   zDGot an unexpected keyword argument '%s' to method transition_sandboxNzGMissing the required parameter `body` when calling `transition_sandbox`r   r   r   r    z?/TransitionSandbox/2024-06-06/vefaas_dev/post/application_json/r!   TransitionSandboxResponseTr#   r)   r4   s                  r   rZ   z.VEFAASDEVApi.transition_sandbox_with_http_info  s    X
+&&&2333,---,---fX&677 	 	HC*$$469:   F3KK8?1 	hvV7K7K7=f~7MfgggV .K"&/"F"F #" #"h )-(R(R )" )"n% **''Mv#!5'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  write_files  # noqa: E501

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

        :param async_req bool
        :param WriteFilesRequest body: (required)
        :return: WriteFilesResponse
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   write_files_with_http_infor   s       r   write_fileszVEFAASDEVApi.write_files  s]     ,0'(::k"" 	2424BB6BBB4T4TDDVDDT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  write_files  # noqa: E501

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

        :param async_req bool
        :param WriteFilesRequest body: (required)
        :return: WriteFilesResponse
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   z=Got an unexpected keyword argument '%s' to method write_filesNz@Missing the required parameter `body` when calling `write_files`r   r   r   r    z8/WriteFiles/2024-06-06/vefaas_dev/post/application_json/r!   WriteFilesResponseTr#   r)   r4   s                  r   r_   z'VEFAASDEVApi.write_files_with_http_info  s    X
+&&&2333,---,---fX&677 	 	HC*$$-/23   F3KK8?1 	avV7K7K7=f~7M_```V .K"&/"F"F #" #"h )-(R(R )" )"n% **''F#!.'jj--#)::.F#G#G#ZZ(:DAA#ZZ(:;;1 ( 3 3 	3r   r   )__name__
__module____qualname____doc__r   r   r   rB   rA   rG   rF   rL   rK   rQ   rP   rV   rU   r[   rZ   r`   r_    r   r   r   r      sC        % % % %
  *J3 J3 J3X  *J3 J3 J3X  *J3 J3 J3X  *J3 J3 J3X  *J3 J3 J3X  *J3 J3 J3X  *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     ' & & & & & 				 


    R3 R3 R3 R3 R36 R3 R3 R3 R3 R3r   