Skip to content

Commit 65e2207

Browse files
committed
feat: update net api
1 parent 3aa993b commit 65e2207

File tree

51 files changed

+4366
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+4366
-39
lines changed

volcenginesdkclb/models/create_listener_request.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class CreateListenerRequest(object):
3838
'acl_type': 'str',
3939
'bandwidth': 'int',
4040
'certificate_id': 'str',
41+
'connection_drain_enabled': 'str',
42+
'connection_drain_timeout': 'int',
4143
'description': 'str',
4244
'enabled': 'str',
4345
'established_timeout': 'int',
@@ -59,6 +61,8 @@ class CreateListenerRequest(object):
5961
'acl_type': 'AclType',
6062
'bandwidth': 'Bandwidth',
6163
'certificate_id': 'CertificateId',
64+
'connection_drain_enabled': 'ConnectionDrainEnabled',
65+
'connection_drain_timeout': 'ConnectionDrainTimeout',
6266
'description': 'Description',
6367
'enabled': 'Enabled',
6468
'established_timeout': 'EstablishedTimeout',
@@ -74,7 +78,7 @@ class CreateListenerRequest(object):
7478
'server_group_id': 'ServerGroupId'
7579
}
7680

77-
def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None, certificate_id=None, description=None, enabled=None, established_timeout=None, health_check=None, listener_name=None, load_balancer_id=None, persistence_timeout=None, persistence_type=None, port=None, protocol=None, proxy_protocol_type=None, scheduler=None, server_group_id=None, _configuration=None): # noqa: E501
81+
def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None, certificate_id=None, connection_drain_enabled=None, connection_drain_timeout=None, description=None, enabled=None, established_timeout=None, health_check=None, listener_name=None, load_balancer_id=None, persistence_timeout=None, persistence_type=None, port=None, protocol=None, proxy_protocol_type=None, scheduler=None, server_group_id=None, _configuration=None): # noqa: E501
7882
"""CreateListenerRequest - a model defined in Swagger""" # noqa: E501
7983
if _configuration is None:
8084
_configuration = Configuration()
@@ -85,6 +89,8 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
8589
self._acl_type = None
8690
self._bandwidth = None
8791
self._certificate_id = None
92+
self._connection_drain_enabled = None
93+
self._connection_drain_timeout = None
8894
self._description = None
8995
self._enabled = None
9096
self._established_timeout = None
@@ -110,6 +116,10 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
110116
self.bandwidth = bandwidth
111117
if certificate_id is not None:
112118
self.certificate_id = certificate_id
119+
if connection_drain_enabled is not None:
120+
self.connection_drain_enabled = connection_drain_enabled
121+
if connection_drain_timeout is not None:
122+
self.connection_drain_timeout = connection_drain_timeout
113123
if description is not None:
114124
self.description = description
115125
if enabled is not None:
@@ -238,6 +248,48 @@ def certificate_id(self, certificate_id):
238248

239249
self._certificate_id = certificate_id
240250

