alibabacloud-quanmiaolightapp20240801 2.4.0__tar.gz → 2.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/ChangeLog.md +7 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/PKG-INFO +1 -1
- alibabacloud_quanmiaolightapp20240801-2.5.0/alibabacloud_quanmiaolightapp20240801/__init__.py +1 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/alibabacloud_quanmiaolightapp20240801/client.py +140 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/alibabacloud_quanmiaolightapp20240801/models.py +416 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/alibabacloud_quanmiaolightapp20240801.egg-info/PKG-INFO +1 -1
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/setup.py +1 -1
- alibabacloud_quanmiaolightapp20240801-2.4.0/alibabacloud_quanmiaolightapp20240801/__init__.py +0 -1
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/LICENSE +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/MANIFEST.in +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/README-CN.md +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/README.md +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/alibabacloud_quanmiaolightapp20240801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/alibabacloud_quanmiaolightapp20240801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/alibabacloud_quanmiaolightapp20240801.egg-info/requires.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/alibabacloud_quanmiaolightapp20240801.egg-info/top_level.txt +0 -0
- {alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/setup.cfg +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
2025-01-16 Version: 2.4.0
|
|
2
|
+
- Support API RunScriptChat.
|
|
3
|
+
- Support API RunScriptRefine.
|
|
4
|
+
- Update API GetVideoAnalysisTask: update response param.
|
|
5
|
+
- Update API RunVideoAnalysis: update response param.
|
|
6
|
+
|
|
7
|
+
|
|
1
8
|
2025-01-15 Version: 2.3.0
|
|
2
9
|
- Support API RunScriptChat.
|
|
3
10
|
- Support API RunScriptRefine.
|
{alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud_quanmiaolightapp20240801
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.0
|
|
4
4
|
Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
|
|
5
5
|
Home-page: https://github.com/aliyun/alibabacloud-python-sdk
|
|
6
6
|
Author: Alibaba Cloud SDK
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.5.0'
|
|
@@ -1163,6 +1163,146 @@ class Client(OpenApiClient):
|
|
|
1163
1163
|
headers = {}
|
|
1164
1164
|
return await self.run_marketing_information_writing_with_options_async(workspace_id, request, headers, runtime)
|
|
1165
1165
|
|
|
1166
|
+
def run_network_content_audit_with_options(
|
|
1167
|
+
self,
|
|
1168
|
+
workspace_id: str,
|
|
1169
|
+
tmp_req: quan_miao_light_app_20240801_models.RunNetworkContentAuditRequest,
|
|
1170
|
+
headers: Dict[str, str],
|
|
1171
|
+
runtime: util_models.RuntimeOptions,
|
|
1172
|
+
) -> quan_miao_light_app_20240801_models.RunNetworkContentAuditResponse:
|
|
1173
|
+
"""
|
|
1174
|
+
@summary 轻应用-网络内容审核
|
|
1175
|
+
|
|
1176
|
+
@param tmp_req: RunNetworkContentAuditRequest
|
|
1177
|
+
@param headers: map
|
|
1178
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1179
|
+
@return: RunNetworkContentAuditResponse
|
|
1180
|
+
"""
|
|
1181
|
+
UtilClient.validate_model(tmp_req)
|
|
1182
|
+
request = quan_miao_light_app_20240801_models.RunNetworkContentAuditShrinkRequest()
|
|
1183
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1184
|
+
if not UtilClient.is_unset(tmp_req.tags):
|
|
1185
|
+
request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'tags', 'json')
|
|
1186
|
+
body = {}
|
|
1187
|
+
if not UtilClient.is_unset(request.business_type):
|
|
1188
|
+
body['businessType'] = request.business_type
|
|
1189
|
+
if not UtilClient.is_unset(request.content):
|
|
1190
|
+
body['content'] = request.content
|
|
1191
|
+
if not UtilClient.is_unset(request.extra_info):
|
|
1192
|
+
body['extraInfo'] = request.extra_info
|
|
1193
|
+
if not UtilClient.is_unset(request.model_id):
|
|
1194
|
+
body['modelId'] = request.model_id
|
|
1195
|
+
if not UtilClient.is_unset(request.output_format):
|
|
1196
|
+
body['outputFormat'] = request.output_format
|
|
1197
|
+
if not UtilClient.is_unset(request.tags_shrink):
|
|
1198
|
+
body['tags'] = request.tags_shrink
|
|
1199
|
+
if not UtilClient.is_unset(request.task_description):
|
|
1200
|
+
body['taskDescription'] = request.task_description
|
|
1201
|
+
req = open_api_models.OpenApiRequest(
|
|
1202
|
+
headers=headers,
|
|
1203
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
1204
|
+
)
|
|
1205
|
+
params = open_api_models.Params(
|
|
1206
|
+
action='RunNetworkContentAudit',
|
|
1207
|
+
version='2024-08-01',
|
|
1208
|
+
protocol='HTTPS',
|
|
1209
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runNetworkContentAudit',
|
|
1210
|
+
method='POST',
|
|
1211
|
+
auth_type='AK',
|
|
1212
|
+
style='ROA',
|
|
1213
|
+
req_body_type='formData',
|
|
1214
|
+
body_type='json'
|
|
1215
|
+
)
|
|
1216
|
+
return TeaCore.from_map(
|
|
1217
|
+
quan_miao_light_app_20240801_models.RunNetworkContentAuditResponse(),
|
|
1218
|
+
self.call_api(params, req, runtime)
|
|
1219
|
+
)
|
|
1220
|
+
|
|
1221
|
+
async def run_network_content_audit_with_options_async(
|
|
1222
|
+
self,
|
|
1223
|
+
workspace_id: str,
|
|
1224
|
+
tmp_req: quan_miao_light_app_20240801_models.RunNetworkContentAuditRequest,
|
|
1225
|
+
headers: Dict[str, str],
|
|
1226
|
+
runtime: util_models.RuntimeOptions,
|
|
1227
|
+
) -> quan_miao_light_app_20240801_models.RunNetworkContentAuditResponse:
|
|
1228
|
+
"""
|
|
1229
|
+
@summary 轻应用-网络内容审核
|
|
1230
|
+
|
|
1231
|
+
@param tmp_req: RunNetworkContentAuditRequest
|
|
1232
|
+
@param headers: map
|
|
1233
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1234
|
+
@return: RunNetworkContentAuditResponse
|
|
1235
|
+
"""
|
|
1236
|
+
UtilClient.validate_model(tmp_req)
|
|
1237
|
+
request = quan_miao_light_app_20240801_models.RunNetworkContentAuditShrinkRequest()
|
|
1238
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1239
|
+
if not UtilClient.is_unset(tmp_req.tags):
|
|
1240
|
+
request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'tags', 'json')
|
|
1241
|
+
body = {}
|
|
1242
|
+
if not UtilClient.is_unset(request.business_type):
|
|
1243
|
+
body['businessType'] = request.business_type
|
|
1244
|
+
if not UtilClient.is_unset(request.content):
|
|
1245
|
+
body['content'] = request.content
|
|
1246
|
+
if not UtilClient.is_unset(request.extra_info):
|
|
1247
|
+
body['extraInfo'] = request.extra_info
|
|
1248
|
+
if not UtilClient.is_unset(request.model_id):
|
|
1249
|
+
body['modelId'] = request.model_id
|
|
1250
|
+
if not UtilClient.is_unset(request.output_format):
|
|
1251
|
+
body['outputFormat'] = request.output_format
|
|
1252
|
+
if not UtilClient.is_unset(request.tags_shrink):
|
|
1253
|
+
body['tags'] = request.tags_shrink
|
|
1254
|
+
if not UtilClient.is_unset(request.task_description):
|
|
1255
|
+
body['taskDescription'] = request.task_description
|
|
1256
|
+
req = open_api_models.OpenApiRequest(
|
|
1257
|
+
headers=headers,
|
|
1258
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
1259
|
+
)
|
|
1260
|
+
params = open_api_models.Params(
|
|
1261
|
+
action='RunNetworkContentAudit',
|
|
1262
|
+
version='2024-08-01',
|
|
1263
|
+
protocol='HTTPS',
|
|
1264
|
+
pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/runNetworkContentAudit',
|
|
1265
|
+
method='POST',
|
|
1266
|
+
auth_type='AK',
|
|
1267
|
+
style='ROA',
|
|
1268
|
+
req_body_type='formData',
|
|
1269
|
+
body_type='json'
|
|
1270
|
+
)
|
|
1271
|
+
return TeaCore.from_map(
|
|
1272
|
+
quan_miao_light_app_20240801_models.RunNetworkContentAuditResponse(),
|
|
1273
|
+
await self.call_api_async(params, req, runtime)
|
|
1274
|
+
)
|
|
1275
|
+
|
|
1276
|
+
def run_network_content_audit(
|
|
1277
|
+
self,
|
|
1278
|
+
workspace_id: str,
|
|
1279
|
+
request: quan_miao_light_app_20240801_models.RunNetworkContentAuditRequest,
|
|
1280
|
+
) -> quan_miao_light_app_20240801_models.RunNetworkContentAuditResponse:
|
|
1281
|
+
"""
|
|
1282
|
+
@summary 轻应用-网络内容审核
|
|
1283
|
+
|
|
1284
|
+
@param request: RunNetworkContentAuditRequest
|
|
1285
|
+
@return: RunNetworkContentAuditResponse
|
|
1286
|
+
"""
|
|
1287
|
+
runtime = util_models.RuntimeOptions()
|
|
1288
|
+
headers = {}
|
|
1289
|
+
return self.run_network_content_audit_with_options(workspace_id, request, headers, runtime)
|
|
1290
|
+
|
|
1291
|
+
async def run_network_content_audit_async(
|
|
1292
|
+
self,
|
|
1293
|
+
workspace_id: str,
|
|
1294
|
+
request: quan_miao_light_app_20240801_models.RunNetworkContentAuditRequest,
|
|
1295
|
+
) -> quan_miao_light_app_20240801_models.RunNetworkContentAuditResponse:
|
|
1296
|
+
"""
|
|
1297
|
+
@summary 轻应用-网络内容审核
|
|
1298
|
+
|
|
1299
|
+
@param request: RunNetworkContentAuditRequest
|
|
1300
|
+
@return: RunNetworkContentAuditResponse
|
|
1301
|
+
"""
|
|
1302
|
+
runtime = util_models.RuntimeOptions()
|
|
1303
|
+
headers = {}
|
|
1304
|
+
return await self.run_network_content_audit_with_options_async(workspace_id, request, headers, runtime)
|
|
1305
|
+
|
|
1166
1306
|
def run_script_chat_with_options(
|
|
1167
1307
|
self,
|
|
1168
1308
|
workspace_id: str,
|
|
@@ -4072,6 +4072,422 @@ class RunMarketingInformationWritingResponse(TeaModel):
|
|
|
4072
4072
|
return self
|
|
4073
4073
|
|
|
4074
4074
|
|
|
4075
|
+
class RunNetworkContentAuditRequestTags(TeaModel):
|
|
4076
|
+
def __init__(
|
|
4077
|
+
self,
|
|
4078
|
+
tag_define_prompt: str = None,
|
|
4079
|
+
tag_name: str = None,
|
|
4080
|
+
):
|
|
4081
|
+
self.tag_define_prompt = tag_define_prompt
|
|
4082
|
+
self.tag_name = tag_name
|
|
4083
|
+
|
|
4084
|
+
def validate(self):
|
|
4085
|
+
pass
|
|
4086
|
+
|
|
4087
|
+
def to_map(self):
|
|
4088
|
+
_map = super().to_map()
|
|
4089
|
+
if _map is not None:
|
|
4090
|
+
return _map
|
|
4091
|
+
|
|
4092
|
+
result = dict()
|
|
4093
|
+
if self.tag_define_prompt is not None:
|
|
4094
|
+
result['tagDefinePrompt'] = self.tag_define_prompt
|
|
4095
|
+
if self.tag_name is not None:
|
|
4096
|
+
result['tagName'] = self.tag_name
|
|
4097
|
+
return result
|
|
4098
|
+
|
|
4099
|
+
def from_map(self, m: dict = None):
|
|
4100
|
+
m = m or dict()
|
|
4101
|
+
if m.get('tagDefinePrompt') is not None:
|
|
4102
|
+
self.tag_define_prompt = m.get('tagDefinePrompt')
|
|
4103
|
+
if m.get('tagName') is not None:
|
|
4104
|
+
self.tag_name = m.get('tagName')
|
|
4105
|
+
return self
|
|
4106
|
+
|
|
4107
|
+
|
|
4108
|
+
class RunNetworkContentAuditRequest(TeaModel):
|
|
4109
|
+
def __init__(
|
|
4110
|
+
self,
|
|
4111
|
+
business_type: str = None,
|
|
4112
|
+
content: str = None,
|
|
4113
|
+
extra_info: str = None,
|
|
4114
|
+
model_id: str = None,
|
|
4115
|
+
output_format: str = None,
|
|
4116
|
+
tags: List[RunNetworkContentAuditRequestTags] = None,
|
|
4117
|
+
task_description: str = None,
|
|
4118
|
+
):
|
|
4119
|
+
self.business_type = business_type
|
|
4120
|
+
# This parameter is required.
|
|
4121
|
+
self.content = content
|
|
4122
|
+
self.extra_info = extra_info
|
|
4123
|
+
self.model_id = model_id
|
|
4124
|
+
self.output_format = output_format
|
|
4125
|
+
self.tags = tags
|
|
4126
|
+
self.task_description = task_description
|
|
4127
|
+
|
|
4128
|
+
def validate(self):
|
|
4129
|
+
if self.tags:
|
|
4130
|
+
for k in self.tags:
|
|
4131
|
+
if k:
|
|
4132
|
+
k.validate()
|
|
4133
|
+
|
|
4134
|
+
def to_map(self):
|
|
4135
|
+
_map = super().to_map()
|
|
4136
|
+
if _map is not None:
|
|
4137
|
+
return _map
|
|
4138
|
+
|
|
4139
|
+
result = dict()
|
|
4140
|
+
if self.business_type is not None:
|
|
4141
|
+
result['businessType'] = self.business_type
|
|
4142
|
+
if self.content is not None:
|
|
4143
|
+
result['content'] = self.content
|
|
4144
|
+
if self.extra_info is not None:
|
|
4145
|
+
result['extraInfo'] = self.extra_info
|
|
4146
|
+
if self.model_id is not None:
|
|
4147
|
+
result['modelId'] = self.model_id
|
|
4148
|
+
if self.output_format is not None:
|
|
4149
|
+
result['outputFormat'] = self.output_format
|
|
4150
|
+
result['tags'] = []
|
|
4151
|
+
if self.tags is not None:
|
|
4152
|
+
for k in self.tags:
|
|
4153
|
+
result['tags'].append(k.to_map() if k else None)
|
|
4154
|
+
if self.task_description is not None:
|
|
4155
|
+
result['taskDescription'] = self.task_description
|
|
4156
|
+
return result
|
|
4157
|
+
|
|
4158
|
+
def from_map(self, m: dict = None):
|
|
4159
|
+
m = m or dict()
|
|
4160
|
+
if m.get('businessType') is not None:
|
|
4161
|
+
self.business_type = m.get('businessType')
|
|
4162
|
+
if m.get('content') is not None:
|
|
4163
|
+
self.content = m.get('content')
|
|
4164
|
+
if m.get('extraInfo') is not None:
|
|
4165
|
+
self.extra_info = m.get('extraInfo')
|
|
4166
|
+
if m.get('modelId') is not None:
|
|
4167
|
+
self.model_id = m.get('modelId')
|
|
4168
|
+
if m.get('outputFormat') is not None:
|
|
4169
|
+
self.output_format = m.get('outputFormat')
|
|
4170
|
+
self.tags = []
|
|
4171
|
+
if m.get('tags') is not None:
|
|
4172
|
+
for k in m.get('tags'):
|
|
4173
|
+
temp_model = RunNetworkContentAuditRequestTags()
|
|
4174
|
+
self.tags.append(temp_model.from_map(k))
|
|
4175
|
+
if m.get('taskDescription') is not None:
|
|
4176
|
+
self.task_description = m.get('taskDescription')
|
|
4177
|
+
return self
|
|
4178
|
+
|
|
4179
|
+
|
|
4180
|
+
class RunNetworkContentAuditShrinkRequest(TeaModel):
|
|
4181
|
+
def __init__(
|
|
4182
|
+
self,
|
|
4183
|
+
business_type: str = None,
|
|
4184
|
+
content: str = None,
|
|
4185
|
+
extra_info: str = None,
|
|
4186
|
+
model_id: str = None,
|
|
4187
|
+
output_format: str = None,
|
|
4188
|
+
tags_shrink: str = None,
|
|
4189
|
+
task_description: str = None,
|
|
4190
|
+
):
|
|
4191
|
+
self.business_type = business_type
|
|
4192
|
+
# This parameter is required.
|
|
4193
|
+
self.content = content
|
|
4194
|
+
self.extra_info = extra_info
|
|
4195
|
+
self.model_id = model_id
|
|
4196
|
+
self.output_format = output_format
|
|
4197
|
+
self.tags_shrink = tags_shrink
|
|
4198
|
+
self.task_description = task_description
|
|
4199
|
+
|
|
4200
|
+
def validate(self):
|
|
4201
|
+
pass
|
|
4202
|
+
|
|
4203
|
+
def to_map(self):
|
|
4204
|
+
_map = super().to_map()
|
|
4205
|
+
if _map is not None:
|
|
4206
|
+
return _map
|
|
4207
|
+
|
|
4208
|
+
result = dict()
|
|
4209
|
+
if self.business_type is not None:
|
|
4210
|
+
result['businessType'] = self.business_type
|
|
4211
|
+
if self.content is not None:
|
|
4212
|
+
result['content'] = self.content
|
|
4213
|
+
if self.extra_info is not None:
|
|
4214
|
+
result['extraInfo'] = self.extra_info
|
|
4215
|
+
if self.model_id is not None:
|
|
4216
|
+
result['modelId'] = self.model_id
|
|
4217
|
+
if self.output_format is not None:
|
|
4218
|
+
result['outputFormat'] = self.output_format
|
|
4219
|
+
if self.tags_shrink is not None:
|
|
4220
|
+
result['tags'] = self.tags_shrink
|
|
4221
|
+
if self.task_description is not None:
|
|
4222
|
+
result['taskDescription'] = self.task_description
|
|
4223
|
+
return result
|
|
4224
|
+
|
|
4225
|
+
def from_map(self, m: dict = None):
|
|
4226
|
+
m = m or dict()
|
|
4227
|
+
if m.get('businessType') is not None:
|
|
4228
|
+
self.business_type = m.get('businessType')
|
|
4229
|
+
if m.get('content') is not None:
|
|
4230
|
+
self.content = m.get('content')
|
|
4231
|
+
if m.get('extraInfo') is not None:
|
|
4232
|
+
self.extra_info = m.get('extraInfo')
|
|
4233
|
+
if m.get('modelId') is not None:
|
|
4234
|
+
self.model_id = m.get('modelId')
|
|
4235
|
+
if m.get('outputFormat') is not None:
|
|
4236
|
+
self.output_format = m.get('outputFormat')
|
|
4237
|
+
if m.get('tags') is not None:
|
|
4238
|
+
self.tags_shrink = m.get('tags')
|
|
4239
|
+
if m.get('taskDescription') is not None:
|
|
4240
|
+
self.task_description = m.get('taskDescription')
|
|
4241
|
+
return self
|
|
4242
|
+
|
|
4243
|
+
|
|
4244
|
+
class RunNetworkContentAuditResponseBodyHeader(TeaModel):
|
|
4245
|
+
def __init__(
|
|
4246
|
+
self,
|
|
4247
|
+
error_code: str = None,
|
|
4248
|
+
error_message: str = None,
|
|
4249
|
+
event: str = None,
|
|
4250
|
+
session_id: str = None,
|
|
4251
|
+
task_id: str = None,
|
|
4252
|
+
trace_id: str = None,
|
|
4253
|
+
):
|
|
4254
|
+
self.error_code = error_code
|
|
4255
|
+
self.error_message = error_message
|
|
4256
|
+
self.event = event
|
|
4257
|
+
self.session_id = session_id
|
|
4258
|
+
self.task_id = task_id
|
|
4259
|
+
self.trace_id = trace_id
|
|
4260
|
+
|
|
4261
|
+
def validate(self):
|
|
4262
|
+
pass
|
|
4263
|
+
|
|
4264
|
+
def to_map(self):
|
|
4265
|
+
_map = super().to_map()
|
|
4266
|
+
if _map is not None:
|
|
4267
|
+
return _map
|
|
4268
|
+
|
|
4269
|
+
result = dict()
|
|
4270
|
+
if self.error_code is not None:
|
|
4271
|
+
result['errorCode'] = self.error_code
|
|
4272
|
+
if self.error_message is not None:
|
|
4273
|
+
result['errorMessage'] = self.error_message
|
|
4274
|
+
if self.event is not None:
|
|
4275
|
+
result['event'] = self.event
|
|
4276
|
+
if self.session_id is not None:
|
|
4277
|
+
result['sessionId'] = self.session_id
|
|
4278
|
+
if self.task_id is not None:
|
|
4279
|
+
result['taskId'] = self.task_id
|
|
4280
|
+
if self.trace_id is not None:
|
|
4281
|
+
result['traceId'] = self.trace_id
|
|
4282
|
+
return result
|
|
4283
|
+
|
|
4284
|
+
def from_map(self, m: dict = None):
|
|
4285
|
+
m = m or dict()
|
|
4286
|
+
if m.get('errorCode') is not None:
|
|
4287
|
+
self.error_code = m.get('errorCode')
|
|
4288
|
+
if m.get('errorMessage') is not None:
|
|
4289
|
+
self.error_message = m.get('errorMessage')
|
|
4290
|
+
if m.get('event') is not None:
|
|
4291
|
+
self.event = m.get('event')
|
|
4292
|
+
if m.get('sessionId') is not None:
|
|
4293
|
+
self.session_id = m.get('sessionId')
|
|
4294
|
+
if m.get('taskId') is not None:
|
|
4295
|
+
self.task_id = m.get('taskId')
|
|
4296
|
+
if m.get('traceId') is not None:
|
|
4297
|
+
self.trace_id = m.get('traceId')
|
|
4298
|
+
return self
|
|
4299
|
+
|
|
4300
|
+
|
|
4301
|
+
class RunNetworkContentAuditResponseBodyPayloadOutput(TeaModel):
|
|
4302
|
+
def __init__(
|
|
4303
|
+
self,
|
|
4304
|
+
text: str = None,
|
|
4305
|
+
):
|
|
4306
|
+
self.text = text
|
|
4307
|
+
|
|
4308
|
+
def validate(self):
|
|
4309
|
+
pass
|
|
4310
|
+
|
|
4311
|
+
def to_map(self):
|
|
4312
|
+
_map = super().to_map()
|
|
4313
|
+
if _map is not None:
|
|
4314
|
+
return _map
|
|
4315
|
+
|
|
4316
|
+
result = dict()
|
|
4317
|
+
if self.text is not None:
|
|
4318
|
+
result['text'] = self.text
|
|
4319
|
+
return result
|
|
4320
|
+
|
|
4321
|
+
def from_map(self, m: dict = None):
|
|
4322
|
+
m = m or dict()
|
|
4323
|
+
if m.get('text') is not None:
|
|
4324
|
+
self.text = m.get('text')
|
|
4325
|
+
return self
|
|
4326
|
+
|
|
4327
|
+
|
|
4328
|
+
class RunNetworkContentAuditResponseBodyPayloadUsage(TeaModel):
|
|
4329
|
+
def __init__(
|
|
4330
|
+
self,
|
|
4331
|
+
input_tokens: int = None,
|
|
4332
|
+
output_tokens: int = None,
|
|
4333
|
+
total_tokens: int = None,
|
|
4334
|
+
):
|
|
4335
|
+
self.input_tokens = input_tokens
|
|
4336
|
+
self.output_tokens = output_tokens
|
|
4337
|
+
self.total_tokens = total_tokens
|
|
4338
|
+
|
|
4339
|
+
def validate(self):
|
|
4340
|
+
pass
|
|
4341
|
+
|
|
4342
|
+
def to_map(self):
|
|
4343
|
+
_map = super().to_map()
|
|
4344
|
+
if _map is not None:
|
|
4345
|
+
return _map
|
|
4346
|
+
|
|
4347
|
+
result = dict()
|
|
4348
|
+
if self.input_tokens is not None:
|
|
4349
|
+
result['inputTokens'] = self.input_tokens
|
|
4350
|
+
if self.output_tokens is not None:
|
|
4351
|
+
result['outputTokens'] = self.output_tokens
|
|
4352
|
+
if self.total_tokens is not None:
|
|
4353
|
+
result['totalTokens'] = self.total_tokens
|
|
4354
|
+
return result
|
|
4355
|
+
|
|
4356
|
+
def from_map(self, m: dict = None):
|
|
4357
|
+
m = m or dict()
|
|
4358
|
+
if m.get('inputTokens') is not None:
|
|
4359
|
+
self.input_tokens = m.get('inputTokens')
|
|
4360
|
+
if m.get('outputTokens') is not None:
|
|
4361
|
+
self.output_tokens = m.get('outputTokens')
|
|
4362
|
+
if m.get('totalTokens') is not None:
|
|
4363
|
+
self.total_tokens = m.get('totalTokens')
|
|
4364
|
+
return self
|
|
4365
|
+
|
|
4366
|
+
|
|
4367
|
+
class RunNetworkContentAuditResponseBodyPayload(TeaModel):
|
|
4368
|
+
def __init__(
|
|
4369
|
+
self,
|
|
4370
|
+
output: RunNetworkContentAuditResponseBodyPayloadOutput = None,
|
|
4371
|
+
usage: RunNetworkContentAuditResponseBodyPayloadUsage = None,
|
|
4372
|
+
):
|
|
4373
|
+
self.output = output
|
|
4374
|
+
self.usage = usage
|
|
4375
|
+
|
|
4376
|
+
def validate(self):
|
|
4377
|
+
if self.output:
|
|
4378
|
+
self.output.validate()
|
|
4379
|
+
if self.usage:
|
|
4380
|
+
self.usage.validate()
|
|
4381
|
+
|
|
4382
|
+
def to_map(self):
|
|
4383
|
+
_map = super().to_map()
|
|
4384
|
+
if _map is not None:
|
|
4385
|
+
return _map
|
|
4386
|
+
|
|
4387
|
+
result = dict()
|
|
4388
|
+
if self.output is not None:
|
|
4389
|
+
result['output'] = self.output.to_map()
|
|
4390
|
+
if self.usage is not None:
|
|
4391
|
+
result['usage'] = self.usage.to_map()
|
|
4392
|
+
return result
|
|
4393
|
+
|
|
4394
|
+
def from_map(self, m: dict = None):
|
|
4395
|
+
m = m or dict()
|
|
4396
|
+
if m.get('output') is not None:
|
|
4397
|
+
temp_model = RunNetworkContentAuditResponseBodyPayloadOutput()
|
|
4398
|
+
self.output = temp_model.from_map(m['output'])
|
|
4399
|
+
if m.get('usage') is not None:
|
|
4400
|
+
temp_model = RunNetworkContentAuditResponseBodyPayloadUsage()
|
|
4401
|
+
self.usage = temp_model.from_map(m['usage'])
|
|
4402
|
+
return self
|
|
4403
|
+
|
|
4404
|
+
|
|
4405
|
+
class RunNetworkContentAuditResponseBody(TeaModel):
|
|
4406
|
+
def __init__(
|
|
4407
|
+
self,
|
|
4408
|
+
header: RunNetworkContentAuditResponseBodyHeader = None,
|
|
4409
|
+
payload: RunNetworkContentAuditResponseBodyPayload = None,
|
|
4410
|
+
request_id: str = None,
|
|
4411
|
+
):
|
|
4412
|
+
self.header = header
|
|
4413
|
+
self.payload = payload
|
|
4414
|
+
# Id of the request
|
|
4415
|
+
self.request_id = request_id
|
|
4416
|
+
|
|
4417
|
+
def validate(self):
|
|
4418
|
+
if self.header:
|
|
4419
|
+
self.header.validate()
|
|
4420
|
+
if self.payload:
|
|
4421
|
+
self.payload.validate()
|
|
4422
|
+
|
|
4423
|
+
def to_map(self):
|
|
4424
|
+
_map = super().to_map()
|
|
4425
|
+
if _map is not None:
|
|
4426
|
+
return _map
|
|
4427
|
+
|
|
4428
|
+
result = dict()
|
|
4429
|
+
if self.header is not None:
|
|
4430
|
+
result['header'] = self.header.to_map()
|
|
4431
|
+
if self.payload is not None:
|
|
4432
|
+
result['payload'] = self.payload.to_map()
|
|
4433
|
+
if self.request_id is not None:
|
|
4434
|
+
result['requestId'] = self.request_id
|
|
4435
|
+
return result
|
|
4436
|
+
|
|
4437
|
+
def from_map(self, m: dict = None):
|
|
4438
|
+
m = m or dict()
|
|
4439
|
+
if m.get('header') is not None:
|
|
4440
|
+
temp_model = RunNetworkContentAuditResponseBodyHeader()
|
|
4441
|
+
self.header = temp_model.from_map(m['header'])
|
|
4442
|
+
if m.get('payload') is not None:
|
|
4443
|
+
temp_model = RunNetworkContentAuditResponseBodyPayload()
|
|
4444
|
+
self.payload = temp_model.from_map(m['payload'])
|
|
4445
|
+
if m.get('requestId') is not None:
|
|
4446
|
+
self.request_id = m.get('requestId')
|
|
4447
|
+
return self
|
|
4448
|
+
|
|
4449
|
+
|
|
4450
|
+
class RunNetworkContentAuditResponse(TeaModel):
|
|
4451
|
+
def __init__(
|
|
4452
|
+
self,
|
|
4453
|
+
headers: Dict[str, str] = None,
|
|
4454
|
+
status_code: int = None,
|
|
4455
|
+
body: RunNetworkContentAuditResponseBody = None,
|
|
4456
|
+
):
|
|
4457
|
+
self.headers = headers
|
|
4458
|
+
self.status_code = status_code
|
|
4459
|
+
self.body = body
|
|
4460
|
+
|
|
4461
|
+
def validate(self):
|
|
4462
|
+
if self.body:
|
|
4463
|
+
self.body.validate()
|
|
4464
|
+
|
|
4465
|
+
def to_map(self):
|
|
4466
|
+
_map = super().to_map()
|
|
4467
|
+
if _map is not None:
|
|
4468
|
+
return _map
|
|
4469
|
+
|
|
4470
|
+
result = dict()
|
|
4471
|
+
if self.headers is not None:
|
|
4472
|
+
result['headers'] = self.headers
|
|
4473
|
+
if self.status_code is not None:
|
|
4474
|
+
result['statusCode'] = self.status_code
|
|
4475
|
+
if self.body is not None:
|
|
4476
|
+
result['body'] = self.body.to_map()
|
|
4477
|
+
return result
|
|
4478
|
+
|
|
4479
|
+
def from_map(self, m: dict = None):
|
|
4480
|
+
m = m or dict()
|
|
4481
|
+
if m.get('headers') is not None:
|
|
4482
|
+
self.headers = m.get('headers')
|
|
4483
|
+
if m.get('statusCode') is not None:
|
|
4484
|
+
self.status_code = m.get('statusCode')
|
|
4485
|
+
if m.get('body') is not None:
|
|
4486
|
+
temp_model = RunNetworkContentAuditResponseBody()
|
|
4487
|
+
self.body = temp_model.from_map(m['body'])
|
|
4488
|
+
return self
|
|
4489
|
+
|
|
4490
|
+
|
|
4075
4491
|
class RunScriptChatRequest(TeaModel):
|
|
4076
4492
|
def __init__(
|
|
4077
4493
|
self,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud-quanmiaolightapp20240801
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.5.0
|
|
4
4
|
Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
|
|
5
5
|
Home-page: https://github.com/aliyun/alibabacloud-python-sdk
|
|
6
6
|
Author: Alibaba Cloud SDK
|
alibabacloud_quanmiaolightapp20240801-2.4.0/alibabacloud_quanmiaolightapp20240801/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '2.4.0'
|
{alibabacloud_quanmiaolightapp20240801-2.4.0 → alibabacloud_quanmiaolightapp20240801-2.5.0}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|