Skip to content

Commit 5a9332b

Browse files
author
BitsAdmin
committed
Merge 'vefaas-Python-2024-06-06-online-1984-2025_12_29_12_48_11' into 'integration_2025-12-29_1098193594882'
feat: [development task] vefaas-1984-Python (1981066) See merge request: !992
2 parents b84588d + 01dc925 commit 5a9332b

File tree

11 files changed

+239
-36
lines changed

11 files changed

+239
-36
lines changed

meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "5.0.1",
3-
"meta_commit": "b5078068aa8217b80118dd4dfbf18eb1fe562b4b"
4-
}
2+
"lasted": "5.0.2",
3+
"meta_commit": "372c9d2bb9544e1e39c2ecc40938a1f1276b1303"
4+
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "volcengine-python-sdk"
3-
version = "5.0.1"
3+
version = "5.0.2"
44
authors = [
55
{name = "volc-engine", email = "[email protected]"},
66
]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages # noqa: H301
44

55
NAME = "volcengine-python-sdk"
6-
VERSION = "5.0.1"
6+
VERSION = "5.0.2"
77
# To install the library, run the following
88
#
99
# python setup.py install

volcenginesdkcore/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6464
self.default_headers[header_name] = header_value
6565
self.cookie = cookie
6666
# Set default User-Agent.
67-
self.user_agent = 'volcstack-python-sdk/5.0.1'
67+
self.user_agent = 'volcstack-python-sdk/5.0.2'
6868
self.client_side_validation = configuration.client_side_validation
6969

7070
self.interceptor_chain = InterceptorChain()

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def to_debug_report(self):
272272
"OS: {env}\n" \
273273
"Python Version: {pyversion}\n" \
274274
"Version of the API: 0.1.0\n" \
275-
"SDK Package Version: 5.0.1".\
275+
"SDK Package Version: 5.0.2".\
276276
format(env=sys.platform, pyversion=sys.version)
277277

278278
@property

volcenginesdkvefaas/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
from volcenginesdkvefaas.models.filter_for_list_revisions_input import FilterForListRevisionsInput
8686
from volcenginesdkvefaas.models.filter_for_list_sandbox_image_precache_tickets_input import FilterForListSandboxImagePrecacheTicketsInput
8787
from volcenginesdkvefaas.models.filter_for_list_sandbox_images_input import FilterForListSandboxImagesInput
88+
from volcenginesdkvefaas.models.filter_for_list_sandboxes_input import FilterForListSandboxesInput
8889
from volcenginesdkvefaas.models.function_resource_for_get_function_resource_output import FunctionResourceForGetFunctionResourceOutput
8990
from volcenginesdkvefaas.models.gen_webshell_endpoint_request import GenWebshellEndpointRequest
9091
from volcenginesdkvefaas.models.gen_webshell_endpoint_response import GenWebshellEndpointResponse

volcenginesdkvefaas/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
from volcenginesdkvefaas.models.filter_for_list_revisions_input import FilterForListRevisionsInput
8282
from volcenginesdkvefaas.models.filter_for_list_sandbox_image_precache_tickets_input import FilterForListSandboxImagePrecacheTicketsInput
8383
from volcenginesdkvefaas.models.filter_for_list_sandbox_images_input import FilterForListSandboxImagesInput
84+
from volcenginesdkvefaas.models.filter_for_list_sandboxes_input import FilterForListSandboxesInput
8485
from volcenginesdkvefaas.models.function_resource_for_get_function_resource_output import FunctionResourceForGetFunctionResourceOutput
8586
from volcenginesdkvefaas.models.gen_webshell_endpoint_request import GenWebshellEndpointRequest
8687
from volcenginesdkvefaas.models.gen_webshell_endpoint_response import GenWebshellEndpointResponse

volcenginesdkvefaas/models/describe_sandbox_response.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ class DescribeSandboxResponse(object):
4848
'instance_type': 'str',
4949
'max_concurrency': 'int',
5050
'memory_mb': 'int',
51-
'metadata': 'dict(str, str)',
5251
'metadata_list': 'list[MetadataListForDescribeSandboxOutput]',
5352
'pending': 'bool',
5453
'request_timeout': 'int',
5554
'revision_number': 'int',
55+
'session_id': 'str',
5656
'status': 'str'
5757
}
5858

@@ -72,15 +72,15 @@ class DescribeSandboxResponse(object):
7272
'instance_type': 'InstanceType',
7373
'max_concurrency': 'MaxConcurrency',
7474
'memory_mb': 'MemoryMB',
75-
'metadata': 'Metadata',
7675
'metadata_list': 'MetadataList',
7776
'pending': 'Pending',
7877
'request_timeout': 'RequestTimeout',
7978
'revision_number': 'RevisionNumber',
79+
'session_id': 'SessionId',
8080
'status': 'Status'
8181
}
8282

