Skip to content

Commit 50d010a

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for vefaas-Python-2024-06-06-online-1753-2025_10_28_19_54_15
1 parent f2573e2 commit 50d010a

File tree

9 files changed

+210
-7
lines changed

9 files changed

+210
-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.29",
3-
"meta_commit": "dd33620b76ec2883e96643ce7ad8b9229f515a9a"
2+
"lasted": "4.0.30",
3+
"meta_commit": "21b1d3577c331e879e272979aa5fa295fb4f92ab"
44
}

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 = "4.0.28"
3+
version = "4.0.30"
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 = "4.0.29"
6+
VERSION = "4.0.30"
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/4.0.29'
67+
self.user_agent = 'volcstack-python-sdk/4.0.30'
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: 4.0.29".\
275+
"SDK Package Version: 4.0.30".\
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
@@ -138,6 +138,7 @@
138138
from volcenginesdkvefaas.models.list_sandboxes_response import ListSandboxesResponse
139139
from volcenginesdkvefaas.models.list_triggers_request import ListTriggersRequest
140140
from volcenginesdkvefaas.models.list_triggers_response import ListTriggersResponse
141+
from volcenginesdkvefaas.models.metadata_list_for_describe_sandbox_output import MetadataListForDescribeSandboxOutput
141142
from volcenginesdkvefaas.models.mount_point_for_create_function_input import MountPointForCreateFunctionInput
142143
from volcenginesdkvefaas.models.mount_point_for_create_function_output import MountPointForCreateFunctionOutput
143144
from volcenginesdkvefaas.models.mount_point_for_get_function_output import MountPointForGetFunctionOutput

volcenginesdkvefaas/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
from volcenginesdkvefaas.models.list_sandboxes_response import ListSandboxesResponse
135135
from volcenginesdkvefaas.models.list_triggers_request import ListTriggersRequest
136136
from volcenginesdkvefaas.models.list_triggers_response import ListTriggersResponse
137+
from volcenginesdkvefaas.models.metadata_list_for_describe_sandbox_output import MetadataListForDescribeSandboxOutput
137138
from volcenginesdkvefaas.models.mount_point_for_create_function_input import MountPointForCreateFunctionInput
138139
from volcenginesdkvefaas.models.mount_point_for_create_function_output import MountPointForCreateFunctionOutput
139140
from volcenginesdkvefaas.models.mount_point_for_get_function_output import MountPointForGetFunctionOutput

volcenginesdkvefaas/models/describe_sandbox_response.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class DescribeSandboxResponse(object):
4747
'instance_type': 'str',
4848
'max_concurrency': 'int',
4949
'memory_mb': 'int',
50+
'metadata': 'dict(str, str)',
51+
'metadata_list': 'list[MetadataListForDescribeSandboxOutput]',
5052
'pending': 'bool',
5153
'request_timeout': 'int',
5254
'revision_number': 'int',
@@ -68,13 +70,15 @@ class DescribeSandboxResponse(object):
6870
'instance_type': 'InstanceType',
6971
'max_concurrency': 'MaxConcurrency',
7072
'memory_mb': 'MemoryMB',
73+
'metadata': 'Metadata',
74+
'metadata_list': 'MetadataList',
7175
'pending': 'Pending',
7276
'request_timeout': 'RequestTimeout',
7377
'revision_number': 'RevisionNumber',
7478
'status': 'Status'
7579
}
7680

