Skip to content

Commit eb51013

Browse files
author
李严
committed
Merge branch 'vpc-Python-2020-04-01-online-234-2023_11_29_15_19_11' into 'master'
Vpc python 2020 04 01 online 234 2023 11 29 15 19 11 See merge request iaasng/volcengine-python-sdk!258
2 parents 5a05963 + 027e860 commit eb51013

31 files changed

+1114
-35
lines changed

meta.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"lasted": "1.0.59",
2+
"lasted": "1.0.60",
33
"meta_commit": "f919e637325f175b946e2e5860dabe4863c53d0a"
4-
}
5-
4+
}

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 = "1.0.59"
6+
VERSION = "1.0.60"
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/1.0.59'
70+
self.user_agent = 'volcstack-python-sdk/1.0.60'
7171
self.client_side_validation = configuration.client_side_validation
7272

7373
def __del__(self):

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,5 @@ def to_debug_report(self):
221221
"OS: {env}\n"\
222222
"Python Version: {pyversion}\n"\
223223
"Version of the API: 0.1.0\n"\
224-
"SDK Package Version: 1.0.59".\
224+
"SDK Package Version: 1.0.60".\
225225
format(env=sys.platform, pyversion=sys.version)

volcenginesdkvpc/models/describe_bandwidth_packages_request.py

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class DescribeBandwidthPackagesRequest(object):
3636
'bandwidth_package_ids': 'list[str]',
3737
'bandwidth_package_name': 'str',
3838
'isp': 'str',
39+
'max_results': 'int',
40+
'next_token': 'str',
3941
'page_number': 'int',
4042
'page_size': 'int',
4143
'project_name': 'str',
@@ -48,6 +50,8 @@ class DescribeBandwidthPackagesRequest(object):
4850
'bandwidth_package_ids': 'BandwidthPackageIds',
4951
'bandwidth_package_name': 'BandwidthPackageName',
5052
'isp': 'ISP',
53+
'max_results': 'MaxResults',
54+
'next_token': 'NextToken',
5155
'page_number': 'PageNumber',
5256
'page_size': 'PageSize',
5357
'project_name': 'ProjectName',
@@ -56,7 +60,7 @@ class DescribeBandwidthPackagesRequest(object):
5660
'tag_filters': 'TagFilters'
5761
}
5862

