Skip to content

Commit 18ca1c3

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for vefaas-Python-2024-06-06-online-1428-2025_08_05_11_23_55
1 parent ca3a8a1 commit 18ca1c3

File tree

9 files changed

+208
-7
lines changed

9 files changed

+208
-7
lines changed

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "4.0.9",
3-
"meta_commit": "253fa71ed837e52556b6a4f2837f11d39a49f74c"
2+
"lasted": "4.0.10",
3+
"meta_commit": "213ba15f5642f9dd620629a3950d3e766663b78e"
44
}

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 = "4.0.9"
6+
VERSION = "4.0.10"
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
@@ -67,7 +67,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6767
self.default_headers[header_name] = header_value
6868
self.cookie = cookie
6969
# Set default User-Agent.
70-
self.user_agent = 'volcstack-python-sdk/4.0.9'
70+
self.user_agent = 'volcstack-python-sdk/4.0.10'
7171
self.client_side_validation = configuration.client_side_validation
7272

7373
self.interceptor_chain = InterceptorChain()

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def to_debug_report(self):
267267
"OS: {env}\n" \
268268
"Python Version: {pyversion}\n" \
269269
"Version of the API: 0.1.0\n" \
270-
"SDK Package Version: 4.0.9".\
270+
"SDK Package Version: 4.0.10".\
271271
format(env=sys.platform, pyversion=sys.version)
272272

273273
@property

volcenginesdkvefaas/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
from volcenginesdkvefaas.models.set_sandbox_timeout_response import SetSandboxTimeoutResponse
152152
from volcenginesdkvefaas.models.source_access_config_for_create_function_input import SourceAccessConfigForCreateFunctionInput
153153
from volcenginesdkvefaas.models.source_access_config_for_update_function_input import SourceAccessConfigForUpdateFunctionInput
154+
from volcenginesdkvefaas.models.status_count_for_list_sandboxes_output import StatusCountForListSandboxesOutput
154155
from volcenginesdkvefaas.models.tcp_socket_for_get_revision_output import TCPSocketForGetRevisionOutput
155156
from volcenginesdkvefaas.models.tcp_socket_for_list_revisions_output import TCPSocketForListRevisionsOutput
156157
from volcenginesdkvefaas.models.tag_filter_for_list_functions_input import TagFilterForListFunctionsInput

volcenginesdkvefaas/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
from volcenginesdkvefaas.models.set_sandbox_timeout_response import SetSandboxTimeoutResponse
148148
from volcenginesdkvefaas.models.source_access_config_for_create_function_input import SourceAccessConfigForCreateFunctionInput
149149
from volcenginesdkvefaas.models.source_access_config_for_update_function_input import SourceAccessConfigForUpdateFunctionInput
150+
from volcenginesdkvefaas.models.status_count_for_list_sandboxes_output import StatusCountForListSandboxesOutput
150151
from volcenginesdkvefaas.models.tcp_socket_for_get_revision_output import TCPSocketForGetRevisionOutput
151152
from volcenginesdkvefaas.models.tcp_socket_for_list_revisions_output import TCPSocketForListRevisionsOutput
152153
from volcenginesdkvefaas.models.tag_filter_for_list_functions_input import TagFilterForListFunctionsInput

