Skip to content

Commit 028faab

Browse files
author
BitsAdmin
committed
Merge 'i18n_openapi-Python-2021-05-21-online-2290-2026_02_25_20_09_22' into 'integration_2026-02-26_1118030915074'
feat: [development task] i18n_openapi-2290-Python (2130126) See merge request: !1060
2 parents 5614339 + 23d67dc commit 028faab

15 files changed

Lines changed: 1650 additions & 4 deletions

volcenginesdki18nopenapi/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
from volcenginesdki18nopenapi.models.extra_for_project_detail_output import ExtraForProjectDetailOutput
4747
from volcenginesdki18nopenapi.models.extra_for_projects_output import ExtraForProjectsOutput
4848
from volcenginesdki18nopenapi.models.extra_for_video_project_list_output import ExtraForVideoProjectListOutput
49+
from volcenginesdki18nopenapi.models.issue_for_video_project_serial_dub_task_create_output import IssueForVideoProjectSerialDubTaskCreateOutput
50+
from volcenginesdki18nopenapi.models.issue_for_video_project_serial_task_create_output import IssueForVideoProjectSerialTaskCreateOutput
4951
from volcenginesdki18nopenapi.models.pagination_for_project_namespaces_output import PaginationForProjectNamespacesOutput
5052
from volcenginesdki18nopenapi.models.pagination_for_project_users_output import PaginationForProjectUsersOutput
5153
from volcenginesdki18nopenapi.models.pagination_for_projects_output import PaginationForProjectsOutput
@@ -72,8 +74,12 @@
7274
from volcenginesdki18nopenapi.models.setting_for_video_project_list_output import SettingForVideoProjectListOutput
7375
from volcenginesdki18nopenapi.models.source_subtitle_file_info_for_video_project_task_detail_output import SourceSubtitleFileInfoForVideoProjectTaskDetailOutput
7476
from volcenginesdki18nopenapi.models.sub_task_for_video_project_task_detail_output import SubTaskForVideoProjectTaskDetailOutput
77+
from volcenginesdki18nopenapi.models.subtitle_file_check_report_for_video_project_serial_dub_task_create_output import SubtitleFileCheckReportForVideoProjectSerialDubTaskCreateOutput
78+
from volcenginesdki18nopenapi.models.subtitle_file_check_report_for_video_project_serial_task_create_output import SubtitleFileCheckReportForVideoProjectSerialTaskCreateOutput
7579
from volcenginesdki18nopenapi.models.subtitle_for_video_project_serial_dub_task_create_input import SubtitleForVideoProjectSerialDubTaskCreateInput
7680
from volcenginesdki18nopenapi.models.subtitle_for_video_project_serial_task_create_input import SubtitleForVideoProjectSerialTaskCreateInput
81+
from volcenginesdki18nopenapi.models.suppression_params_for_video_project_serial_dub_task_create_input import SuppressionParamsForVideoProjectSerialDubTaskCreateInput
82+
from volcenginesdki18nopenapi.models.suppression_params_for_video_project_serial_task_create_input import SuppressionParamsForVideoProjectSerialTaskCreateInput
7783
from volcenginesdki18nopenapi.models.suppression_video_info_for_video_project_task_detail_output import SuppressionVideoInfoForVideoProjectTaskDetailOutput
7884
from volcenginesdki18nopenapi.models.target_style_map_for_video_project_serial_dub_task_create_input import TargetStyleMapForVideoProjectSerialDubTaskCreateInput
7985
from volcenginesdki18nopenapi.models.target_style_map_for_video_project_serial_task_create_input import TargetStyleMapForVideoProjectSerialTaskCreateInput
@@ -98,6 +104,8 @@
98104
from volcenginesdki18nopenapi.models.video_project_serial_dub_task_create_response import VideoProjectSerialDubTaskCreateResponse
99105
from volcenginesdki18nopenapi.models.video_project_serial_task_create_request import VideoProjectSerialTaskCreateRequest
100106
from volcenginesdki18nopenapi.models.video_project_serial_task_create_response import VideoProjectSerialTaskCreateResponse
107+
from volcenginesdki18nopenapi.models.video_project_suppression_start_request import VideoProjectSuppressionStartRequest
108+
from volcenginesdki18nopenapi.models.video_project_suppression_start_response import VideoProjectSuppressionStartResponse
101109
from volcenginesdki18nopenapi.models.video_project_task_detail_request import VideoProjectTaskDetailRequest
102110
from volcenginesdki18nopenapi.models.video_project_task_detail_response import VideoProjectTaskDetailResponse
103111
from volcenginesdki18nopenapi.models.video_project_task_list_request import VideoProjectTaskListRequest

