Skip to content

Commit bcbae56

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for natgateway-Python-2020-04-01-online-459-2024_04_24_14_50_24
1 parent 06e892d commit bcbae56

17 files changed

+340
-62
lines changed

meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "1.0.75",
3-
"meta_commit": "556dd5e654b2e38d261036504357f199c5cd62c5"
4-
}
2+
"lasted": "1.0.76",
3+
"meta_commit": "e5dd046f304e15184e3f7c6c0a233211c215ebc8"
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.75"
6+
VERSION = "1.0.76"
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.75'
70+
self.user_agent = 'volcstack-python-sdk/1.0.76'
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.75".\
224+
"SDK Package Version: 1.0.76".\
225225
format(env=sys.platform, pyversion=sys.version)

volcenginesdknatgateway/models/create_dnat_entry_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class CreateDnatEntryRequest(object):
3939
'internal_ip': 'str',
4040
'internal_port': 'str',
4141
'nat_gateway_id': 'str',
42+
'port_type': 'str',
4243
'protocol': 'str'
4344
}
4445

@@ -49,10 +50,11 @@ class CreateDnatEntryRequest(object):
4950
'internal_ip': 'InternalIp',
5051
'internal_port': 'InternalPort',
5152
'nat_gateway_id': 'NatGatewayId',
53+
'port_type': 'PortType',
5254
'protocol': 'Protocol'
5355
}
5456

