Skip to content

Commit 1e4066f

Browse files
author
BitsAdmin
committed
Merge branch 'clb-Python-2020-04-01-online-844-2024_12_16_14_31_13' into 'integration_2024-12-23_644381953026'
feat: [development task] clb-844-Python (929714) See merge request iaasng/volcengine-python-sdk!459
2 parents fa42763 + 0cb15c9 commit 1e4066f

7 files changed

+345
-7
lines changed

volcenginesdkclb/models/create_listener_request.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ class CreateListenerRequest(object):
3737
'acl_status': 'str',
3838
'acl_type': 'str',
3939
'bandwidth': 'int',
40+
'cert_center_certificate_id': 'str',
4041
'certificate_id': 'str',
42+
'certificate_source': 'str',
4143
'client_body_timeout': 'int',
4244
'client_header_timeout': 'int',
4345
'connection_drain_enabled': 'str',
@@ -73,7 +75,9 @@ class CreateListenerRequest(object):
7375
'acl_status': 'AclStatus',
7476
'acl_type': 'AclType',
7577
'bandwidth': 'Bandwidth',
78+
'cert_center_certificate_id': 'CertCenterCertificateId',
7679
'certificate_id': 'CertificateId',
80+
'certificate_source': 'CertificateSource',
7781
'client_body_timeout': 'ClientBodyTimeout',
7882
'client_header_timeout': 'ClientHeaderTimeout',
7983
'connection_drain_enabled': 'ConnectionDrainEnabled',
@@ -104,7 +108,7 @@ class CreateListenerRequest(object):
104108
'tags': 'Tags'
105109
}
106110

107-
def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None, certificate_id=None, client_body_timeout=None, client_header_timeout=None, connection_drain_enabled=None, connection_drain_timeout=None, cookie=None, description=None, enabled=None, end_port=None, established_timeout=None, health_check=None, http2_enabled=None, keepalive_timeout=None, listener_name=None, load_balancer_id=None, persistence_timeout=None, persistence_type=None, port=None, protocol=None, proxy_connect_timeout=None, proxy_protocol_type=None, proxy_read_timeout=None, proxy_send_timeout=None, scheduler=None, security_policy_id=None, send_timeout=None, server_group_id=None, start_port=None, tags=None, _configuration=None): # noqa: E501
111+
def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None, cert_center_certificate_id=None, certificate_id=None, certificate_source=None, client_body_timeout=None, client_header_timeout=None, connection_drain_enabled=None, connection_drain_timeout=None, cookie=None, description=None, enabled=None, end_port=None, established_timeout=None, health_check=None, http2_enabled=None, keepalive_timeout=None, listener_name=None, load_balancer_id=None, persistence_timeout=None, persistence_type=None, port=None, protocol=None, proxy_connect_timeout=None, proxy_protocol_type=None, proxy_read_timeout=None, proxy_send_timeout=None, scheduler=None, security_policy_id=None, send_timeout=None, server_group_id=None, start_port=None, tags=None, _configuration=None): # noqa: E501
108112
"""CreateListenerRequest - a model defined in Swagger""" # noqa: E501
109113
if _configuration is None:
110114
_configuration = Configuration()
@@ -114,7 +118,9 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
114118
self._acl_status = None
115119
self._acl_type = None
116120
self._bandwidth = None
121+
self._cert_center_certificate_id = None
117122
self._certificate_id = None
123+
self._certificate_source = None
118124
self._client_body_timeout = None
119125
self._client_header_timeout = None
120126
self._connection_drain_enabled = None
@@ -153,8 +159,12 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
153159
self.acl_type = acl_type
154160
if bandwidth is not None:
155161
self.bandwidth = bandwidth
162+
if cert_center_certificate_id is not None:
163+
self.cert_center_certificate_id = cert_center_certificate_id
156164
if certificate_id is not None:
157165
self.certificate_id = certificate_id
166+
if certificate_source is not None:
167+
self.certificate_source = certificate_source
158168
if client_body_timeout is not None:
159169
self.client_body_timeout = client_body_timeout
160170
if client_header_timeout is not None:
@@ -292,6 +302,27 @@ def bandwidth(self, bandwidth):
292302

293303
self._bandwidth = bandwidth
294304