volcenginesdki18nopenapi/api/i18_n_openapi_api.py

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,103 @@ def video_project_serial_task_create_with_http_info(self, body, **kwargs): # no
11971197
_request_timeout=params.get('_request_timeout'),
11981198
collection_formats=collection_formats)
11991199

1200+
def video_project_suppression_start(self, body, **kwargs): # noqa: E501
1201+
"""video_project_suppression_start # noqa: E501
1202+
1203+
This method makes a synchronous HTTP request by default. To make an
1204+
asynchronous HTTP request, please pass async_req=True
1205+
>>> thread = api.video_project_suppression_start(body, async_req=True)
1206+
>>> result = thread.get()
1207+
1208+
:param async_req bool
1209+
:param VideoProjectSuppressionStartRequest body: (required)
1210+
:return: VideoProjectSuppressionStartResponse
1211+
If the method is called asynchronously,
1212+
returns the request thread.
1213+
"""
1214+
kwargs['_return_http_data_only'] = True
1215+
if kwargs.get('async_req'):
1216+
return self.video_project_suppression_start_with_http_info(body, **kwargs) # noqa: E501
1217+
else:
1218+
(data) = self.video_project_suppression_start_with_http_info(body, **kwargs) # noqa: E501
1219+
return data
1220+
1221+
def video_project_suppression_start_with_http_info(self, body, **kwargs): # noqa: E501
1222+
"""video_project_suppression_start # noqa: E501
1223+
1224+
This method makes a synchronous HTTP request by default. To make an
1225+
asynchronous HTTP request, please pass async_req=True
1226+
>>> thread = api.video_project_suppression_start_with_http_info(body, async_req=True)
1227+
>>> result = thread.get()
1228+
1229+
:param async_req bool
1230+
:param VideoProjectSuppressionStartRequest body: (required)
1231+
:return: VideoProjectSuppressionStartResponse
1232+
If the method is called asynchronously,
1233+
returns the request thread.
1234+
"""
1235+
1236+
all_params = ['body'] # noqa: E501
1237+
all_params.append('async_req')
1238+
all_params.append('_return_http_data_only')
1239+
all_params.append('_preload_content')
1240+
all_params.append('_request_timeout')
1241+
1242+
params = locals()
1243+
for key, val in six.iteritems(params['kwargs']):
1244+
if key not in all_params:
1245+
raise TypeError(
1246+
"Got an unexpected keyword argument '%s'"
1247+
" to method video_project_suppression_start" % key
1248+
)
1249+
params[key] = val
1250+
del params['kwargs']
1251+
# verify the required parameter 'body' is set
1252+
if self.api_client.client_side_validation and ('body' not in params or
1253+
params['body'] is None): # noqa: E501
1254+
raise ValueError("Missing the required parameter `body` when calling `video_project_suppression_start`") # noqa: E501
1255+
1256+
collection_formats = {}
1257+
1258+
path_params = {}
1259+
1260+
query_params = []
1261+
1262+
header_params = {}
1263+
1264+
form_params = []
1265+
local_var_files = {}
1266+
1267+
body_params = None
1268+
if 'body' in params:
1269+
body_params = params['body']
1270+
# HTTP header `Accept`
1271+
header_params['Accept'] = self.api_client.select_header_accept(
1272+
['application/json']) # noqa: E501
1273+
1274+
# HTTP header `Content-Type`
1275+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1276+
['application/json']) # noqa: E501
1277+
1278+
# Authentication setting
1279+
auth_settings = ['volcengineSign'] # noqa: E501
1280+
1281+
return self.api_client.call_api(
1282+
'/VideoProjectSuppressionStart/2021-05-21/i18n_openapi/post/application_json/', 'POST',
1283+
path_params,
1284+
query_params,
1285+
header_params,
1286+
body=body_params,
1287+
post_params=form_params,
1288+
files=local_var_files,
1289+
response_type='VideoProjectSuppressionStartResponse', # noqa: E501
1290+
auth_settings=auth_settings,
1291+
async_req=params.get('async_req'),
1292+
_return_http_data_only=params.get('_return_http_data_only'),
1293+
_preload_content=params.get('_preload_content', True),
1294+
_request_timeout=params.get('_request_timeout'),
1295+
collection_formats=collection_formats)
1296+
12001297
def video_project_task_detail(self, body, **kwargs): # noqa: E501
12011298
"""video_project_task_detail # noqa: E501
12021299

volcenginesdki18nopenapi/models/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
from volcenginesdki18nopenapi.models.extra_for_project_detail_output import ExtraForProjectDetailOutput
4343
from volcenginesdki18nopenapi.models.extra_for_projects_output import ExtraForProjectsOutput
4444
from volcenginesdki18nopenapi.models.extra_for_video_project_list_output import ExtraForVideoProjectListOutput
45+
from volcenginesdki18nopenapi.models.issue_for_video_project_serial_dub_task_create_output import IssueForVideoProjectSerialDubTaskCreateOutput
46+
from volcenginesdki18nopenapi.models.issue_for_video_project_serial_task_create_output import IssueForVideoProjectSerialTaskCreateOutput
4547
from volcenginesdki18nopenapi.models.pagination_for_project_namespaces_output import PaginationForProjectNamespacesOutput
4648
from volcenginesdki18nopenapi.models.pagination_for_project_users_output import PaginationForProjectUsersOutput
4749
from volcenginesdki18nopenapi.models.pagination_for_projects_output import PaginationForProjectsOutput
@@ -68,8 +70,12 @@
6870
from volcenginesdki18nopenapi.models.setting_for_video_project_list_output import SettingForVideoProjectListOutput
6971
from volcenginesdki18nopenapi.models.source_subtitle_file_info_for_video_project_task_detail_output import SourceSubtitleFileInfoForVideoProjectTaskDetailOutput
7072
from volcenginesdki18nopenapi.models.sub_task_for_video_project_task_detail_output import SubTaskForVideoProjectTaskDetailOutput
73+
from volcenginesdki18nopenapi.models.subtitle_file_check_report_for_video_project_serial_dub_task_create_output import SubtitleFileCheckReportForVideoProjectSerialDubTaskCreateOutput
74+
from volcenginesdki18nopenapi.models.subtitle_file_check_report_for_video_project_serial_task_create_output import SubtitleFileCheckReportForVideoProjectSerialTaskCreateOutput
7175
from volcenginesdki18nopenapi.models.subtitle_for_video_project_serial_dub_task_create_input import SubtitleForVideoProjectSerialDubTaskCreateInput
7276
from volcenginesdki18nopenapi.models.subtitle_for_video_project_serial_task_create_input import SubtitleForVideoProjectSerialTaskCreateInput
77+
from volcenginesdki18nopenapi.models.suppression_params_for_video_project_serial_dub_task_create_input import SuppressionParamsForVideoProjectSerialDubTaskCreateInput
78+
from volcenginesdki18nopenapi.models.suppression_params_for_video_project_serial_task_create_input import SuppressionParamsForVideoProjectSerialTaskCreateInput
7379
from volcenginesdki18nopenapi.models.suppression_video_info_for_video_project_task_detail_output import SuppressionVideoInfoForVideoProjectTaskDetailOutput
7480
from volcenginesdki18nopenapi.models.target_style_map_for_video_project_serial_dub_task_create_input import TargetStyleMapForVideoProjectSerialDubTaskCreateInput
7581
from volcenginesdki18nopenapi.models.target_style_map_for_video_project_serial_task_create_input import TargetStyleMapForVideoProjectSerialTaskCreateInput
@@ -94,6 +100,8 @@
94100
from volcenginesdki18nopenapi.models.video_project_serial_dub_task_create_response import VideoProjectSerialDubTaskCreateResponse
95101
from volcenginesdki18nopenapi.models.video_project_serial_task_create_request import VideoProjectSerialTaskCreateRequest
96102
from volcenginesdki18nopenapi.models.video_project_serial_task_create_response import VideoProjectSerialTaskCreateResponse
103+
from volcenginesdki18nopenapi.models.video_project_suppression_start_request import VideoProjectSuppressionStartRequest
104+
from volcenginesdki18nopenapi.models.video_project_suppression_start_response import VideoProjectSuppressionStartResponse
97105
from volcenginesdki18nopenapi.models.video_project_task_detail_request import VideoProjectTaskDetailRequest
98106
from volcenginesdki18nopenapi.models.video_project_task_detail_response import VideoProjectTaskDetailResponse
99107
from volcenginesdki18nopenapi.models.video_project_task_list_request import VideoProjectTaskListRequest

volcenginesdki18nopenapi/models/data_for_video_project_serial_dub_task_create_output.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,31 @@ class DataForVideoProjectSerialDubTaskCreateOutput(object):
3434
"""
3535
swagger_types = {
3636
'base_resp': 'BaseRespForVideoProjectSerialDubTaskCreateOutput',
37+
'subtitle_file_check_reports': 'list[SubtitleFileCheckReportForVideoProjectSerialDubTaskCreateOutput]',
3738
'task_ids': 'list[str]'
3839
}
3940