55-
def __init__(self, dnat_entry_name=None, external_ip=None, external_port=None, internal_ip=None, internal_port=None, nat_gateway_id=None, protocol=None, _configuration=None): # noqa: E501
57+
def __init__(self, dnat_entry_name=None, external_ip=None, external_port=None, internal_ip=None, internal_port=None, nat_gateway_id=None, port_type=None, protocol=None, _configuration=None): # noqa: E501
5658
"""CreateDnatEntryRequest - a model defined in Swagger""" # noqa: E501
5759
if _configuration is None:
5860
_configuration = Configuration()
@@ -64,6 +66,7 @@ def __init__(self, dnat_entry_name=None, external_ip=None, external_port=None, i
6466
self._internal_ip = None
6567
self._internal_port = None
6668
self._nat_gateway_id = None
69+
self._port_type = None
6770
self._protocol = None
6871
self.discriminator = None
6972

@@ -74,6 +77,8 @@ def __init__(self, dnat_entry_name=None, external_ip=None, external_port=None, i
7477
self.internal_ip = internal_ip
7578
self.internal_port = internal_port
7679
self.nat_gateway_id = nat_gateway_id
80+
if port_type is not None:
81+
self.port_type = port_type
7782
self.protocol = protocol
7883

7984
@property
@@ -218,6 +223,27 @@ def nat_gateway_id(self, nat_gateway_id):
218223

219224
self._nat_gateway_id = nat_gateway_id
220225

226+
@property
227+
def port_type(self):
228+
"""Gets the port_type of this CreateDnatEntryRequest. # noqa: E501
229+
230+
231+
:return: The port_type of this CreateDnatEntryRequest. # noqa: E501
232+
:rtype: str
233+
"""
234+
return self._port_type
235+
236+
@port_type.setter
237+
def port_type(self, port_type):
238+
"""Sets the port_type of this CreateDnatEntryRequest.
239+
240+
241+
:param port_type: The port_type of this CreateDnatEntryRequest. # noqa: E501
242+
:type: str
243+
"""
244+
245+
self._port_type = port_type
246+
221247
@property
222248
def protocol(self):
223249
"""Gets the protocol of this CreateDnatEntryRequest. # noqa: E501

volcenginesdknatgateway/models/create_nat_gateway_request.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def billing_type(self, billing_type):
120120
:type: int
121121
"""
122122
if (self._configuration.client_side_validation and
123-
billing_type is not None and billing_type > 1): # noqa: E501
124-
raise ValueError("Invalid value for `billing_type`, must be a value less than or equal to `1`") # noqa: E501
123+
billing_type is not None and billing_type > 3): # noqa: E501
124+
raise ValueError("Invalid value for `billing_type`, must be a value less than or equal to `3`") # noqa: E501
125125
if (self._configuration.client_side_validation and
126126
billing_type is not None and billing_type < 1): # noqa: E501
127127
raise ValueError("Invalid value for `billing_type`, must be a value greater than or equal to `1`") # noqa: E501
@@ -242,13 +242,6 @@ def period_unit(self, period_unit):
242242
:param period_unit: The period_unit of this CreateNatGatewayRequest. # noqa: E501
243243
:type: str
244244
"""
245-
allowed_values = ["Month", "Year"] # noqa: E501
246-
if (self._configuration.client_side_validation and
247-
period_unit not in allowed_values):
248-
raise ValueError(
249-
"Invalid value for `period_unit` ({0}), must be one of {1}" # noqa: E501
250-
.format(period_unit, allowed_values)
251-
)
252245

253246
self._period_unit = period_unit
254247

@@ -291,13 +284,6 @@ def spec(self, spec):
291284
:param spec: The spec of this CreateNatGatewayRequest. # noqa: E501
292285
:type: str
293286
"""
294-
allowed_values = ["Small", "Medium", "Large"] # noqa: E501
295-
if (self._configuration.client_side_validation and
296-
spec not in allowed_values):
297-
raise ValueError(
298-
"Invalid value for `spec` ({0}), must be one of {1}" # noqa: E501
299-
.format(spec, allowed_values)
300-
)
301287

302288
self._spec = spec
303289

volcenginesdknatgateway/models/create_snat_entry_request.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def __init__(self, eip_id=None, nat_gateway_id=None, snat_entry_name=None, sourc
6161
self._subnet_id = None
6262
self.discriminator = None
6363

64-
self.eip_id = eip_id
64+
if eip_id is not None:
65+
self.eip_id = eip_id
6566
self.nat_gateway_id = nat_gateway_id
6667
if snat_entry_name is not None:
6768
self.snat_entry_name = snat_entry_name
@@ -88,8 +89,6 @@ def eip_id(self, eip_id):
8889
:param eip_id: The eip_id of this CreateSnatEntryRequest. # noqa: E501
8990
:type: str
9091
"""
91-
if self._configuration.client_side_validation and eip_id is None:
92-
raise ValueError("Invalid value for `eip_id`, must not be `None`") # noqa: E501
9392

9493
self._eip_id = eip_id
9594

volcenginesdknatgateway/models/describe_dnat_entries_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class DescribeDnatEntriesRequest(object):
4242
'nat_gateway_id': 'str',
4343
'page_number': 'int',
4444
'page_size': 'int',
45+
'port_type': 'str',
4546
'protocol': 'str'
4647
}
4748

@@ -55,10 +56,11 @@ class DescribeDnatEntriesRequest(object):
5556
'nat_gateway_id': 'NatGatewayId',
5657
'page_number': 'PageNumber',
5758
'page_size': 'PageSize',
59+
'port_type': 'PortType',
5860
'protocol': 'Protocol'
5961
}
6062

61-
def __init__(self, dnat_entry_ids=None, dnat_entry_name=None, external_ip=None, external_port=None, internal_ip=None, internal_port=None, nat_gateway_id=None, page_number=None, page_size=None, protocol=None, _configuration=None): # noqa: E501
63+
def __init__(self, dnat_entry_ids=None, dnat_entry_name=None, external_ip=None, external_port=None, internal_ip=None, internal_port=None, nat_gateway_id=None, page_number=None, page_size=None, port_type=None, protocol=None, _configuration=None): # noqa: E501
6264
"""DescribeDnatEntriesRequest - a model defined in Swagger""" # noqa: E501
6365
if _configuration is None:
6466
_configuration = Configuration()
@@ -73,6 +75,7 @@ def __init__(self, dnat_entry_ids=None, dnat_entry_name=None, external_ip=None,
7375
self._nat_gateway_id = None
7476
self._page_number = None
7577
self._page_size = None
78+
self._port_type = None
7679
self._protocol = None
7780
self.discriminator = None
7881

@@ -94,6 +97,8 @@ def __init__(self, dnat_entry_ids=None, dnat_entry_name=None, external_ip=None,
9497
self.page_number = page_number
9598
if page_size is not None:
9699
self.page_size = page_size
100+
if port_type is not None:
101+
self.port_type = port_type
97102
if protocol is not None:
98103
self.protocol = protocol
99104

@@ -289,6 +294,27 @@ def page_size(self, page_size):
289294

290295
self._page_size = page_size
291296

297+
@property
298+
def port_type(self):
299+
"""Gets the port_type of this DescribeDnatEntriesRequest. # noqa: E501
300+
301+
302+
:return: The port_type of this DescribeDnatEntriesRequest. # noqa: E501
303+
:rtype: str
304+
"""
305+
return self._port_type
306+
307+
@port_type.setter
308+
def port_type(self, port_type):
309+
"""Sets the port_type of this DescribeDnatEntriesRequest.
310+
311+
312+
:param port_type: The port_type of this DescribeDnatEntriesRequest. # noqa: E501
313+
:type: str
314+
"""
315+
316+
self._port_type = port_type
317+
292318
@property
293319
def protocol(self):
294320
"""Gets the protocol of this DescribeDnatEntriesRequest. # noqa: E501

volcenginesdknatgateway/models/describe_dnat_entry_attributes_response.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class DescribeDnatEntryAttributesResponse(object):
4040
'internal_ip': 'str',
4141
'internal_port': 'str',
4242
'nat_gateway_id': 'str',
43+
'port_type': 'str',
4344
'protocol': 'str',
4445
'request_id': 'str',
4546
'status': 'str'
@@ -53,12 +54,13 @@ class DescribeDnatEntryAttributesResponse(object):
5354
'internal_ip': 'InternalIp',
5455
'internal_port': 'InternalPort',
5556
'nat_gateway_id': 'NatGatewayId',
57+
'port_type': 'PortType',
5658
'protocol': 'Protocol',
5759
'request_id': 'RequestId',
5860
'status': 'Status'
5961
}
6062

61-
def __init__(self, dnat_entry_id=None, dnat_entry_name=None, external_ip=None, external_port=None, internal_ip=None, internal_port=None, nat_gateway_id=None, protocol=None, request_id=None, status=None, _configuration=None): # noqa: E501
63+
def __init__(self, dnat_entry_id=None, dnat_entry_name=None, external_ip=None, external_port=None, internal_ip=None, internal_port=None, nat_gateway_id=None, port_type=None, protocol=None, request_id=None, status=None, _configuration=None): # noqa: E501
6264
"""DescribeDnatEntryAttributesResponse - a model defined in Swagger""" # noqa: E501
6365
if _configuration is None:
6466
_configuration = Configuration()
@@ -71,6 +73,7 @@ def __init__(self, dnat_entry_id=None, dnat_entry_name=None, external_ip=None, e
7173
self._internal_ip = None
7274
self._internal_port = None
7375
self._nat_gateway_id = None
76+
self._port_type = None
7477
self._protocol = None
7578
self._request_id = None
7679
self._status = None
@@ -90,6 +93,8 @@ def __init__(self, dnat_entry_id=None, dnat_entry_name=None, external_ip=None, e
9093
self.internal_port = internal_port
9194
if nat_gateway_id is not None:
9295
self.nat_gateway_id = nat_gateway_id
96+
if port_type is not None:
97+
self.port_type = port_type
9398
if protocol is not None:
9499
self.protocol = protocol
95100
if request_id is not None:
@@ -244,6 +249,27 @@ def nat_gateway_id(self, nat_gateway_id):
244249

245250
self._nat_gateway_id = nat_gateway_id
246251

252+
@property
253+
def port_type(self):
254+
"""Gets the port_type of this DescribeDnatEntryAttributesResponse. # noqa: E501
255+
256+
257+
:return: The port_type of this DescribeDnatEntryAttributesResponse. # noqa: E501
258+
:rtype: str
259+
"""
260+
return self._port_type
261+
262+
@port_type.setter
263+
def port_type(self, port_type):
264+
"""Sets the port_type of this DescribeDnatEntryAttributesResponse.
265+
266+
267+
:param port_type: The port_type of this DescribeDnatEntryAttributesResponse. # noqa: E501
268+
:type: str
269+
"""
270+
271+
self._port_type = port_type
272+
247273
@property
248274
def protocol(self):
249275
"""Gets the protocol of this DescribeDnatEntryAttributesResponse. # noqa: E501

0 commit comments

Comments
 (0)