Skip to content

Commit fe9a0ef

Browse files
author
bits-scm
committed
Merge 'acep-Python-2025-05-01-online-2653-2026_05_13_02_31_08' into 'integration_2026-05-14_1151339636482'
feat: [development task] ACEP-2653-Python (2369143) See merge request: !1186
2 parents 6ed3fb7 + bbd3eef commit fe9a0ef

13 files changed

Lines changed: 1204 additions & 12 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"description": "ACEP: 新增 GetPreSignedEdgeURL, StartNetRedirect;修改 ListAOSPImage, ListHost",
3+
"modules": "service/ACEP",
4+
"type": "breaking-change"
5+
}

volcenginesdkacep/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from volcenginesdkacep.api.acep_api import ACEPApi
2020

2121
# import models into sdk package
22+
from volcenginesdkacep.models.api_payload_for_get_pre_signed_edge_url_input import APIPayloadForGetPreSignedEdgeURLInput
2223
from volcenginesdkacep.models.add_custom_route_request import AddCustomRouteRequest
2324
from volcenginesdkacep.models.add_custom_route_response import AddCustomRouteResponse
2425
from volcenginesdkacep.models.add_phone_template_request import AddPhoneTemplateRequest
@@ -130,6 +131,8 @@
130131
from volcenginesdkacep.models.get_pod_metric_response import GetPodMetricResponse
131132
from volcenginesdkacep.models.get_pod_property_request import GetPodPropertyRequest
132133
from volcenginesdkacep.models.get_pod_property_response import GetPodPropertyResponse
134+
from volcenginesdkacep.models.get_pre_signed_edge_url_request import GetPreSignedEdgeURLRequest
135+
from volcenginesdkacep.models.get_pre_signed_edge_url_response import GetPreSignedEdgeURLResponse
133136
from volcenginesdkacep.models.get_product_resource_request import GetProductResourceRequest
134137
from volcenginesdkacep.models.get_product_resource_response import GetProductResourceResponse
135138
from volcenginesdkacep.models.get_proxy_request import GetProxyRequest
@@ -300,6 +303,8 @@
300303
from volcenginesdkacep.models.setting_secure_list_for_get_pod_property_output import SettingSecureListForGetPodPropertyOutput
301304
from volcenginesdkacep.models.setting_system_list_for_get_pod_property_output import SettingSystemListForGetPodPropertyOutput
302305
from volcenginesdkacep.models.specify_host_list_for_restore_pod_input import SpecifyHostListForRestorePodInput
306+
from volcenginesdkacep.models.start_net_redirect_request import StartNetRedirectRequest
307+
from volcenginesdkacep.models.start_net_redirect_response import StartNetRedirectResponse
303308
from volcenginesdkacep.models.start_recording_request import StartRecordingRequest
304309
from volcenginesdkacep.models.start_recording_response import StartRecordingResponse
305310
from volcenginesdkacep.models.start_screen_shot_request import StartScreenShotRequest

volcenginesdkacep/api/acep_api.py

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4010,6 +4010,103 @@ def get_pod_property_with_http_info(self, body, **kwargs): # noqa: E501
40104010
_request_timeout=params.get('_request_timeout'),
40114011
collection_formats=collection_formats)
40124012