305+
@property
306+
def cert_center_certificate_id(self):
307+
"""Gets the cert_center_certificate_id of this CreateListenerRequest. # noqa: E501
308+
309+
310+
:return: The cert_center_certificate_id of this CreateListenerRequest. # noqa: E501
311+
:rtype: str
312+
"""
313+
return self._cert_center_certificate_id
314+
315+
@cert_center_certificate_id.setter
316+
def cert_center_certificate_id(self, cert_center_certificate_id):
317+
"""Sets the cert_center_certificate_id of this CreateListenerRequest.
318+
319+
320+
:param cert_center_certificate_id: The cert_center_certificate_id of this CreateListenerRequest. # noqa: E501
321+
:type: str
322+
"""
323+
324+
self._cert_center_certificate_id = cert_center_certificate_id
325+
295326
@property
296327
def certificate_id(self):
297328
"""Gets the certificate_id of this CreateListenerRequest. # noqa: E501
@@ -313,6 +344,27 @@ def certificate_id(self, certificate_id):
313344

314345
self._certificate_id = certificate_id
315346

347+
@property
348+
def certificate_source(self):
349+
"""Gets the certificate_source of this CreateListenerRequest. # noqa: E501
350+
351+
352+
:return: The certificate_source of this CreateListenerRequest. # noqa: E501
353+
:rtype: str
354+
"""
355+
return self._certificate_source
356+
357+
@certificate_source.setter
358+
def certificate_source(self, certificate_source):
359+
"""Sets the certificate_source of this CreateListenerRequest.
360+
361+
362+
:param certificate_source: The certificate_source of this CreateListenerRequest. # noqa: E501
363+
:type: str
364+
"""
365+
366+
self._certificate_source = certificate_source
367+
316368
@property
317369
def client_body_timeout(self):
318370
"""Gets the client_body_timeout of this CreateListenerRequest. # noqa: E501

volcenginesdkclb/models/describe_listener_attributes_response.py

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ class DescribeListenerAttributesResponse(object):
3737
'acl_status': 'str',
3838
'acl_type': 'str',
3939
'bandwidth': 'int',
40+
'cert_center_certificate_id': 'str',
4041
'certificate_id': 'str',
42+
'certificate_source': 'str',
4143
'client_body_timeout': 'int',
4244
'client_header_timeout': 'int',
4345
'connection_drain_enabled': 'str',
@@ -63,6 +65,7 @@ class DescribeListenerAttributesResponse(object):
6365
'proxy_read_timeout': 'int',
6466
'proxy_send_timeout': 'int',
6567
'request_id': 'str',
68+
'response_check_enabled': 'str',
6669
'scheduler': 'str',
6770
'security_policy_id': 'str',
6871
'send_timeout': 'int',
@@ -78,7 +81,9 @@ class DescribeListenerAttributesResponse(object):
7881
'acl_status': 'AclStatus',
7982
'acl_type': 'AclType',
8083
'bandwidth': 'Bandwidth',
84+
'cert_center_certificate_id': 'CertCenterCertificateId',
8185
'certificate_id': 'CertificateId',
86+
'certificate_source': 'CertificateSource',
8287
'client_body_timeout': 'ClientBodyTimeout',
8388
'client_header_timeout': 'ClientHeaderTimeout',
8489
'connection_drain_enabled': 'ConnectionDrainEnabled',
@@ -104,6 +109,7 @@ class DescribeListenerAttributesResponse(object):
104109
'proxy_read_timeout': 'ProxyReadTimeout',
105110
'proxy_send_timeout': 'ProxySendTimeout',
106111
'request_id': 'RequestId',
112+
'response_check_enabled': 'ResponseCheckEnabled',
107113
'scheduler': 'Scheduler',
108114
'security_policy_id': 'SecurityPolicyId',
109115
'send_timeout': 'SendTimeout',
@@ -114,7 +120,7 @@ class DescribeListenerAttributesResponse(object):
114120
'update_time': 'UpdateTime'
115121
}
116122

