Skip to content

Commit 01d0643

Browse files
author
BitsAdmin
committed
Merge branch 'clb-Python-2020-04-01-online-1344-2025_07_02_17_45_43' into 'integration_2025-07-03_982885029122'
feat: [development task] clb-1344-Python (1417580) See merge request iaasng/volcengine-python-sdk!697
2 parents 09e26a9 + 4d49856 commit 01d0643

File tree

120 files changed

+29195
-658
lines changed

Some content is hidden

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

120 files changed

+29195
-658
lines changed

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "4.0.3",
3-
"meta_commit": "65aa7dbcdf8ab9dbdbc3e7dd91a4f5ae1f05cbb1"
2+
"lasted": "4.0.4",
3+
"meta_commit": "64ef0624aa6b331fec0b732e47aac9ea4f0587d0"
44
}

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 = "4.0.3"
6+
VERSION = "4.0.4"
77
# To install the library, run the following
88
#
99
# python setup.py install

volcenginesdkclb/.DS_Store

-6 KB
Binary file not shown.

volcenginesdkclb/__init__.py

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

volcenginesdkclb/api/clb_api.py

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

volcenginesdkclb/models/__init__.py

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

volcenginesdkclb/models/access_log_for_describe_load_balancer_attributes_output.py

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,43 @@ class AccessLogForDescribeLoadBalancerAttributesOutput(object):
3434
"""
3535
swagger_types = {
3636
'bucket_name': 'str',
37-
'enabled': 'bool'
37+
'enabled': 'bool',
38+
'tls_enabled': 'bool',
39+
'tls_project_id': 'str',
40+
'tls_topic_id': 'str'
3841
}
3942

4043
attribute_map = {
4144
'bucket_name': 'BucketName',
42-
'enabled': 'Enabled'
45+
'enabled': 'Enabled',
46+
'tls_enabled': 'TlsEnabled',
47+
'tls_project_id': 'TlsProjectId',
48+
'tls_topic_id': 'TlsTopicId'
4349
}
4450

45-
def __init__(self, bucket_name=None, enabled=None, _configuration=None): # noqa: E501
51+
def __init__(self, bucket_name=None, enabled=None, tls_enabled=None, tls_project_id=None, tls_topic_id=None, _configuration=None): # noqa: E501
4652
"""AccessLogForDescribeLoadBalancerAttributesOutput - a model defined in Swagger""" # noqa: E501
4753
if _configuration is None:
4854
_configuration = Configuration()
4955
self._configuration = _configuration
5056

5157
self._bucket_name = None
5258
self._enabled = None
59+
self._tls_enabled = None
60+
self._tls_project_id = None
61+
self._tls_topic_id = None
5362
self.discriminator = None
5463

5564
if bucket_name is not None:
5665
self.bucket_name = bucket_name
5766
if enabled is not None:
5867
self.enabled = enabled
68+
if tls_enabled is not None:
69+
self.tls_enabled = tls_enabled
70+
if tls_project_id is not None:
71+
self.tls_project_id = tls_project_id
72+
if tls_topic_id is not None:
73+
self.tls_topic_id = tls_topic_id
5974

6075
@property
6176
def bucket_name(self):
@@ -99,6 +114,69 @@ def enabled(self, enabled):
99114

100115
self._enabled = enabled
101116

117+
@property
118+
def tls_enabled(self):
119+
"""Gets the tls_enabled of this AccessLogForDescribeLoadBalancerAttributesOutput. # noqa: E501
120+
121+
122+
:return: The tls_enabled of this AccessLogForDescribeLoadBalancerAttributesOutput. # noqa: E501
123+
:rtype: bool
124+
"""
125+
return self._tls_enabled
126+
127+
@tls_enabled.setter
128+
def tls_enabled(self, tls_enabled):
129+
"""Sets the tls_enabled of this AccessLogForDescribeLoadBalancerAttributesOutput.
130+
131+
132+
:param tls_enabled: The tls_enabled of this AccessLogForDescribeLoadBalancerAttributesOutput. # noqa: E501
133+
:type: bool
134+
"""
135+
136+
self._tls_enabled = tls_enabled
137+
138+
@property
139+
def tls_project_id(self):
140+
"""Gets the tls_project_id of this AccessLogForDescribeLoadBalancerAttributesOutput. # noqa: E501
141+
142+
143+
:return: The tls_project_id of this AccessLogForDescribeLoadBalancerAttributesOutput. # noqa: E501
144+
:rtype: str
145+
"""
146+
return self._tls_project_id
147+
148+
@tls_project_id.setter
149+
def tls_project_id(self, tls_project_id):
150+
"""Sets the tls_project_id of this AccessLogForDescribeLoadBalancerAttributesOutput.
151+
152+
153+
:param tls_project_id: The tls_project_id of this AccessLogForDescribeLoadBalancerAttributesOutput. # noqa: E501
154+
:type: str
155+
"""
156+
157+
self._tls_project_id = tls_project_id
158+
159+
@property
160+
def tls_topic_id(self):
161+
"""Gets the tls_topic_id of this AccessLogForDescribeLoadBalancerAttributesOutput. # noqa: E501
162+
163+
164+
:return: The tls_topic_id of this AccessLogForDescribeLoadBalancerAttributesOutput. # noqa: E501
165+
:rtype: str
166+
"""
167+
return self._tls_topic_id
168+
169+
@tls_topic_id.setter
170+
def tls_topic_id(self, tls_topic_id):
171+
"""Sets the tls_topic_id of this AccessLogForDescribeLoadBalancerAttributesOutput.
172+
173+
174+
:param tls_topic_id: The tls_topic_id of this AccessLogForDescribeLoadBalancerAttributesOutput. # noqa: E501
175+
:type: str
176+
"""
177+
178+
self._tls_topic_id = tls_topic_id
179+
102180
def to_dict(self):
103181
"""Returns the model properties as a dict"""
104182
result = {}
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# coding: utf-8
2+
3+
"""
4+
clb
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class AddNLBBackendServersRequest(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
'server_group_id': 'str',
37+
'servers': 'list[ServerForAddNLBBackendServersInput]'
38+
}
39+
40+
attribute_map = {
41+
'server_group_id': 'ServerGroupId',
42+
'servers': 'Servers'
43+
}
44+
45+
def __init__(self, server_group_id=None, servers=None, _configuration=None): # noqa: E501
46+
"""AddNLBBackendServersRequest - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._server_group_id = None
52+
self._servers = None
53+
self.discriminator = None
54+
55+
self.server_group_id = server_group_id
56+
if servers is not None:
57+
self.servers = servers
58+
59+
@property
60+
def server_group_id(self):
61+
"""Gets the server_group_id of this AddNLBBackendServersRequest. # noqa: E501
62+
63+
64+
:return: The server_group_id of this AddNLBBackendServersRequest. # noqa: E501
65+
:rtype: str
66+
"""
67+
return self._server_group_id
68+
69+
@server_group_id.setter
70+
def server_group_id(self, server_group_id):
71+
"""Sets the server_group_id of this AddNLBBackendServersRequest.
72+
73+
74+
:param server_group_id: The server_group_id of this AddNLBBackendServersRequest. # noqa: E501
75+
:type: str
76+
"""
77+
if self._configuration.client_side_validation and server_group_id is None:
78+
raise ValueError("Invalid value for `server_group_id`, must not be `None`") # noqa: E501
79+
80+
self._server_group_id = server_group_id
81+
82+
@property
83+
def servers(self):
84+
"""Gets the servers of this AddNLBBackendServersRequest. # noqa: E501
85+
86+
87+
:return: The servers of this AddNLBBackendServersRequest. # noqa: E501
88+
:rtype: list[ServerForAddNLBBackendServersInput]
89+
"""
90+
return self._servers
91+
92+
@servers.setter
93+
def servers(self, servers):
94+
"""Sets the servers of this AddNLBBackendServersRequest.
95+
96+
97+
:param servers: The servers of this AddNLBBackendServersRequest. # noqa: E501
98+
:type: list[ServerForAddNLBBackendServersInput]
99+
"""
100+
101+
self._servers = servers
102+
103+
def to_dict(self):
104+
"""Returns the model properties as a dict"""
105+
result = {}
106+
107+
for attr, _ in six.iteritems(self.swagger_types):
108+
value = getattr(self, attr)
109+
if isinstance(value, list):
110+
result[attr] = list(map(
111+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112+
value
113+
))
114+
elif hasattr(value, "to_dict"):
115+
result[attr] = value.to_dict()
116+
elif isinstance(value, dict):
117+
result[attr] = dict(map(
118+
lambda item: (item[0], item[1].to_dict())
119+
if hasattr(item[1], "to_dict") else item,
120+
value.items()
121+
))
122+
else:
123+
result[attr] = value
124+
if issubclass(AddNLBBackendServersRequest, dict):
125+
for key, value in self.items():
126+
result[key] = value
127+
128+
return result
129+
130+
def to_str(self):
131+
"""Returns the string representation of the model"""
132+
return pprint.pformat(self.to_dict())
133+
134+
def __repr__(self):
135+
"""For `print` and `pprint`"""
136+
return self.to_str()
137+
138+
def __eq__(self, other):
139+
"""Returns true if both objects are equal"""
140+
if not isinstance(other, AddNLBBackendServersRequest):
141+
return False
142+
143+
return self.to_dict() == other.to_dict()
144+
145+
def __ne__(self, other):
146+
"""Returns true if both objects are not equal"""
147+
if not isinstance(other, AddNLBBackendServersRequest):
148+
return True
149+
150+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)