volcenginesdkvefaas/models/list_sandboxes_response.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,31 @@ class ListSandboxesResponse(object):
3434
"""
3535
swagger_types = {
3636
'sandboxes': 'list[SandboxForListSandboxesOutput]',
37+
'status_count': 'StatusCountForListSandboxesOutput',
3738
'total': 'int'
3839
}
3940

4041
attribute_map = {
4142
'sandboxes': 'Sandboxes',
43+
'status_count': 'StatusCount',
4244
'total': 'Total'
4345
}
4446

45-
def __init__(self, sandboxes=None, total=None, _configuration=None): # noqa: E501
47+
def __init__(self, sandboxes=None, status_count=None, total=None, _configuration=None): # noqa: E501
4648
"""ListSandboxesResponse - a model defined in Swagger""" # noqa: E501
4749
if _configuration is None:
4850
_configuration = Configuration()
4951
self._configuration = _configuration
5052

5153
self._sandboxes = None
54+
self._status_count = None
5255
self._total = None
5356
self.discriminator = None
5457

5558
if sandboxes is not None:
5659
self.sandboxes = sandboxes
60+
if status_count is not None:
61+
self.status_count = status_count
5762
if total is not None:
5863
self.total = total
5964

@@ -78,6 +83,27 @@ def sandboxes(self, sandboxes):
7883

7984
self._sandboxes = sandboxes
8085

86+
@property
87+
def status_count(self):
88+
"""Gets the status_count of this ListSandboxesResponse. # noqa: E501
89+
90+
91+
:return: The status_count of this ListSandboxesResponse. # noqa: E501
92+
:rtype: StatusCountForListSandboxesOutput
93+
"""
94+
return self._status_count
95+
96+
@status_count.setter
97+
def status_count(self, status_count):
98+
"""Sets the status_count of this ListSandboxesResponse.
99+
100+
101+
:param status_count: The status_count of this ListSandboxesResponse. # noqa: E501
102+
:type: StatusCountForListSandboxesOutput
103+
"""
104+
105+
self._status_count = status_count
106+
81107
@property
82108
def total(self):
83109
"""Gets the total of this ListSandboxesResponse. # noqa: E501

volcenginesdkvefaas/models/sandbox_for_list_sandboxes_output.py

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,40 +35,49 @@ class SandboxForListSandboxesOutput(object):
3535
swagger_types = {
3636
'availability_zone': 'str',
3737
'created_at': 'str',
38+
'error_code': 'str',
39+
'error_message': 'str',
3840
'expire_at': 'str',
3941
'function_id': 'str',
4042
'id': 'str',
4143
'instance_type': 'str',
4244
'metadata': 'MetadataForListSandboxesOutput',
45+
'pending': 'bool',
4346
'revision_number': 'int',
4447
'status': 'str'
4548
}
4649

4750
attribute_map = {
4851
'availability_zone': 'AvailabilityZone',
4952
'created_at': 'CreatedAt',
53+
'error_code': 'ErrorCode',
54+
'error_message': 'ErrorMessage',
5055
'expire_at': 'ExpireAt',
5156
'function_id': 'FunctionId',
5257
'id': 'Id',
5358
'instance_type': 'InstanceType',
5459
'metadata': 'Metadata',
60+
'pending': 'Pending',
5561
'revision_number': 'RevisionNumber',
5662
'status': 'Status'
5763
}
5864

59-
def __init__(self, availability_zone=None, created_at=None, expire_at=None, function_id=None, id=None, instance_type=None, metadata=None, revision_number=None, status=None, _configuration=None): # noqa: E501
65+
def __init__(self, availability_zone=None, created_at=None, error_code=None, error_message=None, expire_at=None, function_id=None, id=None, instance_type=None, metadata=None, pending=None, revision_number=None, status=None, _configuration=None): # noqa: E501
6066
"""SandboxForListSandboxesOutput - a model defined in Swagger""" # noqa: E501
6167
if _configuration is None:
6268
_configuration = Configuration()
6369
self._configuration = _configuration
6470

