Skip to content

Commit d558392

Browse files
author
BitsAdmin
committed
Merge branch 'acep-Python-2025-05-01-online-1168-2025_05_15_17_18_22' into 'integration_2025-05-29_924534509058'
feat: [development task] ACEP-1168-Python (1273699) See merge request iaasng/volcengine-python-sdk!632
2 parents 03fc7ae + abbaba4 commit d558392

12 files changed

+2762
-0
lines changed

volcenginesdkacep/__init__.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
5+
"""
6+
acep
7+
8+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
9+
10+
OpenAPI spec version: common-version
11+
12+
Generated by: https://github.com/swagger-api/swagger-codegen.git
13+
"""
14+
15+
16+
from __future__ import absolute_import
17+
18+
# import apis into sdk package
19+
from volcenginesdkacep.api.acep_api import ACEPApi
20+
21+
# import models into sdk package
22+
from volcenginesdkacep.models.configuration_for_list_pod_output import ConfigurationForListPodOutput
23+
from volcenginesdkacep.models.dc_info_for_list_pod_output import DcInfoForListPodOutput
24+
from volcenginesdkacep.models.list_pod_request import ListPodRequest
25+
from volcenginesdkacep.models.list_pod_response import ListPodResponse
26+
from volcenginesdkacep.models.port_mapping_rule_list_for_list_pod_output import PortMappingRuleListForListPodOutput
27+
from volcenginesdkacep.models.public_port_info_list_for_list_pod_output import PublicPortInfoListForListPodOutput
28+
from volcenginesdkacep.models.row_for_list_pod_output import RowForListPodOutput
29+
from volcenginesdkacep.models.tag_for_list_pod_output import TagForListPodOutput

volcenginesdkacep/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 volcenginesdkacep.api.acep_api import ACEPApi

