Skip to content

Commit 0a06c4c

Browse files
committed
feat: update clb
1 parent 598f3c5 commit 0a06c4c

12 files changed

+465
-56
lines changed

volcenginesdkclb/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
from volcenginesdkclb.models.health_check_for_describe_listener_attributes_output import HealthCheckForDescribeListenerAttributesOutput
101101
from volcenginesdkclb.models.health_check_for_describe_listeners_output import HealthCheckForDescribeListenersOutput
102102
from volcenginesdkclb.models.health_check_for_modify_listener_attributes_input import HealthCheckForModifyListenerAttributesInput
103+
from volcenginesdkclb.models.ipv6_address_bandwidth_for_describe_load_balancer_attributes_output import Ipv6AddressBandwidthForDescribeLoadBalancerAttributesOutput
103104
from volcenginesdkclb.models.list_tags_for_resources_request import ListTagsForResourcesRequest
104105
from volcenginesdkclb.models.list_tags_for_resources_response import ListTagsForResourcesResponse
105106
from volcenginesdkclb.models.listener_for_describe_acl_attributes_output import ListenerForDescribeAclAttributesOutput

volcenginesdkclb/api/clb_api.py

Lines changed: 48 additions & 48 deletions
Large diffs are not rendered by default.

volcenginesdkclb/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
from volcenginesdkclb.models.health_check_for_describe_listener_attributes_output import HealthCheckForDescribeListenerAttributesOutput
9797
from volcenginesdkclb.models.health_check_for_describe_listeners_output import HealthCheckForDescribeListenersOutput
9898
from volcenginesdkclb.models.health_check_for_modify_listener_attributes_input import HealthCheckForModifyListenerAttributesInput
99+
from volcenginesdkclb.models.ipv6_address_bandwidth_for_describe_load_balancer_attributes_output import Ipv6AddressBandwidthForDescribeLoadBalancerAttributesOutput
99100
from volcenginesdkclb.models.list_tags_for_resources_request import ListTagsForResourcesRequest
100101
from volcenginesdkclb.models.list_tags_for_resources_response import ListTagsForResourcesResponse
101102
from volcenginesdkclb.models.listener_for_describe_acl_attributes_output import ListenerForDescribeAclAttributesOutput

volcenginesdkclb/models/create_listener_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class CreateListenerRequest(object):
3636
'acl_ids': 'list[str]',
3737
'acl_status': 'str',
3838
'acl_type': 'str',
39+
'bandwidth': 'int',
3940
'certificate_id': 'str',
4041
'description': 'str',
4142
'enabled': 'str',
@@ -56,6 +57,7 @@ class CreateListenerRequest(object):
5657
'acl_ids': 'AclIds',
5758
'acl_status': 'AclStatus',
5859
'acl_type': 'AclType',
60+
'bandwidth': 'Bandwidth',
5961
'certificate_id': 'CertificateId',
6062
'description': 'Description',
6163
'enabled': 'Enabled',
@@ -72,7 +74,7 @@ class CreateListenerRequest(object):
7274
'server_group_id': 'ServerGroupId'
7375
}
7476