4013+
def get_pre_signed_edge_url(self, body, **kwargs): # noqa: E501
4014+
"""get_pre_signed_edge_url # noqa: E501
4015+
4016+
This method makes a synchronous HTTP request by default. To make an
4017+
asynchronous HTTP request, please pass async_req=True
4018+
>>> thread = api.get_pre_signed_edge_url(body, async_req=True)
4019+
>>> result = thread.get()
4020+
4021+
:param async_req bool
4022+
:param GetPreSignedEdgeURLRequest body: (required)
4023+
:return: GetPreSignedEdgeURLResponse
4024+
If the method is called asynchronously,
4025+
returns the request thread.
4026+
"""
4027+
kwargs['_return_http_data_only'] = True
4028+
if kwargs.get('async_req'):
4029+
return self.get_pre_signed_edge_url_with_http_info(body, **kwargs) # noqa: E501
4030+
else:
4031+
(data) = self.get_pre_signed_edge_url_with_http_info(body, **kwargs) # noqa: E501
4032+
return data
4033+
4034+
def get_pre_signed_edge_url_with_http_info(self, body, **kwargs): # noqa: E501
4035+
"""get_pre_signed_edge_url # noqa: E501
4036+
4037+
This method makes a synchronous HTTP request by default. To make an
4038+
asynchronous HTTP request, please pass async_req=True
4039+
>>> thread = api.get_pre_signed_edge_url_with_http_info(body, async_req=True)
4040+
>>> result = thread.get()
4041+
4042+
:param async_req bool
4043+
:param GetPreSignedEdgeURLRequest body: (required)
4044+
:return: GetPreSignedEdgeURLResponse
4045+
If the method is called asynchronously,
4046+
returns the request thread.
4047+
"""
4048+
4049+
all_params = ['body'] # noqa: E501
4050+
all_params.append('async_req')
4051+
all_params.append('_return_http_data_only')
4052+
all_params.append('_preload_content')
4053+
all_params.append('_request_timeout')
4054+
4055+
params = locals()
4056+
for key, val in six.iteritems(params['kwargs']):
4057+
if key not in all_params:
4058+
raise TypeError(
4059+
"Got an unexpected keyword argument '%s'"
4060+
" to method get_pre_signed_edge_url" % key
4061+
)
4062+
params[key] = val
4063+
del params['kwargs']
4064+
# verify the required parameter 'body' is set
4065+
if self.api_client.client_side_validation and ('body' not in params or
4066+
params['body'] is None): # noqa: E501
4067+
raise ValueError("Missing the required parameter `body` when calling `get_pre_signed_edge_url`") # noqa: E501
4068+
4069+
collection_formats = {}
4070+
4071+
path_params = {}
4072+
4073+
query_params = []
4074+
4075+
header_params = {}
4076+
4077+
form_params = []
4078+
local_var_files = {}
4079+
4080+
body_params = None
4081+
if 'body' in params:
4082+
body_params = params['body']
4083+
# HTTP header `Accept`
4084+
header_params['Accept'] = self.api_client.select_header_accept(
4085+
['application/json']) # noqa: E501
4086+
4087+
# HTTP header `Content-Type`
4088+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
4089+
['application/json']) # noqa: E501
4090+
4091+
# Authentication setting
4092+
auth_settings = ['volcengineSign'] # noqa: E501
4093+
4094+
return self.api_client.call_api(
4095+
'/GetPreSignedEdgeURL/2025-05-01/acep/post/application_json/', 'POST',
4096+
path_params,
4097+
query_params,
4098+
header_params,
4099+
body=body_params,
4100+
post_params=form_params,
4101+
files=local_var_files,
4102+
response_type='GetPreSignedEdgeURLResponse', # noqa: E501
4103+
auth_settings=auth_settings,
4104+
async_req=params.get('async_req'),
4105+
_return_http_data_only=params.get('_return_http_data_only'),
4106+
_preload_content=params.get('_preload_content', True),
4107+
_request_timeout=params.get('_request_timeout'),
4108+
collection_formats=collection_formats)
4109+
40134110
def get_product_resource(self, body, **kwargs): # noqa: E501
40144111
"""get_product_resource # noqa: E501
40154112
@@ -8375,6 +8472,103 @@ def set_proxy_with_http_info(self, body, **kwargs): # noqa: E501
83758472
_request_timeout=params.get('_request_timeout'),
83768473
collection_formats=collection_formats)
83778474

8475+
def start_net_redirect(self, body, **kwargs): # noqa: E501
8476+
"""start_net_redirect # noqa: E501
8477+
8478+
This method makes a synchronous HTTP request by default. To make an
8479+
asynchronous HTTP request, please pass async_req=True
8480+
>>> thread = api.start_net_redirect(body, async_req=True)
8481+
>>> result = thread.get()
8482+
8483+
:param async_req bool
8484+
:param StartNetRedirectRequest body: (required)
8485+
:return: StartNetRedirectResponse
8486+
If the method is called asynchronously,
8487+
returns the request thread.
8488+
"""
8489+
kwargs['_return_http_data_only'] = True
8490+
if kwargs.get('async_req'):
8491+
return self.start_net_redirect_with_http_info(body, **kwargs) # noqa: E501
8492+
else:
8493+
(data) = self.start_net_redirect_with_http_info(body, **kwargs) # noqa: E501
8494+
return data
8495+
8496+
def start_net_redirect_with_http_info(self, body, **kwargs): # noqa: E501
8497+
"""start_net_redirect # noqa: E501
8498+
8499+
This method makes a synchronous HTTP request by default. To make an
8500+
asynchronous HTTP request, please pass async_req=True
8501+
>>> thread = api.start_net_redirect_with_http_info(body, async_req=True)
8502+
>>> result = thread.get()
8503+
8504+
:param async_req bool
8505+
:param StartNetRedirectRequest body: (required)
8506+
:return: StartNetRedirectResponse
8507+
If the method is called asynchronously,
8508+
returns the request thread.
8509+
"""
8510+
8511+
all_params = ['body'] # noqa: E501
8512+
all_params.append('async_req')
8513+
all_params.append('_return_http_data_only')
8514+
all_params.append('_preload_content')
8515+
all_params.append('_request_timeout')
8516+
8517+
params = locals()
8518+
for key, val in six.iteritems(params['kwargs']):
8519+
if key not in all_params:
8520+
raise TypeError(
8521+
"Got an unexpected keyword argument '%s'"
8522+
" to method start_net_redirect" % key
8523+
)
8524+
params[key] = val
8525+
del params['kwargs']
8526+
# verify the required parameter 'body' is set
8527+
if self.api_client.client_side_validation and ('body' not in params or
8528+
params['body'] is None): # noqa: E501
8529+
raise ValueError("Missing the required parameter `body` when calling `start_net_redirect`") # noqa: E501
8530+
8531+
collection_formats = {}
8532+
8533+
path_params = {}
8534+
8535+
query_params = []
8536+
8537+
header_params = {}
8538+
8539+
form_params = []
8540+
local_var_files = {}
8541+
8542+
body_params = None
8543+
if 'body' in params:
8544+
body_params = params['body']
8545+
# HTTP header `Accept`
8546+
header_params['Accept'] = self.api_client.select_header_accept(
8547+
['application/json']) # noqa: E501
8548+
8549+
# HTTP header `Content-Type`
8550+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
8551+
['application/json']) # noqa: E501
8552+
8553+
# Authentication setting
8554+
auth_settings = ['volcengineSign'] # noqa: E501
8555+
8556+
return self.api_client.call_api(
8557+
'/StartNetRedirect/2025-05-01/acep/post/application_json/', 'POST',
8558+
path_params,
8559+
query_params,
8560+
header_params,
8561+
body=body_params,
8562+
post_params=form_params,
8563+
files=local_var_files,
8564+
response_type='StartNetRedirectResponse', # noqa: E501
8565+
auth_settings=auth_settings,
8566+
async_req=params.get('async_req'),
8567+
_return_http_data_only=params.get('_return_http_data_only'),
8568+
_preload_content=params.get('_preload_content', True),
8569+
_request_timeout=params.get('_request_timeout'),
8570+
collection_formats=collection_formats)
8571+
83788572
def start_recording(self, body, **kwargs): # noqa: E501
83798573
"""start_recording # noqa: E501
83808574