117-
def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None, certificate_id=None, client_body_timeout=None, client_header_timeout=None, connection_drain_enabled=None, connection_drain_timeout=None, cookie=None, create_time=None, description=None, enabled=None, end_port=None, established_timeout=None, health_check=None, http2_enabled=None, keepalive_timeout=None, listener_id=None, listener_name=None, load_balancer_id=None, persistence_timeout=None, persistence_type=None, port=None, protocol=None, proxy_connect_timeout=None, proxy_protocol_type=None, proxy_read_timeout=None, proxy_send_timeout=None, request_id=None, scheduler=None, security_policy_id=None, send_timeout=None, server_group_id=None, start_port=None, status=None, tags=None, update_time=None, _configuration=None): # noqa: E501
123+
def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None, cert_center_certificate_id=None, certificate_id=None, certificate_source=None, client_body_timeout=None, client_header_timeout=None, connection_drain_enabled=None, connection_drain_timeout=None, cookie=None, create_time=None, description=None, enabled=None, end_port=None, established_timeout=None, health_check=None, http2_enabled=None, keepalive_timeout=None, listener_id=None, listener_name=None, load_balancer_id=None, persistence_timeout=None, persistence_type=None, port=None, protocol=None, proxy_connect_timeout=None, proxy_protocol_type=None, proxy_read_timeout=None, proxy_send_timeout=None, request_id=None, response_check_enabled=None, scheduler=None, security_policy_id=None, send_timeout=None, server_group_id=None, start_port=None, status=None, tags=None, update_time=None, _configuration=None): # noqa: E501
118124
"""DescribeListenerAttributesResponse - a model defined in Swagger""" # noqa: E501
119125
if _configuration is None:
120126
_configuration = Configuration()
@@ -124,7 +130,9 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
124130
self._acl_status = None
125131
self._acl_type = None
126132
self._bandwidth = None
133+
self._cert_center_certificate_id = None
127134
self._certificate_id = None
135+
self._certificate_source = None
128136
self._client_body_timeout = None
129137
self._client_header_timeout = None
130138
self._connection_drain_enabled = None
@@ -150,6 +158,7 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
150158
self._proxy_read_timeout = None
151159
self._proxy_send_timeout = None
152160
self._request_id = None
161+
self._response_check_enabled = None
153162
self._scheduler = None
154163
self._security_policy_id = None
155164
self._send_timeout = None
@@ -168,8 +177,12 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
168177
self.acl_type = acl_type
169178
if bandwidth is not None:
170179
self.bandwidth = bandwidth
180+
if cert_center_certificate_id is not None:
181+
self.cert_center_certificate_id = cert_center_certificate_id
171182
if certificate_id is not None:
172183
self.certificate_id = certificate_id
184+
if certificate_source is not None:
185+
self.certificate_source = certificate_source
173186
if client_body_timeout is not None:
174187
self.client_body_timeout = client_body_timeout
175188
if client_header_timeout is not None:
@@ -220,6 +233,8 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, bandwidth=None,
220233
self.proxy_send_timeout = proxy_send_timeout
221234
if request_id is not None:
222235
self.request_id = request_id
236+
if response_check_enabled is not None:
237+
self.response_check_enabled = response_check_enabled
223238
if scheduler is not None:
224239
self.scheduler = scheduler
225240
if security_policy_id is not None:
@@ -321,6 +336,27 @@ def bandwidth(self, bandwidth):
321336

322337
self._bandwidth = bandwidth
323338

339+
@property
340+
def cert_center_certificate_id(self):
341+
"""Gets the cert_center_certificate_id of this DescribeListenerAttributesResponse. # noqa: E501
342+
343+
344+
:return: The cert_center_certificate_id of this DescribeListenerAttributesResponse. # noqa: E501
345+
:rtype: str
346+
"""
347+
return self._cert_center_certificate_id
348+
349+
@cert_center_certificate_id.setter
350+
def cert_center_certificate_id(self, cert_center_certificate_id):
351+
"""Sets the cert_center_certificate_id of this DescribeListenerAttributesResponse.
352+
353+
354+
:param cert_center_certificate_id: The cert_center_certificate_id of this DescribeListenerAttributesResponse. # noqa: E501
355+
:type: str
356+
"""
357+
358+
self._cert_center_certificate_id = cert_center_certificate_id
359+
324360
@property
325361
def certificate_id(self):
326362
"""Gets the certificate_id of this DescribeListenerAttributesResponse. # noqa: E501
@@ -342,6 +378,27 @@ def certificate_id(self, certificate_id):
342378

343379
self._certificate_id = certificate_id
344380

381+
@property
382+
def certificate_source(self):
383+
"""Gets the certificate_source of this DescribeListenerAttributesResponse. # noqa: E501
384+
385+
386+
:return: The certificate_source of this DescribeListenerAttributesResponse. # noqa: E501
387+
:rtype: str
388+
"""
389+
return self._certificate_source
390+
391+
@certificate_source.setter
392+
def certificate_source(self, certificate_source):
393+
"""Sets the certificate_source of this DescribeListenerAttributesResponse.
394+
395+
396+
:param certificate_source: The certificate_source of this DescribeListenerAttributesResponse. # noqa: E501
397+
:type: str
398+
"""
399+
400+
self._certificate_source = certificate_source
401+
345402
@property
346403
def client_body_timeout(self):
347404
"""Gets the client_body_timeout of this DescribeListenerAttributesResponse. # noqa: E501
@@ -867,6 +924,27 @@ def request_id(self, request_id):
867924

