Skip to content

Commit

Permalink
ci补充参数
Browse files Browse the repository at this point in the history
  • Loading branch information
franktguo committed Jan 21, 2025
1 parent b077e19 commit b66e3f0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sample/CreateDataset.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
'DatasetName'=> 'test', // 数据集名称,同一个账户下唯一。命名规则如下: 长度为1~32字符。 只能包含小写英文字母,数字,短划线(-)。 必须以英文字母和数字开头。;是否必传:是
'Description'=> 'test', // 数据集描述信息。长度为1~256个英文或中文字符,默认值为空。;是否必传:否
'TemplateId'=> 'Official:COSBasicMeta', // 指模板,在建立元数据索引时,后端将根据模板来决定收集哪些元数据。每个模板都包含一个或多个算子,不同的算子表示不同的元数据。目前支持的模板: Official:DefaultEmptyId:默认为空的模板,表示不进行元数据的采集。 Official:COSBasicMeta:基础信息模板,包含 COS 文件基础元信息算子,表示采集 COS 文件的名称、类型、ACL等基础元信息数据。 Official:FaceSearch:人脸检索模板,包含人脸检索、COS 文件基础元信息算子。Official:ImageSearch:图像检索模板,包含图像检索、COS 文件基础元信息算子。;是否必传:否

'Version' => 'basic', // 数据集版本。basic、standard,默认为basic。
'Volume' => 0, // Version为basic时为50w。Version为standard时,默认为500w,可设置1-10000,单位w。传0采用默认值。
'TrainingMode' => 1, // 训练数据的来源模式。
'TrainingDataset' => '', // 训练数据的数据集名称。仅在TrainingMode为0时生效。
'TrainingURI' => '', // 训练数据的资源路径。仅在TrainingMode为1时生效。
));
// 请求成功
print_r($result);
Expand Down
42 changes: 42 additions & 0 deletions src/Descriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public static function CreateMediaTranscodeJobs() {
'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ),
'Tag' => array( 'location' => 'xml', 'type' => 'string', ),
'QueueId' => array( 'location' => 'xml', 'type' => 'string', ),
'QueueType' => array( 'location' => 'xml', 'type' => 'string', ),
'CallBack' => array( 'location' => 'xml', 'type' => 'string', ),
'CallBackFormat' => array( 'location' => 'xml', 'type' => 'string', ),
'CallBackType' => array( 'location' => 'xml', 'type' => 'string', ),
Expand Down Expand Up @@ -271,6 +272,33 @@ public static function CreateMediaTranscodeJobs() {
'State' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'Subtitles' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Subtitle' => array(
'type' => 'array',
'location' => 'xml',
'data' => array(
'xmlFlattened' => true,
),
'items' => array(
'type' => 'object',
'name' => 'Subtitle',
'sentAs' => 'Subtitle',
'properties' => array(
'Url' => array( 'type' => 'string', 'location' => 'xml', ),
'Embed' => array( 'type' => 'string', 'location' => 'xml', ),
'FontType' => array( 'type' => 'string', 'location' => 'xml', ),
'FontSize' => array( 'type' => 'string', 'location' => 'xml', ),
'FontColor' => array( 'type' => 'string', 'location' => 'xml', ),
'OutlineColor' => array( 'type' => 'string', 'location' => 'xml', ),
'VMargin' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
),
),
),
),
'CallBackMqConfig' => array(
Expand All @@ -282,6 +310,15 @@ public static function CreateMediaTranscodeJobs() {
'MqName' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'CallBackKafkaConfig' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Region' => array( 'type' => 'string', 'location' => 'xml', ),
'InstanceId' => array( 'type' => 'string', 'location' => 'xml', ),
'Topic' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
),
);
}
Expand Down Expand Up @@ -19290,6 +19327,11 @@ public static function CreateDataset() {
'DatasetName' => array( 'location' => 'json', 'type' => 'string', ),
'Description' => array( 'location' => 'json', 'type' => 'string', ),
'TemplateId' => array( 'location' => 'json', 'type' => 'string', ),
'Version' => array( 'location' => 'json', 'type' => 'string', ),
'Volume' => array( 'location' => 'json', 'type' => 'integer', ),
'TrainingMode' => array( 'location' => 'json', 'type' => 'integer', ),
'TrainingDataset' => array( 'location' => 'json', 'type' => 'string', ),
'TrainingURI' => array( 'location' => 'json', 'type' => 'string', ),
),

);
Expand Down

0 comments on commit b66e3f0

Please sign in to comment.