volcenginesdkacep/models/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from __future__ import absolute_import
1616

1717
# import models into model package
18+
from volcenginesdkacep.models.api_payload_for_get_pre_signed_edge_url_input import APIPayloadForGetPreSignedEdgeURLInput
1819
from volcenginesdkacep.models.add_custom_route_request import AddCustomRouteRequest
1920
from volcenginesdkacep.models.add_custom_route_response import AddCustomRouteResponse
2021
from volcenginesdkacep.models.add_phone_template_request import AddPhoneTemplateRequest
@@ -126,6 +127,8 @@
126127
from volcenginesdkacep.models.get_pod_metric_response import GetPodMetricResponse
127128
from volcenginesdkacep.models.get_pod_property_request import GetPodPropertyRequest
128129
from volcenginesdkacep.models.get_pod_property_response import GetPodPropertyResponse
130+
from volcenginesdkacep.models.get_pre_signed_edge_url_request import GetPreSignedEdgeURLRequest
131+
from volcenginesdkacep.models.get_pre_signed_edge_url_response import GetPreSignedEdgeURLResponse
129132
from volcenginesdkacep.models.get_product_resource_request import GetProductResourceRequest
130133
from volcenginesdkacep.models.get_product_resource_response import GetProductResourceResponse
131134
from volcenginesdkacep.models.get_proxy_request import GetProxyRequest
@@ -296,6 +299,8 @@
296299
from volcenginesdkacep.models.setting_secure_list_for_get_pod_property_output import SettingSecureListForGetPodPropertyOutput
297300
from volcenginesdkacep.models.setting_system_list_for_get_pod_property_output import SettingSystemListForGetPodPropertyOutput
298301
from volcenginesdkacep.models.specify_host_list_for_restore_pod_input import SpecifyHostListForRestorePodInput
302+
from volcenginesdkacep.models.start_net_redirect_request import StartNetRedirectRequest
303+
from volcenginesdkacep.models.start_net_redirect_response import StartNetRedirectResponse
299304
from volcenginesdkacep.models.start_recording_request import StartRecordingRequest
300305
from volcenginesdkacep.models.start_recording_response import StartRecordingResponse
301306
from volcenginesdkacep.models.start_screen_shot_request import StartScreenShotRequest
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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 APIPayloadForGetPreSignedEdgeURLInput(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+
}
37+
38+
attribute_map = {
39+
}
40+
41+
def __init__(self, _configuration=None): # noqa: E501
42+
"""APIPayloadForGetPreSignedEdgeURLInput - a model defined in Swagger""" # noqa: E501
43+
if _configuration is None:
44+
_configuration = Configuration()
45+
self._configuration = _configuration
46+
self.discriminator = None
47+
48+
def to_dict(self):
49+
"""Returns the model properties as a dict"""
50+
result = {}
51+
52+
for attr, _ in six.iteritems(self.swagger_types):
53+
value = getattr(self, attr)
54+
if isinstance(value, list):
55+
result[attr] = list(map(
56+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
57+
value
58+
))
59+
elif hasattr(value, "to_dict"):
60+
result[attr] = value.to_dict()
61+
elif isinstance(value, dict):
62+
result[attr] = dict(map(
63+
lambda item: (item[0], item[1].to_dict())
64+
if hasattr(item[1], "to_dict") else item,
65+
value.items()
66+
))
67+
else:
68+
result[attr] = value
69+
if issubclass(APIPayloadForGetPreSignedEdgeURLInput, dict):
70+
for key, value in self.items():
71+
result[key] = value
72+
73+
return result
74+
75+
def to_str(self):
76+
"""Returns the string representation of the model"""
77+
return pprint.pformat(self.to_dict())
78+
79+
def __repr__(self):
80+
"""For `print` and `pprint`"""
81+
return self.to_str()
82+
83+
def __eq__(self, other):
84+
"""Returns true if both objects are equal"""
85+
if not isinstance(other, APIPayloadForGetPreSignedEdgeURLInput):
86+
return False
87+
88+
return self.to_dict() == other.to_dict()
89+
90+
def __ne__(self, other):
91+
"""Returns true if both objects are not equal"""
92+
if not isinstance(other, APIPayloadForGetPreSignedEdgeURLInput):
93+
return True
94+
95+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)