868925
self._request_id = request_id
869926

927+
@property
928+
def response_check_enabled(self):
929+
"""Gets the response_check_enabled of this DescribeListenerAttributesResponse. # noqa: E501
930+
931+
932+
:return: The response_check_enabled of this DescribeListenerAttributesResponse. # noqa: E501
933+
:rtype: str
934+
"""
935+
return self._response_check_enabled
936+
937+
@response_check_enabled.setter
938+
def response_check_enabled(self, response_check_enabled):
939+
"""Sets the response_check_enabled of this DescribeListenerAttributesResponse.
940+
941+
942+
:param response_check_enabled: The response_check_enabled of this DescribeListenerAttributesResponse. # noqa: E501
943+
:type: str
944+
"""
945+
946+
self._response_check_enabled = response_check_enabled
947+
870948
@property
871949
def scheduler(self):
872950
"""Gets the scheduler of this DescribeListenerAttributesResponse. # noqa: E501

volcenginesdkclb/models/describe_listeners_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class DescribeListenersRequest(object):
3838
'load_balancer_id': 'str',
3939
'page_number': 'int',
4040
'page_size': 'int',
41+
'protocol': 'str',
4142
'tag_filters': 'list[TagFilterForDescribeListenersInput]'
4243
}
4344

@@ -47,10 +48,11 @@ class DescribeListenersRequest(object):
4748
'load_balancer_id': 'LoadBalancerId',
4849
'page_number': 'PageNumber',
4950
'page_size': 'PageSize',
51+
'protocol': 'Protocol',
5052
'tag_filters': 'TagFilters'
5153
}
5254

53-
def __init__(self, listener_ids=None, listener_name=None, load_balancer_id=None, page_number=None, page_size=None, tag_filters=None, _configuration=None): # noqa: E501
55+
def __init__(self, listener_ids=None, listener_name=None, load_balancer_id=None, page_number=None, page_size=None, protocol=None, tag_filters=None, _configuration=None): # noqa: E501
5456
"""DescribeListenersRequest - a model defined in Swagger""" # noqa: E501
5557
if _configuration is None:
5658
_configuration = Configuration()
@@ -61,6 +63,7 @@ def __init__(self, listener_ids=None, listener_name=None, load_balancer_id=None,
6163
self._load_balancer_id = None
6264
self._page_number = None
6365
self._page_size = None
66+
self._protocol = None
6467
self._tag_filters = None
6568
self.discriminator = None
6669

@@ -74,6 +77,8 @@ def __init__(self, listener_ids=None, listener_name=None, load_balancer_id=None,
7477
self.page_number = page_number
7578
if page_size is not None:
7679
self.page_size = page_size
80+
if protocol is not None:
81+
self.protocol = protocol
7782
if tag_filters is not None:
7883
self.tag_filters = tag_filters
7984

@@ -182,6 +187,27 @@ def page_size(self, page_size):
182187

183188
self._page_size = page_size
184189

190+
@property
191+
def protocol(self):
192+
"""Gets the protocol of this DescribeListenersRequest. # noqa: E501
193+
194+
195+
:return: The protocol of this DescribeListenersRequest. # noqa: E501
196+
:rtype: str
197+
"""
198+
return self._protocol
199+
200+
@protocol.setter
201+
def protocol(self, protocol):
202+
"""Sets the protocol of this DescribeListenersRequest.
203+
204+
205+
:param protocol: The protocol of this DescribeListenersRequest. # noqa: E501
206+
:type: str
207+
"""
208+
209+
self._protocol = protocol
210+
185211
@property
186212
def tag_filters(self):
187213
"""Gets the tag_filters of this DescribeListenersRequest. # noqa: E501

0 commit comments

Comments
 (0)