6571
self._availability_zone = None
6672
self._created_at = None
73+
self._error_code = None
74+
self._error_message = None
6775
self._expire_at = None
6876
self._function_id = None
6977
self._id = None
7078
self._instance_type = None
7179
self._metadata = None
80+
self._pending = None
7281
self._revision_number = None
7382
self._status = None
7483
self.discriminator = None
@@ -77,6 +86,10 @@ def __init__(self, availability_zone=None, created_at=None, expire_at=None, func
7786
self.availability_zone = availability_zone
7887
if created_at is not None:
7988
self.created_at = created_at
89+
if error_code is not None:
90+
self.error_code = error_code
91+
if error_message is not None:
92+
self.error_message = error_message
8093
if expire_at is not None:
8194
self.expire_at = expire_at
8295
if function_id is not None:
@@ -87,6 +100,8 @@ def __init__(self, availability_zone=None, created_at=None, expire_at=None, func
87100
self.instance_type = instance_type
88101
if metadata is not None:
89102
self.metadata = metadata
103+
if pending is not None:
104+
self.pending = pending
90105
if revision_number is not None:
91106
self.revision_number = revision_number
92107
if status is not None:
@@ -134,6 +149,48 @@ def created_at(self, created_at):
134149

135150
self._created_at = created_at
136151

152+
@property
153+
def error_code(self):
154+
"""Gets the error_code of this SandboxForListSandboxesOutput. # noqa: E501
155+
156+
157+
:return: The error_code of this SandboxForListSandboxesOutput. # noqa: E501
158+
:rtype: str
159+
"""
160+
return self._error_code
161+
162+
@error_code.setter
163+
def error_code(self, error_code):
164+
"""Sets the error_code of this SandboxForListSandboxesOutput.
165+
166+
167+
:param error_code: The error_code of this SandboxForListSandboxesOutput. # noqa: E501
168+
:type: str
169+
"""
170+
171+
self._error_code = error_code
172+
173+
@property
174+
def error_message(self):
175+
"""Gets the error_message of this SandboxForListSandboxesOutput. # noqa: E501
176+
177+
178+
:return: The error_message of this SandboxForListSandboxesOutput. # noqa: E501
179+
:rtype: str
180+
"""
181+
return self._error_message
182+
183+
@error_message.setter
184+
def error_message(self, error_message):
185+
"""Sets the error_message of this SandboxForListSandboxesOutput.
186+
187+
188+
:param error_message: The error_message of this SandboxForListSandboxesOutput. # noqa: E501
189+
:type: str
190+
"""
191+
192+
self._error_message = error_message
193+
137194
@property
138195
def expire_at(self):
139196
"""Gets the expire_at of this SandboxForListSandboxesOutput. # noqa: E501
@@ -239,6 +296,27 @@ def metadata(self, metadata):
239296

240297
self._metadata = metadata
241298

299+
@property
300+
def pending(self):
301+
"""Gets the pending of this SandboxForListSandboxesOutput. # noqa: E501
302+
303+
304+
:return: The pending of this SandboxForListSandboxesOutput. # noqa: E501
305+
:rtype: bool
306+
"""
307+
return self._pending
308+
309+
@pending.setter
310+
def pending(self, pending):
311+
"""Sets the pending of this SandboxForListSandboxesOutput.
312+
313+
314+
:param pending: The pending of this SandboxForListSandboxesOutput. # noqa: E501
315+
:type: bool
316+
"""
317+
318+
self._pending = pending
319+
242320
@property
243321
def revision_number(self):
244322
"""Gets the revision_number of this SandboxForListSandboxesOutput. # noqa: E501
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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 StatusCountForListSandboxesOutput(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+
}
37+
38+
attribute_map = {
39+
}
40+
41+
def __init__(self, _configuration=None): # noqa: E501
42+
"""StatusCountForListSandboxesOutput - a model defined in Swagger""" # noqa: E501
43+
if _configuration is None:
44+
_configuration = Configuration()
45+
self._configuration = _configuration
46+
self.discriminator = None
47+
48+
def to_dict(self):
49+
"""Returns the model properties as a dict"""
50+
result = {}
51+
52+
for attr, _ in six.iteritems(self.swagger_types):
53+
value = getattr(self, attr)
54+
if isinstance(value, list):
55+
result[attr] = list(map(
56+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
57+
value
58+
))
59+
elif hasattr(value, "to_dict"):
60+
result[attr] = value.to_dict()
61+
elif isinstance(value, dict):
62+
result[attr] = dict(map(
63+
lambda item: (item[0], item[1].to_dict())
64+
if hasattr(item[1], "to_dict") else item,
65+
value.items()
66+
))
67+
else:
68+
result[attr] = value
69+
if issubclass(StatusCountForListSandboxesOutput, dict):
70+
for key, value in self.items():
71+
result[key] = value
72+
73+
return result
74+
75+
def to_str(self):
76+
"""Returns the string representation of the model"""
77+
return pprint.pformat(self.to_dict())
78+
79+
def __repr__(self):
80+
"""For `print` and `pprint`"""
81+
return self.to_str()
82+
83+
def __eq__(self, other):
84+
"""Returns true if both objects are equal"""
85+
if not isinstance(other, StatusCountForListSandboxesOutput):
86+
return False
87+
88+
return self.to_dict() == other.to_dict()
89+
90+
def __ne__(self, other):
91+
"""Returns true if both objects are not equal"""
92+
if not isinstance(other, StatusCountForListSandboxesOutput):
93+
return True
94+
95+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)