4041
attribute_map = {
4142
'base_resp': 'BaseResp',
43+
'subtitle_file_check_reports': 'SubtitleFileCheckReports',
4244
'task_ids': 'TaskIDs'
4345
}
4446

45-
def __init__(self, base_resp=None, task_ids=None, _configuration=None): # noqa: E501
47+
def __init__(self, base_resp=None, subtitle_file_check_reports=None, task_ids=None, _configuration=None): # noqa: E501
4648
"""DataForVideoProjectSerialDubTaskCreateOutput - a model defined in Swagger""" # noqa: E501
4749
if _configuration is None:
4850
_configuration = Configuration()
4951
self._configuration = _configuration
5052

5153
self._base_resp = None
54+
self._subtitle_file_check_reports = None
5255
self._task_ids = None
5356
self.discriminator = None
5457

5558
if base_resp is not None:
5659
self.base_resp = base_resp
60+
if subtitle_file_check_reports is not None:
61+
self.subtitle_file_check_reports = subtitle_file_check_reports
5762
if task_ids is not None:
5863
self.task_ids = task_ids
5964

@@ -78,6 +83,27 @@ def base_resp(self, base_resp):
7883

7984
self._base_resp = base_resp
8085

86+
@property
87+
def subtitle_file_check_reports(self):
88+
"""Gets the subtitle_file_check_reports of this DataForVideoProjectSerialDubTaskCreateOutput. # noqa: E501
89+
90+
91+
:return: The subtitle_file_check_reports of this DataForVideoProjectSerialDubTaskCreateOutput. # noqa: E501
92+
:rtype: list[SubtitleFileCheckReportForVideoProjectSerialDubTaskCreateOutput]
93+
"""
94+
return self._subtitle_file_check_reports
95+
96+
@subtitle_file_check_reports.setter
97+
def subtitle_file_check_reports(self, subtitle_file_check_reports):
98+
"""Sets the subtitle_file_check_reports of this DataForVideoProjectSerialDubTaskCreateOutput.
99+
100+
101+
:param subtitle_file_check_reports: The subtitle_file_check_reports of this DataForVideoProjectSerialDubTaskCreateOutput. # noqa: E501
102+
:type: list[SubtitleFileCheckReportForVideoProjectSerialDubTaskCreateOutput]
103+
"""
104+
105+
self._subtitle_file_check_reports = subtitle_file_check_reports
106+
81107
@property
82108
def task_ids(self):
83109
"""Gets the task_ids of this DataForVideoProjectSerialDubTaskCreateOutput. # noqa: E501

volcenginesdki18nopenapi/models/data_for_video_project_serial_task_create_output.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,31 @@ class DataForVideoProjectSerialTaskCreateOutput(object):
3434
"""
3535
swagger_types = {
3636
'base_resp': 'BaseRespForVideoProjectSerialTaskCreateOutput',
37+
'subtitle_file_check_reports': 'list[SubtitleFileCheckReportForVideoProjectSerialTaskCreateOutput]',
3738
'task_ids': 'list[str]'
3839
}
3940

