Skip to content

Commit 7a8ff6a

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for tag-Python-2022-06-01-online-1629-2025_09_24_20_57_09
1 parent eb9c4d6 commit 7a8ff6a

8 files changed

Lines changed: 162 additions & 11 deletions

File tree

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.21",
3-
"meta_commit": "95abf0a288a30f7141a386d5b1280125d001e576"
2+
"lasted": "4.0.22",
3+
"meta_commit": "ae9dbb1e9f0df00ed81f341874db7c0e3fe3b41b"
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.21"
3+
version = "4.0.22"
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 = "4.0.21"
6+
VERSION = "4.0.22"
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.21'
70+
self.user_agent = 'volcstack-python-sdk/4.0.22'
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.21".\
270+
"SDK Package Version: 4.0.22".\
271271
format(env=sys.platform, pyversion=sys.version)
272272

273273
@property

volcenginesdktag/models/get_tag_keys_request.py

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,73 @@ class GetTagKeysRequest(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'match_type': 'str',
3637
'max_results': 'int',
3738
'next_token': 'str',
39+
'tag_key': 'str',
3840
'tag_type': 'str'
3941
}
4042

4143
attribute_map = {
44+
'match_type': 'MatchType',
4245
'max_results': 'MaxResults',
4346
'next_token': 'NextToken',
47+
'tag_key': 'TagKey',
4448
'tag_type': 'TagType'
4549
}
4650

47-
def __init__(self, max_results=None, next_token=None, tag_type=None, _configuration=None): # noqa: E501
51+
def __init__(self, match_type=None, max_results=None, next_token=None, tag_key=None, tag_type=None, _configuration=None): # noqa: E501
4852
"""GetTagKeysRequest - a model defined in Swagger""" # noqa: E501
4953
if _configuration is None:
5054
_configuration = Configuration()
5155
self._configuration = _configuration
5256

57+
self._match_type = None
5358
self._max_results = None
5459
self._next_token = None
60+
self._tag_key = None
5561
self._tag_type = None
5662
self.discriminator = None
5763

64+
if match_type is not None:
65+
self.match_type = match_type
5866
if max_results is not None:
5967
self.max_results = max_results
6068
if next_token is not None:
6169
self.next_token = next_token
70+
if tag_key is not None:
71+
self.tag_key = tag_key
6272
if tag_type is not None:
6373
self.tag_type = tag_type
6474

75+
@property
76+
def match_type(self):
77+
"""Gets the match_type of this GetTagKeysRequest. # noqa: E501
78+
79+
80+
:return: The match_type of this GetTagKeysRequest. # noqa: E501
81+
:rtype: str
82+
"""
83+
return self._match_type
84+
85+
@match_type.setter
86+
def match_type(self, match_type):
87+
"""Sets the match_type of this GetTagKeysRequest.
88+
89+
90+
:param match_type: The match_type of this GetTagKeysRequest. # noqa: E501
91+
:type: str
92+
"""
93+
allowed_values = ["prefix", "equals", "contain"] # noqa: E501
94+
if (self._configuration.client_side_validation and
95+
match_type not in allowed_values):
96+
raise ValueError(
97+
"Invalid value for `match_type` ({0}), must be one of {1}" # noqa: E501
98+
.format(match_type, allowed_values)
99+
)
100+
101+
self._match_type = match_type
102+
65103
@property
66104
def max_results(self):
67105
"""Gets the max_results of this GetTagKeysRequest. # noqa: E501
@@ -104,6 +142,27 @@ def next_token(self, next_token):
104142

105143
self._next_token = next_token
106144

145+
@property
146+
def tag_key(self):
147+
"""Gets the tag_key of this GetTagKeysRequest. # noqa: E501
148+
149+
150+
:return: The tag_key of this GetTagKeysRequest. # noqa: E501
151+
:rtype: str
152+
"""
153+
return self._tag_key
154+
155+
@tag_key.setter
156+
def tag_key(self, tag_key):
157+
"""Sets the tag_key of this GetTagKeysRequest.
158+
159+
160+
:param tag_key: The tag_key of this GetTagKeysRequest. # noqa: E501
161+
:type: str
162+
"""
163+
164+
self._tag_key = tag_key
165+
107166
@property
108167
def tag_type(self):
109168
"""Gets the tag_type of this GetTagKeysRequest. # noqa: E501

volcenginesdktag/models/get_tag_values_request.py

Lines changed: 62 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,72 @@ class GetTagValuesRequest(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'match_type': 'str',
3637
'max_results': 'int',
3738
'next_token': 'str',
38-
'tag_keys': 'list[str]'
39+
'tag_keys': 'list[str]',
40+
'tag_value': 'str'
3941
}
4042

4143
attribute_map = {
44+
'match_type': 'MatchType',
4245
'max_results': 'MaxResults',
4346
'next_token': 'NextToken',
44-
'tag_keys': 'TagKeys'
47+
'tag_keys': 'TagKeys',
48+
'tag_value': 'TagValue'
4549
}
4650

47-
def __init__(self, max_results=None, next_token=None, tag_keys=None, _configuration=None): # noqa: E501
51+
def __init__(self, match_type=None, max_results=None, next_token=None, tag_keys=None, tag_value=None, _configuration=None): # noqa: E501
4852
"""GetTagValuesRequest - a model defined in Swagger""" # noqa: E501
4953
if _configuration is None:
5054
_configuration = Configuration()
5155
self._configuration = _configuration
5256