77-
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_tos_mount_config=None, instance_type=None, max_concurrency=None, memory_mb=None, pending=None, request_timeout=None, revision_number=None, status=None, _configuration=None): # noqa: E501
81+
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_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
7882
"""DescribeSandboxResponse - a model defined in Swagger""" # noqa: E501
7983
if _configuration is None:
8084
_configuration = Configuration()
@@ -94,6 +98,8 @@ def __init__(self, availability_zone=None, cpu_milli=None, created_at=None, envs
9498
self._instance_type = None
9599
self._max_concurrency = None
96100
self._memory_mb = None
101+
self._metadata = None
102+
self._metadata_list = None
97103
self._pending = None
98104
self._request_timeout = None
99105
self._revision_number = None
@@ -128,6 +134,10 @@ def __init__(self, availability_zone=None, cpu_milli=None, created_at=None, envs
128134
self.max_concurrency = max_concurrency
129135
if memory_mb is not None:
130136
self.memory_mb = memory_mb
137+
if metadata is not None:
138+
self.metadata = metadata
139+
if metadata_list is not None:
140+
self.metadata_list = metadata_list
131141
if pending is not None:
132142
self.pending = pending
133143
if request_timeout is not None:
@@ -431,6 +441,48 @@ def memory_mb(self, memory_mb):
431441

432442
self._memory_mb = memory_mb
433443

444+
@property
445+
def metadata(self):
446+
"""Gets the metadata of this DescribeSandboxResponse. # noqa: E501
447+
448+
449+
:return: The metadata of this DescribeSandboxResponse. # noqa: E501
450+
:rtype: dict(str, str)
451+
"""
452+
return self._metadata
453+
454+
@metadata.setter
455+
def metadata(self, metadata):
456+
"""Sets the metadata of this DescribeSandboxResponse.
457+
458+
459+
:param metadata: The metadata of this DescribeSandboxResponse. # noqa: E501
460+
:type: dict(str, str)
461+
"""
462+
463+
self._metadata = metadata
464+
465+
@property
466+
def metadata_list(self):
467+
"""Gets the metadata_list of this DescribeSandboxResponse. # noqa: E501
468+
469+
470+
:return: The metadata_list of this DescribeSandboxResponse. # noqa: E501
471+
:rtype: list[MetadataListForDescribeSandboxOutput]
472+
"""
473+
return self._metadata_list
474+
475+
@metadata_list.setter
476+
def metadata_list(self, metadata_list):
477+
"""Sets the metadata_list of this DescribeSandboxResponse.
478+
479+
480+
:param metadata_list: The metadata_list of this DescribeSandboxResponse. # noqa: E501
481+
:type: list[MetadataListForDescribeSandboxOutput]
482+
"""
483+
484+
self._metadata_list = metadata_list
485+
434486
@property
435487
def pending(self):
436488
"""Gets the pending 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 MetadataListForDescribeSandboxOutput(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+
'meta_key': 'str',
37+
'meta_value': 'str'
38+
}
39+
40+
attribute_map = {
41+
'meta_key': 'MetaKey',
42+
'meta_value': 'MetaValue'
43+
}
44+
45+
def __init__(self, meta_key=None, meta_value=None, _configuration=None): # noqa: E501
46+
"""MetadataListForDescribeSandboxOutput - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._meta_key = None
52+
self._meta_value = None
53+
self.discriminator = None
54+
55+
if meta_key is not None:
56+
self.meta_key = meta_key
57+
if meta_value is not None:
58+
self.meta_value = meta_value
59+
60+
@property
61+
def meta_key(self):
62+
"""Gets the meta_key of this MetadataListForDescribeSandboxOutput. # noqa: E501
63+
64+
65+
:return: The meta_key of this MetadataListForDescribeSandboxOutput. # noqa: E501
66+
:rtype: str
67+
"""
68+
return self._meta_key
69+
70+
@meta_key.setter
71+
def meta_key(self, meta_key):
72+
"""Sets the meta_key of this MetadataListForDescribeSandboxOutput.
73+
74+
75+
:param meta_key: The meta_key of this MetadataListForDescribeSandboxOutput. # noqa: E501
76+
:type: str
77+
"""
78+
79+
self._meta_key = meta_key
80+
81+
@property
82+
def meta_value(self):
83+
"""Gets the meta_value of this MetadataListForDescribeSandboxOutput. # noqa: E501
84+
85+
86+
:return: The meta_value of this MetadataListForDescribeSandboxOutput. # noqa: E501
87+
:rtype: str
88+
"""
89+
return self._meta_value
90+
91+
@meta_value.setter
92+
def meta_value(self, meta_value):
93+
"""Sets the meta_value of this MetadataListForDescribeSandboxOutput.
94+
95+
96+
:param meta_value: The meta_value of this MetadataListForDescribeSandboxOutput. # noqa: E501
97+
:type: str
98+
"""
99+
100+
self._meta_value = meta_value
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(MetadataListForDescribeSandboxOutput, 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, MetadataListForDescribeSandboxOutput):
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, MetadataListForDescribeSandboxOutput):
147+
return True
148+
149+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)