Skip to content

Commit 59e2647

Browse files
author
BitsAdmin
committed
Merge 'vefaas-Python-2024-06-06-online-1905-2025_12_03_11_27_22' into 'integration_2025-12-04_1090208319490'
feat: [development task] vefaas-1905-Python (1900134) See merge request: !948
2 parents 3d5d5f0 + 86f462f commit 59e2647

11 files changed

+1500
-0
lines changed

volcenginesdkvefaas/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
from volcenginesdkvefaas.models.async_task_config_for_list_revisions_output import AsyncTaskConfigForListRevisionsOutput
3030
from volcenginesdkvefaas.models.async_task_config_for_update_function_input import AsyncTaskConfigForUpdateFunctionInput
3131
from volcenginesdkvefaas.models.async_task_config_for_update_function_output import AsyncTaskConfigForUpdateFunctionOutput
32+
from volcenginesdkvefaas.models.cancel_sandbox_image_precache_ticket_request import CancelSandboxImagePrecacheTicketRequest
33+
from volcenginesdkvefaas.models.cancel_sandbox_image_precache_ticket_response import CancelSandboxImagePrecacheTicketResponse
3234
from volcenginesdkvefaas.models.create_dependency_install_task_request import CreateDependencyInstallTaskRequest
3335
from volcenginesdkvefaas.models.create_dependency_install_task_response import CreateDependencyInstallTaskResponse
3436
from volcenginesdkvefaas.models.create_function_request import CreateFunctionRequest
@@ -81,10 +83,13 @@
8183
from volcenginesdkvefaas.models.filter_for_list_functions_input import FilterForListFunctionsInput
8284
from volcenginesdkvefaas.models.filter_for_list_release_records_input import FilterForListReleaseRecordsInput
8385
from volcenginesdkvefaas.models.filter_for_list_revisions_input import FilterForListRevisionsInput
86+
from volcenginesdkvefaas.models.filter_for_list_sandbox_image_precache_tickets_input import FilterForListSandboxImagePrecacheTicketsInput
8487
from volcenginesdkvefaas.models.filter_for_list_sandbox_images_input import FilterForListSandboxImagesInput
8588
from volcenginesdkvefaas.models.function_resource_for_get_function_resource_output import FunctionResourceForGetFunctionResourceOutput
8689
from volcenginesdkvefaas.models.gen_webshell_endpoint_request import GenWebshellEndpointRequest
8790
from volcenginesdkvefaas.models.gen_webshell_endpoint_response import GenWebshellEndpointResponse
91+
from volcenginesdkvefaas.models.get_availability_zones_request import GetAvailabilityZonesRequest
92+
from volcenginesdkvefaas.models.get_availability_zones_response import GetAvailabilityZonesResponse
8893
from volcenginesdkvefaas.models.get_code_upload_address_request import GetCodeUploadAddressRequest
8994
from volcenginesdkvefaas.models.get_code_upload_address_response import GetCodeUploadAddressResponse
9095
from volcenginesdkvefaas.models.get_dependency_install_task_log_download_uri_request import GetDependencyInstallTaskLogDownloadURIRequest
@@ -146,6 +151,8 @@
146151
from volcenginesdkvefaas.models.list_release_records_response import ListReleaseRecordsResponse
147152
from volcenginesdkvefaas.models.list_revisions_request import ListRevisionsRequest
148153
from volcenginesdkvefaas.models.list_revisions_response import ListRevisionsResponse
154+
from volcenginesdkvefaas.models.list_sandbox_image_precache_tickets_request import ListSandboxImagePrecacheTicketsRequest
155+
from volcenginesdkvefaas.models.list_sandbox_image_precache_tickets_response import ListSandboxImagePrecacheTicketsResponse
149156
from volcenginesdkvefaas.models.list_sandbox_images_request import ListSandboxImagesRequest
150157
from volcenginesdkvefaas.models.list_sandbox_images_response import ListSandboxImagesResponse
151158
from volcenginesdkvefaas.models.list_sandboxes_request import ListSandboxesRequest
@@ -224,6 +231,7 @@
224231
from volcenginesdkvefaas.models.terminate_async_task_response import TerminateAsyncTaskResponse
225232
from volcenginesdkvefaas.models.terminate_dependency_install_task_request import TerminateDependencyInstallTaskRequest
226233
from volcenginesdkvefaas.models.terminate_dependency_install_task_response import TerminateDependencyInstallTaskResponse
234+
from volcenginesdkvefaas.models.ticket_for_list_sandbox_image_precache_tickets_output import TicketForListSandboxImagePrecacheTicketsOutput
227235
from volcenginesdkvefaas.models.tls_config_for_create_function_input import TlsConfigForCreateFunctionInput
228236
from volcenginesdkvefaas.models.tls_config_for_create_function_output import TlsConfigForCreateFunctionOutput
229237
from volcenginesdkvefaas.models.tls_config_for_get_function_output import TlsConfigForGetFunctionOutput