57+
self._match_type = None
5358
self._max_results = None
5459
self._next_token = None
5560
self._tag_keys = None
61+
self._tag_value = None
5662
self.discriminator = None
5763

64+
if match_type is not None:
65+
self.match_type = match_type
5866
if max_results is not None:
5967
self.max_results = max_results
6068
if next_token is not None:
6169
self.next_token = next_token
6270
if tag_keys is not None:
6371
self.tag_keys = tag_keys
72+
if tag_value is not None:
73+
self.tag_value = tag_value
74+
75+
@property
76+
def match_type(self):
77+
"""Gets the match_type of this GetTagValuesRequest. # noqa: E501
78+
79+
80+
:return: The match_type of this GetTagValuesRequest. # noqa: E501
81+
:rtype: str
82+
"""
83+
return self._match_type
84+
85+
@match_type.setter
86+
def match_type(self, match_type):
87+
"""Sets the match_type of this GetTagValuesRequest.
88+
89+
90+
:param match_type: The match_type of this GetTagValuesRequest. # noqa: E501
91+
:type: str
92+
"""
93+
allowed_values = ["prefix", "equals", "contain"] # noqa: E501
94+
if (self._configuration.client_side_validation and
95+
match_type not in allowed_values):
96+
raise ValueError(
97+
"Invalid value for `match_type` ({0}), must be one of {1}" # noqa: E501
98+
.format(match_type, allowed_values)
99+
)
100+
101+
self._match_type = match_type
64102

65103
@property
66104
def max_results(self):
@@ -125,6 +163,27 @@ def tag_keys(self, tag_keys):
125163

126164
self._tag_keys = tag_keys
127165

166+
@property
167+
def tag_value(self):
168+
"""Gets the tag_value of this GetTagValuesRequest. # noqa: E501
169+
170+
171+
:return: The tag_value of this GetTagValuesRequest. # noqa: E501
172+
:rtype: str
173+
"""
174+
return self._tag_value
175+
176+
@tag_value.setter
177+
def tag_value(self, tag_value):
178+
"""Sets the tag_value of this GetTagValuesRequest.
179+
180+
181+
:param tag_value: The tag_value of this GetTagValuesRequest. # noqa: E501
182+
:type: str
183+
"""
184+
185+
self._tag_value = tag_value
186+
128187
def to_dict(self):
129188
"""Returns the model properties as a dict"""
130189
result = {}

volcenginesdktag/models/get_tags_request.py

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class GetTagsRequest(object):
3434
"""
3535
swagger_types = {
3636
'count_resources': 'bool',
37+
'match_type': 'str',
3738
'max_results': 'int',
3839
'next_token': 'str',
3940
'tag_keys': 'list[str]',
@@ -42,19 +43,21 @@ class GetTagsRequest(object):
4243

4344
attribute_map = {
4445
'count_resources': 'CountResources',
46+
'match_type': 'MatchType',
4547
'max_results': 'MaxResults',
4648
'next_token': 'NextToken',
4749
'tag_keys': 'TagKeys',
4850
'tag_type': 'TagType'
4951
}
5052

51-
def __init__(self, count_resources=None, max_results=None, next_token=None, tag_keys=None, tag_type=None, _configuration=None): # noqa: E501
53+
def __init__(self, count_resources=None, match_type=None, max_results=None, next_token=None, tag_keys=None, tag_type=None, _configuration=None): # noqa: E501
5254
"""GetTagsRequest - a model defined in Swagger""" # noqa: E501
5355
if _configuration is None:
5456
_configuration = Configuration()
5557
self._configuration = _configuration
5658

5759
self._count_resources = None
60+
self._match_type = None
5861
self._max_results = None
5962
self._next_token = None
6063
self._tag_keys = None
@@ -63,6 +66,8 @@ def __init__(self, count_resources=None, max_results=None, next_token=None, tag_
6366

6467
if count_resources is not None:
6568
self.count_resources = count_resources
69+
if match_type is not None:
70+
self.match_type = match_type
6671
if max_results is not None:
6772
self.max_results = max_results
6873
if next_token is not None:
@@ -93,6 +98,34 @@ def count_resources(self, count_resources):
9398

9499
self._count_resources = count_resources
95100

101+
@property
102+
def match_type(self):
103+
"""Gets the match_type of this GetTagsRequest. # noqa: E501
104+
105+
106+
:return: The match_type of this GetTagsRequest. # noqa: E501
107+
:rtype: str
108+
"""
109+
return self._match_type
110+
111+
@match_type.setter
112+
def match_type(self, match_type):
113+
"""Sets the match_type of this GetTagsRequest.
114+
115+
116+
:param match_type: The match_type of this GetTagsRequest. # noqa: E501
117+
:type: str
118+
"""
119+
allowed_values = ["prefix", "equals", "contain"] # noqa: E501
120+
if (self._configuration.client_side_validation and
121+
match_type not in allowed_values):
122+
raise ValueError(
123+
"Invalid value for `match_type` ({0}), must be one of {1}" # noqa: E501
124+
.format(match_type, allowed_values)
125+
)
126+
127+
self._match_type = match_type
128+
96129
@property
97130
def max_results(self):
98131
"""Gets the max_results of this GetTagsRequest. # noqa: E501

0 commit comments

Comments
 (0)