251+
@property
252+
def connection_drain_enabled(self):
253+
"""Gets the connection_drain_enabled of this CreateListenerRequest. # noqa: E501
254+
255+
256+
:return: The connection_drain_enabled of this CreateListenerRequest. # noqa: E501
257+
:rtype: str
258+
"""
259+
return self._connection_drain_enabled
260+
261+
@connection_drain_enabled.setter
262+
def connection_drain_enabled(self, connection_drain_enabled):
263+
"""Sets the connection_drain_enabled of this CreateListenerRequest.
264+
265+
266+
:param connection_drain_enabled: The connection_drain_enabled of this CreateListenerRequest. # noqa: E501
267+
:type: str
268+
"""
269+
270+
self._connection_drain_enabled = connection_drain_enabled
271+
272+
@property
273+
def connection_drain_timeout(self):
274+
"""Gets the connection_drain_timeout of this CreateListenerRequest. # noqa: E501
275+
276+
277+
:return: The connection_drain_timeout of this CreateListenerRequest. # noqa: E501
278+
:rtype: int
279+
"""
280+
return self._connection_drain_timeout
281+
282+
@connection_drain_timeout.setter
283+
def connection_drain_timeout(self, connection_drain_timeout):
284+
"""Sets the connection_drain_timeout of this CreateListenerRequest.
285+
286+
287+
:param connection_drain_timeout: The connection_drain_timeout of this CreateListenerRequest. # noqa: E501
288+
:type: int
289+
"""
290+
291+
self._connection_drain_timeout = connection_drain_timeout
292+
241293
@property
242294
def description(self):
243295
"""Gets the description of this CreateListenerRequest. # noqa: E501

volcenginesdkclb/models/describe_listener_attributes_response.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class DescribeListenerAttributesResponse(object):
3838
'acl_type': 'str',
3939
'bandwidth': 'int',
4040
'certificate_id': 'str',
41+
'connection_drain_enabled': 'str',
42+
'connection_drain_timeout': 'int',
4143
'create_time': 'str',
4244
'description': 'str',
4345
'enabled': 'str',
@@ -61,6 +63,8 @@ class DescribeListenerAttributesResponse(object):
6163
'acl_type': 'AclType',
6264
'bandwidth': 'Bandwidth',
6365
'certificate_id': 'CertificateId',
66+
'connection_drain_enabled': 'ConnectionDrainEnabled',
67+
'connection_drain_timeout': 'ConnectionDrainTimeout',
6468
'create_time': 'CreateTime',
6569
'description': 'Description',
6670
'enabled': 'Enabled',
@@ -78,7 +82,7 @@ class DescribeListenerAttributesResponse(object):
7882
'update_time': 'UpdateTime'
7983
}
8084

81-
def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None, certificate_id=None, create_time=None, description=None, enabled=None, established_timeout=None, health_check=None, listener_id=None, listener_name=None, load_balancer_id=None, port=None, protocol=None, request_id=None, scheduler=None, server_group_id=None, status=None, update_time=None, _configuration=None): # noqa: E501
85+
def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None, certificate_id=None, connection_drain_enabled=None, connection_drain_timeout=None, create_time=None, description=None, enabled=None, established_timeout=None, health_check=None, listener_id=None, listener_name=None, load_balancer_id=None, port=None, protocol=None, request_id=None, scheduler=None, server_group_id=None, status=None, update_time=None, _configuration=None): # noqa: E501
8286
"""DescribeListenerAttributesResponse - a model defined in Swagger""" # noqa: E501
8387
if _configuration is None:
8488
_configuration = Configuration()
@@ -89,6 +93,8 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
8993
self._acl_type = None
9094
self._bandwidth = None
9195
self._certificate_id = None
96+
self._connection_drain_enabled = None
97+
self._connection_drain_timeout = None
9298
self._create_time = None
9399
self._description = None
94100
self._enabled = None
@@ -116,6 +122,10 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
116122
self.bandwidth = bandwidth
117123
if certificate_id is not None:
118124
self.certificate_id = certificate_id
125+
if connection_drain_enabled is not None:
126+
self.connection_drain_enabled = connection_drain_enabled
127+
if connection_drain_timeout is not None:
128+
self.connection_drain_timeout = connection_drain_timeout
119129
if create_time is not None:
120130
self.create_time = create_time
121131
if description is not None:
@@ -252,6 +262,48 @@ def certificate_id(self, certificate_id):
252262

253263
self._certificate_id = certificate_id
254264

265+
@property
266+
def connection_drain_enabled(self):
267+
"""Gets the connection_drain_enabled of this DescribeListenerAttributesResponse. # noqa: E501
268+
269+
270+
:return: The connection_drain_enabled of this DescribeListenerAttributesResponse. # noqa: E501
271+
:rtype: str
272+
"""
273+
return self._connection_drain_enabled
274+
275+
@connection_drain_enabled.setter
276+
def connection_drain_enabled(self, connection_drain_enabled):
277+
"""Sets the connection_drain_enabled of this DescribeListenerAttributesResponse.
278+
279+
280+
:param connection_drain_enabled: The connection_drain_enabled of this DescribeListenerAttributesResponse. # noqa: E501
281+
:type: str
282+
"""
283+
284+
self._connection_drain_enabled = connection_drain_enabled
285+
286+
@property
287+
def connection_drain_timeout(self):
288+
"""Gets the connection_drain_timeout of this DescribeListenerAttributesResponse. # noqa: E501
289+
290+
291+
:return: The connection_drain_timeout of this DescribeListenerAttributesResponse. # noqa: E501
292+
:rtype: int
293+
"""
294+
return self._connection_drain_timeout
295+
296+
@connection_drain_timeout.setter
297+
def connection_drain_timeout(self, connection_drain_timeout):
298+
"""Sets the connection_drain_timeout of this DescribeListenerAttributesResponse.
299+
300+
301+
:param connection_drain_timeout: The connection_drain_timeout of this DescribeListenerAttributesResponse. # noqa: E501
302+
:type: int
303+
"""
304+
305+
self._connection_drain_timeout = connection_drain_timeout
306+
255307
@property
256308
def create_time(self):
257309
"""Gets the create_time of this DescribeListenerAttributesResponse. # noqa: E501