75-
def __init__(self, acl_ids=None, acl_status=None, acl_type=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
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
7678
"""CreateListenerRequest - a model defined in Swagger""" # noqa: E501
7779
if _configuration is None:
7880
_configuration = Configuration()
@@ -81,6 +83,7 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, certificate_id=
8183
self._acl_ids = None
8284
self._acl_status = None
8385
self._acl_type = None
86+
self._bandwidth = None
8487
self._certificate_id = None
8588
self._description = None
8689
self._enabled = None
@@ -103,6 +106,8 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, certificate_id=
103106
self.acl_status = acl_status
104107
if acl_type is not None:
105108
self.acl_type = acl_type
109+
if bandwidth is not None:
110+
self.bandwidth = bandwidth
106111
if certificate_id is not None:
107112
self.certificate_id = certificate_id
108113
if description is not None:
@@ -191,6 +196,27 @@ def acl_type(self, acl_type):
191196

192197
self._acl_type = acl_type
193198

199+
@property
200+
def bandwidth(self):
201+
"""Gets the bandwidth of this CreateListenerRequest. # noqa: E501
202+
203+
204+
:return: The bandwidth of this CreateListenerRequest. # noqa: E501
205+
:rtype: int
206+
"""
207+
return self._bandwidth
208+
209+
@bandwidth.setter
210+
def bandwidth(self, bandwidth):
211+
"""Sets the bandwidth of this CreateListenerRequest.
212+
213+
214+
:param bandwidth: The bandwidth of this CreateListenerRequest. # noqa: E501
215+
:type: int
216+
"""
217+
218+
self._bandwidth = bandwidth
219+
194220
@property
195221
def certificate_id(self):
196222
"""Gets the certificate_id of this CreateListenerRequest. # noqa: E501

volcenginesdkclb/models/create_load_balancer_request.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ class CreateLoadBalancerRequest(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'address_ip_version': 'str',
3637
'client_token': 'str',
3738
'description': 'str',
3839
'eip_billing_config': 'EipBillingConfigForCreateLoadBalancerInput',
3940
'eni_address': 'str',
41+
'eni_ipv6_address': 'str',
4042
'load_balancer_billing_type': 'int',
4143
'load_balancer_name': 'str',
4244
'load_balancer_spec': 'str',
@@ -55,10 +57,12 @@ class CreateLoadBalancerRequest(object):
5557
}
5658

5759
attribute_map = {
60+
'address_ip_version': 'AddressIpVersion',
5861
'client_token': 'ClientToken',
5962
'description': 'Description',
6063
'eip_billing_config': 'EipBillingConfig',
6164
'eni_address': 'EniAddress',
65+
'eni_ipv6_address': 'EniIpv6Address',
6266
'load_balancer_billing_type': 'LoadBalancerBillingType',
6367
'load_balancer_name': 'LoadBalancerName',
6468
'load_balancer_spec': 'LoadBalancerSpec',
@@ -76,16 +80,18 @@ class CreateLoadBalancerRequest(object):
7680
'vpc_id': 'VpcId'
7781
}
7882

79-
def __init__(self, client_token=None, description=None, eip_billing_config=None, eni_address=None, load_balancer_billing_type=None, load_balancer_name=None, load_balancer_spec=None, master_zone_id=None, modification_protection_reason=None, modification_protection_status=None, period=None, period_unit=None, project_name=None, region_id=None, slave_zone_id=None, subnet_id=None, tags=None, type=None, vpc_id=None, _configuration=None): # noqa: E501
83+
def __init__(self, address_ip_version=None, client_token=None, description=None, eip_billing_config=None, eni_address=None, eni_ipv6_address=None, load_balancer_billing_type=None, load_balancer_name=None, load_balancer_spec=None, master_zone_id=None, modification_protection_reason=None, modification_protection_status=None, period=None, period_unit=None, project_name=None, region_id=None, slave_zone_id=None, subnet_id=None, tags=None, type=None, vpc_id=None, _configuration=None): # noqa: E501
8084
"""CreateLoadBalancerRequest - a model defined in Swagger""" # noqa: E501
8185
if _configuration is None:
8286
_configuration = Configuration()
8387
self._configuration = _configuration
8488

89+
self._address_ip_version = None
8590
self._client_token = None
8691
self._description = None
8792
self._eip_billing_config = None
8893
self._eni_address = None
94+
self._eni_ipv6_address = None
8995
self._load_balancer_billing_type = None
9096
self._load_balancer_name = None
9197
self._load_balancer_spec = None
@@ -103,6 +109,8 @@ def __init__(self, client_token=None, description=None, eip_billing_config=None,
103109
self._vpc_id = None
104110
self.discriminator = None
105111

112+
if address_ip_version is not None:
113+
self.address_ip_version = address_ip_version
106114
if client_token is not None:
107115
self.client_token = client_token
108116
if description is not None:
@@ -111,6 +119,8 @@ def __init__(self, client_token=None, description=None, eip_billing_config=None,
111119
self.eip_billing_config = eip_billing_config
112120
if eni_address is not None:
113121
self.eni_address = eni_address
122+
if eni_ipv6_address is not None:
123+
self.eni_ipv6_address = eni_ipv6_address
114124
if load_balancer_billing_type is not None:
115125
self.load_balancer_billing_type = load_balancer_billing_type
116126
if load_balancer_name is not None:
@@ -139,6 +149,27 @@ def __init__(self, client_token=None, description=None, eip_billing_config=None,
139149
if vpc_id is not None:
140150
self.vpc_id = vpc_id
141151

152+
@property
153+
def address_ip_version(self):
154+
"""Gets the address_ip_version of this CreateLoadBalancerRequest. # noqa: E501
155+
156+
157+
:return: The address_ip_version of this CreateLoadBalancerRequest. # noqa: E501
158+
:rtype: str
159+
"""
160+
return self._address_ip_version
161+
162+
@address_ip_version.setter
163+
def address_ip_version(self, address_ip_version):
164+
"""Sets the address_ip_version of this CreateLoadBalancerRequest.
165+
166+
167+
:param address_ip_version: The address_ip_version of this CreateLoadBalancerRequest. # noqa: E501
168+
:type: str
169+
"""
170+
171+
self._address_ip_version = address_ip_version
172+
142173
@property
143174
def client_token(self):
144175
"""Gets the client_token of this CreateLoadBalancerRequest. # noqa: E501
@@ -223,6 +254,27 @@ def eni_address(self, eni_address):
223254

224255
self._eni_address = eni_address
225256

257+
@property
258+
def eni_ipv6_address(self):
259+
"""Gets the eni_ipv6_address of this CreateLoadBalancerRequest. # noqa: E501
260+
261+
262+
:return: The eni_ipv6_address of this CreateLoadBalancerRequest. # noqa: E501
263+
:rtype: str
264+
"""
265+
return self._eni_ipv6_address
266+
267+
@eni_ipv6_address.setter
268+
def eni_ipv6_address(self, eni_ipv6_address):
269+
"""Sets the eni_ipv6_address of this CreateLoadBalancerRequest.
270+
271+
272+
:param eni_ipv6_address: The eni_ipv6_address of this CreateLoadBalancerRequest. # noqa: E501
273+
:type: str
274+
"""
275+
276+
self._eni_ipv6_address = eni_ipv6_address
277+
226278
@property
227279
def load_balancer_billing_type(self):
228280
"""Gets the load_balancer_billing_type of this CreateLoadBalancerRequest. # noqa: E501

volcenginesdkclb/models/describe_listener_attributes_response.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class DescribeListenerAttributesResponse(object):
3636
'acl_ids': 'list[str]',
3737
'acl_status': 'str',
3838
'acl_type': 'str',
39+
'bandwidth': 'int',
3940
'certificate_id': 'str',
4041
'create_time': 'str',
4142
'description': 'str',
@@ -58,6 +59,7 @@ class DescribeListenerAttributesResponse(object):
5859
'acl_ids': 'AclIds',
5960
'acl_status': 'AclStatus',
6061
'acl_type': 'AclType',
62+
'bandwidth': 'Bandwidth',
6163
'certificate_id': 'CertificateId',
6264
'create_time': 'CreateTime',
6365
'description': 'Description',
@@ -76,7 +78,7 @@ class DescribeListenerAttributesResponse(object):
7678
'update_time': 'UpdateTime'
7779
}
7880

79-
def __init__(self, acl_ids=None, acl_status=None, acl_type=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
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
8082
"""DescribeListenerAttributesResponse - a model defined in Swagger""" # noqa: E501
8183
if _configuration is None:
8284
_configuration = Configuration()
@@ -85,6 +87,7 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, certificate_id=
8587
self._acl_ids = None
8688
self._acl_status = None
8789
self._acl_type = None
90+
self._bandwidth = None
8891
self._certificate_id = None
8992
self._create_time = None
9093
self._description = None
@@ -109,6 +112,8 @@ def __init__(self, acl_ids=None, acl_status=None, acl_type=None, certificate_id=
109112
self.acl_status = acl_status
110113
if acl_type is not None:
111114
self.acl_type = acl_type
115+
if bandwidth is not None:
116+
self.bandwidth = bandwidth
112117
if certificate_id is not None:
113118
self.certificate_id = certificate_id
114119
if create_time is not None:
@@ -205,6 +210,27 @@ def acl_type(self, acl_type):
205210

206211
self._acl_type = acl_type
207212

213+
@property
214+
def bandwidth(self):
215+
"""Gets the bandwidth of this DescribeListenerAttributesResponse. # noqa: E501
216+
217+
218+
:return: The bandwidth of this DescribeListenerAttributesResponse. # noqa: E501
219+
:rtype: int
220+
"""
221+
return self._bandwidth
222+
223+
@bandwidth.setter
224+
def bandwidth(self, bandwidth):
225+
"""Sets the bandwidth of this DescribeListenerAttributesResponse.
226+
227+
228+
:param bandwidth: The bandwidth of this DescribeListenerAttributesResponse. # noqa: E501
229+
:type: int
230+
"""
231+
232+
self._bandwidth = bandwidth
233+
208234
@property
209235
def certificate_id(self):
210236
"""Gets the certificate_id of this DescribeListenerAttributesResponse. # noqa: E501

0 commit comments

Comments
 (0)