Skip to content

Commit a1d5915

Browse files
author
BitsAdmin
committed
Merge branch 'ga-Python-2022-03-01-online-1323-2025_06_24_16_58_47' into 'integration_2025-06-26_968729939458'
feat: [development task] ga-1323-Python (1390208) See merge request iaasng/volcengine-python-sdk!687
2 parents 0120dd3 + 4cb6132 commit a1d5915

File tree

211 files changed

+46223
-0
lines changed

Some content is hidden

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

211 files changed

+46223
-0
lines changed

volcenginesdkga/__init__.py

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

volcenginesdkga/api/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from __future__ import absolute_import
2+
3+
# flake8: noqa
4+
5+
# import apis into api package
6+
from volcenginesdkga.api.ga_api import GAApi

volcenginesdkga/api/ga_api.py

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

volcenginesdkga/models/__init__.py

Lines changed: 224 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 357 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,357 @@
1+
# coding: utf-8
2+
3+
"""
4+
ga
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 AccelerateIPForListBasicAccelerateIPsOutput(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+
'accelerate_ip_address': 'str',
37+
'accelerate_ipid': 'str',
38+
'accelerator_id': 'str',
39+
'binding_mode': 'str',
40+
'edge_node_alias': 'str',
41+
'edge_node_name': 'str',
42+
'endpoints': 'list[EndpointForListBasicAccelerateIPsOutput]',
43+
'ip_set_id': 'str',
44+
'isp': 'str',
45+
'state': 'str'
46+
}
47+
48+
attribute_map = {
49+
'accelerate_ip_address': 'AccelerateIPAddress',
50+
'accelerate_ipid': 'AccelerateIPId',
51+
'accelerator_id': 'AcceleratorId',
52+
'binding_mode': 'BindingMode',
53+
'edge_node_alias': 'EdgeNodeAlias',
54+
'edge_node_name': 'EdgeNodeName',
55+
'endpoints': 'Endpoints',
56+
'ip_set_id': 'IPSetId',
57+
'isp': 'ISP',
58+
'state': 'State'
59+
}
60+
61+
def __init__(self, accelerate_ip_address=None, accelerate_ipid=None, accelerator_id=None, binding_mode=None, edge_node_alias=None, edge_node_name=None, endpoints=None, ip_set_id=None, isp=None, state=None, _configuration=None): # noqa: E501
62+
"""AccelerateIPForListBasicAccelerateIPsOutput - a model defined in Swagger""" # noqa: E501
63+
if _configuration is None:
64+
_configuration = Configuration()
65+
self._configuration = _configuration
66+
67+
self._accelerate_ip_address = None
68+
self._accelerate_ipid = None
69+
self._accelerator_id = None
70+
self._binding_mode = None
71+
self._edge_node_alias = None
72+
self._edge_node_name = None
73+
self._endpoints = None
74+
self._ip_set_id = None
75+
self._isp = None
76+
self._state = None
77+
self.discriminator = None
78+
79+
if accelerate_ip_address is not None:
80+
self.accelerate_ip_address = accelerate_ip_address
81+
if accelerate_ipid is not None:
82+
self.accelerate_ipid = accelerate_ipid
83+
if accelerator_id is not None:
84+
self.accelerator_id = accelerator_id
85+
if binding_mode is not None:
86+
self.binding_mode = binding_mode
87+
if edge_node_alias is not None:
88+
self.edge_node_alias = edge_node_alias
89+
if edge_node_name is not None:
90+
self.edge_node_name = edge_node_name
91+
if endpoints is not None:
92+
self.endpoints = endpoints
93+
if ip_set_id is not None:
94+
self.ip_set_id = ip_set_id
95+
if isp is not None:
96+
self.isp = isp
97+
if state is not None:
98+
self.state = state
99+
100+
@property
101+
def accelerate_ip_address(self):
102+
"""Gets the accelerate_ip_address of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
103+
104+
105+
:return: The accelerate_ip_address of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
106+
:rtype: str
107+
"""
108+
return self._accelerate_ip_address
109+
110+
@accelerate_ip_address.setter
111+
def accelerate_ip_address(self, accelerate_ip_address):
112+
"""Sets the accelerate_ip_address of this AccelerateIPForListBasicAccelerateIPsOutput.
113+
114+
115+
:param accelerate_ip_address: The accelerate_ip_address of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
116+
:type: str
117+
"""
118+
119+
self._accelerate_ip_address = accelerate_ip_address
120+
121+
@property
122+
def accelerate_ipid(self):
123+
"""Gets the accelerate_ipid of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
124+
125+
126+
:return: The accelerate_ipid of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
127+
:rtype: str
128+
"""
129+
return self._accelerate_ipid
130+
131+
@accelerate_ipid.setter
132+
def accelerate_ipid(self, accelerate_ipid):
133+
"""Sets the accelerate_ipid of this AccelerateIPForListBasicAccelerateIPsOutput.
134+
135+
136+
:param accelerate_ipid: The accelerate_ipid of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
137+
:type: str
138+
"""
139+
140+
self._accelerate_ipid = accelerate_ipid
141+
142+
@property
143+
def accelerator_id(self):
144+
"""Gets the accelerator_id of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
145+
146+
147+
:return: The accelerator_id of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
148+
:rtype: str
149+
"""
150+
return self._accelerator_id
151+
152+
@accelerator_id.setter
153+
def accelerator_id(self, accelerator_id):
154+
"""Sets the accelerator_id of this AccelerateIPForListBasicAccelerateIPsOutput.
155+
156+
157+
:param accelerator_id: The accelerator_id of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
158+
:type: str
159+
"""
160+
161+
self._accelerator_id = accelerator_id
162+
163+
@property
164+
def binding_mode(self):
165+
"""Gets the binding_mode of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
166+
167+
168+
:return: The binding_mode of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
169+
:rtype: str
170+
"""
171+
return self._binding_mode
172+
173+
@binding_mode.setter
174+
def binding_mode(self, binding_mode):
175+
"""Sets the binding_mode of this AccelerateIPForListBasicAccelerateIPsOutput.
176+
177+
178+
:param binding_mode: The binding_mode of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
179+
:type: str
180+
"""
181+
182+
self._binding_mode = binding_mode
183+
184+
@property
185+
def edge_node_alias(self):
186+
"""Gets the edge_node_alias of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
187+
188+
189+
:return: The edge_node_alias of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
190+
:rtype: str
191+
"""
192+
return self._edge_node_alias
193+
194+
@edge_node_alias.setter
195+
def edge_node_alias(self, edge_node_alias):
196+
"""Sets the edge_node_alias of this AccelerateIPForListBasicAccelerateIPsOutput.
197+
198+
199+
:param edge_node_alias: The edge_node_alias of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
200+
:type: str
201+
"""
202+
203+
self._edge_node_alias = edge_node_alias
204+
205+
@property
206+
def edge_node_name(self):
207+
"""Gets the edge_node_name of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
208+
209+
210+
:return: The edge_node_name of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
211+
:rtype: str
212+
"""
213+
return self._edge_node_name
214+
215+
@edge_node_name.setter
216+
def edge_node_name(self, edge_node_name):
217+
"""Sets the edge_node_name of this AccelerateIPForListBasicAccelerateIPsOutput.
218+
219+
220+
:param edge_node_name: The edge_node_name of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
221+
:type: str
222+
"""
223+
224+
self._edge_node_name = edge_node_name
225+
226+
@property
227+
def endpoints(self):
228+
"""Gets the endpoints of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
229+
230+
231+
:return: The endpoints of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
232+
:rtype: list[EndpointForListBasicAccelerateIPsOutput]
233+
"""
234+
return self._endpoints
235+
236+
@endpoints.setter
237+
def endpoints(self, endpoints):
238+
"""Sets the endpoints of this AccelerateIPForListBasicAccelerateIPsOutput.
239+
240+
241+
:param endpoints: The endpoints of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
242+
:type: list[EndpointForListBasicAccelerateIPsOutput]
243+
"""
244+
245+
self._endpoints = endpoints
246+
247+
@property
248+
def ip_set_id(self):
249+
"""Gets the ip_set_id of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
250+
251+
252+
:return: The ip_set_id of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
253+
:rtype: str
254+
"""
255+
return self._ip_set_id
256+
257+
@ip_set_id.setter
258+
def ip_set_id(self, ip_set_id):
259+
"""Sets the ip_set_id of this AccelerateIPForListBasicAccelerateIPsOutput.
260+
261+
262+
:param ip_set_id: The ip_set_id of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
263+
:type: str
264+
"""
265+
266+
self._ip_set_id = ip_set_id
267+
268+
@property
269+
def isp(self):
270+
"""Gets the isp of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
271+
272+
273+
:return: The isp of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
274+
:rtype: str
275+
"""
276+
return self._isp
277+
278+
@isp.setter
279+
def isp(self, isp):
280+
"""Sets the isp of this AccelerateIPForListBasicAccelerateIPsOutput.
281+
282+
283+
:param isp: The isp of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
284+
:type: str
285+
"""
286+
287+
self._isp = isp
288+
289+
@property
290+
def state(self):
291+
"""Gets the state of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
292+
293+
294+
:return: The state of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
295+
:rtype: str
296+
"""
297+
return self._state
298+
299+
@state.setter
300+
def state(self, state):
301+
"""Sets the state of this AccelerateIPForListBasicAccelerateIPsOutput.
302+
303+
304+
:param state: The state of this AccelerateIPForListBasicAccelerateIPsOutput. # noqa: E501
305+
:type: str
306+
"""
307+
308+
self._state = state
309+
310+
def to_dict(self):
311+
"""Returns the model properties as a dict"""
312+
result = {}
313+
314+
for attr, _ in six.iteritems(self.swagger_types):
315+
value = getattr(self, attr)
316+
if isinstance(value, list):
317+
result[attr] = list(map(
318+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
319+
value
320+
))
321+
elif hasattr(value, "to_dict"):
322+
result[attr] = value.to_dict()
323+
elif isinstance(value, dict):
324+
result[attr] = dict(map(
325+
lambda item: (item[0], item[1].to_dict())
326+
if hasattr(item[1], "to_dict") else item,
327+
value.items()
328+
))
329+
else:
330+
result[attr] = value
331+
if issubclass(AccelerateIPForListBasicAccelerateIPsOutput, dict):
332+
for key, value in self.items():
333+
result[key] = value
334+
335+
return result
336+
337+
def to_str(self):
338+
"""Returns the string representation of the model"""
339+
return pprint.pformat(self.to_dict())
340+
341+
def __repr__(self):
342+
"""For `print` and `pprint`"""
343+
return self.to_str()
344+
345+
def __eq__(self, other):
346+
"""Returns true if both objects are equal"""
347+
if not isinstance(other, AccelerateIPForListBasicAccelerateIPsOutput):
348+
return False
349+
350+
return self.to_dict() == other.to_dict()
351+
352+
def __ne__(self, other):
353+
"""Returns true if both objects are not equal"""
354+
if not isinstance(other, AccelerateIPForListBasicAccelerateIPsOutput):
355+
return True
356+
357+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)