83-
def __init__(self, availability_zone=None, cpu_milli=None, created_at=None, envs=None, error_code=None, error_message=None, expire_at=None, function_id=None, id=None, image_info=None, instance_nas_mount_config=None, instance_tos_mount_config=None, instance_type=None, max_concurrency=None, memory_mb=None, metadata=None, metadata_list=None, pending=None, request_timeout=None, revision_number=None, status=None, _configuration=None): # noqa: E501
83+
def __init__(self, availability_zone=None, cpu_milli=None, created_at=None, envs=None, error_code=None, error_message=None, expire_at=None, function_id=None, id=None, image_info=None, instance_nas_mount_config=None, instance_tos_mount_config=None, instance_type=None, max_concurrency=None, memory_mb=None, metadata_list=None, pending=None, request_timeout=None, revision_number=None, session_id=None, status=None, _configuration=None): # noqa: E501
8484
"""DescribeSandboxResponse - a model defined in Swagger""" # noqa: E501
8585
if _configuration is None:
8686
_configuration = Configuration()
@@ -101,11 +101,11 @@ def __init__(self, availability_zone=None, cpu_milli=None, created_at=None, envs
101101
self._instance_type = None
102102
self._max_concurrency = None
103103
self._memory_mb = None
104-
self._metadata = None
105104
self._metadata_list = None
106105
self._pending = None
107106
self._request_timeout = None
108107
self._revision_number = None
108+
self._session_id = None
109109
self._status = None
110110
self.discriminator = None
111111

@@ -139,8 +139,6 @@ def __init__(self, availability_zone=None, cpu_milli=None, created_at=None, envs
139139
self.max_concurrency = max_concurrency
140140
if memory_mb is not None:
141141
self.memory_mb = memory_mb
142-
if metadata is not None:
143-
self.metadata = metadata
144142
if metadata_list is not None:
145143
self.metadata_list = metadata_list
146144
if pending is not None:
@@ -149,6 +147,8 @@ def __init__(self, availability_zone=None, cpu_milli=None, created_at=None, envs
149147
self.request_timeout = request_timeout
150148
if revision_number is not None:
151149
self.revision_number = revision_number
150+
if session_id is not None:
151+
self.session_id = session_id
152152
if status is not None:
153153
self.status = status
154154

@@ -467,27 +467,6 @@ def memory_mb(self, memory_mb):
467467

468468
self._memory_mb = memory_mb
469469

470-
@property
471-
def metadata(self):
472-
"""Gets the metadata of this DescribeSandboxResponse. # noqa: E501
473-
474-
475-
:return: The metadata of this DescribeSandboxResponse. # noqa: E501
476-
:rtype: dict(str, str)
477-
"""
478-
return self._metadata
479-
480-
@metadata.setter
481-
def metadata(self, metadata):
482-
"""Sets the metadata of this DescribeSandboxResponse.
483-
484-
485-
:param metadata: The metadata of this DescribeSandboxResponse. # noqa: E501
486-
:type: dict(str, str)
487-
"""
488-
489-
self._metadata = metadata
490-
491470
@property
492471
def metadata_list(self):
493472
"""Gets the metadata_list of this DescribeSandboxResponse. # noqa: E501
@@ -572,6 +551,27 @@ def revision_number(self, revision_number):
572551

573552
self._revision_number = revision_number
574553

554+
@property
555+
def session_id(self):
556+
"""Gets the session_id of this DescribeSandboxResponse. # noqa: E501
557+
558+
559+
:return: The session_id of this DescribeSandboxResponse. # noqa: E501
560+
:rtype: str
561+
"""
562+
return self._session_id
563+
564+
@session_id.setter
565+
def session_id(self, session_id):
566+
"""Sets the session_id of this DescribeSandboxResponse.
567+
568+
569+
:param session_id: The session_id of this DescribeSandboxResponse. # noqa: E501
570+
:type: str
571+
"""
572+
573+
self._session_id = session_id
574+
575575
@property
576576
def status(self):
577577
"""Gets the status of this DescribeSandboxResponse. # noqa: E501
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
# coding: utf-8
2+
3+
"""
4+
vefaas
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class FilterForListSandboxesInput(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
'name': 'str',
37+
'values': 'list[str]'
38+
}
39+
40+
attribute_map = {
41+
'name': 'Name',
42+
'values': 'Values'
43+
}
44+
45+
def __init__(self, name=None, values=None, _configuration=None): # noqa: E501
46+
"""FilterForListSandboxesInput - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._name = None
52+
self._values = None
53+
self.discriminator = None
54+
55+
if name is not None:
56+
self.name = name
57+
if values is not None:
58+
self.values = values
59+
60+
@property
61+
def name(self):
62+
"""Gets the name of this FilterForListSandboxesInput. # noqa: E501
63+
64+
65+
:return: The name of this FilterForListSandboxesInput. # noqa: E501
66+
:rtype: str
67+
"""
68+
return self._name
69+
70+
@name.setter
71+
def name(self, name):
72+
"""Sets the name of this FilterForListSandboxesInput.
73+
74+
75+
:param name: The name of this FilterForListSandboxesInput. # noqa: E501
76+
:type: str
77+
"""
78+
79+
self._name = name
80+
81+
@property
82+
def values(self):
83+
"""Gets the values of this FilterForListSandboxesInput. # noqa: E501
84+
85+
86+
:return: The values of this FilterForListSandboxesInput. # noqa: E501
87+
:rtype: list[str]
88+
"""
89+
return self._values
90+
91+
@values.setter
92+
def values(self, values):
93+
"""Sets the values of this FilterForListSandboxesInput.
94+
95+
96+
:param values: The values of this FilterForListSandboxesInput. # noqa: E501
97+
:type: list[str]
98+
"""
99+
100+
self._values = values
101+
102+
def to_dict(self):
103+
"""Returns the model properties as a dict"""
104+
result = {}
105+
106+
for attr, _ in six.iteritems(self.swagger_types):
107+
value = getattr(self, attr)
108+
if isinstance(value, list):
109+
result[attr] = list(map(
110+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
111+
value
112+
))
113+
elif hasattr(value, "to_dict"):
114+
result[attr] = value.to_dict()
115+
elif isinstance(value, dict):
116+
result[attr] = dict(map(
117+
lambda item: (item[0], item[1].to_dict())
118+
if hasattr(item[1], "to_dict") else item,
119+
value.items()
120+
))
121+
else:
122+
result[attr] = value
123+
if issubclass(FilterForListSandboxesInput, dict):
124+
for key, value in self.items():
125+
result[key] = value
126+
127+
return result
128+
129+
def to_str(self):
130+
"""Returns the string representation of the model"""
131+
return pprint.pformat(self.to_dict())
132+
133+
def __repr__(self):
134+
"""For `print` and `pprint`"""
135+
return self.to_str()
136+
137+
def __eq__(self, other):
138+
"""Returns true if both objects are equal"""
139+
if not isinstance(other, FilterForListSandboxesInput):
140+
return False
141+
142+
return self.to_dict() == other.to_dict()
143+
144+
def __ne__(self, other):
145+
"""Returns true if both objects are not equal"""
146+
if not isinstance(other, FilterForListSandboxesInput):
147+
return True
148+
149+
return self.to_dict() != other.to_dict()

volcenginesdkvefaas/models/list_sandboxes_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ListSandboxesRequest(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'filters': 'list[FilterForListSandboxesInput]',
3637
'function_id': 'str',
3738
'image_url': 'str',
3839
'metadata': 'dict(str, str)',
@@ -43,6 +44,7 @@ class ListSandboxesRequest(object):
4344
}
4445

4546
attribute_map = {
47+
'filters': 'Filters',
4648
'function_id': 'FunctionId',
4749
'image_url': 'ImageUrl',
4850
'metadata': 'Metadata',
@@ -52,12 +54,13 @@ class ListSandboxesRequest(object):
5254
'status': 'Status'
5355
}
5456

55-
def __init__(self, function_id=None, image_url=None, metadata=None, page_number=None, page_size=None, sandbox_id=None, status=None, _configuration=None): # noqa: E501
57+
def __init__(self, filters=None, function_id=None, image_url=None, metadata=None, page_number=None, page_size=None, sandbox_id=None, status=None, _configuration=None): # noqa: E501
5658
"""ListSandboxesRequest - a model defined in Swagger""" # noqa: E501
5759
if _configuration is None:
5860
_configuration = Configuration()
5961
self._configuration = _configuration
6062

63+
self._filters = None
6164
self._function_id = None
6265
self._image_url = None
6366
self._metadata = None
@@ -67,6 +70,8 @@ def __init__(self, function_id=None, image_url=None, metadata=None, page_number=
6770
self._status = None
6871
self.discriminator = None
6972

73+
if filters is not None:
74+
self.filters = filters
7075
self.function_id = function_id
7176
if image_url is not None:
7277
self.image_url = image_url
@@ -81,6 +86,27 @@ def __init__(self, function_id=None, image_url=None, metadata=None, page_number=
8186
if status is not None:
8287
self.status = status
8388

89+
@property
90+
def filters(self):
91+
"""Gets the filters of this ListSandboxesRequest. # noqa: E501
92+
93+
94+
:return: The filters of this ListSandboxesRequest. # noqa: E501
95+
:rtype: list[FilterForListSandboxesInput]
96+
"""
97+
return self._filters
98+
99+
@filters.setter
100+
def filters(self, filters):
101+
"""Sets the filters of this ListSandboxesRequest.
102+
103+
104+
:param filters: The filters of this ListSandboxesRequest. # noqa: E501
105+
:type: list[FilterForListSandboxesInput]
106+
"""
107+
108+
self._filters = filters
109+
84110
@property
85111
def function_id(self):
86112
"""Gets the function_id of this ListSandboxesRequest. # noqa: E501

0 commit comments

Comments
 (0)