summaryrefslogtreecommitdiff
path: root/data/zh_cn/aiworkspace/2021-02-04/api-docs.php
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-02-13 10:54:11 +0800
committerZhineng Li <[email protected]>2026-02-13 10:54:11 +0800
commit7347bac4ab7e136157fc94777e6cf87ef9e08599 (patch)
tree0dec367dac6e152161a6f7cc0dba6ebbef1f34a2 /data/zh_cn/aiworkspace/2021-02-04/api-docs.php
downloadacs-metadata-full-main.tar.gz
acs-metadata-full-main.zip
Diffstat (limited to 'data/zh_cn/aiworkspace/2021-02-04/api-docs.php')
-rw-r--r--data/zh_cn/aiworkspace/2021-02-04/api-docs.php20313
1 files changed, 20313 insertions, 0 deletions
diff --git a/data/zh_cn/aiworkspace/2021-02-04/api-docs.php b/data/zh_cn/aiworkspace/2021-02-04/api-docs.php
new file mode 100644
index 0000000..8708938
--- /dev/null
+++ b/data/zh_cn/aiworkspace/2021-02-04/api-docs.php
@@ -0,0 +1,20313 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'ROA',
+ 'product' => 'AIWorkSpace',
+ 'version' => '2021-02-04',
+ ],
+ 'directories' => [
+ [
+ 'id' => 385742,
+ 'title' => '实验',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateExperiment',
+ 'UpdateExperiment',
+ 'GetExperiment',
+ 'ListExperiment',
+ 'DeleteExperiment',
+ 'SetExperimentLabels',
+ 'DeleteExperimentLabel',
+ 'CreateRun',
+ 'UpdateRun',
+ 'GetRun',
+ 'ListRuns',
+ 'DeleteRun',
+ 'DeleteRunLabel',
+ 'LogRunMetrics',
+ 'ListRunMetrics',
+ ],
+ ],
+ [
+ 'id' => 385758,
+ 'title' => '镜像',
+ 'type' => 'directory',
+ 'children' => [
+ 'AddImage',
+ 'AddImageLabels',
+ 'GetImage',
+ 'ListImageLabels',
+ 'ListImages',
+ 'RemoveImage',
+ 'PublishImage',
+ 'RemoveImageLabels',
+ 'CreateImageBuild',
+ ],
+ ],
+ [
+ 'id' => 385768,
+ 'title' => '工作空间',
+ 'type' => 'directory',
+ 'children' => [
+ [
+ 'id' => 385769,
+ 'title' => '权限',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListPermissions',
+ 'GetPermission',
+ ],
+ ],
+ [
+ 'id' => 385772,
+ 'title' => '资源',
+ 'type' => 'directory',
+ 'children' => [
+ 'DeleteWorkspaceResource',
+ 'UpdateWorkspaceResource',
+ 'ListResources',
+ 'CreateWorkspaceResource',
+ ],
+ ],
+ [
+ 'id' => 385777,
+ 'title' => '成员',
+ 'type' => 'directory',
+ 'children' => [
+ 'AddMemberRole',
+ 'RemoveMemberRole',
+ 'DeleteMembers',
+ 'GetMember',
+ 'ListMembers',
+ 'CreateMember',
+ ],
+ ],
+ [
+ 'id' => 385784,
+ 'title' => '配置',
+ 'type' => 'directory',
+ 'children' => [
+ 'UpdateConfigs',
+ 'GetConfig',
+ 'ListConfigs',
+ 'DeleteConfig',
+ 'UpdateConfig',
+ ],
+ ],
+ [
+ 'id' => 385790,
+ 'title' => '工作空间',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListWorkspaces',
+ 'CreateWorkspace',
+ 'GetWorkspace',
+ 'DeleteWorkspace',
+ 'UpdateWorkspace',
+ ],
+ ],
+ 'GetDefaultWorkspace',
+ 'UpdateDefaultWorkspace',
+ 'ListWorkspaceUsers',
+ 'ListQuotas',
+ ],
+ ],
+ [
+ 'id' => 385800,
+ 'title' => '数据集',
+ 'type' => 'directory',
+ 'children' => [
+ [
+ 'id' => 385801,
+ 'title' => '多模态检索',
+ 'type' => 'directory',
+ 'children' => [
+ 'GetDatasetFileMetasStatistics',
+ 'StopDatasetJob',
+ 'GetDatasetJob',
+ 'CreateDatasetFileMetas',
+ 'UpdateDatasetJob',
+ 'ListDatasetJobs',
+ 'DeleteDatasetJobConfig',
+ 'DeleteDatasetJob',
+ 'UpdateDatasetJobConfig',
+ 'UpdateDatasetFileMetas',
+ 'ListDatasetJobConfigs',
+ 'ListDatasetFileMetas',
+ 'GetDatasetJobConfig',
+ 'GetDatasetFileMeta',
+ 'DeleteDatasetFileMetas',
+ 'CreateDatasetJobConfig',
+ 'CreateDatasetJob',
+ ],
+ ],
+ 'CreateDataset',
+ 'GetDataset',
+ 'UpdateDataset',
+ 'PublishDataset',
+ 'ListDatasets',
+ 'DeleteDataset',
+ 'CreateDatasetLabels',
+ 'DeleteDatasetLabels',
+ 'CreateDatasetVersion',
+ 'GetDatasetVersion',
+ 'ListDatasetVersions',
+ 'UpdateDatasetVersion',
+ 'DeleteDatasetVersion',
+ 'DeleteDatasetVersionLabels',
+ 'DeleteDatasetVersionLabels',
+ 'CreateDatasetVersionLabels',
+ ],
+ ],
+ [
+ 'id' => 385834,
+ 'title' => '连接',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateConnection',
+ 'GetConnection',
+ 'UpdateConnection',
+ 'ListConnections',
+ 'DeleteConnection',
+ 'ValidateConnection',
+ ],
+ ],
+ [
+ 'id' => 385841,
+ 'title' => '代码配置',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateCodeSource',
+ 'DeleteCodeSource',
+ 'PublishCodeSource',
+ 'UpdateCodeSource',
+ 'GetCodeSource',
+ 'ListCodeSources',
+ ],
+ ],
+ [
+ 'id' => 385848,
+ 'title' => '模型',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateModel',
+ 'UpdateModel',
+ 'GetModel',
+ 'ListModels',
+ 'DeleteModel',
+ 'CreateModelVersion',
+ 'UpdateModelVersion',
+ 'GetModelVersion',
+ 'ListModelVersions',
+ 'DeleteModelVersion',
+ 'CreateModelLabels',
+ 'DeleteModelLabels',
+ 'CreateModelVersionLabels',
+ 'DeleteModelVersionLabels',
+ ],
+ ],
+ [
+ 'id' => 385863,
+ 'title' => '用户配置',
+ 'type' => 'directory',
+ 'children' => [
+ 'SetUserConfigs',
+ 'DeleteUserConfig',
+ 'ListUserConfigs',
+ ],
+ ],
+ [
+ 'id' => 385867,
+ 'title' => '其他',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListProducts',
+ 'CreateProductOrders',
+ 'AcceptDataworksEvent',
+ 'ChangeResourceGroup',
+ 'ListFeatures',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [
+ 'CodeSourceItem' => [
+ 'title' => '代码源配置的内容',
+ 'description' => '代码配置的结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CodeSourceId' => [
+ 'title' => '代码源ID',
+ 'description' => '代码配置ID。',
+ 'type' => 'string',
+ 'example' => 'code-202**********',
+ ],
+ 'DisplayName' => [
+ 'title' => '代码源配置的名字',
+ 'description' => '代码源配置的名字。',
+ 'type' => 'string',
+ 'example' => 'MyCodeSourceName1',
+ ],
+ 'Description' => [
+ 'title' => '代码源详细描述',
+ 'description' => '详细描述。',
+ 'type' => 'string',
+ 'example' => 'code source of dlc examples',
+ ],
+ 'CodeRepo' => [
+ 'title' => '代码仓库地址',
+ 'description' => '代码仓库地址。',
+ 'type' => 'string',
+ 'example' => 'https://code.aliyun.com/****',
+ ],
+ 'CodeBranch' => [
+ 'title' => '代码分支',
+ 'description' => '代码分支。',
+ 'type' => 'string',
+ 'example' => 'master',
+ ],
+ 'CodeCommit' => [
+ 'title' => '代码Commit ID',
+ 'description' => '代码CommitID。',
+ 'type' => 'string',
+ 'example' => '44da10**********',
+ ],
+ 'CodeRepoUserName' => [
+ 'title' => '访问代码仓库的用户名',
+ 'description' => '访问代码仓库的用户名。',
+ 'type' => 'string',
+ 'example' => 'user',
+ ],
+ 'CodeRepoAccessToken' => [
+ 'title' => '访问代码仓库所用的AccessToken',
+ 'description' => '访问代码仓库所用的Token。',
+ 'type' => 'string',
+ ],
+ 'Accessibility' => [
+ 'title' => '表示代码是否是工作空间下公开的,可选值PRIVATE,PUBLIC',
+ 'description' => '代码配置可见性,可能值:'."\n"
+ .'- PRIVATE:在此工作空间中,仅对您和管理员可见。'."\n"
+ .'- PUBLIC:在此工作空间中,对所有人可见。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PUBLIC',
+ ],
+ 'UserId' => [
+ 'title' => '代码源配置的用户ID',
+ 'description' => '创建者ID。',
+ 'type' => 'string',
+ 'example' => '1157290171663117',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '1234',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2021-01-18T12:52:15Z',
+ ],
+ 'GmtModifyTime' => [
+ 'title' => '修改时间',
+ 'description' => '修改时间。',
+ 'type' => 'string',
+ 'example' => '2021-01-18T12:52:15Z',
+ ],
+ 'MountPath' => [
+ 'title' => '代码Mount路径',
+ 'description' => '代码的本地挂载路径。',
+ 'type' => 'string',
+ 'example' => '/root/code/',
+ ],
+ ],
+ ],
+ 'Collection' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'A short description of struct',
+ 'type' => 'object',
+ 'properties' => [
+ 'CollectionName' => [
+ 'title' => 'Collection名称,全局唯一',
+ 'description' => 'Collection名称,全局唯一',
+ 'type' => 'string',
+ 'example' => 'AI4D',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '最后更新时间',
+ 'description' => '最后更新时间',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35Z',
+ ],
+ 'UserId' => [
+ 'title' => '创建Collection的用户ID',
+ 'description' => '创建Collection的用户ID',
+ 'type' => 'string',
+ 'example' => '155770209******',
+ ],
+ 'OwnerId' => [
+ 'title' => '云账号ID',
+ 'description' => '云账号ID',
+ 'type' => 'string',
+ 'example' => '155770209******',
+ ],
+ ],
+ ],
+ 'Connection' => [
+ 'title' => 'connection',
+ 'description' => '连接信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'Description' => [
+ 'title' => 'description',
+ 'description' => '连接的描述信息。',
+ 'type' => 'string',
+ 'example' => 'This is a description of a database connection.',
+ ],
+ 'ConnectionType' => [
+ 'title' => 'connection Type',
+ 'description' => '连接的类型。可选值:'."\n"
+ .'- DashScopeConnection:百炼服务连接。'."\n"
+ .'- OpenLLMConnection:开源模型连接。'."\n"
+ .'- MilvusConnection:Milvus连接。'."\n"
+ .'- OpenSearchConnection:OpenSearch连接。'."\n"
+ .'- LindormConnection:Lindorm连接。'."\n"
+ .'- ElasticsearchConnection:Elasticsearch连接。'."\n"
+ .'- HologresConnection:Hologres连接。'."\n"
+ .'- RDSConnection:RDS连接。'."\n"
+ .'- CustomConnection:自定义连接。',
+ 'type' => 'string',
+ 'example' => 'ElasticsearchConnection',
+ ],
+ 'Accessibility' => [
+ 'title' => 'accessibility',
+ 'description' => '工作空间可见度。取值:'."\n"
+ .'- PRIVATE(默认值):表示工作空间内自己以及管理员可见。'."\n"
+ .'- PUBLIC:工作空间所有用户可见。',
+ 'type' => 'string',
+ 'example' => 'PRIVATE',
+ ],
+ 'Secrets' => [
+ 'description' => '需要加密的Key-Value配置。如数据库登录密码,模型连接的Key等。',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'description' => '加密连接配置的value值。',
+ 'type' => 'string',
+ 'example' => 'Dsjk***hsl01'."\n",
+ ],
+ ],
+ 'WorkspaceId' => [
+ 'title' => 'workspace Id',
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '228**',
+ ],
+ 'Creator' => [
+ 'title' => 'creator',
+ 'description' => '连接的创建者。',
+ 'type' => 'string',
+ 'example' => '20925961****557803',
+ ],
+ 'ResourceMeta' => [
+ 'title' => 'resource meta',
+ 'description' => '连接的资源信息。一般适用于数据库类型的连接配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceName' => [
+ 'title' => 'instance name',
+ 'description' => '实例名称。',
+ 'type' => 'string',
+ 'example' => 'lindorm-xxxxxxx',
+ ],
+ 'Extra' => [
+ 'title' => 'extra resource info',
+ 'description' => '额外配置信息。',
+ 'type' => 'string',
+ 'example' => '{"vpcId":"vpc-xxxx"}',
+ ],
+ 'InstanceId' => [
+ 'title' => 'instanceId',
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'ld-2vc1***v1zaqgzol',
+ ],
+ ],
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => 'gmtModifiedTime',
+ 'description' => '修改连接的UTC时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2025-03-07T07:54:56Z'."\n",
+ ],
+ 'ConnectionName' => [
+ 'title' => 'connection name',
+ 'description' => '连接的名称。',
+ 'type' => 'string',
+ 'example' => 'lindorm-connection',
+ ],
+ 'ConnectionId' => [
+ 'title' => 'connection Id',
+ 'description' => '连接ID。',
+ 'type' => 'string',
+ 'example' => 'conn-pai9m***mi47',
+ ],
+ 'Configs' => [
+ 'description' => '连接的配置信息。',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'description' => '连接配置的value值。',
+ 'type' => 'string',
+ 'example' => '12345',
+ ],
+ ],
+ 'Models' => [
+ 'title' => 'model',
+ 'description' => '模型列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '模型。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ToolCall' => [
+ 'title' => 'tool call',
+ 'description' => '是否支持ToolCall工具调用。可取值:'."\n"
+ .'- true:支持'."\n"
+ .'- false:不支持',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Model' => [
+ 'title' => 'model',
+ 'description' => '模型标识符。',
+ 'type' => 'string',
+ 'example' => 'model_001',
+ ],
+ 'DisplayName' => [
+ 'title' => 'display name',
+ 'description' => '模型的展示名称。',
+ 'type' => 'string',
+ 'example' => 'BGE model deploy.',
+ ],
+ 'ModelType' => [
+ 'title' => 'model type',
+ 'description' => '模型类型,取值为:'."\n"
+ .'- LLM(大语言模型)'."\n"
+ .'- Embedding(Embedding模型)'."\n"
+ .'- ReRank(ReRank模型)',
+ 'type' => 'string',
+ 'example' => 'LLM',
+ ],
+ ],
+ ],
+ ],
+ 'GmtCreateTime' => [
+ 'title' => 'gmtCreateTime',
+ 'description' => '修改连接的UTC时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2025-03-07T07:54:56Z'."\n",
+ ],
+ ],
+ ],
+ 'Dataset' => [
+ 'title' => 'A short description of struct',
+ 'description' => '数据集属性',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetId' => [
+ 'title' => 'Dataset Id',
+ 'description' => '数据集ID。',
+ 'type' => 'string',
+ 'example' => 'd-c0h44g3****j8o4348',
+ ],
+ 'UserId' => [
+ 'title' => 'User Id',
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '2485765****023475',
+ ],
+ 'OwnerId' => [
+ 'title' => 'Owner Id',
+ 'description' => '主账户ID。',
+ 'type' => 'string',
+ 'example' => '1631044****3440',
+ ],
+ 'Name' => [
+ 'title' => 'Name',
+ 'description' => '数据集名称。',
+ 'type' => 'string',
+ 'example' => 'myName',
+ ],
+ 'DataSourceType' => [
+ 'title' => 'DataSourceType',
+ 'description' => '数据源类型。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'NAS' => 'NAS',
+ 'OSS' => 'OSS',
+ ],
+ 'example' => 'NAS',
+ ],
+ 'Uri' => [
+ 'title' => 'Uri',
+ 'description' => 'Uri样例:'."\n"
+ ."\n"
+ .'- 数据源类型为OSS:'."\n"
+ .'`oss://bucket.endpoint/object`'."\n"
+ ."\n"
+ .'- 数据源类型为通用型NAS:'."\n"
+ .'`nas://<nasfisid>.region/subpath/to/dir/`'."\n"
+ ."\n"
+ .'- 数据源类型为CPFS1.0:'."\n"
+ .'`nas://<cpfs-fsid>.region/subpath/to/dir/`'."\n"
+ ."\n"
+ .'- 数据源类型为CPFS2.0:'."\n"
+ .'`nas://<cpfs-fsid>.region/<protocolserviceid>/`'."\n"
+ ."\n"
+ .'> CPFS1.0和CPFS2.0根据fsid的格式来区分:CPFS1.0格式为cpfs-<8位ascii字符>,CPFS2.0格式为cpfs-<16为ascii字符>。',
+ 'type' => 'string',
+ 'example' => 'nas://09f****f2.cn-hangzhou/',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => 'GmtCreateTime',
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => 'GmtModifiedTime',
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'DataType' => [
+ 'title' => 'DataType',
+ 'description' => '数据集的数据类型。取值:'."\n"
+ ."\n"
+ .'- COMMON(默认值):普通。'."\n"
+ .'- PIC:图片。'."\n"
+ .'- TEXT:文本。'."\n"
+ .'- VIDEO:视频。'."\n"
+ .'- AUDIO:音频。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'VIDEO' => 'VIDEO',
+ 'COMMON' => 'COMMON',
+ 'TEXT' => 'TEXT',
+ 'PIC' => 'PIC',
+ 'AUDIO' => 'AUDIO',
+ ],
+ 'example' => 'COMMON',
+ ],
+ 'Property' => [
+ 'title' => 'Property',
+ 'description' => '数据集属性。取值:'."\n"
+ ."\n"
+ .'- FILE:文件。'."\n"
+ .'- DIRECTORY:文件夹。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'DIRECTORY' => 'DIRECTORY',
+ 'FILE' => 'FILE',
+ ],
+ 'example' => 'DIRECTORY',
+ ],
+ 'SourceType' => [
+ 'title' => 'SourceType',
+ 'description' => '来源类型。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PAI_PUBLIC_DATASET' => 'PAI_PUBLIC_DATASET',
+ 'ITAG' => 'ITAG',
+ 'USER' => 'USER',
+ ],
+ 'example' => 'USER',
+ ],
+ 'SourceId' => [
+ 'title' => 'SourceId',
+ 'description' => '来源ID。',
+ 'type' => 'string',
+ 'example' => 'jdnhf***fnrimv',
+ ],
+ 'Description' => [
+ 'title' => 'Description',
+ 'description' => '数据集的描述。',
+ 'type' => 'string',
+ 'example' => 'This is a description of a dataset.',
+ ],
+ 'WorkspaceId' => [
+ 'title' => 'WorkspaceId',
+ 'description' => '数据集所在工作空间ID。',
+ 'type' => 'string',
+ 'example' => '478**',
+ ],
+ 'Options' => [
+ 'title' => 'Options',
+ 'description' => '扩展字段(选项),JsonString类型。'."\n"
+ .'当DLC使用数据集时,可通过配置mountPath字段指定数据集默认挂载路径。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "mountPath": "/mnt/data/"'."\n"
+ .'}',
+ ],
+ 'Accessibility' => [
+ 'title' => 'Accessibility',
+ 'description' => '工作空间可见度。取值:'."\n"
+ .'- PRIVATE(默认值):表示工作空间内自己以及管理员可见。'."\n"
+ .'- PUBLIC:工作空间所有用户可见。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PRIVATE',
+ ],
+ 'ProviderType' => [
+ 'title' => 'ProviderType',
+ 'description' => '数据集的数据源来源类型。取值:'."\n"
+ .'- Ecs(默认值)'."\n"
+ .'- Lingjun',
+ 'type' => 'string',
+ 'example' => 'Ecs',
+ ],
+ 'SourceDatasetId' => [
+ 'title' => 'SourceDatasetId',
+ 'description' => '标注数据集的来源数据集ID。',
+ 'type' => 'string',
+ 'example' => 'd-bvfasdfxxxxj8o411',
+ ],
+ 'SourceDatasetVersion' => [
+ 'title' => 'SourceDatasetVersion',
+ 'description' => '标注数据集的来源数据集版本。',
+ 'type' => 'string',
+ 'example' => 'v2',
+ ],
+ 'TagTemplateType' => [
+ 'title' => 'TagTemplateType',
+ 'description' => 'iTAG标注数据集的标注模板。',
+ 'type' => 'string',
+ 'example' => 'text-classification',
+ ],
+ 'LatestVersion' => [
+ 'title' => 'LatestVersion',
+ 'description' => '数据集的最新版本信息。',
+ '$ref' => '#/components/schemas/DatasetVersion',
+ ],
+ 'MountAccess' => [
+ 'title' => 'MountAccess',
+ 'description' => 'MountAccess',
+ 'type' => 'string',
+ 'example' => 'RO RW',
+ ],
+ 'ImportInfo' => [
+ 'title' => 'ImportInfo',
+ 'description' => '数据集的存储导入配置信息,支持OSS/NAS/CPFS等。'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>OSS</summary>'."\n"
+ .'{'."\n"
+ .'"region": "${region}",//地域ID'."\n"
+ .'"bucket": "${bucket}",//bucket名称'."\n"
+ .'"path": "${path}" //文件路径'."\n"
+ .'}'."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>NAS</summary>'."\n"
+ ."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>CPFS</summary>'."\n"
+ .'区块内容'."\n"
+ .'</details>'."\n"
+ ."\n\n"
+ .'<details>'."\n"
+ .'<summary>智算CPFS</summary>'."\n"
+ .'区块内容'."\n"
+ .'</details>',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "region": "cn-wulanchabu",'."\n"
+ .' "fileSystemId": "bmcpfs-xxxxxxxxxxx",'."\n"
+ .' "path": "/mnt",'."\n"
+ .' "mountTarget": "cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com",'."\n"
+ .' "isVpcMount": true'."\n"
+ .'}',
+ ],
+ 'Edition' => [
+ 'title' => 'Edition',
+ 'description' => '数据集类型。枚举值:'."\n"
+ ."\n"
+ .'BASIC:基础型。不支持数据集文件元数据管理。'."\n"
+ .'ADVANCED:高级型。仅OSS类型支持,每个版本支持最多100万个文件元数据管理。',
+ 'type' => 'string',
+ 'example' => 'BASIC',
+ ],
+ 'Labels' => [
+ 'title' => 'Labels',
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'example' => '{"Key": "env", "Value": "test"}',
+ '$ref' => '#/components/schemas/Label',
+ ],
+ ],
+ 'MountAccessReadWriteRoleIdList' => [
+ 'title' => 'MountAccessReadWriteRoleIdList',
+ 'description' => '具有该数据集读写权限的工作空间角色名列表,PAI开头的为基础角色ID,role-开头的为自定义角色ID。如果列表中包含了"*",则表示对所有角色都有读写权限。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '工作空间角色ID。',
+ 'type' => 'string',
+ 'example' => 'PAI.AlgoOperator',
+ ],
+ ],
+ 'IsShared' => [
+ 'description' => '是否为共享数据集。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'example' => 'false',
+ ],
+ 'SharedFrom' => [
+ 'description' => '描述该分享数据集的来源关系。仅IsShared为true时有效。',
+ '$ref' => '#/components/schemas/DatasetShareRelationship',
+ ],
+ 'SharingConfig' => [
+ 'description' => '当前数据集的分享配置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'SharedTo' => [
+ 'description' => '多条分享配置关系。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '该数据集被分享的分享配置关系。',
+ '$ref' => '#/components/schemas/DatasetShareRelationship',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DatasetFileMeta' => [
+ 'title' => 'A short description of struct',
+ 'description' => '数据集文件元数据详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetFileMetaId' => [
+ 'title' => 'Dataset FileMeta Id',
+ 'description' => '数据集文件元数据ID。',
+ 'type' => 'string',
+ 'example' => '07914c9534586e4e7aa6e9dbca5009082df******fd8a0d857b33296c59bf6',
+ ],
+ 'Uri' => [
+ 'title' => 'Uri',
+ 'description' => '文件唯一URI。用于记录文件唯一路径。支持OSS、NAS下的文件路径。'."\n"
+ .'<details>'."\n"
+ .'<summary>OSS</summary>'."\n"
+ .'oss://${bucket}/${path}'."\n"
+ .'</details>'."\n"
+ .'<details>'."\n"
+ .'<summary>NAS</summary>'."\n"
+ .'nas://${fileSystemId}/${path}'."\n"
+ .'</details>',
+ 'type' => 'string',
+ 'example' => 'oss://test-bucket/dataset/cat.png',
+ ],
+ 'FileName' => [
+ 'title' => 'File Name',
+ 'description' => '文件名。',
+ 'type' => 'string',
+ 'example' => 'cat.png',
+ ],
+ 'DownloadUrl' => [
+ 'title' => 'Download Url',
+ 'description' => '文件的下载地址。',
+ 'type' => 'string',
+ 'example' => 'https://test-bucket.oss-cn-shanghai.aliyuncs.com/dataset/cat.png?Expires=171280****&OSSAccessKeyId=LTAI************&Signature=****jZcXOn7FHMCT1DLE22NuNjs%3D',
+ ],
+ 'Score' => [
+ 'title' => 'Score',
+ 'description' => '相似度得分。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '0.6',
+ ],
+ 'DataSize' => [
+ 'title' => 'Size',
+ 'description' => '文件大小,字节。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '120000',
+ ],
+ 'FileFingerPrint' => [
+ 'title' => 'FileFingerPrint',
+ 'description' => '文件指纹值。用于确定文件内容的唯一性,文件内容修改后该值会发生变化。OSS文件使用ETag,NAS文件使用MD5值。',
+ 'type' => 'string',
+ 'example' => 'D41D8CD98F*****E9800998ECF8'."\n",
+ ],
+ 'FileUpdateTime' => [
+ 'title' => '文件修改时间,格式:ISO8601格式',
+ 'description' => '文件最后修改时间。ISO8601格式UTC时间戳。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'example' => '2025-01-12T14:36:01Z',
+ ],
+ 'Tags' => [
+ 'title' => '标签组(json格式)',
+ 'description' => '该元数据的标签合集,JSON String格式。包括:'."\n"
+ .'- 算法标签组:'."\n"
+ .' - ai: 对单个元数据,全部的算法打标任务汇总后的标签名列表。'."\n"
+ .'- 用户自定义标签组:'."\n"
+ .' - user: 对单个元数据,用户自行添加的标签名列表。'."\n"
+ .' - user-delete-ai-tags: 对单个元数据,算法标签组中用户需要删除的标签名列表。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "ai":'."\n"
+ .' ['."\n"
+ .' "Lane line",'."\n"
+ .' "Water horse",'."\n"
+ .' "Sunny day"'."\n"
+ .' ],'."\n"
+ .' "user":'."\n"
+ .' ['."\n"
+ .' "Everett",'."\n"
+ .' "Intelligent driving Dataset 1",'."\n"
+ .' "Cloudy day"'."\n"
+ .' ],'."\n"
+ .' "user-delete-ai-tags":'."\n"
+ .' ['."\n"
+ .' "Sunny day"'."\n"
+ .' ]'."\n"
+ .'}',
+ ],
+ 'ThumbnailUrl' => [
+ 'title' => 'Thumbnail Url',
+ 'description' => '缩略图地址。',
+ 'type' => 'string',
+ 'example' => 'https://test-bucket.oss-cn-shanghai.aliyuncs.com/dataset/cat.png?Expires=171280****&OSSAccessKeyId=LTAI************&Signature=****jZcXOn7FHMCT1DLE22NuNjs%3D',
+ ],
+ 'MetaAttributes' => [
+ 'title' => '基础元数据属性,格式为json string',
+ 'description' => '文件的特定元数据。例如图片宽高信息,视频文件的码率分辨率信息等。暂不具备检索能力。JSON String格式。',
+ 'type' => 'string',
+ 'example' => '{ "ImageHeight": 400, "ImageWidth": 800 }',
+ ],
+ 'SemanticIndexJobId' => [
+ 'title' => '语义索引构建的任务ID',
+ 'description' => '语义索引最后一次构建的任务ID。',
+ 'type' => 'string',
+ 'example' => 'dsjob-klfwtjto****scvt3',
+ ],
+ 'SemanticIndexUpdateTime' => [
+ 'title' => '语义索引构建的时间',
+ 'description' => '语义索引最后更新时间。ISO8601格式UTC时间戳。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'example' => '2021-01-12T14:36:01.000Z',
+ ],
+ 'FileCreateTime' => [
+ 'title' => '文件创建时间,格式:ISO8601格式',
+ 'description' => '文件创建时间。ISO8601格式UTC时间戳。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'example' => '2021-01-12T14:36:01.000Z',
+ ],
+ 'FileType' => [
+ 'title' => '文件类型',
+ 'description' => '文件类型。与 MIME Type 相同。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'image' => 'image',
+ 'application' => 'application',
+ 'video' => 'video',
+ 'audio' => 'audio',
+ 'text' => 'text',
+ ],
+ 'example' => 'image',
+ ],
+ 'ContentType' => [
+ 'title' => '文件的MIME Type',
+ 'description' => '文件的 MIME 类型。包含 Type 和 SubType。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'image/png' => 'image/png',
+ 'image/jpeg' => 'image/jpeg',
+ 'image/tiff' => 'image/tiff',
+ 'image/bmp' => 'image/bmp',
+ 'image/gif' => 'image/gif',
+ 'image/x-icon' => 'image/x-icon',
+ 'image/svg+xml' => 'image/svg+xml',
+ 'image/webp' => 'image/webp',
+ 'image/heic ' => 'image/heic ',
+ ],
+ 'example' => 'image/jpeg',
+ ],
+ 'Status' => [
+ 'description' => '元数据当前状态:'."\n"
+ .'* ACTIVE: 当前可用'."\n"
+ .'* DELETED:已被删除',
+ 'type' => 'string',
+ 'example' => 'ACTIVE',
+ 'enum' => [
+ 'ACTIVE',
+ 'DELETED',
+ ],
+ ],
+ ],
+ ],
+ 'DatasetFileMetaConentUpdate' => [
+ 'title' => 'A short description of struct',
+ 'description' => '待更新的文件元数据详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'FileName' => [
+ 'title' => '文件名',
+ 'description' => '文件名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '00001.jpeg'."\n",
+ ],
+ 'Comment' => [
+ 'title' => '注释',
+ 'description' => '文件注释。',
+ 'type' => 'string',
+ 'example' => 'The first image file in the dataset.',
+ ],
+ 'FileCreateTime' => [
+ 'title' => '创建时间,格式:ISO8601格式',
+ 'description' => '文件创建时间,格式:ISO8601格式。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'example' => '2025-01-12T14:36:01.001Z'."\n",
+ ],
+ 'FileUpdateTime' => [
+ 'title' => '修改时间,格式:ISO8601格式',
+ 'description' => '文件最后修改时间,格式:ISO8601格式。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'example' => '2025-01-12T14:36:01.001Z'."\n",
+ ],
+ 'DataSize' => [
+ 'title' => '文件大小,字节',
+ 'description' => '文件大小,字节。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '10000',
+ ],
+ 'FileType' => [
+ 'title' => '文件类型 image/audio/video/text',
+ 'description' => '文件类型。与MIME Type相同。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'image' => 'image',
+ 'application' => 'application',
+ 'audio' => 'audio',
+ 'video' => 'video',
+ 'text' => 'text',
+ ],
+ 'example' => 'image',
+ ],
+ 'ContentType' => [
+ 'title' => 'image/jpeg',
+ 'description' => '文件的MIME类型。包含Type和SubType。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'image/png' => 'PNG',
+ ' image/svg+xml' => 'SVG',
+ 'image/jpeg' => 'JPEG',
+ 'image/tiff' => 'TIFF',
+ ' image/gif' => 'GIF',
+ 'image/bmp' => 'BMP',
+ 'image/x-icon' => 'ICON',
+ 'image/heic' => 'HEIC',
+ 'image/webp' => 'WEBP',
+ ],
+ 'example' => 'image/jpeg'."\n",
+ ],
+ 'MetaAttributes' => [
+ 'title' => 'JSON String,存储文件的基础元数据,暂不具备检索能力',
+ 'description' => '文件的特定元数据。例如图片宽高信息,视频文件的码率分辨率信息等。暂不具备检索能力。JSON String格式。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "Image":'."\n"
+ .' {'."\n"
+ .' "Width": 1920,'."\n"
+ .' "Height": 1080,'."\n"
+ .' "Channel": 3'."\n"
+ .' }'."\n"
+ .'}',
+ ],
+ 'Tags' => [
+ 'title' => '待更新的标签组(json string), user标签组直接更新,ai标签组需要配合TagJobId字段更新',
+ 'description' => '待更新的标签组。'."\n"
+ ."\n"
+ .'- 执行算法打标更新(必须设置有效的TagJobId)'."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "ai":["车道线", "水马", "晴天"]'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ ."\n"
+ .'- 用户手动打标:(add/remove表示对标签组内的标签进行增加/删除操作)'."\n"
+ .'用户可操作的标签组为:'."\n"
+ .' - user: 对单个元数据,用户自行添加/删除的标签名列表。'."\n"
+ .' - user-delete-ai-tags: 对单个元数据,算法标签组中用户需要删除的标签名列表。'."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "user":{'."\n"
+ .' "add":["车道线","晴天"],'."\n"
+ .' "remove":["水马"]'."\n"
+ .' },'."\n"
+ .' "user-delete-ai-tags":{'."\n"
+ .' "add": ["地面阴影"],'."\n"
+ .' "remove": []'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ .'```',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "user":{'."\n"
+ .' "add":["Lane line","Sunny day"],'."\n"
+ .' "remove":["Water horse"]'."\n"
+ .' },'."\n"
+ .' "user-delete-ai-tags":{'."\n"
+ .' "add": ["Ground shadow"],'."\n"
+ .' "remove": []'."\n"
+ .' }'."\n"
+ .'}',
+ ],
+ 'DatasetFileMetaId' => [
+ 'title' => 'uuid',
+ 'description' => '数据集文件元数据ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '07914c9534586e4e7aa6e9dbca5009082df******fd8a0d857b33296c59bf6'."\n",
+ ],
+ 'SemanticIndexJobId' => [
+ 'title' => '语义索引构建的任务ID',
+ 'description' => '语义索引构建的任务ID。',
+ 'type' => 'string',
+ 'example' => 'dsjob-klfwt*****l0escvt3',
+ ],
+ 'SemanticIndexUpdateTime' => [
+ 'title' => '语义索引构建的时间',
+ 'description' => '语义索引构建的时间。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'example' => '2021-01-12T14:36:01.000Z',
+ ],
+ 'FileFingerPrint' => [
+ 'title' => '文件指纹',
+ 'description' => '文件指纹信息。',
+ 'type' => 'string',
+ 'example' => '124FB71******7BE45608CDEA4DE54B3',
+ ],
+ ],
+ ],
+ 'DatasetFileMetaContentCreate' => [
+ 'title' => 'A short description of struct',
+ 'description' => '文件元数据内容详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'FileName' => [
+ 'title' => '文件名',
+ 'description' => '文件名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '00001.jpeg',
+ ],
+ 'Uri' => [
+ 'title' => 'oss/nas/cpfs uri',
+ 'description' => '文件唯一URI。用于记录文件唯一路径。支持OSS、NAS下的文件路径。'."\n"
+ .'<details>'."\n"
+ .'<summary>OSS</summary>'."\n"
+ .'oss://${bucket}/${path}'."\n"
+ .'</details>'."\n"
+ .'<details>'."\n"
+ .'<summary>NAS</summary>'."\n"
+ .'nas://${fileSystemId}/${path}'."\n"
+ .'</details>',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'oss://*****-test/dataset/1653421.jpg'."\n"
+ .'nas://0e25d***dff/dataset/1653421.jpg',
+ ],
+ 'Comment' => [
+ 'title' => '注释',
+ 'description' => '文件注释。',
+ 'type' => 'string',
+ 'example' => 'The first image file in the dataset.',
+ ],
+ 'FileCreateTime' => [
+ 'title' => '创建时间,格式:ISO8601格式',
+ 'description' => '文件创建时间,格式:ISO8601格式。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'example' => '2025-01-12T14:36:01Z',
+ ],
+ 'FileUpdateTime' => [
+ 'title' => '修改时间,格式:ISO8601格式',
+ 'description' => '文件最后修改时间,格式:ISO8601格式。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'required' => true,
+ 'example' => '2025-01-12T14:36:01Z',
+ ],
+ 'FileFingerPrint' => [
+ 'title' => 'md5/oss etag',
+ 'description' => '文件指纹值。用于确定文件内容的唯一性,文件内容修改后该值会发生变化。OSS文件使用ETag,NAS文件使用MD5值。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'D41D8CD98F*****E9800998ECF8',
+ ],
+ 'DataSize' => [
+ 'title' => '文件大小,字节',
+ 'description' => '文件大小,字节。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '10000',
+ ],
+ 'FileType' => [
+ 'title' => '文件类型 image/audio/video/text',
+ 'description' => '文件类型。与MIME Type相同。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'image' => 'image',
+ 'application' => 'application',
+ 'audio' => 'audio',
+ 'video' => 'video',
+ 'text' => 'text',
+ ],
+ 'example' => 'image',
+ ],
+ 'ContentType' => [
+ 'title' => 'image/jpeg',
+ 'description' => '文件的MIME类型。包含Type和SubType。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'image/png' => 'PNG',
+ 'image/jpeg' => 'JPEG',
+ 'image/tiff' => 'TIFF',
+ 'image/bmp' => 'BMP',
+ 'image/gif' => 'GIF',
+ 'image/x-icon' => 'ICON',
+ 'image/svg+xml' => 'SVG',
+ 'image/webp' => 'WEBP',
+ 'image/heic ' => 'HEIC',
+ ],
+ 'example' => 'image/jpeg',
+ ],
+ 'MetaAttributes' => [
+ 'title' => 'JSON String,存储文件的基础元数据,暂不具备检索能力',
+ 'description' => '文件的特定元数据,暂不具备检索能力。JSON String格式。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "ImageHeight": 1080,'."\n"
+ .' "ImageWidth": 1920'."\n"
+ .'}',
+ ],
+ 'Tags' => [
+ 'title' => '标签组(json string),仅更新user标签组',
+ 'description' => '用户手动打标:(add表示对标签组内的标签进行增加操作)。JSON String格式。'."\n"
+ .'可操作的标签组为:'."\n"
+ .'- user: 对单个元数据,用户自行添加的标签名列表。'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "user":{'."\n"
+ .' "add":["车道线","晴天"]'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ .'```',
+ 'type' => 'string',
+ 'deprecated' => false,
+ 'example' => '{'."\n"
+ .' "user":{'."\n"
+ .' "add":["Lane line","Sunny day"]'."\n"
+ .' }'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ 'DatasetFileMetaContentGet' => [
+ 'title' => 'A short description of struct',
+ 'description' => '获取的数据集文件元数据详情',
+ 'type' => 'object',
+ 'properties' => [
+ 'FileName' => [
+ 'title' => '文件名',
+ 'description' => '文件名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '00001.jpeg',
+ ],
+ 'Uri' => [
+ 'title' => 'oss/nas/cpfs uri',
+ 'description' => '文件唯一URI。用于记录文件唯一路径。支持OSS、NAS下的文件路径。'."\n"
+ .'<details>'."\n"
+ .'<summary>OSS</summary>'."\n"
+ .'oss://${bucket}/${path}'."\n"
+ .'</details>'."\n"
+ .'<details>'."\n"
+ .'<summary>NAS</summary>'."\n"
+ .'nas://${fileSystemId}/${path}'."\n"
+ .'</details>',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'oss://*****-test/dataset/1653421.jpg'."\n"
+ .'nas://0e25d***dff/dataset/1653421.jpg'."\n",
+ ],
+ 'Comment' => [
+ 'title' => '注释',
+ 'description' => '文件注释。',
+ 'type' => 'string',
+ 'example' => 'The first image file in the dataset.',
+ ],
+ 'FileCreateTime' => [
+ 'title' => '创建时间,格式:ISO8601格式',
+ 'description' => '文件的创建时间,格式:ISO8601格式。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'example' => '2025-01-12T14:36:01Z',
+ ],
+ 'FileUpdateTime' => [
+ 'title' => '修改时间,格式:ISO8601格式',
+ 'description' => '文件的最后修改时间,格式:ISO8601格式。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'required' => false,
+ 'example' => '2025-01-12T14:36:01Z',
+ ],
+ 'FileFingerPrint' => [
+ 'title' => 'md5/oss etag',
+ 'description' => '文件指纹值。用于确定文件内容的唯一性,文件内容修改后该值会发生变化。OSS文件使用ETag,NAS文件使用MD5值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'D41D8CD98F*****E9800998ECF8'."\n",
+ ],
+ 'DataSize' => [
+ 'title' => '文件大小,字节',
+ 'description' => '文件大小,字节。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '10000',
+ ],
+ 'FileType' => [
+ 'title' => '文件类型 image/audio/video/text',
+ 'description' => '文件类型。与 MIME Type 相同。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'image' => 'image',
+ 'application' => 'application',
+ 'audio' => 'audio',
+ 'video' => 'video',
+ 'text' => 'text',
+ ],
+ 'example' => 'image',
+ ],
+ 'ContentType' => [
+ 'title' => 'image/jpeg',
+ 'description' => '文件的 MIME 类型。包含 Type 和 SubType。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'image/png' => 'PNG',
+ 'image/jpeg' => 'JPEG',
+ 'image/tiff' => 'TIFF',
+ 'image/bmp' => 'BMP',
+ 'image/gif' => 'GIF',
+ 'image/x-icon' => 'ICON',
+ 'image/svg+xml' => 'SVG',
+ 'image/heic' => 'HEIC',
+ 'image/webp' => 'WEBP',
+ ],
+ 'example' => 'image/png',
+ ],
+ 'MetaAttributes' => [
+ 'title' => 'JSON String,存储文件的基础元数据,暂不具备检索能力',
+ 'description' => '文件的特定元数据,暂不具备检索能力。JSON String格式。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "ImageHeight": 1080,'."\n"
+ .' "ImageWidth": 1920'."\n"
+ .'}',
+ ],
+ 'Tags' => [
+ 'title' => '标签组(json格式)',
+ 'description' => '该元数据的标签合集,包括:'."\n"
+ .'- 算法标签组:'."\n"
+ .' - ai: 对单个元数据,全部的算法打标任务汇总后的标签名列表。'."\n"
+ .'- 用户自定义标签组:'."\n"
+ .' - user: 对单个元数据,用户自行添加的标签名列表。'."\n"
+ .' - user-delete-ai-tags: 对单个元数据,算法标签组中用户需要删除的标签名列表。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "ai":'."\n"
+ .' ['."\n"
+ .' "Lane line",'."\n"
+ .' "Water horse",'."\n"
+ .' "Sunny day"'."\n"
+ .' ],'."\n"
+ .' "user":'."\n"
+ .' ['."\n"
+ .' "Everett",'."\n"
+ .' "Intelligent driving Dataset 1",'."\n"
+ .' "Cloudy day"'."\n"
+ .' ],'."\n"
+ .' "user-delete-ai-tags":'."\n"
+ .' ['."\n"
+ .' "Sunny day"'."\n"
+ .' ]'."\n"
+ .'}',
+ ],
+ 'DatasetFileMetaId' => [
+ 'title' => 'uuid',
+ 'description' => '数据集文件元数据ID。',
+ 'type' => 'string',
+ 'example' => '07914c9534586e4e7aa6e9dbca5009082df******fd8a0d857b33296c59bf6'."\n",
+ ],
+ 'FileDir' => [
+ 'title' => 'oss/nas/cpfs文件所在目录的路径',
+ 'description' => 'oss/nas/cpfs文件所在目录的路径。',
+ 'type' => 'string',
+ 'example' => 'icp_certificate_card/icp/1577179298694813/1716429710367',
+ ],
+ 'TagUpdateTime' => [
+ 'title' => '标签最后修改时间,格式iso8601',
+ 'description' => '标签最后修改时间,格式iso8601。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'example' => '2021-01-12T14:36:01.000Z',
+ ],
+ 'SemanticIndexJobId' => [
+ 'title' => '语义索引构建的任务ID',
+ 'description' => '语义索引构建的任务ID。',
+ 'type' => 'string',
+ 'example' => 'dsjob-klfwtjtov*****scvt3',
+ ],
+ 'SemanticIndexUpdateTime' => [
+ 'title' => '语义索引构建的时间',
+ 'description' => '语义索引构建的时间。',
+ 'type' => 'string',
+ 'format' => 'iso8601',
+ 'example' => '2021-01-12T14:36:01.000Z',
+ ],
+ 'Status' => [
+ 'type' => 'string',
+ 'enum' => [
+ 'ACTIVE',
+ 'DELETED',
+ ],
+ ],
+ ],
+ ],
+ 'DatasetFileMetaResponse' => [
+ 'title' => 'A short description of struct',
+ 'description' => '单个文件元数据操的作返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetFileMetaId' => [
+ 'title' => '文件元数据ID',
+ 'description' => '文件元数据ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '07914c9534586e4e7aa6e9dbca5009082df*******8a0d857b33296c59bf6',
+ ],
+ 'Result' => [
+ 'title' => 'Not Found/Failed ...',
+ 'description' => '文件元数据操作失败原因描述。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Not Found',
+ ],
+ 'Uri' => [
+ 'title' => 'oss/nas/cpfs uri',
+ 'description' => '文件的URI。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'oss://l*****-test/dataset/1653421.jpg',
+ ],
+ ],
+ ],
+ 'DatasetFileMetasStat' => [
+ 'title' => 'A short description of struct',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => '元数据属性内容。',
+ 'type' => 'string',
+ 'example' => 'cat',
+ ],
+ 'Count' => [
+ 'title' => '聚合后的数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ 'DatasetJob' => [
+ 'title' => '数据集任务',
+ 'description' => '数据集任务',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetJobId' => [
+ 'title' => '任务ID',
+ 'description' => '任务ID。',
+ 'type' => 'string',
+ 'example' => 'dsjob-9jx1*****uj9e',
+ ],
+ 'JobAction' => [
+ 'title' => '任务操作',
+ 'description' => '任务操作。',
+ 'type' => 'string',
+ 'example' => 'SemanticIndex',
+ ],
+ 'CreateTime' => [
+ 'title' => '任务创建时间(UTC)',
+ 'description' => '任务创建时间(UTC)',
+ 'type' => 'string',
+ 'example' => '2023-06-20T04:05:59Z',
+ ],
+ 'FinishTime' => [
+ 'title' => '任务结束时间(UTC)',
+ 'description' => '任务结束时间(UTC)',
+ 'type' => 'string',
+ 'example' => '2023-06-20T06:03:48Z',
+ ],
+ 'Status' => [
+ 'title' => '任务状态',
+ 'description' => '任务状态。',
+ 'type' => 'string',
+ 'example' => 'Running',
+ ],
+ 'Description' => [
+ 'title' => '任务描述',
+ 'description' => '任务描述。',
+ 'type' => 'string',
+ 'example' => 'This is a job description of a dataset.',
+ ],
+ 'JobMode' => [
+ 'title' => '索引类型',
+ 'description' => '任务模式。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Full' => 'Full',
+ ],
+ 'example' => 'Full',
+ ],
+ 'JobSpec' => [
+ 'title' => '任务明细',
+ 'description' => '任务明细。',
+ 'type' => 'string',
+ 'example' => '{\\"modelId\\":\\"xxx\\"}',
+ ],
+ 'Logs' => [
+ 'title' => '任务结果信息',
+ 'description' => '任务日志列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '日志行内容',
+ 'type' => 'string',
+ 'example' => '2025-02-17 09:58:10.143 INFO: Job completed successfully.',
+ ],
+ ],
+ 'TotalFileCount' => [
+ 'title' => '任务文件总量',
+ 'description' => '任务文件总量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1000',
+ ],
+ 'CompletedFileCount' => [
+ 'title' => '已完成文件总量',
+ 'description' => '已完成文件总量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '990',
+ ],
+ 'FailedFileCount' => [
+ 'title' => '失败文件总量',
+ 'description' => '失败文件总量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'DatasetVersion' => [
+ 'title' => '数据集版本',
+ 'description' => '数据集版本',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间ID',
+ 'type' => 'string',
+ 'example' => '145883',
+ ],
+ ],
+ ],
+ 'DatasetJobConfig' => [
+ 'title' => 'A short description of struct',
+ 'description' => '数据集任务配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetJobConfigId' => [
+ 'title' => 'DatasetJobConfigId',
+ 'description' => '数据集任务配置ID',
+ 'type' => 'string',
+ 'example' => 'dscfg-xxxxxxxxxxxx',
+ ],
+ 'CreateTime' => [
+ 'title' => 'CreateTime',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2025-01-14T01:37:37Z',
+ ],
+ 'ModifyTime' => [
+ 'title' => 'ModifyTime',
+ 'description' => '修改时间',
+ 'type' => 'string',
+ 'example' => '2024-10-11T02:18:54Z',
+ ],
+ 'ConfigType' => [
+ 'title' => 'ConfigType',
+ 'description' => '数据集任务配置类型',
+ 'type' => 'string',
+ 'example' => 'MultimodalIntelligentTag',
+ ],
+ 'Config' => [
+ 'title' => 'Config',
+ 'description' => '数据集任务配置内容,json格式。',
+ 'type' => 'string',
+ 'example' => '{ "apiKey":"sk-xxxxxxxxxxxxxxxxxxxxx" }',
+ ],
+ 'WorkspaceId' => [
+ 'title' => 'WorkspaceId',
+ 'description' => '工作空间ID',
+ 'type' => 'string',
+ 'example' => '234*34',
+ ],
+ 'DatasetVersion' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'DatasetLabel' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'A short description of struct',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => 'Key',
+ 'description' => 'Key',
+ 'type' => 'string',
+ ],
+ 'Value' => [
+ 'title' => 'Value',
+ 'description' => 'Value',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'DatasetShareRelationship' => [
+ 'description' => '数据集分享配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'title' => '分享状态:'."\n"
+ .'● active:分享关系正常可用,仅该状态下会展示完整的数据集信息'."\n"
+ .'● expired: 分享超过预设的有效期'."\n"
+ .'● revoked: 分享被主动取消(分享者手动撤销分享)'."\n"
+ .'● invalid:分享因系统原因自动失效(如源数据集被删除)',
+ 'description' => '分享状态:'."\n"
+ .'* ACTIVE:分享关系正常可用,仅该状态下会展示完整的数据集信息'."\n"
+ .'* EXPIRED: 分享超过预设的有效期'."\n"
+ .'* REVOKED: 分享被主动取消(分享者手动撤销分享)'."\n"
+ .'* INVALID:分享因系统原因自动失效(如源数据集被删除)',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'REVOKED' => 'REVOKED',
+ 'ACTIVE' => 'ACTIVE',
+ 'EXPIRED' => 'EXPIRED',
+ 'INVALID' => 'INVALID',
+ ],
+ 'example' => 'ACTIVE',
+ ],
+ 'SourceTenantId' => [
+ 'title' => '源数据集租户ID',
+ 'description' => '源数据集租户ID。分享者需为该工作空间管理员或者主账号身份。',
+ 'type' => 'string',
+ 'example' => '148***************115',
+ ],
+ 'SourceWorkspaceId' => [
+ 'title' => '源数据集工作空间ID',
+ 'description' => '源数据集工作空间ID。',
+ 'type' => 'string',
+ 'example' => '33**19',
+ ],
+ 'TenantId' => [
+ 'title' => '目标租户ID',
+ 'description' => '目标租户ID,必须为主账号ID。'."\n"
+ .'> 设置分享关系时必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '153***************249',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '目标工作空间ID',
+ 'description' => '目标工作空间ID。需与源数据集工作空间ID不同。'."\n"
+ ."\n"
+ .'> 设置分享关系时必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '42**2',
+ ],
+ 'IsSecureMode' => [
+ 'title' => '是否需要安全防护',
+ 'description' => '是否需要对分享的数据集开启安全防护。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'example' => 'true',
+ ],
+ 'SharedAt' => [
+ 'title' => '分享时间,ISO 8601格式',
+ 'description' => '分享时间,ISO 8601格式。',
+ 'type' => 'string',
+ 'example' => '2025-08-27T12:23:58Z',
+ ],
+ 'ExpiresAt' => [
+ 'title' => '过期时间,ISO 8601格式',
+ 'description' => '过期时间,ISO 8601格式。'."\n"
+ ."\n"
+ .'> 如不填写则表示永不过期。',
+ 'type' => 'string',
+ 'example' => '2026-08-27T12:23:58Z',
+ ],
+ 'AllowedMountAccessLevels' => [
+ 'title' => '分享时指定允许的权限范围,使用被分享的数据集时权限需在此列表范围内'."\n"
+ .'● RO: 只读权限,被分享方只能读取数据集内容'."\n"
+ .'● RW: 读写权限,被分享方可以读取和修改数据集内容',
+ 'description' => '分享时指定允许的权限范围,使用被分享的数据集时权限将会被限制在此列表范围内。缺省为["RO"]。'."\n"
+ .'* RO: 只读权限,被分享方只能读取数据集内容。'."\n"
+ .'* RW: 读写权限,被分享方可以读取和修改数据集内容。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据集权限。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'RW' => 'RW',
+ 'RO' => 'RO',
+ ],
+ 'example' => 'RO',
+ ],
+ 'required' => false,
+ ],
+ 'Extra' => [
+ 'description' => '分享补充配置。json string格式。'."\n"
+ .'* AllowExportModel:是否允许训练后的模型导出'."\n"
+ .'* AllowAccessDLCWebTerminal:打开/关闭DLC任务中的登录容器的权限'."\n"
+ .'* AllowAccessDLCFullLog:打开/关闭全量展示任务日志的权限',
+ 'type' => 'string',
+ 'example' => '{"AllowExportModel":false,"AllowAccessDLCWebTerminal":false,"AllowAccessDLCFullLog":false}',
+ ],
+ ],
+ ],
+ 'DatasetVersion' => [
+ 'title' => 'Dataset Version struct',
+ 'description' => 'Dataset Version struct',
+ 'type' => 'object',
+ 'properties' => [
+ 'VersionName' => [
+ 'title' => 'version name',
+ 'description' => 'version name',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => 'create time',
+ 'description' => 'create time',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => 'modify time',
+ 'description' => 'modify time',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'Property' => [
+ 'title' => 'property',
+ 'description' => 'property',
+ 'type' => 'string',
+ 'example' => 'FILE',
+ ],
+ 'DataSourceType' => [
+ 'title' => 'DataSourceType',
+ 'description' => 'DataSourceType',
+ 'type' => 'string',
+ 'example' => 'OSS',
+ ],
+ 'Uri' => [
+ 'title' => 'Uri',
+ 'description' => 'Uri',
+ 'type' => 'string',
+ 'example' => 'OSS://xxx',
+ ],
+ 'Labels' => [
+ 'title' => 'Labels',
+ 'description' => 'Labels',
+ 'type' => 'array',
+ 'items' => [
+ '$ref' => '#/components/schemas/Label',
+ ],
+ ],
+ 'Options' => [
+ 'title' => 'Options',
+ 'description' => 'Options',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "mountPath": "/mnt/data/"'."\n"
+ .'}',
+ ],
+ 'SourceType' => [
+ 'title' => 'SourceType',
+ 'description' => 'SourceType',
+ 'type' => 'string',
+ 'example' => 'USER',
+ ],
+ 'Description' => [
+ 'title' => 'Description',
+ 'description' => 'Description',
+ 'type' => 'string',
+ 'example' => 'base model v1',
+ ],
+ 'SourceId' => [
+ 'title' => 'SourceId',
+ 'description' => 'SourceId',
+ 'type' => 'string',
+ 'example' => 'd-65mrsr5fub4u74lej3',
+ ],
+ 'DataCount' => [
+ 'title' => 'DataCount',
+ 'description' => 'DataCount',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10000',
+ ],
+ 'DataSize' => [
+ 'title' => 'DataSize',
+ 'description' => 'DataSize',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10000',
+ ],
+ 'MountAccess' => [
+ 'title' => 'MountAccess',
+ 'description' => 'MountAccess',
+ 'type' => 'string',
+ 'example' => 'RO',
+ ],
+ 'ImportInfo' => [
+ 'title' => 'ImportInfo',
+ 'description' => 'ImportInfo',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "region": "cn-wulanchabu",'."\n"
+ .' "fileSystemId": "bmcpfs-xxxxxxxxxxx",'."\n"
+ .' "path": "/mnt",'."\n"
+ .' "mountTarget": "cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com",'."\n"
+ .' "isVpcMount": true'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ 'Experiment' => [
+ 'title' => 'A short description of struct',
+ 'description' => '实验',
+ 'type' => 'object',
+ 'properties' => [
+ 'ExperimentId' => [
+ 'title' => 'ExperimentId',
+ 'description' => 'ExperimentId',
+ 'type' => 'string',
+ ],
+ 'Name' => [
+ 'title' => 'Name',
+ 'description' => 'Name',
+ 'type' => 'string',
+ ],
+ 'WorkspaceId' => [
+ 'title' => 'WorkspaceId',
+ 'description' => 'WorkspaceId',
+ 'type' => 'string',
+ ],
+ 'ArtifactUri' => [
+ 'title' => 'ArtifactUri',
+ 'description' => 'ArtifactUri',
+ 'type' => 'string',
+ ],
+ 'TensorboardLogUri' => [
+ 'title' => 'TensorboardLogUri',
+ 'description' => 'TensorboardLogUri',
+ 'type' => 'string',
+ ],
+ 'Labels' => [
+ 'title' => 'Labels',
+ 'description' => 'Labels',
+ 'type' => 'array',
+ 'items' => [
+ '$ref' => '#/components/schemas/ExperimentLabel',
+ ],
+ ],
+ 'UserId' => [
+ 'title' => 'UserId',
+ 'description' => 'UserId',
+ 'type' => 'string',
+ ],
+ 'OwnerId' => [
+ 'title' => 'OwnerId',
+ 'description' => 'OwnerId',
+ 'type' => 'string',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => 'GmtCreatedTime',
+ 'description' => 'GmtCreatedTime',
+ 'type' => 'string',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => 'GmtModifiedTime',
+ 'description' => 'GmtModifiedTime',
+ 'type' => 'string',
+ ],
+ 'RequestId' => [
+ 'title' => 'RequestId',
+ 'description' => 'RequestId',
+ 'type' => 'string',
+ ],
+ 'Accessibility' => [
+ 'title' => 'Accessibility',
+ 'description' => 'Accessibility',
+ 'type' => 'string',
+ ],
+ 'LatestRun' => [
+ 'title' => 'LatestRun',
+ 'description' => 'LatestRun',
+ '$ref' => '#/components/schemas/Run',
+ ],
+ ],
+ ],
+ 'ExperimentLabel' => [
+ 'title' => 'A short description of struct',
+ 'description' => '实验标签',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => 'Key of Experiment Label',
+ 'description' => 'Key of Experiment Label',
+ 'type' => 'string',
+ 'example' => 'key',
+ ],
+ 'Value' => [
+ 'title' => 'Value of Experiment Label',
+ 'description' => 'Value of Experiment Label',
+ 'type' => 'string',
+ 'example' => 'value',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => 'Create time',
+ 'description' => 'Create time',
+ 'type' => 'string',
+ 'example' => '2023-12-27T03:30:04Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => 'Modified time',
+ 'description' => 'Modified time',
+ 'type' => 'string',
+ 'example' => '2023-12-27T03:30:04Z',
+ ],
+ 'ExperimentId' => [
+ 'title' => 'ExperimentId',
+ 'description' => 'ExperimentId',
+ 'type' => 'string',
+ 'example' => 'exp-890waerw09a0f',
+ ],
+ ],
+ ],
+ 'Label' => [
+ 'title' => 'A short description of struct',
+ 'description' => '标签结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => '标签的key',
+ 'description' => '标签的key。最长128 字节,不支持等于号(=)与半角逗号(,)。',
+ 'type' => 'string',
+ 'example' => 'env',
+ ],
+ 'Value' => [
+ 'title' => '标签的value',
+ 'description' => '标签的value。最长128 字节,不支持等于号(=)与半角逗号(,)。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'LabelInfo' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'TrialLabelInfo',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => 'Key of Label',
+ 'description' => 'Key of Label',
+ 'type' => 'string',
+ 'example' => 'key',
+ ],
+ 'Value' => [
+ 'title' => 'Value of Label',
+ 'description' => 'Value of Label',
+ 'type' => 'string',
+ 'example' => 'value',
+ ],
+ ],
+ ],
+ 'LineageEntity' => [
+ 'title' => 'A short description of struct',
+ 'description' => '血缘实体',
+ 'type' => 'object',
+ 'properties' => [
+ 'Attributes' => [
+ 'title' => 'Attributes',
+ 'description' => 'Attributes',
+ 'type' => 'object',
+ ],
+ 'EntityType' => [
+ 'title' => 'EntityType',
+ 'description' => 'EntityType',
+ 'type' => 'string',
+ ],
+ 'Name' => [
+ 'title' => 'Name',
+ 'description' => 'Name',
+ 'type' => 'string',
+ ],
+ 'QualifiedName' => [
+ 'title' => 'QualifiedName',
+ 'description' => 'QualifiedName',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'LineageRelation' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'LineageRelation',
+ 'type' => 'object',
+ 'properties' => [
+ 'DestEntityQualifiedName' => [
+ 'title' => 'DestEntityQualifiedName',
+ 'description' => 'DestEntityQualifiedName',
+ 'type' => 'string',
+ ],
+ 'RelationshipGuid' => [
+ 'title' => 'RelationshipGuid',
+ 'description' => 'RelationshipGuid',
+ 'type' => 'string',
+ ],
+ 'SrcEntityQualifiedName' => [
+ 'title' => 'SrcEntityQualifiedName',
+ 'description' => 'SrcEntityQualifiedName',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Model' => [
+ 'title' => 'A short description of struct',
+ 'description' => '模型。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ModelId' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。',
+ 'type' => 'string',
+ 'example' => 'model-1123*****',
+ ],
+ 'ModelName' => [
+ 'title' => '模型名字',
+ 'description' => '模型名称。',
+ 'type' => 'string',
+ 'example' => '情感分析',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建模型UTC时间,格式为ISO 8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '最后更新时间',
+ 'description' => '最后更新模型UTC时间,格式为ISO 8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35Z',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '234**',
+ ],
+ 'UserId' => [
+ 'title' => '创建模型的用户ID',
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '1557702098******',
+ ],
+ 'OwnerId' => [
+ 'title' => '云账号ID',
+ 'description' => '主账号ID',
+ 'type' => 'string',
+ 'example' => '1557702098******',
+ ],
+ 'ModelDescription' => [
+ 'title' => '模型的描述',
+ 'description' => '模型描述。',
+ 'type' => 'string',
+ 'example' => '情感分析。',
+ ],
+ 'Accessibility' => [
+ 'title' => '可见性',
+ 'description' => '工作空间可见度。取值:'."\n"
+ .'- PRIVATE(默认值):表示工作空间内自己以及管理员可见。'."\n"
+ .'- PUBLIC:为工作空间所有用户可见。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PUBLIC',
+ ],
+ 'LatestVersion' => [
+ 'title' => '最新版本',
+ 'description' => '模型最新版本。',
+ '$ref' => '#/components/schemas/ModelVersion',
+ ],
+ 'OrderNumber' => [
+ 'title' => '模型序号',
+ 'description' => '模型序号',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '101',
+ ],
+ 'Origin' => [
+ 'title' => '模型源',
+ 'description' => '模型源。描述源模型所属社区或组织,如ModelScope、HuggingFace等。',
+ 'type' => 'string',
+ 'example' => 'ModelScope',
+ ],
+ 'Domain' => [
+ 'title' => '领域',
+ 'description' => '领域。描述模型解决问题所属领域,如nlp(自然语言处理),cv(计算机视觉)等。',
+ 'type' => 'string',
+ 'example' => 'nlp',
+ ],
+ 'Task' => [
+ 'title' => '任务',
+ 'description' => '任务。描述模型解决的具体问题,如text-classification(文本分类)等。',
+ 'type' => 'string',
+ 'example' => 'text-classifiaction',
+ ],
+ 'ModelDoc' => [
+ 'title' => '模型介绍文档',
+ 'description' => '模型介绍文档。',
+ 'type' => 'string',
+ 'example' => 'https://***.md',
+ ],
+ 'Provider' => [
+ 'title' => '模型提供者',
+ 'description' => '模型提供者。',
+ 'type' => 'string',
+ 'example' => 'pai',
+ ],
+ 'ModelType' => [
+ 'title' => '模型类型',
+ 'description' => '模型类型。如Checkpoint,LoRA等。',
+ 'type' => 'string',
+ 'example' => 'Checkpoint',
+ ],
+ 'Labels' => [
+ 'title' => '标签列表',
+ 'description' => '标签列表。将废弃,由Tag取代。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ '$ref' => '#/components/schemas/Label',
+ ],
+ ],
+ 'Tags' => [
+ 'title' => '标签列表',
+ 'description' => '标签列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ '$ref' => '#/components/schemas/Label',
+ ],
+ ],
+ 'ExtraInfo' => [
+ 'description' => '其它信息。',
+ 'type' => 'object',
+ 'example' => '{'."\n"
+ .' "RatingCount": 2866,'."\n"
+ .' "Rating": 4.94,'."\n"
+ .' "FavoriteCount": 34992,'."\n"
+ .' "CommentCount": 754,'."\n"
+ .' "CoverUris": ["https://e***u.oss-cn-hangzhou.aliyuncs.com/drea***w.png"],'."\n"
+ .' "TippedAmountCount": 32,'."\n"
+ .' "DownloadCount": 606056'."\n"
+ .'}',
+ ],
+ 'ParameterSize' => [
+ 'description' => '参数量,单位M。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1024',
+ ],
+ 'GmtLatestVersionModifiedTime' => [
+ 'description' => '最后版本更新时间。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35Z',
+ ],
+ ],
+ ],
+ 'ModelVersion' => [
+ 'title' => 'A short description of struct',
+ 'description' => '模型版本。',
+ 'type' => 'object',
+ 'properties' => [
+ 'VersionName' => [
+ 'title' => '版本名,模型下唯一',
+ 'description' => '模型版本,模型下唯一。若不填,则默认`0.1.0`为第一个版本,之后子版本号加1,如第二个版本将默认为`0.2.0`。'."\n"
+ ."\n"
+ .'版本号由主版本号,子版本号,阶段版本号组成,由`.`分割,其中主版本号,子版本号为数字,阶段版本号以数字开头,接`_`加字母组成。如:1.1.0 或 2.3.4_beta。'."\n"
+ ."\n"
+ .'正则表达参考:`"^\\\\d+\\\\.\\\\d+\\\\.\\\\d+(_\\\\w+)?$"`',
+ 'type' => 'string',
+ 'example' => '0.1.0',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建模型UTC时间,格式为ISO 8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '最后更新时间',
+ 'description' => '最后更新模型UTC时间,格式为ISO 8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35Z',
+ ],
+ 'UserId' => [
+ 'title' => '创建模型版本的用户ID',
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '155770209******',
+ ],
+ 'OwnerId' => [
+ 'title' => '云账号ID',
+ 'description' => '主账号ID。',
+ 'type' => 'string',
+ 'example' => '155770209******',
+ ],
+ 'Uri' => [
+ 'title' => '版本的URI',
+ 'description' => '模型版本URI,即模型存储位置。可以为模型的HTTP(S)地址,如:`https://myweb.com/mymodel.tar.gz`;若模型在OSS中,格式为`oss://<bucket>.<endpoint>/object`,endpoint可以在OSS控制台查询,样例:`oss://mybucket.oss-cn-beijing.aliyuncs.com/mypath/`。',
+ 'type' => 'string',
+ 'example' => 'oss://mybucket.oss-cn-beijing.aliyuncs.com/mypath/',
+ ],
+ 'VersionDescription' => [
+ 'title' => '版本的描述',
+ 'description' => '模型版本描述。',
+ 'type' => 'string',
+ 'example' => '情感分析。',
+ ],
+ 'FormatType' => [
+ 'title' => '模型格式',
+ 'description' => '模型格式。'."\n"
+ .'- OfflineModel'."\n"
+ .'- SavedModel'."\n"
+ .'- Keras H5'."\n"
+ .'- Frozen Pb'."\n"
+ .'- Caffe Prototxt'."\n"
+ .'- TorchScript'."\n"
+ .'- XGBoost'."\n"
+ .'- PMML'."\n"
+ .'- AlinkModel'."\n"
+ .'- ONNX',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'OfflineModel' => 'OfflineModel',
+ 'SavedModel' => 'SavedModel',
+ 'Keras H5' => 'Keras H5',
+ 'Frozen Pb' => 'Frozen Pb',
+ 'Caffe Prototxt' => 'Caffe Prototxt',
+ 'TorchScript' => 'TorchScript',
+ 'XGBoost' => 'XGBoost',
+ 'PMML' => 'PMML',
+ 'AlinkModel' => 'AlinkModel',
+ 'ONNX' => 'ONNX',
+ ],
+ 'example' => 'SavedModel',
+ ],
+ 'FrameworkType' => [
+ 'title' => '模型框架',
+ 'description' => '模型框架。'."\n"
+ .'- Pytorch'."\n"
+ .'- XGBoost'."\n"
+ .'- Keras'."\n"
+ .'- Caffe'."\n"
+ .'- Alink'."\n"
+ .'- Xflow'."\n"
+ .'- TensorFlow',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Pytorch' => 'Pytorch',
+ 'XGBoost' => 'XGBoost',
+ 'Keras' => 'Keras',
+ 'Caffe' => 'Caffe',
+ 'Alink' => 'Alink',
+ 'Xflow' => 'Xflow',
+ 'TensorFlow' => 'TensorFlow',
+ ],
+ 'example' => 'TensorFlow',
+ ],
+ 'Options' => [
+ 'title' => '扩展字段',
+ 'description' => '扩展字段。JsonString类型。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'SourceType' => [
+ 'title' => '来源类型',
+ 'description' => '模型来源类型,默认为Custom。'."\n"
+ ."\n"
+ .'- Custom:自定义。'."\n"
+ .'- PAIFlow:PAI工作流。'."\n"
+ .'- TrainingService:PAI训练服务。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PAIFlow' => 'PAIFlow',
+ 'Custom' => 'Custom',
+ 'TrainingService' => 'TrainingService',
+ ],
+ 'example' => 'PAIFlow',
+ ],
+ 'SourceId' => [
+ 'title' => '来源ID',
+ 'description' => '来源ID。'."\n"
+ ."\n"
+ .'* 来源类型为Custom时,该字段不做限制。'."\n"
+ ."\n"
+ .'* 来源为PAIFlow,TrainingService时,格式为 '."\n"
+ .'```'."\n"
+ .'region=<region_id>,workspaceId=<workspace_id>,kind=<kind>,id=<id>'."\n"
+ .'```'."\n"
+ .'region 为阿里云区域ID;workspacceId 为工作空间ID;kind为类型,取值:PipelineRun(PAIFlow工作流),ServiceJob(训练服务);id 为唯一标识。',
+ 'type' => 'string',
+ 'example' => 'region=cn-shanghai,workspaceId=13**,kind=PipelineRun,id=run-sakdb****jdf',
+ ],
+ 'ApprovalStatus' => [
+ 'title' => '准入状态',
+ 'description' => '准入状态,取值如下:'."\n"
+ .'- Pending:待定。'."\n"
+ .'- Approved:允许上线。'."\n"
+ .'- Rejected:不允许上线。',
+ 'type' => 'string',
+ 'example' => 'Approved',
+ ],
+ 'Labels' => [
+ 'title' => '标签列表',
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Value' => [
+ 'title' => '标签的value',
+ 'description' => '标签的value',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'Key' => [
+ 'title' => '标签的key',
+ 'description' => '标签的key',
+ 'type' => 'string',
+ 'example' => 'k1',
+ ],
+ ],
+ ],
+ ],
+ 'Metrics' => [
+ 'description' => '模型指标。',
+ 'type' => 'object',
+ 'example' => '{'."\n"
+ .' "Results": [{'."\n"
+ .' "Dataset": {'."\n"
+ .' "DatasetId": "d-sdkjanksaklerhfd"'."\n"
+ .' },'."\n"
+ .' "Metrics": {'."\n"
+ .' "cer": 0.175'."\n"
+ .' }'."\n"
+ .' }, {'."\n"
+ .' "Dataset": {'."\n"
+ .' "Uri": "oss://xxxx/"'."\n"
+ .' },'."\n"
+ .' "Metrics": {'."\n"
+ .' "cer": 0.172'."\n"
+ .' }'."\n"
+ .' }]'."\n"
+ .'}',
+ ],
+ 'TrainingSpec' => [
+ 'description' => '训练配置。用于微调、增量训练的配置。',
+ 'type' => 'object',
+ 'example' => '{}',
+ ],
+ 'InferenceSpec' => [
+ 'description' => '描述如何应用于下游的推理应用:如描述EAS的processor/container等,如:'."\n"
+ .'`{'."\n"
+ .' "processor": "tensorflow_gpu_1.12"'."\n"
+ .'}`',
+ 'type' => 'object',
+ 'example' => '{'."\n"
+ .' "processor": "tensorflow_gpu_1.12"'."\n"
+ .'}',
+ ],
+ 'EvaluationSpec' => [
+ 'description' => '评测配置。',
+ 'type' => 'object',
+ 'example' => '{}',
+ ],
+ 'CompressionSpec' => [
+ 'description' => '压缩配置。',
+ 'type' => 'object',
+ 'example' => '{}',
+ ],
+ 'ExtraInfo' => [
+ 'description' => '其它信息。',
+ 'type' => 'object',
+ 'example' => '{'."\n"
+ .' "CoverUris": ["https://e***u.oss-cn-hangzhou.aliyuncs.com/st****017.preview.png"],'."\n"
+ .' "TrainedWords": ["albedo_overlord"]'."\n"
+ .'}',
+ ],
+ 'DistillationSpec' => [
+ 'description' => '蒸馏配置。',
+ 'type' => 'object',
+ 'example' => '{}',
+ ],
+ ],
+ ],
+ 'ModulePermissions' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'A short description of struct',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ModuleName' => [
+ 'title' => 'ModuleName',
+ 'description' => 'ModuleName',
+ 'type' => 'string',
+ ],
+ 'PermissionType' => [
+ 'title' => 'PermissionType',
+ 'description' => 'PermissionType',
+ 'type' => 'string',
+ ],
+ 'Permissions' => [
+ 'title' => 'Permissions',
+ 'description' => 'Permissions',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'PermissionCodes' => [
+ 'title' => 'PermissionCodes',
+ 'description' => 'PermissionCodes',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'PermissionRules' => [
+ 'title' => 'PermissionRules',
+ 'description' => 'PermissionRules',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Accessibility' => [
+ 'title' => 'Accessibility',
+ 'description' => 'Accessibility',
+ 'type' => 'string',
+ ],
+ 'EntityAccessType' => [
+ 'title' => 'EntityAccessType',
+ 'description' => 'EntityAccessType',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'Prompt' => [
+ 'title' => 'A short description of struct',
+ 'description' => '提示词数据结构',
+ 'type' => 'object',
+ 'properties' => [
+ 'CreateTime' => [
+ 'title' => '创建时间',
+ 'type' => 'string',
+ ],
+ 'ModifyTime' => [
+ 'title' => '修改时间',
+ 'type' => 'string',
+ ],
+ 'PromptName' => [
+ 'title' => '提示词名称',
+ 'type' => 'string',
+ ],
+ 'FrameworkType' => [
+ 'title' => '提示词框架类型',
+ 'type' => 'string',
+ ],
+ 'FrameworkContent' => [
+ 'title' => '提示词框架内容',
+ 'type' => 'string',
+ ],
+ 'PromptId' => [
+ 'title' => '提示词id',
+ 'type' => 'string',
+ ],
+ 'Description' => [
+ 'title' => '提示词描述信息',
+ 'type' => 'string',
+ ],
+ 'Accessibility' => [
+ 'title' => '工作空间可见性',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Relation' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'Relation',
+ 'type' => 'object',
+ 'properties' => [
+ 'ErrMsg' => [
+ 'title' => 'ErrMsg',
+ 'description' => 'ErrMsg',
+ 'type' => 'string',
+ ],
+ 'LineageRelation' => [
+ 'title' => 'LineageRelation',
+ 'description' => 'LineageRelation',
+ '$ref' => '#/components/schemas/LineageRelation',
+ ],
+ 'Result' => [
+ 'title' => 'Result',
+ 'description' => 'Result',
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ 'Relationship' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'Relationship',
+ 'type' => 'object',
+ 'properties' => [
+ 'Attributes' => [
+ 'title' => 'Attributes',
+ 'description' => 'Attributes',
+ 'type' => 'object',
+ ],
+ 'DataChannel' => [
+ 'title' => 'DataChannel',
+ 'description' => 'DataChannel',
+ 'type' => 'string',
+ ],
+ 'RelationshipGuid' => [
+ 'title' => 'RelationshipGuid',
+ 'description' => 'RelationshipGuid',
+ 'type' => 'string',
+ ],
+ 'RelationshipType' => [
+ 'title' => 'RelationshipType',
+ 'description' => 'RelationshipType',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Run' => [
+ 'title' => '运行',
+ 'description' => '运行',
+ 'type' => 'object',
+ 'properties' => [
+ 'Accessibility' => [
+ 'title' => '可见性',
+ 'description' => '可见性',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PRIVATE',
+ ],
+ 'SourceId' => [
+ 'title' => '来源的PAI Workload的ID',
+ 'description' => '来源的PAI Workload的ID',
+ 'type' => 'string',
+ 'example' => 'train9s0afvjkf',
+ ],
+ 'SourceType' => [
+ 'title' => '来源的PAI Workload类型',
+ 'description' => '来源的PAI Workload类型',
+ 'type' => 'string',
+ 'example' => 'TrainingService',
+ ],
+ 'WorkspaceId' => [
+ 'title' => 'Run所属工作空间的ID',
+ 'description' => 'Run所属工作空间的ID',
+ 'type' => 'string',
+ 'example' => '145883',
+ ],
+ 'Params' => [
+ 'title' => 'Run的超参数列表',
+ 'description' => 'Run的超参数列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '超参数',
+ '$ref' => '#/components/schemas/RunParam',
+ ],
+ ],
+ 'Labels' => [
+ 'title' => 'Run的标签列表',
+ 'description' => 'Run的标签列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签',
+ '$ref' => '#/components/schemas/RunLabel',
+ ],
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '编辑时间',
+ 'description' => '编辑时间',
+ 'type' => 'string',
+ 'example' => '2021-01-30T12:51:33.028Z',
+ ],
+ 'Name' => [
+ 'title' => '名称',
+ 'description' => '名称',
+ 'type' => 'string',
+ 'example' => 'testrun',
+ ],
+ 'Metrics' => [
+ 'title' => 'Run的metric列表',
+ 'description' => 'Run的metric列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '指标',
+ '$ref' => '#/components/schemas/RunMetric',
+ ],
+ ],
+ 'OwnerId' => [
+ 'title' => '所有者主账号ID',
+ 'description' => '所有者主账号ID',
+ 'type' => 'string',
+ 'example' => '1631044****3440',
+ ],
+ 'ExperimentId' => [
+ 'title' => 'Run关联的实验ID',
+ 'description' => 'Run关联的实验ID',
+ 'type' => 'string',
+ 'example' => 'exp-1zpfthdx******',
+ ],
+ 'UserId' => [
+ 'title' => '所有者ID',
+ 'description' => '所有者ID',
+ 'type' => 'string',
+ ],
+ 'RunId' => [
+ 'title' => 'Run唯一ID',
+ 'description' => 'Run唯一ID',
+ 'type' => 'string',
+ 'example' => 'run-1qJhzJ2YXgX****',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ 'example' => '2021-01-30T12:51:33.028Z',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ 'RunLabel' => [
+ 'title' => 'Run标签详情',
+ 'description' => 'Run标签详情',
+ 'type' => 'object',
+ 'properties' => [
+ 'Value' => [
+ 'title' => '标签的值',
+ 'description' => '标签的值',
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ 'RunId' => [
+ 'title' => '所属RunID',
+ 'description' => '所属RunID',
+ 'type' => 'string',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间',
+ 'type' => 'string',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '编辑时间',
+ 'description' => '编辑时间',
+ 'type' => 'string',
+ ],
+ 'Key' => [
+ 'title' => '标签的Key',
+ 'description' => '标签的Key',
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ ],
+ 'RunMetric' => [
+ 'title' => '任务指标',
+ 'description' => '任务指标',
+ 'type' => 'object',
+ 'properties' => [
+ 'Value' => [
+ 'title' => '指标值',
+ 'description' => '指标值',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => true,
+ ],
+ 'Step' => [
+ 'title' => '指标产生的步数',
+ 'description' => '指标产生的步数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'Timestamp' => [
+ 'title' => '指标产生的时间戳',
+ 'description' => '指标产生的时间戳',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'Key' => [
+ 'title' => '指标名称',
+ 'description' => '指标名称',
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ ],
+ 'RunParam' => [
+ 'title' => '任务参数',
+ 'description' => '任务参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'Value' => [
+ 'title' => '参数值',
+ 'description' => '参数值',
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ 'Key' => [
+ 'title' => '参数名',
+ 'description' => '参数名',
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ ],
+ 'Trial' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'Trial',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => 'Name',
+ 'description' => 'Name',
+ 'type' => 'string',
+ ],
+ 'TrialId' => [
+ 'title' => 'TrialId',
+ 'description' => 'TrialId',
+ 'type' => 'string',
+ ],
+ 'SourceType' => [
+ 'title' => 'SourceType',
+ 'description' => 'SourceType',
+ 'type' => 'string',
+ ],
+ 'SourceId' => [
+ 'title' => 'SourceId',
+ 'description' => 'SourceId',
+ 'type' => 'string',
+ ],
+ 'WorkspaceId' => [
+ 'title' => 'WorkspaceId',
+ 'description' => 'WorkspaceId',
+ 'type' => 'string',
+ ],
+ 'ExperimentId' => [
+ 'title' => 'ExperimentId',
+ 'description' => 'ExperimentId',
+ 'type' => 'string',
+ ],
+ 'Labels' => [
+ 'title' => 'Labels',
+ 'description' => 'Labels',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ ],
+ ],
+ 'UserId' => [
+ 'title' => 'UserId',
+ 'description' => 'UserId',
+ 'type' => 'string',
+ ],
+ 'OwnerId' => [
+ 'title' => 'OwnerId',
+ 'description' => 'OwnerId',
+ 'type' => 'string',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => 'GmtCreateTime',
+ 'description' => 'GmtCreateTime',
+ 'type' => 'string',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => 'GmtModifiedTime',
+ 'description' => 'GmtModifiedTime',
+ 'type' => 'string',
+ ],
+ 'Accessibility' => [
+ 'title' => 'Accessibility',
+ 'description' => 'Accessibility',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'TrialLabel' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'TrialLabel',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => 'Key of Trial Label',
+ 'description' => 'Key of Trial Label',
+ 'type' => 'string',
+ 'example' => 'key',
+ ],
+ 'Value' => [
+ 'title' => 'Value of Trial Label',
+ 'description' => 'Value of Trial Label',
+ 'type' => 'string',
+ 'example' => 'value',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => 'Create time',
+ 'description' => 'Create time',
+ 'type' => 'string',
+ 'example' => '2023-12-27T03:30:04Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => 'Modified time',
+ 'description' => 'Modified time',
+ 'type' => 'string',
+ 'example' => '2023-12-27T03:30:04Z',
+ ],
+ 'TrialId' => [
+ 'title' => 'trl-v0fw9a0sd8f9af',
+ 'description' => 'trl-v0fw9a0sd8f9af',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'apis' => [
+ 'CreateExperiment' => [
+ 'summary' => '创建实验',
+ 'path' => '/api/v1/experiments',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '206973',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => 'body参数',
+ 'description' => 'body参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkspaceId' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '478**',
+ ],
+ 'Labels' => [
+ 'title' => '标签',
+ 'description' => '标签',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签',
+ 'required' => false,
+ '$ref' => '#/components/schemas/LabelInfo',
+ ],
+ 'required' => false,
+ ],
+ 'Name' => [
+ 'title' => '名称',
+ 'description' => '实验(Experiment)的名称。命名规则如下:'."\n"
+ ."\n"
+ .'- 以小写字母、大写字母开头。'."\n"
+ .'- 可以包含大小写字母、数字、下划线(_)或短划线(-)。'."\n"
+ .'- 长度为1~63个字符。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'exp-test',
+ ],
+ 'ArtifactUri' => [
+ 'title' => 'Artifact路径',
+ 'description' => '关联到实验的所有任务的默认Artifact输出路径,当前仅支持OSS路径',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'oss://test-bucket.oss-cn-hangzhou.aliyuncs.com/test',
+ ],
+ 'Accessibility' => [
+ 'description' => '可见性,分为私有(即仅创建者及其主账号可见)、公开(即所有人可见);非必填,默认为私有。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PRIVATE',
+ 'default' => 'PRIVATE',
+ 'enum' => [
+ 'PRIVATE',
+ 'PUBLIC',
+ ],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => '请求ID',
+ ],
+ 'ExperimentId' => [
+ 'title' => '若创建接口为异步实现,则需返回明确的JobId。',
+ 'description' => '若创建接口为异步实现,则需返回明确的JobId。',
+ 'type' => 'string',
+ 'example' => 'API请求完成创建的实验ID',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"请求ID\\",\\n \\"ExperimentId\\": \\"API请求完成创建的实验ID\\"\\n}","type":"json"}]',
+ 'title' => '创建实验',
+ ],
+ 'UpdateExperiment' => [
+ 'summary' => '更新实验',
+ 'path' => '/api/v1/experiments/{ExperimentId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '206975',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => 'body参数',
+ 'description' => 'body参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '名称',
+ 'description' => '实验(Experiment)的名称。命名规则如下:'."\n"
+ ."\n"
+ .'- 以小写字母、大写字母开头。'."\n"
+ .'- 可以包含大小写字母、数字、下划线(_)或短划线(-)。'."\n"
+ .'- 长度为1~63个字符。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'myName',
+ ],
+ 'Accessibility' => [
+ 'description' => '工作空间可见度,取值如下。'."\n"
+ .'- PRIVATE:在此工作空间中,仅对您和管理员可见。'."\n"
+ .'- PUBLIC:在此工作空间中,对所有人可见。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PRIVATE',
+ 'enum' => [
+ 'PRIVATE',
+ 'PUBLIC',
+ ],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ExperimentId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实验ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'exp-1zpfthdx******',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '更新实验信息',
+ ],
+ 'GetExperiment' => [
+ 'summary' => '获取实验',
+ 'path' => '/api/v1/experiments/{ExperimentId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '206972',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ExperimentId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实验ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'exp-1zpfthdx******',
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否获取关联到Experiment的最新Run信息',
+ 'description' => '是否获取关联到Experiment的最新Run信息',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'example' => 'false',
+ 'default' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'Experiment实例信息',
+ '$ref' => '#/components/schemas/Experiment',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ExperimentId\\": \\"\\",\\n \\"Name\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\",\\n \\"ArtifactUri\\": \\"\\",\\n \\"TensorboardLogUri\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"key\\",\\n \\"Value\\": \\"value\\",\\n \\"GmtCreateTime\\": \\"2023-12-27T03:30:04Z\\",\\n \\"GmtModifiedTime\\": \\"2023-12-27T03:30:04Z\\",\\n \\"ExperimentId\\": \\"exp-890waerw09a0f\\"\\n }\\n ],\\n \\"UserId\\": \\"\\",\\n \\"OwnerId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"RequestId\\": \\"\\",\\n \\"Accessibility\\": \\"\\",\\n \\"LatestRun\\": {\\n \\"Accessibility\\": \\"\\",\\n \\"SourceId\\": \\"\\",\\n \\"SourceType\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\",\\n \\"Params\\": [\\n {\\n \\"Value\\": \\"\\",\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"Labels\\": [\\n {\\n \\"Value\\": \\"\\",\\n \\"RunId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"Name\\": \\"\\",\\n \\"Metrics\\": [\\n {\\n \\"Value\\": 0,\\n \\"Step\\": 0,\\n \\"Timestamp\\": 0,\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"OwnerId\\": \\"\\",\\n \\"ExperimentId\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"RunId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"RequestId\\": \\"\\"\\n }\\n}","type":"json"}]',
+ 'title' => '获取实验详情',
+ ],
+ 'ListExperiment' => [
+ 'summary' => '获取实验列表。',
+ 'path' => '/api/v1/experiments',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '206995',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实验名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'exp-test',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实验所在工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。'."\n"
+ .'> 不填写工作空间ID,系统将返回默认工作空间的实验列表。'."\n"
+ .'>',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1517**',
+ ],
+ ],
+ [
+ 'name' => 'Labels',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '标签过滤条件,多个条件以半角逗号(,)分隔。'."\n"
+ .'单个条件过滤格式为`Key=Value`。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'is_evaluation:true',
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '',
+ 'description' => '分页查询时的排序字段。目前GmtCreateTime字段用于排序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GmtCreateTime',
+ 'default' => 'GmtCreateTime',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '',
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序。'."\n"
+ .'- ASC:升序。'."\n"
+ .'- DESC(默认):降序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DESC',
+ 'default' => 'DESC',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '',
+ 'description' => '分页编号,从1开始。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'OrderBy',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '排序方式字符串列表,支持排序的字段包括:GmtCreateTime、Name、GmtModifiedTime或ExperimentId。排序方式包括DESC和ASC,默认为ASC。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GmtCreateTime DESC,Name ASC',
+ ],
+ ],
+ [
+ 'name' => 'PageToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页token,从0开始,默认为0。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '0',
+ 'default' => '0',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '请求的最大结果数,默认为10。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '10',
+ 'default' => '10',
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否获取于实验相关的LatestRun',
+ 'description' => '是否获取于实验相关的LatestRun信息。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ 'default' => 'False',
+ ],
+ ],
+ [
+ 'name' => 'Options',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '可选参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'match_name_exactly' => [
+ 'title' => '是否精确匹配名称,可以填“true“/”false“',
+ 'description' => '是否精确匹配名称,可以填“true“或”false“。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ 'default' => 'false',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '0C6835C5-A424-5AFB-ACC2-F1E3CA1ABF7C',
+ ],
+ 'TotalCount' => [
+ 'description' => '记录总数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '5',
+ ],
+ 'Experiments' => [
+ 'description' => '实验列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实验详情。',
+ '$ref' => '#/components/schemas/Experiment',
+ ],
+ ],
+ 'NextPageToken' => [
+ 'description' => '下一页标识。需记录下来,在下一次请求时传入即可。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0C6835C5-A424-5AFB-ACC2-F1E3CA1ABF7C\\",\\n \\"TotalCount\\": 5,\\n \\"Experiments\\": [\\n {\\n \\"ExperimentId\\": \\"\\",\\n \\"Name\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\",\\n \\"ArtifactUri\\": \\"\\",\\n \\"TensorboardLogUri\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"key\\",\\n \\"Value\\": \\"value\\",\\n \\"GmtCreateTime\\": \\"2023-12-27T03:30:04Z\\",\\n \\"GmtModifiedTime\\": \\"2023-12-27T03:30:04Z\\",\\n \\"ExperimentId\\": \\"exp-890waerw09a0f\\"\\n }\\n ],\\n \\"UserId\\": \\"\\",\\n \\"OwnerId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"RequestId\\": \\"\\",\\n \\"Accessibility\\": \\"\\",\\n \\"LatestRun\\": {\\n \\"Accessibility\\": \\"\\",\\n \\"SourceId\\": \\"\\",\\n \\"SourceType\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\",\\n \\"Params\\": [\\n {\\n \\"Value\\": \\"\\",\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"Labels\\": [\\n {\\n \\"Value\\": \\"\\",\\n \\"RunId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"Name\\": \\"\\",\\n \\"Metrics\\": [\\n {\\n \\"Value\\": 0,\\n \\"Step\\": 0,\\n \\"Timestamp\\": 0,\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"OwnerId\\": \\"\\",\\n \\"ExperimentId\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"RunId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"RequestId\\": \\"\\"\\n }\\n }\\n ],\\n \\"NextPageToken\\": 0\\n}","type":"json"}]',
+ 'title' => '获取实验列表',
+ ],
+ 'DeleteExperiment' => [
+ 'summary' => '删除实验',
+ 'path' => '/api/v1/experiments/{ExperimentId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '206974',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ExperimentId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实验ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'exp-1zpfthdx******',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '8D7B2E70-F770-505B-A672-09F1D8F2EC1E',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8D7B2E70-F770-505B-A672-09F1D8F2EC1E\\"\\n}","type":"json"}]',
+ 'title' => '删除实验',
+ ],
+ 'SetExperimentLabels' => [
+ 'summary' => '更新实验标签',
+ 'path' => '/api/v1/experiments/{ExperimentId}/labels',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '207071',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => 'body参数',
+ 'description' => 'body参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'Labels' => [
+ 'description' => '标签列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签详细信息,包括Key、Value。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/LabelInfo',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ExperimentId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实验ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'exp-1zpfthdx******',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => 'SetExperimentLabels',
+ ],
+ 'DeleteExperimentLabel' => [
+ 'summary' => '删除实验的标签',
+ 'path' => '/api/v1/experiments/{ExperimentId}/labels/{Key}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '207073',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ExperimentId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '实验ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'exp-1zpfthdx******',
+ ],
+ ],
+ [
+ 'name' => 'Key',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '要删除的实验标签的Key',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'is_evaluate',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '删除实验的标签',
+ ],
+ 'CreateRun' => [
+ 'summary' => '创建一次运行,运行(Run)属于一个实验(Experiment),可以与具体的workload关联,也可以是一次单纯的代码运行。',
+ 'path' => '/api/v1/runs',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '233339',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => 'Run的名称,若创建时名称为空,则会使用服务端随机生成的RunID作为名称',
+ 'description' => '运行(Run)的名称。命名规则如下:'."\n"
+ .'- 以小写字母、大写字母开头。'."\n"
+ .'- 可以包含大小写字母、数字、下划线(_)或短划线(-)。'."\n"
+ .'- 长度为1~63个字符。'."\n"
+ ."\n"
+ .'若创建时名称为空,则会使用服务端生成的随机ID(RunID)作为名称',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'myName',
+ ],
+ 'SourceType' => [
+ 'title' => 'Run关联的PAI Workload类型',
+ 'description' => '与Run关联的PAI Workload来源类型,可选项包括TrainingService、DLC或为空。非必填,默认为空。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DLC',
+ ],
+ 'SourceId' => [
+ 'title' => 'Run关联的PAI Workload ID',
+ 'description' => 'Run关联的PAI Workload ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'job-jdnhf***fnrimv',
+ ],
+ 'ExperimentId' => [
+ 'title' => 'Run关联的实验ID',
+ 'description' => 'Run关联的实验ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'exp-6thbb5xrbmp*****',
+ ],
+ 'Labels' => [
+ 'title' => 'Run的标签',
+ 'description' => 'Run的标签列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签详细信息',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => false,
+ ],
+ 'Params' => [
+ 'description' => 'Run的参数列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '参数详细信息',
+ 'required' => false,
+ '$ref' => '#/components/schemas/RunParam',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => 'ADF6D849-*****-7E7030F0CE53',
+ ],
+ 'RunId' => [
+ 'description' => '运行ID',
+ 'type' => 'string',
+ 'example' => 'run-1meoz7VJd2C6f****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ADF6D849-*****-7E7030F0CE53\\",\\n \\"RunId\\": \\"run-1meoz7VJd2C6f****\\"\\n}","type":"json"}]',
+ 'title' => '创建运行',
+ ],
+ 'UpdateRun' => [
+ 'summary' => '更新运行信息',
+ 'path' => '/api/v1/runs/{RunId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '233506',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RunId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '运行ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'run-1qJhzJ2YXgX****',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '运行(Run)的名称。命名规则如下:'."\n"
+ .'- 以小写字母、大写字母开头。'."\n"
+ .'- 可以包含大小写字母、数字、下划线(_)或短划线(-)。'."\n"
+ .'- 长度为1~63个字符。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'myName',
+ ],
+ 'Labels' => [
+ 'description' => '标签列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签详细信息',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => false,
+ ],
+ 'Params' => [
+ 'description' => '参数列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '参数详细信息',
+ 'required' => false,
+ '$ref' => '#/components/schemas/RunParam',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => 'ADF6D849-*****-7E7030F0CE53',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ADF6D849-*****-7E7030F0CE53\\"\\n}","type":"json"}]',
+ 'title' => '更新运行信息',
+ ],
+ 'GetRun' => [
+ 'summary' => '获取Run详情',
+ 'path' => '/api/v1/runs/{RunId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '233505',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RunId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '运行ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'run-1qJhzJ2YXgX****',
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否获取Metrics, Params, Labels信息',
+ 'description' => '是否获取Metrics, Params, Labels信息;非必填,默认为false。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ 'default' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'Run实例信息',
+ '$ref' => '#/components/schemas/Run',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Accessibility\\": \\"\\",\\n \\"SourceId\\": \\"\\",\\n \\"SourceType\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\",\\n \\"Params\\": [\\n {\\n \\"Value\\": \\"\\",\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"Labels\\": [\\n {\\n \\"Value\\": \\"\\",\\n \\"RunId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"Name\\": \\"\\",\\n \\"Metrics\\": [\\n {\\n \\"Value\\": 0,\\n \\"Step\\": 0,\\n \\"Timestamp\\": 0,\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"OwnerId\\": \\"\\",\\n \\"ExperimentId\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"RunId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"RequestId\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => '获取Run详情',
+ ],
+ 'ListRuns' => [
+ 'summary' => '获取Run列表。',
+ 'path' => '/api/v1/runs',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'abilityTreeCode' => '237299',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '运行名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'myName',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实验所在工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。'."\n"
+ .'> 不填写工作空间ID,系统将返回默认工作空间的运行列表。'."\n"
+ .'>',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '228**',
+ ],
+ ],
+ [
+ 'name' => 'ExperimentId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Run所属实验ID',
+ 'description' => 'Run所属实验ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'exp-1zpfthdx******',
+ ],
+ ],
+ [
+ 'name' => 'SourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Run关联的PAI Workload类型',
+ 'description' => 'Run关联的PAI Workload类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'TrainingService',
+ ],
+ ],
+ [
+ 'name' => 'SourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Run关联的PAI Workload ID',
+ 'description' => 'Run关联的PAI Workload ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'job-rbvg5wzlj****',
+ ],
+ ],
+ [
+ 'name' => 'Labels',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '任务的标签,精确匹配'."\n"
+ .'● 支持单标签查询:"is_evaluation:true"'."\n"
+ .'● 多标签场景(非特殊场景不推荐,可能存在性能问题):"is_evaluation:true,LLM_evaluation:true" 使用英文逗号分隔,表示多个标签key-value需要同时匹配',
+ 'description' => '任务的标签,精确匹配。支持:'."\n"
+ .'- 单标签查询:"is_evaluation:true"'."\n"
+ .'- 多标签场景(非特殊场景不推荐,可能存在性能问题):"is_evaluation:true,LLM_evaluation:true" 使用半角逗号(,)分隔,表示多个标签key-value需要同时匹配。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'is_evaluation:true',
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否展示详细信息,包括:Metrics、Params和Labels。取值如下:'."\n"
+ .'- true:表示展示详细信息。'."\n"
+ .'- false(默认值):表示不展示详细信息。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ 'default' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'GmtCreateTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例创建时间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2021-01-30T12:51:33.028Z',
+ ],
+ ],
+ [
+ 'name' => 'OrderBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '排序方式的字符串列表,支持排序的字段包括:GmtCreateTime、Name。排序方式包括DESC和ASC,默认为ASC。支持多个字段,用半角逗号","分隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GmtCreateTime DESC,Name ASC',
+ ],
+ ],
+ [
+ 'name' => 'PageToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页token,从0开始,默认为0。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '0',
+ 'default' => '0',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '请求的最大结果数,默认为10。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '10',
+ 'default' => '10',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '当前页数。 取值范围:大于0。 默认值:1。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页显示的记录数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '',
+ 'description' => '用于排序的字段名,取值如下:'."\n"
+ .'- Name:Run名称。'."\n"
+ .'- GmtCreateTime(默认值):Run创建时间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GmtCreateTime',
+ 'default' => 'GmtCreateTime',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '',
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序,与SortBy结合使用。'."\n"
+ .'- ASC:升序。'."\n"
+ .'- DESC(默认值):降序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DESC',
+ 'default' => 'DESC',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'ADF6D849-*****-7E7030F0CE53',
+ ],
+ 'Runs' => [
+ 'description' => '任务列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '运行实例详情。',
+ '$ref' => '#/components/schemas/Run',
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => 'TotalCount本次请求条件下的数据总量,此参数为可选参数,默认可不返回',
+ 'description' => 'TotalCount本次请求条件下的数据总量,此参数为可选参数,默认可不返回。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'NextPageToken' => [
+ 'description' => '分页token,首页查询时传空,查询结果中返回下一页token地址。当结果token为0时表示全部查完。可通过查询结果中的**NextPageToken**字段获取下一页token。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ADF6D849-*****-7E7030F0CE53\\",\\n \\"Runs\\": [\\n {\\n \\"Accessibility\\": \\"\\",\\n \\"SourceId\\": \\"\\",\\n \\"SourceType\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\",\\n \\"Params\\": [\\n {\\n \\"Value\\": \\"\\",\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"Labels\\": [\\n {\\n \\"Value\\": \\"\\",\\n \\"RunId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"Name\\": \\"\\",\\n \\"Metrics\\": [\\n {\\n \\"Value\\": 0,\\n \\"Step\\": 0,\\n \\"Timestamp\\": 0,\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"OwnerId\\": \\"\\",\\n \\"ExperimentId\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"RunId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"RequestId\\": \\"\\"\\n }\\n ],\\n \\"TotalCount\\": 1,\\n \\"NextPageToken\\": 0\\n}","type":"json"}]',
+ 'title' => '获取运行列表',
+ ],
+ 'DeleteRun' => [
+ 'summary' => '删除Run',
+ 'path' => '/api/v1/runs/{RunId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '233507',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RunId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '运行ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'run-1qJhzJ2YXgX****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => 'ADF6D849-*****-7E7030F0CE53',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ADF6D849-*****-7E7030F0CE53\\"\\n}","type":"json"}]',
+ 'title' => '删除Run',
+ ],
+ 'DeleteRunLabel' => [
+ 'summary' => '删除Run标签',
+ 'path' => '/api/v1/runs/{RunId}/labels/{Key}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '233523',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RunId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '运行ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'run-1qJhzJ2YXgX****',
+ ],
+ ],
+ [
+ 'name' => 'Key',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '要删除的Run标签的Key',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'is_evaluate',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => 'ADF6D849-*****-7E7030F0CE53',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ADF6D849-*****-7E7030F0CE53\\"\\n}","type":"json"}]',
+ 'title' => '删除Run标签',
+ ],
+ 'LogRunMetrics' => [
+ 'summary' => '批量记录Run的指标',
+ 'path' => '/api/v1/runs/{RunId}/metrics/action/log',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'abilityTreeCode' => '237449',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RunId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '运行ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'run-1qJhzJ2YXgX****',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Metrics' => [
+ 'description' => '指标列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '指标详细信息',
+ 'required' => false,
+ '$ref' => '#/components/schemas/RunMetric',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => 'ADF6D849-*****-7E7030F0CE53',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ADF6D849-*****-7E7030F0CE53\\"\\n}","type":"json"}]',
+ 'title' => '批量记录Run的指标',
+ ],
+ 'ListRunMetrics' => [
+ 'summary' => '获取Run的指标记录列表',
+ 'path' => '/api/v1/runs/{RunId}/metrics',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '237434',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnP1X97H',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RunId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '运行ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'run-1qJhzJ2YXgX****',
+ ],
+ ],
+ [
+ 'name' => 'Key',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '运行的指标的Key',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'loss',
+ ],
+ ],
+ [
+ 'name' => 'PageToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页token,从0开始,默认为0。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '0',
+ 'default' => '0',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '请求的最大结果数,默认为10。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '100',
+ 'default' => '10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => 'ADF6D849-*****-7E7030F0CE53',
+ ],
+ 'Metrics' => [
+ 'description' => '指标列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '指标信息详情',
+ '$ref' => '#/components/schemas/RunMetric',
+ ],
+ ],
+ 'NextPageToken' => [
+ 'description' => '分页token,首页查询时传空,查询结果中返回下一页token地址。当结果token为0时表示全部查完。可通过查询结果中的**NextPageToken**字段获取下一页token。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ADF6D849-*****-7E7030F0CE53\\",\\n \\"Metrics\\": [\\n {\\n \\"Value\\": 0,\\n \\"Step\\": 0,\\n \\"Timestamp\\": 0,\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"NextPageToken\\": 0\\n}","type":"json"}]',
+ 'title' => '获取Run的指标记录列表',
+ ],
+ 'AddImage' => [
+ 'summary' => '添加自定义镜像到工作空间。',
+ 'path' => '/api/v1/images',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '61619',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnAFIS9K',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '镜像名称',
+ 'description' => '镜像名称。命名规则如下:'."\n"
+ .'- 长度为1~50个英文字符。'."\n"
+ .'- 支持小写字母、数字和短横线(-),以字母开头。'."\n"
+ .'- 同一工作空间内不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'nlp-compression',
+ ],
+ 'Description' => [
+ 'title' => '镜像描述',
+ 'description' => '镜像的描述信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'NLP模型压缩训练镜像',
+ ],
+ 'ImageUri' => [
+ 'title' => '镜像地址',
+ 'description' => '镜像地址,可以重复。关于如何查看镜像地址,详情请参见[ListImage](~~449118~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'registry.cn-hangzhou.aliyuncs.com/pai-compression/nlp:gpu',
+ ],
+ 'Labels' => [
+ 'title' => '镜像标签,是个数组',
+ 'description' => '镜像标签,是个数组,数组每一项包含key和value两个字段。'."\n"
+ .'官方镜像有如下标签:system.official=true'."\n"
+ .'目前支持添加的键如下:'."\n"
+ ."\n"
+ .'- system.chipType'."\n"
+ .'- system.dsw.cudaVersion'."\n"
+ .'- system.dsw.fromImageId'."\n"
+ .'- system.dsw.fromInstanceId'."\n"
+ .'- system.dsw.id'."\n"
+ .'- system.dsw.os'."\n"
+ .'- system.dsw.osVersion'."\n"
+ .'- system.dsw.resourceType'."\n"
+ .'- system.dsw.rootImageId'."\n"
+ .'- system.dsw.stage'."\n"
+ .'- system.dsw.tag'."\n"
+ .'- system.dsw.type'."\n"
+ .'- system.framework'."\n"
+ .'- system.origin'."\n"
+ .'- system.pythonVersion'."\n"
+ .'- system.source'."\n"
+ .'- system.supported.dlc'."\n"
+ .'- system.supported.dsw',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => 'Key',
+ 'description' => '标签的键。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'system.chipType',
+ ],
+ 'Value' => [
+ 'title' => 'Value',
+ 'description' => '标签的值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GPU',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间id',
+ 'description' => '镜像所属的工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '15******45',
+ ],
+ 'Accessibility' => [
+ 'title' => '可见性 Public 公有 Private 私有',
+ 'description' => '镜像的可见性,目前支持:'."\n"
+ ."\n"
+ .'- PUBLIC:当前工作空间所有成员都可以操作。'."\n"
+ .'- PRIVATE:只有创建者可以操作。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PUBLIC',
+ ],
+ 'Size' => [
+ 'description' => '镜像大小,单位为GB。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ 'ImageId' => [
+ 'description' => '镜像Id,如果不填,系统会自动生成。'."\n"
+ .'格式为image-18位大小写英文字母或者数字。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'image-k83*****cv',
+ ],
+ 'SourceType' => [
+ 'title' => '镜像来源类型:'."\n"
+ .' Import : 导入'."\n"
+ .' Build :构建',
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'SourceId' => [
+ 'title' => '镜像来源 ID。 当镜像来源类型是“构建”时,来源 ID 对应镜像构建 ID。',
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。'."\n"
+ ."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'ImageId' => [
+ 'title' => '镜像 id',
+ 'description' => '镜像ID。',
+ 'type' => 'string',
+ 'example' => 'image-4c62******53uor',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"ImageId\\": \\"image-4c62******53uor\\"\\n}","type":"json"}]',
+ 'title' => '添加镜像',
+ ],
+ 'AddImageLabels' => [
+ 'summary' => '为镜像添加标签。',
+ 'path' => '/api/v1/images/{ImageId}/labels',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '61617',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnAFIS9K',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ImageId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '镜像Id',
+ 'description' => '镜像ID。如何获取镜像ID,请参见[ListImages](~~449118~~) 。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'image-4c62******53uor'."\n",
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '数据',
+ 'description' => '镜像标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Labels' => [
+ 'title' => '标签',
+ 'description' => '镜像标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '镜像标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => 'Key',
+ 'description' => '标签的键,目前允许添加的键如下'."\n"
+ ."\n"
+ .'- system.chipType'."\n"
+ .'- system.dsw.cudaVersion'."\n"
+ .'- system.dsw.fromImageId'."\n"
+ .'- system.dsw.fromInstanceId'."\n"
+ .'- system.dsw.id'."\n"
+ .'- system.dsw.os'."\n"
+ .'- system.dsw.osVersion'."\n"
+ .'- system.dsw.resourceType'."\n"
+ .'- system.dsw.rootImageId'."\n"
+ .'- system.dsw.stage'."\n"
+ .'- system.dsw.tag'."\n"
+ .'- system.dsw.type'."\n"
+ .'- system.framework'."\n"
+ .'- system.origin'."\n"
+ .'- system.pythonVersion'."\n"
+ .'- system.source'."\n"
+ .'- system.supported.dlc'."\n"
+ .'- system.supported.dsw',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'system.chipType',
+ ],
+ 'Value' => [
+ 'title' => 'Value',
+ 'description' => '标签的值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GPU',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。'."\n"
+ ."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '添加镜像标签',
+ ],
+ 'GetImage' => [
+ 'summary' => '获取镜像详情。',
+ 'path' => '/api/v1/images/{ImageId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '61616',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnAFIS9K',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ImageId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '镜像id',
+ 'description' => '镜像ID。如何获取镜像ID,请参见[ListImages](~~449118~~) 。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'image-4c62******53uor',
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否显示非必要信息:Labels',
+ 'description' => '是否显示非必要信息,非必要信息目前包含Labels。'."\n"
+ .'取值如下:'."\n"
+ .'- false(默认值):不显示非必要信息。'."\n"
+ .'- true:显示非必要信息。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建 UTC 时间,日期格式 iso8601',
+ 'description' => '镜像的创建UTC时间,格式ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '创建 UTC 时间,日期格式 iso8601',
+ 'description' => '镜像的修改UTC时间,格式ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'Name' => [
+ 'title' => '镜像名称',
+ 'description' => '镜像名称。',
+ 'type' => 'string',
+ 'example' => 'nlp-compression'."\n",
+ ],
+ 'Description' => [
+ 'title' => '描述',
+ 'description' => '镜像描述。',
+ 'type' => 'string',
+ 'example' => 'NLP模型压缩训练镜像'."\n",
+ ],
+ 'ImageUri' => [
+ 'title' => '镜像地址,包含版本号',
+ 'description' => '镜像地址,包含版本号。',
+ 'type' => 'string',
+ 'example' => 'registry.cn-hangzhou.aliyuncs.******ession/nlp:gpu'."\n",
+ ],
+ 'UserId' => [
+ 'title' => '创建人',
+ 'description' => '创建镜像的UID。',
+ 'type' => 'string',
+ 'example' => '15577******8921',
+ ],
+ 'ParentUserId' => [
+ 'title' => '创建人父账户',
+ 'description' => '创建者的阿里云账号。',
+ 'type' => 'string',
+ 'example' => '15577******8921',
+ ],
+ 'Labels' => [
+ 'title' => '镜像标签',
+ 'description' => '镜像标签列表,数组类型,数组每一项包含Key和Value两个字段。'."\n"
+ .'官方镜像带有标签:key为system.official;value为true。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '镜像标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => 'Key',
+ 'description' => '标签的键。',
+ 'type' => 'string',
+ 'example' => 'system.chipType'."\n",
+ ],
+ 'Value' => [
+ 'title' => 'Value',
+ 'description' => '标签的值。',
+ 'type' => 'string',
+ 'example' => 'GPU',
+ ],
+ ],
+ ],
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间id',
+ 'description' => '镜像所属的工作空间ID。',
+ 'type' => 'string',
+ 'example' => '15945',
+ ],
+ 'Accessibility' => [
+ 'title' => '可见性',
+ 'description' => '镜像的可见性,可能值:'."\n"
+ .'- PUBLIC:当前工作空间所有成员都可以操作。'."\n"
+ .'- PRIVATE:只有创建者可以操作。',
+ 'type' => 'string',
+ 'example' => 'PUBLIC',
+ ],
+ 'Size' => [
+ 'description' => '镜像大小,单位为byte。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ 'SourceType' => [
+ 'title' => '镜像来源类型',
+ 'description' => '镜像来源类型',
+ 'type' => 'string',
+ ],
+ 'SourceId' => [
+ 'title' => '镜像来源 ID',
+ 'description' => '镜像来源 ID',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"Name\\": \\"nlp-compression\\\\n\\",\\n \\"Description\\": \\"NLP模型压缩训练镜像\\\\n\\",\\n \\"ImageUri\\": \\"registry.cn-hangzhou.aliyuncs.******ession/nlp:gpu\\\\n\\",\\n \\"UserId\\": \\"15577******8921\\",\\n \\"ParentUserId\\": \\"15577******8921\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"system.chipType\\\\n\\",\\n \\"Value\\": \\"GPU\\"\\n }\\n ],\\n \\"WorkspaceId\\": \\"15945\\",\\n \\"Accessibility\\": \\"PUBLIC\\",\\n \\"Size\\": 10,\\n \\"SourceType\\": \\"\\",\\n \\"SourceId\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => '获取镜像',
+ ],
+ 'ListImageLabels' => [
+ 'summary' => '获取镜像标签列表。',
+ 'path' => '/api/v1/image/labels',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '61618',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnAFIS9K',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'LabelKeys',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '标签列表,以逗号分隔',
+ 'description' => '标签键的列表,以半角逗号(,)分隔。'."\n"
+ .'系统标签以system开头,与LabelFilter分别独立生效。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'system.framework,system.official',
+ ],
+ ],
+ [
+ 'name' => 'LabelFilter',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'image过滤条件,获取满足条件的image的所有label',
+ 'description' => '标签过滤条件,多个条件以逗号分隔。'."\n"
+ .'单个条件过滤格式为`key=value`。'."\n"
+ .'与LabelKeys分别独立生效。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'system.framework=XGBoost 1.6.0,system.official=true',
+ ],
+ ],
+ [
+ 'name' => 'ImageId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '镜像id',
+ 'description' => '镜像ID。如何获取镜像ID,请参见[ListImages](~~449118~~) 。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'image-4c62******53uor'."\n",
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '工作空间id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12345',
+ ],
+ ],
+ [
+ 'name' => 'Region',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域',
+ 'description' => '镜像所属地域。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。'."\n"
+ ."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'Labels' => [
+ 'title' => '镜像标签',
+ 'description' => '镜像标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '镜像标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => '键',
+ 'description' => '标签的键。',
+ 'type' => 'string',
+ 'example' => 'system.chipType',
+ ],
+ 'Value' => [
+ 'title' => '值',
+ 'description' => '标签的值。',
+ 'type' => 'string',
+ 'example' => 'GPU',
+ ],
+ ],
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '符合过滤条件的数量',
+ 'description' => '符合过滤条件的镜像标签列表数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"system.chipType\\",\\n \\"Value\\": \\"GPU\\"\\n }\\n ],\\n \\"TotalCount\\": 2\\n}","type":"json"}]',
+ 'title' => '获取镜像标签列表',
+ ],
+ 'ListImages' => [
+ 'summary' => '获取镜像列表。',
+ 'path' => '/api/v1/images',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '61620',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnAFIS9K',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '镜像名称,支持模糊搜索',
+ 'description' => '镜像名称,支持模糊搜索。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tensorflow_2.9',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分页,从1开始,默认1',
+ 'description' => '镜像列表的页码。起始值为1,默认为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '页大小,默认20',
+ 'description' => '分页查询时设置的每页行数。默认为20。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序字段',
+ 'description' => '分页查询时的排序字段。目前GmtCreateTime字段用于排序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GmtCreateTime',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序方向: ASC - 升序 DESC - 降序',
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序,与SortBy结合使用。默认ASC。'."\n"
+ .'- ASC:升序。'."\n"
+ .'- DESC:降序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DESC',
+ ],
+ ],
+ [
+ 'name' => 'Labels',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '过滤值 以逗号分隔',
+ 'description' => '标签过滤条件,多个条件以半角逗号(,)分隔。'."\n"
+ .'单个条件过滤格式为`Key=Value`。'."\n"
+ .'Key支持如下值:'."\n"
+ ."\n"
+ .'- system.chipType'."\n"
+ .'- system.dsw.cudaVersion'."\n"
+ .'- system.dsw.fromImageId'."\n"
+ .'- system.dsw.fromInstanceId'."\n"
+ .'- system.dsw.id'."\n"
+ .'- system.dsw.os'."\n"
+ .'- system.dsw.osVersion'."\n"
+ .'- system.dsw.resourceType'."\n"
+ .'- system.dsw.rootImageId'."\n"
+ .'- system.dsw.stage'."\n"
+ .'- system.dsw.tag'."\n"
+ .'- system.dsw.type'."\n"
+ .'- system.framework'."\n"
+ .'- system.origin'."\n"
+ .'- system.pythonVersion'."\n"
+ .'- system.source'."\n"
+ .'- system.supported.dlc'."\n"
+ .'- system.supported.dsw',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'system.framework=XGBoost 1.6.0,system.official=true'."\n",
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否显示非必要信息:Labels',
+ 'description' => '是否显示非必要信息,非必要信息目前包含Labels。取值如下:'."\n"
+ ."\n"
+ .'- true:包含非必要信息。'."\n"
+ .'- false:不包含非必要信息。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '工作空间id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20******55',
+ ],
+ ],
+ [
+ 'name' => 'Query',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '模糊搜索镜像名称以及描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'name',
+ ],
+ ],
+ [
+ 'name' => 'Accessibility',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '镜像的可见性,目前只对自定义镜像生效。'."\n"
+ ."\n"
+ .'- PUBLIC表示公开。'."\n"
+ .'- PRIVATE表示私有。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PUBLIC',
+ ],
+ ],
+ [
+ 'name' => 'ImageUri',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'TotalCount' => [
+ 'title' => '总数',
+ 'description' => '返回的镜像总量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'Images' => [
+ 'title' => '镜像列表',
+ 'description' => '镜像列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '镜像详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '镜像名称',
+ 'description' => '镜像名称。',
+ 'type' => 'string',
+ 'example' => 'tensorflow_2.9',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建 UTC 时间,日期格式 iso8601',
+ 'description' => '创建UTC时间,日期格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'Description' => [
+ 'title' => '镜像描述',
+ 'description' => '镜像描述。',
+ 'type' => 'string',
+ 'example' => 'desc',
+ ],
+ 'ImageUri' => [
+ 'title' => '镜像地址,包含版本号',
+ 'description' => '镜像地址,包含版本号。',
+ 'type' => 'string',
+ 'example' => 'registry-vpc.cn-shanghai.aliyuncs.com/******/pai:python_3.8.10-tensorflow_2.9.0',
+ ],
+ 'Labels' => [
+ 'title' => '镜像标签,是个map',
+ 'description' => '镜像标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '镜像标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'title' => 'Key',
+ 'description' => '标签的键。',
+ 'type' => 'string',
+ 'example' => 'system.chipType',
+ ],
+ 'Value' => [
+ 'title' => 'Value',
+ 'description' => '标签的值。',
+ 'type' => 'string',
+ 'example' => 'GPU',
+ ],
+ ],
+ ],
+ ],
+ 'ImageId' => [
+ 'title' => '镜像id',
+ 'description' => '镜像ID。',
+ 'type' => 'string',
+ 'example' => 'image-tzi7f9******s45t',
+ ],
+ 'Accessibility' => [
+ 'title' => '可见性',
+ 'description' => '镜像的可见性,可能值:'."\n"
+ .'- PUBLIC:当前工作空间所有成员都可以操作。'."\n"
+ .'- PRIVATE:只有创建者可以操作。',
+ 'type' => 'string',
+ 'example' => 'PUBLIC',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '修改时间',
+ 'description' => '修改UTC时间,格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z'."\n",
+ ],
+ 'UserId' => [
+ 'title' => '创建人',
+ 'description' => '创建者的阿里云账号UID。',
+ 'type' => 'string',
+ 'example' => '155**********904',
+ ],
+ 'ParentUserId' => [
+ 'title' => '父创建人',
+ 'description' => '创建者的阿里云账号UID。',
+ 'type' => 'string',
+ 'example' => '155**********904',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间id',
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '20******55',
+ ],
+ 'Size' => [
+ 'description' => '镜像大小,单位为字节。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'SourceType' => [
+ 'title' => '镜像来源类型',
+ 'description' => '镜像来源类型',
+ 'type' => 'string',
+ ],
+ 'SourceId' => [
+ 'title' => '镜像来源 ID',
+ 'description' => '镜像来源 ID',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"TotalCount\\": 2,\\n \\"Images\\": [\\n {\\n \\"Name\\": \\"tensorflow_2.9\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"Description\\": \\"desc\\",\\n \\"ImageUri\\": \\"registry-vpc.cn-shanghai.aliyuncs.com/******/pai:python_3.8.10-tensorflow_2.9.0\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"system.chipType\\",\\n \\"Value\\": \\"GPU\\"\\n }\\n ],\\n \\"ImageId\\": \\"image-tzi7f9******s45t\\",\\n \\"Accessibility\\": \\"PUBLIC\\",\\n \\"GmtModifiedTime\\": \\"2021-01-21T17:12:35.232Z\\\\n\\",\\n \\"UserId\\": \\"155**********904\\",\\n \\"ParentUserId\\": \\"155**********904\\",\\n \\"WorkspaceId\\": \\"20******55\\",\\n \\"Size\\": 2,\\n \\"SourceType\\": \\"\\",\\n \\"SourceId\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取镜像列表',
+ ],
+ 'RemoveImage' => [
+ 'summary' => '删除镜像。',
+ 'path' => '/api/v1/images/{ImageId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '61615',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnAFIS9K',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ImageId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '镜像 id',
+ 'description' => '镜像ID。如何获取镜像ID,请参见[ListImages](~~449118~~) 。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'image-rbv******c9ks92',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。'."\n"
+ ."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '删除镜像',
+ ],
+ 'PublishImage' => [
+ 'summary' => '发布镜像,把镜像的可见性从PRIVATE变为PUBLIC。',
+ 'path' => '/api/v1/images/{ImageId}/publish',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '72192',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnAFIS9K',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ImageId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '镜像Id',
+ 'description' => '镜像ID。如何获取镜像ID,请参见[ListImages](~~449118~~) 。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'image-dk******fa',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'A0F049F0-8D69-5BAC-8F10-B******A34C',
+ ],
+ 'ImageId' => [
+ 'title' => '镜像 id',
+ 'description' => '镜像ID。',
+ 'type' => 'string',
+ 'example' => 'image-dk******fa',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A0F049F0-8D69-5BAC-8F10-B******A34C\\",\\n \\"ImageId\\": \\"image-dk******fa\\"\\n}","type":"json"}]',
+ 'title' => '发布镜像',
+ ],
+ 'RemoveImageLabels' => [
+ 'summary' => '移除镜像标签。',
+ 'path' => '/api/v1/images/{ImageId}/labels/{LabelKey}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '61614',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnAFIS9K',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ImageId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '镜像 Id',
+ 'description' => '镜像ID。如何获取镜像ID,请参见[ListImages](~~449118~~) 。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'image-d8df******dsjfd',
+ ],
+ ],
+ [
+ 'name' => 'LabelKey',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => 'label 的 key',
+ 'description' => 'label 的 key',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'key1',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。'."\n"
+ ."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '移除镜像标签',
+ ],
+ 'CreateImageBuild' => [
+ 'summary' => '根据指定配置构建自定义镜像, 构建成功后,会添加到当前工作空间的自定义镜像里。',
+ 'path' => '/api/v1/imagebuilds',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '259250',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnAFIS9K',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClientToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'title' => '幂等参数',
+ 'description' => '幂等参数',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123e4567-e89b-12d3-a456-426655440000',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => 'body参数',
+ 'description' => 'body参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'Accessibility' => [
+ 'title' => '可见性',
+ 'description' => '可见性'."\n"
+ .'- **PUBLIC** 公有'."\n"
+ .'- **PRIVATE** 私有'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PUBLIC',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间 ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '12345',
+ ],
+ 'Resource' => [
+ 'title' => '构建任务运行资源',
+ 'description' => '任务运行资源'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'EcsSpec' => [
+ 'title' => '后付费资源规格',
+ 'description' => '后付费资源规格。使用“公共资源组”时,此参数必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ecs.c6.large',
+ ],
+ 'ResourceConfig' => [
+ 'description' => '资源配置。使用预付费资源时需要指定,使用“公共资源组”时为空。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CPU' => [
+ 'description' => 'CPU 核心数',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '4',
+ ],
+ 'Memory' => [
+ 'description' => '内存容量。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '8Gi',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'ResourceId' => [
+ 'description' => '资源配额 ID。仅针对预付费资源,使用后付费资源时不设置。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'quotaadzoqup693z',
+ ],
+ 'ResourceType' => [
+ 'title' => '资源类型,使用预付费资源组时,此参数必填。当前仅支持 Lingjun',
+ 'description' => '预付费资源类型。目前只支持灵骏资源,使用预付费资源时需要指定。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Lingjun' => 'Lingjun',
+ ],
+ 'example' => 'Lingjun',
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'UserVpc' => [
+ 'title' => '用户专有网络信息',
+ 'description' => '用户专有网络信息。使用“公共资源组”时,此参数必填。',
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => [
+ 'title' => '专有网络 ID',
+ 'description' => '专有网络 ID。构建任务访问用户企业版 ACR 实例时,需要指定在用户 ACR 实例的访问控制里已添加的专有网络。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-abcdef**',
+ ],
+ 'SwitchId' => [
+ 'title' => '交换机 ID',
+ 'description' => '交换机 ID,可选。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vs-abcdef**',
+ ],
+ 'SecurityGroupId' => [
+ 'title' => '安全组 ID',
+ 'description' => '安全组 ID。指定专有网络配置时,此参数必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sg-abcdef**',
+ ],
+ 'ExtendedCidrs' => [
+ 'title' => '扩展网段',
+ 'description' => '扩展网段。'."\n"
+ .'* 当交换机 ID 为空时,此参数可以不提供,系统会自动获取 VPC 下的所有网段;'."\n"
+ .'* 当交换机 ID 不为空时,此参数必须提供,建议填写 VPC 下的所有网段。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '扩展网段',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10.0.0.0/24',
+ ],
+ 'required' => false,
+ ],
+ 'DefaultRoute' => [
+ 'title' => '默认路由网卡出口',
+ 'description' => '默认路由。'."\n"
+ .'* eth1:表示使用用户弹性网卡,通过私有网关访问外部网络。具体配置方法,请参考[配置 DSW 实例通过专有公网网关访问公网](https://help.aliyun.com/zh/pai/user-guide/configure-a-dsw-instance-to-access-the-internet-through-a-private-nat-gateway?spm=a2c4g.11186623.0.0.3b3965f6SZWm85)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eth1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'TargetRegistry' => [
+ 'title' => '目标镜像服务配置',
+ 'description' => '**目标镜像服务配置。**'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'description' => '镜像服务实例 ID。 使用 ACR 作为镜像服务时,此参数必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cri-**abcd',
+ ],
+ 'Type' => [
+ 'description' => '当前只支持企业版 ACR 作为目标镜像服务。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'AcrEnterprise',
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'OverwriteImageTag' => [
+ 'title' => '是否覆盖更新镜像',
+ 'description' => '是否覆盖更新镜像仓库中已经存在的镜像版本。',
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ 'BuildConfig' => [
+ 'title' => '构建配置',
+ 'description' => '**构建配置,指定待构建的 Dockerfile 文件内容。**'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Dockerfile' => [
+ 'title' => 'Dockerfile文件内容',
+ 'description' => '指定待构建的 Dockerfile 文件内容。'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'FROM ubuntu:18:04'."\n"
+ .'RUN pip3 install numpy==1.19.5',
+ ],
+ 'BuildType' => [
+ 'title' => 'BuildType 当前支持以下两种类型:'."\n"
+ .'PackageInstallation : 基于指定镜像安装软件包。'."\n"
+ .'CustomDockerfile:基于定制 Dockerfile。',
+ 'description' => '构建类型,当前支持以下两种类型:'."\n"
+ .'* **PackageInstallation** : 基于指定镜像安装软件包。'."\n"
+ .'* **CustomDockerfile**:基于定制 Dockerfile。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'PackageInstallation',
+ ],
+ 'RegistryAuths' => [
+ 'title' => '私有仓库鉴权信息。',
+ 'description' => '私有镜像仓库鉴权信息。可以指定非当前用户的 ACR 镜像仓库的鉴权信息,格式:{"user_registry_domain":{"Auth":"base64 encoded auth"}}',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "user-test-registry-vpc.cn-wulanchabu.cr.aliyuncs.com": {'."\n"
+ .' "Auth": "dXNlcjp0ZXN0"'."\n"
+ .' }'."\n"
+ .'}',
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'RegionId' => [
+ 'title' => '地域ID',
+ 'description' => '地域ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-wulanchabu',
+ ],
+ 'ImageBuildJobName' => [
+ 'title' => '镜像构建任务名称',
+ 'description' => '镜像构建任务名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'build-my-image',
+ ],
+ 'Image' => [
+ 'description' => '镜像元数据信息。'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '命名规则如下:'."\n"
+ .'* 长度为 1~50 个英文字符。'."\n"
+ .'* 支持小写字母、数字和短横线(-),以字母开头。'."\n"
+ .'* 同一工作空间内不可重复。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test-v1',
+ ],
+ 'Description' => [
+ 'description' => '镜像描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '构建测试镜像',
+ ],
+ 'Uri' => [
+ 'description' => '镜像地址。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'user-test-registry-vpc.cn-wulanchabu.cr.aliyuncs.com/pai-test/pai-test:test-v1',
+ ],
+ 'Labels' => [
+ 'description' => '镜像标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '镜像标签的键。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1',
+ ],
+ 'Value' => [
+ 'description' => '镜像标签的值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'value1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => true,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回值都是json格式'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ImageBuildId' => [
+ 'title' => '资源一级ID',
+ 'description' => '镜像构建 ID。'."\n",
+ 'type' => 'string',
+ 'example' => 'build-****ks92',
+ ],
+ 'ImageBuildJobId' => [
+ 'title' => '构建任务 ID。',
+ 'description' => '构建任务 ID。',
+ 'type' => 'string',
+ 'example' => 'dlc-****ks92',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ImageBuildId\\": \\"build-****ks92\\",\\n \\"ImageBuildJobId\\": \\"dlc-****ks92\\"\\n}","type":"json"}]',
+ 'title' => '构建自定义镜像',
+ 'description' => '## 请求说明'."\n",
+ ],
+ 'ListPermissions' => [
+ 'summary' => '获取用户在工作空间内的权限列表。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/permissions',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '14249',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZBMZHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '123',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '2AE63638-5420-56DC-B******8174039A0',
+ ],
+ 'Permissions' => [
+ 'title' => '权限列表',
+ 'description' => '权限列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '权限。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PermissionCode' => [
+ 'title' => '权限 code',
+ 'description' => '权限点的名字,同地域内唯一。权限点介绍,请参见[附录:角色及权限列表](~~2840449~~)。'."\n"
+ .'例如示例值PaiDLC:GetTensorboard,指的是页面中DLC功能模块的查看Tensorboard详情权限。',
+ 'type' => 'string',
+ 'example' => 'PaiDLC:GetTensorboard',
+ ],
+ 'PermissionRules' => [
+ 'description' => '权限规则列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '权限规则。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Accessibility' => [
+ 'title' => '待鉴权实例的可见性 PUBLIC表示当前工作空间所有人都可以访问 PRIVATE表示只有Owner可以访问',
+ 'description' => '访问类型,可能值:'."\n"
+ ."\n"
+ .'- PUBLIC:当前工作空间所有成员都可以操作。'."\n"
+ .'- PRIVATE:只有创建者可以操作。'."\n"
+ .'- ANY:创建者和非创建者都可以操作。',
+ 'type' => 'string',
+ 'example' => 'PRIVATE',
+ ],
+ 'EntityAccessType' => [
+ 'title' => '存取类型 CREATOR 代表能看自已创建的 OTHERS 代表可以看别人创建的 ALL代表所有',
+ 'description' => '存取类型。'."\n"
+ .'当Accessibility为PUBLIC,所有用户都能操作,此值无效;'."\n"
+ .'当Accessibility为PRIVATE时,根据EntityAccessType的值决定权限,EntityAccessType支持如下值:'."\n"
+ .'- CREATOR:只有创建者可以操作。'."\n"
+ .'- ANY:创建者和非创建者都可以操作。',
+ 'type' => 'string',
+ 'example' => 'CREATOR',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '符合过滤条件的数量',
+ 'description' => '符合过滤条件的数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2AE63638-5420-56DC-B******8174039A0\\",\\n \\"Permissions\\": [\\n {\\n \\"PermissionCode\\": \\"PaiDLC:GetTensorboard\\",\\n \\"PermissionRules\\": [\\n {\\n \\"Accessibility\\": \\"PRIVATE\\",\\n \\"EntityAccessType\\": \\"CREATOR\\"\\n }\\n ]\\n }\\n ],\\n \\"TotalCount\\": 1\\n}","type":"json"}]',
+ 'title' => '获取工作空间的权限列表',
+ ],
+ 'GetPermission' => [
+ 'summary' => '获取工作空间的权限。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/permissions/{PermissionCode}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '14248',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZBMZHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '123',
+ ],
+ ],
+ [
+ 'name' => 'PermissionCode',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '权限 code',
+ 'description' => '权限点的名字,region内唯一。权限点介绍,请参见[附录:角色及权限列表](~~2840449~~)。 如何获取权限点名称,请参见[ListPermissions](~~449132~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'PaiDLC:GetTensorboard'."\n",
+ ],
+ ],
+ [
+ 'name' => 'Accessibility',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '待鉴权实例的可见性 PUBLIC表示当前工作空间所有人都可以访问 PRIVATE表示只有Owner可以访问',
+ 'description' => '访问类型,取值如下。'."\n"
+ ."\n"
+ .'- PUBLIC:当前工作空间所有成员都可以访问。'."\n"
+ .'- PRIVATE:只有创建者可以访问。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PUBLIC',
+ ],
+ ],
+ [
+ 'name' => 'Creator',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '创建者',
+ 'description' => '工作空间权限创建者的阿里云账号UID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '17915******4216',
+ ],
+ ],
+ [
+ 'name' => 'Resource',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'job/dlc-ksd******s12',
+ ],
+ ],
+ [
+ 'name' => 'Option',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '可选配置,多个配置用英文逗号(,)分隔,取值:'."\n"
+ .'- ResourceEmpty:资源为空。如果Resource没有设置,则为空。'."\n"
+ .'- DisableRam:不进行RAM检查。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ResourceEmpty,DisableRam',
+ ],
+ ],
+ [
+ 'name' => 'Labels',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'CallerUid',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'CallerType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'PermissionCode' => [
+ 'title' => '权限',
+ 'description' => '权限点的名字,同地域内唯一。权限点介绍,请参见[附录:角色及权限列表](~~2840449~~)。',
+ 'type' => 'string',
+ 'example' => 'PaiDLC:ListJobs',
+ ],
+ 'PermissionRules' => [
+ 'description' => '权限规则列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '权限规则。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Accessibility' => [
+ 'title' => '待鉴权实例的可见性 PUBLIC表示当前工作空间所有人都可以访问 PRIVATE表示只有Owner可以访问',
+ 'description' => '访问类型,可能值:'."\n"
+ ."\n"
+ .'- PUBLIC:当前工作空间所有成员都可以操作。'."\n"
+ .'- PRIVATE:只有创建者可以操作。'."\n"
+ .'- ANY:创建者和非创建者都可以操作。',
+ 'type' => 'string',
+ 'example' => 'PRIVATE',
+ ],
+ 'EntityAccessType' => [
+ 'title' => '存取类型 CREATOR 代表能看自已创建的 OTHERS 代表可以看别人创建的 ALL代表所有',
+ 'description' => '存取类型。'."\n"
+ .'当Accessibility为PUBLIC,所有用户都能操作,此值无效;'."\n"
+ .'当Accessibility为PRIVATE,EntityAccessType支持如下值:'."\n"
+ .'- CREATOR:只有创建者可以操作。'."\n"
+ .'- ANY:创建者和非创建者都可以操作。',
+ 'type' => 'string',
+ 'example' => 'CREATOR',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"PermissionCode\\": \\"PaiDLC:ListJobs\\",\\n \\"PermissionRules\\": [\\n {\\n \\"Accessibility\\": \\"PRIVATE\\",\\n \\"EntityAccessType\\": \\"CREATOR\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取工作空间的权限',
+ ],
+ 'DeleteWorkspaceResource' => [
+ 'summary' => '删除工作空间对资源的引用,不会删除底层的资源。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/resources',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'ProductType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '**该字段已废弃,将会下线,请使用ResourceType字段**',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DLC',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源分组名。如果获取资源分组名,请参见[ListResources](~~449143~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'group',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '123',
+ ],
+ ],
+ [
+ 'name' => 'Option',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '删除行为,取值如下:'."\n"
+ ."\n"
+ .'- DetachAndDelete(默认值):与工作空间解绑并删除资源(默认值)。'."\n"
+ .'- Detach:与工作空间解绑。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DetachAndDelete',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源类型列表。取值如下:'."\n"
+ ."\n"
+ .'- ECS:通用计算资源'."\n"
+ .'- Lingjun:灵骏智算资源'."\n"
+ .'- ACS:ACS计算资源'."\n"
+ .'- FLINK:Flink资源。'."\n"
+ .'- MaxCompute: MaxCompute资源,目前只支持Option为Detach,不支持DetachAndDelete。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DLC',
+ ],
+ ],
+ [
+ 'name' => 'Labels',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '标签列表,以逗号分隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'system.supported.eas=true',
+ ],
+ ],
+ [
+ 'name' => 'ResourceIds',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '逗号分隔的多个资源ID,这多个资源ID的GroupName必须一致'."\n"
+ .'GroupName与ResourceIds不能都为空,可以两项都不为空。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Resource-dks******jkf,Resource-adf******dss',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'ResourceIds' => [
+ 'description' => '受影响的资源Id列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '受影响的资源Id。',
+ 'type' => 'string',
+ 'example' => 'Resource-dks******jkf',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"ResourceIds\\": [\\n \\"Resource-dks******jkf\\"\\n ]\\n}","type":"json"}]',
+ 'title' => '删除工作空间的资源',
+ ],
+ 'UpdateWorkspaceResource' => [
+ 'summary' => '更新工作空间的资源。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/resources',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '123',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'IsDefault' => [
+ 'title' => '是否默认资源实例,目前只能填 true,不支持填 false',
+ 'description' => '是否为默认资源,目前该参数只支持传入true,暂不支持false。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'ProductType' => [
+ 'description' => '**该字段已废弃,将会下线,请使用ResourceType字段。**',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MaxCompute',
+ ],
+ 'GroupName' => [
+ 'description' => '分组名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'group-kjds******sd',
+ ],
+ 'ResourceType' => [
+ 'description' => '资源类型列表。取值如下:'."\n"
+ ."\n"
+ .'- MaxCompute:大数据计算服务资源'."\n"
+ .'- ECS:通用计算资源'."\n"
+ .'- Lingjun:灵骏智算资源'."\n"
+ .'- ACS:ACS计算资源'."\n"
+ .'- FLINK:Flink资源',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MaxCompute',
+ ],
+ 'Labels' => [
+ 'description' => '资源标签集合。如果有多个标签,只有同时具备这些标签的资源才会被返回。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签的键。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'system.******',
+ ],
+ 'Value' => [
+ 'description' => '标签的值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'True',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'ResourceIds' => [
+ 'description' => '资源ID集合。'."\n"
+ ."\n"
+ .'GroupName与ResourceIds不能都为空,但可以都不为空;如果都不为空,集合内每个资源ID的GroupName必须一致。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Resource-dks******jkf',
+ ],
+ 'required' => false,
+ ],
+ 'Spec' => [
+ 'description' => '资源的规格。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "clusterType": "share"'."\n"
+ .'}',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'ResourceIds' => [
+ 'description' => '本次更新的资源ID集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '这次更新的资源ID。',
+ 'type' => 'string',
+ 'example' => 'Resource-dks******jkf'."\n",
+ ],
+ 'example' => 'Resource-dks******jkf',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"ResourceIds\\": [\\n \\"Resource-dks******jkf\\\\n\\"\\n ]\\n}","errorExample":""},{"type":"xml","example":"<UpdateWorkspaceResourceResponse>\\n <RequestId>1e195c5116124202371861018d5bde</RequestId>\\n</UpdateWorkspaceResourceResponse>","errorExample":""}]',
+ 'title' => '更新工作空间的资源',
+ ],
+ 'ListResources' => [
+ 'summary' => '获取工作空间内已关联的资源列表。',
+ 'path' => '/api/v1/resources',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。'."\n"
+ .'- 当参数Option为ListResourceByWorkspace时,该参数必填。'."\n"
+ .'- 当参数Option为ListResource时,该参数无需配置。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分页,从1开始,默认1',
+ 'description' => '资源列表的页码,起始值为1,默认为1。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '页大小,默认20',
+ 'description' => '分页查询时设置的每页行数,默认为20。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'ProductTypes',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '逗号分隔的产品类型,可选值 MaxCompute,DLC',
+ 'description' => '**该字段已废弃,将会下线,请使用ResourceType字段。**',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MaxCompute',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源的group名字',
+ 'description' => '资源分组名。如何获取资源分组名,请参见[ListResources](~~449143~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'group',
+ ],
+ ],
+ [
+ 'name' => 'ResourceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源的名字',
+ 'description' => '资源名。格式为:'."\n"
+ .'- 长度为3~28个字符。'."\n"
+ .'- 同地域内唯一。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'resource',
+ ],
+ ],
+ [
+ 'name' => 'Option',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '选项,目前支持 ListResourceByWorkspace 列举某个工作空间的资源 GetResource 获取所有工作空间下的资源 GetResourceGroup 获取所有工作空间下的资源组 ListResourceSummaryByWorkspaces 列举一组工作空间的资源汇总',
+ 'description' => '选项,取值如下:'."\n"
+ ."\n"
+ .'- ListResourceByWorkspace(默认值):获取工作空间的资源列表。'."\n"
+ .'- ListResource:获取用户的资源列表。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ListResourceByWorkspace',
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否展示详细信息,目前详细信息包含字段Quotas。取值如下:'."\n"
+ .'- true(默认值):展示详细信息'."\n"
+ .'- false:不展示详细信息',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'ResourceTypes',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源类型列表。取值如下:'."\n"
+ ."\n"
+ .'- MaxCompute:大数据计算服务资源'."\n"
+ .'- ECS:通用计算资源'."\n"
+ .'- Lingjun:灵骏智算资源'."\n"
+ .'- ACS:ACS计算资源'."\n"
+ .'- FLINK:Flink资源',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MaxCompute',
+ ],
+ ],
+ [
+ 'name' => 'QuotaIds',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'QuotaId集合,用逗号分割。只有同时具有这些QuotaId的资源才会被返回。'."\n"
+ ."\n\n"
+ .'> 目前只有ResourceTypes=ACS的资源才支持用该参数过滤。'."\n"
+ .'>',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'quota-k******da,quota-cd******w',
+ ],
+ ],
+ [
+ 'name' => 'Labels',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Label过滤条件集合,多个条件用逗号分隔。只有同时满足这些标签的资源才会被返回。'."\n"
+ ."\n"
+ .'目前只有ProductType=ACS的资源才支持用该参数过滤。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'system.supported.dsw=true,system.supported.dlc=true',
+ ],
+ ],
+ [
+ 'name' => 'VerboseFields',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '逗号分隔的集合,表明要返回的字段。目前支持:'."\n"
+ .'- Quota'."\n"
+ .'- Label'."\n"
+ .'- IsDefault',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Quota,IsDefault',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '1e195c5116124202371861018d5bde',
+ ],
+ 'Resources' => [
+ 'title' => '资源列表',
+ 'description' => '资源列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'title' => '资源 id',
+ 'description' => '资源ID。',
+ 'type' => 'string',
+ 'example' => '123',
+ ],
+ 'Name' => [
+ 'title' => '资源名 长度需要在3到27个字符 region内唯一',
+ 'description' => '资源名。',
+ 'type' => 'string',
+ 'example' => 'ResourceName',
+ ],
+ 'ProductType' => [
+ 'title' => '产品类型, 支持PAI,MaxCompute',
+ 'description' => '**该字段已废弃,将会下线,请使用ResourceType字段。**',
+ 'type' => 'string',
+ 'example' => 'MaxCompute',
+ ],
+ 'EnvType' => [
+ 'title' => '环境, 支持dev(开发)、prod(生产)',
+ 'description' => '环境类型,可能值:'."\n"
+ .'- dev:开发环境'."\n"
+ .'- prod:生产环境',
+ 'type' => 'string',
+ 'example' => 'prod',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '所属的工作空间 id',
+ 'description' => '所属的工作空间ID。',
+ 'type' => 'string',
+ 'example' => '123',
+ ],
+ 'IsDefault' => [
+ 'title' => '是否默认资源 每个类型都有一个默认的资源',
+ 'description' => '是否为默认资源,每种资源类型都有一个默认的资源。可能值:'."\n"
+ .'- true:是默认资源'."\n"
+ .'- false:不是默认资源',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Quotas' => [
+ 'description' => '配额列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '配额信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '配额名称',
+ 'description' => '配额名称。',
+ 'type' => 'string',
+ 'example' => 'QuotaName',
+ ],
+ 'ProductCode' => [
+ 'title' => '商品 code',
+ 'description' => '产品名,可能值:'."\n"
+ .'- PAI_isolate:pai预付费资源组(pai cpu)'."\n"
+ .'- PAI_share:pai后付费资源组(pai gpu)'."\n"
+ .'- MaxCompute_share:MaxCompute后付费资源组'."\n"
+ .'- MaxCompute_isolate:MaxCompute预付费资源组'."\n"
+ .'- DataWorks_isolate:DataWorks预付费资源组'."\n"
+ .'- DataWorks_share:DataWorks后付费资源组'."\n"
+ .'- DLC_share:DLC后付费资源组',
+ 'type' => 'string',
+ 'example' => 'MaxCompute_isolate',
+ ],
+ 'QuotaType' => [
+ 'title' => '产品类型, 支持PAI,MaxCompute',
+ 'description' => '资源配额类型, 可能值:'."\n"
+ .'- PAI'."\n"
+ .'- MaxCompute'."\n"
+ .'- DLC',
+ 'type' => 'string',
+ 'example' => 'MaxCompute',
+ ],
+ 'Mode' => [
+ 'title' => '模式 isolate 预付费 share 后付费 develop 开发模式',
+ 'description' => '付费模式,可能值:'."\n"
+ ."\n"
+ .'- isolate:预付费'."\n"
+ .'- share:后付费',
+ 'type' => 'string',
+ 'example' => 'isolate',
+ ],
+ 'Specs' => [
+ 'title' => '规格描述列表',
+ 'description' => '规格描述列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规格描述信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '规格名字',
+ 'description' => '规格名字。',
+ 'type' => 'string',
+ 'example' => 'cu',
+ ],
+ 'Value' => [
+ 'title' => '规格描述',
+ 'description' => '规格描述。',
+ 'type' => 'string',
+ 'example' => '11500',
+ ],
+ ],
+ ],
+ 'example' => '{\\"cu\\":\\"11500\\",\\"minCu\\":\\"2300\\",\\"parentId\\":\\"0\\"}',
+ ],
+ 'CardType' => [
+ 'title' => '卡类型,支持cpu、gpu',
+ 'description' => '卡类型,可能值:'."\n"
+ .'- CPU'."\n"
+ .'- GPU',
+ 'type' => 'string',
+ 'example' => 'CPU',
+ ],
+ 'Id' => [
+ 'title' => '配额id',
+ 'description' => '资源配额ID。',
+ 'type' => 'string',
+ 'example' => '123',
+ ],
+ 'DisplayName' => [
+ 'description' => '资源配额别名。',
+ 'type' => 'string',
+ 'example' => '默认后付费Quota',
+ ],
+ ],
+ ],
+ ],
+ 'Spec' => [
+ 'title' => '对于MaxCompute是个json,有如下key: Endpoint Project',
+ 'description' => '规格说明。',
+ 'type' => 'object',
+ 'example' => '对于MaxCompute {"Endpoint": "odps.alibaba-inc.com", "Project": "mignshi"}',
+ ],
+ 'GroupName' => [
+ 'title' => '分组名,主账户内唯一 一个 GroupName 下可能有一个 dev 资源和一个 prod 资源',
+ 'description' => '资源分组名,主账户内唯一。',
+ 'type' => 'string',
+ 'example' => 'groupName',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建 UTC 时间,日期格式 iso8601',
+ 'description' => '创建UTC时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'Executor' => [
+ 'description' => '该字段无效,已废弃。',
+ 'type' => 'object',
+ 'properties' => [
+ 'OwnerId' => [
+ 'description' => '该字段无效,已废弃。',
+ 'type' => 'string',
+ 'example' => '110973******7793',
+ ],
+ ],
+ ],
+ 'Encryption' => [
+ 'description' => '加密信息,目前只对MaxCompute资源有效。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Enabled' => [
+ 'description' => '是否加密。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'Algorithm' => [
+ 'description' => '加密算法。',
+ 'type' => 'string',
+ 'example' => 'AESCTR',
+ ],
+ 'Key' => [
+ 'description' => '加密主键。',
+ 'type' => 'string',
+ 'example' => 'DEFAULT',
+ ],
+ ],
+ ],
+ 'ResourceType' => [
+ 'description' => '资源类型,可能值:'."\n"
+ ."\n"
+ .'- MaxCompute:大数据计算服务资源'."\n"
+ .'- DLC:云原生资源'."\n"
+ .'- FLINK:Flink资源',
+ 'type' => 'string',
+ 'example' => 'MaxCompute',
+ ],
+ 'Labels' => [
+ 'description' => '标签集合。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签的Key。',
+ 'type' => 'string',
+ 'example' => 'system.supported.dsw',
+ ],
+ 'Value' => [
+ 'description' => '标签的Value。',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '符合过滤条件的作业数量',
+ 'description' => '符合过滤条件的资源数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1e195c5116124202371861018d5bde\\",\\n \\"Resources\\": [\\n {\\n \\"Id\\": \\"123\\",\\n \\"Name\\": \\"ResourceName\\",\\n \\"ProductType\\": \\"MaxCompute\\",\\n \\"EnvType\\": \\"prod\\",\\n \\"WorkspaceId\\": \\"123\\",\\n \\"IsDefault\\": true,\\n \\"Quotas\\": [\\n {\\n \\"Name\\": \\"QuotaName\\",\\n \\"ProductCode\\": \\"MaxCompute_isolate\\",\\n \\"QuotaType\\": \\"MaxCompute\\",\\n \\"Mode\\": \\"isolate\\",\\n \\"Specs\\": [\\n {\\n \\"Name\\": \\"cu\\",\\n \\"Value\\": \\"11500\\"\\n }\\n ],\\n \\"CardType\\": \\"CPU\\",\\n \\"Id\\": \\"123\\",\\n \\"DisplayName\\": \\"默认后付费Quota\\"\\n }\\n ],\\n \\"Spec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"GroupName\\": \\"groupName\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"Executor\\": {\\n \\"OwnerId\\": \\"110973******7793\\"\\n },\\n \\"Encryption\\": {\\n \\"Enabled\\": false,\\n \\"Algorithm\\": \\"AESCTR\\",\\n \\"Key\\": \\"DEFAULT\\"\\n },\\n \\"ResourceType\\": \\"MaxCompute\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"system.supported.dsw\\",\\n \\"Value\\": \\"true\\"\\n }\\n ]\\n }\\n ],\\n \\"TotalCount\\": 2\\n}","errorExample":""},{"type":"xml","example":"<ListResourcesResponse>\\n <RequestId>1e195c5116124202371861018d5bde</RequestId>\\n <Resources>\\n <id>123</id>\\n <Name>ResourceName</Name>\\n <ProductType>MaxCompute</ProductType>\\n <EnvType>prod</EnvType>\\n <WorkspaceId>123</WorkspaceId>\\n <IsDefault>true</IsDefault>\\n <Quotas>\\n <Name>QuotaName</Name>\\n <ProductCode>MaxCompute_isolate</ProductCode>\\n <QuotaType>MaxCompute</QuotaType>\\n <Mode>develop</Mode>\\n <Specs>\\n <Name>quota</Name>\\n <Value>{\\\\\\"cu\\\\\\":\\\\\\"11500\\\\\\",\\\\\\"minCu\\\\\\":\\\\\\"2300\\\\\\",\\\\\\"parentId\\\\\\":\\\\\\"0\\\\\\"}</Value>\\n </Specs>\\n <CardType>cpu</CardType>\\n <Id>123</Id>\\n </Quotas>\\n <GroupName>groupName</GroupName>\\n <GmtCreateTime>2021-01-21T17:12:35.232Z</GmtCreateTime>\\n <ResourceSummary>\\n <ProductType>DLC</ProductType>\\n <Count>2</Count>\\n </ResourceSummary>\\n </Resources>\\n <TotalCount>2</TotalCount>\\n</ListResourcesResponse>","errorExample":""}]',
+ 'title' => '获取工作空间的资源列表',
+ ],
+ 'CreateWorkspaceResource' => [
+ 'summary' => '添加资源引用到工作空间。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/resources',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '123',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Resources' => [
+ 'title' => '资源列表',
+ 'description' => '资源列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '资源名 长度需要在3到27个字符 region内唯一',
+ 'description' => '资源名。格式如下。'."\n"
+ .'- 长度为3~28个字符,以字母开头,只能包含字母、数字和下划线(_)。'."\n"
+ .'- 同地域内唯一。'."\n"
+ .'- Option为Attach、Detach时,对于ResourceType为MaxCompute Name,Name为ProjectName。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'ResourceName',
+ ],
+ 'ProductType' => [
+ 'title' => '产品类型, 支持PAI,MaxCompute',
+ 'description' => '**该字段已废弃,将会下线,请使用ResourceType字段**。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MaxCompute',
+ ],
+ 'EnvType' => [
+ 'title' => '环境, 支持dev(开发)、prod(生产)',
+ 'description' => '环境类型, 取值如下:'."\n"
+ .'- dev:开发环境'."\n"
+ .'- prod:生产环境',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'prod',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '所属的工作空间 id',
+ 'description' => '所属的工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '123',
+ ],
+ 'IsDefault' => [
+ 'title' => '是否默认资源 每个类型都有一个默认的资源',
+ 'description' => '是否为默认资源(每种资源类型有一个默认的资源)。取值如下:'."\n"
+ .'- false(默认值):不是默认资源'."\n"
+ .'- true:是默认资源',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ 'Quotas' => [
+ 'description' => '资源配额列表,目前只有MaxCompute资源有资源配额。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源配额详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'title' => '配额名称',
+ 'description' => '资源配额ID。如何获取资源配额ID,请参见[ListQuotas](~~449144~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '232892******92912',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'Spec' => [
+ 'description' => '资源规格说明,JSON格式。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '对于MaxCompute {"Endpoint": "odps.alibaba-inc.com", "Project": "mignshi"}',
+ ],
+ 'GroupName' => [
+ 'title' => '分组名,主账户内唯一 一个 GroupName 下可能有一个 dev 资源和一个 prod 资源',
+ 'description' => '资源分组名,主账户内唯一。对于MaxCompute、ECS、Lingjun、ACS、FLINK都是必填。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'groupName',
+ ],
+ 'ResourceType' => [
+ 'description' => '资源类型列表。取值如下:'."\n"
+ ."\n"
+ .'- MaxCompute:大数据计算服务资源'."\n"
+ .'- ECS:通用计算资源'."\n"
+ .'- Lingjun:灵骏智算资源'."\n"
+ .'- ACS:ACS计算资源'."\n"
+ .'- FLINK:Flink资源',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MaxCompute',
+ ],
+ 'Labels' => [
+ 'description' => '资源标签数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签的Key。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'system.support.eas',
+ ],
+ 'Value' => [
+ 'description' => '标签的Value。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => true,
+ ],
+ 'required' => true,
+ ],
+ 'Option' => [
+ 'description' => '创建行为,取值如下:'."\n"
+ .'- CreateAndAttach:创建资源并绑定到工作空间。'."\n"
+ .'- Attach:绑定资源到工作空间。Detach和Attach必填参数为Name、ResourceType、GroupName、EnvType。'."\n"
+ .'> MaxCompute只支持Attach。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CreateAndAttach',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '1e195c5116124202371861018d5bde',
+ ],
+ 'Resources' => [
+ 'title' => '资源集合',
+ 'description' => '资源集合',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => [
+ 'title' => '资源Id',
+ 'description' => '资源ID。',
+ 'type' => 'string',
+ 'example' => '1234',
+ ],
+ ],
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '总数',
+ 'description' => '资源总数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1e195c5116124202371861018d5bde\\",\\n \\"Resources\\": [\\n {\\n \\"Id\\": \\"1234\\"\\n }\\n ],\\n \\"TotalCount\\": 1\\n}","type":"json"}]',
+ 'title' => '创建工作空间的资源',
+ ],
+ 'AddMemberRole' => [
+ 'summary' => '为工作空间内的成员添加某个角色,使其拥有角色的权限。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/members/{MemberId}/roles/{RoleName}',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145883',
+ ],
+ ],
+ [
+ 'name' => 'MemberId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '成员 id',
+ 'description' => '成员ID。如何获取成员ID,请参见[ListMembers](~~449135~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145883-215139******688039',
+ ],
+ ],
+ [
+ 'name' => 'RoleName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '角色',
+ 'description' => '角色名。角色名和权限的对应关系,请参见[附录:角色及权限列表](~~2840449~~) 。'."\n"
+ .'支持以下角色名:'."\n"
+ ."\n"
+ .'- PAI.AlgoDeveloper:算法开发。'."\n"
+ .'- PAI.AlgoOperator:算法运维。'."\n"
+ .'- PAI.LabelManager:标注管理员。'."\n"
+ .'- PAI.MaxComputeDeveloper:MaxCompute开发。'."\n"
+ .'- PAI.WorkspaceAdmin:管理员。'."\n"
+ .'- PAI.WorkspaceGuest:访客。'."\n"
+ .'- PAI.WorkspaceOwner:负责人。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'PAI.AlgoDeveloper',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '成员添加角色',
+ ],
+ 'RemoveMemberRole' => [
+ 'summary' => '删除成员角色。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/members/{MemberId}/roles/{RoleName}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145883',
+ ],
+ ],
+ [
+ 'name' => 'MemberId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '成员 id',
+ 'description' => '成员ID。如何获取成员ID,请参见[ListMembers](~~449135~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145883-21513926******88039',
+ ],
+ ],
+ [
+ 'name' => 'RoleName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '角色',
+ 'description' => '角色名。角色名和权限的对应关系,请参见[附录:角色及权限列表](~~2840449~~) 。'."\n"
+ .'支持以下角色名:'."\n"
+ ."\n"
+ .'- PAI.AlgoDeveloper:算法开发。'."\n"
+ .'- PAI.AlgoOperator:算法运维。'."\n"
+ .'- PAI.LabelManager:标注管理员。'."\n"
+ .'- PAI.MaxComputeDeveloper:MaxCompute开发。'."\n"
+ .'- PAI.WorkspaceAdmin:管理员。'."\n"
+ .'- PAI.WorkspaceGuest:访客。'."\n"
+ .'- PAI.WorkspaceOwner:负责人。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'PAI.AlgoDeveloper',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '删除成员角色 ',
+ ],
+ 'DeleteMembers' => [
+ 'summary' => '删除工作空间的成员。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/members',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145883',
+ ],
+ ],
+ [
+ 'name' => 'MemberIds',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '需要删除的成员 Id 列表,以逗号分隔',
+ 'description' => '成员ID列表,多个成员ID以半角逗号(,)分隔。如何获取成员ID,请参见[ListMembers](~~449135~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145883-21513926******88039,145883-2769726******87513',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D5BFFEE3-6025-443F-8A03-02D619B5C4B9',
+ ],
+ 'Code' => [
+ 'description' => '请求失败时返回的错误代码。',
+ 'type' => 'string',
+ 'example' => '100600017',
+ ],
+ 'Message' => [
+ 'description' => '请求失败时的返回信息。',
+ 'type' => 'string',
+ 'example' => 'Owner not allowed to delete',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D5BFFEE3-6025-443F-8A03-02D619B5C4B9\\",\\n \\"Code\\": \\"100600017\\",\\n \\"Message\\": \\"Owner not allowed to delete\\"\\n}","type":"json"}]',
+ 'title' => '工作空间删除成员 ',
+ ],
+ 'GetMember' => [
+ 'summary' => '获取工作空间的成员。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/member',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '36846',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZBMZHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145883',
+ ],
+ ],
+ [
+ 'name' => 'UserId',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'title' => '用户id',
+ 'description' => '用户UID。如何查看用户UID,请参见 [ListWorkspaceUsers](~~449133~~)。'."\n"
+ .'UserId与MemberId必须指定一个,不能同时指定。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '21513926******88039',
+ ],
+ ],
+ [
+ 'name' => 'MemberId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '成员UID。UserId与MemberId必须指定一个,不能同时指定。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '145883-21513926******88039',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'UserId' => [
+ 'title' => '用户 id',
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '21513926******88039',
+ ],
+ 'MemberName' => [
+ 'title' => '云账号用户名',
+ 'description' => '用户名。',
+ 'type' => 'string',
+ 'example' => 'user1',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建 UTC 时间,日期格式 iso8601',
+ 'description' => '创建UTC时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'Roles' => [
+ 'title' => '角色列表',
+ 'description' => '角色列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '角色名。角色名和权限的对应关系,请参见[角色及权限列表](https://pai.console.aliyun.com/?spm=api-workbench.API%20Explorer.0.0.7a862392uO09Se&regionId=cn-shanghai#/workspace/permission)。'."\n"
+ .'角色名可能值:'."\n"
+ ."\n"
+ .'- PAI.AlgoDeveloper:算法开发。'."\n"
+ .'- PAI.AlgoOperator:算法运维。'."\n"
+ .'- PAI.LabelManager:标注管理员。'."\n"
+ .'- PAI.MaxComputeDeveloper:MaxCompute开发。'."\n"
+ .'- PAI.WorkspaceAdmin:管理员。'."\n"
+ .'- PAI.WorkspaceGuest:访客。'."\n"
+ .'- PAI.WorkspaceOwner:负责人。',
+ 'type' => 'string',
+ 'example' => 'myRole1',
+ ],
+ ],
+ 'DisplayName' => [
+ 'title' => '成员显示名',
+ 'description' => '成员显示名。',
+ 'type' => 'string',
+ 'example' => 'myDisplayName',
+ ],
+ 'MemberId' => [
+ 'title' => '成员 id',
+ 'description' => '成员ID。',
+ 'type' => 'string',
+ 'example' => '145883-21513926******88039'."\n",
+ ],
+ 'AccountType' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"UserId\\": \\"21513926******88039\\",\\n \\"MemberName\\": \\"user1\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"Roles\\": [\\n \\"myRole1\\"\\n ],\\n \\"DisplayName\\": \\"myDisplayName\\",\\n \\"MemberId\\": \\"145883-21513926******88039\\\\n\\",\\n \\"AccountType\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => '获取工作空间的成员',
+ ],
+ 'ListMembers' => [
+ 'summary' => '获取工作空间的成员列表。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/members',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '14243',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZBMZHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '123',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分页,从1开始,默认1',
+ 'description' => '工作空间列表的页码。起始值为1,默认为1。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '页大小,默认20',
+ 'description' => '分页查询时设置的每页行数。默认为20。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'Roles',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Role 过滤列表,逗号分隔',
+ 'description' => '使用角色过滤成员,多个角色以半角逗号(,)分隔。'."\n"
+ .'支持以下角色名:'."\n"
+ .'- PAI.AlgoDeveloper:算法开发。'."\n"
+ .'- PAI.AlgoOperator:算法运维。'."\n"
+ .'- PAI.LabelManager:标注管理员。'."\n"
+ .'- PAI.MaxComputeDeveloper:MaxCompute开发。'."\n"
+ .'- PAI.WorkspaceAdmin:管理员。'."\n"
+ .'- PAI.WorkspaceGuest:访客。'."\n"
+ .'- PAI.WorkspaceOwner:负责人。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PAI.AlgoDeveloper',
+ ],
+ ],
+ [
+ 'name' => 'MemberName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '成员名',
+ 'description' => '成员名,支持模糊匹配。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zhangsan',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
+ ],
+ 'Members' => [
+ 'title' => '成员列表',
+ 'description' => '成员列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '成员详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UserId' => [
+ 'title' => '用户 id',
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '215139******88039',
+ ],
+ 'MemberName' => [
+ 'title' => '云账号用户名',
+ 'description' => '用户名。',
+ 'type' => 'string',
+ 'example' => 'user1',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建 UTC 时间,日期格式 iso8601',
+ 'description' => '创建UTC时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'Roles' => [
+ 'title' => '角色列表',
+ 'description' => '角色列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '角色名。角色名和权限的对应关系,请参见[附录:角色及权限列表](~~2840449~~)。'."\n"
+ ."\n"
+ .'角色名可能值:'."\n"
+ ."\n"
+ .'- PAI.AlgoDeveloper:算法开发。'."\n"
+ .'- PAI.AlgoOperator:算法运维。'."\n"
+ .'- PAI.LabelManager:标注管理员。'."\n"
+ .'- PAI.MaxComputeDeveloper:MaxCompute开发。'."\n"
+ .'- PAI.WorkspaceAdmin:管理员。'."\n"
+ .'- PAI.WorkspaceGuest:访客。'."\n"
+ .'- PAI.WorkspaceOwner:负责人。',
+ 'type' => 'string',
+ 'example' => 'PAI.AlgoDeveloper',
+ ],
+ ],
+ 'DisplayName' => [
+ 'title' => '成员显示名',
+ 'description' => '成员显示名。',
+ 'type' => 'string',
+ 'example' => 'myDisplayName',
+ ],
+ 'MemberId' => [
+ 'title' => '成员 id',
+ 'description' => '成员ID。',
+ 'type' => 'string',
+ 'example' => '14588*****51688039',
+ ],
+ 'AccountName' => [
+ 'type' => 'string',
+ ],
+ 'AccountType' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '符合过滤条件的数量',
+ 'description' => '符合过滤条件的成员数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Members\\": [\\n {\\n \\"UserId\\": \\"215139******88039\\",\\n \\"MemberName\\": \\"user1\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"Roles\\": [\\n \\"PAI.AlgoDeveloper\\"\\n ],\\n \\"DisplayName\\": \\"myDisplayName\\",\\n \\"MemberId\\": \\"14588*****51688039\\",\\n \\"AccountName\\": \\"\\",\\n \\"AccountType\\": \\"\\"\\n }\\n ],\\n \\"TotalCount\\": 1\\n}","type":"json"}]',
+ 'title' => '获取工作空间的成员列表',
+ ],
+ 'CreateMember' => [
+ 'summary' => '添加用户到工作空间,作为工作空间的成员,可以添加多个用户为成员。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/members',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '123',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Members' => [
+ 'title' => '用户列表',
+ 'description' => '成员列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '成员详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UserId' => [
+ 'title' => '用户 id',
+ 'description' => '成员ID列表,多个成员ID以半角逗号(,)分隔。如何获取成员ID,请参见[ListMembers](~~449135~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145883-21513926******88039,145883-2769726******87513',
+ ],
+ 'Roles' => [
+ 'title' => '角色列表',
+ 'description' => '角色列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '角色名。角色名和权限的对应关系,请参见[角色及权限列表](https://pai.console.aliyun.com/?regionId=cn-shanghai#/workspace/permission)。'."\n"
+ .'支持以下角色名:'."\n"
+ .'- PAI.AlgoDeveloper:算法开发。'."\n"
+ .'- PAI.AlgoOperator:算法运维。'."\n"
+ .'- PAI.LabelManager:标注管理员。'."\n"
+ .'- PAI.MaxComputeDeveloper:MaxCompute开发。'."\n"
+ .'- PAI.WorkspaceAdmin:管理员。'."\n"
+ .'- PAI.WorkspaceGuest:访客。'."\n"
+ .'- PAI.WorkspaceOwner:负责人。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PAI.AlgoDeveloper',
+ ],
+ 'required' => true,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'DA869D1B-035A-43B2-ACC1-C56681BD9FAA',
+ ],
+ 'Members' => [
+ 'title' => '成员列表',
+ 'description' => '成员列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '成员详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UserId' => [
+ 'title' => '用户 id',
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '21513926******88039'."\n",
+ ],
+ 'Roles' => [
+ 'title' => '角色列表',
+ 'description' => '角色列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '角色名。角色名和权限的对应关系,请参见[角色及权限列表](https://pai.console.aliyun.com/?regionId=cn-shanghai#/workspace/permission)。'."\n"
+ .'角色名可能值:'."\n"
+ ."\n"
+ .'- PAI.AlgoDeveloper:算法开发'."\n"
+ .'- PAI.AlgoOperator:算法运维'."\n"
+ .'- PAI.LabelManager:标注管理员'."\n"
+ .'- PAI.MaxComputeDeveloper:MaxCompute开发'."\n"
+ .'- PAI.WorkspaceAdmin:管理员'."\n"
+ .'- PAI.WorkspaceGuest:访客'."\n"
+ .'- PAI.WorkspaceOwner:负责人',
+ 'type' => 'string',
+ 'example' => 'PAI.AlgoDeveloper',
+ ],
+ ],
+ 'DisplayName' => [
+ 'title' => '成员显示名',
+ 'description' => '显示名。',
+ 'type' => 'string',
+ 'example' => 'myDisplayName',
+ ],
+ 'MemberId' => [
+ 'title' => '成员 id',
+ 'description' => '成员ID。',
+ 'type' => 'string',
+ 'example' => '145883-21513926******88039'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DA869D1B-035A-43B2-ACC1-C56681BD9FAA\\",\\n \\"Members\\": [\\n {\\n \\"UserId\\": \\"21513926******88039\\\\n\\",\\n \\"Roles\\": [\\n \\"PAI.AlgoDeveloper\\"\\n ],\\n \\"DisplayName\\": \\"myDisplayName\\",\\n \\"MemberId\\": \\"145883-21513926******88039\\\\n\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '工作空间添加成员',
+ ],
+ 'UpdateConfigs' => [
+ 'summary' => '批量更新或新增工作空间配置。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/configs',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '117760',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnOTS2AE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '83***',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Configs' => [
+ 'title' => '配置列表',
+ 'description' => '要更新或者新增的工作空间配置列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '要更新或者新增的工作空间配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ConfigKey' => [
+ 'title' => '配置键',
+ 'description' => '配置项的键。目前支持如下键:'."\n"
+ ."\n"
+ .'- tempStoragePath 临时存储路径,只有CategoryName为CommonResourceConfig时才允许使用该ConfigKey'."\n"
+ .'- isAutoRecycle 自动回收配置,只有CategoryName为DLCAutoRecycle时才允许使用该ConfigKey'."\n"
+ .'- priorityConfig 优先级配置,只有CategoryName为DLCPriorityConfig或者DSWPriorityConfig时才允许使用该ConfigKey'."\n"
+ .'- quotaMaximumDuration Quota的DLC任务最大运行时长配置,只有CategoryName为QuotaMaximumDuration时才允许使用该ConfigKey'."\n"
+ .'- predefinedTags 工作空间预置标签,创建的资源必须带上标签',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tempStoragePath',
+ ],
+ 'ConfigValue' => [
+ 'title' => '配置值',
+ 'description' => '配置值'."\n"
+ ."\n"
+ .'- 对于ConfigKey为predefinedTags,ConfigValue格式为[{"Type":"Tag","Key":"Key1","Value":"{\\"Products\\":\\"DLC,DSW,EAS\\",\\"Values\\":\\"value1,value2,value3\\"}"}],Products代表哪些产品使用预置标签。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'oss://test/s/',
+ ],
+ 'CategoryName' => [
+ 'description' => '配置项的分类。目前支持如下分类'."\n"
+ ."\n"
+ .'- CommonResourceConfig 通用资源配置'."\n"
+ .'- DLCAutoRecycle DLC自动回收'."\n"
+ .'- DLCPriorityConfig DLC 优先级设置'."\n"
+ .'- DSWPriorityConfig DSW优先级设置'."\n"
+ .'- QuotaMaximumDuration Quota的DLC任务最大运行时长配置'."\n"
+ .'- CommonTagConfig 标签设置',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CommonResourceConfig',
+ ],
+ 'Labels' => [
+ 'description' => '配置项的标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '配置项的标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签的键。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1',
+ ],
+ 'Value' => [
+ 'description' => '标签的值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'value1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '473469C7-AA6F-4DC5-B3DB-A******C83E'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A******C83E\\\\n\\"\\n}","type":"json"}]',
+ 'title' => '批量更新或新增工作空间配置',
+ ],
+ 'GetConfig' => [
+ 'summary' => '获取工作空间配置。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/config',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '240491',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnDVAH75',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1234******2',
+ ],
+ ],
+ [
+ 'name' => 'CategoryName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置项的分类。目前支持如下分类'."\n"
+ ."\n"
+ .'- CommonResourceConfig 通用资源配置'."\n"
+ .'- DLCAutoRecycle DLC自动回收'."\n"
+ .'- DLCPriorityConfig DLC 优先级设置'."\n"
+ .'- DSWPriorityConfig DSW优先级设置'."\n"
+ .'- QuotaMaximumDuration Quota的DLC任务最大运行时长配置'."\n"
+ .'- CommonTagConfig 标签设置',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CommonResourceConfig',
+ ],
+ ],
+ [
+ 'name' => 'ConfigKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置项的键。目前支持如下键:'."\n"
+ ."\n"
+ .'- tempStoragePath 临时存储路径,只有CategoryName为CommonResourceConfig时才允许使用该ConfigKey'."\n"
+ .'- isAutoRecycle 自动回收配置,只有CategoryName为DLCAutoRecycle时才允许使用该ConfigKey'."\n"
+ .'- priorityConfig 优先级配置,只有CategoryName为DLCPriorityConfig或者DSWPriorityConfig时才允许使用该ConfigKey'."\n"
+ .'- quotaMaximumDuration Quota的DLC任务最大运行时长配置,只有CategoryName为QuotaMaximumDuration时才允许使用该ConfigKey'."\n"
+ .'- predefinedTags 工作空间预置标签,创建的资源必须带上标签',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tempStoragePath',
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置项的值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'oss://***',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '473469C7-AA6F-4DC5-B3DB-A******C83E',
+ ],
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '1234******2'."\n",
+ ],
+ 'ConfigKey' => [
+ 'description' => '配置项的键。目前支持如下键:'."\n"
+ ."\n"
+ .'- tempStoragePath 临时存储路径,只有CategoryName为CommonResourceConfig时才允许使用该ConfigKey'."\n"
+ .'- isAutoRecycle 自动回收配置,只有CategoryName为DLCAutoRecycle时才允许使用该ConfigKey'."\n"
+ .'- priorityConfig 优先级配置,只有CategoryName为DLCPriorityConfig或者DSWPriorityConfig时才允许使用该ConfigKey'."\n"
+ .'- quotaMaximumDuration Quota的DLC任务最大运行时长配置,只有CategoryName为QuotaMaximumDuration时才允许使用该ConfigKey'."\n"
+ .'- predefinedTags 工作空间预置标签,创建的资源必须带上标签',
+ 'type' => 'string',
+ 'example' => 'tempStoragePath',
+ ],
+ 'ConfigValue' => [
+ 'description' => '配置项的值。',
+ 'type' => 'string',
+ 'example' => 'oss://***',
+ ],
+ 'CategoryName' => [
+ 'description' => '配置项的分类。目前支持如下分类'."\n"
+ ."\n"
+ .'- CommonResourceConfig 通用资源配置'."\n"
+ .'- DLCAutoRecycle DLC自动回收'."\n"
+ .'- DLCPriorityConfig DLC 优先级设置'."\n"
+ .'- DSWPriorityConfig DSW优先级设置'."\n"
+ .'- QuotaMaximumDuration Quota的DLC任务最大运行时长配置'."\n"
+ .'- CommonTagConfig 标签设置',
+ 'type' => 'string',
+ 'example' => 'CommonResourceConfig',
+ ],
+ 'Labels' => [
+ 'description' => '配置项的标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '配置项的标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签的键。',
+ 'type' => 'string',
+ 'example' => 'key1',
+ ],
+ 'Value' => [
+ 'description' => '标签的值。',
+ 'type' => 'string',
+ 'example' => 'value1',
+ ],
+ ],
+ ],
+ ],
+ 'GmtCreateTime' => [
+ 'type' => 'string',
+ ],
+ 'GmtModifiedTime' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A******C83E\\",\\n \\"WorkspaceId\\": \\"1234******2\\\\n\\",\\n \\"ConfigKey\\": \\"tempStoragePath\\",\\n \\"ConfigValue\\": \\"oss://***\\",\\n \\"CategoryName\\": \\"CommonResourceConfig\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"key1\\",\\n \\"Value\\": \\"value1\\"\\n }\\n ],\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => '获取工作空间配置',
+ ],
+ 'ListConfigs' => [
+ 'summary' => '获取工作空间配置列表。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/configs',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '117761',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnDVAH75',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '87***',
+ ],
+ ],
+ [
+ 'name' => 'CategoryName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置项的分类。目前支持如下分类'."\n"
+ ."\n"
+ .'- CommonResourceConfig 通用资源配置'."\n"
+ .'- DLCAutoRecycle DLC自动回收'."\n"
+ .'- DLCPriorityConfig DLC 优先级设置'."\n"
+ .'- DSWPriorityConfig DSW优先级设置'."\n"
+ .'- QuotaMaximumDuration Quota的DLC任务最大运行时长配置'."\n"
+ .'- CommonTagConfig 标签设置',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CommonResourceConfig',
+ ],
+ ],
+ [
+ 'name' => 'ConfigKeys',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '配置键',
+ 'description' => '配置项的键。目前支持如下键:'."\n"
+ ."\n"
+ .'- tempStoragePath 临时存储路径,只有CategoryName为CommonResourceConfig时才允许使用该ConfigKey'."\n"
+ .'- isAutoRecycle 自动回收配置,只有CategoryName为DLCAutoRecycle时才允许使用该ConfigKey'."\n"
+ .'- priorityConfig 优先级配置,只有CategoryName为DLCPriorityConfig或者DSWPriorityConfig时才允许使用该ConfigKey'."\n"
+ .'- quotaMaximumDuration Quota的DLC任务最大运行时长配置,只有CategoryName为QuotaMaximumDuration时才允许使用该ConfigKey'."\n"
+ .'- predefinedTags 工作空间预置标签,创建的资源必须带上标签',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tempStoragePath',
+ ],
+ ],
+ [
+ 'name' => 'Labels',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '标签作为过滤条件,多个条件用逗号分隔,这些条件之间是与的关系。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1=value1,key2=value2',
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否展示Label信息'."\n"
+ ."\n"
+ .'- true:展示Label信息'."\n"
+ .'- false:不展示Label信息',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => '473469C7-AA6F-4DC5-B3DB-A******C83E'."\n",
+ ],
+ 'Configs' => [
+ 'title' => '配置列表',
+ 'description' => '配置项列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '配置项。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ConfigKey' => [
+ 'title' => '配置键',
+ 'description' => '配置项的键。目前支持如下键:'."\n"
+ ."\n"
+ .'- tempStoragePath 临时存储路径,只有CategoryName为CommonResourceConfig时才允许使用该ConfigKey'."\n"
+ .'- isAutoRecycle 自动回收配置,只有CategoryName为DLCAutoRecycle时才允许使用该ConfigKey'."\n"
+ .'- priorityConfig 优先级配置,只有CategoryName为DLCPriorityConfig或者DSWPriorityConfig时才允许使用该ConfigKey'."\n"
+ .'- quotaMaximumDuration Quota的DLC任务最大运行时长配置,只有CategoryName为QuotaMaximumDuration时才允许使用该ConfigKey'."\n"
+ .'- predefinedTags 工作空间预置标签,创建的资源必须带上标签',
+ 'type' => 'string',
+ 'example' => 'tempTableLifecycle',
+ ],
+ 'ConfigValue' => [
+ 'title' => '配置值',
+ 'description' => '配置值',
+ 'type' => 'string',
+ 'example' => 'oss://***'."\n",
+ ],
+ 'Labels' => [
+ 'description' => '配置项的标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '配置项的标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签的键。',
+ 'type' => 'string',
+ 'example' => 'key1',
+ ],
+ 'Value' => [
+ 'description' => '标签的值。',
+ 'type' => 'string',
+ 'example' => 'value1'."\n",
+ ],
+ ],
+ ],
+ ],
+ 'GmtCreateTime' => [
+ 'type' => 'string',
+ ],
+ 'GmtModifiedTime' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '返回数量',
+ 'description' => '返回数量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '15',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A******C83E\\\\n\\",\\n \\"Configs\\": [\\n {\\n \\"ConfigKey\\": \\"tempTableLifecycle\\",\\n \\"ConfigValue\\": \\"oss://***\\\\n\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"key1\\",\\n \\"Value\\": \\"value1\\\\n\\"\\n }\\n ],\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\"\\n }\\n ],\\n \\"TotalCount\\": 15\\n}","type":"json"}]',
+ 'title' => '获取工作空间配置列表',
+ ],
+ 'DeleteConfig' => [
+ 'summary' => '删除工作空间配置。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/configs/{ConfigKey}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '117762',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnOTS2AE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '98***',
+ ],
+ ],
+ [
+ 'name' => 'ConfigKey',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '配置键',
+ 'description' => '配置项的键。目前支持如下键:'."\n"
+ ."\n"
+ .'- tempStoragePath 临时存储路径,只有CategoryName为CommonResourceConfig时才允许使用该ConfigKey'."\n"
+ .'- isAutoRecycle 自动回收配置,只有CategoryName为DLCAutoRecycle时才允许使用该ConfigKey'."\n"
+ .'- priorityConfig 优先级配置,只有CategoryName为DLCPriorityConfig或者DSWPriorityConfig时才允许使用该ConfigKey'."\n"
+ .'- quotaMaximumDuration Quota的DLC任务最大运行时长配置,只有CategoryName为QuotaMaximumDuration时才允许使用该ConfigKey'."\n"
+ .'- predefinedTags 工作空间预置标签,创建的资源必须带上标签',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'tempStoragePath',
+ ],
+ ],
+ [
+ 'name' => 'CategoryName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置项的分类。目前支持如下分类'."\n"
+ ."\n"
+ .'- CommonResourceConfig 通用资源配置'."\n"
+ .'- DLCAutoRecycle DLC自动回收- DLCPriorityConfig DLC 优先级设置'."\n"
+ .'- DSWPriorityConfig DSW优先级设置'."\n"
+ .'- QuotaMaximumDuration Quota的DLC任务最大运行时长配置'."\n"
+ .'- CommonTagConfig 标签设置',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CommonResourceConfig',
+ ],
+ ],
+ [
+ 'name' => 'Labels',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '过滤条件,多个条件用逗号分隔,这些条件之间是与的关系。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1=value;key2=value2',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '473469C7-AA6F-4DC5-B3DB-A******C83E'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A******C83E\\\\n\\"\\n}","type":"json"}]',
+ 'title' => '删除工作空间配置',
+ ],
+ 'UpdateConfig' => [
+ 'summary' => '更新或新增工作空间配置。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/config',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '234915',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnOTS2AE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1234******2'."\n",
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ConfigKey' => [
+ 'description' => '配置项的键。目前支持如下键:'."\n"
+ ."\n"
+ .'- tempStoragePath 临时存储路径,只有CategoryName为CommonResourceConfig时才允许使用该ConfigKey'."\n"
+ .'- isAutoRecycle 自动回收配置,只有CategoryName为DLCAutoRecycle时才允许使用该ConfigKey'."\n"
+ .'- priorityConfig 优先级配置,只有CategoryName为DLCPriorityConfig或者DSWPriorityConfig时才允许使用该ConfigKey'."\n"
+ .'- quotaMaximumDuration Quota的DLC任务最大运行时长配置,只有CategoryName为QuotaMaximumDuration时才允许使用该ConfigKey'."\n"
+ .'- predefinedTags 工作空间预置标签,创建的资源必须带上标签',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tempStoragePath',
+ ],
+ 'ConfigValue' => [
+ 'description' => '配置项的值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'oss://***'."\n",
+ ],
+ 'CategoryName' => [
+ 'description' => '配置项的分类。目前支持如下分类'."\n"
+ ."\n"
+ .'- CommonResourceConfig 通用资源配置'."\n"
+ .'- DLCAutoRecycle DLC自动回收'."\n"
+ .'- DLCPriorityConfig DLC 优先级设置'."\n"
+ .'- DSWPriorityConfig DSW优先级设置'."\n"
+ .'- QuotaMaximumDuration Quota的DLC任务最大运行时长配置'."\n"
+ .'- CommonTagConfig 标签设置',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CommonResourceConfig',
+ ],
+ 'Labels' => [
+ 'description' => '配置项的标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '配置项的标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签的键。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1',
+ ],
+ 'Value' => [
+ 'description' => '标签的值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'value1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '473469C7-AA6F-4DC5-B3DB-A******C83E'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A******C83E\\\\n\\"\\n}","type":"json"}]',
+ 'title' => '更新或新增工作空间配置',
+ ],
+ 'ListWorkspaces' => [
+ 'summary' => '获取某个地域下的工作空间列表。',
+ 'path' => '/api/v1/workspaces',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '14203',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZBMZHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分页,从1开始,默认1',
+ 'description' => '工作空间列表的页码。起始值为1,默认为1。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '页大小,默认20',
+ 'description' => '分页查询时设置的每页行数,默认为20。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序字段:CreateTime',
+ 'description' => '分页查询时的排序字段,默认使用GmtCreateTime。取值如下。'."\n"
+ .'* GmtCreateTime(默认值):按创建时间。'."\n"
+ .'* GmtModifiedTime:按修改时间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GmtCreateTime',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序方向: ASC - 升序 DESC - 降序',
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序。取值如下:'."\n"
+ .'* ASC(默认值):升序。'."\n"
+ .'* DESC :降序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ASC',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '工作空间名字',
+ 'description' => '工作空间名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abc',
+ ],
+ ],
+ [
+ 'name' => 'ModuleList',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '逗号分割的模块列表,目前填入PAI',
+ 'description' => '逗号分割的模块列表。默认值:PAI。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PAI',
+ ],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '状态',
+ 'description' => '工作空间状态,目前支持如下值:'."\n"
+ ."\n"
+ .'- ENABLED:正常。'."\n"
+ .'- INITIALIZING:初始化中。'."\n"
+ .'- FAILURE:失败。'."\n"
+ .'- DISABLED:手动禁用。'."\n"
+ .'- FROZEN:欠费冻结。'."\n"
+ .'- UPDATING:项目更新中。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ENABLED',
+ ],
+ ],
+ [
+ 'name' => 'Option',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '逗号分隔的选项',
+ 'description' => '选项,取值如下:'."\n"
+ .'* GetWorkspaces(默认值):获取工作空间列表,会返回Workspaces。'."\n"
+ .'* GetResourceLimits:获取资源限制,会返回ResourceLimits。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GetWorkspaces',
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否显示详细信息,默认true',
+ 'description' => '是否显示工作空间详细信息。取值如下:'."\n"
+ .'- false(默认值):不显示。'."\n"
+ .'- true:显示。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Fields',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'GetWorkspaceFields的Field字段',
+ 'description' => '工作空间详情的返回字段列表。用于限定返回结果中的工作空间属性。'."\n"
+ .'多个属性用半角逗号(,)分隔。目前只支持Id,表示工作空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Id',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceIds',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '工作空间id列表',
+ 'description' => '工作空间ID列表。多个工作空间ID用半角逗号(,)分隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123,234',
+ ],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源组ID。如何查看资源组ID,请参见[查看资源组基本信息](~~151181~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-acfmwp7rky****',
+ ],
+ ],
+ [
+ 'name' => 'UserId',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8D7B2E70-F770-505B-A672-09F1D8F2EC1E',
+ ],
+ 'Workspaces' => [
+ 'title' => '工作空间列表',
+ 'description' => '工作空间详情列表,当Option为GetWorkspaces时会返回该列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '工作空间详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkspaceId' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '123',
+ ],
+ 'WorkspaceName' => [
+ 'title' => '工作空间名字',
+ 'description' => '工作空间名称。',
+ 'type' => 'string',
+ 'example' => 'workspace-example',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建 UTC 时间,日期格式 iso8601',
+ 'description' => '工作空间创建时间。以ISO8601为标准,并使用UTC+0时间,格式为yyyy-MM-ddTHH:mm:ss.SSSZ。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '修改 UTC 时间,日期格式 iso8601',
+ 'description' => '工作空间修改时间。以ISO8601为标准,并使用UTC+0时间,格式为yyyy-MM-ddTHH:mmZ。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'Description' => [
+ 'title' => '描述',
+ 'description' => '工作空间描述。',
+ 'type' => 'string',
+ 'example' => 'workspace description example',
+ ],
+ 'Creator' => [
+ 'title' => '创建人',
+ 'description' => '创建者用户ID。',
+ 'type' => 'string',
+ 'example' => '122424353535',
+ ],
+ 'EnvTypes' => [
+ 'title' => '环境,用作判断简单模式还是标准模式',
+ 'description' => '工作空间包含的环境列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '工作空间包含的环境,可能值:'."\n"
+ ."\n"
+ .'- 简单模式只有生产环境(prod)。'."\n"
+ .'- 标准模式包含开发环境(dev)和生产环境(prod)。',
+ 'type' => 'string',
+ 'example' => 'prod',
+ ],
+ ],
+ 'Status' => [
+ 'title' => '工作空间状态',
+ 'description' => '工作空间状态。',
+ 'type' => 'string',
+ 'example' => 'ENABLED',
+ ],
+ 'AdminNames' => [
+ 'title' => '管理员名字',
+ 'description' => '管理员账户名称列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '管理员账户名称。',
+ 'type' => 'string',
+ 'example' => 'demo_test@***.aliyunid.com',
+ ],
+ ],
+ 'IsDefault' => [
+ 'title' => '是否为默认工作空间',
+ 'description' => '是否为默认工作空间。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'ExtraInfos' => [
+ 'title' => '附加信息',
+ 'description' => '扩展信息,目前包含TenantId,代表租户ID。',
+ 'type' => 'object',
+ 'example' => '{"TenantId": "4286******98"}',
+ ],
+ 'resourceGroupId' => [
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'example' => 'rg-acfmwp7rky****',
+ ],
+ ],
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '符合过滤条件的作业数量',
+ 'description' => '符合查询条件的工作空间总数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'ResourceLimits' => [
+ 'title' => '资源限制',
+ 'description' => '用户在一个工作空间内允许开通的资源类型和数量限制,当Option为GetResourceLimits时会返回该列表。'."\n"
+ .'目前支持的资源类型包括:'."\n"
+ .'* MaxCompute_share:MaxCompute后付费。'."\n"
+ .'* MaxCompute_isolate:MaxCompute预付费。'."\n"
+ .'* DLC_share:DLC后付费。'."\n"
+ .'* PAI_isolate:PAI预付费。'."\n"
+ .'* PAI_share:PAI后付费。'."\n"
+ .'* DataWorks_isolate:Dataworks预付费。'."\n"
+ .'* DataWorks_share:Dataworks后付费。'."\n",
+ 'type' => 'object',
+ 'example' => '{'."\n"
+ .' "MaxCompute_share": 1,'."\n"
+ .' "MaxCompute_isolate": 1,'."\n"
+ .' "DLC_share": 1'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8D7B2E70-F770-505B-A672-09F1D8F2EC1E\\",\\n \\"Workspaces\\": [\\n {\\n \\"WorkspaceId\\": \\"123\\",\\n \\"WorkspaceName\\": \\"workspace-example\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"Description\\": \\"workspace description example\\",\\n \\"Creator\\": \\"122424353535\\",\\n \\"EnvTypes\\": [\\n \\"prod\\"\\n ],\\n \\"Status\\": \\"ENABLED\\",\\n \\"AdminNames\\": [\\n \\"demo_test@***.aliyunid.com\\"\\n ],\\n \\"IsDefault\\": false,\\n \\"ExtraInfos\\": {\\n \\"TenantId\\": \\"4286******98\\"\\n },\\n \\"resourceGroupId\\": \\"rg-acfmwp7rky****\\"\\n }\\n ],\\n \\"TotalCount\\": 1,\\n \\"ResourceLimits\\": {\\n \\"MaxCompute_share\\": 1,\\n \\"MaxCompute_isolate\\": 1,\\n \\"DLC_share\\": 1\\n }\\n}","type":"json"}]',
+ 'title' => '获取工作空间列表',
+ 'description' => '您可以通过option参数指定不同的查询选项,来获取不同的工作空间相关信息。',
+ ],
+ 'CreateWorkspace' => [
+ 'summary' => '创建工作空间。',
+ 'path' => '/api/v1/workspaces',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '14204',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZBMZHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkspaceName' => [
+ 'title' => '名字 3-23 个字符, 需要字母开头,只能包含字母下划线和数字,region内唯一',
+ 'description' => '工作空间名称。格式如下:'."\n"
+ .'- 长度为3~23 个字符,可以包含字母、下划线或数字。'."\n"
+ .'- 必须以大小写字母开头。'."\n"
+ .'- 当前地域内唯一。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'workspace_example',
+ ],
+ 'Description' => [
+ 'title' => '描述,最多80个字符',
+ 'description' => '工作空间描述,不超过80个字符。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '这是一个工作空间描述示例。',
+ ],
+ 'DisplayName' => [
+ 'title' => '显示名称',
+ 'description' => '建议基于业务属性命名,便于标识工作空间用途。如果不配置,默认为工作空间名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'demo工作空间',
+ ],
+ 'EnvTypes' => [
+ 'title' => '环境列表',
+ 'description' => '工作空间包含的环境:'."\n"
+ .'- 简单模式只有生产环境(prod)。'."\n"
+ .'- 标准模式包含开发环境(dev)和生产环境(prod)。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '环境类型,取值如下:'."\n"
+ ."\n"
+ .'- dev:开发环境。'."\n"
+ .'- prod:生产环境。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'dev',
+ ],
+ 'required' => true,
+ ],
+ 'ResourceGroupId' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '1e195c5116124202371861018d5bde',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '1234',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1e195c5116124202371861018d5bde\\",\\n \\"WorkspaceId\\": \\"1234\\"\\n}","type":"json"}]',
+ 'title' => '创建工作空间',
+ ],
+ 'GetWorkspace' => [
+ 'summary' => '获取工作空间详细信息。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '14101',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZBMZHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '12345',
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否显示工作空间Owner等补充信息。取值如下:'."\n"
+ .'- false(默认值):不显示补充信息。'."\n"
+ .'- true:显示补充信息。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'A0F049F0-8D69-5BAC-8F10-B4DED1B5A34C',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '1234',
+ ],
+ 'WorkspaceName' => [
+ 'title' => '项目空间名称, region 内唯一',
+ 'description' => '工作空间名称。',
+ 'type' => 'string',
+ 'example' => 'workspace-example',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建 UTC 时间,日期格式 iso8601',
+ 'description' => '工作空间创建UTC时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '修改 UTC 时间,日期格式 iso8601',
+ 'description' => '工作空间修改UTC时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'DisplayName' => [
+ 'title' => '显示名称',
+ 'description' => '工作空间显示名称。',
+ 'type' => 'string',
+ 'example' => 'workspace-example',
+ ],
+ 'Description' => [
+ 'title' => '描述',
+ 'description' => '工作空间描述。',
+ 'type' => 'string',
+ 'example' => 'workspace description example',
+ ],
+ 'EnvTypes' => [
+ 'title' => '环境,用作判断简单模式还是标准模式',
+ 'description' => '工作空间包含的环境,取值如下:'."\n"
+ ."\n"
+ .'* 简单模式只有生产环境(prod)。'."\n"
+ .'* 标准模式包含开发环境(dev)和生产环境(prod)。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '环境类型,可能值:'."\n"
+ ."\n"
+ .'- dev:开发环境。'."\n"
+ .'- prod:生产环境。',
+ 'type' => 'string',
+ 'example' => 'prod',
+ ],
+ ],
+ 'Creator' => [
+ 'title' => '创建人',
+ 'description' => '创建者用户ID。',
+ 'type' => 'string',
+ 'example' => '1157******94123',
+ ],
+ 'Status' => [
+ 'title' => '工作空间状态',
+ 'description' => '工作空间状态,可能值:'."\n"
+ ."\n"
+ .'- ENABLED:正常。'."\n"
+ .'- INITIALIZING:初始化中。'."\n"
+ .'- FAILURE:失败。'."\n"
+ .'- DISABLED:手动禁用。'."\n"
+ .'- FROZEN:欠费冻结。'."\n"
+ .'- UPDATING:项目更新中。',
+ 'type' => 'string',
+ 'example' => 'ENABLED',
+ ],
+ 'AdminNames' => [
+ 'title' => '管理员账户',
+ 'description' => '管理员账户名称列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '管理员账户名称。当Verbose为true时显示。',
+ 'type' => 'string',
+ 'example' => 'demo_test@***.aliyunid.com',
+ ],
+ ],
+ 'IsDefault' => [
+ 'title' => '是否为默认工作空间',
+ 'description' => '是否为默认工作空间,可能值:'."\n"
+ .'- false:不是默认工作空间。'."\n"
+ .'- true:是默认工作空间。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ExtraInfos' => [
+ 'title' => '附加信息',
+ 'description' => '附加信息,目前包含TenantId(租户ID)。',
+ 'type' => 'object',
+ 'example' => '{"TenantId": "4286******98"}',
+ ],
+ 'Owner' => [
+ 'description' => '工作空间所有者信息,当Verbose为true时显示。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UserKp' => [
+ 'description' => '用户UID。',
+ 'type' => 'string',
+ 'example' => '1157******94123',
+ ],
+ 'UserId' => [
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '1157******94123',
+ ],
+ 'UserName' => [
+ 'description' => '用户名。',
+ 'type' => 'string',
+ 'example' => 'mings****t',
+ ],
+ 'DisplayName' => [
+ 'description' => '显示名。',
+ 'type' => 'string',
+ 'example' => 'mings****t',
+ ],
+ ],
+ ],
+ 'ResourceGroupId' => [
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'example' => 'rg-acfmwp7rkyq****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A0F049F0-8D69-5BAC-8F10-B4DED1B5A34C\\",\\n \\"WorkspaceId\\": \\"1234\\",\\n \\"WorkspaceName\\": \\"workspace-example\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"DisplayName\\": \\"workspace-example\\",\\n \\"Description\\": \\"workspace description example\\",\\n \\"EnvTypes\\": [\\n \\"prod\\"\\n ],\\n \\"Creator\\": \\"1157******94123\\",\\n \\"Status\\": \\"ENABLED\\",\\n \\"AdminNames\\": [\\n \\"demo_test@***.aliyunid.com\\"\\n ],\\n \\"IsDefault\\": true,\\n \\"ExtraInfos\\": {\\n \\"TenantId\\": \\"4286******98\\"\\n },\\n \\"Owner\\": {\\n \\"UserKp\\": \\"1157******94123\\",\\n \\"UserId\\": \\"1157******94123\\",\\n \\"UserName\\": \\"mings****t\\",\\n \\"DisplayName\\": \\"mings****t\\"\\n },\\n \\"ResourceGroupId\\": \\"rg-acfmwp7rkyq****\\"\\n}","type":"json"}]',
+ 'title' => '获取工作空间',
+ ],
+ 'DeleteWorkspace' => [
+ 'summary' => '删除工作空间,关联的资源不会释放,需要您自已释放。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '61546',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZBMZHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '123',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '删除工作空间',
+ ],
+ 'UpdateWorkspace' => [
+ 'summary' => '更新工作空间名称和描述信息。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '14202',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZBMZHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '项目空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '123',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DisplayName' => [
+ 'title' => '显示名称',
+ 'description' => '工作空间显示名称,格式如下。'."\n"
+ .'- 长度为3~23 个字符,可以包含字母、下划线或数字。'."\n"
+ .'- 必须以大小字母开头。'."\n"
+ .'- 当前地域内唯一。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'workspace-example',
+ ],
+ 'Description' => [
+ 'title' => '描述',
+ 'description' => '工作空间描述信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '这是一个示例工作空间。',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '更新工作空间',
+ ],
+ 'GetDefaultWorkspace' => [
+ 'summary' => '获取默认工作空间详情。',
+ 'path' => '/api/v1/defaultWorkspaces',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否显示默认工作空间的详细信息,目前详细信息包含阶段列表详情(Conditions)。取值如下:'."\n"
+ .'- false(默认值):不显示详细信息。'."\n"
+ .'- true:显示详细信息。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间 ID',
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '1234',
+ ],
+ 'WorkspaceName' => [
+ 'title' => '项目空间名称, region 内唯一',
+ 'description' => '工作空间名称, 同地域内唯一。',
+ 'type' => 'string',
+ 'example' => 'workspace-example',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建 UTC 时间,日期格式 iso8601',
+ 'description' => '创建UTC时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '修改 UTC 时间,日期格式 iso8601',
+ 'description' => '修改UTC时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-21T17:12:35.232Z',
+ ],
+ 'DisplayName' => [
+ 'title' => '显示名称',
+ 'description' => '工作空间显示名称。',
+ 'type' => 'string',
+ 'example' => 'workspace-example',
+ ],
+ 'Description' => [
+ 'title' => '描述',
+ 'description' => '工作空间描述。',
+ 'type' => 'string',
+ 'example' => 'workspace description example',
+ ],
+ 'EnvTypes' => [
+ 'title' => '环境,用作判断简单模式还是标准模式,含义见',
+ 'description' => '工作空间包含的环境,取值如下:'."\n"
+ .'* 简单模式只有生产环境(prod)。'."\n"
+ .'* 标准模式包含开发环境(dev)和生产环境(prod)。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '工作空间包含的环境,可能值:'."\n"
+ ."\n"
+ .'- dev:开发环境。'."\n"
+ .'- prod:生产环境。',
+ 'type' => 'string',
+ 'example' => 'prod',
+ ],
+ ],
+ 'Creator' => [
+ 'title' => '创建人',
+ 'description' => '创建工作空间的阿里云账号信息。',
+ 'type' => 'string',
+ 'example' => '17915******4216'."\n",
+ ],
+ 'Owner' => [
+ 'title' => '拥有者',
+ 'description' => '创建工作空间的阿里云账号信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UserId' => [
+ 'title' => '用户id',
+ 'description' => '用户UID。',
+ 'type' => 'string',
+ 'example' => '17915******4216',
+ ],
+ 'UserName' => [
+ 'title' => '用户名',
+ 'description' => '用户名。',
+ 'type' => 'string',
+ 'example' => 'username',
+ ],
+ 'UserKp' => [
+ 'title' => '用户kp',
+ 'description' => '用户UID。',
+ 'type' => 'string',
+ 'example' => '17915******4216',
+ ],
+ ],
+ ],
+ 'Status' => [
+ 'title' => '工作空间状态',
+ 'description' => '工作空间状态,可能值:'."\n"
+ ."\n"
+ .'- ENABLED:正常。'."\n"
+ .'- INITIALIZING:初始化中。'."\n"
+ .'- FAILURE:失败。'."\n"
+ .'- DISABLED:手动禁用。'."\n"
+ .'- FROZEN:欠费冻结。'."\n"
+ .'- UPDATING:项目更新中。',
+ 'type' => 'string',
+ 'example' => 'ENABLED',
+ ],
+ 'Conditions' => [
+ 'title' => '任务详情 创建默认工作空间会有多个任务依次进行,如果一个任务未开始,不会显示在任务详情里。',
+ 'description' => '默认工作空间创建流程的阶段列表详情。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '默认工作空间创建流程的阶段详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'title' => '类型',
+ 'description' => '任务类型,可能值:'."\n"
+ ."\n"
+ .'- CREATING:创建中。'."\n"
+ .'- WORKSPACE_CREATED:工作空间创建完成。'."\n"
+ .'- MEMBERS_ADDED:成员添加完成。'."\n"
+ .'- ENABLED:总体完成。',
+ 'type' => 'string',
+ 'example' => 'CREATING ',
+ ],
+ 'Code' => [
+ 'title' => '返回码,正常是200,其他都是错误',
+ 'description' => '返回码。200表示返回正常,其他表示返回异常。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'title' => '消息',
+ 'description' => '请求返回的错误消息。当返回码为200时,该字段为空。',
+ 'type' => 'string',
+ 'example' => 'Create Failed',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"WorkspaceId\\": \\"1234\\",\\n \\"WorkspaceName\\": \\"workspace-example\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"DisplayName\\": \\"workspace-example\\",\\n \\"Description\\": \\"workspace description example\\",\\n \\"EnvTypes\\": [\\n \\"prod\\"\\n ],\\n \\"Creator\\": \\"17915******4216\\\\n\\",\\n \\"Owner\\": {\\n \\"UserId\\": \\"17915******4216\\",\\n \\"UserName\\": \\"username\\",\\n \\"UserKp\\": \\"17915******4216\\"\\n },\\n \\"Status\\": \\"ENABLED\\",\\n \\"Conditions\\": [\\n {\\n \\"Type\\": \\"CREATING \\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"Create Failed\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取默认工作空间',
+ ],
+ 'UpdateDefaultWorkspace' => [
+ 'summary' => '将某个工作空间指定为默认工作空间。',
+ 'path' => '/api/v1/defaultWorkspaces',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkspaceId' => [
+ 'title' => '显示名称',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12345',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '17915******4216',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"17915******4216\\"\\n}","type":"json"}]',
+ 'title' => '指定默认工作空间',
+ ],
+ 'ListWorkspaceUsers' => [
+ 'summary' => '列出未加入工作空间的用户列表,这些用户可被加入工作空间成为成员。',
+ 'path' => '/api/v1/workspaces/{WorkspaceId}/users',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '14222',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZBMZHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '工作空间 id',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12345',
+ ],
+ ],
+ [
+ 'name' => 'UserName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '支持添加为工作空间成员的用户显示名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'doctest****',
+ ],
+ ],
+ [
+ 'name' => 'UserId',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '1e195c5116124202371861018d5bde',
+ ],
+ 'TotalCount' => [
+ 'title' => '符合过滤条件的用户数量',
+ 'description' => '符合过滤条件的用户数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'Users' => [
+ 'title' => '用户列表',
+ 'description' => '用户列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '用户。',
+ 'type' => 'object',
+ 'properties' => [
+ 'UserId' => [
+ 'title' => '用户 id',
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '1611******3000',
+ ],
+ 'UserName' => [
+ 'title' => '用户名',
+ 'description' => '用户名。',
+ 'type' => 'string',
+ 'example' => 'she******mo',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1e195c5116124202371861018d5bde\\",\\n \\"TotalCount\\": 2,\\n \\"Users\\": [\\n {\\n \\"UserId\\": \\"1611******3000\\",\\n \\"UserName\\": \\"she******mo\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取可被添加至工作空间的用户列表',
+ ],
+ 'ListQuotas' => [
+ 'summary' => '获取资源配额列表。',
+ 'path' => '/api/v1/quotas',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '14241',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZO51AS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '名字,支持模糊搜索',
+ 'description' => '资源配额名称,支持模糊搜索。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'quota-name',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
+ ],
+ 'Quotas' => [
+ 'title' => '配额列表',
+ 'description' => '资源配额列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源配额详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'QuotaType' => [
+ 'title' => '产品类型, 支持PAI,MaxCompute',
+ 'description' => '资源配额类型,可能值:'."\n"
+ ."\n"
+ .'PAI:表示MaxCompute的GPU资源组集群。',
+ 'type' => 'string',
+ 'example' => 'PAI',
+ ],
+ 'Mode' => [
+ 'title' => '模式 isolate 预付费 share 后付费 develop 开发模式',
+ 'description' => '付费模式,可能值:'."\n"
+ ."\n"
+ .'- isolate:预付费。'."\n"
+ .'- share:后付费。',
+ 'type' => 'string',
+ 'example' => 'isolate',
+ ],
+ 'ProductCode' => [
+ 'title' => '产品代码',
+ 'description' => '产品名,可能值:'."\n"
+ .'- PAI_isolate:pai预付费资源组(pai cpu)。'."\n"
+ .'- PAI_share:pai后付费资源组(pai gpu)。',
+ 'type' => 'string',
+ 'example' => 'PAI_share',
+ ],
+ 'Name' => [
+ 'title' => 'quota名字',
+ 'description' => '配额名称。',
+ 'type' => 'string',
+ 'example' => 'quota-name',
+ ],
+ 'Specs' => [
+ 'title' => '规格描述列表',
+ 'description' => '规格描述列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '规格描述。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '规格名',
+ 'description' => '规格名。',
+ 'type' => 'string',
+ 'example' => 'cu',
+ ],
+ 'Value' => [
+ 'title' => '规格描述',
+ 'description' => '规格值。',
+ 'type' => 'string',
+ 'example' => '11500',
+ ],
+ 'Type' => [
+ 'title' => '类型,可为空',
+ 'description' => '类型,可为空。',
+ 'type' => 'string',
+ 'example' => 'string',
+ ],
+ ],
+ ],
+ 'example' => '{\\"cu\\":\\"11500\\",\\"minCu\\":\\"2300\\",\\"parentId\\":\\"0\\"}',
+ ],
+ 'Id' => [
+ 'title' => 'quota的id',
+ 'description' => '配额的ID。',
+ 'type' => 'string',
+ 'example' => '1828233',
+ ],
+ 'DisplayName' => [
+ 'description' => '资源配额别名。',
+ 'type' => 'string',
+ 'example' => '默认Quota。',
+ ],
+ ],
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '符合过滤条件的数量',
+ 'description' => '符合过滤条件的资源配额数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Quotas\\": [\\n {\\n \\"QuotaType\\": \\"PAI\\",\\n \\"Mode\\": \\"isolate\\",\\n \\"ProductCode\\": \\"PAI_share\\",\\n \\"Name\\": \\"quota-name\\",\\n \\"Specs\\": [\\n {\\n \\"Name\\": \\"cu\\",\\n \\"Value\\": \\"11500\\",\\n \\"Type\\": \\"string\\"\\n }\\n ],\\n \\"Id\\": \\"1828233\\",\\n \\"DisplayName\\": \\"默认Quota。\\"\\n }\\n ],\\n \\"TotalCount\\": 1\\n}","errorExample":""},{"type":"xml","example":"<ListQuotasResponse>\\n <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>\\n <Quotas>\\n <QuotaType>MaxCompute</QuotaType>\\n <Mode>isolate</Mode>\\n <ProductCode>MaxCompute_share</ProductCode>\\n <Name>quota-name</Name>\\n <Specs>\\n <Name>name</Name>\\n <Value>{\\\\\\"cu\\\\\\":\\\\\\"11500\\\\\\",\\\\\\"minCu\\\\\\":\\\\\\"2300\\\\\\",\\\\\\"parentId\\\\\\":\\\\\\"0\\\\\\"}</Value>\\n <Type>abc</Type>\\n </Specs>\\n <Id>1828233</Id>\\n </Quotas>\\n <TotalCount>2</TotalCount>\\n</ListQuotasResponse>","errorExample":""}]',
+ 'title' => '获取MaxCompute GPU资源组的资源配额列表',
+ ],
+ 'GetDatasetFileMetasStatistics' => [
+ 'summary' => '获取数据集下元数据的统计信息。',
+ 'path' => '/api/v1/statistics/datasets/{DatasetId}/datasetfilemetas',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '267067',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5wz****c9ks92',
+ ],
+ ],
+ [
+ 'name' => 'DatasetVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集版本名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'v1',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '145883',
+ ],
+ ],
+ [
+ 'name' => 'AggregateBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '按照指定的元数据字段来做统计聚合。不区分大小写。若不指定则为获取数据集文件元数据总数量,不会返回聚合列表。'."\n"
+ .'支持:'."\n"
+ .'- filedir:文件的目录路径'."\n"
+ .'- filetype:文件类型'."\n"
+ .'- tags.user: 用户自定义标签'."\n"
+ .'- tags.user-delete-ai-tags: 用户删除的算法标签'."\n"
+ .'- tags.ai:算法标签(所有打标任务聚合后的)'."\n"
+ .'- tags.all: 算法标签+用户自定义标签( 已经去除用户删除的算法标签)',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'filetype' => 'filetype',
+ 'tags.user' => 'tags.user',
+ 'tags.ai' => 'tags.ai',
+ 'filedir' => 'filedir',
+ 'tags.user-delete-ai-tags' => 'tags.user-delete-ai-tags',
+ 'tags.all' => 'tags.all',
+ ],
+ 'example' => 'filedir',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '使用NextToken方式查询时,每次最多返回的结果数。取值范围:1~100。默认值:10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '请求响应结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'ADF6D849-*****-7E7030F0CE53',
+ ],
+ 'TotalCount' => [
+ 'description' => '返回统计结果数量。例如:统计有多少条元数据、有多少个用户标签。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '73',
+ ],
+ 'DatasetFileMetasStats' => [
+ 'description' => '返回的聚合列表详情。可以获得每个聚合项的数量。列表默认按照Count DESC排序。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '聚合项及其数量。',
+ '$ref' => '#/components/schemas/DatasetFileMetasStat',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ADF6D849-*****-7E7030F0CE53\\",\\n \\"TotalCount\\": 73,\\n \\"DatasetFileMetasStats\\": [\\n {\\n \\"Key\\": \\"cat\\",\\n \\"Count\\": 10\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取数据集下文件元数据的统计信息',
+ ],
+ 'StopDatasetJob' => [
+ 'summary' => '停止数据集任务。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetjobs/{DatasetJobId}/action/stop',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260528',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集版本ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5*****jhc9ks92',
+ ],
+ ],
+ [
+ 'name' => 'DatasetJobId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集任务ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'dsjob-9jx1*****uj9e',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetVersion' => [
+ 'description' => '数据集版本名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '478**',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'F620FFD3-FFDC-5873-A70C-6971CC45F467',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F620FFD3-FFDC-5873-A70C-6971CC45F467\\"\\n}","type":"json"}]',
+ 'title' => '停止数据集任务',
+ ],
+ 'GetDatasetJob' => [
+ 'summary' => '获取数据集任务',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetjobs/{DatasetJobId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260532',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5*****jhc9ks92',
+ ],
+ ],
+ [
+ 'name' => 'DatasetJobId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集任务ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'dsjob-9jx1xxxxxxuj9e',
+ ],
+ ],
+ [
+ 'name' => 'DatasetVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集版本名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '478**',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '64B50C1D-D4C2-560C-86A3-A6ED****16D',
+ ],
+ 'JobAction' => [
+ 'description' => '任务操作。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'SemanticIndex' => '语义索引任务',
+ 'IntelligentTag' => '智能打标任务',
+ 'FileMetaExport' => '元数据导出任务',
+ ],
+ 'example' => 'SemanticIndex',
+ ],
+ 'JobMode' => [
+ 'description' => '任务模式。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Full' => '全量模式',
+ ],
+ 'example' => 'Full',
+ ],
+ 'CreateTime' => [
+ 'description' => '任务启动时间。',
+ 'type' => 'string',
+ 'example' => '2024-11-15T07:06:42Z',
+ ],
+ 'FinishTime' => [
+ 'description' => '任务结束时间。',
+ 'type' => 'string',
+ 'example' => '2024-07-16T02:03:23Z',
+ ],
+ 'JobSpec' => [
+ 'description' => '任务明细。',
+ 'type' => 'string',
+ 'example' => '{\\"modelId\\":\\"xxx\\"}',
+ ],
+ 'Status' => [
+ 'description' => '任务状态。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Succeeded' => '执行成功',
+ 'Failed' => '执行失败',
+ 'Running' => '运行中',
+ 'Pending' => '等待中',
+ 'PartialFailed' => '部分失败',
+ 'Deleting' => '删除中',
+ 'ManuallyStop' => '手动停止',
+ ],
+ 'example' => 'Running',
+ ],
+ 'Description' => [
+ 'description' => '任务描述。',
+ 'type' => 'string',
+ 'example' => '这是一个任务描述。',
+ ],
+ 'Logs' => [
+ 'description' => '任务日志列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '任务日志行。',
+ 'type' => 'string',
+ 'example' => '2025-02-17 09:58:10.143 INFO: Job completed successfully.',
+ ],
+ ],
+ 'TotalFileCount' => [
+ 'description' => '任务文件总量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1000',
+ ],
+ 'CompletedFileCount' => [
+ 'description' => '已完成文件总量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '990',
+ ],
+ 'FailedFileCount' => [
+ 'description' => '失败文件总量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"64B50C1D-D4C2-560C-86A3-A6ED****16D\\",\\n \\"JobAction\\": \\"SemanticIndex\\",\\n \\"JobMode\\": \\"Full\\",\\n \\"CreateTime\\": \\"2024-11-15T07:06:42Z\\",\\n \\"FinishTime\\": \\"2024-07-16T02:03:23Z\\",\\n \\"JobSpec\\": \\"{\\\\\\\\\\\\\\"modelId\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"xxx\\\\\\\\\\\\\\"}\\",\\n \\"Status\\": \\"Running\\",\\n \\"Description\\": \\"这是一个任务描述。\\",\\n \\"Logs\\": [\\n \\"2025-02-17 09:58:10.143 INFO: Job completed successfully.\\"\\n ],\\n \\"TotalFileCount\\": 1000,\\n \\"CompletedFileCount\\": 990,\\n \\"FailedFileCount\\": 10\\n}","type":"json"}]',
+ 'title' => '获取数据集任务',
+ ],
+ 'CreateDatasetFileMetas' => [
+ 'summary' => '批量创建数据集下的文件元数据记录。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetfilemetas',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260491',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-lfd60v0p****ujtsdx',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求Body。',
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkspaceId' => [
+ 'description' => '数据集所在工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '478**',
+ ],
+ 'DatasetVersion' => [
+ 'description' => '数据集版本名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'v1',
+ ],
+ 'DatasetFileMetas' => [
+ 'description' => '文件元数据内容列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '文件元数据内容详情。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/DatasetFileMetaContentCreate',
+ ],
+ 'required' => true,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '请求结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'Status' => [
+ 'description' => '本批元数据创建结果的状态。全部成功为true,如果为false,需要查看FailedDetails。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '成功',
+ 'false' => '失败',
+ ],
+ 'example' => 'true',
+ ],
+ 'FailedDetails' => [
+ 'description' => '创建失败的文件元数据列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '创建失败的文件元数据详情。',
+ '$ref' => '#/components/schemas/DatasetFileMetaResponse',
+ ],
+ ],
+ 'SucceedDetails' => [
+ 'description' => '创建成功的文件元数据列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '创建成功的文件元数据详情。',
+ '$ref' => '#/components/schemas/DatasetFileMetaResponse',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"Status\\": true,\\n \\"FailedDetails\\": [\\n {\\n \\"DatasetFileMetaId\\": \\"\\",\\n \\"Result\\": \\"\\",\\n \\"Uri\\": \\"\\"\\n }\\n ],\\n \\"SucceedDetails\\": [\\n {\\n \\"DatasetFileMetaId\\": \\"\\",\\n \\"Result\\": \\"\\",\\n \\"Uri\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '批量创建数据集文件元数据',
+ ],
+ 'UpdateDatasetJob' => [
+ 'summary' => '更新数据集任务。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetjobs/{DatasetJobId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260531',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集版本ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5*****jhc9ks92',
+ ],
+ ],
+ [
+ 'name' => 'DatasetJobId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集任务ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'dsjob-9jx1*****uj9e',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetVersion' => [
+ 'description' => '数据集版本名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID,可从接口[ListWorkspaces](~~449124~~)获取。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '478**',
+ ],
+ 'Description' => [
+ 'description' => '数据集任务描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is a job description of a dataset.',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '更新数据集任务',
+ ],
+ 'ListDatasetJobs' => [
+ 'summary' => '获取数据集任务列表。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetjobs',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260535',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集版本ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-lfd60v0p****ujtsdx',
+ ],
+ ],
+ [
+ 'name' => 'DatasetVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集版本名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1234',
+ ],
+ ],
+ [
+ 'name' => 'JobAction',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '任务操作。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'SemanticIndex',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页编号。从1开始,默认为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ 'default' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '50',
+ 'default' => '20',
+ ],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '任务状态。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Succeeded' => 'Succeeded',
+ 'Failed' => 'Failed',
+ 'Starting' => 'Starting',
+ 'Running' => 'Running',
+ 'Deleted' => 'Deleted',
+ 'Pending' => 'Pending',
+ 'PartialFailed' => 'PartialFailed',
+ 'Deleting' => 'Deleting',
+ 'ManuallyStop' => 'ManuallyStop',
+ ],
+ 'example' => 'Running',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序,与SortBy结合使用。默认DESC。'."\n"
+ .'- ASC:升序。'."\n"
+ .'- DESC:降序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DESC',
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '排序参数,默认根据创建时间倒序',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Status' => 'Status',
+ 'JobAction' => 'JobAction',
+ 'FinishTime' => 'FinishTime',
+ 'CreateTime' => 'CreateTime',
+ ],
+ 'example' => 'CreateTime',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '8D7B2E70-F770-505B-A672-09F1D8F2EC1E',
+ ],
+ 'TotalCount' => [
+ 'description' => '任务总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'DatasetJobs' => [
+ 'description' => '数据集任务列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据集任务详情。',
+ '$ref' => '#/components/schemas/DatasetJob',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8D7B2E70-F770-505B-A672-09F1D8F2EC1E\\",\\n \\"TotalCount\\": 1,\\n \\"DatasetJobs\\": [\\n {\\n \\"DatasetJobId\\": \\"\\",\\n \\"JobAction\\": \\"\\",\\n \\"CreateTime\\": \\"\\",\\n \\"FinishTime\\": \\"\\",\\n \\"Status\\": \\"\\",\\n \\"Description\\": \\"\\",\\n \\"JobMode\\": \\"\\",\\n \\"JobSpec\\": \\"\\",\\n \\"Logs\\": [\\n \\"\\"\\n ],\\n \\"TotalFileCount\\": 0,\\n \\"CompletedFileCount\\": 0,\\n \\"FailedFileCount\\": 0,\\n \\"DatasetVersion\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取数据集任务列表',
+ ],
+ 'DeleteDatasetJobConfig' => [
+ 'summary' => '删除数据集任务配置。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetjobconfigs/{DatasetJobConfigId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260472',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集id',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5wz****c9ks92',
+ ],
+ ],
+ [
+ 'name' => 'DatasetJobConfigId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '配置id',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'dscfg-xxxxxxxxxxxx',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '513663',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'DA869D1B-035A-43B2-ACC1-C56681BD9FAA',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DA869D1B-035A-43B2-ACC1-C56681BD9FAA\\"\\n}","type":"json"}]',
+ 'title' => '删除数据集任务配置',
+ ],
+ 'DeleteDatasetJob' => [
+ 'summary' => '删除数据集任务。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetjobs/{DatasetJobId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260524',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5*****jhc9ks92',
+ ],
+ ],
+ [
+ 'name' => 'DatasetJobId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集任务ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'dsjob-9jx1******uj9e',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
+ 'title' => '删除数据集任务',
+ ],
+ 'UpdateDatasetJobConfig' => [
+ 'summary' => '更新数据集任务配置。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetjobconfigs/{DatasetJobConfigId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260467',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集Id',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5*****jhc9ks92',
+ ],
+ ],
+ [
+ 'name' => 'DatasetJobConfigId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '配置id',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'dscfg-xxxxxxxxxxxx',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求Body。',
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '167497',
+ ],
+ 'ConfigType' => [
+ 'description' => '配置类型'."\n"
+ ."\n"
+ .'- MultimodalIntelligentTag'."\n"
+ ."\n"
+ .'- MultimodalSemanticIndex',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'MultimodalIntelligentTag' => 'MultimodalIntelligentTag',
+ 'MultimodalSemanticIndex' => 'MultimodalSemanticIndex',
+ ],
+ 'example' => 'MultimodalSemanticIndex',
+ ],
+ 'Config' => [
+ 'description' => '配置内容'."\n"
+ .'其中配置格式如下:'."\n"
+ ."\n"
+ .'- MultimodalIntelligentTag'."\n"
+ ."\n"
+ .'{'."\n"
+ .' "apiKey":"sk-xxxxxxxxxxxxxxxxxxxxx"'."\n"
+ .'}'."\n"
+ ."\n"
+ .'- MultimodalSemanticIndex'."\n"
+ ."\n"
+ .'{'."\n"
+ .' "defaultModelId": "xxx"'."\n"
+ .' "defaultModelVersion":"1.0.0"'."\n"
+ .'}',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{ "apiKey":"sk-xxxxxxxxxxxxxxxxxxxxx" }',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D5BFFEE3-6025-443F-8A03-02D619B5C4B9',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D5BFFEE3-6025-443F-8A03-02D619B5C4B9\\"\\n}","type":"json"}]',
+ 'title' => '更新数据集任务配置',
+ ],
+ 'UpdateDatasetFileMetas' => [
+ 'summary' => '批量更新数据集下的文件元数据记录',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetfilemetas',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260629',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-lfd60v0p****ujtsdx',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求Body。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetVersion' => [
+ 'description' => '数据集版本名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ 'WorkspaceId' => [
+ 'description' => '数据集所在工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '796**',
+ ],
+ 'DatasetFileMetas' => [
+ 'description' => '待更新的数据集文件元数据列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '待更新的文件元数据详情。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/DatasetFileMetaConentUpdate',
+ ],
+ 'required' => true,
+ ],
+ 'TagJobId' => [
+ 'description' => '更新数据集文件元数据标签相关联的打标任务ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'dsjob-hv0b1****u8taig3y',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '请求结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'Status' => [
+ 'description' => '本批元数据更新结果的状态。全部成功为true,如果为false,需要查看FailedDetails。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'FailedDetails' => [
+ 'description' => '更新失败的文件元数据列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '更新失败的文件元数据详情。',
+ '$ref' => '#/components/schemas/DatasetFileMetaResponse',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"Status\\": true,\\n \\"FailedDetails\\": [\\n {\\n \\"DatasetFileMetaId\\": \\"\\",\\n \\"Result\\": \\"\\",\\n \\"Uri\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '批量更新数据集文件元数据',
+ ],
+ 'ListDatasetJobConfigs' => [
+ 'summary' => '批量查询数据集任务配置。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetjobconfigs/',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '261468',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集id',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5wz****c9ks92',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '431514',
+ ],
+ ],
+ [
+ 'name' => 'ConfigType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '配置类型'."\n"
+ ."\n"
+ .'- MultimodalIntelligentTag'."\n"
+ ."\n"
+ .'- MultimodalSemanticIndex',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'MultimodalIntelligentTag' => 'MultimodalIntelligentTag',
+ 'MultimodalSemanticIndex' => 'MultimodalSemanticIndex',
+ ],
+ 'example' => 'MultimodalIntelligentTag',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '代码配置列表的页码。起始值为1,默认值为1。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页大小,默认为10。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'DatasetVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集版本名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'TotalCount' => [
+ 'description' => '总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '15',
+ ],
+ 'DatasetJobConfigs' => [
+ 'description' => '数据集任务配置列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据集任务配置',
+ '$ref' => '#/components/schemas/DatasetJobConfig',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"TotalCount\\": 15,\\n \\"DatasetJobConfigs\\": [\\n {\\n \\"DatasetJobConfigId\\": \\"\\",\\n \\"CreateTime\\": \\"\\",\\n \\"ModifyTime\\": \\"\\",\\n \\"ConfigType\\": \\"\\",\\n \\"Config\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\",\\n \\"DatasetVersion\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取数据集任务配置列表',
+ ],
+ 'ListDatasetFileMetas' => [
+ 'summary' => '查询数据集文件列表。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetfilemetas',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '259940',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => 'A short description of struct',
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5*****jhc9ks92',
+ ],
+ ],
+ [
+ 'name' => 'DatasetVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集版本名。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'v1',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集所在工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '105173',
+ ],
+ ],
+ [
+ 'name' => 'QueryType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '检索类型。'."\n"
+ .'* MIX:混合检索(默认值)。'."\n"
+ .'* TAG:仅标签检索。'."\n"
+ .'* VECTOR:仅向量检索。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'TAG' => 'TAG',
+ 'MIX' => 'MIX',
+ 'VECTOR' => 'VECTOR',
+ ],
+ 'example' => 'MIX',
+ ],
+ ],
+ [
+ 'name' => 'QueryText',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '待搜索文本内容。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'A fallen water',
+ ],
+ ],
+ [
+ 'name' => 'TopK',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '检索结果返回数量,最多只返回TopK个检索结果。'."\n"
+ .'> 当QueryType=VECTOR或MIX时有效。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '5000',
+ 'minimum' => '1',
+ 'example' => '100',
+ 'default' => '10',
+ ],
+ ],
+ [
+ 'name' => 'ScoreThreshold',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '相似度分数过滤。只返回大于ScoreThreshold的结果。'."\n"
+ .'> 当QueryType=VECTOR或MIX时有效。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => false,
+ 'example' => '0.6',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页数量。如果同时传入MaxResults,则以MaxResults数量为准。'."\n"
+ .'> 该参数即将下线,推荐您使用 NextToken 与 MaxResults 完成分页查询操作。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页游标标识。'."\n"
+ .'> '."\n"
+ .'> 如果不设置该参数,则表示获取第一页的数据。当该参数有返回值时,说明还有下一页,您可以将返回的NextToken作为参数再次请求获得下一页的数据,直到返回为Null为止,表示获取到了所有的数据。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [],
+ 'example' => '90a6ee35-****-4cd4-927e-1f45e1cb8b62_1729644433000',
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时的排序字段,缺省时按检索时相关性由高到低排序。其他取值如下。'."\n"
+ .'* FileCreateTime:按文件创建时间。'."\n"
+ .'* FileUpdateTime:按文件最后修改时间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'FileCreateTime' => 'FileCreateTime',
+ 'FileUpdateTime' => 'FileUpdateTime',
+ ],
+ 'example' => 'FileCreateTime',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序,与SortBy结合使用。默认DESC。'."\n"
+ .'- ASC:升序。'."\n"
+ .'- DESC:降序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'ASC' => 'ASC',
+ 'DESC' => 'DESC',
+ ],
+ 'example' => 'DESC',
+ ],
+ ],
+ [
+ 'name' => 'EndFileUpdateTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于指定查询的起始文件更新时间。ISO 8601 格式的 UTC 时间戳。',
+ 'type' => 'string',
+ 'format' => 'iso8601_normal',
+ 'required' => false,
+ 'example' => '2025-01-12T14:36:01.000Z'."\n",
+ ],
+ ],
+ [
+ 'name' => 'StartFileUpdateTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于指定查询的结束文件更新时间。ISO 8601 格式的 UTC 时间戳。',
+ 'type' => 'string',
+ 'format' => 'iso8601_normal',
+ 'required' => false,
+ 'example' => '2025-01-12T14:36:01.000Z'."\n",
+ ],
+ ],
+ [
+ 'name' => 'QueryImage',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '以图搜图时,该参数传入图片的信息。'."\n"
+ .'* 支持传入图片的可公网访问的oss url格式。格式为:oss://{bucket_name}/{object_path}。其中bucket_name为bucket名称,object_path为文件在bucket中的路径。'."\n"
+ .'> 当QueryType=VECTOR或MIX时有效。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'oss://test-xxx-oss/car/0001.png',
+ ],
+ ],
+ [
+ 'name' => 'ThumbnailMode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '图片缩略图的模式,当前仅OSS文件支持缩略图:'."\n"
+ .'- 等比例缩小: p_{percentage}, percentage表示期望的缩放比例,取值范围为[1, 100] 。示例:p_50表示使用原始文件的50%大小作为缩略图。'."\n"
+ .'- 宽度固定,高度自适应缩小: w_{width}, width表示期望的图片宽度,取值范围为[1, 16384]。示例:w_200表示将图片宽度固定为200像素,高度自适应进行缩小。'."\n"
+ .'- 高度固定,宽度自适应缩小:h_{height}, height表示期望的图片高度,取值范围为[1, 16384]。示例:h_100表示将图片高度固定为100像素,宽度自适应进行缩小。'."\n"
+ .'- 固定宽高,缩略填充:m_pad,w_{height},h_{height},color_{RGB}, m_pad表示图片缩放为指定w与h的矩形内的最大图片,RGB表示指定居中填充空白部分的颜色,若不设置该参数,默认用白色填充。width表示期望的图片宽度,height表示期望的图片高度。width和height的取值范围都为[1,16384]。示例:'."\n"
+ .'- 固定宽高,居中裁剪:m_fill,w_{width},h_{height}。m_fill表示图片等比缩放为延伸出指定w与h的矩形框外的最小图片,超出的部分进行居中裁剪。width表示期望的图片宽度,height表示期望的图片高度。width和height的取值范围都为[1,16384]示例:m_fill,w_100,h_100表示将图片宽度和高度都固定为100像素进行居中裁剪缩放。'."\n"
+ .'- 强制宽高缩放: m_fixed,w_{height},h_{height},width表示期望的图片宽度,height表示期望的图片高度。width和height的取值范围都为[1,16384]。示例:m_fixed,w_100,h_100表示将图片宽度和高度都固定为100像素进行强制宽高缩放。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'w_100',
+ ],
+ ],
+ [
+ 'name' => 'DatasetFileMetaIds',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => '要查询的元数据ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '元数据ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '5dc037c8ec0a6fc4e15741328e531bbee036exxxxxxxxx722eff66c38a90e08c',
+ ],
+ 'required' => false,
+ 'maxItems' => 20,
+ ],
+ ],
+ [
+ 'name' => 'QueryTagsIncludeAll',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => '表示“同时包含以下标签”检索条件。用户可以选择多个标签,查询结果必须同时满足这些标签。如果为空,则不应用此条件。数组使用逗号分隔。'."\n"
+ ."\n"
+ .'> 当QueryType=TAG或MIX时有效。当QueryType=TAG时会将QueryText加入到该条件下。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Lane line',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'QueryTagsIncludeAny',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => '表示“包含以下任意标签”检索条件。 用户可以选择多个标签,查询结果只需满足其中一个即可。 如果为空,则不应用此条件。数组使用逗号分隔。'."\n"
+ .'> 当QueryType=TAG或MIX时有效。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Lane line',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'QueryTagsExclude',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => '表示“排除以下标签”检索条件。用户可以选择多个标签,查询结果中不能包含这些标签。如果为空,则不应用此条件。'."\n"
+ .'> 当QueryType=TAG或MIX时有效。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Lane line',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'QueryFileName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '文件名检索条件。支持模糊检索。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'car',
+ ],
+ ],
+ [
+ 'name' => 'QueryFileDir',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '文件目录检索条件。支持模糊检索。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cars/20250221/',
+ ],
+ ],
+ [
+ 'name' => 'QueryFileTypeIncludeAny',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => '表示“包含以下任意文件类型”检索条件。用户可以选择多个文件类型,查询结果只需满足其中一个即可。如果为空,则不应用此条件。数组使用逗号分隔。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '文件类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'image',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'QueryContentTypeIncludeAny',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => '表示“包含以下任意文件内容类型”检索条件。用户可以选择多个文件内容类型,查询结果只需满足其中一个即可。如果为空,则不应用此条件。数组使用逗号分隔。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '文件内容类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'image/jpeg',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'StartTagUpdateTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于指定查询的起始标签最后更新时间。ISO 8601 格式的 UTC 时间戳。',
+ 'type' => 'string',
+ 'format' => 'iso8601_normal',
+ 'required' => false,
+ 'example' => '2025-01-12T14:36:01.000Z'."\n",
+ ],
+ ],
+ [
+ 'name' => 'EndTagUpdateTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '用于指定查询的结束标签最后更新时间。ISO 8601 格式的 UTC 时间戳。',
+ 'type' => 'string',
+ 'format' => 'iso8601_normal',
+ 'required' => false,
+ 'example' => '2025-01-12T14:36:01.000Z'."\n",
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '使用NextToken方式查询时,每次最多返回的结果数。取值范围:1~100。默认值:10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'QueryExpression',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询语句(DSL)是一种用于表达复杂检索条件的领域特定语言。它支持分组、布尔逻辑(AND/OR/NOT)、范围比较(>, >=, <, <=)、属性存在性(HAS/NOT HAS)、分词匹配(:)与精确匹配(=)等,适用于高级检索场景。'."\n"
+ .'一般用于较为复杂的高级检索条件。'."\n"
+ .'<notice>为避免冲突,设置该查询语句后,建议不要与其他查询参数混用</notice>',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '(FileUpdateTime > \'2025-02-28T00:00:00Z\' AND FileUpdateTime < \'2025-05-30T09:27:29Z\') AND FileDir:\'blue_car\' AND NOT FileName="toyota.jpg" AND (( Tags.all=\'lane line\' AND Tags.all=\'barrier gate\') OR NOT Tags.user=\'rainy days\' ) AND HAS SemanticIndexJobId AND Content:\'a fallen water horse\' AND TopK=100 AND SignMode=\'PUBLIC\'',
+ ],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '指定要查询的元数据状态'."\n"
+ .'* ACTIVE: 仅查询未删除数据(缺省)'."\n"
+ .'* ALL: 查询全部数据'."\n"
+ .'* DELETED: 仅查询已逻辑删除数据',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ACTIVE',
+ 'enum' => [
+ 'ACTIVE',
+ 'ALL',
+ 'DELETED',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'QueryVideo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '以视频搜索时,该参数传入视频文件的信息。'."\n"
+ .'* 支持传入视频的可公网访问的oss url格式。格式为:oss://{bucket_name}/{object_path}。其中bucket_name为bucket名称,object_path为文件在bucket中的路径。'."\n"
+ .'> 当QueryType=VECTOR或MIX时有效。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'oss://test-xxx-oss/car/0001.mp4',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '请求结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TotalCount' => [
+ 'description' => '返回数据总条数',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '123',
+ ],
+ 'PageSize' => [
+ 'description' => '当前页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'deprecated' => true,
+ 'example' => '30',
+ ],
+ 'NextToken' => [
+ 'description' => '分页游标的标识。如果匹配查询条件的返回结果超过了分页大小,则会返回这个分页游标。如果需要获取下一页数据,将返回的游标值作为请求参数即可,直到无游标值返回,表示已经获取了全部数据。',
+ 'type' => 'string',
+ 'example' => '90******-f5c5-4cd4-927e-1f45e1cb8b62_1729644433000',
+ ],
+ 'DatasetFileMetas' => [
+ 'description' => '数据集文件元数据详情列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据集文件元数据详情。',
+ '$ref' => '#/components/schemas/DatasetFileMeta',
+ ],
+ ],
+ 'DatasetId' => [
+ 'description' => '数据集ID。',
+ 'type' => 'string',
+ 'example' => 'd-rbvg5*****jhc9ks92'."\n",
+ ],
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '105173',
+ ],
+ 'DatasetVersion' => [
+ 'description' => '数据集版本名。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'MaxResults' => [
+ 'description' => '使用NextToken方式查询时,每次最多返回的结果数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 123,\\n \\"PageSize\\": 30,\\n \\"NextToken\\": \\"90******-f5c5-4cd4-927e-1f45e1cb8b62_1729644433000\\",\\n \\"DatasetFileMetas\\": [\\n {\\n \\"DatasetFileMetaId\\": \\"\\",\\n \\"Uri\\": \\"oss://test-bucket/dataset/car.png\\",\\n \\"FileName\\": \\"car.png\\",\\n \\"DownloadUrl\\": \\"\\",\\n \\"Score\\": 0.6,\\n \\"DataSize\\": 12,\\n \\"FileFingerPrint\\": \\"\\",\\n \\"FileUpdateTime\\": \\"2021-01-12T14:36:01.000Z\\",\\n \\"Tags\\": \\"\\",\\n \\"ThumbnailUrl\\": \\"\\",\\n \\"MetaAttributes\\": \\"{ \\\\\\"ImageHeight\\\\\\": 400, \\\\\\"ImageWidth\\\\\\": 800 }\\",\\n \\"SyncTime\\": \\"2021-01-12T14:36:01.000Z\\",\\n \\"TagUpdateTime\\": \\"2021-01-12T14:36:01.000Z\\",\\n \\"SemanticIndexJobId\\": \\"\\",\\n \\"SemanticIndexUpdateTime\\": \\"2021-01-12T14:36:01.000Z\\",\\n \\"FileCreateTime\\": \\"2021-01-12T14:36:01.000Z\\",\\n \\"FileType\\": \\"image\\",\\n \\"ContentType\\": \\"image/jpeg\\",\\n \\"Status\\": \\"\\"\\n }\\n ],\\n \\"DatasetId\\": \\"d-rbvg5*****jhc9ks92\\\\n\\",\\n \\"WorkspaceId\\": \\"105173\\",\\n \\"DatasetVersion\\": \\"v1\\",\\n \\"MaxResults\\": 10\\n}","type":"json"}]',
+ 'title' => '获取数据集文件元数据列表',
+ 'requestParamsDescription' => '## DSL查询语法说明'."\n"
+ ."\n"
+ .'| keyword | 说明 | 范例 |'."\n"
+ .'|------------------|----------------------------------------------------------------------|----------------------------------------------------------------------|'."\n"
+ .'| : | 分词匹配 | `FileName:\'车道线\'`<br>查找文件名分词后包含“车道线”的数据 |'."\n"
+ .'| NOT : | 分词不匹配 | `NOT FileName : \'车道线\'`<br>查找文件名分词后不包含“车道线”的数据 |'."\n"
+ .'| = | 精确值匹配 | `FileType=\'image\'`<br>查找文件类型为“image”的数据(精确匹配) |'."\n"
+ .'| NOT = | 精确值排除 | `NOT FileType = \'video\'`<br>查找所有FileType不等于"video"的数据 |'."\n"
+ .'| HAS | 存在 | `HAS SemanticIndexJobId`<br>查找所有存在SemanticIndexJobId属性的数据 |'."\n"
+ .'| NOT HAS | 不存在 | `NOT HAS SemanticIndexJobId`<br>查找所有不存在SemanticIndexJobId属性的数据 |'."\n"
+ .'| "" | 对值的字符串类型进行包裹 | 单双引号效果一致 |'."\n"
+ .'| () | 分组操作 | `(FileName:\'black\' AND ContentType=\'image/jpeg\') OR (FileName:\'white\' AND ContentType=\'image/png\')`<br>查找FileName为模糊匹配black并且ContentType为image/jpeg 或者 FileName为模糊匹配white并且ContentType为image/png |'."\n"
+ .'| > | 范围查询:<br>大于 | `FileUpdateTime> \'2025-01-16T11:52:56.000Z\' AND DataSize >= 12345`<br>文件最后修改时间在2025-01-16T11:52:56.000Z之后的并且文件大小大于等于12345字节 |'."\n"
+ .'| >= | 范围查询:<br>大于等于 | 同上 |'."\n"
+ .'| < | 范围查询:<br>小于 | `FileUpdateTime < \'2025-01-16T11:52:56.000Z\' AND DataSize <= 12345`<br>文件最后修改时间在2025-01-16T11:52:56.000Z之前并且文件大小小于等于12345字节 |'."\n"
+ .'| <= | 范围查询:<br>小于等于 | 同上 |'."\n"
+ .'| AND | 并且<br>大小写都支持 | `FileType=\'image\' AND ContentType:\'image/png\'`<br>查找文件类型为image且文件格式为png的图片 |'."\n"
+ .'| OR | 或者<br>大小写都支持 | `FileType=\'image\' OR FileType=\'video\'`<br>查找文件类型为image或video的数据 |'."\n"
+ ."\n"
+ .'### DSL查询属性支持列表'."\n"
+ ."\n"
+ .'支持文件基础元数据属性、标签属性、向量检索属性、通用检索属性.'."\n"
+ .'所有属性在查询条件中都必须是非必选的。'."\n"
+ ."\n"
+ .'类型的说明:'."\n"
+ .'* KEYWORD:仅支持等于、不等于、存在、不存在中的一种或多种'."\n"
+ .'* TEXT:仅支持分词包含、分词不包含、等于、不等于、存在、不存在中的一种或多种'."\n"
+ .'* NUMBER:仅支持范围查询、等于、存在、不存在中的一种或多种'."\n"
+ .'* DATE:仅支持范围查询、存在、不存在中的一种或多种'."\n"
+ ."\n"
+ .'#### 基础元数据属性'."\n"
+ ."\n"
+ .'| 属性名 | 内部类型 | 分词包含 | 分词不包含 | 等于 | 不等于 | 存在/不存在 | 范围查询 | AND逻辑 | OR逻辑 |'."\n"
+ .'|-------------------------|----------|----------|------------|------|--------|-------------|----------|---------|--------|'."\n"
+ .'| DatasetFileMetaId | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |'."\n"
+ .'| FileName | TEXT | ✅ | ✅ | ✅ | ✅ | ✅ | - | ✅ | ✅ |'."\n"
+ .'| FileDir | TEXT | ✅ | ✅ | ✅ | ✅ | ✅ | - | ✅ | ✅ |'."\n"
+ .'| FileType | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |'."\n"
+ .'| ContentType | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |'."\n"
+ .'| DataSize | NUMBER | - | - | ✅ | - | ✅ | ✅ | ✅ | ✅ |'."\n"
+ .'| FileUpdateTime | DATE | - | - | - | - | ✅ | ✅ | ✅ | ✅ |'."\n"
+ .'| SyncTime | DATE | - | - | - | - | ✅ | ✅ | ✅ | ✅ |'."\n"
+ .'| TagUpdateTime | DATE | - | - | - | - | ✅ | ✅ | ✅ | ✅ |'."\n"
+ .'| SemanticIndexUpdateTime| DATE | - | - | - | - | ✅ | ✅ | ✅ | ✅ |'."\n"
+ .'| Status | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |'."\n"
+ ."\n\n"
+ .'#### 标签属性'."\n"
+ ."\n"
+ .'| 属性名 | 内部类型 | 分词包含 | 分词不包含 | 等于 | 不等于 | 存在/不存在 | 范围查询 | AND逻辑 | OR逻辑 |'."\n"
+ .'|--------------|----------|----------|------------|------|--------|-------------|----------|---------|--------|'."\n"
+ .'| Tags.ai | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |'."\n"
+ .'| Tags.user | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |'."\n"
+ .'| Tags.all | KEYWORD | - | - | ✅ | ✅ | ✅ | - | ✅ | ✅ |'."\n"
+ ."\n\n"
+ .'#### 向量查询属性'."\n"
+ ."\n"
+ .'| 属性名 | 内部类型 | 分词包含 | 分词不包含 | 等于 | 不等于 | 存在/不存在 | 范围查询 | AND逻辑 | OR逻辑 |'."\n"
+ .'|--------------|----------|----------|------------|------|--------|-------------|----------|---------|--------|'."\n"
+ .'| Content | TEXT | ✅ | - | ❌ | ❌ | ❌ | - | ✅ | ❌ |'."\n"
+ .'| TopK | NUMBER | - | - | ✅ | - | ❌ | ❌ | ✅ | ❌ |'."\n"
+ .'| ScoreThreshold| NUMBER | - | - | ✅ | - | ❌ | ❌ | ✅ | ❌ |'."\n"
+ ."\n\n"
+ .'#### 通用查询属性'."\n"
+ ."\n"
+ .'| 属性名 | 内部类型 | 分词包含 | 分词不包含 | 等于 | 不等于 | 存在/不存在 | 范围查询 | AND逻辑 | OR逻辑 |'."\n"
+ .'|--------------|----------|----------|------------|------|--------|-------------|----------|---------|--------|'."\n"
+ .'| QueryType | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |'."\n"
+ .'| SignMode | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |'."\n"
+ .'| ThumbnailMode| KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |'."\n"
+ .'| SortBy | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |'."\n"
+ .'| Order | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |'."\n"
+ .'| NextToken | KEYWORD | - | - | ✅ | ❌ | ❌ | - | ✅ | ❌ |'."\n"
+ .'| MaxResults | NUMBER | - | - | ✅ | - | ❌ | ❌ | ✅ | ❌ |',
+ ],
+ 'GetDatasetJobConfig' => [
+ 'summary' => '获取数据集任务配置。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetjobconfigs/{DatasetJobConfigId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260462',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ 'autoTest' => true,
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-lfd60v0p****ujtsdx',
+ ],
+ ],
+ [
+ 'name' => 'DatasetJobConfigId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '配置id',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'dscfg-xxxxxxxxxxxx',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '114243',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D5BFFEE3-6025-443F-8A03-02D619B5C4B9',
+ ],
+ 'CreateTime' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2024-10-16T01:44:10Z',
+ ],
+ 'ModifyTime' => [
+ 'description' => '配置的修改时间。',
+ 'type' => 'string',
+ 'example' => '2024-12-26T02:17:18Z',
+ ],
+ 'ConfigType' => [
+ 'description' => '配置类型'."\n"
+ ."\n"
+ .'- MultimodalIntelligentTag'."\n"
+ ."\n"
+ .'- MultimodalSemanticIndex',
+ 'type' => 'string',
+ 'example' => 'MultimodalIntelligentTag',
+ ],
+ 'Config' => [
+ 'description' => '配置内容'."\n"
+ .'其中MultimodalIntelligentTag 配置格式为'."\n"
+ ."\n"
+ .'{'."\n"
+ .' "apiKey":"sk-xxxxxxxxxxxxxxxxxxxxx"'."\n"
+ .'}'."\n"
+ ."\n"
+ .'MultimodalSemanticIndex'."\n"
+ ."\n"
+ .'{'."\n"
+ .' "defaultModelId": "xxx"'."\n"
+ .' "defaultModelVersion":"1.0.0"'."\n"
+ .'}',
+ 'type' => 'string',
+ 'example' => '{ "apiKey":"sk-xxxxxxxxxxxxxxxxxxxxx" }',
+ ],
+ 'DatasetId' => [
+ 'description' => '数据集Id',
+ 'type' => 'string',
+ 'example' => 'd-lfd60v0p****ujtsdx',
+ ],
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '114243',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D5BFFEE3-6025-443F-8A03-02D619B5C4B9\\",\\n \\"CreateTime\\": \\"2024-10-16T01:44:10Z\\",\\n \\"ModifyTime\\": \\"2024-12-26T02:17:18Z\\",\\n \\"ConfigType\\": \\"MultimodalIntelligentTag\\",\\n \\"Config\\": \\"{ \\\\\\"apiKey\\\\\\":\\\\\\"sk-xxxxxxxxxxxxxxxxxxxxx\\\\\\" }\\",\\n \\"DatasetId\\": \\"d-lfd60v0p****ujtsdx\\",\\n \\"WorkspaceId\\": \\"114243\\"\\n}","type":"json"}]',
+ 'title' => '获取数据集任务配置',
+ ],
+ 'GetDatasetFileMeta' => [
+ 'summary' => '获取数据集下的指定文件元数据记录。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetfilemetas/{DatasetFileMetaId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260628',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5wz****c9ks92',
+ ],
+ ],
+ [
+ 'name' => 'DatasetFileMetaId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集文件元数据ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '07914c9534586e4e7aa6e9dbca5009082df******fd8a0d857b33296c59bf6',
+ ],
+ ],
+ [
+ 'name' => 'DatasetVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集版本名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1234',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '请求结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'DatasetFileMeta' => [
+ 'description' => '获取的数据集文件元数据详情。',
+ '$ref' => '#/components/schemas/DatasetFileMetaContentGet',
+ ],
+ 'DatasetVersion' => [
+ 'description' => '数据集版本名。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ 'DatasetId' => [
+ 'description' => '数据集ID。',
+ 'type' => 'string',
+ 'example' => 'd-rbvg5wz****c9ks92',
+ ],
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '1234',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"DatasetFileMeta\\": {\\n \\"FileName\\": \\"\\",\\n \\"Uri\\": \\"\\",\\n \\"Comment\\": \\"\\",\\n \\"FileCreateTime\\": \\"2021-01-12T14:36:01.000Z\\",\\n \\"FileUpdateTime\\": \\"2021-01-12T14:36:01.000Z\\",\\n \\"FileFingerPrint\\": \\"\\",\\n \\"DataSize\\": 0,\\n \\"FileType\\": \\"\\",\\n \\"ContentType\\": \\"\\",\\n \\"MetaAttributes\\": \\"\\",\\n \\"Tags\\": \\"\\",\\n \\"DatasetFileMetaId\\": \\"\\",\\n \\"FileDir\\": \\"\\",\\n \\"TagUpdateTime\\": \\"2021-01-12T14:36:01.000Z\\",\\n \\"SemanticIndexJobId\\": \\"\\",\\n \\"SemanticIndexUpdateTime\\": \\"2021-01-12T14:36:01.000Z\\",\\n \\"Status\\": \\"\\"\\n },\\n \\"DatasetVersion\\": \\"v1\\",\\n \\"DatasetId\\": \\"d-rbvg5wz****c9ks92\\",\\n \\"WorkspaceId\\": \\"1234\\"\\n}","type":"json"}]',
+ 'title' => '获取数据集文件元数据详情',
+ ],
+ 'DeleteDatasetFileMetas' => [
+ 'summary' => '批量删除数据集下的文件元数据记录',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetfilemetas',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260630',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-lfd60v0p****ujtsdx',
+ ],
+ ],
+ [
+ 'name' => 'DatasetVersion',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集版本名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集所在工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '132602',
+ ],
+ ],
+ [
+ 'name' => 'DatasetFileMetaIds',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集文件元数据ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '07914c9534586e4e7aa6e9dbca5009082df******fd8a0d857b33296c59bf6'."\n",
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '请求结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'Status' => [
+ 'description' => '本批元数据删除结果的状态。全部成功为true,如果为false,需要查看FailedDetails。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'FailedDetails' => [
+ 'description' => '删除失败的文件元数据列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '删除失败的文件元数据详情。',
+ '$ref' => '#/components/schemas/DatasetFileMetaResponse',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"Status\\": true,\\n \\"FailedDetails\\": [\\n {\\n \\"DatasetFileMetaId\\": \\"\\",\\n \\"Result\\": \\"\\",\\n \\"Uri\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '批量删除数据集文件元数据',
+ ],
+ 'CreateDatasetJobConfig' => [
+ 'summary' => '创建数据集任务配置。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetjobconfigs',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260458',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集Id',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5wzlj****9ks92',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求Body。',
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '454716',
+ ],
+ 'ConfigType' => [
+ 'description' => '配置类型',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'MultimodalIntelligentTag' => 'MultimodalIntelligentTag',
+ 'MultimodalSemanticIndex' => 'MultimodalSemanticIndex',
+ ],
+ 'example' => 'MultimodalIntelligentTag',
+ ],
+ 'Config' => [
+ 'description' => '配置内容'."\n"
+ .'其中配置内容格式如下:'."\n"
+ ."\n"
+ .'- MultimodalIntelligentTag'."\n"
+ ."\n"
+ .'{'."\n"
+ .' "apiKey":"sk-xxxxxxxxxxxxxxxxxxxxx"'."\n"
+ .'}'."\n"
+ ."\n"
+ .'- MultimodalSemanticIndex'."\n"
+ ."\n"
+ .'{'."\n"
+ .' "defaultModelId": "xxx"'."\n"
+ .' "defaultModelVersion":"1.0.0"'."\n"
+ .'}',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '{ "apiKey":"sk-xxxxxxxxxxxxxxxxxxxxx" }',
+ ],
+ 'DatasetVersion' => [
+ 'description' => '数据集版本名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'DatasetJobConfigId' => [
+ 'description' => '配置id',
+ 'type' => 'string',
+ 'example' => 'dscfg-xxxxxxxxxxxxxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"DatasetJobConfigId\\": \\"dscfg-xxxxxxxxxxxxxx\\"\\n}","type":"json"}]',
+ 'title' => '创建数据集任务配置',
+ ],
+ 'CreateDatasetJob' => [
+ 'summary' => '创建数据集任务。',
+ 'path' => '/api/v1/datasets/{DatasetId}/datasetjobs',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260335',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5wz****c9ks92',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetVersion' => [
+ 'description' => '数据集版本名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '478**',
+ ],
+ 'JobAction' => [
+ 'description' => '任务操作。'."\n"
+ .'- SemanticIndex: 语义索引'."\n"
+ .'- IntelligentTag: 智能打标'."\n"
+ .'- FileMetaExport: 元数据导出'."\n"
+ .'- FileMetaBuild: 构建更新元数据'."\n"
+ .'- IntelligentTagRevert: 智能打标撤回'."\n"
+ .'- FileMetaImport: 元数据导入',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'IntelligentTagRevert' => 'IntelligentTagRevert',
+ 'SemanticIndex' => 'SemanticIndex',
+ 'FileMetaImport' => 'FileMetaImport',
+ 'IntelligentTag' => 'IntelligentTag',
+ 'FileMetaExport' => 'FileMetaExport',
+ 'FileMetaBuild' => 'FileMetaBuild',
+ ],
+ 'example' => 'SemanticIndex',
+ ],
+ 'JobMode' => [
+ 'description' => '任务类型。'."\n"
+ .'* Full(默认值):强制处理全量元数据。任务执行耗时久。'."\n"
+ .'* Increment:仅处理变更或者未处理成功的元数据; '."\n"
+ .'SemanticIndex和IntelligentTag任务支持Increment/Full,其余任务仅支持Full。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Increment' => 'Increment',
+ 'Full' => 'Full',
+ ],
+ 'example' => 'Full',
+ ],
+ 'Description' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is a job description.',
+ ],
+ 'JobSpec' => [
+ 'description' => '任务明细。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '{\\"modelId\\":\\"xxx\\"}',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '99341606-****-0757724D97EE',
+ ],
+ 'DatasetJobId' => [
+ 'description' => '数据集任务ID',
+ 'type' => 'string',
+ 'example' => 'dsjob-9jx1******uj9e',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"99341606-****-0757724D97EE\\",\\n \\"DatasetJobId\\": \\"dsjob-9jx1******uj9e\\"\\n}","type":"json"}]',
+ 'title' => '创建数据集任务',
+ 'requestParamsDescription' => 'CreateDatasetJob中的JobSpec参数说明:'."\n"
+ .'### 语义索引任务'."\n"
+ ."\n"
+ .'示例:'."\n"
+ .'```{'."\n"
+ .' "modelId": "xxx",'."\n"
+ .' "modelVersion": "1.0.0",'."\n"
+ .' "contentList": ["file"],'."\n"
+ .' "embeddingConnectionId": "conn-xxx",'."\n"
+ .' "embeddingModel": "default",'."\n"
+ .' "databaseConnectionId": "conn-xxx",'."\n"
+ .' "databaseTableName": "table_xxx",'."\n"
+ .' "vectorIndexConfig":"{\\"shards\\":1,\\"similarity\\":\\"cosine\\",\\"indexType\\":\\"hnsw\\",\\"indexOptions\\":{\\"m\\":16,\\"efConstruction\\":200}}",'."\n"
+ .' "concurrency": 2'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'字段说明:'."\n"
+ .'| 字段名称 | 类型 | 示例 | 必选 | 参数说明 |'."\n"
+ .'|---------------------|----------------|------------|------|------------------------------|'."\n"
+ .'| modelId | String | model-xxx | 否 | 官方模型ID。 |'."\n"
+ .'| modelVersion | String | 1.0.0 | 否 | 官方模型版本。 |'."\n"
+ .'| embeddingConnectionId | String | conn-xxx | 否 | eas模型服务连接ID。 |'."\n"
+ .'| embeddingModel | String | default | 否 | eas模型服务对应的模型名称。 |'."\n"
+ .'| databaseConnectionId | String | conn-xxx | 否 | 向量库服务连接ID。 |'."\n"
+ .'| databaseTableName | String | table_xxx | 否 | 向量库表名。 |'."\n"
+ .'| concurrency | Integer | 2 | 否 | 任务并行数 |'."\n"
+ .'| contentList | Array<String> | | 是 | 索引内容列表。 |'."\n"
+ .'| +- | String | file | | 索引内容。一期只支持file(文件)。 |'."\n"
+ ."\n"
+ .'### 智能打标任务'."\n"
+ ."\n"
+ .'示例:'."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "intelligentTagConnectionId": "conn-keltvufiud3quopq11",'."\n"
+ .' "promptId": "pmt-gh6qaj1kvkf6yk7qx2",'."\n"
+ .' "modelId":"qwen-vl-max"'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'字段说明:'."\n"
+ .'| 字段名称 | 类型 | 示例 | 必选 | 参数说明 |'."\n"
+ .'|---------------------------|--------|-------------------------------|------|--------------------|'."\n"
+ .'| modeId | String | qwen-vl-max | 是 | 模型名称 |'."\n"
+ .'| intelligentTagConnectionId| String | conn-keltvufiud3quopq11 | 是 | 打标连接管理 |'."\n"
+ .'| promptId | String | pmt-gh6qaj1kvkf6yk7qx2 | 是 | 提示词id |'."\n"
+ ."\n\n"
+ .'### 元数据导出任务'."\n"
+ .'示例:'."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "query":{'."\n"
+ .' "QueryType": "TAG",'."\n"
+ .' "QueryText": "",'."\n"
+ .' "TopK": 100,'."\n"
+ .' "ScoreThreshold":0.6'."\n"
+ .' },'."\n"
+ .' "filteredAttributes":"FileName,Uri",'."\n"
+ .' "exportDirUri": "oss://bucket/path/" '."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'字段说明:'."\n"
+ .'| 字段名称 | 类型 | 示例 | 必选 | 参数说明 |'."\n"
+ .'|---------------------|------------|----------------------------------------------------------------------|------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|'."\n"
+ .'| query | JSON | | 否 | 导出查询条件,字段与 `ListDatasetMetas` 接口保持一致。见:`QueryParms` |'."\n"
+ .'| filteredAttributes | String | 逗号分隔 | 否 | 当指定时,导出结果将只包含指定过滤的属性字段。字段列表:<br>* Uri (必有)<br>* DatasetFileMetaId<br>* FileName <br>* DataSize<br>* FileType<br>* ContentType<br>* Comment<br>* MetaAttributes<br>* FileFingerPrint<br>* FileCreateTime<br>* FileUpdateTime<br>* Tags.user: 用户自定义标签<br>* Tags.user-delete-ai-tags: 用户删除的算法标签<br>* Tags.ai:算法标签(所有打标任务聚合后的)<br>* Tags.all: 算法标签+用户自定义标签(已去除用户删除的算法标签) |'."\n"
+ .'| exportDirUri | String | oss://bucket/path/<br>或者<br>pvfs://cata_log/DB/lanceTable | 是 | 导出内容的 OSS 存储路径,需为目录地址。<br>会在该目录下创建文件夹:`{datasetId}-{datasetversion}-{time:yyyy-MM-dd-HH-mm-ss}`,下存放 yaml 和 jsonl 文件。 |'."\n"
+ ."\n"
+ .'**QueryParams**:'."\n"
+ .'| 字段名称 | 类型 | 示例 | 必选 | 参数说明 |'."\n"
+ .'|---------------------------|----------------|----------------------------------------------------------------------|------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|'."\n"
+ .'| QueryType | String | MIX | 否 | MIX, VECTOR, TAG |'."\n"
+ .'| QueryText | String | “倒地的水马” | 否 | 待搜索文本内容 |'."\n"
+ .'| QueryImage | String | oss://bucket.cn-hangzhou.aliyuncs.com/image.jpg | 否 | 以图搜图时,该参数传入图片的信息。<br>支持传入图片的可公网访问的 oss url 格式 |'."\n"
+ .'| QueryTagsIncludeAll | String | 蓝色锥形桶,车道线 | 否 | 表示“同时包含以下标签”。<br>用户可以选择多个标签,查询结果必须同时满足这些标签。<br>如果为空,则不应用此条件。<br>当 QueryType=TAG 或 MIX 时有效。 |'."\n"
+ .'| QueryTagsIncludeAny | String | 蓝天 | 否 | 表示“包含以下任意标签”。<br>用户可以选择多个标签,查询结果只需满足其中一个即可。<br>如果为空,则不应用此条件。<br>当 QueryType=TAG 或 MIX 时有效。 |'."\n"
+ .'| QueryTagsExclude | String | 阴天 | 否 | 表示“排除以下标签”。<br>用户可以选择多个标签,查询结果中不能包含这些标签。<br>如果为空,则不应用此条件。<br>当 QueryType=TAG 或 MIX 时有效。 |'."\n"
+ .'| QueryFileName | String | shuima | 否 | 文件名模糊搜索,基于 2-gram 模糊匹配 |'."\n"
+ .'| QueryFileDir | String | oss://cars/20250221/ | 否 | 文件目录模糊搜索,基于 2-gram 模糊匹配 |'."\n"
+ .'| QueryFileTypeIncludeAny | String | image,video | 否 | 表示“包含以下任意文件类型”。<br>用户可以选择多个文件类型,查询结果只需满足其中一个即可。<br>如果为空,则不应用此条件。 |'."\n"
+ .'| QueryContentTypeIncludeAny| String | image/jpeg,application/pdf | 否 | 表示“包含以下任意 MIME Type 类型”。<br>用户可以选择多个文件类型,查询结果只需满足其中一个即可。<br>如果为空,则不应用此条件 |'."\n"
+ .'| StartFileUpdateTime | String | 2021-01-12T14:36:01.000Z | 否 | 查询时间段范围内的文件元数据。起始文件更新时间。<br>iso8601 格式 UTC 时间戳,2021-01-12T14:36:01.000Z。 |'."\n"
+ .'| EndFileUpdateTime | String | 2021-01-12T14:36:01.000Z | 否 | 查询时间段范围内的文件元数据。结束文件更新时间。<br>iso8601 格式 UTC 时间戳,2021-01-12T14:36:01.000Z。 |'."\n"
+ .'| StartTagUpdateTime | String | 2021-01-12T14:36:01.000Z | 否 | 查询时间段范围内的文件元数据。起始最后标签更新时间。<br>iso8601 格式 UTC 时间戳,2021-01-12T14:36:01.000Z。<br>当 QueryType=TAG 或 MIX 时有效。 |'."\n"
+ .'| EndTagUpdateTime | String | 2021-01-12T14:36:01.000Z | 否 | 查询时间段范围内的文件元数据。结束最后标签更新时间。<br>iso8601 格式 UTC 时间戳,2021-01-12T14:36:01.000Z。<br>当 QueryType=TAG 或 MIX 时有效。 |'."\n"
+ .'| TopK | Integer | 100 | 否 | 导出的最大数量,默认无限制 |'."\n"
+ .'| ScoreThreshold | Float | 0.6 | | 相似度分数过滤。只返回大于 ScoreThreshold 的结果。<br>当 QueryType=VECTOR 或 MIX 时有效。 |'."\n"
+ .'| DatasetFileMetaIds | String | | 否 | 文件元数据 ID 列表,最大个数为 20。 |'."\n"
+ ."\n"
+ .'### 构建更新元数据任务'."\n"
+ .'示例:'."\n"
+ .'```'."\n"
+ .'{}'."\n"
+ .'```'."\n"
+ ."\n"
+ .'### 智能打标撤回任务'."\n"
+ .'示例:'."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "intelligentTagJobId": "dsjob-gh6qaj1kvkf6yk7qx2"'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'字段说明:'."\n"
+ .'| 字段名称 | 类型 | 示例 | 必选 | 参数说明 |'."\n"
+ .'|------------------------|--------|-------------------------------|------|----------------------------|'."\n"
+ .'| intelligentTagJobId | String | dsjob-gh6qaj1kvkf6yk7qx2 | 是 | 待撤回的智能打标任务ID |'."\n"
+ ."\n\n"
+ .'### 元数据导入任务'."\n"
+ .'基于查询条件示例:'."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "srcDatasetId": "d-1234",'."\n"
+ .' "srcDatasetVersion": "v1",'."\n"
+ .' "srcWorkspaceId": "12729",'."\n"
+ .' "query":'."\n"
+ .' {'."\n"
+ .' "QueryType": "TAG",'."\n"
+ .' "QueryText": "",'."\n"
+ .' "TopK": 100,'."\n"
+ .' "ScoreThreshold": 0.6'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ .'基于pai_dataset_filemeta_manifest文件示例:'."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "manifestUri":"oss://bucket/export_path/d-mpdxv0lm9sndij7gpb-v1-2025-06-18-12-23-30/pai_dataset_filemeta_manifest.yaml"'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ ."\n"
+ .'字段说明:'."\n"
+ .'| 字段名称 | 类型 | 示例 | 必选 | 参数说明 |'."\n"
+ .'|---------------------|------------|----------------------------------------------------------------------|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|'."\n"
+ .'| srcDatasetId | String | dsjob-gh6qaj1kvkf6yk7qx2 | 是(基于查询) | 导入来源数据集 ID |'."\n"
+ .'| srcDatasetVersion | String | v1 | 是(基于查询) | 导入来源数据集版本 |'."\n"
+ .'| srcWorkspaceId | String | 12729 | 是(基于查询) | 导入来源数据集工作空间 |'."\n"
+ .'| query | JSON | | 否(基于查询) | 在源数据集版本上应用的查询条件。<br>见:`QueryParams` |'."\n"
+ .'| manifestUri | String | oss://bucket/export_path/d-mpdxv0lm9sndij7gpb-v1-2025-06-18-12-23-30/pai_dataset_filemeta_manifest.yaml | 是(基于文件) | 导入来源的 manifest 文件地址。<br>仅支持不带 endpoint 的 oss uri |'."\n"
+ .'| filteredAttributes | String | FileName,Uri,FileFingerPrint,DataSize,DataSize,FileUpdateTime,Tags.ai | 否 | 默认导入所有属性字段。<br>当指定时,导入内容将只包含指定过滤的属性字段。<br>字段列表:<br>* FileName (必须)<br>* Uri (必须)<br>* FileFingerPrint (必须)<br>* DataSize (必须)<br>* FileType (必须)<br>* ContentType (必须)<br>* Comment<br>* MetaAttributes<br>* FileCreateTime<br>* FileUpdateTime<br>* Tags.user: 用户自定义标签<br>* Tags.user-delete-ai-tags: 用户删除的算法标签<br>* Tags.ai:算法标签(所有打标任务聚合后的) |'."\n"
+ .'| importMode | String | append | 否 | 导入模式:<br>append(默认): 追加模式。同 uri 的文件会使用待导入的内容进行覆盖。<br>replace: 替换模式。该数据集版本下原有的文件元数据将会被删除。 |',
+ ],
+ 'CreateDataset' => [
+ 'summary' => '创建一个数据集。',
+ 'path' => '/api/v1/datasets',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '48562',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => 'Name',
+ 'description' => '数据集的名称。命名规则如下:'."\n"
+ .'- 以小写字母、大写字母、数字或中文开头。'."\n"
+ .'- 可以包含下划线(_)或短划线(-)。'."\n"
+ .'- 长度为1~127个字符。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [],
+ 'example' => 'myName',
+ ],
+ 'Property' => [
+ 'title' => 'Property',
+ 'description' => '数据集的属性。支持以下取值:'."\n"
+ .'- FILE:文件。'."\n"
+ .'- DIRECTORY:文件夹。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'DIRECTORY' => 'DIRECTORY',
+ 'FILE' => 'FILE',
+ ],
+ 'example' => 'DIRECTORY',
+ ],
+ 'DataSourceType' => [
+ 'title' => 'DataSourceType',
+ 'description' => '数据源类型。支持以下取值:'."\n"
+ .'- OSS:阿里云对象存储(OSS)。'."\n"
+ .'- NAS:阿里云文件存储(NAS)通用型。'."\n"
+ .'- EXTREMENAS:阿里云文件存储(NAS)极速型。'."\n"
+ .'- CPFS: 阿里云文件存储(CPFS)通用版。'."\n"
+ .'- BMCPFS:阿里云文件存储(CPFS)智算版。 '."\n"
+ .'- MAXCOMPUTE:阿里云云原生大数据计算服务(MaxCompute)。'."\n"
+ .'- URL:公网HTTP/HTTPS地址。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'NAS' => 'NAS',
+ 'MAXCOMPUTE' => 'MAXCOMPUTE',
+ 'CPFS' => 'CPFS',
+ 'BMCPFS' => 'BMCPFS',
+ 'EXTREMENAS' => 'EXTREMENAS',
+ 'OSS' => 'OSS',
+ 'URL' => 'URL',
+ ],
+ 'example' => 'NAS',
+ ],
+ 'Uri' => [
+ 'title' => 'Uri',
+ 'description' => 'Uri配置样例如下:'."\n"
+ .'- 数据源类型为OSS:`oss://bucket.endpoint/object`'."\n"
+ .'- 数据源类型为NAS:'."\n"
+ .'通用型NAS格式为:`nas://<nasfisid>.region/subpath/to/dir/`;'."\n"
+ .'CPFS1.0:`nas://<cpfs-fsid>.region/subpath/to/dir/`;'."\n"
+ .'CPFS2.0:`nas://<cpfs-fsid>.region/<protocolserviceid>/`。'."\n"
+ .'CPFS1.0和CPFS2.0根据fsid的格式来区分:CPFS1.0 格式为cpfs-<8位ASCII字符>;CPFS2.0 格式为cpfs-<16位ASCII字符>。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'nas://09f****f2.cn-hangzhou/',
+ ],
+ 'DataType' => [
+ 'title' => 'DataType',
+ 'description' => '数据集的数据类型,默认为COMMON。支持以下取值:'."\n"
+ .'- COMMON:普通。'."\n"
+ .'- PIC:图片。'."\n"
+ .'- TEXT:文本。'."\n"
+ .'- VIDEO:视频。'."\n"
+ .'- AUDIO:音频。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'VIDEO' => 'VIDEO',
+ 'COMMON' => 'COMMON',
+ 'TEXT' => 'TEXT',
+ 'PIC' => 'PIC',
+ 'AUDIO' => 'AUDIO',
+ ],
+ 'example' => 'COMMON',
+ ],
+ 'Labels' => [
+ 'title' => 'Labels',
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '为数据集添加的标签。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => false,
+ ],
+ 'SourceType' => [
+ 'title' => 'SourceType',
+ 'description' => '数据来源类型,默认为USER。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PAI_PUBLIC_DATASET' => 'PAI_PUBLIC_DATASET',
+ 'ITAG' => 'ITAG',
+ 'USER' => 'USER',
+ ],
+ 'example' => 'USER',
+ ],
+ 'SourceId' => [
+ 'title' => 'SourceId',
+ 'description' => '数据来源ID。'."\n"
+ .'- 当SourceType为USER时,SourceId支持自定义。'."\n"
+ .'- 当SourceType为ITAG时,即iTAG模块标注结果生成的数据集时,SourceId为ITAG的任务ID。'."\n"
+ .'- 当SourceType为PAI_PUBLIC_DATASET时,即使用PAI公共数据集创建的数据集时,SourceId默认为空。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'jdnhf***fnrimv',
+ ],
+ 'Description' => [
+ 'title' => 'Description',
+ 'description' => '对数据集进行自定义描述,以区分不同的数据集。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is a description of the dataset.',
+ ],
+ 'WorkspaceId' => [
+ 'title' => 'WorkspaceId',
+ 'description' => '数据集所在工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。'."\n"
+ .'如果不配置该参数,则会使用默认工作空间;如果默认工作空间不存在,则会报错。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '478**',
+ ],
+ 'Options' => [
+ 'title' => 'Options',
+ 'description' => '扩展字段,JsonString类型。'."\n"
+ .'当DLC使用数据集时,可通过配置mountPath字段指定数据集默认挂载路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "mountPath": "/mnt/data/"'."\n"
+ .'}',
+ ],
+ 'Accessibility' => [
+ 'title' => 'Accessibility',
+ 'description' => '工作空间可见度。支持以下取值:'."\n"
+ .'- PRIVATE(默认值):表示工作空间内自己以及管理员可见。'."\n"
+ .'- PUBLIC为:工作空间所有用户可见。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PRIVATE',
+ ],
+ 'ProviderType' => [
+ 'title' => 'ProviderType',
+ 'description' => '数据集的数据源来源类型,支持配置的类型如下:'."\n"
+ .'- Ecs(默认值)'."\n"
+ .'- Lingjun',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Ecs',
+ ],
+ 'Provider' => [
+ 'description' => '数据集提供者。不允许设置为pai。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Github',
+ ],
+ 'UserId' => [
+ 'title' => '数据集所有者',
+ 'description' => '数据集所有者的阿里云账号ID。工作空间所有者和管理员有权限给指定工作空间成员创建数据集。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2485765****023475',
+ ],
+ 'SourceDatasetId' => [
+ 'title' => 'iTag标注集的源数据集',
+ 'description' => '标注数据集的来源数据集ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd-bvfasdfxxxxj8o411',
+ ],
+ 'SourceDatasetVersion' => [
+ 'title' => 'iTag标注集的源数据集版本',
+ 'description' => '标注数据集的来源数据集版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v2',
+ ],
+ 'VersionDescription' => [
+ 'description' => '数据集初始版本的描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is a description of the first dataset version.',
+ ],
+ 'VersionLabels' => [
+ 'description' => '初始版本标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '为数据集初始版本添加的标签。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => false,
+ ],
+ 'DataSize' => [
+ 'description' => '数据集文件占据空间的大小。单位Byte 。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'maximum' => '999999999999',
+ 'minimum' => '1',
+ 'example' => '10000',
+ ],
+ 'DataCount' => [
+ 'description' => '数据集文件数量,单位个。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'maximum' => '999999999999',
+ 'minimum' => '1',
+ 'example' => '500',
+ ],
+ 'MountAccessReadWriteRoleIdList' => [
+ 'description' => '指定该数据集被挂载时具有读写权限的工作空间角色名列表,PAI开头的为基础角色ID,role-开头的为自定义角色ID。如果列表中包含了"*",则表示对所有角色都有读写权限。'."\n"
+ .'- 指定角色下的账号: ["PAI.AlgoOperator", "role-hiuwpd01ncrokkgp21"]'."\n"
+ .'- 全部账号:["*"]'."\n"
+ .'- 指定为数据集创建者: []',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '工作空间角色ID',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PAI.AlgoOperator',
+ ],
+ 'required' => false,
+ ],
+ 'ImportInfo' => [
+ 'description' => '数据集的存储导入配置信息,支持OSS/NAS/CPFS等。'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>OSS</summary>'."\n"
+ .'{<BR>'."\n"
+ .'"region": "${region}",//地域ID<BR>'."\n"
+ .'"bucket": "${bucket}",//bucket名称<BR>'."\n"
+ .'"path": "${path}" //文件路径<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>NAS</summary>'."\n"
+ .'{<BR>'."\n"
+ .'"region": "${region}",//地域ID<BR>'."\n"
+ .'"fileSystemId": "${file_system_id}", //文件系统ID<BR>'."\n"
+ .'"path": "${path}", //文件系统路径<BR>'."\n"
+ .'"mountTarget": "${mount_target}" //文件系统挂载点<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>CPFS</summary>'."\n"
+ .'{<BR>'."\n"
+ .'"region": "${region}",//地域ID<BR>'."\n"
+ .'"fileSystemId": "${file_system_id}", //文件系统ID<BR>'."\n"
+ .'"protocolServiceId":"${protocol_service_id}", //文件系统协议服务<BR>'."\n"
+ .'"exportId": "${export_id}", //文件系统导出目录<BR>'."\n"
+ .'"path": "${path}", //文件系统路径<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>智算CPFS</summary>'."\n"
+ .'{<BR>'."\n"
+ .'"region": "${region}",//地域ID<BR>'."\n"
+ .'"fileSystemId": "${file_system_id}", //文件系统ID<BR>'."\n"
+ .'"path": "${path}", //文件系统路径<BR>'."\n"
+ .'"mountTarget": "${mount_target}" //文件系统挂载点,智算版特有<BR>'."\n"
+ .'"isVpcMount": boolean, //是否为vpc挂载点, 智算版特有<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "region": "cn-wulanchabu",'."\n"
+ .' "fileSystemId": "bmcpfs-xxxxxxxxxxx",'."\n"
+ .' "path": "/mnt",'."\n"
+ .' "mountTarget": "cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com",'."\n"
+ .' "isVpcMount": true'."\n"
+ .'}',
+ ],
+ 'Edition' => [
+ 'description' => '数据集类型。默认为BASIC,支持以下取值:'."\n"
+ ."\n"
+ .'- BASIC:基础型。不支持数据集文件元数据管理。'."\n"
+ .'- ADVANCED:高级型。仅OSS类型支持,每个版本支持最多100万个文件元数据管理。'."\n"
+ .'- LOGICAL:逻辑型。仅OSS类型支持,每个版本支持最多300万个文件元数据管理。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'LOGICAL' => 'LOGICAL',
+ 'BASIC' => 'BASIC',
+ 'ADVANCED' => 'ADVANCED',
+ ],
+ 'example' => 'ADVANCED',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'B2C51F93-1C07-5477-9705-5FDB****F19F',
+ ],
+ 'DatasetId' => [
+ 'description' => '数据集ID。',
+ 'type' => 'string',
+ 'example' => 'd-rbvg5*****jhc9ks92',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B2C51F93-1C07-5477-9705-5FDB****F19F\\",\\n \\"DatasetId\\": \\"d-rbvg5*****jhc9ks92\\"\\n}","type":"json"}]',
+ 'title' => '创建数据集',
+ ],
+ 'GetDataset' => [
+ 'summary' => '获取数据集。',
+ 'path' => '/api/v1/datasets/{DatasetId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '48564',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => 'Dataset Id',
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5wz****c9ks92',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'DatasetId' => [
+ 'description' => '数据集ID。',
+ 'type' => 'string',
+ 'example' => 'd-rbvg5wz****c9ks92',
+ ],
+ 'Name' => [
+ 'description' => '数据集名称。',
+ 'type' => 'string',
+ 'example' => 'myName',
+ ],
+ 'Description' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'example' => '用于标注的数据。',
+ ],
+ 'GmtCreateTime' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2021-01-30T12:51:33.028Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '2021-01-30T12:51:33.028Z',
+ ],
+ 'UserId' => [
+ 'description' => '数据集所属用户ID。',
+ 'type' => 'string',
+ 'example' => '2485765****023475',
+ ],
+ 'OwnerId' => [
+ 'description' => '主账户ID。',
+ 'type' => 'string',
+ 'example' => '1631044****3440',
+ ],
+ 'Property' => [
+ 'description' => '数据集初始版本v1的属性。可能值:'."\n"
+ .'- FILE:文件。'."\n"
+ .'- DIRECTORY:文件夹。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'DIRECTORY' => 'DIRECTORY',
+ 'FILE' => 'FILE',
+ ],
+ 'example' => 'DIRECTORY',
+ ],
+ 'DataSourceType' => [
+ 'description' => '数据源类型。可能值:'."\n"
+ .'- OSS:阿里云对象存储(OSS)。'."\n"
+ .'- NAS:阿里云文件存储(NAS)。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'NAS' => 'NAS',
+ 'OSS' => 'OSS',
+ ],
+ 'example' => 'NAS',
+ ],
+ 'Uri' => [
+ 'description' => '初始版本v1的Uri,样例格式:'."\n"
+ .'- 数据源类型为OSS:`oss://bucket.endpoint/object`。'."\n"
+ .'- 数据源类型为NAS:'."\n"
+ .'通用型NAS格式为:`nas://<nasfisid>.region/subpath/to/dir/`;'."\n"
+ .'CPFS1.0:`nas://<cpfs-fsid>.region/subpath/to/dir/`;'."\n"
+ .'CPFS2.0:`nas://<cpfs-fsid>.region/<protocolserviceid>/`;'."\n"
+ .'CPFS1.0和CPFS2.0根据fsid的格式来区分:'."\n"
+ .'CPFS1.0 格式为cpfs-<8位ascii字符>;'."\n"
+ .'CPFS2.0 格式为cpfs-<16为ascii字符>。',
+ 'type' => 'string',
+ 'example' => 'nas://09f****f2.cn-hangzhou/',
+ ],
+ 'Labels' => [
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '为数据集添加的标签。',
+ 'example' => '{"Key": "env", "Value": "test"}',
+ '$ref' => '#/components/schemas/Label',
+ ],
+ ],
+ 'DataType' => [
+ 'description' => '数据集的数据类型,可能值:'."\n"
+ ."\n"
+ .'- COMMON:普通。'."\n"
+ .'- PIC:图片。'."\n"
+ .'- TEXT:文本。'."\n"
+ .'- VIDEO:视频。'."\n"
+ .'- AUDIO:音频。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'VIDEO' => 'VIDEO',
+ 'COMMON' => 'COMMON',
+ 'TEXT' => 'TEXT',
+ 'PIC' => 'PIC',
+ 'AUDIO' => 'AUDIO',
+ ],
+ 'example' => 'COMMON',
+ ],
+ 'SourceType' => [
+ 'description' => '数据来源初始版本v1的类型。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PAI_PUBLIC_DATASET' => 'PAI_PUBLIC_DATASET',
+ 'ITAG' => 'ITAG',
+ 'USER' => 'USER',
+ ],
+ 'example' => 'USER',
+ ],
+ 'SourceId' => [
+ 'description' => '初始版本v1的数据来源ID,可能值:'."\n"
+ .'- 当SourceType为USER时,SourceId支持自定义。'."\n"
+ .'- 当SourceType为ITAG时,即iTAG模块标注结果生成的数据集时,SourceId为ITAG的任务ID。'."\n"
+ .'- 当SourceType为PAI_PUBLIC_DATASET时,即使用PAI公共数据集创建的数据集时,SourceId默认为空。',
+ 'type' => 'string',
+ 'example' => 'jdnhf***fnrimv',
+ ],
+ 'WorkspaceId' => [
+ 'description' => '数据集所在工作空间ID。',
+ 'type' => 'string',
+ 'example' => '478**',
+ ],
+ 'Options' => [
+ 'description' => '初始版本v1的扩展字段,JsonString类型。'."\n"
+ .'当DLC使用数据集时,可通过配置mountPath字段指定数据集默认挂载路径。',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "mountPath": "/mnt/data/"'."\n"
+ .'}',
+ ],
+ 'Accessibility' => [
+ 'description' => '工作空间可见度。可能值:'."\n"
+ .'- PRIVATE:表示工作空间内自己以及管理员可见。'."\n"
+ .'- PUBLIC:为工作空间所有用户可见。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PRIVATE',
+ ],
+ 'ProviderType' => [
+ 'description' => '数据集的数据源来源类型。取值如下:'."\n"
+ .'- Ecs (默认)'."\n"
+ .'- Lingjun',
+ 'type' => 'string',
+ 'example' => 'Ecs',
+ ],
+ 'Provider' => [
+ 'description' => '数据集提供方。返回值为"pai"时表示该数据集为PAI平台的公共数据集。',
+ 'type' => 'string',
+ 'example' => 'pai',
+ ],
+ 'SourceDatasetId' => [
+ 'description' => 'iTag标注集的来源数据集ID。',
+ 'type' => 'string',
+ 'example' => 'd-rcdg3wxxxxxhc5jk87'."\n",
+ ],
+ 'SourceDatasetVersion' => [
+ 'description' => '标注数据集的来源数据集版本。',
+ 'type' => 'string',
+ 'example' => 'v2',
+ ],
+ 'TagTemplateType' => [
+ 'description' => 'iTag标注数据集的标注模板',
+ 'type' => 'string',
+ 'example' => 'TextClassification',
+ ],
+ 'LatestVersion' => [
+ 'description' => '数据集的最新版本。',
+ '$ref' => '#/components/schemas/DatasetVersion',
+ ],
+ 'MountAccess' => [
+ 'description' => '该数据集被挂载时的权限。'."\n"
+ .'- RO:只读挂载'."\n"
+ .'- RW:读写挂载',
+ 'type' => 'string',
+ 'example' => 'RW',
+ ],
+ 'MountAccessReadWriteRoleIdList' => [
+ 'description' => '具有该数据集读写权限的工作空间角色名列表,PAI开头的为基础角色ID,role-开头的为自定义角色ID。如果列表中包含了"*",则表示对所有角色都有读写权限。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '工作空间角色ID',
+ 'type' => 'string',
+ 'example' => 'PAI.AlgoOperator',
+ ],
+ ],
+ 'ImportInfo' => [
+ 'description' => '数据集的存储导入配置信息,支持OSS/NAS/CPFS等。'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>OSS</summary>'."\n"
+ .'{<BR>'."\n"
+ .'"region": "${region}",//地域ID<BR>'."\n"
+ .'"bucket": "${bucket}",//bucket名称<BR>'."\n"
+ .'"path": "${path}" //文件路径<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>NAS</summary>'."\n"
+ .'{<BR>'."\n"
+ .'"region": "${region}",//地域ID<BR>'."\n"
+ .'"fileSystemId": "${file_system_id}", //文件系统ID<BR>'."\n"
+ .'"path": "${path}", //文件系统路径<BR>'."\n"
+ .'"mountTarget": "${mount_target}" //文件系统挂载点<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>CPFS</summary>'."\n"
+ .'{<BR>'."\n"
+ .'"region": "${region}",//地域ID<BR>'."\n"
+ .'"fileSystemId": "${file_system_id}", //文件系统ID<BR>'."\n"
+ .'"protocolServiceId":"${protocol_service_id}", //文件系统协议服务<BR>'."\n"
+ .'"exportId": "${export_id}", //文件系统导出目录<BR>'."\n"
+ .'"path": "${path}", //文件系统路径<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>智算CPFS</summary>'."\n"
+ .'{<BR>'."\n"
+ .'"region": "${region}",//地域ID<BR>'."\n"
+ .'"fileSystemId": "${file_system_id}", //文件系统ID<BR>'."\n"
+ .'"path": "${path}", //文件系统路径<BR>'."\n"
+ .'"mountTarget": "${mount_target}" //文件系统挂载点,智算版特有<BR>'."\n"
+ .'"isVpcMount": boolean, //是否为vpc挂载点, 智算版特有<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "region": "cn-wulanchabu",'."\n"
+ .' "fileSystemId": "bmcpfs-xxxxxxxxxxx",'."\n"
+ .' "path": "/mnt",'."\n"
+ .' "mountTarget": "cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com",'."\n"
+ .' "isVpcMount": true'."\n"
+ .'}',
+ ],
+ 'Edition' => [
+ 'description' => '数据集类型。枚举值:'."\n"
+ ."\n"
+ .'- BASIC:基础型。不支持数据集文件元数据管理。'."\n"
+ ."\n"
+ .' '."\n"
+ ."\n"
+ .'- ADVANCED:高级型。仅OSS类型支持,每个版本支持最多100万个文件元数据管理。',
+ 'type' => 'string',
+ 'example' => 'BASIC',
+ ],
+ 'IsShared' => [
+ 'description' => '是否为共享数据集。',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'false' => 'false',
+ 'true' => 'true',
+ ],
+ 'example' => 'false',
+ ],
+ 'SharedFrom' => [
+ 'description' => '描述该分享数据集的来源关系。仅IsShared为true时有效。',
+ '$ref' => '#/components/schemas/DatasetShareRelationship',
+ ],
+ 'SharingConfig' => [
+ 'description' => '当前数据集的分享配置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'SharedTo' => [
+ 'description' => '多条分享配置关系。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '该数据集被分享的分享配置关系。',
+ '$ref' => '#/components/schemas/DatasetShareRelationship',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"DatasetId\\": \\"d-rbvg5wz****c9ks92\\",\\n \\"Name\\": \\"myName\\",\\n \\"Description\\": \\"用于标注的数据。\\",\\n \\"GmtCreateTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"UserId\\": \\"2485765****023475\\",\\n \\"OwnerId\\": \\"1631044****3440\\",\\n \\"Property\\": \\"DIRECTORY\\",\\n \\"DataSourceType\\": \\"NAS\\",\\n \\"Uri\\": \\"nas://09f****f2.cn-hangzhou/\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"DataType\\": \\"COMMON\\",\\n \\"SourceType\\": \\"USER\\",\\n \\"SourceId\\": \\"jdnhf***fnrimv\\",\\n \\"WorkspaceId\\": \\"478**\\",\\n \\"Options\\": \\"{\\\\n \\\\\\"mountPath\\\\\\": \\\\\\"/mnt/data/\\\\\\"\\\\n}\\",\\n \\"Accessibility\\": \\"PRIVATE\\",\\n \\"ProviderType\\": \\"Ecs\\",\\n \\"Provider\\": \\"pai\\",\\n \\"SourceDatasetId\\": \\"d-rcdg3wxxxxxhc5jk87\\\\n\\",\\n \\"SourceDatasetVersion\\": \\"v2\\",\\n \\"TagTemplateType\\": \\"TextClassification\\",\\n \\"LatestVersion\\": {\\n \\"VersionName\\": \\"v1\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"Property\\": \\"FILE\\",\\n \\"DataSourceType\\": \\"OSS\\",\\n \\"Uri\\": \\"OSS://xxx\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"Options\\": \\"\\",\\n \\"SourceType\\": \\"\\",\\n \\"Description\\": \\"\\",\\n \\"SourceId\\": \\"\\",\\n \\"DataCount\\": 0,\\n \\"DataSize\\": 0,\\n \\"MountAccess\\": \\"RO RW\\",\\n \\"ImportInfo\\": \\"\\"\\n },\\n \\"MountAccess\\": \\"RW\\",\\n \\"MountAccessReadWriteRoleIdList\\": [\\n \\"PAI.AlgoOperator\\"\\n ],\\n \\"ImportInfo\\": \\"{\\\\n \\\\\\"region\\\\\\": \\\\\\"cn-wulanchabu\\\\\\",\\\\n \\\\\\"fileSystemId\\\\\\": \\\\\\"bmcpfs-xxxxxxxxxxx\\\\\\",\\\\n \\\\\\"path\\\\\\": \\\\\\"/mnt\\\\\\",\\\\n \\\\\\"mountTarget\\\\\\": \\\\\\"cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com\\\\\\",\\\\n \\\\\\"isVpcMount\\\\\\": true\\\\n}\\",\\n \\"Edition\\": \\"BASIC\\",\\n \\"IsShared\\": false,\\n \\"SharedFrom\\": {\\n \\"Status\\": \\"\\",\\n \\"SourceTenantId\\": \\"\\",\\n \\"SourceWorkspaceId\\": \\"\\",\\n \\"TenantId\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\",\\n \\"IsSecureMode\\": true,\\n \\"SharedAt\\": \\"\\",\\n \\"ExpiresAt\\": \\"\\",\\n \\"AllowedMountAccessLevels\\": [\\n \\"\\"\\n ],\\n \\"Extra\\": \\"\\"\\n },\\n \\"SharingConfig\\": {\\n \\"SharedTo\\": [\\n {\\n \\"Status\\": \\"\\",\\n \\"SourceTenantId\\": \\"\\",\\n \\"SourceWorkspaceId\\": \\"\\",\\n \\"TenantId\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\",\\n \\"IsSecureMode\\": true,\\n \\"SharedAt\\": \\"\\",\\n \\"ExpiresAt\\": \\"\\",\\n \\"AllowedMountAccessLevels\\": [\\n \\"\\"\\n ],\\n \\"Extra\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '获取数据集',
+ ],
+ 'UpdateDataset' => [
+ 'summary' => '更新数据集,支持更新名称,描述等。',
+ 'path' => '/api/v1/datasets/{DatasetId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '48566',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5wz****c9ks92',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '数据集名称。如何获取数据集名称,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'myName',
+ ],
+ 'Description' => [
+ 'description' => '描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is a description of the dataset.',
+ ],
+ 'Options' => [
+ 'description' => '扩展字段,JsonString类型。'."\n"
+ .'当DLC使用数据集时,可通过配置mountPath字段指定数据集默认挂载路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "mountPath": "/mnt/data/"'."\n"
+ .'}',
+ ],
+ 'Edition' => [
+ 'description' => '数据集类型。支持从BASIC(基础型)升级为ADVANCED(高级型)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [],
+ 'example' => 'ADVANCED',
+ ],
+ 'MountAccessReadWriteRoleIdList' => [
+ 'description' => '指定该数据集被挂载时具有读写权限的工作空间角色名列表,PAI开头的为基础角色ID,role-开头的为自定义角色ID。如果列表中包含了"*",则表示对所有角色都有读写权限。'."\n"
+ .'- 指定角色下的账号: ["PAI.AlgoOperator", "role-hiuwpd01ncrokkgp21"]'."\n"
+ .'- 全部账号:["*"]'."\n"
+ .'- 指定为数据集创建者: []',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '工作空间角色ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PAI.AlgoOperator'."\n",
+ ],
+ 'required' => false,
+ ],
+ 'SharingConfig' => [
+ 'description' => '当前数据集的分享配置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'SharedTo' => [
+ 'description' => '该数据集被分享的分享配置关系。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '分享配置关系。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/DatasetShareRelationship',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '更新数据集',
+ ],
+ 'PublishDataset' => [
+ 'summary' => '将私有数据集在工作空间内公开。',
+ 'path' => '/api/v1/datasets/{DatasetId}/publish',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '48571',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5w****c9ks92',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'A0F049F0-8D69-5BAC-8F10-B******A34C',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A0F049F0-8D69-5BAC-8F10-B******A34C\\"\\n}","type":"json"}]',
+ 'title' => '发布数据集',
+ ],
+ 'ListDatasets' => [
+ 'summary' => '获取某个工作空间下的数据集列表。',
+ 'path' => '/api/v1/datasets',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '48568',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集列表的页码。起始值为1,默认为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时设置的每页行数。默认为10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序。默认值为ASC。'."\n"
+ .'- ASC:升序。'."\n"
+ .'- DESC:降序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'ASC' => 'ASC',
+ 'DESC' => 'DESC',
+ ],
+ 'example' => 'ASC',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集名称,支持根据数据集名称模糊搜索。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'myName',
+ ],
+ ],
+ [
+ 'name' => 'Properties',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集属性,多项之间使用半角逗号(,)分隔。支持以下取值:'."\n"
+ .'- DIRECTORY:文件夹。'."\n"
+ .'- FILE:文件。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'DIRECTORY' => 'DIRECTORY',
+ 'FILE' => 'FILE',
+ ],
+ 'example' => 'FILE',
+ ],
+ ],
+ [
+ 'name' => 'DataSourceTypes',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据源类型,多项之间使用半角逗号分隔。支持以下取值:'."\n"
+ .'- NAS:数据存储为阿里云文件存储(NAS)。'."\n"
+ .'- OSS:数据存储为阿里云对象存储(OSS)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'NAS' => 'NAS',
+ 'OSS' => 'OSS',
+ ],
+ 'example' => 'OSS',
+ ],
+ ],
+ [
+ 'name' => 'DataTypes',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集的数据类型,多项之间使用半角逗号(,)分隔。支持以下取值:'."\n"
+ .'- VIDEO:视频。'."\n"
+ .'- COMMON:通用。'."\n"
+ .'- TEXT:文本。'."\n"
+ .'- PIC:图片。'."\n"
+ .'- AUDIO:音频。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'VIDEO' => 'VIDEO',
+ 'COMMON' => 'COMMON',
+ 'TEXT' => 'TEXT',
+ 'PIC' => 'PIC',
+ 'AUDIO' => 'AUDIO',
+ ],
+ 'example' => 'COMMON,TEXT',
+ ],
+ ],
+ [
+ 'name' => 'SourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据来源ID。'."\n"
+ .'- 当SourceTypes为USER时,SourceId支持自定义。'."\n"
+ .'- 当SourceTypes为ITAG时,即iTAG模块标注结果生成的数据集时,SourceId为ITAG的任务ID。'."\n"
+ .'- 当SourceTypes为PAI_PUBLIC_DATASET时,即使用PAI公共数据集创建的数据集时,SourceId默认为空。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd-rbvg5wzljzjhc9ks92',
+ ],
+ ],
+ [
+ 'name' => 'SourceTypes',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '来源类型,多项之间使用半角逗号分隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PAI_PUBLIC_DATASET' => 'PAI_PUBLIC_DATASET',
+ 'ITAG' => 'ITAG',
+ 'USER' => 'USER',
+ ],
+ 'example' => 'USER,ITAG',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'Workspace Id',
+ 'description' => '数据集所在工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。'."\n"
+ .'如果不配置该参数,则会使用默认工作空间;如果默认工作空间不存在,则会报错。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '324**',
+ ],
+ ],
+ [
+ 'name' => 'Label',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集标签,用于过滤数据集列表。标签Key或Value中,有指定字符串的,都会被过滤出来。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'Provider',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集提供方。返回值为"pai"时表示该数据集为PAI平台的公共数据集。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'pai',
+ ],
+ ],
+ [
+ 'name' => 'SourceDatasetId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'iTag标注集的源数据集。',
+ 'description' => 'iTag标注集的来源数据集ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd-rcdg3wxxxxxhc5jk87'."\n",
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序字段',
+ 'description' => '排序字段',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'DataSourceType' => 'DataSourceType',
+ 'DataType' => 'DataType',
+ 'GmtCreateTime' => 'GmtCreateTime',
+ 'GmtModifiedTime' => 'GmtModifiedTime',
+ ],
+ 'example' => 'GmtCreateTime',
+ ],
+ ],
+ [
+ 'name' => 'ShareScope',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分享数据集过滤器:'."\n"
+ .'* TO_ME: 仅过滤分享给我的数据集。'."\n"
+ .'* BY_ME: 仅过滤我分享给他人的数据集,展示分享配置详情。'."\n"
+ .'* 不设置该参数或设置为空:获取当前工作空间的所有的数据集,包括TO_ME。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'TO_ME' => 'TO_ME',
+ 'BY_ME' => 'BY_ME',
+ ],
+ 'example' => 'BY_ME',
+ ],
+ ],
+ [
+ 'name' => 'Edition',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集类型。枚举值:'."\n"
+ ."\n"
+ .'- BASIC:基础型。不支持数据集文件元数据管理。'."\n"
+ .'- ADVANCED:高级型。仅OSS类型支持,每个版本支持最多100万个文件元数据管理。'."\n"
+ .'- LOGICAL: 逻辑型。仅OSS类型支持,每个版本支持最多100万个文件元数据管理。适用于绝大部分场景,需配合SDK使用。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'LOGICAL' => 'LOGICAL',
+ 'BASIC' => 'BASIC',
+ 'ADVANCED' => 'ADVANCED',
+ ],
+ 'example' => 'BASIC',
+ ],
+ ],
+ [
+ 'name' => 'Accessibility',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集的可见性。'."\n"
+ ."\n"
+ .'- PUBLIC表示公开。'."\n"
+ .'- PRIVATE表示私有。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PRIVATE',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'Datasets' => [
+ 'description' => '数据集列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据集。',
+ '$ref' => '#/components/schemas/Dataset',
+ ],
+ ],
+ 'TotalCount' => [
+ 'description' => '总数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '15',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"Datasets\\": [\\n {\\n \\"DatasetId\\": \\"d-c0h44g3wlwkj8o4348\\",\\n \\"UserId\\": \\"2004110000006048\\",\\n \\"OwnerId\\": \\"1004110000006048\\",\\n \\"Name\\": \\"AnimalDataset\\",\\n \\"DataSourceType\\": \\"OSS URL\\",\\n \\"Uri\\": \\"oss://xxx\\",\\n \\"GmtCreateTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"DataType\\": \\"COMMON PIC TEXT VIDEO AUDIO\\",\\n \\"Property\\": \\"FILE DIRECTORY TABULAR\\",\\n \\"SourceType\\": \\"USER ITAG PAI_PUBLIC_DATASET\\",\\n \\"SourceId\\": \\"Source Id\\",\\n \\"Description\\": \\"Animal images.\\",\\n \\"WorkspaceId\\": \\"Workspace Id\\",\\n \\"Options\\": \\"jsonstring\\",\\n \\"Accessibility\\": \\"PRIVATE PUBLIC\\",\\n \\"ProviderType\\": \\"Ecs\\",\\n \\"SourceDatasetId\\": \\"d-bvfasdf4wxxj8o411\\",\\n \\"SourceDatasetVersion\\": \\"v2\\",\\n \\"TagTemplateType\\": \\"text-classification\\",\\n \\"LatestVersion\\": {\\n \\"VersionName\\": \\"v1\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"Property\\": \\"FILE\\",\\n \\"DataSourceType\\": \\"OSS\\",\\n \\"Uri\\": \\"OSS://xxx\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"Options\\": \\"\\",\\n \\"SourceType\\": \\"\\",\\n \\"Description\\": \\"\\",\\n \\"SourceId\\": \\"\\",\\n \\"DataCount\\": 0,\\n \\"DataSize\\": 0,\\n \\"MountAccess\\": \\"RO RW\\",\\n \\"ImportInfo\\": \\"\\"\\n },\\n \\"MountAccess\\": \\"RO RW\\",\\n \\"ImportInfo\\": \\"\\",\\n \\"Edition\\": \\"BASIC\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"MountAccessReadWriteRoleIdList\\": [\\n \\"PAI.AlgoOperator\\"\\n ],\\n \\"IsShared\\": true,\\n \\"SharedFrom\\": {\\n \\"Status\\": \\"\\",\\n \\"SourceTenantId\\": \\"\\",\\n \\"SourceWorkspaceId\\": \\"\\",\\n \\"TenantId\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\",\\n \\"IsSecureMode\\": true,\\n \\"SharedAt\\": \\"\\",\\n \\"ExpiresAt\\": \\"\\",\\n \\"AllowedMountAccessLevels\\": [\\n \\"\\"\\n ],\\n \\"Extra\\": \\"\\"\\n },\\n \\"SharingConfig\\": {\\n \\"SharedTo\\": [\\n {\\n \\"Status\\": \\"\\",\\n \\"SourceTenantId\\": \\"\\",\\n \\"SourceWorkspaceId\\": \\"\\",\\n \\"TenantId\\": \\"\\",\\n \\"WorkspaceId\\": \\"\\",\\n \\"IsSecureMode\\": true,\\n \\"SharedAt\\": \\"\\",\\n \\"ExpiresAt\\": \\"\\",\\n \\"AllowedMountAccessLevels\\": [\\n \\"\\"\\n ],\\n \\"Extra\\": \\"\\"\\n }\\n ]\\n }\\n }\\n ],\\n \\"TotalCount\\": 15\\n}","type":"json"}]',
+ 'title' => '获取数据集列表',
+ ],
+ 'DeleteDataset' => [
+ 'summary' => '删除数据集。',
+ 'path' => '/api/v1/datasets/{DatasetId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '48570',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5wzlj****9ks92',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'A0F049F0-8D69-5BAC-8F10-B******A34C',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A0F049F0-8D69-5BAC-8F10-B******A34C\\"\\n}","type":"json"}]',
+ 'title' => '删除数据集',
+ ],
+ 'CreateDatasetLabels' => [
+ 'summary' => '为数据集打标签。',
+ 'path' => '/api/v1/datasets/{DatasetId}/labels',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '48572',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => 'Dataset Id',
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd-lfd60v0p****ujtsdx',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Labels' => [
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '为数据集添加的标签。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'A083731B-4973-54D1-B324-E53****4DD44',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A083731B-4973-54D1-B324-E53****4DD44\\"\\n}","type":"json"}]',
+ 'title' => '创建数据集标签',
+ 'description' => '调用此接口时,需要注意:'."\n"
+ ."\n"
+ .'- 标签键和值是非空字符串,且长度不能大于128。'."\n"
+ .'- 标签键不能以 aliyun、acs、http://、https:// 开头。'."\n",
+ ],
+ 'DeleteDatasetLabels' => [
+ 'summary' => '删除数据集标签。',
+ 'path' => '/api/v1/datasets/{DatasetId}/labels',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '48573',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => 'DatasetId',
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd-rbvg5****jhc9ks92',
+ ],
+ ],
+ [
+ 'name' => 'LabelKeys',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '标签的键值。如何查询标签的键值,详情请参见[GetDataset](~~457218~~)。多项标签使用半角逗号(,)分隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1,key2',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '64B50C1D-D4C2-560C-86A3-A6ED****16D',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"64B50C1D-D4C2-560C-86A3-A6ED****16D\\"\\n}","type":"json"}]',
+ 'title' => '删除数据集标签',
+ ],
+ 'CreateDatasetVersion' => [
+ 'summary' => '创建数据集版本。',
+ 'path' => '/api/v1/datasets/{DatasetId}/versions',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '232558',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5*****jhc9ks92',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Property' => [
+ 'description' => '数据集的属性。支持以下取值:'."\n"
+ .'- FILE:文件。'."\n"
+ .'- DIRECTORY:文件夹。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'DIRECTORY' => 'DIRECTORY',
+ 'FILE' => 'FILE',
+ ],
+ 'example' => 'DIRECTORY',
+ ],
+ 'DataSourceType' => [
+ 'description' => '数据源类型,多项之间使用半角逗号分隔。支持以下取值:'."\n"
+ ."\n"
+ .'- NAS:数据存储为阿里云文件存储(NAS)。'."\n"
+ ."\n"
+ .'- OSS:数据存储为阿里云对象存储(OSS)。'."\n"
+ ."\n"
+ .'- CPFS'."\n"
+ ."\n"
+ .'注意:当前的策略是版本的DataSourceType 需要与数据集DataSourceType 保持一致,创建版本的时候会和数据集的做校验。',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'NAS' => 'NAS',
+ 'OSS' => 'OSS',
+ ],
+ 'example' => 'OSS',
+ ],
+ 'Uri' => [
+ 'description' => 'Uri配置样例如下:'."\n"
+ .'- 数据源类型为OSS:`oss://bucket.endpoint/object`'."\n"
+ .'- 数据源类型为NAS:'."\n"
+ .'通用型NAS格式为:`nas://<nasfisid>.region/subpath/to/dir/`;'."\n"
+ .'CPFS1.0:`nas://<cpfs-fsid>.region/subpath/to/dir/`;'."\n"
+ .'CPFS2.0:`nas://<cpfs-fsid>.region/<protocolserviceid>/`。'."\n"
+ .'CPFS1.0和CPFS2.0根据fsid的格式来区分:CPFS1.0 格式为cpfs-<8位ASCII字符>;CPFS2.0 格式为cpfs-<16位ASCII字符>。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'oss://mybucket.oss-cn-beijing.aliyuncs.com/mypath/',
+ ],
+ 'Labels' => [
+ 'description' => '数据集版本标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => false,
+ ],
+ 'SourceType' => [
+ 'description' => '数据来源类型,默认为USER。支持以下取值:'."\n"
+ .'- PAI-PUBLIC-DATASET:PAI公共数据集。'."\n"
+ .'- ITAG:iTAG模块标注结果生成的数据集。'."\n"
+ .'- USER:用户注册的数据集。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PAI_PUBLIC_DATASET' => 'PAI_PUBLIC_DATASET',
+ 'ITAG' => 'ITAG',
+ 'USER' => 'USER',
+ ],
+ 'example' => 'USER',
+ ],
+ 'SourceId' => [
+ 'description' => '数据来源ID。'."\n"
+ .'- 当SourceType为USER时,SourceId支持自定义。'."\n"
+ .'- 当SourceType为ITAG时,即iTAG模块标注结果生成的数据集时,SourceId为ITAG的任务ID。'."\n"
+ .'- 当SourceType为PAI_PUBLIC_DATASET时,即使用PAI公共数据集创建的数据集时,SourceId默认为空。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd-a0xbe5n03bhqof46ce',
+ ],
+ 'Options' => [
+ 'description' => '扩展字段,JsonString类型。'."\n"
+ .'当DLC使用数据集时,可通过配置mountPath字段指定数据集默认挂载路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "mountPath": "/mnt/data/"'."\n"
+ .'}',
+ ],
+ 'Description' => [
+ 'description' => '对数据集版本进行自定义描述,以区分不同的数据集版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is a description of the dataset version.',
+ ],
+ 'DataSize' => [
+ 'description' => '数据集文件占据空间的大小。单位Byte 。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '19000',
+ ],
+ 'DataCount' => [
+ 'description' => '数据集文件数量,单位个。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '300',
+ ],
+ 'ImportInfo' => [
+ 'description' => '数据集的存储导入配置信息,支持OSS/NAS/CPFS等。'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>OSS</summary>'."\n"
+ .'{<BR>'."\n"
+ .' "region": "${region}",//地域ID<BR>'."\n"
+ .' "bucket": "${bucket}",//bucket名称<BR>'."\n"
+ .' "path": "${path}" //文件路径<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>NAS</summary>'."\n"
+ .'{<BR>'."\n"
+ .' "region": "${region}",//地域ID<BR>'."\n"
+ .' "fileSystemId": "${file_system_id}", //文件系统ID<BR>'."\n"
+ .' "path": "${path}", //文件系统路径<BR>'."\n"
+ .' "mountTarget": "${mount_target}" //文件系统挂载点<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>'."\n"
+ ."\n\n"
+ .'<details>'."\n"
+ .'<summary>CPFS</summary>'."\n"
+ .'{<BR>'."\n"
+ .' "region": "${region}",//地域ID<BR>'."\n"
+ .' "fileSystemId": "${file_system_id}", //文件系统ID<BR>'."\n"
+ .' "protocolServiceId":"${protocol_service_id}", //文件系统协议服务<BR>'."\n"
+ .' "exportId": "${export_id}", //文件系统导出目录<BR>'."\n"
+ .' "path": "${path}", //文件系统路径<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>智算CPFS</summary>'."\n"
+ .'{<BR>'."\n"
+ .' "region": "${region}",//地域ID<BR>'."\n"
+ .' "fileSystemId": "${file_system_id}", //文件系统ID<BR>'."\n"
+ .' "path": "${path}", //文件系统路径<BR>'."\n"
+ .' "mountTarget": "${mount_target}" //文件系统挂载点,智算版特有<BR>'."\n"
+ .' "isVpcMount": boolean, //是否为vpc挂载点, 智算版特有<BR>'."\n"
+ .'}<BR>'."\n"
+ .'</details>',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "region": "cn-wulanchabu",'."\n"
+ .' "fileSystemId": "bmcpfs-xxxxxxxxxxx",'."\n"
+ .' "path": "/mnt",'."\n"
+ .' "mountTarget": "cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com",'."\n"
+ .' "isVpcMount": true'."\n"
+ .'}',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => '41A847C8-3D12-5F24-8CE9-7F9EB2DA9ECD',
+ ],
+ 'VersionName' => [
+ 'description' => '数据集版本名称。',
+ 'type' => 'string',
+ 'example' => 'v1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"41A847C8-3D12-5F24-8CE9-7F9EB2DA9ECD\\",\\n \\"VersionName\\": \\"v1\\"\\n}","type":"json"}]',
+ 'title' => '创建数据集版本',
+ ],
+ 'GetDatasetVersion' => [
+ 'summary' => '获取指定版本的数据集信息。',
+ 'path' => '/api/v1/datasets/{DatasetId}/versions/{VersionName}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '232570',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-lfd60v0p****ujtsdx',
+ ],
+ ],
+ [
+ 'name' => 'VersionName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '软件版本名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'v1',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => 'C55DF3DA-F120-5E37-A374-F49365531701',
+ ],
+ 'DatasetId' => [
+ 'title' => '资源一级ID',
+ 'description' => '资源一级ID',
+ 'type' => 'string',
+ 'deprecated' => false,
+ 'example' => 'd-dkdbnnap0g7b6su4yg',
+ 'pattern' => '',
+ 'default' => '',
+ ],
+ 'VersionName' => [
+ 'title' => '数据集版本',
+ 'description' => '数据集版本',
+ 'type' => 'string',
+ 'deprecated' => false,
+ 'example' => 'v1',
+ 'pattern' => '',
+ 'default' => '',
+ ],
+ 'Property' => [
+ 'title' => '数据集的属性。',
+ 'description' => '数据集的属性。',
+ 'type' => 'string',
+ 'deprecated' => false,
+ 'required' => true,
+ 'example' => 'DIRECTORY',
+ 'pattern' => '',
+ 'default' => '',
+ 'enum' => [
+ 'FILE',
+ 'DIRECTORY',
+ ],
+ ],
+ 'GmtCreateTime' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2023-12-13T10:22:05.694Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '创建时间。',
+ 'description' => '最后修改时间。',
+ 'type' => 'string',
+ 'deprecated' => false,
+ 'example' => '2023-12-13T10:22:05.694Z',
+ 'pattern' => '',
+ 'default' => '',
+ ],
+ 'DataSourceType' => [
+ 'title' => '数据源类型。',
+ 'description' => '数据源类型。',
+ 'type' => 'string',
+ 'deprecated' => false,
+ 'required' => true,
+ 'example' => 'OSS',
+ 'pattern' => '',
+ 'default' => '',
+ 'enum' => [
+ 'OSS',
+ 'NAS',
+ 'CPFS',
+ ],
+ ],
+ 'Uri' => [
+ 'title' => 'Uri配置样例',
+ 'description' => 'Uri配置样例',
+ 'type' => 'string',
+ 'deprecated' => false,
+ 'required' => true,
+ 'example' => 'oss://ai4d-br7hx9ngzelo2o6uip.oss-cn-shanghai.aliyuncs.com/365349/data-1157703270994901/datasets/aka108o/',
+ 'pattern' => '',
+ 'default' => '',
+ ],
+ 'Labels' => [
+ 'title' => '资源标签',
+ 'description' => '资源标签',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'deprecated' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'deprecated' => false,
+ 'maxItems' => 20,
+ ],
+ 'Options' => [
+ 'title' => '扩展字段。',
+ 'description' => '扩展字段。',
+ 'type' => 'string',
+ 'deprecated' => false,
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "mountPath": "/mnt/data/"'."\n"
+ .'}',
+ 'pattern' => '',
+ 'default' => '',
+ ],
+ 'SourceType' => [
+ 'title' => '数据来源类型',
+ 'description' => '数据来源类型',
+ 'type' => 'string',
+ 'deprecated' => false,
+ 'enumValueTitles' => [
+ 'PAI_PUBLIC_DATASET' => 'PAI_PUBLIC_DATASET',
+ 'ITAG' => 'ITAG',
+ 'USER' => 'USER',
+ ],
+ 'example' => 'USER',
+ 'pattern' => '',
+ 'default' => '',
+ 'enum' => [
+ 'USER',
+ 'ITAG',
+ 'PAI_PUBLIC_DATASET',
+ 'CLEANING',
+ 'ENHANCE',
+ 'ADDVERSION',
+ ],
+ ],
+ 'Description' => [
+ 'title' => '版本描述',
+ 'description' => '版本描述',
+ 'type' => 'string',
+ 'deprecated' => false,
+ 'required' => false,
+ 'example' => 'This is a description of the dataset version.',
+ 'pattern' => '',
+ 'default' => '',
+ ],
+ 'SourceId' => [
+ 'title' => '数据集来源ID。',
+ 'description' => '数据集来源ID。',
+ 'type' => 'string',
+ 'deprecated' => false,
+ 'required' => false,
+ 'example' => 'd-rbvg5wzljzjhc9ks92',
+ 'default' => '',
+ ],
+ 'DataCount' => [
+ 'title' => '数据量',
+ 'description' => '数据量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'deprecated' => false,
+ 'required' => false,
+ 'example' => '10000',
+ 'pattern' => '',
+ 'default' => '',
+ ],
+ 'DataSize' => [
+ 'title' => '数据集大小。',
+ 'description' => '数据集大小。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'deprecated' => false,
+ 'required' => false,
+ 'example' => '10000',
+ 'pattern' => '',
+ 'default' => '',
+ ],
+ 'MountAccess' => [
+ 'description' => '该数据集被挂载时的权限。'."\n"
+ .'- RO:只读挂载'."\n"
+ .'- RW:读写挂载',
+ 'type' => 'string',
+ 'example' => 'RO',
+ ],
+ 'ImportInfo' => [
+ 'description' => '数据集的存储导入配置信息,支持OSS/NAS/CPFS等。'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>OSS</summary>'."\n"
+ .'{'."\n"
+ .'"region": "${region}",//地域ID'."\n"
+ .'"bucket": "${bucket}",//bucket名称'."\n"
+ .'"path": "${path}" //文件路径'."\n"
+ .'}'."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>NAS</summary>'."\n"
+ ."\n"
+ .'</details>'."\n"
+ ."\n"
+ .'<details>'."\n"
+ .'<summary>CPFS</summary>'."\n"
+ .'区块内容'."\n"
+ .'</details>'."\n"
+ ."\n\n"
+ .'<details>'."\n"
+ .'<summary>智算CPFS</summary>'."\n"
+ .'区块内容'."\n"
+ .'</details>',
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "region": "cn-wulanchabu",'."\n"
+ .' "fileSystemId": "bmcpfs-xxxxxxxxxxx",'."\n"
+ .' "path": "/mnt",'."\n"
+ .' "mountTarget": "cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com",'."\n"
+ .' "isVpcMount": true'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C55DF3DA-F120-5E37-A374-F49365531701\\",\\n \\"DatasetId\\": \\"d-dkdbnnap0g7b6su4yg\\",\\n \\"VersionName\\": \\"v1\\",\\n \\"Property\\": \\"DIRECTORY\\",\\n \\"GmtCreateTime\\": \\"2023-12-13T10:22:05.694Z\\",\\n \\"GmtModifiedTime\\": \\"2023-12-13T10:22:05.694Z\\",\\n \\"DataSourceType\\": \\"OSS\\",\\n \\"Uri\\": \\"oss://ai4d-br7hx9ngzelo2o6uip.oss-cn-shanghai.aliyuncs.com/365349/data-1157703270994901/datasets/aka108o/\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"Options\\": \\"{\\\\n \\\\\\"mountPath\\\\\\": \\\\\\"/mnt/data/\\\\\\"\\\\n}\\",\\n \\"SourceType\\": \\"USER\\",\\n \\"Description\\": \\"This is a description of the dataset version.\\",\\n \\"SourceId\\": \\"d-rbvg5wzljzjhc9ks92\\",\\n \\"DataCount\\": 10000,\\n \\"DataSize\\": 10000,\\n \\"MountAccess\\": \\"RO\\",\\n \\"ImportInfo\\": \\"{\\\\n \\\\\\"region\\\\\\": \\\\\\"cn-wulanchabu\\\\\\",\\\\n \\\\\\"fileSystemId\\\\\\": \\\\\\"bmcpfs-xxxxxxxxxxx\\\\\\",\\\\n \\\\\\"path\\\\\\": \\\\\\"/mnt\\\\\\",\\\\n \\\\\\"mountTarget\\\\\\": \\\\\\"cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com\\\\\\",\\\\n \\\\\\"isVpcMount\\\\\\": true\\\\n}\\"\\n}","type":"json"}]',
+ 'title' => '获取数据集版本',
+ ],
+ 'ListDatasetVersions' => [
+ 'summary' => '获取数据集版本列表。',
+ 'path' => '/api/v1/datasets/{DatasetId}/versions',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '232574',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5wz****c9ks92',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集列表的页码。起始值为1,默认为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时设置的每页行数。默认为10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序。默认值为ASC。'."\n"
+ .'- ASC:升序。'."\n"
+ .'- DESC:降序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'ASC' => 'ASC',
+ 'DESC' => 'DESC',
+ ],
+ 'example' => 'ASC',
+ ],
+ ],
+ [
+ 'name' => 'LabelKeys',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集标签,用于过滤数据集列表。标签Key或Value中,有指定字符串的,都会被过滤出来。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1,key2',
+ ],
+ ],
+ [
+ 'name' => 'LabelValues',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集标签,用于过滤数据集列表。标签Key或Value中,有指定字符串的,都会被过滤出来。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'value1,value2',
+ ],
+ ],
+ [
+ 'name' => 'Properties',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据集属性,支持以下取值:'."\n"
+ .'- DIRECTORY:文件夹。'."\n"
+ .'- FILE:文件。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'DIRECTORY' => 'DIRECTORY',
+ 'FILE' => 'FILE',
+ ],
+ 'example' => 'DIRECTORY',
+ ],
+ ],
+ [
+ 'name' => 'SourceTypes',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '来源类型,支持以下取值:'."\n"
+ .'- PAI-PUBLIC-DATASET:PAI公共数据集。'."\n"
+ .'- ITAG:iTAG模块标注结果生成的数据集。'."\n"
+ .'- USER:用户注册的数据集。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PAI_PUBLIC_DATASET' => 'PAI_PUBLIC_DATASET',
+ 'ITAG' => 'ITAG',
+ 'USER' => 'USER',
+ ],
+ 'example' => 'USER',
+ ],
+ ],
+ [
+ 'name' => 'SourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据来源ID。'."\n"
+ .'- 当SourceTypes为USER时,SourceId支持自定义。'."\n"
+ .'- 当SourceTypes为ITAG时,即iTAG模块标注结果生成的数据集时,SourceId为ITAG的任务ID。'."\n"
+ .'- 当SourceTypes为PAI_PUBLIC_DATASET时,即使用PAI公共数据集创建的数据集时,SourceId默认为空。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd-a0xbe5n03bhqof46ce',
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时的排序字段,默认使用GmtCreateTime。取值如下。'."\n"
+ .'- GmtCreateTime(默认值):按创建时间。'."\n"
+ ."\n"
+ .'- GmtModifiedTime:按修改时间。'."\n"
+ ."\n"
+ .'- SourceType'."\n"
+ ."\n"
+ .'- DataSourceType'."\n"
+ ."\n"
+ .'- Property'."\n"
+ ."\n"
+ .'- DataSize'."\n"
+ ."\n"
+ .'- DataCount',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'SourceType' => 'SourceType',
+ 'DataSourceType' => 'DataSourceType',
+ 'DataSize' => 'DataSize',
+ 'DataCount' => 'DataCount',
+ 'Property' => 'Property',
+ 'GmtCreateTime' => 'GmtCreateTime',
+ 'GmtModifiedTime' => 'GmtModifiedTime',
+ 'DatasetId' => 'DatasetId',
+ ],
+ 'example' => 'GmtCreateTime',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => '0648C5BB-68D0-54D2-92A5-607135B8806B',
+ ],
+ 'PageNumber' => [
+ 'description' => '当前页码。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => '当前页大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TotalCount' => [
+ 'description' => '符合过滤条件的资源数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '5',
+ ],
+ 'DatasetVersions' => [
+ 'description' => '数据集版本列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据集版本',
+ '$ref' => '#/components/schemas/DatasetVersion',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0648C5BB-68D0-54D2-92A5-607135B8806B\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 5,\\n \\"DatasetVersions\\": [\\n {\\n \\"VersionName\\": \\"v1\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"Property\\": \\"FILE\\",\\n \\"DataSourceType\\": \\"OSS\\",\\n \\"Uri\\": \\"OSS://xxx\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"Options\\": \\"\\",\\n \\"SourceType\\": \\"\\",\\n \\"Description\\": \\"\\",\\n \\"SourceId\\": \\"\\",\\n \\"DataCount\\": 0,\\n \\"DataSize\\": 0,\\n \\"MountAccess\\": \\"RO RW\\",\\n \\"ImportInfo\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '获取数据集版本列表',
+ ],
+ 'UpdateDatasetVersion' => [
+ 'summary' => '更新指定版本的数据集信息。',
+ 'path' => '/api/v1/datasets/{DatasetId}/versions/{VersionName}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '232571',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5****jhc9ks92',
+ ],
+ ],
+ [
+ 'name' => 'VersionName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集版本名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'v1',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Options' => [
+ 'description' => '扩展字段,JsonString类型。'."\n"
+ .'当DLC使用数据集时,可通过配置mountPath字段指定数据集默认挂载路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "mountPath": "/mnt/data/"'."\n"
+ .'}',
+ ],
+ 'Description' => [
+ 'description' => '对数据集进行自定义描述,以区分不同的数据集。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'This is a description of a dataset version.',
+ ],
+ 'DataSize' => [
+ 'description' => '数据集文件占据空间的大小。单位Byte 。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '100000',
+ ],
+ 'DataCount' => [
+ 'description' => '数据集文件数量,单位个。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '100',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => '8D7B2E70-F770-505B-A672-09F1D8F2EC1E',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8D7B2E70-F770-505B-A672-09F1D8F2EC1E\\"\\n}","type":"json"}]',
+ 'title' => '更新数据集版本',
+ ],
+ 'DeleteDatasetVersion' => [
+ 'summary' => '删除指定版本的数据集信息。其中版本v1无法使用本接口删除,需要使用DeleteDataset接口删除数据集的时候同步删除。',
+ 'path' => '/api/v1/datasets/{DatasetId}/versions/{VersionName}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '232579',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-lfd60v0p****ujtsdx',
+ ],
+ ],
+ [
+ 'name' => 'VersionName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集版本。版本号需要大于v1,v1版本会在删除数据集的时候同步删除。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'v2',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => '8D7B2E70-F770-505B-A672-09F1D8F2EC1E',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8D7B2E70-F770-505B-A672-09F1D8F2EC1E\\"\\n}","type":"json"}]',
+ 'title' => '删除数据集版本',
+ ],
+ 'DeleteDatasetVersionLabels' => [
+ 'summary' => '删除数据集版本的标签。',
+ 'path' => '/api/v1/datasets/{DatasetId}/versions/{VersionName}/labels',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '232577',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集版本ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5*****jhc9ks92',
+ ],
+ ],
+ [
+ 'name' => 'VersionName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集版本名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'v1',
+ ],
+ ],
+ [
+ 'name' => 'Keys',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '版本标签key, 多个标签key用英文逗号分隔。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'key1,key2',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => 'B2E89D7E-74F8-5656-A5D6-81D83403F9A8',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B2E89D7E-74F8-5656-A5D6-81D83403F9A8\\"\\n}","type":"json"}]',
+ 'title' => '删除数据集版本标签',
+ ],
+ 'CreateDatasetVersionLabels' => [
+ 'summary' => '创建数据集版本的标签。',
+ 'path' => '/api/v1/datasets/{DatasetId}/versions/{VersionName}/labels',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '232578',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DatasetId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集ID。如何获取数据集ID,详情请参见[ListDatasets](~~457222~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'd-rbvg5wzlj****9ks92',
+ ],
+ ],
+ [
+ 'name' => 'VersionName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '数据集版本名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'v1',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Labels' => [
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '为数据集版本添加的标签。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => true,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => '8D7B2E70-F770-505B-A672-09F1D8F2EC1E',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8D7B2E70-F770-505B-A672-09F1D8F2EC1E\\"\\n}","type":"json"}]',
+ 'title' => '创建数据集版本标签',
+ ],
+ 'CreateConnection' => [
+ 'summary' => '创建连接。用于LangStudio、数据集多模态检索服务等场景中连接PAI云端到客户的模型、数据库等服务。',
+ 'path' => '/api/v1/connections',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '267606',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnIUXWCQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。创建连接所需要的参数信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Accessibility' => [
+ 'description' => '工作空间可见度,取值如下。'."\n"
+ .'- PRIVATE(默认值):在此工作空间中,仅对您和管理员可见。'."\n"
+ .'- PUBLIC:在此工作空间中,对所有人可见。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PRIVATE',
+ 'default' => 'PRIVATE',
+ ],
+ 'Configs' => [
+ 'description' => '连接的配置信息。以key-valued的形式配置,不同的连接类型对应的Config配置的key不相同。具体参见请求参数补充说明。',
+ 'type' => 'object',
+ 'required' => true,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => '6379',
+ 'description' => '连接配置的value值。',
+ ],
+ ],
+ 'ConnectionName' => [
+ 'description' => '连接的名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'llm-connection',
+ ],
+ 'ConnectionType' => [
+ 'description' => '连接的类型,可选值:'."\n"
+ .'- DashScopeConnection:百炼服务连接。'."\n"
+ .'- OpenLLMConnection:开源模型连接。'."\n"
+ .'- MilvusConnection:Milvus连接。'."\n"
+ .'- OpenSearchConnection:OpenSearch连接。'."\n"
+ .'- LindormConnection:Lindorm连接。'."\n"
+ .'- ElasticsearchConnection:Elasticsearch连接。'."\n"
+ .'- HologresConnection:Hologres连接。'."\n"
+ .'- RDSConnection:RDS连接。'."\n"
+ .'- CustomConnection:自定义连接。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'ElasticsearchConnection' => 'ElasticsearchConnection',
+ 'MilvusConnection' => 'MilvusConnection',
+ 'OpenSearchConnection' => 'OpenSearchConnection',
+ 'HologresConnection' => 'HologresConnection',
+ 'DashScopeConnection' => 'DashScopeConnection',
+ 'LindormConnection' => 'LindormConnection',
+ 'RDSConnection' => 'RDSConnection',
+ 'OpenLLMConnection' => 'OpenLLMConnection',
+ 'CustomConnection' => 'CustomConnection',
+ ],
+ 'example' => 'DashScopeConnection',
+ ],
+ 'Description' => [
+ 'description' => '连接的描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '开源大模型服务连接。',
+ ],
+ 'Secrets' => [
+ 'description' => '需要加密的连接配置信息。比如数据库的账密信息,模型服务的key等。',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => '加密连接配置的value值。',
+ 'example' => 'Dsjk***hsl01',
+ ],
+ ],
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID,可从接口[ListWorkspaces](~~449124~~)获取。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123**45',
+ ],
+ 'ResourceMeta' => [
+ 'description' => '连接的资源信息。一般适用于数据库类型的连接配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceName' => [
+ 'description' => '实例名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '测试实例。',
+ ],
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ld-uf69****9nqjjes',
+ ],
+ 'Extra' => [
+ 'description' => '额外配置信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"vpcId":"vpc-xxxx"}',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'Models' => [
+ 'description' => '模型列表。适用于模型服务类型的连接。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '模型。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Model' => [
+ 'description' => '模型标识符。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'model_001',
+ ],
+ 'DisplayName' => [
+ 'description' => '模型的显示名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '语言模型。',
+ ],
+ 'ModelType' => [
+ 'description' => '模型类型。可选值:'."\n"
+ .'- LLM:大语言模型'."\n"
+ .'- Embedding:Embedding模型'."\n"
+ .'- ReRank:ReRank模型',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Embedding' => 'Embedding',
+ 'LLM' => 'LLM',
+ 'ReRank' => 'ReRank',
+ ],
+ 'example' => 'LLM',
+ ],
+ 'ToolCall' => [
+ 'description' => '是否支持ToolCall工具调用。可取值:'."\n"
+ .'- true:支持'."\n"
+ .'- false:不支持',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求唯一ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'ConnectionId' => [
+ 'description' => '连接ID。',
+ 'type' => 'string',
+ 'example' => 'conn-pai9m***mi47',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"ConnectionId\\": \\"conn-pai9m***mi47\\"\\n}","type":"json"}]',
+ 'title' => '创建连接',
+ 'requestParamsDescription' => '各种连接类型(ConnectionType)对应的Configs和Secrets配置格式:'."\n"
+ .'- **DashScopeConnection/OpenLLMConnection**'."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "Secrets": {'."\n"
+ .' "api_key": "xxx"'."\n"
+ .' },'."\n"
+ .' "Configs": {'."\n"
+ .' "base_url": "cn-hangzhou.aigc.aliyuncs.com/api/v1/services/xxx"'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ ."\n"
+ .'- **OpenSearchConnection/LindormConnection/ElasticsearchConnection**'."\n"
+ .'```'."\n"
+ ."\n"
+ .'{'."\n"
+ .' "Secrets": {'."\n"
+ .' "password": "xxx"'."\n"
+ .' },'."\n"
+ .' "Confgs": {'."\n"
+ .' "uri": "xxx",'."\n"
+ .' "username": "xxx"'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ ."\n"
+ .'```'."\n"
+ ."\n"
+ .'- **MilvusConnection**'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "Secrets": {'."\n"
+ .' "password": "xxx"'."\n"
+ .' },'."\n"
+ .' "Confgs": {'."\n"
+ .' "uri": "xxx",'."\n"
+ .' "username": "xxx"'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ ."\n"
+ .'- **HologresConnection**'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "Secrets": {'."\n"
+ .' "password": "xxx"'."\n"
+ .' },'."\n"
+ .' "Configs": {'."\n"
+ .' "database": "xx",'."\n"
+ .' "port": "xx",'."\n"
+ .' "host": "xx",'."\n"
+ .' "user": "xx"'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ ."\n"
+ .'- **RDSConnection**'."\n"
+ ."\n"
+ .'```'."\n"
+ .'{'."\n"
+ .' "Secrets": {'."\n"
+ .' "password": "xxx"'."\n"
+ .' },'."\n"
+ .' "Configs": {'."\n"
+ .' "database": "xxx",'."\n"
+ .' "port": "xxx",'."\n"
+ .' "host": "xxx",'."\n"
+ .' "type": "db_type",'."\n"
+ .' "username": "xxx"'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ .'```'."\n"
+ ."\n"
+ .'- **CustomConnection**'."\n"
+ ."\n"
+ .'自定义格式',
+ ],
+ 'GetConnection' => [
+ 'summary' => '获取连接详情。',
+ 'path' => '/api/v1/connections/{ConnectionId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '267615',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnIUXWCQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ConnectionId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '连接ID。如何获取连接 ID,详情请参见 [ListConnections](url)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'conn-pai9m***mi47'."\n",
+ ],
+ ],
+ [
+ 'name' => 'EncryptOption',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '加密设置。可取值:'."\n"
+ .'- PlainText:明文。'."\n"
+ .'- Secret:密文。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PlainText',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求唯一ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '11**43',
+ ],
+ 'Accessibility' => [
+ 'description' => '资源可见性,取值如下:'."\n"
+ ."\n"
+ .'- PUBLIC:当前工作空间所有成员都可以访问。'."\n"
+ .'- PRIVATE:只有创建者可以访问。',
+ 'type' => 'string',
+ 'example' => 'PRIVATE',
+ ],
+ 'ConnectionId' => [
+ 'description' => '连接ID。',
+ 'type' => 'string',
+ 'example' => 'conn-pai9m***mi47',
+ ],
+ 'ConnectionType' => [
+ 'description' => '连接的类型。可能值:'."\n"
+ ."\n"
+ .'- DashScopeConnection:百炼服务连接。'."\n"
+ .'- OpenLLMConnection:开源模型连接。'."\n"
+ .'- MilvusConnection:Milvus连接。'."\n"
+ .'- OpenSearchConnection:OpenSearch连接。'."\n"
+ .'- LindormConnection:Lindorm连接。'."\n"
+ .'- ElasticsearchConnection:Elasticsearch连接。'."\n"
+ .'- HologresConnection:Hologres连接。'."\n"
+ .'- RDSConnection:RDS连接。'."\n"
+ .'- CustomConnection:自定义连接。',
+ 'type' => 'string',
+ 'example' => 'OpenSearchConnection',
+ ],
+ 'ConnectionName' => [
+ 'description' => '连接的名称。',
+ 'type' => 'string',
+ 'example' => '数据库连接',
+ ],
+ 'Description' => [
+ 'description' => '连接的描述。',
+ 'type' => 'string',
+ 'example' => '用于数据集检索。',
+ ],
+ 'Configs' => [
+ 'description' => '连接的配置信息。',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => '12345',
+ 'description' => '连接配置的value值。',
+ ],
+ ],
+ 'Secrets' => [
+ 'description' => '需要加密的Key-Value配置。如数据库登录密码,模型连接的Key等。',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => 'Dsjk***hsl01',
+ 'description' => '加密连接配置的value值。',
+ ],
+ ],
+ 'GmtCreateTime' => [
+ 'description' => '创建连接的UTC时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2025-03-07T07:54:56Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'description' => '修改连接的UTC时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2025-03-07T07:54:56Z',
+ ],
+ 'Creator' => [
+ 'description' => '连接的创建者。',
+ 'type' => 'string',
+ 'example' => '28632***898231',
+ ],
+ 'ResourceMeta' => [
+ 'description' => '连接的实例资源信息。一般适用于数据库类型的连接。',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'description' => '实例ID。',
+ 'type' => 'string',
+ 'example' => 'ld-2vc1***v1zaqgzol',
+ ],
+ 'InstanceName' => [
+ 'description' => '实例名称。',
+ 'type' => 'string',
+ 'example' => '测试实例。',
+ ],
+ 'Extra' => [
+ 'description' => '额外配置信息。',
+ 'type' => 'string',
+ 'example' => '{"vpcId":"vpc-xxxx"}',
+ ],
+ ],
+ ],
+ 'Models' => [
+ 'description' => '模型列表。适用于模型服务类型的连接。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '模型信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Model' => [
+ 'description' => '模型标识符。',
+ 'type' => 'string',
+ 'example' => 'model_001',
+ ],
+ 'DisplayName' => [
+ 'description' => '模型的显示名称。',
+ 'type' => 'string',
+ 'example' => '测试语言模型。',
+ ],
+ 'ModelType' => [
+ 'description' => '模型类型,取值为:'."\n"
+ .'- LLM:大语言模型。'."\n"
+ .'- Embedding:Embedding模型。'."\n"
+ .'- ReRank:ReRank模型。',
+ 'type' => 'string',
+ 'example' => 'LLM',
+ ],
+ 'ToolCall' => [
+ 'description' => '是否支持ToolCall工具调用。可取值:'."\n"
+ .'- true:支持'."\n"
+ .'- false:不支持',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"WorkspaceId\\": \\"11**43\\",\\n \\"Accessibility\\": \\"PRIVATE\\",\\n \\"ConnectionId\\": \\"conn-pai9m***mi47\\",\\n \\"ConnectionType\\": \\"OpenSearchConnection\\",\\n \\"ConnectionName\\": \\"数据库连接\\",\\n \\"Description\\": \\"用于数据集检索。\\",\\n \\"Configs\\": {\\n \\"key\\": \\"12345\\"\\n },\\n \\"Secrets\\": {\\n \\"key\\": \\"Dsjk***hsl01\\"\\n },\\n \\"GmtCreateTime\\": \\"2025-03-07T07:54:56Z\\",\\n \\"GmtModifiedTime\\": \\"2025-03-07T07:54:56Z\\",\\n \\"Creator\\": \\"28632***898231\\",\\n \\"ResourceMeta\\": {\\n \\"InstanceId\\": \\"ld-2vc1***v1zaqgzol\\",\\n \\"InstanceName\\": \\"测试实例。\\",\\n \\"Extra\\": \\"{\\\\\\"vpcId\\\\\\":\\\\\\"vpc-xxxx\\\\\\"}\\"\\n },\\n \\"Models\\": [\\n {\\n \\"Model\\": \\"model_001\\",\\n \\"DisplayName\\": \\"测试语言模型。\\",\\n \\"ModelType\\": \\"LLM\\",\\n \\"ToolCall\\": true\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '查询连接',
+ ],
+ 'UpdateConnection' => [
+ 'summary' => '更新连接配置。',
+ 'path' => '/api/v1/connections/{ConnectionId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '267622',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnIUXWCQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ConnectionId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '连接ID。如何获取连接 ID,详情请参见 [ListConnections](url)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'conn-pai9m***mi47',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Configs' => [
+ 'description' => '连接的配置信息。以key-valued的形式配置,不同的连接类型对应的Config配置的key不相同。具体参见CreateConnection接口的请求参数补充说明。',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => '6379',
+ 'description' => '连接配置的value值。',
+ ],
+ ],
+ 'Description' => [
+ 'description' => '连接的描述信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '用于标注的连接。'."\n",
+ ],
+ 'Secrets' => [
+ 'description' => '需要加密的Key-Value配置。如数据库登录密码,模型连接的Key等。',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => 'Dakbjas**aljksdn',
+ 'description' => '加密连接配置的value值。',
+ ],
+ ],
+ 'Models' => [
+ 'description' => '模型信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '模型信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Model' => [
+ 'description' => '模型标识符。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'model_001',
+ ],
+ 'DisplayName' => [
+ 'description' => '模型显示名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'car_tag',
+ ],
+ 'ModelType' => [
+ 'description' => '模型类型。可选值:'."\n"
+ .'- LLM'."\n"
+ .'- Embedding'."\n"
+ .'- ReRank',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'LLM',
+ ],
+ 'ToolCall' => [
+ 'description' => '是否支持ToolCall工具调用。可取值:'."\n"
+ .'- true:支持'."\n"
+ .'- false:不支持',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求唯一ID。',
+ 'type' => 'string',
+ 'example' => 'A0F049F0-8D69-5BAC-8F10-B******A34C',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A0F049F0-8D69-5BAC-8F10-B******A34C\\"\\n}","type":"json"}]',
+ 'title' => '更新连接',
+ ],
+ 'ListConnections' => [
+ 'summary' => '获取连接列表。',
+ 'path' => '/api/v1/connections',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '267625',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnIUXWCQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '478**',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页游标的标识。用于标记下一页查询的起始位置。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '15',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页的最大数据条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时的排序字段,默认使用GmtCreateTime。取值如下。'."\n"
+ .'- GmtCreateTime(默认值):按创建时间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GmtCreateTime',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序,与SortBy结合使用。'."\n"
+ .'- ASC:升序。'."\n"
+ .'- DESC(默认值):降序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DESC',
+ ],
+ ],
+ [
+ 'name' => 'ConnectionIds',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => '连接ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '连接ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'conn-ljasd***jsx',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ConnectionName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '连接的名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '数据库连接',
+ ],
+ ],
+ [
+ 'name' => 'ConnectionTypes',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => '连接类型列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '连接类型。可选值:'."\n"
+ .'- DashScopeConnection:百炼服务连接。'."\n"
+ .'- OpenLLMConnection:开源模型连接。'."\n"
+ .'- MilvusConnection:Milvus连接。'."\n"
+ .'- OpenSearchConnection:OpenSearch连接。'."\n"
+ .'- LindormConnection:Lindorm连接。'."\n"
+ .'- ElasticsearchConnection:Elasticsearch连接。'."\n"
+ .'- HologresConnection:Hologres连接。'."\n"
+ .'- RDSConnection:RDS连接。'."\n"
+ .'- CustomConnection:自定义连接。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'OpenLLMConnection',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'EncryptOption',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '加密设置。可取值:'."\n"
+ .'- PlainText(明文)'."\n"
+ .'- Secret(密文)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PlainText',
+ ],
+ ],
+ [
+ 'name' => 'Model',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '模型标识符。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'model_001',
+ ],
+ ],
+ [
+ 'name' => 'ModelTypes',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => '模型类型列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '模型类型。可取值:'."\n"
+ .'- LLM'."\n"
+ .'- Embedding'."\n"
+ .'- ReRank',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'LLM',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ToolCall',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否支持ToolCall工具调用。可取值:'."\n"
+ .'- true:支持'."\n"
+ .'- false:不支持',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Creator',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '创建者。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12908*******3242',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Connections' => [
+ 'description' => '连接列表信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '连接信息。',
+ '$ref' => '#/components/schemas/Connection',
+ ],
+ ],
+ 'MaxResults' => [
+ 'description' => '每页的最大数据条数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'NextToken' => [
+ 'description' => '分页游标的标识。用于标记下一页查询的起始位置。',
+ 'type' => 'string',
+ 'example' => '15',
+ ],
+ 'TotalCount' => [
+ 'description' => '符合过滤条件的连接总数。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '27',
+ ],
+ 'RequestId' => [
+ 'description' => '请求唯一ID。',
+ 'type' => 'string',
+ 'example' => 'B2C51F93-1C07-5477-9705-5FDB****F19F',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Connections\\": [\\n {\\n \\"Description\\": \\"\\",\\n \\"ConnectionType\\": \\"\\",\\n \\"Accessibility\\": \\"\\",\\n \\"Secrets\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"WorkspaceId\\": \\"\\",\\n \\"Creator\\": \\"\\",\\n \\"ResourceMeta\\": {\\n \\"InstanceName\\": \\"\\",\\n \\"Extra\\": \\"\\",\\n \\"InstanceId\\": \\"\\"\\n },\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"ConnectionName\\": \\"\\",\\n \\"ConnectionId\\": \\"\\",\\n \\"Configs\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"Models\\": [\\n {\\n \\"ToolCall\\": true,\\n \\"Model\\": \\"\\",\\n \\"DisplayName\\": \\"\\",\\n \\"ModelType\\": \\"\\"\\n }\\n ],\\n \\"GmtCreateTime\\": \\"\\"\\n }\\n ],\\n \\"MaxResults\\": 10,\\n \\"NextToken\\": \\"15\\",\\n \\"TotalCount\\": 27,\\n \\"RequestId\\": \\"B2C51F93-1C07-5477-9705-5FDB****F19F\\"\\n}","type":"json"}]',
+ 'title' => '获取连接列表',
+ ],
+ 'DeleteConnection' => [
+ 'summary' => '删除连接。',
+ 'path' => '/api/v1/connections/{ConnectionId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '267624',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnIUXWCQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ConnectionId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '连接ID。如何获取连接 ID,详情请参见 [ListConnections](url)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'conn-pai9m***mi47',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求唯一ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '删除连接',
+ ],
+ 'ValidateConnection' => [
+ 'summary' => '验证连接。',
+ 'path' => '/api/v1/connections/validate',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnIUXWCQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Configs' => [
+ 'description' => '连接的配置信息。以key-value的形式配置,不同的连接类型对应的Config配置的key不相同。具体参见CreateConnection接口的请求参数补充说明。',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => '连接的配置信息。以key-value的形式配置,不同的连接类型对应的Config配置的key不相同。具体参见请求参数补充说明。',
+ 'example' => 'https://dashscope.aliyuncs.com/compatible-mode/v1',
+ ],
+ ],
+ 'ConnectionId' => [
+ 'description' => '连接ID。如何获取连接 ID,详情请参见 [ListConnections](url)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'conn-x2wz5zvvbyf2420fi9',
+ ],
+ 'ConnectionType' => [
+ 'description' => '连接的类型,当前支持填写可公网访问的连接类型:'."\n"
+ .'- DashScopeConnection:百炼服务连接。'."\n"
+ .'- DeepSeekConnection:DeepSeek服务连接。'."\n"
+ .'- FunctionAIMCPConnection:Function AI MCP连接。'."\n"
+ .'- CustomMCPConnection:自定义MCP连接。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DashScopeConnection',
+ ],
+ 'Secrets' => [
+ 'description' => '需要加密的key-value配置。如数据库登录密码,模型连接的key等。',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => '需要加密的连接配置信息。比如数据库的账密信息,模型服务的key等。',
+ 'example' => 'ZGJiZWQ2ZDY3MTMyYjJk****************NjE2NDg1NzM0YzlkZg==',
+ ],
+ ],
+ 'ValidateType' => [
+ 'description' => '验证类型。可设置为:'."\n"
+ .'- Connectivity:连通性测试',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Connectivity',
+ ],
+ 'WorkspaceId' => [
+ 'description' => '工作空间ID,可从接口[ListWorkspaces](~~449124~~)获取。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1234',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '本次验证的结果状态。'."\n"
+ .'- success:成功'."\n"
+ .'- failed:失败',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'Message' => [
+ 'description' => '验证结果描述。',
+ 'type' => 'string',
+ 'example' => 'The connection is reachable.',
+ ],
+ 'Code' => [
+ 'description' => '请求失败时返回的错误代码。',
+ 'type' => 'string',
+ 'example' => '403',
+ ],
+ 'Details' => [
+ 'description' => '验证结果详情。',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => '验证结果的详细信息,如LatencyMs,表示测试延迟(毫秒)。',
+ 'example' => '100',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"success\\",\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"Message\\": \\"The connection is reachable.\\",\\n \\"Code\\": \\"403\\",\\n \\"Details\\": {\\n \\"key\\": \\"100\\"\\n }\\n}","type":"json"}]',
+ 'title' => '验证连接',
+ ],
+ 'CreateCodeSource' => [
+ 'summary' => '创建代码配置到PAI,支持配置Git的代码分支与CommitId。创建完成后,可以在DLC作业中引用。',
+ 'path' => '/api/v1/codesources',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '55315',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnFOSXQT',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkspaceId' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1234',
+ ],
+ 'DisplayName' => [
+ 'title' => '代码源配置名称',
+ 'description' => '代码配置名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'MyCodeSource1',
+ ],
+ 'Description' => [
+ 'title' => '代码源详细描述',
+ 'description' => '代码配置的描述信息,便于区分不同的代码配置。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'code source of dlc examples',
+ ],
+ 'CodeRepo' => [
+ 'title' => '代码仓库地址',
+ 'description' => '代码仓库地址。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://code.aliyun.com/******',
+ ],
+ 'CodeRepoUserName' => [
+ 'title' => '代码仓库的用户名',
+ 'description' => '代码仓库的用户名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'use***',
+ ],
+ 'CodeRepoAccessToken' => [
+ 'title' => '代码仓库访问Token',
+ 'description' => '代码仓库访问Token。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '***',
+ ],
+ 'CodeBranch' => [
+ 'title' => '代码分支',
+ 'description' => '代码分支。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'master',
+ ],
+ 'MountPath' => [
+ 'title' => '代码本地挂载目录,默认挂载到/root/code/下',
+ 'description' => '代码本地挂载目录,默认挂载到/root/code/下。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/root/code/code-source-1',
+ ],
+ 'Accessibility' => [
+ 'title' => '代码是否是本工作空间内公开的,可选值PRIVATE、PUBLIC',
+ 'description' => '代码配置的可见性,取值如下。'."\n"
+ .'- PUBLIC:在此工作空间中,对所有人可见。'."\n"
+ .'- PRIVATE:在此工作空间中,仅对您和管理员可见。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PRIVATE',
+ ],
+ 'CodeCommit' => [
+ 'title' => '代码的CommitID。CodeCommit的优先级大于CodeBranch,即如果您填写了CodeCommit,则CodeBranch不会生效。',
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CodeSourceId' => [
+ 'title' => '创建的代码源配置的ID',
+ 'description' => '创建的代码配置的ID。',
+ 'type' => 'string',
+ 'example' => 'code-20********',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '473469C7-AA6F-4DC5-B3DB-A3**********',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CodeSourceId\\": \\"code-20********\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3**********\\"\\n}","type":"json"}]',
+ 'title' => '创建代码配置',
+ ],
+ 'DeleteCodeSource' => [
+ 'summary' => '指定ID,删除一个代码配置。',
+ 'path' => '/api/v1/codesources/{CodeSourceId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '55455',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnTXMM8C',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'CodeSourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '待删除的代码源配置',
+ 'description' => '待删除的代码配置ID。如何获取代码配置ID,请参见[ListCodeSources](~~459922~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'code-20210111103721-85qz78ia96lu',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CodeSourceId' => [
+ 'title' => '被删除的代码源配置ID',
+ 'description' => '被删除的代码源配置ID。',
+ 'type' => 'string',
+ 'example' => 'code-20210111103721-85qz78ia96lu',
+ ],
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CodeSourceId\\": \\"code-20210111103721-85qz78ia96lu\\",\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '删除代码配置',
+ ],
+ 'PublishCodeSource' => [
+ 'summary' => '发布私有的代码配置到工作空间公开可见。',
+ 'path' => '/api/v1/codesources/{CodeSourceId}/publish',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '55459',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnFOSXQT',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'CodeSourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '待删除的代码源配置',
+ 'description' => '待发布的代码源配置ID。如何获取代码配置ID,请参见[ListCodeSources](~~459922~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'code-a797*******',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CodeSourceId' => [
+ 'title' => '被删除的代码源配置ID',
+ 'description' => '发布成功的代码源配置ID。',
+ 'type' => 'string',
+ 'example' => 'code-a797*******',
+ ],
+ 'RequestId' => [
+ 'description' => '请求的ID。用于定位日志,排查问题。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CodeSourceId\\": \\"code-a797*******\\",\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '发布代码配置',
+ ],
+ 'UpdateCodeSource' => [
+ 'summary' => '更新代码配置。',
+ 'path' => '/api/v1/codesources/{CodeSourceId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [],
+ 'produces' => [],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '246302',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnFOSXQT',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'CodeSourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '代码配置的ID',
+ 'description' => '代码配置的ID。可以通过 CreateCodeSource、GetCodeSource 或者 ListCodeSources 这些接口获取。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'code-202**********',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DisplayName' => [
+ 'title' => '代码配置的名称',
+ 'description' => '代码配置的名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MyCodeSource1',
+ ],
+ 'Description' => [
+ 'title' => '代码配置的描述',
+ 'description' => '代码配置的描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '用于XX的训练代码',
+ ],
+ 'CodeRepo' => [
+ 'title' => '代码仓库地址',
+ 'description' => '代码仓库地址。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://code.aliyun.com/******',
+ ],
+ 'CodeBranch' => [
+ 'title' => '代码分支',
+ 'description' => '代码的分支名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'dev',
+ ],
+ 'CodeCommit' => [
+ 'title' => '代码的CommitID',
+ 'description' => '代码的CommitID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '3a6*****',
+ ],
+ 'CodeRepoUserName' => [
+ 'title' => '用于访问代码仓库的用户名',
+ 'description' => '用于访问代码仓库的用户名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'demo-user',
+ ],
+ 'CodeRepoAccessToken' => [
+ 'title' => '用户名对应的访问Token',
+ 'description' => '用户名对应的访问Token。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '***',
+ ],
+ 'MountPath' => [
+ 'title' => '默认的挂载路径',
+ 'description' => '默认的挂载路径。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/root/code/code-source-1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回的结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID,阿里云为该请求生成的标识符。',
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'CodeSourceId' => [
+ 'title' => '代码配置的ID',
+ 'description' => '代码配置的ID。',
+ 'type' => 'string',
+ 'example' => 'code-20********',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"CodeSourceId\\": \\"code-20********\\"\\n}","type":"json"}]',
+ 'title' => '更新代码配置',
+ ],
+ 'GetCodeSource' => [
+ 'summary' => '获取一个代码配置的详细信息。',
+ 'path' => '/api/v1/codesources/{CodeSourceId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'CodeSourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '代码源配置ID',
+ 'description' => '代码源配置ID。如何获取代码配置ID,请参见[ListCodeSources](~~459922~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'code-202**********',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CodeSourceId' => [
+ 'title' => '代码源配置ID',
+ 'description' => '代码源配置ID。',
+ 'type' => 'string',
+ 'example' => 'code-202**********',
+ ],
+ 'DisplayName' => [
+ 'title' => '代码源配置名字',
+ 'description' => '代码源配置名字。',
+ 'type' => 'string',
+ 'example' => 'MyCodeSource1',
+ ],
+ 'Description' => [
+ 'title' => '详细描述',
+ 'description' => '代码配置的详细描述。',
+ 'type' => 'string',
+ 'example' => 'This is my data source 1.',
+ ],
+ 'CodeRepo' => [
+ 'title' => '代码仓库地址',
+ 'description' => '代码仓库地址。',
+ 'type' => 'string',
+ 'example' => 'https://code.aliyun.com/pai-dlc/examples.git',
+ ],
+ 'CodeBranch' => [
+ 'title' => '代码仓库分支',
+ 'description' => '代码仓库分支。',
+ 'type' => 'string',
+ 'example' => 'master',
+ ],
+ 'CodeCommit' => [
+ 'title' => '代码Commit',
+ 'description' => '代码CommitId。',
+ 'type' => 'string',
+ 'example' => '44da10***********',
+ ],
+ 'CodeRepoUserName' => [
+ 'title' => '代码仓库的用户名',
+ 'description' => '代码仓库的用户名。',
+ 'type' => 'string',
+ 'example' => 'user1',
+ ],
+ 'CodeRepoAccessToken' => [
+ 'title' => '访问代码仓库的token',
+ 'description' => '访问代码仓库的Token。',
+ 'type' => 'string',
+ 'example' => 'xxxx',
+ ],
+ 'MountPath' => [
+ 'title' => '代码本地挂载目录,默认挂载到/root/code/下',
+ 'description' => '代码的本地挂载目录。',
+ 'type' => 'string',
+ 'example' => '/root/code',
+ ],
+ 'Accessibility' => [
+ 'title' => '代码是否是本工作空间内公开的,可选值PRIVATE、PUBLIC',
+ 'description' => '代码配置的可见性,可能值:'."\n"
+ .'- PRIVATE:在此工作空间中,仅对您和管理员可见。'."\n"
+ .'- PUBLIC: 在此工作空间中,对所有人可见。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PRIVATE',
+ ],
+ 'UserId' => [
+ 'title' => '代码配置源的创建者ID',
+ 'description' => '代码配置源的创建者ID。',
+ 'type' => 'string',
+ 'example' => '1722********',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '1234',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建时间',
+ 'description' => '代码配置创建时间,时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-12T23:36:01.123Z',
+ ],
+ 'GmtModifyTime' => [
+ 'title' => '修改时间',
+ 'description' => '代码配置修改时间。时间格式为ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-12T23:36:01.123Z',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CodeSourceId\\": \\"code-202**********\\",\\n \\"DisplayName\\": \\"MyCodeSource1\\",\\n \\"Description\\": \\"This is my data source 1.\\",\\n \\"CodeRepo\\": \\"https://code.aliyun.com/pai-dlc/examples.git\\",\\n \\"CodeBranch\\": \\"master\\",\\n \\"CodeCommit\\": \\"44da10***********\\",\\n \\"CodeRepoUserName\\": \\"user1\\",\\n \\"CodeRepoAccessToken\\": \\"xxxx\\",\\n \\"MountPath\\": \\"/root/code\\",\\n \\"Accessibility\\": \\"PRIVATE\\",\\n \\"UserId\\": \\"1722********\\",\\n \\"WorkspaceId\\": \\"1234\\",\\n \\"GmtCreateTime\\": \\"2021-01-12T23:36:01.123Z\\",\\n \\"GmtModifyTime\\": \\"2021-01-12T23:36:01.123Z\\",\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '获取代码配置',
+ ],
+ 'ListCodeSources' => [
+ 'summary' => '查询代码配置列表,支持分页、排序和按条件过滤。',
+ 'path' => '/api/v1/codesources',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '55462',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnFOSXQT',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'DisplayName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '代码源显示名称,支持模糊匹配',
+ 'description' => '代码配置的显示名称,支持模糊匹配。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MyDataSource',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '取第几页的数据',
+ 'description' => '代码配置列表的页码。起始值为1,默认值为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '分页大小',
+ 'description' => '分页查询时设置的每页行数。默认为20。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '用于排序的字段名,可选字段名:"DisplayName" "GmtCreateTime" "GmtModifyTime"',
+ 'description' => '用于排序的字段名,取值如下:'."\n"
+ .'- GmtModifyTime:代码源修改时间。'."\n"
+ .'- DisplayName:展示名称。'."\n"
+ .'- CodeSourceId:代码源ID。'."\n"
+ .'- GmtCreateTime(默认值):代码源创建时间。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [],
+ 'example' => 'GmtModifyTime',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序顺序, 枚举值 desc 或者 asc',
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序。取值:'."\n"
+ .'- ASC(默认值):升序。'."\n"
+ .'- DESC:降序',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [],
+ 'example' => 'desc',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1234',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CodeSources' => [
+ 'title' => '代码源配置列表',
+ 'description' => '代码源配置列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '代码配置详情。',
+ '$ref' => '#/components/schemas/CodeSourceItem',
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '符合过滤条件的代码源配置的总数量',
+ 'description' => '符合过滤条件的代码源配置的总数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'RequestId' => [
+ 'title' => '请求Id',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"CodeSources\\": [\\n {\\n \\"CodeSourceId\\": \\"code-20210111103721-85qz78ia96lu\\",\\n \\"DisplayName\\": \\"MyCodeSourceName1\\",\\n \\"Description\\": \\"code source of dlc examples\\",\\n \\"CodeRepo\\": \\"https://code.aliyun.com/pai-dlc/examples.git\\",\\n \\"CodeBranch\\": \\"master\\",\\n \\"CodeCommit\\": \\"44da109b59f8596152987eaa8f3b2487bb72ea63\\",\\n \\"CodeRepoUserName\\": \\"user\\",\\n \\"CodeRepoAccessToken\\": \\"\\",\\n \\"Accessibility\\": \\"PUBLIC\\",\\n \\"UserId\\": \\"1157290171663117\\",\\n \\"WorkspaceId\\": \\"1234\\",\\n \\"GmtCreateTime\\": \\"2021-01-18T12:52:15Z\\",\\n \\"GmtModifyTime\\": \\"2021-01-18T12:52:15Z\\",\\n \\"MountPath\\": \\"/root/code/\\"\\n }\\n ],\\n \\"TotalCount\\": 2,\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '获取代码配置列表',
+ ],
+ 'CreateModel' => [
+ 'summary' => '创建模型。模型是模型版本的集合,创建模型时需要指定模型名称,描述等信息。',
+ 'path' => '/api/v1/models',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133752',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ModelName' => [
+ 'title' => 'ModelName',
+ 'description' => '模型名称,长度为1~127个字符。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '新闻分类',
+ ],
+ 'Labels' => [
+ 'title' => 'Labels',
+ 'description' => '标签列表。将废弃,由Tag字段取代。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => false,
+ ],
+ 'Tag' => [
+ 'title' => 'Tag',
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。与Label一致。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => false,
+ ],
+ 'ModelDescription' => [
+ 'title' => 'ModelDescription',
+ 'description' => '模型描述,用于区分不同的模型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '新闻分类。',
+ ],
+ 'WorkspaceId' => [
+ 'title' => 'WorkspaceId',
+ 'description' => '工作空间ID。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '796**',
+ ],
+ 'Accessibility' => [
+ 'title' => 'Accessibility',
+ 'description' => '工作空间可见度,取值如下。'."\n"
+ .'- PRIVATE(默认值):在此工作空间中,仅对您和管理员可见。'."\n"
+ .'- PUBLIC:在此工作空间中,对所有人可见。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PUBLIC' => 'PUBLIC',
+ 'PRIVATE' => 'PRIVATE',
+ ],
+ 'example' => 'PRIVATE',
+ ],
+ 'Origin' => [
+ 'title' => '模型源',
+ 'description' => '模型源。描述源模型所属社区或组织,如ModelScope,HuggingFace等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ModelScope',
+ ],
+ 'Domain' => [
+ 'title' => '领域',
+ 'description' => '领域。描述模型解决问题所属领域。例如:nlp(自然语言处理)、cv(计算机视觉)等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'nlp',
+ ],
+ 'Task' => [
+ 'title' => '模型任务',
+ 'description' => '任务。描述模型解决的具体问题。例如:text-classification(文本分类)等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'text-classification',
+ ],
+ 'ModelDoc' => [
+ 'title' => '模型介绍文档',
+ 'description' => '模型文档。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://*.md',
+ ],
+ 'OrderNumber' => [
+ 'title' => '序号',
+ 'description' => '模型序号。可用于自定义排序。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ 'ModelType' => [
+ 'title' => '模型类型',
+ 'description' => '模型类型。如Checkpoint,LoRA等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Checkpoint',
+ ],
+ 'ExtraInfo' => [
+ 'title' => '其它信息',
+ 'description' => '模型的其它信息。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "RatingCount": 2866,'."\n"
+ .' "Rating": 4.94,'."\n"
+ .' "FavoriteCount": 34992,'."\n"
+ .' "CommentCount": 754,'."\n"
+ .' "CoverUris": ["https://e***u.oss-cn-hangzhou.aliyuncs.com/drea***w.png"],'."\n"
+ .' "TippedAmountCount": 32,'."\n"
+ .' "DownloadCount": 606056'."\n"
+ .'}',
+ ],
+ 'ParameterSize' => [
+ 'description' => '参数量,单位M。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '3000',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '9DAD3112-AE22-5563-9A02-5C7E8****E35',
+ ],
+ 'ModelId' => [
+ 'description' => '模型ID。',
+ 'type' => 'string',
+ 'example' => 'model-rbvg5wzljz****ks92',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9DAD3112-AE22-5563-9A02-5C7E8****E35\\",\\n \\"ModelId\\": \\"model-rbvg5wzljz****ks92\\"\\n}","type":"json"}]',
+ 'title' => '创建模型',
+ ],
+ 'UpdateModel' => [
+ 'summary' => '更新模型的基本配置信息。',
+ 'path' => '/api/v1/models/{ModelId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133763',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-rbvg5wz******ks92',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ModelName' => [
+ 'title' => '模型名称',
+ 'description' => '模型名称,长度为1~127个字符。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '新闻分类',
+ ],
+ 'ModelDescription' => [
+ 'title' => '模型描述',
+ 'description' => '模型描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '新闻分类。',
+ ],
+ 'Accessibility' => [
+ 'title' => '可见度',
+ 'description' => '工作空间可见度,取值如下。'."\n"
+ .'- PRIVATE:在此工作空间中,仅对您和管理员可见。'."\n"
+ .'- PUBLIC:在此工作空间中,对所有人可见。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PUBLIC',
+ ],
+ 'Origin' => [
+ 'title' => '模型源',
+ 'description' => '模型源。描述源模型所属社区或组织,如ModelScope,HuggingFace等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ModelScope',
+ ],
+ 'Domain' => [
+ 'title' => '领域',
+ 'description' => '领域。描述模型解决问题所属领域。例如:nlp(自然语言处理)、cv(计算机视觉)等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'nlp',
+ ],
+ 'Task' => [
+ 'title' => '模型任务',
+ 'description' => '任务。描述模型解决的具体问题。例如:text-classification(文本分类)等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'text-classification',
+ ],
+ 'ModelDoc' => [
+ 'title' => '模型介绍文档',
+ 'description' => '模型文档。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://*.md',
+ ],
+ 'OrderNumber' => [
+ 'title' => '序号',
+ 'description' => '模型序号。可用于自定义排序。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ 'ModelType' => [
+ 'title' => '模型类型',
+ 'description' => '模型类型。如Checkpoint,LoRA等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Checkpoint',
+ ],
+ 'ExtraInfo' => [
+ 'title' => '其它信息',
+ 'description' => '模型的其它信息。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "RatingCount": 2866,'."\n"
+ .' "Rating": 4.94,'."\n"
+ .' "FavoriteCount": 34992,'."\n"
+ .' "CommentCount": 754,'."\n"
+ .' "CoverUris": ["https://e***u.oss-cn-hangzhou.aliyuncs.com/drea***w.png"],'."\n"
+ .' "TippedAmountCount": 32,'."\n"
+ .' "DownloadCount": 606056'."\n"
+ .'}',
+ ],
+ 'ParameterSize' => [
+ 'description' => '参数量,单位M。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '3000',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'A0F049F0-8D69-5BAC-8F10-B******A34C',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A0F049F0-8D69-5BAC-8F10-B******A34C\\"\\n}","type":"json"}]',
+ 'title' => '更新模型',
+ ],
+ 'GetModel' => [
+ 'summary' => '获取指定模型详情信息。',
+ 'path' => '/api/v1/models/{ModelId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133753',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => 'Model Id',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-rbvg5****c9ks92',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'ModelId' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。',
+ 'type' => 'string',
+ 'example' => 'model-rbvg5wzljz****ks92',
+ ],
+ 'ModelName' => [
+ 'title' => '模型名称',
+ 'description' => '模型名称。',
+ 'type' => 'string',
+ 'example' => '情感分析',
+ ],
+ 'ModelDescription' => [
+ 'title' => '模型描述',
+ 'description' => '模型描述。',
+ 'type' => 'string',
+ 'example' => '通用情感分析。',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建模型UTC时间,格式ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-30T12:51:33.028Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '最后更新时间',
+ 'description' => '最后更新模型UTC时间,格式ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-30T12:51:33.028Z',
+ ],
+ 'UserId' => [
+ 'title' => '创建模型的用户ID',
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '1234567890******',
+ ],
+ 'OwnerId' => [
+ 'title' => '云账号ID',
+ 'description' => '阿里云账号ID。',
+ 'type' => 'string',
+ 'example' => '1234567890******',
+ ],
+ 'Origin' => [
+ 'title' => '模型源',
+ 'description' => '模型源。描述源模型所属社区或组织,例如:ModelScope,HuggingFace等。',
+ 'type' => 'string',
+ 'example' => 'ModelScope',
+ ],
+ 'Provider' => [
+ 'title' => '提供者',
+ 'description' => '提供者。',
+ 'type' => 'string',
+ 'example' => 'pai',
+ ],
+ 'Domain' => [
+ 'title' => '领域',
+ 'description' => '领域。描述模型解决问题所属领域。例如:nlp(自然语言处理)、cv(计算机视觉)等。',
+ 'type' => 'string',
+ 'example' => 'cv',
+ ],
+ 'Task' => [
+ 'title' => '任务',
+ 'description' => '任务。描述模型解决的具体问题,例如:text-classification(文本分类)等。',
+ 'type' => 'string',
+ 'example' => 'text-classification',
+ ],
+ 'ModelDoc' => [
+ 'title' => '模型文档',
+ 'description' => '模型文档。',
+ 'type' => 'string',
+ 'example' => 'https://***.md',
+ ],
+ 'Labels' => [
+ 'title' => '模型的标签',
+ 'description' => '模型的标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ '$ref' => '#/components/schemas/Label',
+ ],
+ ],
+ 'WorkspaceId' => [
+ 'title' => '工作空间ID',
+ 'description' => '工作空间ID。',
+ 'type' => 'string',
+ 'example' => '234**',
+ ],
+ 'Accessibility' => [
+ 'title' => '可见性',
+ 'description' => '工作空间可见性,可能值为:'."\n"
+ .'- PRIVATE:在此工作空间中,仅对您和管理员可见。'."\n"
+ .'- PUBLIC:在此工作空间中,对所有人可见。',
+ 'type' => 'string',
+ 'example' => 'PUBLIC',
+ ],
+ 'LatestVersion' => [
+ 'title' => '模型的最新版本',
+ 'description' => '模型的最新版本。',
+ '$ref' => '#/components/schemas/ModelVersion',
+ ],
+ 'ModelType' => [
+ 'title' => '模型类型',
+ 'description' => '模型类型。',
+ 'type' => 'string',
+ 'example' => 'Checkpoint',
+ ],
+ 'ExtraInfo' => [
+ 'title' => '其它信息',
+ 'description' => '模型的其它信息。',
+ 'type' => 'object',
+ 'example' => '{'."\n"
+ .' "RatingCount": 2866,'."\n"
+ .' "Rating": 4.94,'."\n"
+ .' "FavoriteCount": 34992,'."\n"
+ .' "CommentCount": 754,'."\n"
+ .' "CoverUris": ["https://e***u.oss-cn-hangzhou.aliyuncs.com/drea***w.png"],'."\n"
+ .' "TippedAmountCount": 32,'."\n"
+ .' "DownloadCount": 606056'."\n"
+ .'}',
+ ],
+ 'OrderNumber' => [
+ 'title' => '序号',
+ 'description' => '序号。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'ParameterSize' => [
+ 'description' => '参数量,单位M。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3000',
+ ],
+ 'GmtLatestVersionModifiedTime' => [
+ 'description' => '最后版本的更新时间。',
+ 'type' => 'string',
+ 'example' => '2021-01-30T12:51:33.028Z',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"ModelId\\": \\"model-rbvg5wzljz****ks92\\",\\n \\"ModelName\\": \\"情感分析\\",\\n \\"ModelDescription\\": \\"通用情感分析。\\",\\n \\"GmtCreateTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"UserId\\": \\"1234567890******\\",\\n \\"OwnerId\\": \\"1234567890******\\",\\n \\"Origin\\": \\"ModelScope\\",\\n \\"Provider\\": \\"pai\\",\\n \\"Domain\\": \\"cv\\",\\n \\"Task\\": \\"text-classification\\",\\n \\"ModelDoc\\": \\"https://***.md\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"WorkspaceId\\": \\"234**\\",\\n \\"Accessibility\\": \\"PUBLIC\\",\\n \\"LatestVersion\\": {\\n \\"VersionName\\": \\"1.0.0\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-21T17:12:35Z\\",\\n \\"UserId\\": \\"155770209******\\",\\n \\"OwnerId\\": \\"155770209******\\",\\n \\"Uri\\": \\"oss://bucket/path-to-model\\",\\n \\"VersionDescription\\": \\"\\",\\n \\"FormatType\\": \\"SavedModel\\",\\n \\"FrameworkType\\": \\"TensorFlow\\",\\n \\"Options\\": \\"\\",\\n \\"SourceType\\": \\"\\",\\n \\"SourceId\\": \\"\\",\\n \\"ApprovalStatus\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"Value\\": \\"\\",\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"Metrics\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"TrainingSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"InferenceSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"EvaluationSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"CompressionSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"ExtraInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"DistillationSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"ModelType\\": \\"Checkpoint\\",\\n \\"ExtraInfo\\": {\\n \\"RatingCount\\": 2866,\\n \\"Rating\\": 4.94,\\n \\"FavoriteCount\\": 34992,\\n \\"CommentCount\\": 754,\\n \\"CoverUris\\": [\\n \\"https://e***u.oss-cn-hangzhou.aliyuncs.com/drea***w.png\\"\\n ],\\n \\"TippedAmountCount\\": 32,\\n \\"DownloadCount\\": 606056\\n },\\n \\"OrderNumber\\": 1,\\n \\"ParameterSize\\": 3000,\\n \\"GmtLatestVersionModifiedTime\\": \\"2021-01-30T12:51:33.028Z\\"\\n}","type":"json"}]',
+ 'title' => '获取模型',
+ ],
+ 'ListModels' => [
+ 'summary' => '获取模型列表。',
+ 'path' => '/api/v1/models',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133768',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '页数',
+ 'description' => '模型列表的页码。起始值为1,默认为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页大小',
+ 'description' => '分页查询时设置的每页显示的模型数量,默认为10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '顺序',
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序。默认ASC。'."\n"
+ .'- ASC:升序。'."\n"
+ .'- DESC:降序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DESC',
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序依据',
+ 'description' => '分页查询时的排序字段。目前使用GmtCreateTime字段用于排序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GmtCreateTime',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '工作空间ID',
+ 'description' => '配置工作空间ID,返回列表中只获取该工作空间内的模型列表。如何获取工作空间ID,请参见[ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '324**',
+ ],
+ ],
+ [
+ 'name' => 'ModelName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '模型名称',
+ 'description' => '配置模型名称,用来过滤获取的模型列表。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '情感分析',
+ ],
+ ],
+ [
+ 'name' => 'Label',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '标签',
+ 'description' => '标签串。用于列表过滤,标签中key或value中,有指定字符串的,都会被过滤出来。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1',
+ ],
+ ],
+ [
+ 'name' => 'Provider',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '模型提供者',
+ 'description' => '提供者。指定提供者,则只返回该提供者公开的模型。不填则返回用户自己的模型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'pai',
+ ],
+ ],
+ [
+ 'name' => 'Domain',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '领域',
+ 'description' => '配置领域来过滤该领域内的模型列表。例如:nlp(自然语言处理)、cv(计算机视觉)等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'nlp',
+ ],
+ ],
+ [
+ 'name' => 'Task',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '模型任务',
+ 'description' => '配置任务来过滤属于该任务类型的模型列表。例如:text-classification(文本分类)等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'text-classification',
+ ],
+ ],
+ [
+ 'name' => 'Origin',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '模型源',
+ 'description' => '配置模型源,来过滤属于该社区或组织的模型列表。例如ModelScope,HuggingFace等。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ModelScope',
+ ],
+ ],
+ [
+ 'name' => 'Query',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '筛选请求串',
+ 'description' => '配置查询条件。ModelName、Domain、Task、LabelKey、LabelValue相似匹配。'."\n"
+ .'例如输入为nlp,则ModelName、Domain、Task、LabelKey、LabelValue中匹配的模型都会返回。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'nlp',
+ ],
+ ],
+ [
+ 'name' => 'ModelType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '模型类型',
+ 'description' => '模型类型',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Endpoint',
+ ],
+ ],
+ [
+ 'name' => 'Collections',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'title' => '模型所在Collection,支持填写多个,用英文逗号分割',
+ 'description' => '模型所在Collection,支持填写多个,用英文逗号分割',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AI4D,QuickStart',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签的key。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1',
+ ],
+ 'Value' => [
+ 'description' => '标签的value。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'value1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'example' => 'Endpoint',
+ ],
+ ],
+ [
+ 'name' => 'Conditions',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '条件。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Column' => [
+ 'description' => '参数名。如:ParameterSize。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ParameterSize',
+ ],
+ 'Operator' => [
+ 'description' => '操作符。如:LessThan。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'LessThan',
+ ],
+ 'Value' => [
+ 'description' => '值,如3000。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '3000',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'Models' => [
+ 'title' => '模型列表',
+ 'description' => '模型列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '模型。',
+ '$ref' => '#/components/schemas/Model',
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '总数',
+ 'description' => '模型总数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '15',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"Models\\": [\\n {\\n \\"ModelId\\": \\"model-1123*****\\",\\n \\"ModelName\\": \\"\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-21T17:12:35Z\\",\\n \\"WorkspaceId\\": \\"234**\\",\\n \\"UserId\\": \\"1557702098******\\",\\n \\"OwnerId\\": \\"1557702098******\\",\\n \\"ModelDescription\\": \\"\\",\\n \\"Accessibility\\": \\"PUBLIC\\",\\n \\"LatestVersion\\": {\\n \\"VersionName\\": \\"1.0.0\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-21T17:12:35Z\\",\\n \\"UserId\\": \\"155770209******\\",\\n \\"OwnerId\\": \\"155770209******\\",\\n \\"Uri\\": \\"oss://bucket/path-to-model\\",\\n \\"VersionDescription\\": \\"\\",\\n \\"FormatType\\": \\"SavedModel\\",\\n \\"FrameworkType\\": \\"TensorFlow\\",\\n \\"Options\\": \\"\\",\\n \\"SourceType\\": \\"\\",\\n \\"SourceId\\": \\"\\",\\n \\"ApprovalStatus\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"Value\\": \\"\\",\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"Metrics\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"TrainingSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"InferenceSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"EvaluationSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"CompressionSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"ExtraInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"DistillationSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"OrderNumber\\": 101,\\n \\"Origin\\": \\"ModelScope\\",\\n \\"Domain\\": \\"cv\\",\\n \\"Task\\": \\"text-classifiaction\\",\\n \\"ModelDoc\\": \\"https://***.md\\",\\n \\"Provider\\": \\"pai\\",\\n \\"ModelType\\": \\"Checkpoint\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"ExtraInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"ParameterSize\\": 1024,\\n \\"GmtLatestVersionModifiedTime\\": \\"2021-01-21T17:12:35Z\\"\\n }\\n ],\\n \\"TotalCount\\": 15\\n}","type":"json"}]',
+ 'title' => '获取模型列表',
+ ],
+ 'DeleteModel' => [
+ 'summary' => '删除模型。',
+ 'path' => '/api/v1/models/{ModelId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133765',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-rbvg5wzl****ks92',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '删除模型',
+ ],
+ 'CreateModelVersion' => [
+ 'summary' => '为指定模型新增版本。',
+ 'path' => '/api/v1/models/{ModelId}/versions',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133771',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'VersionName' => [
+ 'title' => '模型版本,模型下唯一。',
+ 'description' => '模型版本,模型下唯一。如果不填写该参数,则默认**0.1.0**为第一个版本。之后子版本号依次加1,例如:第二个版本号默认为**0.2.0**。'."\n"
+ .'版本号由主版本号、子版本号和阶段版本号组成,通过半角句号(.)分隔。其中:主版本号、子版本号为数字,阶段版本号以数字开头,下划线和字母组成。例如:版本号为1.1.0或2.3.4_beta。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '0.1.0',
+ ],
+ 'Uri' => [
+ 'title' => '版本Uri',
+ 'description' => '模型版本URI,即模型存储位置。模型地址类型如下:'."\n"
+ .'- 模型的HTTP(S)地址,例如:`https://myweb.com/mymodel.tar.gz`。'."\n"
+ .'- 如果模型存储在OSS中,格式为`oss://<bucket>.<endpoint>/object`。其中endpoint配置,请参见[访问域名和数据中心](~~31837~~),例如:`oss://mybucket.oss-cn-beijing.aliyuncs.com/mypath/`。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'oss://mybucket.oss-cn-beijing.aliyuncs.com/mypath/',
+ ],
+ 'Labels' => [
+ 'title' => '标签',
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => false,
+ ],
+ 'VersionDescription' => [
+ 'title' => '版本描述',
+ 'description' => '模型版本描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '情感分析。',
+ ],
+ 'FormatType' => [
+ 'title' => '模型类型',
+ 'description' => '模型格式,取值如下:'."\n"
+ .'- OfflineModel'."\n"
+ .'- SavedModel'."\n"
+ .'- Keras H5'."\n"
+ .'- Frozen Pb'."\n"
+ .'- Caffe Prototxt'."\n"
+ .'- TorchScript'."\n"
+ .'- XGBoost'."\n"
+ .'- PMML'."\n"
+ .'- AlinkModel'."\n"
+ .'- ONNX',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'OfflineModel' => 'OfflineModel',
+ 'SavedModel' => 'SavedModel',
+ 'Keras H5' => 'Keras H5',
+ 'Frozen Pb' => 'Frozen Pb',
+ 'Caffe Prototxt' => 'Caffe Prototxt',
+ 'TorchScript' => 'TorchScript',
+ 'XGBoost' => 'XGBoost',
+ 'PMML' => 'PMML',
+ 'AlinkModel' => 'AlinkModel',
+ 'ONNX' => 'ONNX',
+ ],
+ 'example' => 'SavedModel',
+ ],
+ 'FrameworkType' => [
+ 'title' => '模型框架',
+ 'description' => '模型框架,取值如下:'."\n"
+ .'- Pytorch'."\n"
+ .'- XGBoost'."\n"
+ .'- Keras'."\n"
+ .'- Caffe'."\n"
+ .'- Alink'."\n"
+ .'- Xflow'."\n"
+ .'- TensorFlow',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Pytorch' => 'Pytorch',
+ 'XGBoost' => 'XGBoost',
+ 'Keras' => 'Keras',
+ 'Caffe' => 'Caffe',
+ 'Alink' => 'Alink',
+ 'Xflow' => 'Xflow',
+ 'TensorFlow' => 'TensorFlow',
+ ],
+ 'example' => 'TensorFlow',
+ ],
+ 'Options' => [
+ 'title' => '扩展字段',
+ 'description' => '扩展字段。JsonString类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ 'Metrics' => [
+ 'title' => '指标',
+ 'description' => '模型指标。'."\n"
+ .'序列化后长度限制为8192。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "Results": [{'."\n"
+ .' "Dataset": {'."\n"
+ .' "DatasetId": "d-sdkjanksaklerhfd"'."\n"
+ .' },'."\n"
+ .' "Metrics": {'."\n"
+ .' "cer": 0.175'."\n"
+ .' }'."\n"
+ .' }, {'."\n"
+ .' "Dataset": {'."\n"
+ .' "Uri": "oss://xxxx/"'."\n"
+ .' },'."\n"
+ .' "Metrics": {'."\n"
+ .' "cer": 0.172'."\n"
+ .' }'."\n"
+ .' }]'."\n"
+ .'}',
+ ],
+ 'TrainingSpec' => [
+ 'title' => '训练配置',
+ 'description' => '训练配置。用于微调、增量训练的配置。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ 'InferenceSpec' => [
+ 'title' => '描述如何应用于下游的推理应用',
+ 'description' => '描述如何应用于下游的推理服务:例如描述EAS的processor、container等。例如:'."\n"
+ .'`{'."\n"
+ .' "processor": "tensorflow_gpu_1.12"'."\n"
+ .'}`',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "processor": "tensorflow_gpu_1.12"'."\n"
+ .'}',
+ ],
+ 'SourceType' => [
+ 'title' => '来源类型',
+ 'description' => '模型来源类型,取值如下:'."\n"
+ .'- Custom(默认值):自定义。'."\n"
+ .'- PAIFlow:PAI工作流。'."\n"
+ .'- TrainingService:PAI训练服务。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PAIFlow' => 'PAIFlow',
+ 'Custom' => 'Custom',
+ 'TrainingService' => 'TrainingService',
+ ],
+ 'example' => 'PAIFlow',
+ ],
+ 'SourceId' => [
+ 'title' => '来源ID',
+ 'description' => '来源ID。'."\n"
+ .'* 来源类型为Custom时,该字段不做限制。'."\n"
+ .'* 来源为PAIFlow、TrainingService时,格式为 '."\n"
+ .'```'."\n"
+ .'region=<region_id>,workspaceId=<workspace_id>,kind=<kind>,id=<id>'."\n"
+ .'```'."\n"
+ .'其中:'."\n"
+ .'- region为阿里云区域ID。'."\n"
+ .'- workspaceId为工作空间ID。'."\n"
+ .'- kind:为类型。取值:PipelineRun(PAIFlow工作流);ServiceJob(训练服务)。'."\n"
+ .'- id:为唯一标识。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'region=cn-shanghai,workspaceId=13**,kind=PipelineRun,id=run-sakdb****jdf',
+ ],
+ 'ApprovalStatus' => [
+ 'title' => '准入状态',
+ 'description' => '准入状态,取值如下:'."\n"
+ .'- Pending:待定。'."\n"
+ .'- Approved:允许上线。'."\n"
+ .'- Rejected:不允许上线。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Approved',
+ ],
+ 'EvaluationSpec' => [
+ 'title' => '评测配置',
+ 'description' => '评测配置。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ 'CompressionSpec' => [
+ 'title' => '压缩配置',
+ 'description' => '压缩配置。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ 'ExtraInfo' => [
+ 'title' => '其它信息',
+ 'description' => '其它信息。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "CoverUris": ["https://e***u.oss-cn-hangzhou.aliyuncs.com/st****017.preview.png"],'."\n"
+ .' "TrainedWords": ["albedo_overlord"]'."\n"
+ .'}',
+ ],
+ 'DistillationSpec' => [
+ 'description' => '蒸馏配置。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-dfs1****5c',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '21645FCD-BAB9-5742-89AE-AEB27****B2E',
+ ],
+ 'VersionName' => [
+ 'title' => '模型名称',
+ 'description' => '模型版本。',
+ 'type' => 'string',
+ 'example' => '0.1.0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"21645FCD-BAB9-5742-89AE-AEB27****B2E\\",\\n \\"VersionName\\": \\"0.1.0\\"\\n}","type":"json"}]',
+ 'title' => '创建模型版本',
+ ],
+ 'UpdateModelVersion' => [
+ 'summary' => '更新模型版本。',
+ 'path' => '/api/v1/models/{ModelId}/versions/{VersionName}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133781',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'VersionDescription' => [
+ 'title' => '模型版本描述',
+ 'description' => '模型版本描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '通用情感分析。',
+ ],
+ 'Metrics' => [
+ 'title' => '指标',
+ 'description' => '模型指标。'."\n"
+ .'序列化后长度限制为8192。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "Results": [{'."\n"
+ .' "Dataset": {'."\n"
+ .' "DatasetId": "d-sdkjanksaklerhfd"'."\n"
+ .' },'."\n"
+ .' "Metrics": {'."\n"
+ .' "cer": 0.175'."\n"
+ .' }'."\n"
+ .' }, {'."\n"
+ .' "Dataset": {'."\n"
+ .' "Uri": "oss://xxxx/"'."\n"
+ .' },'."\n"
+ .' "Metrics": {'."\n"
+ .' "cer": 0.172'."\n"
+ .' }'."\n"
+ .' }]'."\n"
+ .'}',
+ ],
+ 'TrainingSpec' => [
+ 'title' => '描述训练配置',
+ 'description' => '训练配置。用于微调,增量训练的配置。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ 'InferenceSpec' => [
+ 'title' => '描述下游的推理应用',
+ 'description' => '描述如何应用于下游的推理应用:例如描述EAS的processor、container等。例如:'."\n"
+ .'`{'."\n"
+ .' "processor": "tensorflow_gpu_1.12"'."\n"
+ .'}`。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "processor": "tensorflow_gpu_1.12"'."\n"
+ .'}',
+ ],
+ 'Options' => [
+ 'title' => '扩展字段。',
+ 'description' => '扩展字段,JsonString类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ 'SourceType' => [
+ 'title' => '来源类型',
+ 'description' => '模型来源类型,取值如下:'."\n"
+ .'- Custom(默认值):自定义。'."\n"
+ .'- PAIFlow:PAI工作流。'."\n"
+ .'- TrainingService:PAI训练服务。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PAIFlow' => 'PAIFlow',
+ 'Custom' => 'Custom',
+ 'TrainingService' => 'TrainingService',
+ ],
+ 'example' => 'PAIFlow',
+ ],
+ 'SourceId' => [
+ 'title' => '来源ID',
+ 'description' => '来源ID。'."\n"
+ .'* 来源类型为Custom时,该字段不做限制。'."\n"
+ .'* 来源为PAIFlow、TrainingService时,格式为 '."\n"
+ .'```'."\n"
+ .'region=<region_id>,workspaceId=<workspace_id>,kind=<kind>,id=<id>'."\n"
+ .'```'."\n"
+ .'其中:'."\n"
+ .'- region为阿里云区域ID。'."\n"
+ .'- workspaceId为工作空间ID。'."\n"
+ .'- kind:为类型。取值:PipelineRun(PAIFlow工作流);ServiceJob(训练服务)。'."\n"
+ .'- id:为唯一标识。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'region=cn-shanghai,workspaceId=13**,kind=PipelineRun,id=run-sakdb****jdf',
+ ],
+ 'ApprovalStatus' => [
+ 'title' => '准入状态',
+ 'description' => '准入状态,取值如下:'."\n"
+ .'- Pending:待定。'."\n"
+ .'- Approved:允许上线。'."\n"
+ .'- Rejected:不允许上线。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Approved',
+ ],
+ 'EvaluationSpec' => [
+ 'title' => '评测配置',
+ 'description' => '评测配置。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ 'CompressionSpec' => [
+ 'title' => '压缩配置',
+ 'description' => '压缩配置。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ 'ExtraInfo' => [
+ 'title' => '其它信息',
+ 'description' => '其它信息。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "CoverUris": ["https://e***u.oss-cn-hangzhou.aliyuncs.com/st****017.preview.png"],'."\n"
+ .' "TrainedWords": ["albedo_overlord"]'."\n"
+ .'}',
+ ],
+ 'DistillationSpec' => [
+ 'description' => '蒸馏配置。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-dfs1****5c',
+ ],
+ ],
+ [
+ 'name' => 'VersionName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型版本',
+ 'description' => '模型版本。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '0.1.0',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D5BFFEE3-6025-443F-8A03-02D61***C4B9',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D5BFFEE3-6025-443F-8A03-02D61***C4B9\\"\\n}","type":"json"}]',
+ 'title' => '更新模型版本',
+ ],
+ 'GetModelVersion' => [
+ 'summary' => '获取模型版本。',
+ 'path' => '/api/v1/models/{ModelId}/versions/{VersionName}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133779',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-rbvg5wzljz****ks92',
+ ],
+ ],
+ [
+ 'name' => 'VersionName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型版本',
+ 'description' => '模型版本。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '1.0.1',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'GmtCreateTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建模型UTC时间,格式ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-30T12:51:33.028Z',
+ ],
+ 'GmtModifiedTime' => [
+ 'title' => '最后更新时间',
+ 'description' => '最后更新模型UTC时间,格式ISO8601。',
+ 'type' => 'string',
+ 'example' => '2021-01-30T12:51:33.028Z',
+ ],
+ 'UserId' => [
+ 'title' => '创建者ID',
+ 'description' => '用户ID。',
+ 'type' => 'string',
+ 'example' => '1234567890******',
+ ],
+ 'OwnerId' => [
+ 'title' => '云账号ID',
+ 'description' => '阿里云账号ID。',
+ 'type' => 'string',
+ 'example' => '1234567890******',
+ ],
+ 'Uri' => [
+ 'title' => '模型Uri',
+ 'description' => '模型版本URI,即模型存储位置。可能值为:'."\n"
+ .'- 模型的HTTP(S)地址,例如:`https://myweb.com/mymodel.tar.gz`。'."\n"
+ .'- 如果模型存储在OSS中,格式为`oss://<bucket>.<endpoint>/object`。其中endpoint配置,请参见[访问域名和数据中心](~~31837~~),例如:`oss://mybucket.oss-cn-beijing.aliyuncs.com/mypath/`。',
+ 'type' => 'string',
+ 'example' => 'oss://t***.cn-beijing.oss.aliyuncs.com/mod**/',
+ ],
+ 'Labels' => [
+ 'title' => '模型版本标签',
+ 'description' => '模型版本标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ '$ref' => '#/components/schemas/Label',
+ ],
+ ],
+ 'Options' => [
+ 'title' => '扩展字段',
+ 'description' => '扩展字段。JsonString类型。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ 'VersionName' => [
+ 'title' => '版本名',
+ 'description' => '模型版本。',
+ 'type' => 'string',
+ 'example' => '0.1.0',
+ ],
+ 'VersionDescription' => [
+ 'title' => '版本描述',
+ 'description' => '模型版本描述。',
+ 'type' => 'string',
+ 'example' => '通用情感分析。',
+ ],
+ 'TrainingSpec' => [
+ 'title' => '训练配置',
+ 'description' => '训练配置。用于微调,增量训练的配置。',
+ 'type' => 'object',
+ 'example' => '{}',
+ ],
+ 'InferenceSpec' => [
+ 'title' => '下游部署配置',
+ 'description' => '描述如何应用于下游的推理服务:例如描述EAS的processor、container等。',
+ 'type' => 'object',
+ 'example' => '{'."\n"
+ .' "Processor": "tensorflow_gpu_1.12"'."\n"
+ .'}',
+ ],
+ 'FormatType' => [
+ 'title' => '模型格式',
+ 'description' => '模型格式,可能值:'."\n"
+ .'- OfflineModel'."\n"
+ .'- SavedModel'."\n"
+ .'- Keras H5'."\n"
+ .'- Frozen Pb'."\n"
+ .'- Caffe Prototxt'."\n"
+ .'- TorchScript'."\n"
+ .'- XGBoost'."\n"
+ .'- PMML'."\n"
+ .'- AlinkModel'."\n"
+ .'- ONNX',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'OfflineModel' => 'OfflineModel',
+ 'SavedModel' => 'SavedModel',
+ 'Keras H5' => 'Keras H5',
+ 'Frozen Pb' => 'Frozen Pb',
+ 'Caffe Prototxt' => 'Caffe Prototxt',
+ 'TorchScript' => 'TorchScript',
+ 'XGBoost' => 'XGBoost',
+ 'PMML' => 'PMML',
+ 'AlinkModel' => 'AlinkModel',
+ 'ONNX' => 'ONNX',
+ ],
+ 'example' => 'SavedModel',
+ ],
+ 'FrameworkType' => [
+ 'title' => '模型框架',
+ 'description' => '模型框架,可能值:'."\n"
+ .'- Pytorch'."\n"
+ .'-XGBoost'."\n"
+ .'- Keras'."\n"
+ .'- Caffe'."\n"
+ .'- Alink'."\n"
+ .'- Xflow'."\n"
+ .'- TensorFlow',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Pytorch' => 'Pytorch',
+ 'XGBoost' => 'XGBoost',
+ 'Keras' => 'Keras',
+ 'Caffe' => 'Caffe',
+ 'Alink' => 'Alink',
+ 'Xflow' => 'Xflow',
+ 'TensorFlow' => 'TensorFlow',
+ ],
+ 'example' => 'TensorFlow',
+ ],
+ 'SourceType' => [
+ 'title' => '来源类型',
+ 'description' => '模型来源类型,可能值:'."\n"
+ .'- Custom:自定义。'."\n"
+ .'- PAIFlow:PAI工作流。'."\n"
+ .'- TrainingService:PAI训练服务。',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'PAIFlow' => 'PAIFlow',
+ 'Custom' => 'Custom',
+ 'TrainingService' => 'TrainingService',
+ ],
+ 'example' => 'PAIFlow',
+ ],
+ 'SourceId' => [
+ 'title' => '来源ID',
+ 'description' => '来源ID。'."\n"
+ .'* 来源类型为Custom时,该字段不做限制。'."\n"
+ .'* 来源为PAIFlow、TrainingService时,格式为 '."\n"
+ .'```'."\n"
+ .'region=<region_id>,workspaceId=<workspace_id>,kind=<kind>,id=<id>'."\n"
+ .'```'."\n"
+ .'其中:'."\n"
+ .'- region为阿里云区域ID。'."\n"
+ .'- workspaceId为工作空间ID。'."\n"
+ .'- kind:为类型。取值:PipelineRun(PAIFlow工作流);ServiceJob(训练服务)。'."\n"
+ .'- id:为唯一标识。',
+ 'type' => 'string',
+ 'example' => 'region=cn-shanghai,workspaceId=13**,kind=PipelineRun,id=run-sakdb****jdf',
+ ],
+ 'ApprovalStatus' => [
+ 'title' => '准入状态',
+ 'description' => '准入状态,取值如下:'."\n"
+ .'- Pending:待定。'."\n"
+ .'- Approved:允许上线。'."\n"
+ .'- Rejected:不允许上线。',
+ 'type' => 'string',
+ 'example' => 'Approved',
+ ],
+ 'EvaluationSpec' => [
+ 'title' => '评测配置',
+ 'description' => '评测配置',
+ 'type' => 'object',
+ 'example' => '{}',
+ ],
+ 'CompressionSpec' => [
+ 'title' => '压缩配置',
+ 'description' => '压缩配置',
+ 'type' => 'object',
+ 'example' => '{}',
+ ],
+ 'ExtraInfo' => [
+ 'title' => '其它信息',
+ 'description' => '其它信息。',
+ 'type' => 'object',
+ 'example' => '{'."\n"
+ .' "CoverUris": ["https://e***u.oss-cn-hangzhou.aliyuncs.com/st****017.preview.png"],'."\n"
+ .' "TrainedWords": ["albedo_overlord"]'."\n"
+ .'}',
+ ],
+ 'Metrics' => [
+ 'title' => '指标',
+ 'description' => '指标',
+ 'type' => 'object',
+ 'example' => '{}',
+ ],
+ 'DistillationSpec' => [
+ 'description' => '蒸馏配置。',
+ 'type' => 'object',
+ 'example' => '{}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"GmtCreateTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"UserId\\": \\"1234567890******\\",\\n \\"OwnerId\\": \\"1234567890******\\",\\n \\"Uri\\": \\"oss://t***.cn-beijing.oss.aliyuncs.com/mod**/\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"Options\\": \\"{}\\",\\n \\"VersionName\\": \\"0.1.0\\",\\n \\"VersionDescription\\": \\"通用情感分析。\\",\\n \\"TrainingSpec\\": {},\\n \\"InferenceSpec\\": {\\n \\"Processor\\": \\"tensorflow_gpu_1.12\\"\\n },\\n \\"FormatType\\": \\"SavedModel\\",\\n \\"FrameworkType\\": \\"TensorFlow\\",\\n \\"SourceType\\": \\"PAIFlow\\",\\n \\"SourceId\\": \\"region=cn-shanghai,workspaceId=13**,kind=PipelineRun,id=run-sakdb****jdf\\",\\n \\"ApprovalStatus\\": \\"Approved\\",\\n \\"EvaluationSpec\\": {},\\n \\"CompressionSpec\\": {},\\n \\"ExtraInfo\\": {\\n \\"CoverUris\\": [\\n \\"https://e***u.oss-cn-hangzhou.aliyuncs.com/st****017.preview.png\\"\\n ],\\n \\"TrainedWords\\": [\\n \\"albedo_overlord\\"\\n ]\\n },\\n \\"Metrics\\": {},\\n \\"DistillationSpec\\": {}\\n}","type":"json"}]',
+ 'title' => '获取模型版本',
+ ],
+ 'ListModelVersions' => [
+ 'summary' => '获取模型版本列表。',
+ 'path' => '/api/v1/models/{ModelId}/versions',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133782',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '页数',
+ 'description' => '模型版本列表的页码。起始值为1,默认为1。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页大小',
+ 'description' => '分页查询时设置的每页行数。默认为10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '顺序',
+ 'description' => '分页查询时,对指定的排序字段进行升序或降序。默认ASC。'."\n"
+ .'- ASC:升序。'."\n"
+ .'- DESC:降序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DESC',
+ ],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序依据',
+ 'description' => '分页查询时的排序字段。目前GmtCreateTime字段用于排序。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GmtCreateTime',
+ ],
+ ],
+ [
+ 'name' => 'VersionName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '模型版本名称',
+ 'description' => '配置模型版本名称,来过滤模型版本列表。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.0.1',
+ ],
+ ],
+ [
+ 'name' => 'FormatType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '模型格式类型',
+ 'description' => '配置模型格式,来过滤模型版本列表。取值如下:'."\n"
+ .'- OfflineModel'."\n"
+ .'- SavedModel'."\n"
+ .'- Keras H5'."\n"
+ .'- Frozen Pb'."\n"
+ .'- Caffe Prototxt'."\n"
+ .'- TorchScript'."\n"
+ .'- XGBoost'."\n"
+ .'- PMML'."\n"
+ .'- AlinkModel'."\n"
+ .'- ONNX',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'OfflineModel' => 'OfflineModel',
+ 'SavedModel' => 'SavedModel',
+ 'Keras H5' => 'Keras H5',
+ 'Frozen Pb' => 'Frozen Pb',
+ 'Caffe Prototxt' => 'Caffe Prototxt',
+ 'TorchScript' => 'TorchScript',
+ 'XGBoost' => 'XGBoost',
+ 'PMML' => 'PMML',
+ 'AlinkModel' => 'AlinkModel',
+ 'ONNX' => 'ONNX',
+ ],
+ 'example' => 'SavedModel',
+ ],
+ ],
+ [
+ 'name' => 'FrameworkType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '模型框架',
+ 'description' => '配置模型框架,来过滤模型版本列表,取值如下:'."\n"
+ .'- Pytorch'."\n"
+ .'-XGBoost'."\n"
+ .'- Keras'."\n"
+ .'- Caffe'."\n"
+ .'- Alink'."\n"
+ .'- Xflow'."\n"
+ .'- TensorFlow',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Pytorch' => 'Pytorch',
+ 'XGBoost' => 'XGBoost',
+ 'Keras' => 'Keras',
+ 'Caffe' => 'Caffe',
+ 'Alink' => 'Alink',
+ 'Xflow' => 'Xflow',
+ 'TensorFlow' => 'TensorFlow',
+ ],
+ 'example' => 'TensorFlow',
+ ],
+ ],
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-dajbueh******',
+ ],
+ ],
+ [
+ 'name' => 'SourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '来源类型',
+ 'description' => '根据模型来源类型,来过滤模型版本列表。取值如下:'."\n"
+ .'- Custom(默认值):自定义。'."\n"
+ .'- PAIFlow:PAI工作流。'."\n"
+ .'- TrainingService:PAI训练服务。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PAIFlow' => 'PAIFlow',
+ 'Custom' => 'Custom',
+ 'TrainingService' => 'TrainingService',
+ ],
+ 'example' => 'PAIFlow',
+ ],
+ ],
+ [
+ 'name' => 'SourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '来源ID',
+ 'description' => '来源ID。'."\n"
+ .'* 来源类型为Custom时,该字段不做限制。'."\n"
+ .'* 来源为PAIFlow、TrainingService时,格式为 '."\n"
+ .'```'."\n"
+ .'region=<region_id>,workspaceId=<workspace_id>,kind=<kind>,id=<id>'."\n"
+ .'```'."\n"
+ .'其中:'."\n"
+ .'- region为阿里云区域ID。'."\n"
+ .'- workspacceId为工作空间ID。'."\n"
+ .'- kind:为类型。取值:PipelineRun(PAIFlow工作流);ServiceJob(训练服务)。'."\n"
+ .'- id:为唯一标识。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'region=cn-shanghai,workspaceId=13**,kind=PipelineRun,id=run-sakdb****jdf',
+ ],
+ ],
+ [
+ 'name' => 'Label',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '标签串',
+ 'description' => '标签串。用于列表过滤,标签中Key或Value中,有指定字符串的,都会被过滤出来。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1',
+ ],
+ ],
+ [
+ 'name' => 'ApprovalStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '准入状态',
+ 'description' => '根据准入状态来过滤模型版本列表,取值如下:'."\n"
+ .'- Pending:待定。'."\n"
+ .'- Approved:允许上线。'."\n"
+ .'- Rejected:不允许上线。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Approved',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC***3C83E',
+ ],
+ 'Versions' => [
+ 'title' => '模型版本列表',
+ 'description' => '模型版本列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '模型版本。',
+ '$ref' => '#/components/schemas/ModelVersion',
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '总数',
+ 'description' => '模型版本列表总数。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '15',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC***3C83E\\",\\n \\"Versions\\": [\\n {\\n \\"VersionName\\": \\"1.0.0\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-21T17:12:35Z\\",\\n \\"UserId\\": \\"155770209******\\",\\n \\"OwnerId\\": \\"155770209******\\",\\n \\"Uri\\": \\"oss://bucket/path-to-model\\",\\n \\"VersionDescription\\": \\"\\",\\n \\"FormatType\\": \\"SavedModel\\",\\n \\"FrameworkType\\": \\"TensorFlow\\",\\n \\"Options\\": \\"\\",\\n \\"SourceType\\": \\"\\",\\n \\"SourceId\\": \\"\\",\\n \\"ApprovalStatus\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"Value\\": \\"\\",\\n \\"Key\\": \\"\\"\\n }\\n ],\\n \\"Metrics\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"TrainingSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"InferenceSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"EvaluationSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"CompressionSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"ExtraInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"DistillationSpec\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"TotalCount\\": 15\\n}","type":"json"}]',
+ 'title' => '获取模型版本列表',
+ ],
+ 'DeleteModelVersion' => [
+ 'summary' => '删除模型版本。',
+ 'path' => '/api/v1/models/{ModelId}/versions/{VersionName}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133784',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-rbvg5wzljz****ks92',
+ ],
+ ],
+ [
+ 'name' => 'VersionName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型版本',
+ 'description' => '模型版本。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '0.1.1',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '删除模型版本',
+ ],
+ 'CreateModelLabels' => [
+ 'summary' => '为模型创建标签。',
+ 'path' => '/api/v1/models/{ModelId}/labels',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133787',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-1dkasjfhds23dft',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Labels' => [
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'F81D9EC0-1872-50F5-A96C-A0647D****1D',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F81D9EC0-1872-50F5-A96C-A0647D****1D\\"\\n}","type":"json"}]',
+ 'title' => '创建模型标签',
+ ],
+ 'DeleteModelLabels' => [
+ 'summary' => '删除模型标签。',
+ 'path' => '/api/v1/models/{ModelId}/labels',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133789',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-d8dfd****sjfd',
+ ],
+ ],
+ [
+ 'name' => 'LabelKeys',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '需要删除的标签Keys',
+ 'description' => '需要删除的标签键。多项之间使用半角逗号(,)分隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1,key2',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '删除模型标签',
+ ],
+ 'CreateModelVersionLabels' => [
+ 'summary' => '为模型版本创建标签。',
+ 'path' => '/api/v1/models/{ModelId}/versions/{VersionName}/labels',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133790',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Labels' => [
+ 'title' => '版本标签',
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'required' => false,
+ '$ref' => '#/components/schemas/Label',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-rbvg5wzljz****ks92',
+ ],
+ ],
+ [
+ 'name' => 'VersionName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型版本',
+ 'description' => '模型版本。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '0.1.1',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '创建模型版本标签',
+ ],
+ 'DeleteModelVersionLabels' => [
+ 'summary' => '删除模型版本标签。',
+ 'path' => '/api/v1/models/{ModelId}/versions/{VersionName}/labels',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133792',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5P2NR',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型ID',
+ 'description' => '模型ID。如何获取模型ID,请参见[ListModels](~~461944~~)。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'model-d8dfd****sjfd',
+ ],
+ ],
+ [
+ 'name' => 'VersionName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '模型版本',
+ 'description' => '模型版本。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '0.1.1',
+ ],
+ ],
+ [
+ 'name' => 'LabelKeys',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '版本标签Keys',
+ 'description' => '需要删除的标签键。多项之间使用半角逗号(,)分隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1,key2',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\"\\n}","type":"json"}]',
+ 'title' => '删除模型版本标签',
+ ],
+ 'SetUserConfigs' => [
+ 'summary' => '更新用户配置。',
+ 'path' => '/api/v1/userconfigs',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '194786',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnDVAH75',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Configs' => [
+ 'title' => '配置列表',
+ 'description' => '配置列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'ConfigKey' => [
+ 'title' => '配置键',
+ 'description' => '配置键',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'customizePAIAssumedRole',
+ ],
+ 'ConfigValue' => [
+ 'title' => '配置值',
+ 'description' => '配置值',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'role',
+ ],
+ 'CategoryName' => [
+ 'description' => '分类,目前只支持DataPrivacyConfig。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'DataPrivacyConfig',
+ ],
+ 'Scope' => [
+ 'description' => '范围,目前支持subUser、owner。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'owner',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'dsjk****dfjksdf',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"dsjk****dfjksdf\\"\\n}","type":"json"}]',
+ 'title' => '更新用户配置',
+ ],
+ 'DeleteUserConfig' => [
+ 'summary' => '删除用户配置。',
+ 'path' => '/api/v1/userconfigs/{CategoryName}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '194787',
+ 'abilityTreeNodes' => [
+ 'FEATURElearn1N0SUT',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ConfigKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '配置键',
+ 'description' => '配置键,目前只支持customizePAIAssumedRole。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tempStoragePath',
+ ],
+ ],
+ [
+ 'name' => 'CategoryName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '分类,目前只支持DataPrivacyConfig。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'DataPrivacyConfig',
+ ],
+ ],
+ [
+ 'name' => 'Scope',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '范围,目前支持subUser、owner。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'subUser',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'dsjk****dfjksdf',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"dsjk****dfjksdf\\"\\n}","type":"json"}]',
+ 'title' => '删除用户配置',
+ ],
+ 'ListUserConfigs' => [
+ 'summary' => '获取用户配置。',
+ 'path' => '/api/v1/userconfigs',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '194785',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnDVAH75',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ConfigKeys',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '配置键',
+ 'description' => '配置键的集合,目前只支持customizePAIAssumedRole。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'customizePAIAssumedRole',
+ ],
+ ],
+ [
+ 'name' => 'CategoryNames',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '分类,目前只支持DataPrivacyConfig。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'DataPrivacyConfig',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID',
+ 'type' => 'string',
+ 'example' => 'sdjksdk-******-dsfds',
+ ],
+ 'Configs' => [
+ 'title' => '配置列表',
+ 'description' => '配置列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'ConfigKey' => [
+ 'title' => '配置键',
+ 'description' => '配置键',
+ 'type' => 'string',
+ 'example' => 'customizePAIAssumedRole',
+ ],
+ 'ConfigValue' => [
+ 'title' => '配置值',
+ 'description' => '配置值',
+ 'type' => 'string',
+ 'example' => 'role',
+ ],
+ 'CategoryName' => [
+ 'description' => '分类,目前只支持DataPrivacyConfig。',
+ 'type' => 'string',
+ 'example' => 'DataPrivacyConfig',
+ ],
+ 'Scope' => [
+ 'description' => '范围,目前支持subUser、owner。',
+ 'type' => 'string',
+ 'example' => 'subUser',
+ ],
+ ],
+ ],
+ ],
+ 'TotalCount' => [
+ 'title' => '返回数量',
+ 'description' => '返回数量',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '15',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"sdjksdk-******-dsfds\\",\\n \\"Configs\\": [\\n {\\n \\"ConfigKey\\": \\"customizePAIAssumedRole\\",\\n \\"ConfigValue\\": \\"role\\",\\n \\"CategoryName\\": \\"DataPrivacyConfig\\",\\n \\"Scope\\": \\"subUser\\"\\n }\\n ],\\n \\"TotalCount\\": 15\\n}","type":"json"}]',
+ 'title' => '获取用户配置',
+ ],
+ 'ListProducts' => [
+ 'summary' => '列举产品',
+ 'path' => '/api/v1/products',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '14207',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnOTS2AE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ProductCodes',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '逗号分割的商品 code',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PAI_isolate',
+ ],
+ ],
+ [
+ 'name' => 'ServiceCodes',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '逗号分割的服务 code',
+ 'type' => 'string',
+ 'example' => 'oss',
+ ],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ 'default' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求 id',
+ 'type' => 'string',
+ 'example' => '1e195c5116124202371861018d5bde',
+ ],
+ 'Products' => [
+ 'title' => '产品列表',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'PurchaseUrl' => [
+ 'title' => '购买链接',
+ 'type' => 'string',
+ 'example' => 'https://common-buy.aliy',
+ ],
+ 'ProductCode' => [
+ 'title' => '商品 code',
+ 'type' => 'string',
+ 'example' => 'DataWorks_isolate',
+ ],
+ 'IsPurchased' => [
+ 'title' => '是否已购买',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'HasPermissionToPurchase' => [
+ 'title' => 'Whether user has permission to purchase',
+ 'type' => 'boolean',
+ ],
+ 'ProductId' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'Services' => [
+ 'title' => '服务列表',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'IsOpen' => [
+ 'title' => '是否开通',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'OpenUrl' => [
+ 'title' => '开通链接',
+ 'type' => 'string',
+ ],
+ 'ServiceCode' => [
+ 'title' => '服务Code',
+ 'type' => 'string',
+ 'example' => 'oss',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '',
+ ],
+ 'CreateProductOrders' => [
+ 'summary' => '购买产品,目前只支持购买DataWorks后付费、OSS后付费、PAI后付费、MaxCompute后付费。',
+ 'path' => '/api/v1/productorders',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '75124',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnOTS2AE',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '购买请求',
+ 'type' => 'object',
+ 'properties' => [
+ 'AutoPay' => [
+ 'title' => '是否自动购买所有产品',
+ 'description' => '是否自动购买(支付)Products参数中传入的所有产品。'."\n"
+ .'- true:自动支付。'."\n"
+ .'- false:不自动支付。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'Products' => [
+ 'description' => '需要购买的产品列表,使用逗号分割。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '需要购买的产品。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AutoRenew' => [
+ 'description' => '是否自动续费。'."\n"
+ .'- true:自动续费。'."\n"
+ .'- false:不自动续费。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'example' => 'true',
+ ],
+ 'ProductCode' => [
+ 'description' => '产品code,目前支持的如下code:'."\n"
+ ."\n"
+ .'- DataWorks_share:Dataworks后付费商品。'."\n"
+ .'- MaxCompute_share:MaxCompute后付费商品。'."\n"
+ .'- PAI_share:PAI后付费商品。'."\n"
+ .'- OSS_share:OSS后付费商品。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'MaxCompute_share' => 'MaxCompute_share',
+ 'OSS_share' => 'OSS_share',
+ 'DataWorks_share' => 'DataWorks_share',
+ 'PAI_share' => 'PAI_share',
+ ],
+ 'example' => 'DataWorks_share',
+ ],
+ 'ChargeType' => [
+ 'description' => '付费类型,目前支持POSTPAY。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'POSTPAY' => 'POSTPAY',
+ ],
+ 'example' => 'POSTPAY',
+ ],
+ 'OrderType' => [
+ 'description' => '订单类型,目前只支持BUY。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'BUY' => 'BUY',
+ ],
+ 'example' => 'BUY',
+ ],
+ 'PricingCycle' => [
+ 'description' => '计价单位,目前支持如下值'."\n"
+ .'- Month:按月计价,DataWorks_share只支持Month。'."\n"
+ .'- Hour:按小时计价,OSS_share、MaxCompute_share只支持Hour。',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Month' => 'Month',
+ 'Hour' => 'Hour',
+ ],
+ 'example' => 'Month',
+ ],
+ 'Duration' => [
+ 'description' => '购买时长,与pricingCycle配合使用,目前只支持1。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'InstanceProperties' => [
+ 'description' => '实例属性信息列表。'."\n"
+ .'- DataWorks_share:'."\n"
+ .'[ {'."\n"
+ .'"Code": "region",'."\n"
+ .'"Value": "cn-shanghai"'."\n"
+ .'}'."\n"
+ .']'."\n"
+ .'- OSS_share:'."\n"
+ .'[ {'."\n"
+ .'"Code": "commodity_type",'."\n"
+ .'"Value": "oss",'."\n"
+ .'"Name": "对象存储OSS"'."\n"
+ .'},'."\n"
+ .'{'."\n"
+ .'"Code": "ord_time",'."\n"
+ .'"Value": "1:Hour",'."\n"
+ .'"Name": "1小时"'."\n"
+ .'}'."\n"
+ .']'."\n"
+ .'- PAI_share: 无'."\n"
+ .'- 国内bid MaxCompute_share:'."\n"
+ .'['."\n"
+ .'{'."\n"
+ .'"Code": "region",'."\n"
+ .'"Value": "cn-hangzhou"'."\n"
+ .'},'."\n"
+ .'{'."\n"
+ .'"Code": "odps_specification_type",'."\n"
+ .'"Value": "OdpsStandard"'."\n"
+ .'},'."\n"
+ .'{'."\n"
+ .'"Code": "ord_time",'."\n"
+ .'"Value": "1:Hour"'."\n"
+ .'}'."\n"
+ .']'."\n"
+ .'- 国际bid MaxCompute_share:'."\n"
+ .'['."\n"
+ .'{'."\n"
+ .'"Code": "region",'."\n"
+ .'"Value": "cn-hangzhou"'."\n"
+ .'},'."\n"
+ .'{'."\n"
+ .'"Code": "ord_time",'."\n"
+ .'"Value": "1:Hour"'."\n"
+ .'}'."\n"
+ .']',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实例属性信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '实例属性Code。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'commodity_type',
+ ],
+ 'Name' => [
+ 'description' => '实例属性Name。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '对象存储OSS',
+ ],
+ 'Value' => [
+ 'description' => '实例属性Value。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'oss',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求 ID',
+ 'type' => 'string',
+ 'example' => 'ksdjf-jksd-*****slkdjf',
+ ],
+ 'OrderId' => [
+ 'title' => '订单id',
+ 'description' => '购买订单ID。',
+ 'type' => 'string',
+ 'example' => '210292536260646',
+ ],
+ 'Message' => [
+ 'title' => '消息',
+ 'description' => '购买返回消息。',
+ 'type' => 'string',
+ 'example' => '正常',
+ ],
+ 'BuyProductRequestId' => [
+ 'title' => '产品购买请求id',
+ 'description' => '产品购买请求ID。',
+ 'type' => 'string',
+ 'example' => '3ed6a882-0d85-4dd8-ad36-cd8d74ab9fdb',
+ ],
+ 'ProductIds' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"ksdjf-jksd-*****slkdjf\\",\\n \\"OrderId\\": \\"210292536260646\\",\\n \\"Message\\": \\"正常\\",\\n \\"BuyProductRequestId\\": \\"3ed6a882-0d85-4dd8-ad36-cd8d74ab9fdb\\",\\n \\"ProductIds\\": [\\n \\"\\"\\n ]\\n}","errorExample":""},{"type":"xml","example":"<CreateProductOrdersResponse>\\n <requestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</requestId>\\n <OrderId>210292536260646</OrderId>\\n <Message>正常</Message>\\n <BuyProductRequestId>3ed6a882-0d85-4dd8-ad36-cd8d74ab9fdb</BuyProductRequestId>\\n</CreateProductOrdersResponse>","errorExample":""}]',
+ 'title' => '购买产品',
+ ],
+ 'AcceptDataworksEvent' => [
+ 'summary' => 'PAI系统用于接收并处理DataWorks发送的系统事件消息。',
+ 'path' => '/api/v1/workspaces/action/acceptdataworksevent',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '259201',
+ 'abilityTreeNodes' => [
+ 'FEATURElearn8QX455',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'MessageId' => [
+ 'description' => 'DataWorks 开放消息的消息 ID。当触发扩展点事件后,可以从接收到的事件消息中获取消息 ID。消息格式,请参见[消息格式](~~436911~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '539306ba-*****-41a0-****-6dc81060985c',
+ ],
+ 'Data' => [
+ 'description' => '消息对应的事件内容。',
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{"eventCode":"d****ct","projectId":"8***6","tenantId":4*******8,"operator":"115*****901"}',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回结构体。',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求 ID。',
+ 'type' => 'string',
+ 'example' => 'ADF6D849-*****-7E7030F0CE53',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ADF6D849-*****-7E7030F0CE53\\"\\n}","type":"json"}]',
+ 'title' => '接收并处理DataWorks系统事件',
+ 'description' => '此接口仅限于内部系统调用,外部用户无法使用',
+ ],
+ 'ChangeResourceGroup' => [
+ 'summary' => '更改资源ID对应的资源组。',
+ 'path' => '/resourcegroups/action/changeresourcegroup',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '249844',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZBMZHZ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '请求body。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceId' => [
+ 'description' => '资源ID。这里的资源ID等于工作空间ID,如何获取工作空间ID,请参见 [ListWorkspaces](~~449124~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12**56',
+ ],
+ 'NewResourceGroupId' => [
+ 'description' => '新的资源组ID。如何获取资源组ID,请参见[查看资源组基本信息](~~151181~~)',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-df********534dy',
+ ],
+ 'ResourceType' => [
+ 'description' => '资源组类型:必须填workspace。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'workspace',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '6****27E-****-5144-A002-89C****8660F',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"6****27E-****-5144-A002-89C****8660F\\"\\n}","type":"json"}]',
+ 'title' => '更改资源组',
+ ],
+ 'ListFeatures' => [
+ 'summary' => '列举特性',
+ 'path' => '/api/v1/features',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '101118',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZO51AS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Names',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '特性名称,以逗号分隔',
+ 'description' => '特性名称,以逗号分隔',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PaiConsole:IntegrateWithWorkspace',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '响应。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '5A14FA81-DD4E-******-6343FE44B941',
+ ],
+ 'TotalCount' => [
+ 'title' => '特性总数',
+ 'description' => '特性总数',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'Features' => [
+ 'title' => '特性列表',
+ 'description' => '特性列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '特性。',
+ 'type' => 'string',
+ 'example' => 'PaiConsole:IntegrateWithWorkspace'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A14FA81-DD4E-******-6343FE44B941\\",\\n \\"TotalCount\\": 2,\\n \\"Features\\": [\\n \\"PaiConsole:IntegrateWithWorkspace\\\\n\\"\\n ]\\n}","type":"json"}]',
+ 'title' => '列举客户特性',
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'aiworkspace.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'aiworkspace.cn-beijing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wulanchabu',
+ 'endpoint' => 'aiworkspace.cn-wulanchabu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'aiworkspace.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'aiworkspace.cn-shanghai.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'aiworkspace.cn-shenzhen.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-heyuan',
+ 'endpoint' => 'aiworkspace.cn-heyuan.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-guangzhou',
+ 'endpoint' => 'aiworkspace.cn-guangzhou.aliyuncs.com ',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'aiworkspace.cn-hongkong.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'aiworkspace.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'aiworkspace.ap-southeast-3.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-5',
+ 'endpoint' => 'aiworkspace.ap-southeast-5.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'aiworkspace.us-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'aiworkspace.us-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'aiworkspace.eu-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-south-1',
+ 'endpoint' => 'aiworkspace.ap-south-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'aiworkspace.cn-shanghai-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2',
+ 'endpoint' => 'aiworkspace.ap-northeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-southeast-1',
+ 'endpoint' => 'aiworkspace.us-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-7',
+ 'endpoint' => 'aiworkspace.ap-southeast-7.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'aiworkspace.me-east-1.aliyuncs.com',
+ ],
+ ],
+];