volcenginesdkvefaas/api/vefaas_api.py

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,103 @@ def abort_release_with_http_info(self, body, **kwargs): # noqa: E501
130130
_request_timeout=params.get('_request_timeout'),
131131
collection_formats=collection_formats)
132132

133+
def cancel_sandbox_image_precache_ticket(self, body, **kwargs): # noqa: E501
134+
"""cancel_sandbox_image_precache_ticket # noqa: E501
135+
136+
This method makes a synchronous HTTP request by default. To make an
137+
asynchronous HTTP request, please pass async_req=True
138+
>>> thread = api.cancel_sandbox_image_precache_ticket(body, async_req=True)
139+
>>> result = thread.get()
140+
141+
:param async_req bool
142+
:param CancelSandboxImagePrecacheTicketRequest body: (required)
143+
:return: CancelSandboxImagePrecacheTicketResponse
144+
If the method is called asynchronously,
145+
returns the request thread.
146+
"""
147+
kwargs['_return_http_data_only'] = True
148+
if kwargs.get('async_req'):
149+
return self.cancel_sandbox_image_precache_ticket_with_http_info(body, **kwargs) # noqa: E501
150+
else:
151+
(data) = self.cancel_sandbox_image_precache_ticket_with_http_info(body, **kwargs) # noqa: E501
152+
return data
153+
154+
def cancel_sandbox_image_precache_ticket_with_http_info(self, body, **kwargs): # noqa: E501
155+
"""cancel_sandbox_image_precache_ticket # noqa: E501
156+
157+
This method makes a synchronous HTTP request by default. To make an
158+
asynchronous HTTP request, please pass async_req=True
159+
>>> thread = api.cancel_sandbox_image_precache_ticket_with_http_info(body, async_req=True)
160+
>>> result = thread.get()
161+
162+
:param async_req bool
163+
:param CancelSandboxImagePrecacheTicketRequest body: (required)
164+
:return: CancelSandboxImagePrecacheTicketResponse
165+
If the method is called asynchronously,
166+
returns the request thread.
167+
"""
168+
169+
all_params = ['body'] # noqa: E501
170+
all_params.append('async_req')
171+
all_params.append('_return_http_data_only')
172+
all_params.append('_preload_content')
173+
all_params.append('_request_timeout')
174+
175+
params = locals()
176+
for key, val in six.iteritems(params['kwargs']):
177+
if key not in all_params:
178+
raise TypeError(
179+
"Got an unexpected keyword argument '%s'"
180+
" to method cancel_sandbox_image_precache_ticket" % key
181+
)
182+
params[key] = val
183+
del params['kwargs']
184+
# verify the required parameter 'body' is set
185+
if self.api_client.client_side_validation and ('body' not in params or
186+
params['body'] is None): # noqa: E501
187+
raise ValueError("Missing the required parameter `body` when calling `cancel_sandbox_image_precache_ticket`") # noqa: E501
188+
189+
collection_formats = {}
190+
191+
path_params = {}
192+
193+
query_params = []
194+
195+
header_params = {}
196+
197+
form_params = []
198+
local_var_files = {}
199+
200+
body_params = None
201+
if 'body' in params:
202+
body_params = params['body']
203+
# HTTP header `Accept`
204+
header_params['Accept'] = self.api_client.select_header_accept(
205+
['application/json']) # noqa: E501
206+
207+
# HTTP header `Content-Type`
208+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
209+
['application/json']) # noqa: E501
210+
211+
# Authentication setting
212+
auth_settings = ['volcengineSign'] # noqa: E501
213+
214+
return self.api_client.call_api(
215+
'/CancelSandboxImagePrecacheTicket/2024-06-06/vefaas/post/application_json/', 'POST',
216+
path_params,
217+
query_params,
218+
header_params,
219+
body=body_params,
220+
post_params=form_params,
221+
files=local_var_files,
222+
response_type='CancelSandboxImagePrecacheTicketResponse', # noqa: E501
223+
auth_settings=auth_settings,
224+
async_req=params.get('async_req'),
225+
_return_http_data_only=params.get('_return_http_data_only'),
226+
_preload_content=params.get('_preload_content', True),
227+
_request_timeout=params.get('_request_timeout'),
228+
collection_formats=collection_formats)
229+
133230
def create_dependency_install_task(self, body, **kwargs): # noqa: E501
134231
"""create_dependency_install_task # noqa: E501
135232
@@ -1294,6 +1391,103 @@ def gen_webshell_endpoint_with_http_info(self, body, **kwargs): # noqa: E501
12941391
_request_timeout=params.get('_request_timeout'),
12951392
collection_formats=collection_formats)
12961393

1394+
def get_availability_zones(self, body, **kwargs): # noqa: E501
1395+
"""get_availability_zones # noqa: E501
1396+
1397+
This method makes a synchronous HTTP request by default. To make an
1398+
asynchronous HTTP request, please pass async_req=True
1399+
>>> thread = api.get_availability_zones(body, async_req=True)
1400+
>>> result = thread.get()
1401+
1402+
:param async_req bool
1403+
:param GetAvailabilityZonesRequest body: (required)
1404+
:return: GetAvailabilityZonesResponse
1405+
If the method is called asynchronously,
1406+
returns the request thread.
1407+
"""
1408+
kwargs['_return_http_data_only'] = True
1409+
if kwargs.get('async_req'):
1410+
return self.get_availability_zones_with_http_info(body, **kwargs) # noqa: E501
1411+
else:
1412+
(data) = self.get_availability_zones_with_http_info(body, **kwargs) # noqa: E501
1413+
return data
1414+
1415+
def get_availability_zones_with_http_info(self, body, **kwargs): # noqa: E501
1416+
"""get_availability_zones # noqa: E501
1417+
1418+
This method makes a synchronous HTTP request by default. To make an
1419+
asynchronous HTTP request, please pass async_req=True
1420+
>>> thread = api.get_availability_zones_with_http_info(body, async_req=True)
1421+
>>> result = thread.get()
1422+
1423+
:param async_req bool
1424+
:param GetAvailabilityZonesRequest body: (required)
1425+
:return: GetAvailabilityZonesResponse
1426+
If the method is called asynchronously,
1427+
returns the request thread.
1428+
"""
1429+
1430+
all_params = ['body'] # noqa: E501
1431+
all_params.append('async_req')
1432+
all_params.append('_return_http_data_only')
1433+
all_params.append('_preload_content')
1434+
all_params.append('_request_timeout')
1435+
1436+
params = locals()
1437+
for key, val in six.iteritems(params['kwargs']):
1438+
if key not in all_params:
1439+
raise TypeError(
1440+
"Got an unexpected keyword argument '%s'"
1441+
" to method get_availability_zones" % key
1442+
)
1443+
params[key] = val
1444+
del params['kwargs']
1445+
# verify the required parameter 'body' is set
1446+
if self.api_client.client_side_validation and ('body' not in params or
1447+
params['body'] is None): # noqa: E501
1448+
raise ValueError("Missing the required parameter `body` when calling `get_availability_zones`") # noqa: E501
1449+
1450+
collection_formats = {}
1451+
1452+
path_params = {}
1453+
1454+
query_params = []
1455+
1456+
header_params = {}
1457+
1458+
form_params = []
1459+
local_var_files = {}
1460+
1461+
body_params = None
1462+
if 'body' in params:
1463+
body_params = params['body']
1464+
# HTTP header `Accept`
1465+
header_params['Accept'] = self.api_client.select_header_accept(
1466+
['application/json']) # noqa: E501
1467+
1468+
# HTTP header `Content-Type`
1469+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1470+
['application/json']) # noqa: E501
1471+
1472+
# Authentication setting
1473+
auth_settings = ['volcengineSign'] # noqa: E501
1474+
1475+
return self.api_client.call_api(
1476+
'/GetAvailabilityZones/2024-06-06/vefaas/post/application_json/', 'POST',
1477+
path_params,
1478+
query_params,
1479+
header_params,
1480+
body=body_params,
1481+
post_params=form_params,
1482+
files=local_var_files,
1483+
response_type='GetAvailabilityZonesResponse', # noqa: E501
1484+
auth_settings=auth_settings,
1485+
async_req=params.get('async_req'),
1486+
_return_http_data_only=params.get('_return_http_data_only'),
1487+
_preload_content=params.get('_preload_content', True),
1488+
_request_timeout=params.get('_request_timeout'),
1489+
collection_formats=collection_formats)
1490+
12971491
def get_code_upload_address(self, body, **kwargs): # noqa: E501
12981492
"""get_code_upload_address # noqa: E501
12991493
@@ -3331,6 +3525,103 @@ def list_revisions_with_http_info(self, body, **kwargs): # noqa: E501
33313525
_request_timeout=params.get('_request_timeout'),
33323526
collection_formats=collection_formats)
33333527