volcenginesdkclb/models/describe_load_balancers_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class DescribeLoadBalancersRequest(object):
3434
"""
3535
swagger_types = {
3636
'address_ip_version': 'str',
37+
'eip_address': 'str',
3738
'eni_address': 'str',
3839
'load_balancer_ids': 'list[str]',
3940
'load_balancer_name': 'str',
@@ -46,6 +47,7 @@ class DescribeLoadBalancersRequest(object):
4647

4748
attribute_map = {
4849
'address_ip_version': 'AddressIpVersion',
50+
'eip_address': 'EipAddress',
4951
'eni_address': 'EniAddress',
5052
'load_balancer_ids': 'LoadBalancerIds',
5153
'load_balancer_name': 'LoadBalancerName',
@@ -56,13 +58,14 @@ class DescribeLoadBalancersRequest(object):
5658
'vpc_id': 'VpcId'
5759
}
5860

59-
def __init__(self, address_ip_version=None, eni_address=None, load_balancer_ids=None, load_balancer_name=None, page_number=None, page_size=None, project_name=None, tag_filters=None, vpc_id=None, _configuration=None): # noqa: E501
61+
def __init__(self, address_ip_version=None, eip_address=None, eni_address=None, load_balancer_ids=None, load_balancer_name=None, page_number=None, page_size=None, project_name=None, tag_filters=None, vpc_id=None, _configuration=None): # noqa: E501
6062
"""DescribeLoadBalancersRequest - a model defined in Swagger""" # noqa: E501
6163
if _configuration is None:
6264
_configuration = Configuration()
6365
self._configuration = _configuration
6466

6567
self._address_ip_version = None
68+
self._eip_address = None
6669
self._eni_address = None
6770
self._load_balancer_ids = None
6871
self._load_balancer_name = None
@@ -75,6 +78,8 @@ def __init__(self, address_ip_version=None, eni_address=None, load_balancer_ids=
7578

7679
if address_ip_version is not None:
7780
self.address_ip_version = address_ip_version
81+
if eip_address is not None:
82+
self.eip_address = eip_address
7883
if eni_address is not None:
7984
self.eni_address = eni_address
8085
if load_balancer_ids is not None:
@@ -113,6 +118,27 @@ def address_ip_version(self, address_ip_version):
113118

114119
self._address_ip_version = address_ip_version
115120

121+
@property
122+
def eip_address(self):
123+
"""Gets the eip_address of this DescribeLoadBalancersRequest. # noqa: E501
124+
125+
126+
:return: The eip_address of this DescribeLoadBalancersRequest. # noqa: E501
127+
:rtype: str
128+
"""
129+
return self._eip_address
130+
131+
@eip_address.setter
132+
def eip_address(self, eip_address):
133+
"""Sets the eip_address of this DescribeLoadBalancersRequest.
134+
135+
136+
:param eip_address: The eip_address of this DescribeLoadBalancersRequest. # noqa: E501
137+
:type: str
138+
"""
139+
140+
self._eip_address = eip_address
141+
116142
@property
117143
def eni_address(self):
118144
"""Gets the eni_address of this DescribeLoadBalancersRequest. # noqa: E501