volcenginesdkacep/api/acep_api.py

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# coding: utf-8
2+
3+
"""
4+
acep
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+
from __future__ import absolute_import
15+
16+
import re # noqa: F401
17+
18+
# python 2 and python 3 compatibility library
19+
import six
20+
21+
import volcenginesdkcore
22+
23+
24+
class ACEPApi(object):
25+
"""NOTE: This class is auto generated by the swagger code generator program.
26+
27+
Do not edit the class manually.
28+
Ref: https://github.com/swagger-api/swagger-codegen
29+
"""
30+
31+
def __init__(self, api_client=None):
32+
if api_client is None:
33+
api_client = volcenginesdkcore.ApiClient()
34+
self.api_client = api_client
35+
36+
def list_pod(self, body, **kwargs): # noqa: E501
37+
"""list_pod # noqa: E501
38+
39+
This method makes a synchronous HTTP request by default. To make an
40+
asynchronous HTTP request, please pass async_req=True
41+
>>> thread = api.list_pod(body, async_req=True)
42+
>>> result = thread.get()
43+
44+
:param async_req bool
45+
:param ListPodRequest body: (required)
46+
:return: ListPodResponse
47+
If the method is called asynchronously,
48+
returns the request thread.
49+
"""
50+
kwargs['_return_http_data_only'] = True
51+
if kwargs.get('async_req'):
52+
return self.list_pod_with_http_info(body, **kwargs) # noqa: E501
53+
else:
54+
(data) = self.list_pod_with_http_info(body, **kwargs) # noqa: E501
55+
return data
56+
57+
def list_pod_with_http_info(self, body, **kwargs): # noqa: E501
58+
"""list_pod # noqa: E501
59+
60+
This method makes a synchronous HTTP request by default. To make an
61+
asynchronous HTTP request, please pass async_req=True
62+
>>> thread = api.list_pod_with_http_info(body, async_req=True)
63+
>>> result = thread.get()
64+
65+
:param async_req bool
66+
:param ListPodRequest body: (required)
67+
:return: ListPodResponse
68+
If the method is called asynchronously,
69+
returns the request thread.
70+
"""
71+
72+
all_params = ['body'] # noqa: E501
73+
all_params.append('async_req')
74+
all_params.append('_return_http_data_only')
75+
all_params.append('_preload_content')
76+
all_params.append('_request_timeout')
77+
78+
params = locals()
79+
for key, val in six.iteritems(params['kwargs']):
80+
if key not in all_params:
81+
raise TypeError(
82+
"Got an unexpected keyword argument '%s'"
83+
" to method list_pod" % key
84+
)
85+
params[key] = val
86+
del params['kwargs']
87+
# verify the required parameter 'body' is set
88+
if self.api_client.client_side_validation and ('body' not in params or
89+
params['body'] is None): # noqa: E501
90+
raise ValueError("Missing the required parameter `body` when calling `list_pod`") # noqa: E501
91+
92+
collection_formats = {}
93+
94+
path_params = {}
95+
96+
query_params = []
97+
98+
header_params = {}
99+
100+
form_params = []
101+
local_var_files = {}
102+
103+
body_params = None
104+
if 'body' in params:
105+
body_params = params['body']
106+
# HTTP header `Accept`
107+
header_params['Accept'] = self.api_client.select_header_accept(
108+
['application/json']) # noqa: E501
109+
110+
# HTTP header `Content-Type`
111+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
112+
['application/json']) # noqa: E501
113+
114+
# Authentication setting
115+
auth_settings = ['volcengineSign'] # noqa: E501
116+
117+
return self.api_client.call_api(
118+
'/ListPod/2025-05-01/acep/post/application_json/', 'POST',
119+
path_params,
120+
query_params,
121+
header_params,
122+
body=body_params,
123+
post_params=form_params,
124+
files=local_var_files,
125+
response_type='ListPodResponse', # noqa: E501
126+
auth_settings=auth_settings,
127+
async_req=params.get('async_req'),
128+
_return_http_data_only=params.get('_return_http_data_only'),
129+
_preload_content=params.get('_preload_content', True),
130+
_request_timeout=params.get('_request_timeout'),
131+
collection_formats=collection_formats)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
"""
5+
acep
6+
7+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
8+
9+
OpenAPI spec version: common-version
10+
11+
Generated by: https://github.com/swagger-api/swagger-codegen.git
12+
"""
13+
14+
15+
from __future__ import absolute_import
16+
17+
# import models into model package
18+
from volcenginesdkacep.models.configuration_for_list_pod_output import ConfigurationForListPodOutput
19+
from volcenginesdkacep.models.dc_info_for_list_pod_output import DcInfoForListPodOutput
20+
from volcenginesdkacep.models.list_pod_request import ListPodRequest
21+
from volcenginesdkacep.models.list_pod_response import ListPodResponse
22+
from volcenginesdkacep.models.port_mapping_rule_list_for_list_pod_output import PortMappingRuleListForListPodOutput
23+
from volcenginesdkacep.models.public_port_info_list_for_list_pod_output import PublicPortInfoListForListPodOutput
24+
from volcenginesdkacep.models.row_for_list_pod_output import RowForListPodOutput
25+
from volcenginesdkacep.models.tag_for_list_pod_output import TagForListPodOutput
Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
# coding: utf-8
2+
3+
"""
4+
acep
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 ConfigurationForListPodOutput(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+
'configuration_code': 'str',
37+
'configuration_name': 'str',
38+
'configuration_type': 'int',
39+
'server_type_code': 'str'
40+
}
41+
42+
attribute_map = {
43+
'configuration_code': 'ConfigurationCode',
44+
'configuration_name': 'ConfigurationName',
45+
'configuration_type': 'ConfigurationType',
46+
'server_type_code': 'ServerTypeCode'
47+
}
48+
49+
def __init__(self, configuration_code=None, configuration_name=None, configuration_type=None, server_type_code=None, _configuration=None): # noqa: E501
50+
"""ConfigurationForListPodOutput - a model defined in Swagger""" # noqa: E501
51+
if _configuration is None:
52+
_configuration = Configuration()
53+
self._configuration = _configuration
54+
55+
self._configuration_code = None
56+
self._configuration_name = None
57+
self._configuration_type = None
58+
self._server_type_code = None
59+
self.discriminator = None
60+
61+
if configuration_code is not None:
62+
self.configuration_code = configuration_code
63+
if configuration_name is not None:
64+
self.configuration_name = configuration_name
65+
if configuration_type is not None:
66+
self.configuration_type = configuration_type
67+
if server_type_code is not None:
68+
self.server_type_code = server_type_code
69+
70+
@property
71+
def configuration_code(self):
72+
"""Gets the configuration_code of this ConfigurationForListPodOutput. # noqa: E501
73+
74+
75+
:return: The configuration_code of this ConfigurationForListPodOutput. # noqa: E501
76+
:rtype: str
77+
"""
78+
return self._configuration_code
79+
80+
@configuration_code.setter
81+
def configuration_code(self, configuration_code):
82+
"""Sets the configuration_code of this ConfigurationForListPodOutput.
83+
84+
85+
:param configuration_code: The configuration_code of this ConfigurationForListPodOutput. # noqa: E501
86+
:type: str
87+
"""
88+
89+
self._configuration_code = configuration_code
90+
91+
@property
92+
def configuration_name(self):
93+
"""Gets the configuration_name of this ConfigurationForListPodOutput. # noqa: E501
94+
95+
96+
:return: The configuration_name of this ConfigurationForListPodOutput. # noqa: E501
97+
:rtype: str
98+
"""
99+
return self._configuration_name
100+
101+
@configuration_name.setter
102+
def configuration_name(self, configuration_name):
103+
"""Sets the configuration_name of this ConfigurationForListPodOutput.
104+
105+
106+
:param configuration_name: The configuration_name of this ConfigurationForListPodOutput. # noqa: E501
107+
:type: str
108+
"""
109+
110+
self._configuration_name = configuration_name
111+
112+
@property
113+
def configuration_type(self):
114+
"""Gets the configuration_type of this ConfigurationForListPodOutput. # noqa: E501
115+
116+
117+
:return: The configuration_type of this ConfigurationForListPodOutput. # noqa: E501
118+
:rtype: int
119+
"""
120+
return self._configuration_type
121+
122+
@configuration_type.setter
123+
def configuration_type(self, configuration_type):
124+
"""Sets the configuration_type of this ConfigurationForListPodOutput.
125+
126+
127+
:param configuration_type: The configuration_type of this ConfigurationForListPodOutput. # noqa: E501
128+
:type: int
129+
"""
130+
131+
self._configuration_type = configuration_type
132+
133+
@property
134+
def server_type_code(self):
135+
"""Gets the server_type_code of this ConfigurationForListPodOutput. # noqa: E501
136+
137+
138+
:return: The server_type_code of this ConfigurationForListPodOutput. # noqa: E501
139+
:rtype: str
140+
"""
141+
return self._server_type_code
142+
143+
@server_type_code.setter
144+
def server_type_code(self, server_type_code):
145+
"""Sets the server_type_code of this ConfigurationForListPodOutput.
146+
147+
148+
:param server_type_code: The server_type_code of this ConfigurationForListPodOutput. # noqa: E501
149+
:type: str
150+
"""
151+
152+
self._server_type_code = server_type_code
153+
154+
def to_dict(self):
155+
"""Returns the model properties as a dict"""
156+
result = {}
157+
158+
for attr, _ in six.iteritems(self.swagger_types):
159+
value = getattr(self, attr)
160+
if isinstance(value, list):
161+
result[attr] = list(map(
162+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
163+
value
164+
))
165+
elif hasattr(value, "to_dict"):
166+
result[attr] = value.to_dict()
167+
elif isinstance(value, dict):
168+
result[attr] = dict(map(
169+
lambda item: (item[0], item[1].to_dict())
170+
if hasattr(item[1], "to_dict") else item,
171+
value.items()
172+
))
173+
else:
174+
result[attr] = value
175+
if issubclass(ConfigurationForListPodOutput, dict):
176+
for key, value in self.items():
177+
result[key] = value
178+
179+
return result
180+
181+
def to_str(self):
182+
"""Returns the string representation of the model"""
183+
return pprint.pformat(self.to_dict())
184+
185+
def __repr__(self):
186+
"""For `print` and `pprint`"""
187+
return self.to_str()
188+
189+
def __eq__(self, other):
190+
"""Returns true if both objects are equal"""
191+
if not isinstance(other, ConfigurationForListPodOutput):
192+
return False
193+
194+
return self.to_dict() == other.to_dict()
195+
196+
def __ne__(self, other):
197+
"""Returns true if both objects are not equal"""
198+
if not isinstance(other, ConfigurationForListPodOutput):
199+
return True
200+
201+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)