3528+
def list_sandbox_image_precache_tickets(self, body, **kwargs): # noqa: E501
3529+
"""list_sandbox_image_precache_tickets # noqa: E501
3530+
3531+
This method makes a synchronous HTTP request by default. To make an
3532+
asynchronous HTTP request, please pass async_req=True
3533+
>>> thread = api.list_sandbox_image_precache_tickets(body, async_req=True)
3534+
>>> result = thread.get()
3535+
3536+
:param async_req bool
3537+
:param ListSandboxImagePrecacheTicketsRequest body: (required)
3538+
:return: ListSandboxImagePrecacheTicketsResponse
3539+
If the method is called asynchronously,
3540+
returns the request thread.
3541+
"""
3542+
kwargs['_return_http_data_only'] = True
3543+
if kwargs.get('async_req'):
3544+
return self.list_sandbox_image_precache_tickets_with_http_info(body, **kwargs) # noqa: E501
3545+
else:
3546+
(data) = self.list_sandbox_image_precache_tickets_with_http_info(body, **kwargs) # noqa: E501
3547+
return data
3548+
3549+
def list_sandbox_image_precache_tickets_with_http_info(self, body, **kwargs): # noqa: E501
3550+
"""list_sandbox_image_precache_tickets # noqa: E501
3551+
3552+
This method makes a synchronous HTTP request by default. To make an
3553+
asynchronous HTTP request, please pass async_req=True
3554+
>>> thread = api.list_sandbox_image_precache_tickets_with_http_info(body, async_req=True)
3555+
>>> result = thread.get()
3556+
3557+
:param async_req bool
3558+
:param ListSandboxImagePrecacheTicketsRequest body: (required)
3559+
:return: ListSandboxImagePrecacheTicketsResponse
3560+
If the method is called asynchronously,
3561+
returns the request thread.
3562+
"""
3563+
3564+
all_params = ['body'] # noqa: E501
3565+
all_params.append('async_req')
3566+
all_params.append('_return_http_data_only')
3567+
all_params.append('_preload_content')
3568+
all_params.append('_request_timeout')
3569+
3570+
params = locals()
3571+
for key, val in six.iteritems(params['kwargs']):
3572+
if key not in all_params:
3573+
raise TypeError(
3574+
"Got an unexpected keyword argument '%s'"
3575+
" to method list_sandbox_image_precache_tickets" % key
3576+
)
3577+
params[key] = val
3578+
del params['kwargs']
3579+
# verify the required parameter 'body' is set
3580+
if self.api_client.client_side_validation and ('body' not in params or
3581+
params['body'] is None): # noqa: E501
3582+
raise ValueError("Missing the required parameter `body` when calling `list_sandbox_image_precache_tickets`") # noqa: E501
3583+
3584+
collection_formats = {}
3585+
3586+
path_params = {}
3587+
3588+
query_params = []
3589+
3590+
header_params = {}
3591+
3592+
form_params = []
3593+
local_var_files = {}
3594+
3595+
body_params = None
3596+
if 'body' in params:
3597+
body_params = params['body']
3598+
# HTTP header `Accept`
3599+
header_params['Accept'] = self.api_client.select_header_accept(
3600+
['application/json']) # noqa: E501
3601+
3602+
# HTTP header `Content-Type`
3603+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3604+
['application/json']) # noqa: E501
3605+
3606+
# Authentication setting
3607+
auth_settings = ['volcengineSign'] # noqa: E501
3608+
3609+
return self.api_client.call_api(
3610+
'/ListSandboxImagePrecacheTickets/2024-06-06/vefaas/post/application_json/', 'POST',
3611+
path_params,
3612+
query_params,
3613+
header_params,
3614+
body=body_params,
3615+
post_params=form_params,
3616+
files=local_var_files,
3617+
response_type='ListSandboxImagePrecacheTicketsResponse', # noqa: E501
3618+
auth_settings=auth_settings,
3619+
async_req=params.get('async_req'),
3620+
_return_http_data_only=params.get('_return_http_data_only'),
3621+
_preload_content=params.get('_preload_content', True),
3622+
_request_timeout=params.get('_request_timeout'),
3623+
collection_formats=collection_formats)
3624+
33343625
def list_sandbox_images(self, body, **kwargs): # noqa: E501
33353626
"""list_sandbox_images # noqa: E501
33363627

0 commit comments

Comments
 (0)