59-
def __init__(self, bandwidth_package_ids=None, bandwidth_package_name=None, isp=None, page_number=None, page_size=None, project_name=None, protocol=None, security_protection_enabled=None, tag_filters=None, _configuration=None): # noqa: E501
63+
def __init__(self, bandwidth_package_ids=None, bandwidth_package_name=None, isp=None, max_results=None, next_token=None, page_number=None, page_size=None, project_name=None, protocol=None, security_protection_enabled=None, tag_filters=None, _configuration=None): # noqa: E501
6064
"""DescribeBandwidthPackagesRequest - a model defined in Swagger""" # noqa: E501
6165
if _configuration is None:
6266
_configuration = Configuration()
@@ -65,6 +69,8 @@ def __init__(self, bandwidth_package_ids=None, bandwidth_package_name=None, isp=
6569
self._bandwidth_package_ids = None
6670
self._bandwidth_package_name = None
6771
self._isp = None
72+
self._max_results = None
73+
self._next_token = None
6874
self._page_number = None
6975
self._page_size = None
7076
self._project_name = None
@@ -79,6 +85,10 @@ def __init__(self, bandwidth_package_ids=None, bandwidth_package_name=None, isp=
7985
self.bandwidth_package_name = bandwidth_package_name
8086
if isp is not None:
8187
self.isp = isp
88+
if max_results is not None:
89+
self.max_results = max_results
90+
if next_token is not None:
91+
self.next_token = next_token
8292
if page_number is not None:
8393
self.page_number = page_number
8494
if page_size is not None:
@@ -162,6 +172,54 @@ def isp(self, isp):
162172

163173
self._isp = isp
164174

175+
@property
176+
def max_results(self):
177+
"""Gets the max_results of this DescribeBandwidthPackagesRequest. # noqa: E501
178+
179+
180+
:return: The max_results of this DescribeBandwidthPackagesRequest. # noqa: E501
181+
:rtype: int
182+
"""
183+
return self._max_results
184+
185+
@max_results.setter
186+
def max_results(self, max_results):
187+
"""Sets the max_results of this DescribeBandwidthPackagesRequest.
188+
189+
190+
:param max_results: The max_results of this DescribeBandwidthPackagesRequest. # noqa: E501
191+
:type: int
192+
"""
193+
if (self._configuration.client_side_validation and
194+
max_results is not None and max_results > 100): # noqa: E501
195+
raise ValueError("Invalid value for `max_results`, must be a value less than or equal to `100`") # noqa: E501
196+
if (self._configuration.client_side_validation and
197+
max_results is not None and max_results < 1): # noqa: E501
198+
raise ValueError("Invalid value for `max_results`, must be a value greater than or equal to `1`") # noqa: E501
199+
200+
self._max_results = max_results
201+
202+
@property
203+
def next_token(self):
204+
"""Gets the next_token of this DescribeBandwidthPackagesRequest. # noqa: E501
205+
206+
207+
:return: The next_token of this DescribeBandwidthPackagesRequest. # noqa: E501
208+
:rtype: str
209+
"""
210+
return self._next_token
211+
212+
@next_token.setter
213+
def next_token(self, next_token):
214+
"""Sets the next_token of this DescribeBandwidthPackagesRequest.
215+
216+
217+
:param next_token: The next_token of this DescribeBandwidthPackagesRequest. # noqa: E501
218+
:type: str
219+
"""
220+
221+
self._next_token = next_token
222+
165223
@property
166224
def page_number(self):
167225
"""Gets the page_number of this DescribeBandwidthPackagesRequest. # noqa: E501

volcenginesdkvpc/models/describe_bandwidth_packages_response.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class DescribeBandwidthPackagesResponse(object):
3434
"""
3535
swagger_types = {
3636
'bandwidth_packages': 'list[BandwidthPackageForDescribeBandwidthPackagesOutput]',
37+
'next_token': 'str',
3738
'page_number': 'int',
3839
'page_size': 'int',
3940
'request_id': 'str',
@@ -42,19 +43,21 @@ class DescribeBandwidthPackagesResponse(object):
4243

4344
attribute_map = {
4445
'bandwidth_packages': 'BandwidthPackages',
46+
'next_token': 'NextToken',
4547
'page_number': 'PageNumber',
4648
'page_size': 'PageSize',
4749
'request_id': 'RequestId',
4850
'total_count': 'TotalCount'
4951
}
5052

51-
def __init__(self, bandwidth_packages=None, page_number=None, page_size=None, request_id=None, total_count=None, _configuration=None): # noqa: E501
53+
def __init__(self, bandwidth_packages=None, next_token=None, page_number=None, page_size=None, request_id=None, total_count=None, _configuration=None): # noqa: E501
5254
"""DescribeBandwidthPackagesResponse - a model defined in Swagger""" # noqa: E501
5355
if _configuration is None:
5456
_configuration = Configuration()
5557
self._configuration = _configuration
5658

5759
self._bandwidth_packages = None
60+
self._next_token = None
5861
self._page_number = None
5962
self._page_size = None
6063
self._request_id = None
@@ -63,6 +66,8 @@ def __init__(self, bandwidth_packages=None, page_number=None, page_size=None, re
6366

6467
if bandwidth_packages is not None:
6568
self.bandwidth_packages = bandwidth_packages
69+
if next_token is not None:
70+
self.next_token = next_token
6671
if page_number is not None:
6772
self.page_number = page_number
6873
if page_size is not None:
@@ -93,6 +98,27 @@ def bandwidth_packages(self, bandwidth_packages):
9398

9499
self._bandwidth_packages = bandwidth_packages
95100

101+
@property
102+
def next_token(self):
103+
"""Gets the next_token of this DescribeBandwidthPackagesResponse. # noqa: E501
104+
105+
106+
:return: The next_token of this DescribeBandwidthPackagesResponse. # noqa: E501
107+
:rtype: str
108+
"""
109+
return self._next_token
110+
111+
@next_token.setter
112+
def next_token(self, next_token):
113+
"""Sets the next_token of this DescribeBandwidthPackagesResponse.
114+
115+
116+
:param next_token: The next_token of this DescribeBandwidthPackagesResponse. # noqa: E501
117+
:type: str
118+
"""
119+
120+
self._next_token = next_token
121+
96122
@property
97123
def page_number(self):
98124
"""Gets the page_number of this DescribeBandwidthPackagesResponse. # noqa: E501

volcenginesdkvpc/models/describe_eip_addresses_request.py

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ class DescribeEipAddressesRequest(object):
3939
'billing_type': 'int',
4040
'eip_addresses': 'list[str]',
4141
'isp': 'str',
42+
'max_results': 'int',
4243
'name': 'str',
44+
'next_token': 'str',
4345
'page_number': 'int',
4446
'page_size': 'int',
4547
'project_name': 'str',
@@ -55,7 +57,9 @@ class DescribeEipAddressesRequest(object):
5557
'billing_type': 'BillingType',
5658
'eip_addresses': 'EipAddresses',
5759
'isp': 'ISP',
60+
'max_results': 'MaxResults',
5861
'name': 'Name',
62+
'next_token': 'NextToken',
5963
'page_number': 'PageNumber',
6064
'page_size': 'PageSize',
6165
'project_name': 'ProjectName',
@@ -64,7 +68,7 @@ class DescribeEipAddressesRequest(object):
6468
'tag_filters': 'TagFilters'
6569
}
6670

67-
def __init__(self, allocation_ids=None, associated_instance_id=None, associated_instance_type=None, billing_type=None, eip_addresses=None, isp=None, name=None, page_number=None, page_size=None, project_name=None, security_protection_enabled=None, status=None, tag_filters=None, _configuration=None): # noqa: E501
71+
def __init__(self, allocation_ids=None, associated_instance_id=None, associated_instance_type=None, billing_type=None, eip_addresses=None, isp=None, max_results=None, name=None, next_token=None, page_number=None, page_size=None, project_name=None, security_protection_enabled=None, status=None, tag_filters=None, _configuration=None): # noqa: E501
6872
"""DescribeEipAddressesRequest - a model defined in Swagger""" # noqa: E501
6973
if _configuration is None:
7074
_configuration = Configuration()
@@ -76,7 +80,9 @@ def __init__(self, allocation_ids=None, associated_instance_id=None, associated_
7680
self._billing_type = None
7781
self._eip_addresses = None
7882
self._isp = None
83+
self._max_results = None
7984
self._name = None
85+
self._next_token = None
8086
self._page_number = None
8187
self._page_size = None
8288
self._project_name = None
@@ -97,8 +103,12 @@ def __init__(self, allocation_ids=None, associated_instance_id=None, associated_
97103
self.eip_addresses = eip_addresses
98104
if isp is not None:
99105
self.isp = isp
106+
if max_results is not None:
107+
self.max_results = max_results
100108
if name is not None:
101109
self.name = name
110+
if next_token is not None:
111+
self.next_token = next_token
102112
if page_number is not None:
103113
self.page_number = page_number
104114
if page_size is not None:
@@ -258,6 +268,33 @@ def isp(self, isp):
258268

259269
self._isp = isp
260270

271+
@property
272+
def max_results(self):
273+
"""Gets the max_results of this DescribeEipAddressesRequest. # noqa: E501
274+
275+
276+
:return: The max_results of this DescribeEipAddressesRequest. # noqa: E501
277+
:rtype: int
278+
"""
279+
return self._max_results
280+
281+
@max_results.setter
282+
def max_results(self, max_results):
283+
"""Sets the max_results of this DescribeEipAddressesRequest.
284+
285+
286+
:param max_results: The max_results of this DescribeEipAddressesRequest. # noqa: E501
287+
:type: int
288+
"""
289+
if (self._configuration.client_side_validation and
290+
max_results is not None and max_results > 100): # noqa: E501
291+
raise ValueError("Invalid value for `max_results`, must be a value less than or equal to `100`") # noqa: E501
292+
if (self._configuration.client_side_validation and
293+
max_results is not None and max_results < 1): # noqa: E501
294+
raise ValueError("Invalid value for `max_results`, must be a value greater than or equal to `1`") # noqa: E501
295+
296+
self._max_results = max_results
297+
261298
@property
262299
def name(self):
263300
"""Gets the name of this DescribeEipAddressesRequest. # noqa: E501
@@ -279,6 +316,27 @@ def name(self, name):
279316

280317
self._name = name
281318

319+
@property
320+
def next_token(self):
321+
"""Gets the next_token of this DescribeEipAddressesRequest. # noqa: E501
322+
323+
324+
:return: The next_token of this DescribeEipAddressesRequest. # noqa: E501
325+
:rtype: str
326+
"""
327+
return self._next_token
328+
329+
@next_token.setter
330+
def next_token(self, next_token):
331+
"""Sets the next_token of this DescribeEipAddressesRequest.
332+
333+
334+
:param next_token: The next_token of this DescribeEipAddressesRequest. # noqa: E501
335+
:type: str
336+
"""
337+
338+
self._next_token = next_token
339+
282340
@property
283341
def page_number(self):
284342
"""Gets the page_number of this DescribeEipAddressesRequest. # noqa: E501

volcenginesdkvpc/models/describe_eip_addresses_response.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class DescribeEipAddressesResponse(object):
3434
"""
3535
swagger_types = {
3636
'eip_addresses': 'list[EipAddressForDescribeEipAddressesOutput]',
37+
'next_token': 'str',
3738
'page_number': 'int',
3839
'page_size': 'int',
3940
'request_id': 'str',
@@ -42,19 +43,21 @@ class DescribeEipAddressesResponse(object):
4243

4344
attribute_map = {
4445
'eip_addresses': 'EipAddresses',
46+
'next_token': 'NextToken',
4547
'page_number': 'PageNumber',
4648
'page_size': 'PageSize',
4749
'request_id': 'RequestId',
4850
'total_count': 'TotalCount'
4951
}
5052

51-
def __init__(self, eip_addresses=None, page_number=None, page_size=None, request_id=None, total_count=None, _configuration=None): # noqa: E501
53+
def __init__(self, eip_addresses=None, next_token=None, page_number=None, page_size=None, request_id=None, total_count=None, _configuration=None): # noqa: E501
5254
"""DescribeEipAddressesResponse - a model defined in Swagger""" # noqa: E501
5355
if _configuration is None:
5456
_configuration = Configuration()
5557
self._configuration = _configuration
5658

5759
self._eip_addresses = None
60+
self._next_token = None
5861
self._page_number = None
5962
self._page_size = None
6063
self._request_id = None
@@ -63,6 +66,8 @@ def __init__(self, eip_addresses=None, page_number=None, page_size=None, request
6366

6467
if eip_addresses is not None:
6568
self.eip_addresses = eip_addresses
69+
if next_token is not None:
70+
self.next_token = next_token
6671
if page_number is not None:
6772
self.page_number = page_number
6873
if page_size is not None:
@@ -93,6 +98,27 @@ def eip_addresses(self, eip_addresses):
9398

9499
self._eip_addresses = eip_addresses
95100

101+
@property
102+
def next_token(self):
103+
"""Gets the next_token of this DescribeEipAddressesResponse. # noqa: E501
104+
105+
106+
:return: The next_token of this DescribeEipAddressesResponse. # noqa: E501
107+
:rtype: str
108+
"""
109+
return self._next_token
110+
111+
@next_token.setter
112+
def next_token(self, next_token):
113+
"""Sets the next_token of this DescribeEipAddressesResponse.
114+
115+
116+
:param next_token: The next_token of this DescribeEipAddressesResponse. # noqa: E501
117+
:type: str
118+
"""
119+
120+
self._next_token = next_token
121+
96122
@property
97123
def page_number(self):
98124
"""Gets the page_number of this DescribeEipAddressesResponse. # noqa: E501

0 commit comments

Comments
 (0)