Skip to content

Commit b66e3f0

Browse files
author
franktguo
committed
ci补充参数
1 parent b077e19 commit b66e3f0

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

sample/CreateDataset.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
'DatasetName'=> 'test', // 数据集名称,同一个账户下唯一。命名规则如下: 长度为1~32字符。 只能包含小写英文字母,数字,短划线(-)。 必须以英文字母和数字开头。;是否必传:是
2424
'Description'=> 'test', // 数据集描述信息。长度为1~256个英文或中文字符,默认值为空。;是否必传:否
2525
'TemplateId'=> 'Official:COSBasicMeta', // 指模板,在建立元数据索引时,后端将根据模板来决定收集哪些元数据。每个模板都包含一个或多个算子,不同的算子表示不同的元数据。目前支持的模板: Official:DefaultEmptyId:默认为空的模板,表示不进行元数据的采集。 Official:COSBasicMeta:基础信息模板,包含 COS 文件基础元信息算子,表示采集 COS 文件的名称、类型、ACL等基础元信息数据。 Official:FaceSearch:人脸检索模板,包含人脸检索、COS 文件基础元信息算子。Official:ImageSearch:图像检索模板,包含图像检索、COS 文件基础元信息算子。;是否必传:否
26-
26+
'Version' => 'basic', // 数据集版本。basic、standard,默认为basic。
27+
'Volume' => 0, // Version为basic时为50w。Version为standard时,默认为500w,可设置1-10000,单位w。传0采用默认值。
28+
'TrainingMode' => 1, // 训练数据的来源模式。
29+
'TrainingDataset' => '', // 训练数据的数据集名称。仅在TrainingMode为0时生效。
30+
'TrainingURI' => '', // 训练数据的资源路径。仅在TrainingMode为1时生效。
2731
));
2832
// 请求成功
2933
print_r($result);

src/Descriptions.php

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public static function CreateMediaTranscodeJobs() {
2929
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
3030
'Tag' => array( 'location' => 'xml', 'type' => 'string', ),
3131
'QueueId' => array( 'location' => 'xml', 'type' => 'string', ),
32+
'QueueType' => array( 'location' => 'xml', 'type' => 'string', ),
3233
'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
3334
'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
3435
'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
@@ -271,6 +272,33 @@ public static function CreateMediaTranscodeJobs() {
271272
'State' => array( 'type' => 'string', 'location' => 'xml', ),
272273
),
273274
),
275+
'Subtitles' => array(
276+
'type' => 'object',
277+
'location' => 'xml',
278+
'properties' => array(
279+
'Subtitle' => array(
280+
'type' => 'array',
281+
'location' => 'xml',
282+
'data' => array(
283+
'xmlFlattened' => true,
284+
),
285+
'items' => array(
286+
'type' => 'object',
287+
'name' => 'Subtitle',
288+
'sentAs' => 'Subtitle',
289+
'properties' => array(
290+
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
291+
'Embed' => array( 'type' => 'string', 'location' => 'xml', ),
292+
'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
293+
'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
294+
'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
295+
'OutlineColor' => array( 'type' => 'string', 'location' => 'xml', ),
296+
'VMargin' => array( 'type' => 'string', 'location' => 'xml', ),
297+
),
298+
),
299+
),
300+
),
301+
),
274302
),
275303
),
276304
'CallBackMqConfig' => array(
@@ -282,6 +310,15 @@ public static function CreateMediaTranscodeJobs() {
282310
'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
283311
),
284312
),
313+
'CallBackKafkaConfig' => array(
314+
'type' => 'object',
315+
'location' => 'xml',
316+
'properties' => array(
317+
'Region' => array( 'type' => 'string', 'location' => 'xml', ),
318+
'InstanceId' => array( 'type' => 'string', 'location' => 'xml', ),
319+
'Topic' => array( 'type' => 'string', 'location' => 'xml', ),
320+
),
321+
),
285322
),
286323
);
287324
}
@@ -19290,6 +19327,11 @@ public static function CreateDataset() {
1929019327
'DatasetName' => array( 'location' => 'json', 'type' => 'string', ),
1929119328
'Description' => array( 'location' => 'json', 'type' => 'string', ),
1929219329
'TemplateId' => array( 'location' => 'json', 'type' => 'string', ),
19330+
'Version' => array( 'location' => 'json', 'type' => 'string', ),
19331+
'Volume' => array( 'location' => 'json', 'type' => 'integer', ),
19332+
'TrainingMode' => array( 'location' => 'json', 'type' => 'integer', ),
19333+
'TrainingDataset' => array( 'location' => 'json', 'type' => 'string', ),
19334+
'TrainingURI' => array( 'location' => 'json', 'type' => 'string', ),
1929319335
),
1929419336

1929519337
);

0 commit comments

Comments
 (0)