Skip to content

Commit 26f1ca1

Browse files
author
BitsAdmin
committed
Merge 'ecs-Python-2020-04-01-online-2220-2026_01_28_17_24_47' into 'integration_2026-01-29_1109128349954'
feat: [development task] ecs-2220-Python (2075186) See merge request: !1039
2 parents 73cbba2 + d641866 commit 26f1ca1

File tree

8 files changed

+36
-43
lines changed

8 files changed

+36
-43
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": "5.0.7",
3-
"meta_commit": "2756e1ef42b0bd3eb8a186a7be5bfd9cd4704d25"
2+
"lasted": "5.0.8",
3+
"meta_commit": "2b40ba04033b1db9575f544f9f25ab2f08d71b8c"
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 = "5.0.7"
3+
version = "5.0.8"
44
authors = [
55
{name = "volc-engine", email = "volc-sdk-team@bytedance.com"},
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.7"
6+
VERSION = "5.0.8"
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.7'
67+
self.user_agent = 'volcstack-python-sdk/5.0.8'
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.7".\
275+
"SDK Package Version: 5.0.8".\
276276
format(env=sys.platform, pyversion=sys.version)
277277

278278
@property

volcenginesdkecs/models/modify_system_event_default_action_request.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,6 @@ def default_action(self, default_action):
8585
"""
8686
if self._configuration.client_side_validation and default_action is None:
8787
raise ValueError("Invalid value for `default_action`, must not be `None`") # noqa: E501
88-
allowed_values = ["ColdMigrate", "ReplaceDisk"] # noqa: E501
89-
if (self._configuration.client_side_validation and
90-
default_action not in allowed_values):
91-
raise ValueError(
92-
"Invalid value for `default_action` ({0}), must be one of {1}" # noqa: E501
93-
.format(default_action, allowed_values)
94-
)
9588

9689
self._default_action = default_action
9790

volcenginesdkecs/models/tag_filter_for_describe_launch_templates_input.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,33 @@ class TagFilterForDescribeLaunchTemplatesInput(object):
3434
"""
3535
swagger_types = {
3636
'key': 'str',
37-
'value': 'list[str]'
37+
'value': 'list[str]',
38+
'values': 'list[str]'
3839
}
3940

4041
attribute_map = {
4142
'key': 'Key',
42-
'value': 'Value'
43+
'value': 'Value',
44+
'values': 'Values'
4345
}
4446

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

5153
self._key = None
5254
self._value = None
55+
self._values = None
5356
self.discriminator = None
5457

5558
if key is not None:
5659
self.key = key
5760
if value is not None:
5861
self.value = value
62+
if values is not None:
63+
self.values = values
5964

6065
@property
6166
def key(self):
@@ -99,6 +104,27 @@ def value(self, value):
99104

100105
self._value = value
101106

107+
@property
108+
def values(self):
109+
"""Gets the values of this TagFilterForDescribeLaunchTemplatesInput. # noqa: E501
110+
111+
112+
:return: The values of this TagFilterForDescribeLaunchTemplatesInput. # noqa: E501
113+
:rtype: list[str]
114+
"""
115+
return self._values
116+
117+
@values.setter
118+
def values(self, values):
119+
"""Sets the values of this TagFilterForDescribeLaunchTemplatesInput.
120+
121+
122+
:param values: The values of this TagFilterForDescribeLaunchTemplatesInput. # noqa: E501
123+
:type: list[str]
124+
"""
125+
126+
self._values = values
127+
102128
def to_dict(self):
103129
"""Returns the model properties as a dict"""
104130
result = {}

volcenginesdkecs/models/volume_for_allocate_instances_input.py

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class VolumeForAllocateInstancesInput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36-
'delete_with_instance': 'str',
3736
'extra_performance_iops': 'int',
3837
'extra_performance_throughput_mb': 'int',
3938
'extra_performance_type_id': 'str',
@@ -43,7 +42,6 @@ class VolumeForAllocateInstancesInput(object):
4342
}
4443

4544
attribute_map = {
46-
'delete_with_instance': 'DeleteWithInstance',
4745
'extra_performance_iops': 'ExtraPerformanceIOPS',
4846
'extra_performance_throughput_mb': 'ExtraPerformanceThroughputMB',
4947
'extra_performance_type_id': 'ExtraPerformanceTypeId',
@@ -52,13 +50,12 @@ class VolumeForAllocateInstancesInput(object):
5250
'volume_type': 'VolumeType'
5351
}
5452

55-
def __init__(self, delete_with_instance=None, extra_performance_iops=None, extra_performance_throughput_mb=None, extra_performance_type_id=None, size=None, snapshot_id=None, volume_type=None, _configuration=None): # noqa: E501
53+
def __init__(self, extra_performance_iops=None, extra_performance_throughput_mb=None, extra_performance_type_id=None, size=None, snapshot_id=None, volume_type=None, _configuration=None): # noqa: E501
5654
"""VolumeForAllocateInstancesInput - a model defined in Swagger""" # noqa: E501
5755
if _configuration is None:
5856
_configuration = Configuration()
5957
self._configuration = _configuration
6058

61-
self._delete_with_instance = None
6259
self._extra_performance_iops = None
6360
self._extra_performance_throughput_mb = None
6461
self._extra_performance_type_id = None
@@ -67,8 +64,6 @@ def __init__(self, delete_with_instance=None, extra_performance_iops=None, extra
6764
self._volume_type = None
6865
self.discriminator = None
6966

70-
if delete_with_instance is not None:
71-
self.delete_with_instance = delete_with_instance
7267
if extra_performance_iops is not None:
7368
self.extra_performance_iops = extra_performance_iops
7469
if extra_performance_throughput_mb is not None:
@@ -81,27 +76,6 @@ def __init__(self, delete_with_instance=None, extra_performance_iops=None, extra
8176
if volume_type is not None:
8277
self.volume_type = volume_type
8378

84-
@property
85-
def delete_with_instance(self):
86-
"""Gets the delete_with_instance of this VolumeForAllocateInstancesInput. # noqa: E501
87-
88-
89-
:return: The delete_with_instance of this VolumeForAllocateInstancesInput. # noqa: E501
90-
:rtype: str
91-
"""
92-
return self._delete_with_instance
93-
94-
@delete_with_instance.setter
95-
def delete_with_instance(self, delete_with_instance):
96-
"""Sets the delete_with_instance of this VolumeForAllocateInstancesInput.
97-
98-
99-
:param delete_with_instance: The delete_with_instance of this VolumeForAllocateInstancesInput. # noqa: E501
100-
:type: str
101-
"""
102-
103-
self._delete_with_instance = delete_with_instance
104-
10579
@property
10680
def extra_performance_iops(self):
10781
"""Gets the extra_performance_iops of this VolumeForAllocateInstancesInput. # noqa: E501

0 commit comments

Comments
 (0)