volcenginesdkclb/models/listener_for_describe_listeners_output.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class ListenerForDescribeListenersOutput(object):
3838
'acl_type': 'str',
3939
'bandwidth': 'int',
4040
'certificate_id': 'str',
41+
'connection_drain_enabled': 'str',
42+
'connection_drain_timeout': 'int',
4143
'create_time': 'str',
4244
'enabled': 'str',
4345
'health_check': 'HealthCheckForDescribeListenersOutput',
@@ -59,6 +61,8 @@ class ListenerForDescribeListenersOutput(object):
5961
'acl_type': 'AclType',
6062
'bandwidth': 'Bandwidth',
6163
'certificate_id': 'CertificateId',
64+
'connection_drain_enabled': 'ConnectionDrainEnabled',
65+
'connection_drain_timeout': 'ConnectionDrainTimeout',
6266
'create_time': 'CreateTime',
6367
'enabled': 'Enabled',
6468
'health_check': 'HealthCheck',
@@ -74,7 +78,7 @@ class ListenerForDescribeListenersOutput(object):
7478
'update_time': 'UpdateTime'
7579
}
7680

77-
def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None, certificate_id=None, create_time=None, enabled=None, health_check=None, listener_id=None, listener_name=None, persistence_timeout=None, persistence_type=None, port=None, protocol=None, proxy_protocol_type=None, server_group_id=None, status=None, update_time=None, _configuration=None): # noqa: E501
81+
def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None, certificate_id=None, connection_drain_enabled=None, connection_drain_timeout=None, create_time=None, enabled=None, health_check=None, listener_id=None, listener_name=None, persistence_timeout=None, persistence_type=None, port=None, protocol=None, proxy_protocol_type=None, server_group_id=None, status=None, update_time=None, _configuration=None): # noqa: E501
7882
"""ListenerForDescribeListenersOutput - a model defined in Swagger""" # noqa: E501
7983
if _configuration is None:
8084
_configuration = Configuration()
@@ -85,6 +89,8 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
8589
self._acl_type = None
8690
self._bandwidth = None
8791
self._certificate_id = None
92+
self._connection_drain_enabled = None
93+
self._connection_drain_timeout = None
8894
self._create_time = None
8995
self._enabled = None
9096
self._health_check = None
@@ -110,6 +116,10 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
110116
self.bandwidth = bandwidth
111117
if certificate_id is not None:
112118
self.certificate_id = certificate_id
119+
if connection_drain_enabled is not None:
120+
self.connection_drain_enabled = connection_drain_enabled
121+
if connection_drain_timeout is not None:
122+
self.connection_drain_timeout = connection_drain_timeout
113123
if create_time is not None:
114124
self.create_time = create_time
115125
if enabled is not None:
@@ -242,6 +252,48 @@ def certificate_id(self, certificate_id):
242252

243253
self._certificate_id = certificate_id
244254

255+
@property
256+
def connection_drain_enabled(self):
257+
"""Gets the connection_drain_enabled of this ListenerForDescribeListenersOutput. # noqa: E501
258+
259+
260+
:return: The connection_drain_enabled of this ListenerForDescribeListenersOutput. # noqa: E501
261+
:rtype: str
262+
"""
263+
return self._connection_drain_enabled
264+
265+
@connection_drain_enabled.setter
266+
def connection_drain_enabled(self, connection_drain_enabled):
267+
"""Sets the connection_drain_enabled of this ListenerForDescribeListenersOutput.
268+
269+
270+
:param connection_drain_enabled: The connection_drain_enabled of this ListenerForDescribeListenersOutput. # noqa: E501
271+
:type: str
272+
"""
273+
274+
self._connection_drain_enabled = connection_drain_enabled
275+
276+
@property
277+
def connection_drain_timeout(self):
278+
"""Gets the connection_drain_timeout of this ListenerForDescribeListenersOutput. # noqa: E501
279+
280+
281+
:return: The connection_drain_timeout of this ListenerForDescribeListenersOutput. # noqa: E501
282+
:rtype: int
283+
"""
284+
return self._connection_drain_timeout
285+
286+
@connection_drain_timeout.setter
287+
def connection_drain_timeout(self, connection_drain_timeout):
288+
"""Sets the connection_drain_timeout of this ListenerForDescribeListenersOutput.
289+
290+
291+
:param connection_drain_timeout: The connection_drain_timeout of this ListenerForDescribeListenersOutput. # noqa: E501
292+
:type: int
293+
"""
294+
295+
self._connection_drain_timeout = connection_drain_timeout
296+
245297
@property
246298
def create_time(self):
247299
"""Gets the create_time of this ListenerForDescribeListenersOutput. # noqa: E501

0 commit comments

Comments
 (0)