Skip to content

Commit 7e61c5d

Browse files
author
BitsAdmin
committed
Merge branch 'vpc-Python-2020-04-01-online-841-2024_12_12_11_30_33' into 'integration_2024-12-16_640272511746'
feat: [development task] vpc-841-Python (916207) See merge request iaasng/volcengine-python-sdk!450
2 parents 2f8d3a7 + a76b2d8 commit 7e61c5d

82 files changed

Lines changed: 19500 additions & 1012 deletions

File tree

Some content is hidden

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

meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "1.0.114",
2+
"lasted": "1.0.115",
33
"meta_commit": "4e4f5b582be13a4533a1412327abfb51c95521e2"
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 = "1.0.114"
6+
VERSION = "1.0.115"
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.114'
70+
self.user_agent = 'volcstack-python-sdk/1.0.115'
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.114".\
224+
"SDK Package Version: 1.0.115".\
225225
format(env=sys.platform, pyversion=sys.version)

volcenginesdkvpc/__init__.py

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

volcenginesdkvpc/api/vpc_api.py

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

volcenginesdkvpc/models/__init__.py

Lines changed: 75 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
# coding: utf-8
2+
3+
"""
4+
vpc
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 AllocateIpv6AddressBandwidthRequest(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+
'bandwidth': 'int',
37+
'bandwidth_package_id': 'str',
38+
'billing_type': 'int',
39+
'client_token': 'str',
40+
'ipv6_address': 'str'
41+
}
42+
43+
attribute_map = {
44+
'bandwidth': 'Bandwidth',
45+
'bandwidth_package_id': 'BandwidthPackageId',
46+
'billing_type': 'BillingType',
47+
'client_token': 'ClientToken',
48+
'ipv6_address': 'Ipv6Address'
49+
}
50+
51+
def __init__(self, bandwidth=None, bandwidth_package_id=None, billing_type=None, client_token=None, ipv6_address=None, _configuration=None): # noqa: E501
52+
"""AllocateIpv6AddressBandwidthRequest - a model defined in Swagger""" # noqa: E501
53+
if _configuration is None:
54+
_configuration = Configuration()
55+
self._configuration = _configuration
56+
57+
self._bandwidth = None
58+
self._bandwidth_package_id = None
59+
self._billing_type = None
60+
self._client_token = None
61+
self._ipv6_address = None
62+
self.discriminator = None
63+
64+
if bandwidth is not None:
65+
self.bandwidth = bandwidth
66+
if bandwidth_package_id is not None:
67+
self.bandwidth_package_id = bandwidth_package_id
68+
self.billing_type = billing_type
69+
if client_token is not None:
70+
self.client_token = client_token
71+
self.ipv6_address = ipv6_address
72+
73+
@property
74+
def bandwidth(self):
75+
"""Gets the bandwidth of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
76+
77+
78+
:return: The bandwidth of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
79+
:rtype: int
80+
"""
81+
return self._bandwidth
82+
83+
@bandwidth.setter
84+
def bandwidth(self, bandwidth):
85+
"""Sets the bandwidth of this AllocateIpv6AddressBandwidthRequest.
86+
87+
88+
:param bandwidth: The bandwidth of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
89+
:type: int
90+
"""
91+
if (self._configuration.client_side_validation and
92+
bandwidth is not None and bandwidth < 1): # noqa: E501
93+
raise ValueError("Invalid value for `bandwidth`, must be a value greater than or equal to `1`") # noqa: E501
94+
95+
self._bandwidth = bandwidth
96+
97+
@property
98+
def bandwidth_package_id(self):
99+
"""Gets the bandwidth_package_id of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
100+
101+
102+
:return: The bandwidth_package_id of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
103+
:rtype: str
104+
"""
105+
return self._bandwidth_package_id
106+
107+
@bandwidth_package_id.setter
108+
def bandwidth_package_id(self, bandwidth_package_id):
109+
"""Sets the bandwidth_package_id of this AllocateIpv6AddressBandwidthRequest.
110+
111+
112+
:param bandwidth_package_id: The bandwidth_package_id of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
113+
:type: str
114+
"""
115+
116+
self._bandwidth_package_id = bandwidth_package_id
117+
118+
@property
119+
def billing_type(self):
120+
"""Gets the billing_type of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
121+
122+
123+
:return: The billing_type of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
124+
:rtype: int
125+
"""
126+
return self._billing_type
127+
128+
@billing_type.setter
129+
def billing_type(self, billing_type):
130+
"""Sets the billing_type of this AllocateIpv6AddressBandwidthRequest.
131+
132+
133+
:param billing_type: The billing_type of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
134+
:type: int
135+
"""
136+
if self._configuration.client_side_validation and billing_type is None:
137+
raise ValueError("Invalid value for `billing_type`, must not be `None`") # noqa: E501
138+
139+
self._billing_type = billing_type
140+
141+
@property
142+
def client_token(self):
143+
"""Gets the client_token of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
144+
145+
146+
:return: The client_token of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
147+
:rtype: str
148+
"""
149+
return self._client_token
150+
151+
@client_token.setter
152+
def client_token(self, client_token):
153+
"""Sets the client_token of this AllocateIpv6AddressBandwidthRequest.
154+
155+
156+
:param client_token: The client_token of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
157+
:type: str
158+
"""
159+
160+
self._client_token = client_token
161+
162+
@property
163+
def ipv6_address(self):
164+
"""Gets the ipv6_address of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
165+
166+
167+
:return: The ipv6_address of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
168+
:rtype: str
169+
"""
170+
return self._ipv6_address
171+
172+
@ipv6_address.setter
173+
def ipv6_address(self, ipv6_address):
174+
"""Sets the ipv6_address of this AllocateIpv6AddressBandwidthRequest.
175+
176+
177+
:param ipv6_address: The ipv6_address of this AllocateIpv6AddressBandwidthRequest. # noqa: E501
178+
:type: str
179+
"""
180+
if self._configuration.client_side_validation and ipv6_address is None:
181+
raise ValueError("Invalid value for `ipv6_address`, must not be `None`") # noqa: E501
182+
183+
self._ipv6_address = ipv6_address
184+
185+
def to_dict(self):
186+
"""Returns the model properties as a dict"""
187+
result = {}
188+
189+
for attr, _ in six.iteritems(self.swagger_types):
190+
value = getattr(self, attr)
191+
if isinstance(value, list):
192+
result[attr] = list(map(
193+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
194+
value
195+
))
196+
elif hasattr(value, "to_dict"):
197+
result[attr] = value.to_dict()
198+
elif isinstance(value, dict):
199+
result[attr] = dict(map(
200+
lambda item: (item[0], item[1].to_dict())
201+
if hasattr(item[1], "to_dict") else item,
202+
value.items()
203+
))
204+
else:
205+
result[attr] = value
206+
if issubclass(AllocateIpv6AddressBandwidthRequest, dict):
207+
for key, value in self.items():
208+
result[key] = value
209+
210+
return result
211+
212+
def to_str(self):
213+
"""Returns the string representation of the model"""
214+
return pprint.pformat(self.to_dict())
215+
216+
def __repr__(self):
217+
"""For `print` and `pprint`"""
218+
return self.to_str()
219+
220+
def __eq__(self, other):
221+
"""Returns true if both objects are equal"""
222+
if not isinstance(other, AllocateIpv6AddressBandwidthRequest):
223+
return False
224+
225+
return self.to_dict() == other.to_dict()
226+
227+
def __ne__(self, other):
228+
"""Returns true if both objects are not equal"""
229+
if not isinstance(other, AllocateIpv6AddressBandwidthRequest):
230+
return True
231+
232+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)