4041
attribute_map = {
4142
'base_resp': 'BaseResp',
43+
'subtitle_file_check_reports': 'SubtitleFileCheckReports',
4244
'task_ids': 'TaskIDs'
4345
}
4446

45-
def __init__(self, base_resp=None, task_ids=None, _configuration=None): # noqa: E501
47+
def __init__(self, base_resp=None, subtitle_file_check_reports=None, task_ids=None, _configuration=None): # noqa: E501
4648
"""DataForVideoProjectSerialTaskCreateOutput - a model defined in Swagger""" # noqa: E501
4749
if _configuration is None:
4850
_configuration = Configuration()
4951
self._configuration = _configuration
5052

5153
self._base_resp = None
54+
self._subtitle_file_check_reports = None
5255
self._task_ids = None
5356
self.discriminator = None
5457

5558
if base_resp is not None:
5659
self.base_resp = base_resp
60+
if subtitle_file_check_reports is not None:
61+
self.subtitle_file_check_reports = subtitle_file_check_reports
5762
if task_ids is not None:
5863
self.task_ids = task_ids
5964

@@ -78,6 +83,27 @@ def base_resp(self, base_resp):
7883

7984
self._base_resp = base_resp
8085

86+
@property
87+
def subtitle_file_check_reports(self):
88+
"""Gets the subtitle_file_check_reports of this DataForVideoProjectSerialTaskCreateOutput. # noqa: E501
89+
90+
91+
:return: The subtitle_file_check_reports of this DataForVideoProjectSerialTaskCreateOutput. # noqa: E501
92+
:rtype: list[SubtitleFileCheckReportForVideoProjectSerialTaskCreateOutput]
93+
"""
94+
return self._subtitle_file_check_reports
95+
96+
@subtitle_file_check_reports.setter
97+
def subtitle_file_check_reports(self, subtitle_file_check_reports):
98+
"""Sets the subtitle_file_check_reports of this DataForVideoProjectSerialTaskCreateOutput.
99+
100+
101+
:param subtitle_file_check_reports: The subtitle_file_check_reports of this DataForVideoProjectSerialTaskCreateOutput. # noqa: E501
102+
:type: list[SubtitleFileCheckReportForVideoProjectSerialTaskCreateOutput]
103+
"""
104+
105+
self._subtitle_file_check_reports = subtitle_file_check_reports
106+
81107
@property
82108
def task_ids(self):
83109
"""Gets the task_ids of this DataForVideoProjectSerialTaskCreateOutput. # noqa: E501

0 commit comments

Comments
 (0)