diff options
| author | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
|---|---|---|
| committer | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
| commit | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (patch) | |
| tree | 0dec367dac6e152161a6f7cc0dba6ebbef1f34a2 /data/zh_cn/paistudio | |
| download | acs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.tar.gz acs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.zip | |
first commitHEADv1.0.0+20260212main
Diffstat (limited to 'data/zh_cn/paistudio')
| -rw-r--r-- | data/zh_cn/paistudio/2020-04-28/api-docs.php | 346 | ||||
| -rw-r--r-- | data/zh_cn/paistudio/2020-11-23/api-docs.php | 280 | ||||
| -rw-r--r-- | data/zh_cn/paistudio/2021-02-02/api-docs.php | 4936 | ||||
| -rw-r--r-- | data/zh_cn/paistudio/2022-01-12/api-docs.php | 12660 |
4 files changed, 18222 insertions, 0 deletions
diff --git a/data/zh_cn/paistudio/2020-04-28/api-docs.php b/data/zh_cn/paistudio/2020-04-28/api-docs.php new file mode 100644 index 0000000..dab89c5 --- /dev/null +++ b/data/zh_cn/paistudio/2020-04-28/api-docs.php @@ -0,0 +1,346 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'RPC', + 'product' => 'PaiStudio', + 'version' => '2020-04-28', + ], + 'directories' => [ + [ + 'id' => 348767, + 'title' => '其他', + 'type' => 'directory', + 'children' => [ + 'AddModel', + 'CheckServiceLinkedRoleForDeleting', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'AddModel' => [ + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + ], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'Uri', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + ], + ], + [ + 'name' => 'FormatType', + 'in' => 'formData', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '10000', + 'minimum' => '0', + ], + ], + [ + 'name' => 'Source', + 'in' => 'formData', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '10000', + 'minimum' => '0', + ], + ], + [ + 'name' => 'StorageType', + 'in' => 'formData', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '10000', + 'minimum' => '0', + ], + ], + [ + 'name' => 'FrameworkType', + 'in' => 'formData', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '10000', + 'minimum' => '0', + ], + ], + [ + 'name' => 'ResourceOwnerType', + 'in' => 'formData', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '10000', + 'minimum' => '0', + ], + ], + [ + 'name' => 'Configuration', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'DefaultParams', + 'in' => 'formData', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'type' => 'string', + ], + 'ErrCode' => [ + 'type' => 'string', + ], + 'Success' => [ + 'type' => 'boolean', + ], + 'ErrMessage' => [ + 'type' => 'string', + ], + 'Data' => [ + 'type' => 'object', + 'properties' => [ + 'Id' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 500 => [ + [ + 'errorCode' => 'DMS1000001', + 'errorMessage' => 'Request failed.', + ], + ], + ], + 'responseDemo' => '', + ], + 'CheckServiceLinkedRoleForDeleting' => [ + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'RoleArn', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + ], + ], + [ + 'name' => 'ServiceName', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + ], + ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + ], + ], + [ + 'name' => 'DeletionTaskId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Deletable' => [ + 'type' => 'boolean', + ], + 'RequestId' => [ + 'type' => 'string', + ], + 'RoleUsages' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Region' => [ + 'type' => 'string', + ], + 'Resources' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [], + 'responseDemo' => '', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-beijing', + 'endpoint' => 'pai.cn-beijing.aliyuncs.com', + ], + [ + 'regionId' => 'cn-wulanchabu', + 'endpoint' => 'pai.cn-wulanchabu.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou', + 'endpoint' => 'pai.cn-hangzhou.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'pai.cn-shanghai.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen', + 'endpoint' => 'pai.cn-shenzhen.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hongkong', + 'endpoint' => 'pai.cn-hongkong.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-1', + 'endpoint' => 'pai.ap-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-3', + 'endpoint' => 'pai.ap-southeast-3.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-5', + 'endpoint' => 'pai.ap-southeast-5.aliyuncs.com', + ], + [ + 'regionId' => 'eu-central-1', + 'endpoint' => 'pai.eu-central-1.aliyuncs.com', + ], + [ + 'regionId' => 'cn-guangzhou', + 'endpoint' => 'pai.cn-guangzhou.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-1', + 'endpoint' => 'pai.ap-northeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-east-1', + 'endpoint' => 'pai.us-east-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-west-1', + 'endpoint' => 'pai.us-west-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-2', + 'endpoint' => 'pai.ap-northeast-2.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai-finance-1', + 'endpoint' => 'pai.cn-shanghai-finance-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-southeast-1', + 'endpoint' => 'pai.us-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-7', + 'endpoint' => 'pai.ap-southeast-7.aliyuncs.com', + ], + [ + 'regionId' => 'me-east-1', + 'endpoint' => 'pai.me-east-1.aliyuncs.com', + ], + ], +]; diff --git a/data/zh_cn/paistudio/2020-11-23/api-docs.php b/data/zh_cn/paistudio/2020-11-23/api-docs.php new file mode 100644 index 0000000..e18a17e --- /dev/null +++ b/data/zh_cn/paistudio/2020-11-23/api-docs.php @@ -0,0 +1,280 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'PaiStudio', + 'version' => '2020-11-23', + ], + 'directories' => [ + [ + 'id' => 0, + 'title' => '其它', + 'type' => 'directory', + 'children' => [ + 'ListExperiments', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'ListExperiments' => [ + 'path' => '/api/core/v1.0/experiments', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'APP' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'minimum' => '1', + ], + ], + [ + 'name' => 'SortDirection', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'ExperimentId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'Creator', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'Source', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + ], + ], + [ + 'name' => 'Scope', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'type' => 'string', + ], + 'Message' => [ + 'type' => 'string', + ], + 'RequestId' => [ + 'type' => 'string', + ], + 'TotalCount' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'Data' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'WorkspaceId' => [ + 'type' => 'string', + ], + 'ParentUserId' => [ + 'type' => 'string', + ], + 'Description' => [ + 'type' => 'string', + ], + 'Version' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'ExperimentId' => [ + 'type' => 'string', + ], + 'GmtCreate' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'Source' => [ + 'type' => 'string', + ], + 'Name' => [ + 'type' => 'string', + ], + 'GmtModified' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'Creator' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'type' => 'string', + ], + 'Message' => [ + 'type' => 'string', + ], + 'RequestId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + 'errorCodes' => [], + 'responseDemo' => '', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-beijing', + 'endpoint' => 'pai.cn-beijing.aliyuncs.com', + ], + [ + 'regionId' => 'cn-wulanchabu', + 'endpoint' => 'pai.cn-wulanchabu.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou', + 'endpoint' => 'pai.cn-hangzhou.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'pai.cn-shanghai.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen', + 'endpoint' => 'pai.cn-shenzhen.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hongkong', + 'endpoint' => 'pai.cn-hongkong.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-1', + 'endpoint' => 'pai.ap-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-3', + 'endpoint' => 'pai.ap-southeast-3.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-5', + 'endpoint' => 'pai.ap-southeast-5.aliyuncs.com', + ], + [ + 'regionId' => 'eu-central-1', + 'endpoint' => 'pai.eu-central-1.aliyuncs.com', + ], + [ + 'regionId' => 'cn-guangzhou', + 'endpoint' => 'pai.cn-guangzhou.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-1', + 'endpoint' => 'pai.ap-northeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-east-1', + 'endpoint' => 'pai.us-east-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-west-1', + 'endpoint' => 'pai.us-west-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-2', + 'endpoint' => 'pai.ap-northeast-2.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai-finance-1', + 'endpoint' => 'pai.cn-shanghai-finance-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-southeast-1', + 'endpoint' => 'pai.us-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-7', + 'endpoint' => 'pai.ap-southeast-7.aliyuncs.com', + ], + [ + 'regionId' => 'me-east-1', + 'endpoint' => 'pai.me-east-1.aliyuncs.com', + ], + ], +]; diff --git a/data/zh_cn/paistudio/2021-02-02/api-docs.php b/data/zh_cn/paistudio/2021-02-02/api-docs.php new file mode 100644 index 0000000..9a31a5a --- /dev/null +++ b/data/zh_cn/paistudio/2021-02-02/api-docs.php @@ -0,0 +1,4936 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'PaiStudio', + 'version' => '2021-02-02', + ], + 'directories' => [ + [ + 'id' => 197103, + 'title' => '工作流草稿', + 'type' => 'directory', + 'children' => [ + 'CreateExperiment', + 'CopyExperiment', + 'UpdateExperimentMeta', + 'UpdateExperimentContent', + 'PublishExperiment', + 'GetExperiment', + 'GetExperimentMeta', + 'GetExperimentStatus', + 'DeleteExperiment', + 'ListExperiments', + ], + ], + [ + 'id' => 197114, + 'title' => '工作流草稿作业', + 'type' => 'directory', + 'children' => [ + 'CreateJob', + 'GetJob', + 'ListJobs', + 'StopJob', + 'StopExperiment', + ], + ], + [ + 'id' => 197111, + 'title' => '工作流草稿目录', + 'type' => 'directory', + 'children' => [ + 'CreateExperimentFolder', + 'UpdateExperimentFolder', + 'GetExperimentFolderChildren', + 'DeleteExperimentFolder', + ], + ], + [ + 'id' => 197169, + 'title' => '算法', + 'type' => 'directory', + 'children' => [ + 'GetAlgorithmTree', + 'GetAlgorithmDef', + ], + ], + [ + 'id' => 197189, + 'title' => '其它(未在目录中的文档)', + 'type' => 'directory', + 'children' => [ + 'ListRecentExperiments', + 'ListTemplates', + 'GetTemplate', + 'GetExperimentsStatistics', + 'GetExperimentsUsersStatistics', + 'PreviewMCTable', + 'GetMCTableSchema', + 'SearchMCTables', + 'GetNodeInputSchema', + 'GetExperimentVisualizationMeta', + 'QueryExperimentVisualizationData', + 'GetAlgoTree', + 'ListNodeOutputs', + 'GetNodeOutput', + 'ListAuthRoles', + 'ListImages', + 'ListImageLabels', + 'MigrateExperiments', + 'CreateExperimentMigrateValidation', + 'MigrateExperimentFolders', + 'GetAlgorithmDefs', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'CreateExperiment' => [ + 'summary' => '创建PAI Designer工作流草稿。', + 'path' => '/api/v1/experiments', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '14187', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '工作流草稿。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '工作流草稿名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'Pipeline draft name', + ], + 'Description' => [ + 'description' => '工作流草稿描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'Pipeline draft description', + ], + 'Source' => [ + 'description' => '工作流草稿来源。', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + 'FolderId' => [ + 'description' => '工作流草稿所属文件夹ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'folder-xfdafx093xxfd', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '84972', + ], + 'TemplateId' => [ + 'description' => '模板ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'template-xze5df2scrxxz', + ], + 'Options' => [ + 'description' => '工作流草稿选项。', + 'type' => 'string', + 'required' => false, + 'example' => '{"mlflow":{"experimentId":"exp-1"}}', + ], + 'Accessibility' => [ + 'title' => '工作空间内可见性 PUBLIC; PRIVATE 默认PUBLIC', + 'description' => '工作空间可见性,可能值为:'."\n" + .'- PRIVATE:在此工作空间中,仅对您和管理员可见。'."\n" + .'- PUBLIC:在此工作空间中,对所有人可见。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'PUBLIC' => 'PUBLIC', + 'PRIVATE' => 'PRIVATE', + ], + 'example' => 'PUBLIC', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '42F23B58-3684-5443-848A-8DA81FF99712', + ], + 'ExperimentId' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"42F23B58-3684-5443-848A-8DA81FF99712\\",\\n \\"ExperimentId\\": \\"draft-rbvg5wzljzjhc9ks92\\"\\n}","type":"json"}]', + 'title' => '创建工作流草稿', + ], + 'CopyExperiment' => [ + 'summary' => '复制PAI Designer工作流草稿。', + 'path' => '/api/v1/experiments/{ExperimentId}/copy', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '16683', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求Body。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '实验名称,最大长度 128,可包含中英文', + 'description' => '复制后的工作流草稿名称,最大长度 128,可包含中英文。', + 'type' => 'string', + 'required' => true, + 'example' => 'Pipeline draft name', + ], + 'Description' => [ + 'title' => '实验描述', + 'description' => '工作流草稿描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'Pipeline draft description', + ], + 'Source' => [ + 'title' => '实验来源,目前 PaiStudio,data-airec(推荐白盒)', + 'description' => '工作流草稿创建来源。', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + 'FolderId' => [ + 'title' => '实验创建的目录 id', + 'description' => '复制后工作流草稿所属的的文件夹ID。该参数在调用[CreateExperimentFolder](~~2854071~~)创建工作流草稿文件夹后返回。', + 'type' => 'string', + 'required' => true, + 'example' => 'folder-erwx872xuryx', + ], + 'WorkspaceId' => [ + 'title' => '实验创建的Workspace', + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '84972', + ], + 'Accessibility' => [ + 'title' => '工作空间内可见性 PUBLIC; PRIVATE 默认PUBLIC', + 'description' => '工作流草稿的可见性,取值如下:'."\n" + .'- PUBLIC:在此工作空间中,对所有人可见。'."\n" + .'- PRIVATE:在此工作空间中,仅对您和管理员可见。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'PUBLIC' => 'PUBLIC', + 'PRIVATE' => 'PRIVATE', + ], + 'example' => 'PUBLIC', + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'title' => '实验Id', + 'description' => '源工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-s2gf8fj160mqxyf0qd', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应内容。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '6D161C28-9CB1-584E-8DD5-64441E32A5B3', + ], + 'ExperimentId' => [ + 'description' => '复制生成的工作流草稿ID。', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6D161C28-9CB1-584E-8DD5-64441E32A5B3\\",\\n \\"ExperimentId\\": \\"draft-rbvg5wzljzjhc9ks92\\"\\n}","type":"json"}]', + 'title' => '复制工作流草稿', + ], + 'UpdateExperimentMeta' => [ + 'summary' => '更新PAI Designer工作流草稿的Meta信息。', + 'path' => '/api/v1/experiments/{ExperimentId}/meta', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '14190', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求Body。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '工作流草稿名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'Pipeline draft name', + ], + 'Description' => [ + 'description' => '工作流草稿描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'Pipeline draft description', + ], + 'FolderId' => [ + 'description' => '工作流草稿更新后的所属的文件夹ID。'."\n" + .'* 如果该值不为空,将工作流草稿移动到该文件夹。'."\n" + .'* 如果为空,不移动。'."\n" + .'* 如果为root,且Accessibility为PUBILC,移动到公共根目录'."\n" + .'* 如果为root,且Accessibility为PRIVATE,移动到自己的根目录', + 'type' => 'string', + 'required' => false, + 'example' => 'folder-xfd782efd08wex', + ], + 'Options' => [ + 'description' => '工作流草稿选项。', + 'type' => 'string', + 'required' => false, + 'example' => '{"mlflow":{"experimentId":"exp-1"}}', + ], + 'Accessibility' => [ + 'title' => '工作空间内可见性 PUBLIC; PRIVATE 默认PUBLIC', + 'description' => '工作流草稿的可见性,取值如下:'."\n" + .'- PUBLIC:在此工作空间中,对所有人可见。'."\n" + .'- PRIVATE:在此工作空间中,仅对您和管理员可见。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'PUBLIC' => 'PUBLIC', + 'PRIVATE' => 'PRIVATE', + ], + 'example' => 'PUBLIC', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\"\\n}","type":"json"}]', + 'title' => '更新工作流草稿Meta', + ], + 'UpdateExperimentContent' => [ + 'summary' => '更新工作流草稿的内容。', + 'path' => '/api/v1/experiments/{ExperimentId}/content', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '14191', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-i1udvvwm2rlvxug29n', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求Body。', + 'type' => 'object', + 'properties' => [ + 'Content' => [ + 'description' => '工作流草稿内容。', + 'type' => 'string', + 'required' => true, + 'example' => '{"metadata":{"name":"实验名称","desc":"实验描述"},"nodes":[],"edges":[],"globalParams":[],"globalSettings":[]}', + ], + 'Version' => [ + 'description' => '更新前的工作流草稿版本,要求与工作流草稿的当前版本一致,否则无法更新成功。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '11', + ], + ], + '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-A3DC0DE3C83E', + ], + 'Version' => [ + 'description' => '更新后工作流草稿的版本。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Version\\": 12\\n}","type":"json"}]', + 'title' => '更新工作流草稿的内容', + ], + 'PublishExperiment' => [ + 'summary' => '将工作流草稿发布到工作空间,让工作空间所有用户可见。', + 'path' => '/api/v1/experiments/{ExperimentId}/publish', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '92519', + 'abilityTreeNodes' => [ + 'FEATURElearn01UVDS', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求Body。', + 'type' => 'object', + 'properties' => [ + 'FolderId' => [ + 'title' => '公共目录Id', + 'description' => '公共文件夹ID,root表示公共的根目录。', + 'type' => 'string', + 'required' => true, + 'example' => 'root', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '5A26A7FA-EEF0-5A6B-BA76-06067547C11F', + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5A26A7FA-EEF0-5A6B-BA76-06067547C11F\\"\\n}","type":"json"}]', + 'title' => '公开工作流草稿到工作空间', + ], + 'GetExperiment' => [ + 'summary' => '获取PAI Designer工作流草稿。', + 'path' => '/api/v1/experiments/{ExperimentId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '14195', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '工作流草稿。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'DD405810-73C9-5721-996A-EA04BCC4BBF2', + ], + 'ExperimentId' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + 'Name' => [ + 'description' => '工作流草稿名称。', + 'type' => 'string', + 'example' => 'Pipeline Draft Name', + ], + 'Description' => [ + 'description' => '工作流草稿描述。', + 'type' => 'string', + 'example' => 'Pipeline Draft Description', + ], + 'GmtCreateTime' => [ + 'description' => '创建UTC时间,日期格式ISO8601。', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'GmtModifiedTime' => [ + 'description' => '工作流修改的UTC时间,日期格式ISO8601。', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'Creator' => [ + 'description' => '创建人ID。', + 'type' => 'string', + 'example' => '13266*******76250', + ], + 'Source' => [ + 'description' => '工作流草稿来源。', + 'type' => 'string', + 'example' => 'PaiStudio', + ], + 'Version' => [ + 'description' => '工作流草稿版本,每次更新内容版本会自增。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '23487', + ], + 'Content' => [ + 'description' => '工作流草稿内容,json格式。', + 'type' => 'string', + 'example' => '{"nodes":[{"id":"id-4c50-1609236241393-76174","name":"读数据表","metadata":{"identifier":"data_source","version":"v1","provider":"pai"},"properties":[{"name":"hasPartition","value":false},{"name":"inputTableName","value":"pai_online_project.e_commerce_test_data"}],"position":{"x":427,"y":123}},{"id":"id-23ce-1609236252041-30106","name":"读数据表","metadata":{"identifier":"data_source","version":"v1","provider":"pai"},"properties":[{"name":"inputTableName","value":"pai_online_project.e_commerce_train_data"},{"name":"hasPartition","value":false}],"position":{"x":226,"y":127}},{"id":"id-97a7-1609236275421-84245","name":"DeepFM","metadata":{"identifier":"deepfm","version":"v1","provider":"pai"},"properties":[{"name":"trainModel","value":"train"},{"name":"arn","value":true},{"name":"cluster","value":"\\n{\\n \\"ps\\": {\\n \\"count\\": 2,\\n \\"cpu\\": 1000,\\n \\"memory\\": 40000\\n },\\n \\"worker\\": {\\n \\"count\\": 8,\\n \\"cpu\\": 1000,\\n \\"memory\\": 40000\\n }\\n}"}],"position":{"x":323,"y":345}}],"edges":[{"source":"id-23ce-1609236252041-30106","sourceAnchor":"outputTable","targetAnchor":"input1TableName","target":"id-97a7-1609236275421-84245"},{"source":"id-4c50-1609236241393-76174","sourceAnchor":"outputTable","targetAnchor":"input2TableName","target":"id-97a7-1609236275421-84245"}],"globalParams":[],"globalSettings":[]}', + ], + 'Options' => [ + 'description' => '工作流选项,json格式。', + 'type' => 'string', + 'example' => '{"mlflow":{"experimentId":"exp-1"}}', + ], + 'Accessibility' => [ + 'description' => '工作空间可见性,可能值为:'."\n" + .'- PRIVATE:在此工作空间中,仅对您和管理员可见。'."\n" + .'- PUBLIC:在此工作空间中,对所有人可见。', + 'type' => 'string', + 'enumValueTitles' => [ + 'PUBLIC' => '公开', + 'PRIVATE' => '私有', + ], + 'example' => 'PUBLIC', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DD405810-73C9-5721-996A-EA04BCC4BBF2\\",\\n \\"ExperimentId\\": \\"draft-rbvg5wzljzjhc9ks92\\",\\n \\"Name\\": \\"Pipeline Draft Name\\",\\n \\"Description\\": \\"Pipeline Draft Description\\",\\n \\"GmtCreateTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"Creator\\": \\"13266*******76250\\",\\n \\"Source\\": \\"PaiStudio\\",\\n \\"Version\\": 12,\\n \\"WorkspaceId\\": \\"23487\\",\\n \\"Content\\": \\"{\\\\\\"nodes\\\\\\":[{\\\\\\"id\\\\\\":\\\\\\"id-4c50-1609236241393-76174\\\\\\",\\\\\\"name\\\\\\":\\\\\\"读数据表\\\\\\",\\\\\\"metadata\\\\\\":{\\\\\\"identifier\\\\\\":\\\\\\"data_source\\\\\\",\\\\\\"version\\\\\\":\\\\\\"v1\\\\\\",\\\\\\"provider\\\\\\":\\\\\\"pai\\\\\\"},\\\\\\"properties\\\\\\":[{\\\\\\"name\\\\\\":\\\\\\"hasPartition\\\\\\",\\\\\\"value\\\\\\":false},{\\\\\\"name\\\\\\":\\\\\\"inputTableName\\\\\\",\\\\\\"value\\\\\\":\\\\\\"pai_online_project.e_commerce_test_data\\\\\\"}],\\\\\\"position\\\\\\":{\\\\\\"x\\\\\\":427,\\\\\\"y\\\\\\":123}},{\\\\\\"id\\\\\\":\\\\\\"id-23ce-1609236252041-30106\\\\\\",\\\\\\"name\\\\\\":\\\\\\"读数据表\\\\\\",\\\\\\"metadata\\\\\\":{\\\\\\"identifier\\\\\\":\\\\\\"data_source\\\\\\",\\\\\\"version\\\\\\":\\\\\\"v1\\\\\\",\\\\\\"provider\\\\\\":\\\\\\"pai\\\\\\"},\\\\\\"properties\\\\\\":[{\\\\\\"name\\\\\\":\\\\\\"inputTableName\\\\\\",\\\\\\"value\\\\\\":\\\\\\"pai_online_project.e_commerce_train_data\\\\\\"},{\\\\\\"name\\\\\\":\\\\\\"hasPartition\\\\\\",\\\\\\"value\\\\\\":false}],\\\\\\"position\\\\\\":{\\\\\\"x\\\\\\":226,\\\\\\"y\\\\\\":127}},{\\\\\\"id\\\\\\":\\\\\\"id-97a7-1609236275421-84245\\\\\\",\\\\\\"name\\\\\\":\\\\\\"DeepFM\\\\\\",\\\\\\"metadata\\\\\\":{\\\\\\"identifier\\\\\\":\\\\\\"deepfm\\\\\\",\\\\\\"version\\\\\\":\\\\\\"v1\\\\\\",\\\\\\"provider\\\\\\":\\\\\\"pai\\\\\\"},\\\\\\"properties\\\\\\":[{\\\\\\"name\\\\\\":\\\\\\"trainModel\\\\\\",\\\\\\"value\\\\\\":\\\\\\"train\\\\\\"},{\\\\\\"name\\\\\\":\\\\\\"arn\\\\\\",\\\\\\"value\\\\\\":true},{\\\\\\"name\\\\\\":\\\\\\"cluster\\\\\\",\\\\\\"value\\\\\\":\\\\\\"\\\\\\\\n{\\\\\\\\n \\\\\\\\\\\\\\"ps\\\\\\\\\\\\\\": {\\\\\\\\n \\\\\\\\\\\\\\"count\\\\\\\\\\\\\\": 2,\\\\\\\\n \\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\": 1000,\\\\\\\\n \\\\\\\\\\\\\\"memory\\\\\\\\\\\\\\": 40000\\\\\\\\n },\\\\\\\\n \\\\\\\\\\\\\\"worker\\\\\\\\\\\\\\": {\\\\\\\\n \\\\\\\\\\\\\\"count\\\\\\\\\\\\\\": 8,\\\\\\\\n \\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\": 1000,\\\\\\\\n \\\\\\\\\\\\\\"memory\\\\\\\\\\\\\\": 40000\\\\\\\\n }\\\\\\\\n}\\\\\\"}],\\\\\\"position\\\\\\":{\\\\\\"x\\\\\\":323,\\\\\\"y\\\\\\":345}}],\\\\\\"edges\\\\\\":[{\\\\\\"source\\\\\\":\\\\\\"id-23ce-1609236252041-30106\\\\\\",\\\\\\"sourceAnchor\\\\\\":\\\\\\"outputTable\\\\\\",\\\\\\"targetAnchor\\\\\\":\\\\\\"input1TableName\\\\\\",\\\\\\"target\\\\\\":\\\\\\"id-97a7-1609236275421-84245\\\\\\"},{\\\\\\"source\\\\\\":\\\\\\"id-4c50-1609236241393-76174\\\\\\",\\\\\\"sourceAnchor\\\\\\":\\\\\\"outputTable\\\\\\",\\\\\\"targetAnchor\\\\\\":\\\\\\"input2TableName\\\\\\",\\\\\\"target\\\\\\":\\\\\\"id-97a7-1609236275421-84245\\\\\\"}],\\\\\\"globalParams\\\\\\":[],\\\\\\"globalSettings\\\\\\":[]}\\",\\n \\"Options\\": \\"{\\\\\\"mlflow\\\\\\":{\\\\\\"experimentId\\\\\\":\\\\\\"exp-1\\\\\\"}}\\",\\n \\"Accessibility\\": \\"PUBLIC\\"\\n}","type":"json"}]', + 'title' => '获取工作流草稿', + ], + 'GetExperimentMeta' => [ + 'summary' => '查询工作流草稿Meta。', + 'path' => '/api/v1/experiments/{ExperimentId}/meta', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '14188', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'title' => '实验 id', + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6', + ], + 'ExperimentId' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + 'Name' => [ + 'description' => '工作流草稿名称。', + 'type' => 'string', + 'example' => 'Pipeline draft name', + ], + 'Description' => [ + 'description' => '工作流草稿描述。', + 'type' => 'string', + 'example' => 'Pipeline draft description', + ], + 'GmtCreateTime' => [ + 'description' => '创建UTC时间,时间格式为ISO8601。', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'GmtModifiedTime' => [ + 'description' => '工作流草稿修改 UTC 时间,日期格式ISO8601。', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'Creator' => [ + 'description' => '创建人ID。', + 'type' => 'string', + 'example' => '1326****76250', + ], + 'Source' => [ + 'description' => '工作流草稿来源。', + 'type' => 'string', + 'example' => 'PaiStudio', + ], + 'Version' => [ + 'description' => '工作流草稿版本,每次更新内容版本会自增。', + 'type' => 'string', + 'example' => '12', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '23487', + ], + 'Options' => [ + 'description' => '工作流草稿选项。', + 'type' => 'string', + 'example' => '{"mlflow":{"experimentId":"exp-1"}}', + ], + 'Accessibility' => [ + 'description' => '工作空间可见性,可能值为:'."\n" + .'- PRIVATE:在此工作空间中,仅对您和管理员可见。'."\n" + .'- PUBLIC:在此工作空间中,对所有人可见。', + 'type' => 'string', + 'enumValueTitles' => [ + 'PUBLIC' => 'PUBLIC', + 'PRIVATE' => 'PRIVATE', + ], + 'example' => 'PUBLIC', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\",\\n \\"ExperimentId\\": \\"draft-rbvg5wzljzjhc9ks92\\",\\n \\"Name\\": \\"Pipeline draft name\\",\\n \\"Description\\": \\"Pipeline draft description\\",\\n \\"GmtCreateTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"Creator\\": \\"1326****76250\\",\\n \\"Source\\": \\"PaiStudio\\",\\n \\"Version\\": \\"12\\",\\n \\"WorkspaceId\\": \\"23487\\",\\n \\"Options\\": \\"{\\\\\\"mlflow\\\\\\":{\\\\\\"experimentId\\\\\\":\\\\\\"exp-1\\\\\\"}}\\",\\n \\"Accessibility\\": \\"PUBLIC\\"\\n}","type":"json"}]', + 'title' => '查询工作流草稿Meta', + ], + 'GetExperimentStatus' => [ + 'summary' => '获取工作流草稿以及工作流草稿中节点的状态。', + 'path' => '/api/v1/experiments/{ExperimentId}/status', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '14237', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-4c60c4txtaexfum1zx', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + 'Status' => [ + 'description' => '工作流草稿状态,目前有Stopped和Running两个状态:'."\n" + .'* Running:工作流草稿有运行中的作业。'."\n" + .'* Stopped:工作流草稿中没有运行中的作业。', + 'type' => 'string', + 'enumValueTitles' => [ + 'Stopped' => 'Stopped', + 'Running' => 'Running', + ], + 'example' => 'Running', + ], + 'Nodes' => [ + 'description' => '工作流草稿中的节点状态。', + 'type' => 'array', + 'items' => [ + 'description' => '节点信息。', + 'type' => 'object', + 'properties' => [ + 'NodeId' => [ + 'description' => '工作流草稿中的节点ID。', + 'type' => 'string', + 'example' => 'id-2317-1608984201281-74996', + ], + 'JobId' => [ + 'description' => '该节点最近一次运行创建的工作流草稿作业ID。', + 'type' => 'string', + 'example' => 'job-mewqhd72nsrqujn1px', + ], + 'RunId' => [ + 'description' => '该节点最近一次运行创建的PaiFlow PipelineRun的ID。', + 'type' => 'string', + 'example' => 'flow-wayrh3k605s7i51wey', + ], + 'RunNodeId' => [ + 'description' => '该节点最近一次运行创建的PaiFlow PipelineRun中对应的节点ID。', + 'type' => 'string', + 'example' => 'node-6hc0eocnmzf4pk9njc', + ], + 'Status' => [ + 'description' => '任务状态,状态和paiflow中状态一致,目前状态有:'."\n" + .'* Initialized: 初始化完成'."\n" + .'* Starting:开始'."\n" + .'* WorkflowServiceStarting:准备提交'."\n" + .'* Running:运行中'."\n" + .'* Succeeded:运行成功'."\n" + .'* Failed:运行失败'."\n" + .'* Terminating:终止中'."\n" + .'* Terminated:已终止'."\n" + .'* Unknown:未知'."\n" + .'* Skipped:跳过(前序节点失败导致)'."\n" + .'* ReadyToSchedule:准备运行(前序节点未完成导致)', + 'type' => 'string', + 'example' => 'Running', + ], + 'StartedAt' => [ + 'description' => '任务开始时间。', + 'type' => 'string', + 'example' => '2021-01-21T17:12:35.232Z', + ], + 'FinishedAt' => [ + 'description' => '任务结束时间。', + 'type' => 'string', + 'example' => '2021-01-21T18:12:35.232Z', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\",\\n \\"Status\\": \\"Running\\",\\n \\"Nodes\\": [\\n {\\n \\"NodeId\\": \\"id-2317-1608984201281-74996\\",\\n \\"JobId\\": \\"job-mewqhd72nsrqujn1px\\",\\n \\"RunId\\": \\"flow-wayrh3k605s7i51wey\\",\\n \\"RunNodeId\\": \\"node-6hc0eocnmzf4pk9njc\\",\\n \\"Status\\": \\"Running\\",\\n \\"StartedAt\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"FinishedAt\\": \\"2021-01-21T18:12:35.232Z\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '查询工作流草稿状态', + ], + 'DeleteExperiment' => [ + 'summary' => '删除PAI Designer工作流草稿。', + 'path' => '/api/v1/experiments/{ExperimentId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '2ABF5D32-C9EE-55AE-92EE-DB08E8988AD3', + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2ABF5D32-C9EE-55AE-92EE-DB08E8988AD3\\"\\n}","type":"json"}]', + 'title' => '删除工作流草稿', + ], + 'ListExperiments' => [ + 'summary' => '获取PAI Designer的工作流草稿列表。', + 'path' => '/api/v1/experiments', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '14194', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + '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' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '排列顺序:'."\n" + .'- DESC:降序。'."\n" + .'- ASC:升序。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'ASC' => 'ASC', + 'DESC' => 'DESC', + ], + 'example' => 'DESC', + ], + ], + [ + 'name' => 'ExperimentId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '工作流草稿名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'Pipeline draft name', + ], + ], + [ + 'name' => 'Creator', + 'in' => 'query', + 'schema' => [ + 'description' => '创建人的UID。', + 'type' => 'string', + 'required' => false, + 'example' => '13266******376250', + ], + ], + [ + 'name' => 'Source', + 'in' => 'query', + 'schema' => [ + 'description' => '工作流草稿创建来源。', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '34875', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'description' => '排序依据。'."\n" + .'* GmtCreate:创建时间。'."\n" + .'* GmtModified:更新时间。', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtCreate', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '9708FB85-232F-5F9A-9D67-7F9CCCE20E06', + ], + 'Experiments' => [ + 'description' => '工作流草稿列表。', + 'type' => 'array', + 'items' => [ + 'description' => '工作流草稿详情。', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + 'Name' => [ + 'description' => '工作流草稿名称。', + 'type' => 'string', + 'example' => 'Pipeline draft name', + ], + 'Description' => [ + 'description' => '工作流草稿描述。', + 'type' => 'string', + 'example' => 'Pipeline draft description', + ], + 'GmtCreateTime' => [ + 'description' => '工作流草稿创建 UTC 时间,日期格式ISO8601。', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'GmtModifiedTime' => [ + 'description' => '工作流草稿修改 UTC 时间,日期格式ISO8601。', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'Creator' => [ + 'description' => '工作流草稿创建者的UID。', + 'type' => 'string', + 'example' => '1326*******76250', + ], + 'Source' => [ + 'description' => '工作流草稿创建来源。', + 'type' => 'string', + 'example' => 'PaiStudio', + ], + 'Version' => [ + 'description' => '工作流草稿当前版本。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '23487', + ], + 'Accessibility' => [ + 'description' => '工作流草稿的可见性,取值如下:'."\n" + .'- PUBLIC:在此工作空间中,对所有人可见。'."\n" + .'- PRIVATE:在此工作空间中,仅对您和管理员可见。', + 'type' => 'string', + 'enumValueTitles' => [ + 'PUBLIC' => 'PUBLIC', + 'PRIVATE' => 'PRIVATE', + ], + 'example' => 'PUBLIC', + ], + ], + ], + ], + 'TotalCount' => [ + 'description' => '工作流草稿总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '15', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9708FB85-232F-5F9A-9D67-7F9CCCE20E06\\",\\n \\"Experiments\\": [\\n {\\n \\"ExperimentId\\": \\"draft-rbvg5wzljzjhc9ks92\\",\\n \\"Name\\": \\"Pipeline draft name\\",\\n \\"Description\\": \\"Pipeline draft description\\",\\n \\"GmtCreateTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"Creator\\": \\"1326*******76250\\",\\n \\"Source\\": \\"PaiStudio\\",\\n \\"Version\\": 12,\\n \\"WorkspaceId\\": \\"23487\\",\\n \\"Accessibility\\": \\"PUBLIC\\"\\n }\\n ],\\n \\"TotalCount\\": 15\\n}","type":"json"}]', + 'title' => '获取工作流草稿列表', + ], + 'CreateJob' => [ + 'summary' => '创建工作流草稿的作业。', + 'path' => '/api/v1/jobs', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '14185', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求', + 'type' => 'object', + 'properties' => [ + 'PipelineDraftId' => [ + 'title' => '工作流草稿ID。', + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'draft-o1p0k444nlq3cd50zz'."\n", + ], + 'ExperimentId' => [ + 'title' => '工作流草稿Id,已经废弃,建议使用PipelineDraftId。', + 'description' => '工作流草稿ID,已经废弃,建议使用PipelineDraftId参数。', + 'type' => 'string', + 'deprecated' => true, + 'required' => false, + 'example' => 'draft-o1p0k444nlq3cd50zz', + ], + 'ExecuteType' => [ + 'description' => '作业执行类型。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'EXECUTE_ALL' => '运行工作流草稿中所有节点', + 'EXECUTE_ONE' => '执行指定节点', + 'EXECUTE_TO_HERE' => '从根节点执行到该节点', + 'EXECUTE_FROM_HERE' => '从指定的节点开始运行', + 'EXECUTE_CHILDREN' => '执行指定节点的下游节点', + ], + 'example' => 'EXECUTE_ALL', + ], + 'NodeId' => [ + 'description' => '工作流节点ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'id-2d88-1608982098027-91558', + ], + 'Options' => [ + 'description' => '运行选项,json格式。', + 'type' => 'string', + 'required' => false, + 'example' => '{"mlflow":{"experimentId":"exp-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' => '85082123-2A3F-52E7-B27A-F04700B82FFB', + ], + 'JobId' => [ + 'description' => '工作流草稿作业ID。', + 'type' => 'string', + 'example' => 'job-jcs4mmyangk7r2zdqz', + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"85082123-2A3F-52E7-B27A-F04700B82FFB\\",\\n \\"JobId\\": \\"job-jcs4mmyangk7r2zdqz\\"\\n}","type":"json"}]', + 'title' => '创建工作流草稿作业', + ], + 'GetJob' => [ + 'summary' => '查询工作流草稿作业详细信息。', + 'path' => '/api/v1/jobs/{JobId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '14186', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'description' => '是否查询任务详情。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'JobId', + 'in' => 'path', + 'schema' => [ + 'description' => '任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'job-6xfhrofqx93y139fg3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + 'ExperimentId' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '86995', + ], + 'JobId' => [ + 'description' => '作业ID。', + 'type' => 'string', + 'example' => 'job-6xfhrofqx93y139fg3'."\n", + ], + 'Snapshot' => [ + 'description' => '作业快照。', + 'type' => 'string', + 'example' => '{}', + ], + 'ExecuteType' => [ + 'description' => '执行的类型:'."\n" + .'- EXECUTE_ALL(运行工作流草稿中所有节点)'."\n" + .'- EXECUTE_ONE(执行指定节点)'."\n" + .'- EXECUTE_TO_HERE(从根节点执行到该节点)'."\n" + .'- EXECUTE_FROM_HERE(从指定的节点开始运行)'."\n" + .'- EXECUTE_CHILDREN(执行指定节点的下游节点)', + 'type' => 'string', + 'example' => 'EXECUTE_TO_HERE', + ], + 'NodeId' => [ + 'description' => '工作流草稿中的节点ID。', + 'type' => 'string', + 'example' => 'id-xxxxx', + ], + 'RunInfo' => [ + 'description' => '该作业对应的Pipeline Run的Manifests。', + 'type' => 'string', + 'example' => 'apiVersion: "core/v1"'."\n" + .'metadata:'."\n" + .' version: "v1"'."\n" + .' identifier: "1de8f7c8-a9d8-4433-9e87-d95979ccab14"'."\n" + .' annotations: {}'."\n" + .'spec:'."\n" + .' inputs:'."\n" + .' artifacts: []'."\n" + .' parameters:'."\n" + .' - name: "execution"'."\n" + .' type: "Map"'."\n" + .' arguments:'."\n" + .' artifacts: []'."\n" + .' parameters: []'."\n" + .' dependencies: []'."\n" + .' initContainers: []'."\n" + .' sideCarContainers: []'."\n" + .' pipelines:'."\n" + .' - apiVersion: "core/v1"'."\n" + .' metadata:'."\n" + .' provider: "pai"'."\n" + .' name: "id-2d88-1608982098027-91558"'."\n" + .' version: "v1"'."\n" + .' identifier: "type_transform"'."\n" + .' annotations: {}', + ], + 'RunId' => [ + 'description' => '对应的PaiFlow的Pipeline Run ID。', + 'type' => 'string', + 'example' => 'flow-lcs8ez11961l6urc3m', + ], + 'PaiflowNodeId' => [ + 'description' => 'PaiFlow中的Pipeline Run节点ID。', + 'type' => 'string', + 'example' => 'node-5dzotrnwyzfxmbwwc8'."\n", + ], + 'Creator' => [ + 'description' => '创建者用户ID。', + 'type' => 'string', + 'example' => '13266*******76250', + ], + 'Status' => [ + 'description' => '作业状态。取值:'."\n" + .'- Initialized: 初始化完成'."\n" + .'- Starting:开始'."\n" + .'- WorkflowServiceStarting:准备提交'."\n" + .'- Running:运行中'."\n" + .'- Succeeded:运行成功'."\n" + .'- Failed:运行失败'."\n" + .'- Terminating:终止中'."\n" + .'- Terminated:已终止'."\n" + .'- Unknown:未知'."\n" + .'- Skipped:跳过(前序节点失败导致)'."\n" + .'- ReadyToSchedule:准备运行(前序节点未完成导致)', + 'type' => 'string', + 'example' => 'Succeeded', + ], + 'GmtCreateTime' => [ + 'description' => '作业创建时间。', + 'type' => 'string', + 'example' => '2021-01-21T17:12:35.232Z', + ], + 'Arguments' => [ + 'description' => 'PaiFlow Pipeline Run的Arguments。', + 'type' => 'string', + 'example' => '---'."\n" + .'arguments:'."\n" + .' parameters:'."\n" + .' - name: "execution_maxcompute"'."\n" + .' value:'."\n" + .' endpoint: "http://service.cn-shanghai.maxcompute.aliyun.com/api"'."\n" + .' odpsProject: "xxxxxxx"', + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\",\\n \\"ExperimentId\\": \\"draft-rbvg5wzljzjhc9ks92\\",\\n \\"WorkspaceId\\": \\"86995\\",\\n \\"JobId\\": \\"job-6xfhrofqx93y139fg3\\\\n\\",\\n \\"Snapshot\\": \\"{}\\",\\n \\"ExecuteType\\": \\"EXECUTE_TO_HERE\\",\\n \\"NodeId\\": \\"id-xxxxx\\",\\n \\"RunInfo\\": \\"apiVersion: \\\\\\"core/v1\\\\\\"\\\\nmetadata:\\\\n version: \\\\\\"v1\\\\\\"\\\\n identifier: \\\\\\"1de8f7c8-a9d8-4433-9e87-d95979ccab14\\\\\\"\\\\n annotations: {}\\\\nspec:\\\\n inputs:\\\\n artifacts: []\\\\n parameters:\\\\n - name: \\\\\\"execution\\\\\\"\\\\n type: \\\\\\"Map\\\\\\"\\\\n arguments:\\\\n artifacts: []\\\\n parameters: []\\\\n dependencies: []\\\\n initContainers: []\\\\n sideCarContainers: []\\\\n pipelines:\\\\n - apiVersion: \\\\\\"core/v1\\\\\\"\\\\n metadata:\\\\n provider: \\\\\\"pai\\\\\\"\\\\n name: \\\\\\"id-2d88-1608982098027-91558\\\\\\"\\\\n version: \\\\\\"v1\\\\\\"\\\\n identifier: \\\\\\"type_transform\\\\\\"\\\\n annotations: {}\\",\\n \\"RunId\\": \\"flow-lcs8ez11961l6urc3m\\",\\n \\"PaiflowNodeId\\": \\"node-5dzotrnwyzfxmbwwc8\\\\n\\",\\n \\"Creator\\": \\"13266*******76250\\",\\n \\"Status\\": \\"Succeeded\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"Arguments\\": \\"---\\\\narguments:\\\\n parameters:\\\\n - name: \\\\\\"execution_maxcompute\\\\\\"\\\\n value:\\\\n endpoint: \\\\\\"http://service.cn-shanghai.maxcompute.aliyun.com/api\\\\\\"\\\\n odpsProject: \\\\\\"xxxxxxx\\\\\\"\\"\\n}","type":"json"}]', + 'title' => '查询工作流草稿作业', + ], + 'ListJobs' => [ + 'summary' => '获取工作流草稿作业列表。', + 'path' => '/api/v1/jobs', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '14206', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-8up80bg0k1q23stml6', + ], + ], + [ + 'name' => 'Creator', + 'in' => 'query', + 'schema' => [ + 'description' => '创建人的UID。', + 'type' => 'string', + 'required' => false, + 'example' => '13266*******76250', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '默认按创建时间排序,排列顺序:'."\n" + .'- DESC:降序。'."\n" + .'- ASC:升序。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'ASC' => 'ASC', + 'DESC' => 'DESC', + ], + 'example' => 'DESC', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '当前页码。默认值:1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询时每页的大小,默认为20。', + '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' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'Jobs' => [ + 'description' => '作业列表。', + 'type' => 'array', + 'items' => [ + 'description' => '作业详情。', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'example' => 'draft-4x4iv3a9enuxw4vgka', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '94436', + ], + 'JobId' => [ + 'description' => '任务 ID。', + 'type' => 'string', + 'example' => 'job-mewqhd72nsrqujn1px', + ], + 'ExecuteType' => [ + 'description' => '执行的类型:'."\n" + .'- EXECUTE_ALL(运行工作流草稿中所有节点)'."\n" + .'- EXECUTE_ONE(执行指定节点)'."\n" + .'- EXECUTE_TO_HERE(从根节点执行到该节点)'."\n" + .'- EXECUTE_FROM_HERE(从指定的节点开始运行)'."\n" + .'- EXECUTE_CHILDREN(执行指定节点的下游节点)', + 'type' => 'string', + 'example' => 'EXECUTE_ALL', + ], + 'NodeId' => [ + 'description' => '工作流草稿中的节点ID。', + 'type' => 'string', + 'example' => 'nodeId1', + ], + 'RunId' => [ + 'description' => '对应的PaiFlow的Pipeline Run ID。', + 'type' => 'string', + 'example' => 'flow-aayfouai80i980ncvz', + ], + 'PaiflowNodeId' => [ + 'description' => 'PaiFlow中的Pipeline Run节点ID。', + 'type' => 'string', + 'example' => 'node-xdfasf8ewxfdaddl', + ], + 'Creator' => [ + 'description' => '创建人的UID。', + 'type' => 'string', + 'example' => '17677*******89598', + ], + 'Status' => [ + 'description' => '作业的状态,目前状态有:'."\n" + .'* Initialized: 初始化完成'."\n" + .'* Starting:开始'."\n" + .'* WorkflowServiceStarting:准备提交'."\n" + .'* Running:运行中'."\n" + .'* Succeeded:运行成功'."\n" + .'* Failed:运行失败'."\n" + .'* Terminating:终止中'."\n" + .'* Terminated:已终止'."\n" + .'* Unknown:未知'."\n" + .'* Skipped:跳过(前序节点失败导致)'."\n" + .'* ReadyToSchedule:准备运行(前序节点未完成导致)', + 'type' => 'string', + 'example' => 'Running', + ], + 'GmtCreateTime' => [ + 'description' => '创建时间,UTC 时间,日期格式 iso8601。', + 'type' => 'string', + 'example' => '2021-01-21T17:12:35.232Z', + ], + ], + ], + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Jobs\\": [\\n {\\n \\"ExperimentId\\": \\"draft-4x4iv3a9enuxw4vgka\\",\\n \\"WorkspaceId\\": \\"94436\\",\\n \\"JobId\\": \\"job-mewqhd72nsrqujn1px\\",\\n \\"ExecuteType\\": \\"EXECUTE_ALL\\",\\n \\"NodeId\\": \\"nodeId1\\",\\n \\"RunId\\": \\"flow-aayfouai80i980ncvz\\",\\n \\"PaiflowNodeId\\": \\"node-xdfasf8ewxfdaddl\\",\\n \\"Creator\\": \\"17677*******89598\\",\\n \\"Status\\": \\"Running\\",\\n \\"GmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取工作流草稿作业列表', + ], + 'StopJob' => [ + 'summary' => '停止工作流草稿作业。', + 'path' => '/api/v1/jobs/{JobId}/stop', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '14209', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'JobId', + 'in' => 'path', + 'schema' => [ + 'description' => '作业ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'job-i4vmjfsv5i1kowo4ih', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '431C53C4-BDD0-588F-8081-4437B00852B5', + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"431C53C4-BDD0-588F-8081-4437B00852B5\\"\\n}","type":"json"}]', + 'title' => '停止工作流草稿作业', + ], + 'StopExperiment' => [ + 'summary' => '停止工作流草稿提交的所有运行中的作业,停止是异步操作,接口返回后,需要等待一段时间才能停止成功。', + 'path' => '/api/v1/experiments/{ExperimentId}/stop', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '14236', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-i1udvvwm2rlvxug29n', + ], + ], + ], + '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', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => '停止工作流草稿所有作业', + ], + 'CreateExperimentFolder' => [ + 'summary' => '创建工作流草稿文件夹。', + 'path' => '/api/v1/experimentfolders', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '13799', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求Body。', + 'type' => 'object', + 'properties' => [ + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '45699', + ], + 'Name' => [ + 'description' => '工作流草稿名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'Pipeline draft name', + ], + 'ParentFolderId' => [ + 'description' => '父文件夹ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'folder-xxfdjhfxdfad', + ], + 'Source' => [ + 'description' => '工作流草稿创建来源。', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + 'Accessibility' => [ + 'title' => '工作空间内可见性 PUBLIC; PRIVATE 默认PUBLIC', + 'description' => '工作空间内可见性 PUBLIC; PRIVATE 默认PUBLIC', + 'type' => 'string', + 'required' => false, + 'example' => 'PUBLIC', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', + ], + 'FolderId' => [ + 'description' => '新建的文件夹的ID。', + 'type' => 'string', + 'example' => 'folder-xxfdjhfxduxd', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"FolderId\\": \\"folder-xxfdjhfxduxd\\"\\n}","type":"json"}]', + 'title' => '创建工作流草稿文件夹', + ], + 'UpdateExperimentFolder' => [ + 'summary' => '更新工作量草稿文件夹。', + 'path' => '/api/v1/experimentfolders/{FolderId}', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '13802', + 'abilityTreeNodes' => [ + 'FEATURElearn1QDD9Y', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求Body。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '新的工作流草稿文件夹名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'folder1', + ], + 'ParentFolderId' => [ + 'description' => '新的文件夹父节点ID,为空表示不修改父目录。', + 'type' => 'string', + 'required' => false, + 'example' => 'folder-xzf7t785nka4c2334', + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'FolderId', + 'in' => 'path', + 'schema' => [ + 'description' => '文件夹的ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'folder-xzf7t785nka4ch7qce', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '相应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\"\\n}","type":"json"}]', + 'title' => '更新工作流草稿文件夹', + ], + 'GetExperimentFolderChildren' => [ + 'summary' => '列出某一个工作流草稿文件夹下的子文件夹或工作流草稿。', + 'path' => '/api/v1/experimentfolders/{FolderId}/children', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '13806', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'FolderId', + 'in' => 'path', + 'schema' => [ + 'description' => '要列出成员的父文件夹ID,假如是root表示是根目录。', + 'type' => 'string', + 'required' => true, + 'example' => 'folder-xzf7t7****ch7qce', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'OnlyFolder', + 'in' => 'query', + 'schema' => [ + 'description' => '是否只列出文件夹。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'Source', + 'in' => 'query', + 'schema' => [ + 'description' => '创建来源。', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + ], + [ + 'name' => 'Accessibility', + 'in' => 'query', + 'schema' => [ + 'title' => '工作空间内可见性 PUBLIC; PRIVATE 默认PUBLIC', + 'description' => '工作空间可见性,可能值为:'."\n" + .'- PRIVATE:在此工作空间中,仅对您和管理员可见。'."\n" + .'- PUBLIC:在此工作空间中,对所有人可见。', + 'type' => 'string', + 'required' => false, + 'example' => 'PUBLIC', + ], + ], + [ + 'name' => 'UserId', + 'in' => 'query', + 'schema' => [ + 'title' => '若FolderId为root,Accessibility为PRIVATE,这里代表私有根路径的所有者,默认为访问者自己', + 'description' => '若FolderId为root,Accessibility为PRIVATE,这里代表私有根路径的所有者,默认为访问者自己', + 'type' => 'string', + 'required' => false, + 'example' => '12345******13324', + ], + ], + ], + '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', + ], + 'TotalCount' => [ + 'description' => '总数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '23', + ], + 'Items' => [ + 'description' => '成员列表。', + 'type' => 'array', + 'items' => [ + 'description' => '成员详情。', + 'type' => 'object', + 'properties' => [ + 'Id' => [ + 'description' => '工作流草稿或工作流草稿文件夹的ID。', + 'type' => 'string', + 'example' => 'folder-xzf7t7****ch7qce', + ], + 'Name' => [ + 'description' => '工作流草稿或工作流草稿文件夹的名称。', + 'type' => 'string', + 'example' => 'Pipeline draft name', + ], + 'Type' => [ + 'description' => '目前有两种类型:'."\n" + .'* pipelinedraft:工作流草稿'."\n" + .'* dir:工作流草稿文件夹', + 'type' => 'string', + 'example' => 'dir', + ], + 'Icon' => [ + 'description' => '工作流草稿或工作流草稿文件夹使用的图标,目前有icon-folder,icon-pipelinedraft。', + 'type' => 'string', + 'example' => 'icon-folder', + ], + 'Empty' => [ + 'description' => '是否为空。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间', + 'description' => '创建时间,UTC 时间,日期格式 iso8601。', + 'type' => 'string', + 'format' => 'iso8601', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'GmtModifiedTime' => [ + 'title' => '修改时间', + 'description' => '修改时间,UTC 时间,日期格式 iso8601。', + 'type' => 'string', + 'format' => 'iso8601', + 'example' => '2021-01-30T12:51:33.028Z', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": 23,\\n \\"Items\\": [\\n {\\n \\"Id\\": \\"folder-xzf7t7****ch7qce\\",\\n \\"Name\\": \\"Pipeline draft name\\",\\n \\"Type\\": \\"dir\\",\\n \\"Icon\\": \\"icon-folder\\",\\n \\"Empty\\": false,\\n \\"GmtCreateTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"GmtModifiedTime\\": \\"2021-01-30T12:51:33.028Z\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取工作流草稿文件夹下成员', + ], + 'DeleteExperimentFolder' => [ + 'summary' => '删除工作流草稿文件夹。', + 'path' => '/api/v1/experimentfolders/{FolderId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '13803', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'FolderId', + 'in' => 'path', + 'schema' => [ + 'description' => '文件夹ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'folder-xzf7t785nka4ch7qce', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\"\\n}","type":"json"}]', + 'title' => '删除工作流草稿文件夹', + ], + 'GetAlgorithmTree' => [ + 'summary' => '获取算法树。', + 'path' => '/api/v1/algorithm/tree', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '19289', + 'abilityTreeNodes' => [ + 'FEATURElearnZAMNTS', + ], + ], + 'parameters' => [ + [ + 'name' => 'Source', + 'in' => 'query', + 'schema' => [ + 'description' => '获取指定源的算法列表,默认为PaiStudio。', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'title' => '工作空间ID。指定工作空间ID后,将根据当前工作空间是否开通GPU资源对算法树结果进行过滤。', + 'description' => '工作空间ID。指定工作空间ID后,将根据当前工作空间是否开通GPU资源对算法树结果进行过滤。', + 'type' => 'string', + 'required' => false, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '46B59732-033F-5C96-9B15-1E05E7705548', + ], + 'Tree' => [ + 'description' => '算法树。', + 'type' => 'array', + 'items' => [ + 'description' => '算法定义。', + 'type' => 'object', + 'example' => '{'."\n" + .' "name": "Tensorflow",'."\n" + .' "nodeType": "algo",'."\n" + .' "icon": "yyyy",'."\n" + .' "metadata": {'."\n" + .' "provider": "pai",'."\n" + .' "identifier": "evaluate-tensorflow",'."\n" + .' "version": "v2",'."\n" + .' "signature": "49c9904dc177eb4d58f68915f35315b6fc6ee2db"'."\n" + .' },'."\n" + .' "doc": "http://www.aliyun.com/doc?id=11"'."\n" + .'}', + ], + ], + 'Timestamp' => [ + 'description' => '算法树最后更新的时间戳。', + 'type' => 'string', + 'example' => '20210317101023', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"46B59732-033F-5C96-9B15-1E05E7705548\\",\\n \\"Tree\\": [\\n {\\n \\"name\\": \\"Tensorflow\\",\\n \\"nodeType\\": \\"algo\\",\\n \\"icon\\": \\"yyyy\\",\\n \\"metadata\\": {\\n \\"provider\\": \\"pai\\",\\n \\"identifier\\": \\"evaluate-tensorflow\\",\\n \\"version\\": \\"v2\\",\\n \\"signature\\": \\"49c9904dc177eb4d58f68915f35315b6fc6ee2db\\"\\n },\\n \\"doc\\": \\"http://www.aliyun.com/doc?id=11\\"\\n }\\n ],\\n \\"Timestamp\\": \\"20210317101023\\"\\n}","type":"json"}]', + 'title' => '获取算法树', + ], + 'GetAlgorithmDef' => [ + 'summary' => '获取算法定义', + 'path' => '/api/v1/algorithm/def', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '19291', + 'abilityTreeNodes' => [ + 'FEATURElearnZAMNTS', + ], + ], + 'parameters' => [ + [ + 'name' => 'Provider', + 'in' => 'query', + 'schema' => [ + 'description' => '算法的提供者,官方算法为pai。', + 'type' => 'string', + 'required' => true, + 'example' => 'pai', + ], + ], + [ + 'name' => 'Identifier', + 'in' => 'query', + 'schema' => [ + 'description' => '算法的identifier。', + 'type' => 'string', + 'required' => true, + 'example' => 'logisticregression_binary', + ], + ], + [ + 'name' => 'AlgoVersion', + 'in' => 'query', + 'schema' => [ + 'description' => '算法的版本。', + 'type' => 'string', + 'required' => true, + 'example' => 'v1', + ], + ], + [ + 'name' => 'Signature', + 'in' => 'query', + 'schema' => [ + 'description' => '算法的signature,假如为空会取最近的版本。', + 'type' => 'string', + 'required' => false, + 'example' => '49c9904dc177eb4d58f68915f35315b6fc6ee2db', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'B4F16666-FD54-5D9D-A362-53A4C66692DF', + ], + 'Spec' => [ + 'description' => '算法定义的Spec。', + 'type' => 'object', + 'example' => '{}', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4F16666-FD54-5D9D-A362-53A4C66692DF\\",\\n \\"Spec\\": {}\\n}","type":"json"}]', + 'title' => '获取算法定义', + ], + 'ListRecentExperiments' => [ + 'summary' => '获取当前用户最近更新或创建的工作流草稿。', + 'path' => '/api/v1/recentexperiments', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '61667', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '按修改时间排序,默认DESC:'."\n" + .'- DESC:降序。'."\n" + .'- ASC:升序。', + 'type' => 'string', + 'required' => false, + 'example' => 'DESC', + ], + ], + [ + 'name' => 'Source', + 'in' => 'query', + 'schema' => [ + 'description' => '工作流草稿创建来源。', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + ], + [ + 'name' => 'Type', + 'in' => 'query', + 'schema' => [ + 'description' => '查询类型,目前有'."\n" + .' - Modified: 最近修改过的工作流草稿列表'."\n" + .' - Created:最近创建过的工作流草稿列表', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'Modified' => 'Modified', + 'Created' => 'Created', + ], + 'example' => 'Modified', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => false, + 'example' => '86995', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询时的页码,默认值为1。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '2', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询时每页的大小,默认为10。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '20', + ], + ], + ], + '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', + ], + 'Experiments' => [ + 'description' => '工作流草稿列表。', + 'type' => 'array', + 'items' => [ + 'description' => '工作流草稿详情。', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'example' => 'draft-76p70ye0gwv3vbur55', + ], + 'Name' => [ + 'description' => '工作流草稿名称。', + 'type' => 'string', + 'example' => 'Pipeline draft name', + ], + 'Description' => [ + 'description' => '工作流草稿描述。', + 'type' => 'string', + 'example' => 'Pipeline draft description', + ], + 'RecentGmtModifiedTime' => [ + 'description' => '该用户最近对工作流草稿的修改 UTC 时间,日期格式ISO8601。', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'Source' => [ + 'description' => '工作流草稿创建来源。', + 'type' => 'string', + 'example' => 'PaiStudio', + ], + 'ModifyCnt' => [ + 'description' => '该用户对该实验的修改次数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '15821', + ], + 'WorkspaceName' => [ + 'description' => '工作空间名称。', + 'type' => 'string', + 'example' => 'Workspace name', + ], + ], + ], + ], + 'TotalCount' => [ + 'description' => '工作流草稿总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '23', + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Experiments\\": [\\n {\\n \\"ExperimentId\\": \\"draft-76p70ye0gwv3vbur55\\",\\n \\"Name\\": \\"Pipeline draft name\\",\\n \\"Description\\": \\"Pipeline draft description\\",\\n \\"RecentGmtModifiedTime\\": \\"2021-01-30T12:51:33.028Z\\",\\n \\"Source\\": \\"PaiStudio\\",\\n \\"ModifyCnt\\": 10,\\n \\"WorkspaceId\\": \\"15821\\",\\n \\"WorkspaceName\\": \\"Workspace name\\"\\n }\\n ],\\n \\"TotalCount\\": 23\\n}","type":"json"}]', + 'title' => '获取最近的工作流草稿', + ], + 'ListTemplates' => [ + 'summary' => '获取PAI Studio中指定模板列表', + 'path' => '/api/v1/templates', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '14198', + 'abilityTreeNodes' => [ + 'FEATURElearnEACGUC', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'type' => 'integer', + 'format' => 'int32', + 'example' => '20', + ], + ], + [ + 'name' => 'Source', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + ], + [ + 'name' => 'List', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'example' => 'types', + ], + ], + [ + 'name' => 'TagId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'example' => 'template-tag-12345', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'example' => 'DESC', + ], + ], + [ + 'name' => 'TypeId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'example' => 'template-type-12345', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'TemplateType', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'Label', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'type' => 'string', + ], + 'TotalCount' => [ + 'type' => 'integer', + 'format' => 'int32', + 'example' => '15', + ], + 'TemplateData' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Template' => [ + 'type' => 'object', + 'properties' => [ + 'TemplateId' => [ + 'type' => 'string', + 'example' => 'template-rbvg5wzljzjhc9ks92', + ], + 'Content' => [ + 'type' => 'string', + 'example' => '{}', + ], + 'Description' => [ + 'type' => 'string', + ], + 'Detail' => [ + 'type' => 'string', + ], + 'DocLink' => [ + 'type' => 'string', + 'example' => 'url://xxx', + ], + 'ImageLink' => [ + 'type' => 'string', + 'example' => 'url://xxx', + ], + 'Name' => [ + 'type' => 'string', + ], + 'GmtCreateTime' => [ + 'type' => 'string', + 'format' => 'iso8601', + ], + 'GmtModifiedTime' => [ + 'type' => 'string', + 'format' => 'iso8601', + ], + 'Creator' => [ + 'type' => 'string', + ], + 'Labels' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + ], + ], + ], + ], + 'TemplateTag' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'type' => 'string', + 'example' => 'PyTorch', + ], + 'TagId' => [ + 'type' => 'string', + 'example' => 'template-tag-rbvg5wzljzjhc9ks92', + ], + 'TypeId' => [ + 'type' => 'string', + 'example' => 'template-tag-type-rbvg5wzljzjhc9ks92', + ], + ], + ], + 'TemplateType' => [ + 'type' => 'object', + 'properties' => [ + 'TypeId' => [ + 'type' => 'string', + 'example' => 'templatetagtype-rbvg5wzljzjhc9ks92', + ], + 'Name' => [ + 'type' => 'string', + 'example' => '行业分类', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '', + ], + 'GetTemplate' => [ + 'summary' => '获取PAI Studio中指定模板', + 'path' => '/api/v1/templates/{TemplateId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '14197', + 'abilityTreeNodes' => [ + 'FEATURElearnP4ZCX3', + 'FEATURElearnEACGUC', + ], + ], + 'parameters' => [ + [ + 'name' => 'TemplateId', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + 'example' => 'template-12345', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'type' => 'string', + ], + 'TemplateId' => [ + 'type' => 'string', + 'example' => 'template-12345', + ], + 'Name' => [ + 'type' => 'string', + ], + 'ImageLink' => [ + 'type' => 'string', + 'example' => 'URL://xxx', + ], + 'DocLink' => [ + 'type' => 'string', + 'example' => 'URL://xxx', + ], + 'Detail' => [ + 'type' => 'string', + ], + 'Description' => [ + 'type' => 'string', + ], + 'Content' => [ + 'type' => 'string', + 'example' => '{ "metadata": { "name": "实验名称", "id": "pai_exp_xxxdfafafasfa", "desc": "实验描述", }, "nodes": [ ], "edges": [ ], "globalParams": [ ], "globalSettings":[ ] }', + ], + 'SourceType' => [ + 'type' => 'string', + ], + 'SourceId' => [ + 'type' => 'string', + ], + 'TemplateType' => [ + 'type' => 'string', + ], + 'Labels' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + ], + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '', + ], + 'GetExperimentsStatistics' => [ + 'summary' => '获取实验统计信息', + 'path' => '/api/v1/statistics/experiments', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '61666', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'WorkspaceIds', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID列表,多个ID间使用半角逗号(,)分隔。', + 'type' => 'string', + 'required' => true, + 'example' => '123,345', + ], + ], + [ + 'name' => 'Source', + 'in' => 'query', + 'schema' => [ + 'description' => '工作流草稿创建来源。', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + ], + ], + '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', + ], + 'Data' => [ + 'description' => '返回结果。', + 'type' => 'array', + 'items' => [ + 'description' => '工作空间统计信息。', + 'type' => 'object', + 'properties' => [ + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '16381', + ], + 'TotalCount' => [ + 'description' => '该工作空间下所有的工作量草稿数量。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '20', + ], + 'CreateCount' => [ + 'description' => '当前用户在该工作空间下创建的工作流草稿数量。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + ], + ], + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Data\\": [\\n {\\n \\"WorkspaceId\\": \\"16381\\",\\n \\"TotalCount\\": 20,\\n \\"CreateCount\\": 10\\n }\\n ]\\n}","type":"json"}]', + 'title' => '统计工作空间中工作流草稿的数量', + 'description' => '统计工作空间中工作流草稿的数量。', + ], + 'GetExperimentsUsersStatistics' => [ + 'summary' => '获取实验或文件夹所有者列表', + 'path' => '/api/v1/statistics/experimentsusers', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '92531', + 'abilityTreeNodes' => [ + 'FEATURElearn1QDD9Y', + ], + ], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'Source', + 'in' => 'query', + 'schema' => [ + 'description' => '工作流草稿创建来源', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + 'Users' => [ + 'description' => '用户列表。', + 'type' => 'array', + 'items' => [ + 'description' => '用户信息。', + 'type' => 'object', + 'properties' => [ + 'UserId' => [ + 'description' => '用户的UID。', + 'type' => 'string', + 'example' => '12345******67890', + ], + ], + ], + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"Users\\": [\\n {\\n \\"UserId\\": \\"12345******67890\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '统计创建了工作流草稿的用户', + ], + 'PreviewMCTable' => [ + 'summary' => '预览MaxCompute表数据。', + 'path' => '/api/v1/datasources/maxcompute/tables/{TableName}/preview', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '14096', + 'abilityTreeNodes' => [ + 'FEATURElearnUEX4WU', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableName', + 'in' => 'path', + 'schema' => [ + 'description' => 'MaxCompute表名。', + 'type' => 'string', + 'required' => true, + 'example' => 'dwd_hb_user_fdsaf_hi', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'Partition', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute表分区,可以为空。'."\n" + .'* 单分区:p1=123'."\n" + .'* 多级分区:p1=123/p2=456'."\n" + .'* 多个分区:p1=123,p1=456', + 'type' => 'string', + 'required' => false, + 'example' => 'pt=20240805', + ], + ], + [ + 'name' => 'Endpoint', + 'in' => 'query', + 'schema' => [ + 'description' => 'MaxCompute的Endpoint。', + 'type' => 'string', + 'required' => true, + 'example' => 'http://service.cn-hangzhou-vpc.maxcompute.aliyun-inc.com/api', + ], + ], + [ + 'name' => 'Limit', + 'in' => 'query', + 'schema' => [ + 'description' => '返回数量,返回行数,默认1000。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1000', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + 'Content' => [ + 'description' => '预览的数据行列表。', + 'type' => 'array', + 'items' => [ + 'description' => '数据列表,每个colume一个数据。', + 'type' => 'array', + 'items' => [ + 'description' => '表字段数据。', + 'type' => 'string', + 'example' => '123', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"Content\\": [\\n [\\n \\"123\\"\\n ]\\n ]\\n}","type":"json"}]', + 'title' => '预览MaxCompute表', + ], + 'GetMCTableSchema' => [ + 'summary' => '获取MaxCompute表的Scheme。', + 'path' => '/api/v1/datasources/maxcompute/tables/{TableName}/schema', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '14093', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'TableName', + 'in' => 'path', + 'schema' => [ + 'description' => 'MaxCompute表名。', + 'type' => 'string', + 'required' => true, + 'example' => 'table_name', + 'pattern' => '^([a-zA-Z][a-zA-Z0-9_]*\\.)?[a-zA-Z0-9_]+$', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + ], + ], + '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', + ], + 'Columns' => [ + 'description' => '列信息。', + 'type' => 'array', + 'items' => [ + 'description' => 'MaxCompute表列。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '列名。', + 'type' => 'string', + 'example' => 'column1', + ], + 'Type' => [ + 'description' => '列类型。', + 'type' => 'string', + 'example' => 'STRING', + ], + 'Preview' => [ + 'description' => '列内数据预览。', + 'type' => 'array', + 'items' => [ + 'description' => '列中数据。', + 'type' => 'string', + 'example' => '123', + ], + ], + ], + ], + ], + 'PartitionColumns' => [ + 'description' => '分区列,假如为空说明是非分区表。', + 'type' => 'array', + 'items' => [ + 'description' => '分区列名。', + 'type' => 'string', + 'example' => 'dt', + ], + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Columns\\": [\\n {\\n \\"Name\\": \\"column1\\",\\n \\"Type\\": \\"STRING\\",\\n \\"Preview\\": [\\n \\"123\\"\\n ]\\n }\\n ],\\n \\"PartitionColumns\\": [\\n \\"dt\\"\\n ]\\n}","type":"json"}]', + 'title' => '获取MaxCompute表的Schema', + ], + 'SearchMCTables' => [ + 'summary' => '在当前工作空间关联的MaxCompute project中搜索MaxCompute表。', + 'path' => '/api/v1/datasources/maxcompute/tables', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '14091', + 'abilityTreeNodes' => [ + 'FEATURElearnUEX4WU', + ], + ], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'Keyword', + 'in' => 'query', + 'schema' => [ + 'description' => '搜索关键字,可用 "." 分隔,代表 项目名.表名。', + 'type' => 'string', + 'required' => true, + 'example' => 'project.table_name_prefix', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + 'Tables' => [ + 'description' => '搜索到的表列表。', + 'type' => 'array', + 'items' => [ + 'description' => '表名。', + 'type' => 'string', + 'example' => 'table_name', + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\",\\n \\"Tables\\": [\\n \\"table_name\\"\\n ]\\n}","type":"json"}]', + 'title' => '搜索MaxCompute表', + ], + 'GetNodeInputSchema' => [ + 'summary' => '获取节点输入Schema。', + 'path' => '/api/v1/experiments/{ExperimentId}/nodes/{NodeId}/schema', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '14196', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'experiment-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿中的节点ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'ff1f33b0-426a-46bb-bb30-4a5648058079', + ], + ], + [ + 'name' => 'InputId', + 'in' => 'query', + 'schema' => [ + 'description' => '实验节点输入桩名称,若为空则获取整个节点合并后的Schema。', + 'type' => 'string', + 'required' => false, + 'example' => 'inputTable', + ], + ], + [ + 'name' => 'InputIndex', + 'in' => 'query', + 'schema' => [ + 'description' => '可变桩时使用,标明是可变桩扩展的第几个桩,从 0 开始编号。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'CEB07647-8A5D-56F1-8B99-361BCF51402F', + ], + 'ColNames' => [ + 'description' => '输入表各个列的名称。', + 'type' => 'array', + 'items' => [ + 'description' => '列名。', + 'type' => 'string', + 'example' => 'col1', + ], + ], + 'ColTypes' => [ + 'description' => '输入表各个列的类型。', + 'type' => 'array', + 'items' => [ + 'description' => '列类型。', + 'type' => 'string', + 'example' => 'STRING', + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CEB07647-8A5D-56F1-8B99-361BCF51402F\\",\\n \\"ColNames\\": [\\n \\"col1\\"\\n ],\\n \\"ColTypes\\": [\\n \\"STRING\\"\\n ]\\n}","type":"json"}]', + 'title' => '获取节点输入Schema', + ], + 'GetExperimentVisualizationMeta' => [ + 'summary' => '获取工作流草稿可视化信息的Meta。', + 'path' => '/api/v1/experiments/{ExperimentId}/visualizationMeta', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '42908', + 'abilityTreeNodes' => [ + 'FEATURElearnUEX4WU', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'NodeIds', + 'in' => 'query', + 'schema' => [ + 'description' => '工作流草稿中的节点id列表,以英文逗号隔开,假如为空,则表示查询工作流草稿中的所有节点。', + 'type' => 'string', + 'required' => false, + 'example' => 'node_id1,node_id2', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'A84A1282-D3E7-5198-9E8E-2AD09C78C6C1', + ], + 'VisualizationMeta' => [ + 'description' => '可视化Meta列表。', + 'type' => 'array', + 'items' => [ + 'description' => '可视化信息。', + 'type' => 'object', + 'properties' => [ + 'NodeId' => [ + 'description' => '节点ID。', + 'type' => 'string', + 'example' => 'node_id1', + ], + 'NodeName' => [ + 'description' => '节点名称。', + 'type' => 'string', + 'example' => '直方图_1', + ], + 'Meta' => [ + 'description' => '可视化数据Meta,json格式。', + 'type' => 'string', + 'example' => '{'."\n" + .' "locations": [{'."\n" + .' "id": "result_table",'."\n" + .' "location": {'."\n" + .' "project": "mulan_test_pre_1",'."\n" + .' "endpoint": "http://service.cn.maxcompute.aliyun-inc.com/api",'."\n" + .' "table": "pai_temp_flow_qzkkjqic95olnrel1w_node_7hc1rdsa99gy2msbvc_visualizationTable"'."\n" + .' },'."\n" + .' "locationType": "MaxComputeTable"'."\n" + .' }],'."\n" + .' "components": [{'."\n" + .' "id": "histogram-chart",'."\n" + .' "dataId": "histogram_result"'."\n" + .' }],'."\n" + .' "dataInfos": [{'."\n" + .' "id": "histogram_result",'."\n" + .' "locationId": "result_table",'."\n" + .' "dataType": "json"'."\n" + .' }]'."\n" + .'}', + ], + ], + ], + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"A84A1282-D3E7-5198-9E8E-2AD09C78C6C1\\",\\n \\"VisualizationMeta\\": [\\n {\\n \\"NodeId\\": \\"node_id1\\",\\n \\"NodeName\\": \\"直方图_1\\",\\n \\"Meta\\": \\"{\\\\n\\\\t\\\\\\"locations\\\\\\": [{\\\\n\\\\t\\\\t\\\\\\"id\\\\\\": \\\\\\"result_table\\\\\\",\\\\n\\\\t\\\\t\\\\\\"location\\\\\\": {\\\\n\\\\t\\\\t\\\\t\\\\\\"project\\\\\\": \\\\\\"mulan_test_pre_1\\\\\\",\\\\n\\\\t\\\\t\\\\t\\\\\\"endpoint\\\\\\": \\\\\\"http://service.cn.maxcompute.aliyun-inc.com/api\\\\\\",\\\\n\\\\t\\\\t\\\\t\\\\\\"table\\\\\\": \\\\\\"pai_temp_flow_qzkkjqic95olnrel1w_node_7hc1rdsa99gy2msbvc_visualizationTable\\\\\\"\\\\n\\\\t\\\\t},\\\\n\\\\t\\\\t\\\\\\"locationType\\\\\\": \\\\\\"MaxComputeTable\\\\\\"\\\\n\\\\t}],\\\\n\\\\t\\\\\\"components\\\\\\": [{\\\\n\\\\t\\\\t\\\\\\"id\\\\\\": \\\\\\"histogram-chart\\\\\\",\\\\n\\\\t\\\\t\\\\\\"dataId\\\\\\": \\\\\\"histogram_result\\\\\\"\\\\n\\\\t}],\\\\n\\\\t\\\\\\"dataInfos\\\\\\": [{\\\\n\\\\t\\\\t\\\\\\"id\\\\\\": \\\\\\"histogram_result\\\\\\",\\\\n\\\\t\\\\t\\\\\\"locationId\\\\\\": \\\\\\"result_table\\\\\\",\\\\n\\\\t\\\\t\\\\\\"dataType\\\\\\": \\\\\\"json\\\\\\"\\\\n\\\\t}]\\\\n}\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取工作流草稿可视化的Meta', + ], + 'QueryExperimentVisualizationData' => [ + 'summary' => '获取工作流草稿可视化数据。', + 'path' => '/api/v1/experiments/{ExperimentId}/visualizationDataQuery', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '42909', + 'abilityTreeNodes' => [ + 'FEATURElearnUEX4WU', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'title' => 'experiment id', + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求Body。', + 'type' => 'array', + 'items' => [ + 'description' => '可视化请求。', + 'type' => 'object', + 'properties' => [ + 'NodeId' => [ + 'title' => 'node id', + 'description' => '工作流草稿中的节点ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'node-2dfd8xfjda', + ], + 'VisualizationDataIds' => [ + 'title' => 'dataId列表', + 'description' => '需要查询的DataId列表,假如DataId为空,则返回该节点下所有的data数据。', + 'type' => 'array', + 'items' => [ + 'description' => '需要查询的DataId。', + 'type' => 'string', + 'required' => false, + 'example' => 'dataId1', + ], + 'required' => false, + ], + 'StartTime' => [ + 'title' => '开始时间,UTC 时间,日期格式 iso8601,闭区间,对流算法必选', + 'description' => '开始时间,UTC 时间,日期格式 iso8601,闭区间,对流算法必选。', + 'type' => 'string', + 'required' => false, + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'EndTime' => [ + 'title' => '结束时间,UTC 时间,日期格式 iso8601,闭区间,对流算法必填', + 'description' => '结束时间,UTC 时间,日期格式 iso8601,闭区间,对流算法必填。', + 'type' => 'string', + 'required' => false, + 'example' => '2021-01-30T12:51:33.028Z', + ], + ], + 'required' => false, + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'FFB1D4B4-B253-540A-9B3B-AA711C48A1B7', + ], + 'VisualizationData' => [ + 'description' => '可视化数据列表。', + 'type' => 'array', + 'items' => [ + 'description' => '可视化数据。', + 'type' => 'object', + 'properties' => [ + 'NodeId' => [ + 'description' => '工作流草稿中的节点ID。', + 'type' => 'string', + 'example' => 'node-ux55ier8axzo2xelcc', + ], + 'DataId' => [ + 'description' => '可视化数据ID。', + 'type' => 'string', + 'example' => 'dataId1', + ], + 'Data' => [ + 'description' => '可视化数据。', + 'type' => 'string', + 'example' => '1,2,3,4,5', + ], + 'CreateTime' => [ + 'description' => '数据生成时间,UTC 时间,日期格式 iso8601。', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + ], + ], + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FFB1D4B4-B253-540A-9B3B-AA711C48A1B7\\",\\n \\"VisualizationData\\": [\\n {\\n \\"NodeId\\": \\"node-ux55ier8axzo2xelcc\\",\\n \\"DataId\\": \\"dataId1\\",\\n \\"Data\\": \\"1,2,3,4,5\\",\\n \\"CreateTime\\": \\"2021-01-30T12:51:33.028Z\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取工作流草稿可视化数据', + ], + 'GetAlgoTree' => [ + 'summary' => '获取算法树。', + 'path' => '/api/v1/algo/tree', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '13795', + 'abilityTreeNodes' => [ + 'FEATURElearnZAMNTS', + ], + ], + 'parameters' => [ + [ + 'name' => 'Source', + 'in' => 'query', + 'schema' => [ + 'description' => '获取指定源的算法列表,默认为PaiStudio。', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '8CAA642F-EFEB-5F87-8F2F-ACD58B15FA03', + ], + 'Data' => [ + 'description' => '算法定义。', + 'type' => 'object', + 'example' => '[{}]', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8CAA642F-EFEB-5F87-8F2F-ACD58B15FA03\\",\\n \\"Data\\": [\\n {}\\n ]\\n}","type":"json"}]', + 'title' => '获取算法树', + ], + 'ListNodeOutputs' => [ + 'summary' => '获取工作流草稿节点的输出模型。', + 'path' => '/api/v1/experiments/{ExperimentId}/nodes/{NodeId}/outputs', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '14233', + 'abilityTreeNodes' => [ + 'FEATURElearnZNL1NN', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿中的节点ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'node-5dzotrnwyzfxmbwwc8', + ], + ], + ], + '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', + ], + 'Outputs' => [ + 'description' => '节点的模型列表。', + 'type' => 'array', + 'items' => [ + 'description' => '模型信息。', + 'type' => 'object', + 'properties' => [ + 'DisplayName' => [ + 'description' => '模型名称,格式是{NodeName}-{outputId}。', + 'type' => 'string', + 'example' => '逻辑回归二分类-2-outputModel', + ], + 'Type' => [ + 'description' => '类型,有Model、DataSet。', + 'type' => 'string', + 'example' => 'Model', + ], + 'OutputId' => [ + 'description' => '算法节点输出端口id。', + 'type' => 'string', + 'example' => 'outputModel', + ], + 'OutputIndex' => [ + 'description' => '可变长节点的index,从0开始。', + 'type' => 'string', + 'example' => '0', + ], + 'Value' => [ + 'description' => 'Output的内容,不同Type的Output对应的key不一样。', + 'type' => 'object', + 'example' => '{'."\n" + .' "name": "model_flow_wayrh3k605s7i51wey_node_7n3tstbuhr36t0ukiz_model",'."\n" + .' "modelType": "OfflineModel",'."\n" + .' "labelCol": "_c2",'."\n" + .' "features": "pm10,so2,co,no2",'."\n" + .' "gmtCreateTime": "2021-01-21T17:12:35.232Z",'."\n" + .' "gmtModifiedTime": "2021-01-21T17:12:35.232Z",'."\n" + .' "parameters": {'."\n" + .' "epsilon": "0.000001",'."\n" + .' "enableSparse": "false",'."\n" + .' "regularizedLevel": "1",'."\n" + .' "roleArn": "true",'."\n" + .' "maxIter": "100",'."\n" + .' "regularizedType": "None",'."\n" + .' "generatePmml": "true"'."\n" + .' }'."\n" + .'}', + ], + 'NodeName' => [ + 'description' => '节点名称。', + 'type' => 'string', + 'example' => 'node1', + ], + 'AlgoName' => [ + 'description' => '算法名称。', + 'type' => 'string', + 'example' => '逻辑回归二分类', + ], + 'LocationType' => [ + 'description' => '模型位置:'."\n" + .'* MaxComputeTable: MaxCompute表'."\n" + .'* OSS: OSS', + 'type' => 'string', + 'example' => 'MaxComputeTable', + ], + ], + ], + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Outputs\\": [\\n {\\n \\"DisplayName\\": \\"逻辑回归二分类-2-outputModel\\",\\n \\"Type\\": \\"Model\\",\\n \\"OutputId\\": \\"outputModel\\",\\n \\"OutputIndex\\": \\"0\\",\\n \\"Value\\": {\\n \\"name\\": \\"model_flow_wayrh3k605s7i51wey_node_7n3tstbuhr36t0ukiz_model\\",\\n \\"modelType\\": \\"OfflineModel\\",\\n \\"labelCol\\": \\"_c2\\",\\n \\"features\\": \\"pm10,so2,co,no2\\",\\n \\"gmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"gmtModifiedTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"parameters\\": {\\n \\"epsilon\\": \\"0.000001\\",\\n \\"enableSparse\\": \\"false\\",\\n \\"regularizedLevel\\": \\"1\\",\\n \\"roleArn\\": \\"true\\",\\n \\"maxIter\\": \\"100\\",\\n \\"regularizedType\\": \\"None\\",\\n \\"generatePmml\\": \\"true\\"\\n }\\n },\\n \\"NodeName\\": \\"node1\\",\\n \\"AlgoName\\": \\"逻辑回归二分类\\",\\n \\"LocationType\\": \\"MaxComputeTable\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取节点的输出模型', + ], + 'GetNodeOutput' => [ + 'summary' => '获取某个节点的输出模型信息。', + 'path' => '/api/v1/experiments/{ExperimentId}/nodes/{NodeId}/outputs/{OutputId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '14234', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'path', + 'schema' => [ + 'description' => '工作流草稿中的节点ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'node-5dzotrnwyzfxmbwwc8', + ], + ], + [ + 'name' => 'OutputId', + 'in' => 'path', + 'schema' => [ + 'description' => '算法节点输出端口id。', + 'type' => 'string', + 'required' => true, + 'example' => 'outputId', + ], + ], + [ + 'name' => 'OutputIndex', + 'in' => 'query', + 'schema' => [ + 'description' => '可变长节点的index,从0开始。', + 'type' => 'string', + 'required' => false, + 'example' => '0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '601FD8B1-78EB-5220-844C-92AC2EDAF7E1', + ], + 'NodeName' => [ + 'description' => '节点名称。', + 'type' => 'string', + 'example' => '逻辑回归二分类-1', + ], + 'AlgoName' => [ + 'description' => '算法名称。', + 'type' => 'string', + 'example' => '逻辑回归二分类', + ], + 'DisplayName' => [ + 'description' => '展示名称。', + 'type' => 'string', + 'example' => '逻辑回归二分类-2-outputModel', + ], + 'Type' => [ + 'description' => '类型,有Model、DataSet', + 'type' => 'string', + 'example' => 'Model', + ], + 'Value' => [ + 'description' => 'Output的内容,不同Type的Output对应的key不一样。', + 'type' => 'object', + 'example' => '{'."\n" + .' "name": "model_flow_wayrh3k605s7i51wey_node_7n3tstbuhr36t0ukiz_model",'."\n" + .' "modelType": "OfflineModel",'."\n" + .' "labelCol": "_c2",'."\n" + .' "features": "pm10,so2,co,no2",'."\n" + .' "gmtCreateTime": "2021-01-21T17:12:35.232Z",'."\n" + .' "gmtModifiedTime": "2021-01-21T17:12:35.232Z",'."\n" + .' "parameters": {'."\n" + .' "epsilon": "0.000001",'."\n" + .' "enableSparse": "false",'."\n" + .' "regularizedLevel": "1",'."\n" + .' "roleArn": "true",'."\n" + .' "maxIter": "100",'."\n" + .' "regularizedType": "None",'."\n" + .' "generatePmml": "true"'."\n" + .' }'."\n" + .'}', + ], + 'LocationType' => [ + 'description' => '模型位置:'."\n" + .'* MaxComputeTable: MaxCompute表'."\n" + .'* OSS: OSS', + 'type' => 'string', + 'example' => 'MaxComputeTable', + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"601FD8B1-78EB-5220-844C-92AC2EDAF7E1\\",\\n \\"NodeName\\": \\"逻辑回归二分类-1\\",\\n \\"AlgoName\\": \\"逻辑回归二分类\\",\\n \\"DisplayName\\": \\"逻辑回归二分类-2-outputModel\\",\\n \\"Type\\": \\"Model\\",\\n \\"Value\\": {\\n \\"name\\": \\"model_flow_wayrh3k605s7i51wey_node_7n3tstbuhr36t0ukiz_model\\",\\n \\"modelType\\": \\"OfflineModel\\",\\n \\"labelCol\\": \\"_c2\\",\\n \\"features\\": \\"pm10,so2,co,no2\\",\\n \\"gmtCreateTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"gmtModifiedTime\\": \\"2021-01-21T17:12:35.232Z\\",\\n \\"parameters\\": {\\n \\"epsilon\\": \\"0.000001\\",\\n \\"enableSparse\\": \\"false\\",\\n \\"regularizedLevel\\": \\"1\\",\\n \\"roleArn\\": \\"true\\",\\n \\"maxIter\\": \\"100\\",\\n \\"regularizedType\\": \\"None\\",\\n \\"generatePmml\\": \\"true\\"\\n }\\n },\\n \\"LocationType\\": \\"MaxComputeTable\\"\\n}","type":"json"}]', + 'title' => '获取某个节点的输出模型信息', + ], + 'ListAuthRoles' => [ + 'summary' => '获取授权角色列表。', + 'path' => '/api/v1/authorization/roles', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '21720', + 'abilityTreeNodes' => [ + 'FEATURElearnWUYTTV', + ], + ], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => false, + 'example' => '12345', + ], + ], + [ + 'name' => 'IsGenerateToken', + 'in' => 'query', + 'schema' => [ + 'description' => '是否生成STS临时Token,已经废弃。', + 'type' => 'string', + 'required' => false, + 'example' => 'true', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '8E2C1BB9-57C4-5051-9EF2-570ADC03A164', + ], + 'Roles' => [ + 'description' => '角色列表。', + 'type' => 'array', + 'items' => [ + 'description' => '角色信息。', + 'type' => 'object', + 'properties' => [ + 'RoleName' => [ + 'description' => '角色名称。', + 'type' => 'string', + 'example' => 'AliyunODPSPAIDefaultRole', + ], + 'RoleARN' => [ + 'description' => '角色的arn。', + 'type' => 'string', + 'example' => 'acs:ram::1557********904:role/aliyunodpspaidefaultrole', + ], + 'IsEnabled' => [ + 'description' => '角色是否可用。', + 'type' => 'string', + 'example' => 'true', + ], + 'Token' => [ + 'description' => '角色凭证信息,已经废弃。', + 'type' => 'object', + 'properties' => [ + 'SecurityToken' => [ + 'description' => 'STS生成security token。', + 'type' => 'string', + 'example' => 'CAISggJ1q6Ft5B2yf***************aAaDf+bmceH2MNtNe9XtmTXJytadQ2T0RT8uOA+4kSypOPxSHjdjmnQjbdA/Q9MyNtTErQ/m45RNsg==', + ], + 'AccessKeyId' => [ + 'description' => 'STS生成access id。', + 'type' => 'string', + 'example' => 'STS.NU************TT5LoC', + ], + 'AccessKeySecret' => [ + 'description' => 'STS生成access key。', + 'type' => 'string', + 'example' => 'E1h2n66Duo1D**********c79JVk59R6i', + ], + 'Expiration' => [ + 'description' => '过期时间。', + 'type' => 'string', + 'example' => '2021-03-19T19:14:42Z', + ], + ], + ], + 'RoleType' => [ + 'description' => 'Role的类型。', + 'type' => 'string', + 'example' => 'PaiStudio。', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8E2C1BB9-57C4-5051-9EF2-570ADC03A164\\",\\n \\"Roles\\": [\\n {\\n \\"RoleName\\": \\"AliyunODPSPAIDefaultRole\\",\\n \\"RoleARN\\": \\"acs:ram::1557********904:role/aliyunodpspaidefaultrole\\",\\n \\"IsEnabled\\": \\"true\\",\\n \\"Token\\": {\\n \\"SecurityToken\\": \\"CAISggJ1q6Ft5B2yf***************aAaDf+bmceH2MNtNe9XtmTXJytadQ2T0RT8uOA+4kSypOPxSHjdjmnQjbdA/Q9MyNtTErQ/m45RNsg==\\",\\n \\"AccessKeyId\\": \\"STS.NU************TT5LoC\\",\\n \\"AccessKeySecret\\": \\"E1h2n66Duo1D**********c79JVk59R6i\\",\\n \\"Expiration\\": \\"2021-03-19T19:14:42Z\\"\\n },\\n \\"RoleType\\": \\"PaiStudio。\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取授权角色列表', + ], + 'ListImages' => [ + 'summary' => '列举已注册镜像', + 'path' => '/api/v1/images', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '20013', + 'abilityTreeNodes' => [ + 'FEATURElearnAFIS9K', + ], + ], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => '镜像名称,支持模糊搜索', + 'type' => 'string', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '分页,从1开始,默认1', + 'type' => 'integer', + 'format' => 'int32', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小,默认20', + 'type' => 'integer', + 'format' => 'int32', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序字段', + 'type' => 'string', + 'example' => 'GmtCreateTime', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序方向: ASC - 升序 DESC - 降序', + 'type' => 'string', + ], + ], + [ + 'name' => 'Labels', + 'in' => 'query', + 'schema' => [ + 'title' => '过滤值 以逗号分隔', + 'type' => 'string', + 'example' => 'Framework="Tensorflow 1.0",Framework="Tensorflow 2.0",Platform="GPU"', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'title' => '是否显示非必要信息:Labels', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'title' => 'Id of the request', + 'type' => 'string', + ], + 'TotalCount' => [ + 'title' => '总数', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2', + ], + 'Images' => [ + 'title' => '镜像列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '镜像名称', + 'type' => 'string', + ], + 'GmtCreateTime' => [ + 'title' => '创建 UTC 时间,日期格式 iso8601', + 'type' => 'string', + 'example' => '2021-01-21T17:12:35.232Z', + ], + 'Description' => [ + 'title' => '镜像描述', + 'type' => 'string', + ], + 'ImageUri' => [ + 'title' => '镜像地址,包含版本号', + 'type' => 'string', + ], + 'Labels' => [ + 'title' => '镜像标签,是个map', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'title' => 'Key', + 'type' => 'string', + ], + 'Value' => [ + 'title' => 'Value', + 'type' => 'string', + ], + ], + ], + ], + 'ImageId' => [ + 'title' => '镜像id', + 'type' => 'string', + 'example' => 'image-tzi7f9czc0cxs9s45t', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '', + ], + 'ListImageLabels' => [ + 'summary' => '列举标签', + 'path' => '/api/v1/image/labels', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '20007', + 'abilityTreeNodes' => [ + 'FEATURElearnAFIS9K', + ], + ], + 'parameters' => [ + [ + 'name' => 'LabelKeys', + 'in' => 'query', + 'schema' => [ + 'title' => '标签列表,以逗号分隔', + 'type' => 'string', + 'example' => 'ImageType,Framework,Platform', + ], + ], + [ + 'name' => 'LabelFilter', + 'in' => 'query', + 'schema' => [ + 'title' => 'image过滤条件,获取满足条件的image的所有label', + 'type' => 'string', + 'example' => 'a=b,c=d', + ], + ], + [ + 'name' => 'ImageId', + 'in' => 'query', + 'schema' => [ + 'title' => '镜像id', + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'title' => 'Id of the request', + 'type' => 'string', + ], + 'Labels' => [ + 'title' => '镜像标签', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'title' => '键', + 'type' => 'string', + ], + 'Value' => [ + 'title' => '值', + 'type' => 'string', + ], + ], + ], + ], + 'TotalCount' => [ + 'title' => '符合过滤条件的数量', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2', + ], + ], + ], + ], + ], + 'responseDemo' => '', + ], + 'MigrateExperiments' => [ + 'summary' => '从Studio 1.0迁移工作流草稿到Designer', + 'path' => '/api/v1/migrate/experiments', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '93908', + 'abilityTreeNodes' => [ + 'FEATURElearn01UVDS', + ], + ], + 'parameters' => [ + [ + 'name' => 'SourceExpId', + 'in' => 'query', + 'schema' => [ + 'description' => 'Studio1.0中的实验ID。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'DestFolderId', + 'in' => 'query', + 'schema' => [ + 'description' => '目标文件夹ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'folder-12321313', + ], + ], + [ + 'name' => 'Accessibility', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间可见性,可能值为:'."\n" + .'- PRIVATE:在此工作空间中,仅对您和管理员可见。'."\n" + .'- PUBLIC:在此工作空间中,对所有人可见。', + 'type' => 'string', + 'required' => false, + 'example' => 'PRIVATE', + ], + ], + [ + 'name' => 'UpdateIfExists', + 'in' => 'query', + 'schema' => [ + 'description' => '假如已经存在是否更新。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'IsOwner', + 'in' => 'query', + 'schema' => [ + 'description' => '是否只迁移自己的。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', + ], + 'Code' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'NO_PERMISSION', + ], + 'Message' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'NotExistError', + ], + 'Data' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '工作流草稿ID。', + 'type' => 'string', + 'example' => 'draft-8u3ck2or5pw2i4auhf', + ], + 'AlreadyExists' => [ + 'description' => '是否已经存在。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Updated' => [ + 'description' => '是否更新了。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"Code\\": \\"NO_PERMISSION\\",\\n \\"Message\\": \\"NotExistError\\",\\n \\"Data\\": {\\n \\"ExperimentId\\": \\"draft-8u3ck2or5pw2i4auhf\\",\\n \\"AlreadyExists\\": true,\\n \\"Updated\\": true\\n }\\n}","type":"json"}]', + 'title' => '从Studio 1.0迁移工作流草稿到Designer', + ], + 'CreateExperimentMigrateValidation' => [ + 'summary' => '创建工作流草稿迁移的校', + 'path' => '/api/v1/migrate/experimentvalidation', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '100051', + 'abilityTreeNodes' => [ + 'FEATURElearn01UVDS', + ], + ], + 'parameters' => [ + [ + 'name' => 'SourceExpId', + 'in' => 'query', + 'schema' => [ + 'description' => 'Studio1.0中的实验ID。', + 'type' => 'integer', + 'format' => 'int64', + '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' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => '创建工作流草稿迁移的校验', + ], + 'MigrateExperimentFolders' => [ + 'summary' => '迁移PAI Studio 1.0的实验目录', + 'path' => '/api/v1/migrate/folders', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '93906', + 'abilityTreeNodes' => [ + 'FEATURElearn01UVDS', + ], + ], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'IsOwner', + 'in' => 'query', + 'schema' => [ + 'description' => '是否只迁移自己的。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'Accessibility', + 'in' => 'query', + 'schema' => [ + 'description' => '工作流草稿的可见性,取值如下:'."\n" + .'- PUBLIC:在此工作空间中,对所有人可见。'."\n" + .'- PRIVATE:在此工作空间中,仅对您和管理员可见。', + 'type' => 'string', + 'required' => false, + 'example' => 'PRIVATE', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '9CFA2665-1FFE-5929-8468-C14C25890486', + ], + 'Code' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => 'NO_PERMISSION', + ], + 'Message' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'FolderIdMapping' => [ + 'description' => '迁移结果,返回值是一个Map,key是userId。', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'object', + 'description' => 'Studio 1.0实验ID到工作流草稿ID的映射关系,key是实验ID,value是工作流草稿ID。', + 'example' => '{'."\n" + .' "user1": {'."\n" + .' 123 :"draft-xxxx"'."\n" + .' }'."\n" + .'}', + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"9CFA2665-1FFE-5929-8468-C14C25890486\\",\\n \\"Code\\": \\"NO_PERMISSION\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"FolderIdMapping\\": {\\n \\"key\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n}","type":"json"}]', + 'title' => '从Studio 1.0迁移工作流草稿目录', + ], + 'GetAlgorithmDefs' => [ + 'summary' => '批量获取算法定义。', + 'path' => '/api/v1/algorithm/defs', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '19292', + 'abilityTreeNodes' => [ + 'FEATURElearnZAMNTS', + ], + ], + 'parameters' => [ + [ + 'name' => 'Timestamp', + 'in' => 'query', + 'schema' => [ + 'description' => '当前已缓存的时间戳,会返回此时间戳到服务端最新时间戳之间的算法列表。'."\n" + .'不传直接返回全量的最新列表。', + 'type' => 'string', + 'required' => false, + 'example' => '1709950208', + ], + ], + [ + 'name' => 'LatestTimestamp', + 'in' => 'query', + 'schema' => [ + 'description' => '服务端返回的最新版本的时间戳,不传则自动获取。', + 'type' => 'string', + 'required' => false, + 'example' => '1709950208', + ], + ], + [ + 'name' => 'RangeStart', + 'in' => 'query', + 'schema' => [ + 'description' => '分页获取算法定义,当前页的范围起始点,闭区间。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'RangeEnd', + 'in' => 'query', + 'schema' => [ + 'description' => '分页获取算法定义,当前页的范围结束点,开区间。', + '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' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + 'Specs' => [ + 'description' => '算法定义列表。', + 'type' => 'array', + 'items' => [ + 'description' => '算法定义。', + 'type' => 'object', + 'example' => '{}', + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"Specs\\": [\\n {}\\n ]\\n}","type":"json"}]', + 'title' => '批量获取算法定义', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-beijing', + 'endpoint' => 'pai.cn-beijing.aliyuncs.com', + ], + [ + 'regionId' => 'cn-wulanchabu', + 'endpoint' => 'pai.cn-wulanchabu.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou', + 'endpoint' => 'pai.cn-hangzhou.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'pai.cn-shanghai.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen', + 'endpoint' => 'pai.cn-shenzhen.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hongkong', + 'endpoint' => 'pai.cn-hongkong.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-1', + 'endpoint' => 'pai.ap-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-3', + 'endpoint' => 'pai.ap-southeast-3.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-5', + 'endpoint' => 'pai.ap-southeast-5.aliyuncs.com', + ], + [ + 'regionId' => 'eu-central-1', + 'endpoint' => 'pai.eu-central-1.aliyuncs.com', + ], + [ + 'regionId' => 'cn-guangzhou', + 'endpoint' => 'pai.cn-guangzhou.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-1', + 'endpoint' => 'pai.ap-northeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-east-1', + 'endpoint' => 'pai.us-east-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-west-1', + 'endpoint' => 'pai.us-west-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-2', + 'endpoint' => 'pai.ap-northeast-2.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai-finance-1', + 'endpoint' => 'pai.cn-shanghai-finance-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-southeast-1', + 'endpoint' => 'pai.us-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-7', + 'endpoint' => 'pai.ap-southeast-7.aliyuncs.com', + ], + [ + 'regionId' => 'me-east-1', + 'endpoint' => 'pai.me-east-1.aliyuncs.com', + ], + ], +]; diff --git a/data/zh_cn/paistudio/2022-01-12/api-docs.php b/data/zh_cn/paistudio/2022-01-12/api-docs.php new file mode 100644 index 0000000..6370f7c --- /dev/null +++ b/data/zh_cn/paistudio/2022-01-12/api-docs.php @@ -0,0 +1,12660 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'PaiStudio', + 'version' => '2022-01-12', + ], + 'directories' => [ + [ + 'id' => 384361, + 'title' => '资源组', + 'type' => 'directory', + 'children' => [ + 'UpdateResourceGroup', + 'GetResourceGroupTotal', + 'ListResourceGroups', + 'GetResourceGroupRequest', + 'DeleteResourceGroupMachineGroup', + 'GetNodeMetrics', + 'ListResourceGroupMachineGroups', + 'GetUserViewMetrics', + 'GetResourceGroupMachineGroup', + 'GetResourceGroup', + 'DeleteMachineGroup', + 'CreateResourceGroup', + 'DeleteResourceGroup', + 'GetMachineGroup', + ], + ], + [ + 'id' => 384376, + 'title' => '训练算法', + 'type' => 'directory', + 'children' => [ + 'CreateAlgorithm', + 'CreateAlgorithmVersion', + 'DeleteAlgorithm', + 'DeleteAlgorithmVersion', + 'GetAlgorithm', + 'GetAlgorithmVersion', + 'ListAlgorithms', + 'ListAlgorithmVersions', + 'UpdateAlgorithm', + 'UpdateAlgorithmVersion', + ], + ], + [ + 'id' => 384387, + 'title' => '训练任务', + 'type' => 'directory', + 'children' => [ + 'CreateTrainingJob', + 'CreateInstanceWebTerminal', + 'CheckInstanceWebTerminal', + 'DeleteTrainingJob', + 'DeleteTrainingJobLabels', + 'GetToken', + 'GetTrainingJob', + 'GetTrainingJobErrorInfo', + 'GetTrainingJobLatestMetrics', + 'ListTrainingJobs', + 'ListTrainingJobEvents', + 'ListTrainingJobInstanceEvents', + 'ListTrainingJobInstanceMetrics', + 'ListTrainingJobLogs', + 'ListTrainingJobMetrics', + 'ListTrainingJobOutputModels', + 'StopTrainingJob', + 'UpdateTrainingJobLabels', + ], + ], + [ + 'id' => 384406, + 'title' => '资源配额', + 'type' => 'directory', + 'children' => [ + 'CreateQuota', + 'ListQuotas', + 'GetQuota', + 'UpdateQuota', + 'ScaleQuota', + 'DeleteQuota', + 'ListQuotaWorkloads', + ], + ], + [ + 'id' => 384414, + 'title' => '标签', + 'type' => 'directory', + 'children' => [ + 'ListTagResources', + 'TagResources', + 'UntagResources', + ], + ], + [ + 'id' => 384418, + 'title' => '其他', + 'type' => 'directory', + 'children' => [ + 'ListNodes', + 'GetSpotPriceHistory', + 'OperateNode', + ], + ], + ], + 'components' => [ + 'schemas' => [ + 'ACS' => [ + 'title' => 'ACS Quota Related Configuration', + 'description' => 'ACS相关配置。', + 'type' => 'object', + 'properties' => [ + 'ACSQuotaId' => [ + 'title' => 'ACS Identifier', + 'description' => 'ACS资源ID。', + 'type' => 'string', + 'example' => 'rq-3kbt2gtimmyw7fgfgothocvh', + ], + 'AssociatedProducts' => [ + 'title' => 'Products that can use ACS Quota', + 'description' => '可使用ACS Quota的产品码。'."\n" + ."\n" + .'约束:'."\n" + .'可以选多个子产品,但有些子产品之间存在互斥关系。可同时选择:'."\n" + .'- PAI-DLC、PAI-DSW'."\n" + .'- PAI-EAS', + 'type' => 'array', + 'items' => [ + 'description' => '使用ACS资源的产品码。', + 'type' => 'string', + 'example' => 'PAI-DLC', + ], + ], + ], + ], + 'Action' => [ + 'title' => '任务操作配置', + 'description' => '操作配置', + 'type' => 'object', + 'properties' => [ + 'ActionType' => [ + 'title' => '操作类型', + 'type' => 'string', + ], + ], + ], + 'AlgorithmSpec' => [ + 'title' => 'Defines how the training job of the algorithm run.', + 'description' => '算法定义。', + 'type' => 'object', + 'properties' => [ + 'OutputChannels' => [ + 'title' => 'The outputs of the algorithm.', + 'description' => '算法输出通道列表。', + 'type' => 'array', + 'items' => [ + 'description' => '算法输出通道。', + '$ref' => '#/components/schemas/Channel', + ], + ], + 'HyperParameters' => [ + 'title' => 'The hype parameter used by the algorithm.', + 'description' => '超参数定义列表。', + 'type' => 'array', + 'items' => [ + 'description' => '超参数定义。', + '$ref' => '#/components/schemas/HyperParameterDefinition', + ], + ], + 'JobType' => [ + 'title' => 'Job type of the training job while running the algorithm.', + 'description' => '任务类型。', + 'type' => 'string', + 'required' => true, + 'example' => 'TFJob', + 'enum' => [ + 'TFJob', + 'PyTorchJob', + 'XGBoostJob', + 'ElasticBatchJob', + ], + ], + 'Command' => [ + 'title' => 'The command used for submit the job.', + 'description' => '训练任务运行命令列表。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务运行命令。', + 'type' => 'string', + 'example' => 'python train.py', + ], + 'required' => true, + ], + 'MetricDefinitions' => [ + 'title' => 'The output metrics of the algorithm.', + 'description' => '训练任务指标采集定义列表。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务指标采集定义。', + '$ref' => '#/components/schemas/MetricDefinition', + ], + ], + 'InputChannels' => [ + 'title' => 'The input for the algorithm.', + 'description' => '算法输入通道列表。', + 'type' => 'array', + 'items' => [ + 'description' => '算法输入通道。', + '$ref' => '#/components/schemas/Channel', + ], + 'required' => false, + ], + 'SupportsDistributedTraining' => [ + 'title' => 'Indicates whether the algorithm support distributed training.', + 'description' => '是否支持分布式训练。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Image' => [ + 'title' => 'The docker image used by the job of this algorithm.', + 'description' => '训练镜像。', + 'type' => 'string', + 'required' => true, + 'example' => 'registry.cn-shanghai.aliyuncs.com/pai-training/kmeans:v1.0.0', + ], + 'SupportedInstanceTypes' => [ + 'title' => 'A list of ECS instances that the algorithm can use to submit training job.', + 'description' => '训练支持的弹性计算实例列表。', + 'type' => 'array', + 'items' => [ + 'description' => '训练支持的弹性计算实例。', + 'type' => 'string', + 'example' => 'ecs.g6.2xlarge', + ], + 'deprecated' => false, + ], + 'ComputeResource' => [ + 'title' => 'Compute resource', + 'description' => '计算资源定义。', + 'type' => 'object', + 'properties' => [ + 'Policy' => [ + 'title' => 'Policy', + 'description' => '算法的计算资源配置策略。', + 'type' => 'object', + 'properties' => [ + 'Version' => [ + 'title' => 'Policy Version', + 'description' => '配置策略版本。', + 'type' => 'string', + 'required' => true, + 'example' => 'V1', + ], + 'Value' => [ + 'title' => 'Policy Value', + 'description' => '策略内容,由json数组序列化而成。', + 'type' => 'string', + 'required' => true, + 'example' => '[{\\"MinTotalCount\\":1,\\"MaxTotalCount\\":4,\\"RolePolicies\\":{\\"chief\\":{\\"Count\\":1},\\"ps\\":{\\"Count\\":1},\\"worker\\":{\\"Percentage\\":100}}},{\\"MinTotalCount\\":5,\\"MaxTotalCount\\":10,\\"RolePolicies\\":{\\"chief\\":{\\"Count\\":1},\\"ps\\":{\\"Percentage\\":20},\\"worker\\":{\\"Percentage\\":80}}},{\\"MinTotalCount\\":11,\\"RolePolicies\\":{\\"chief\\":{\\"Count\\":1},\\"ps\\":{\\"Percentage\\":40},\\"worker\\":{\\"Percentage\\":60}}}]', + ], + ], + 'required' => true, + ], + ], + ], + 'CodeDir' => [ + 'description' => '自定义代码配置。', + '$ref' => '#/components/schemas/Location', + ], + 'Customization' => [ + 'title' => 'Customization', + 'description' => '自定义配置。', + 'type' => 'object', + 'properties' => [ + 'CodeDir' => [ + 'title' => 'CodeDir', + 'description' => '是否使用自定义挂载的代码。', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + 'ResourceRequirements' => [ + 'title' => 'Resource requirements.', + 'description' => '资源需求。', + 'type' => 'array', + 'items' => [ + 'description' => '资源需求表达式。', + '$ref' => '#/components/schemas/ConditionExpression', + ], + ], + 'ProgressDefinitions' => [ + 'title' => 'ProgressDefinitions', + 'description' => '训练进度监控。', + 'type' => 'object', + 'properties' => [ + 'OverallProgress' => [ + 'title' => 'OverallProgress', + 'description' => '训练进度监控。', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'title' => 'Description', + 'description' => '监控描述。', + 'type' => 'string', + 'example' => 'training progress', + ], + 'Regex' => [ + 'title' => 'Regex', + 'description' => '监控正则表达式。', + 'type' => 'string', + 'example' => '^[0-9]+([.][0-9]+){0,1}$', + ], + ], + ], + 'RemainingTime' => [ + 'title' => 'RemainingTime', + 'description' => '训练剩余时间监控。', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'title' => 'Description', + 'description' => '监控描述。', + 'type' => 'string', + 'example' => 'training remaining time', + ], + 'Regex' => [ + 'title' => 'Regex', + 'description' => '监控正则表达式。', + 'type' => 'string', + 'example' => '^[0-9]+([.][0-9]+){0,1}$', + ], + ], + ], + ], + ], + ], + ], + 'AllocateStrategySpec' => [ + 'title' => '资源配额分配策略', + 'description' => '资源分配策略', + 'type' => 'object', + 'properties' => [ + 'NodeSpecs' => [ + 'title' => '资源节点规格', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/NodeSpec', + ], + ], + ], + ], + 'AssignNodeSpec' => [ + 'type' => 'object', + 'properties' => [ + 'EnableAssignNode' => [ + 'type' => 'boolean', + ], + 'NodeNames' => [ + 'type' => 'string', + ], + 'AntiAffinityNodeNames' => [ + 'type' => 'string', + ], + ], + ], + 'BindingPolicy' => [ + 'title' => '绑定节点规则', + 'description' => '绑定节点规则', + 'type' => 'object', + 'properties' => [ + 'NodeSpecCount' => [ + 'title' => '由调度器选择节点数量', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '5', + ], + 'IncludeNodes' => [ + 'title' => '必须包含的节点名称列表', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + 'example' => 'lrnabc', + ], + ], + 'ExcludeNodes' => [ + 'title' => '不可包含的节点名称列表', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + 'example' => 'lrndef', + ], + ], + ], + ], + 'CacheInfo' => [ + 'type' => 'object', + 'properties' => [ + 'MountPoint' => [ + 'type' => 'string', + ], + 'Port' => [ + 'type' => 'string', + ], + ], + ], + 'CacheService' => [ + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'type' => 'string', + ], + 'QuotaId' => [ + 'type' => 'string', + ], + 'TenantId' => [ + 'type' => 'string', + ], + 'SupportedClientQuotaIds' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'CreatedBy' => [ + 'type' => 'string', + ], + 'UserId' => [ + 'type' => 'string', + ], + 'CacheInfos' => [ + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/CacheInfo', + ], + ], + 'CacheServiceId' => [ + 'type' => 'string', + ], + 'GmtCreated' => [ + 'type' => 'string', + ], + 'UserVpc' => [ + '$ref' => '#/components/schemas/UserVpc', + ], + ], + ], + 'CapacityLock' => [ + 'type' => 'object', + 'properties' => [ + 'id' => [ + 'type' => 'string', + ], + 'gmtCreated' => [ + 'type' => 'string', + ], + 'gmtModified' => [ + 'type' => 'string', + ], + 'lockProvider' => [ + 'type' => 'string', + ], + 'privatePoolId' => [ + 'type' => 'string', + ], + 'tenantId' => [ + 'type' => 'string', + ], + 'instanceType' => [ + 'type' => 'string', + ], + 'zoneId' => [ + 'type' => 'string', + ], + 'paymentType' => [ + 'type' => 'string', + ], + 'status' => [ + 'type' => 'string', + ], + 'lastSyncTime' => [ + 'type' => 'string', + ], + 'lastReconcileAttemptTime' => [ + 'type' => 'string', + ], + 'crsReservationId' => [ + 'type' => 'string', + ], + 'expireTime' => [ + 'type' => 'string', + ], + 'operator' => [ + 'type' => 'string', + ], + 'description' => [ + 'type' => 'string', + ], + 'requestedCount' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'lockedCount' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'usedCount' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'availableCount' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + 'Channel' => [ + 'title' => 'A named input/output for the algorithm.', + 'description' => '输入/输出通道定义。', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'title' => 'A brief description for the channel.', + 'description' => '通道描述。', + 'type' => 'string', + 'example' => '模型输出。', + ], + 'Required' => [ + 'title' => 'Indicates whethe the channels is required.', + 'description' => '通道是否必须配置。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Properties' => [ + 'title' => 'The properties of channel.', + 'description' => '通道的存储配置。', + 'type' => 'object', + 'example' => '{}', + ], + 'Name' => [ + 'title' => 'The name of channel.', + 'description' => '通道名。', + 'type' => 'string', + 'required' => true, + 'example' => 'Model', + ], + 'SupportedChannelTypes' => [ + 'title' => 'Supported Channel Types', + 'description' => '通道支持的存储类型列表。', + 'type' => 'array', + 'items' => [ + 'description' => '存储类型。', + 'type' => 'string', + 'example' => 'oss', + ], + 'required' => false, + ], + ], + ], + 'ChannelProperty' => [ + 'title' => 'A key/value structure used for store extra information of the channel.', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'title' => 'The value of the property.', + 'type' => 'string', + 'required' => true, + 'example' => 'Framework', + ], + 'Name' => [ + 'title' => 'The key of the property.', + 'type' => 'string', + 'required' => true, + 'example' => 'SKlearn', + ], + ], + 'required' => false, + ], + 'ClusterSpec' => [ + 'type' => 'object', + 'properties' => [ + 'ClusterType' => [ + 'type' => 'string', + ], + 'Image' => [ + 'type' => 'string', + ], + 'DataSources' => [ + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/DataSource', + ], + ], + ], + ], + 'ComponentSpec' => [ + 'title' => 'Defines how the training job of the algorithm run.', + 'type' => 'object', + 'properties' => [ + 'OutputChannels' => [ + 'title' => 'The outputs of the algorithm.', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/Channel', + ], + ], + 'HyperParameters' => [ + 'title' => 'The hype parameter used by the algorithm.', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/HyperParameterDefinition', + ], + ], + 'JobType' => [ + 'title' => 'Job type of the training job while running the algorithm.', + 'type' => 'string', + 'required' => true, + ], + 'Command' => [ + 'title' => 'The command used for submit the job.', + 'type' => 'string', + 'required' => true, + ], + 'MetricDefinitions' => [ + 'title' => 'The output metrics of the algorithm.', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/MetricDefinition', + ], + ], + 'InputChannels' => [ + 'title' => 'The input for the algorithm.', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/Channel', + ], + 'required' => false, + ], + 'Image' => [ + 'title' => 'The docker image used by the job of this algorithm.', + 'type' => 'string', + 'required' => true, + ], + 'CodeDir' => [ + '$ref' => '#/components/schemas/Location', + ], + 'ResourceRequirements' => [ + 'title' => 'Resource requirements.', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/ConditionExpression', + ], + ], + ], + ], + 'ConditionExpression' => [ + 'title' => 'A short description of struct', + 'description' => '资源需求配置。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'title' => 'The key of the conditional expression.', + 'description' => '需要资源的种类。', + 'type' => 'string', + 'required' => true, + 'example' => 'SupportedMachineTypes', + ], + 'Operator' => [ + 'title' => 'The operator of the conditional expression', + 'description' => '判断标准。', + 'type' => 'string', + 'required' => true, + 'example' => 'in', + ], + 'Values' => [ + 'title' => 'The values of the conditional expression.', + 'description' => '资源值列表。', + 'type' => 'array', + 'items' => [ + 'description' => '资源值。', + 'type' => 'string', + 'example' => 'ecs.gn5-c4g1.xlarge', + ], + 'required' => true, + ], + ], + ], + 'DataSource' => [ + 'type' => 'object', + 'properties' => [ + 'DataSourceId' => [ + 'type' => 'string', + ], + 'MountPath' => [ + 'type' => 'string', + ], + 'Uri' => [ + 'type' => 'string', + ], + ], + ], + 'EcsSpec' => [ + 'type' => 'object', + 'properties' => [ + 'InstanceType' => [ + 'type' => 'string', + ], + 'Cpu' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'Gpu' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'GpuType' => [ + 'type' => 'string', + ], + 'GpuTypeAlias' => [ + 'type' => 'string', + ], + 'Memory' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'SupportRDMA' => [ + 'type' => 'boolean', + ], + 'EriQuantity' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'SupportSetNetworkCardIndex' => [ + 'type' => 'boolean', + ], + 'AcceleratorType' => [ + 'type' => 'string', + ], + 'PlannedCpu' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'PlannedMemory' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'ResourceType' => [ + 'type' => 'string', + ], + 'EcsImageId' => [ + 'type' => 'string', + ], + 'GpuGUSpec' => [ + 'type' => 'string', + ], + 'GpuMemory' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'MachineModel' => [ + 'type' => 'string', + ], + 'SupportGPUShare' => [ + 'type' => 'boolean', + ], + 'NetworkMode' => [ + 'type' => 'string', + ], + ], + ], + 'EniCacheConfig' => [ + 'type' => 'object', + 'properties' => [ + 'Enabled' => [ + 'type' => 'boolean', + ], + 'CachePoolSize' => [ + 'type' => 'integer', + 'format' => 'int32', + 'maximum' => '255', + ], + ], + ], + 'Features' => [ + 'title' => '灰度功能', + 'description' => '灰度功能', + 'type' => 'object', + 'properties' => [ + 'Quota' => [ + 'title' => 'Quota功能', + 'type' => 'object', + 'properties' => [ + 'IsEnabled' => [ + 'title' => '是否开启', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + 'ForwardInfo' => [ + 'title' => 'User VPC Forward Info', + 'description' => '用户 VPC 转发信息', + 'type' => 'object', + 'properties' => [ + 'NatGatewayId' => [ + 'title' => 'NAT Gateway ID', + 'description' => 'NAT 网关 ID', + 'type' => 'string', + 'example' => 'nat-7j4mka9wguxj', + ], + 'EipAllocationId' => [ + 'title' => 'EIP Allocation ID', + 'description' => 'EIP 分配 ID', + 'type' => 'string', + 'example' => 'eip-h29r78ieufbih', + ], + ], + ], + 'GPUInfo' => [ + 'title' => 'A short description of struct', + 'description' => 'pai resource group ecs spec', + 'type' => 'object', + 'properties' => [ + 'count' => [ + 'title' => '数量', + 'description' => '数量', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'type' => [ + 'title' => '类型', + 'description' => '类型', + 'type' => 'string', + 'example' => 'T4', + ], + ], + ], + 'GPUMetric' => [ + 'title' => 'A short description of struct', + 'description' => 'GPU指标', + 'type' => 'object', + 'properties' => [ + 'Index' => [ + 'title' => 'GPU编号', + 'type' => 'integer', + 'format' => 'int64', + ], + 'Model' => [ + 'title' => '显卡型号', + 'type' => 'string', + ], + 'UsageRate' => [ + 'title' => 'GPU使用率', + 'type' => 'number', + 'format' => 'float', + ], + 'Status' => [ + 'title' => '卡状态', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0:异常;1:正常', + ], + ], + ], + 'HyperParameterDefinition' => [ + 'title' => 'Definition of the input hyper parameter for the algorithm.', + 'description' => '超参数定义。', + 'type' => 'object', + 'properties' => [ + 'DefaultValue' => [ + 'title' => 'Default value for the parameter.', + 'description' => '超参数默认值。', + 'type' => 'string', + 'example' => '0', + ], + 'Type' => [ + 'title' => 'Type of the parameter.', + 'description' => '超参数类型。', + 'type' => 'string', + 'required' => true, + 'example' => 'Integer', + ], + 'Description' => [ + 'title' => 'Description for the parameter.', + 'description' => '超参数描述。', + 'type' => 'string', + 'example' => '参数定义了训练的batch_size。', + ], + 'Required' => [ + 'title' => 'Indicates whether the parameter is required', + 'description' => '参数是否为必须参数。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Name' => [ + 'title' => 'Name of the parameter.', + 'description' => '参数名。', + 'type' => 'string', + 'required' => true, + 'example' => 'batch_size', + ], + 'Range' => [ + 'description' => '参数取值范围。', + '$ref' => '#/components/schemas/HyperParameterRange', + ], + 'DisplayName' => [ + 'title' => 'Display name of parameter.', + 'description' => '参数展示名。', + 'type' => 'string', + 'example' => 'Batch Size', + ], + ], + ], + 'HyperParameterRange' => [ + 'title' => 'A short description of struct', + 'description' => '超参数取值范围。', + 'type' => 'object', + 'properties' => [ + 'Enum' => [ + 'title' => 'Enumerated values for hyperparameters.', + 'description' => '超参数枚举列表。', + 'type' => 'array', + 'items' => [ + 'description' => '枚举值。', + 'type' => 'string', + 'example' => '0', + ], + 'required' => false, + ], + 'MinLength' => [ + 'title' => 'Minimum length of string.', + 'description' => '最小长度。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'MaxLength' => [ + 'title' => 'Maximum length of string.', + 'description' => '最大长度。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '30', + ], + 'Minimum' => [ + 'title' => 'Minimum value.', + 'description' => '最小值。', + 'type' => 'string', + 'example' => '0', + ], + 'Maximum' => [ + 'title' => 'Maximum value.', + 'description' => '最大值。', + 'type' => 'string', + 'example' => '10', + ], + 'ExclusiveMinimum' => [ + 'title' => 'Whether to exclude minimum values.', + 'description' => '取值范围是否排除最小值。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ExclusiveMaximum' => [ + 'title' => 'Whether to exclude maximum values', + 'description' => '取值范围是否排除最大值。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Pattern' => [ + 'title' => 'Value Regex Pattern.', + 'description' => '正则表达式。', + 'type' => 'string', + 'example' => '^\\+?[1-9][0-9]*$', + ], + ], + ], + 'JobSettings' => [ + 'title' => '作业额外参数配置', + 'description' => '作业额外参数配置。', + 'type' => 'object', + 'properties' => [ + 'BusinessUserId' => [ + 'title' => '作业关联用户ID', + 'description' => '作业关联用户ID。', + 'type' => 'string', + 'example' => '166924', + ], + 'Caller' => [ + 'title' => '调用方', + 'description' => '调用方。', + 'type' => 'string', + 'example' => 'SilkFlow', + ], + 'Tags' => [ + 'title' => '自定义标签', + 'description' => '自定义标签。', + 'type' => 'object', + 'additionalProperties' => [ + 'description' => '自定义标签。', + 'type' => 'string', + ], + ], + 'PipelineId' => [ + 'title' => '工作流ID', + 'description' => '工作流ID。', + 'type' => 'string', + 'example' => 'pid-123456', + ], + 'EnableTideResource' => [ + 'title' => '允许作业使用潮汐资源', + 'description' => '允许作业使用潮汐资源。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'EnableErrorMonitoringInAIMaster' => [ + 'title' => '允许打开作业容错监控', + 'description' => '允许打开作业容错监控。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'ErrorMonitoringArgs' => [ + 'title' => '用户指定容错监控的配置参数,比如指定是否启动基于log hang的检测', + 'description' => '用户指定容错监控的配置参数,比如指定是否启动基于log hang的检测。', + 'type' => 'string', + 'example' => '--enable-log-hang-detection true', + ], + 'EnableRDMA' => [ + 'title' => '允许作业使用RDMA', + 'description' => '允许作业使用RDMA。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'EnableOssAppend' => [ + 'title' => '运行oss追加写', + 'description' => '运行OSS追加写。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'OversoldType' => [ + 'title' => '作业的超卖资源使用方式(不接受/可接受/只接受)', + 'description' => '作业的超卖资源使用方式(不接受/可接受/只接受)。', + 'type' => 'string', + 'example' => 'AcceptQuotaOverSold', + ], + 'AdvancedSettings' => [ + 'title' => '额外高级参数配置', + 'description' => '额外高级参数配置。', + 'type' => 'object', + ], + 'Driver' => [ + 'title' => 'NVIDAI驱动配置', + 'description' => 'NVIDAI驱动配置。', + 'type' => 'string', + 'example' => '535.54.03', + ], + 'EnableSanityCheck' => [ + 'title' => '允许作业开启算力健康检测', + 'description' => '允许作业开启算力健康检测。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'SanityCheckArgs' => [ + 'title' => '算力健康检测的配置参数', + 'description' => '算力健康检测的配置参数。', + 'type' => 'string', + 'example' => '--sanity-check-timing=AfterJobFaultTolerant --sanity-check-timeout-ops=MarkJobFai', + ], + 'JobReservedMinutes' => [ + 'title' => '作业结束后保留的时长,单位分钟', + 'description' => '作业结束后保留的时长,单位分钟。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '30', + ], + 'JobReservedPolicy' => [ + 'title' => '作业结束后保留的策略', + 'description' => '作业结束后保留的策略。', + 'type' => 'string', + 'example' => 'Always', + 'enum' => [ + 'Always', + 'OnFailure', + 'OnSucceed', + ], + ], + ], + ], + 'JobViewMetric' => [ + 'title' => 'A short description of struct', + 'description' => 'resource group metric', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupID' => [ + 'title' => '资源组ID', + 'type' => 'string', + 'example' => 'rg17tmvwiokhzaxg', + ], + 'TotalCPU' => [ + 'title' => '总的CPU核心数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'CPUUsageRate' => [ + 'title' => 'CPU使用率', + 'type' => 'string', + ], + 'GPUUsageRate' => [ + 'title' => 'GPU使用率', + 'type' => 'string', + ], + 'TotalMemory' => [ + 'title' => '总内存kb', + 'type' => 'integer', + 'format' => 'int64', + ], + 'TotalGPU' => [ + 'title' => '总的GPU卡数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'MemoryUsageRate' => [ + 'title' => '内存使用率', + 'type' => 'string', + ], + 'RequestCPU' => [ + 'title' => '占用的CPU核心数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'RequestGPU' => [ + 'title' => '占用的GPU核心数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'RequestMemory' => [ + 'title' => '占用的内存kb', + 'type' => 'integer', + 'format' => 'int64', + ], + 'NetworkInputRate' => [ + 'title' => '网络写入速率', + 'type' => 'string', + ], + 'NetworkOutputRate' => [ + 'title' => '网络输出速率', + 'type' => 'string', + ], + 'DiskReadRate' => [ + 'title' => '磁盘读取速率', + 'type' => 'string', + ], + 'DiskWriteRate' => [ + 'title' => '磁盘写入速率', + 'type' => 'string', + ], + 'JobType' => [ + 'title' => '任务类型dlc,dsw /etc', + 'type' => 'string', + ], + 'UserId' => [ + 'title' => '用户ID', + 'type' => 'string', + ], + 'NodeNames' => [ + 'title' => '节点列表', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'JobId' => [ + 'title' => '任务ID', + 'type' => 'string', + ], + ], + ], + 'Label' => [ + 'title' => 'A short description of struct', + 'description' => 'label 结构体', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'title' => 'Key of label.', + 'description' => 'label的key', + 'type' => 'string', + 'example' => 'testAccTag', + ], + 'Value' => [ + 'title' => 'Value of label.', + 'description' => 'label的值.', + 'type' => 'string', + 'example' => 'nihao', + ], + ], + ], + 'Location' => [ + 'title' => 'A short description of struct', + 'description' => '代码配置。', + 'type' => 'object', + 'properties' => [ + 'LocationType' => [ + 'title' => 'Location type, such as OSS,Git.', + 'description' => '代码地址类型,可选:OSS,NAS。', + 'type' => 'string', + 'example' => 'OSS', + ], + 'LocationValue' => [ + 'title' => 'Location value.', + 'description' => '代码路径。', + 'type' => 'object', + 'example' => 'oss://${bucket_name}.oss-${region}.aliyuncs.com/oss/location/path/', + ], + ], + ], + 'MachineGroup' => [ + 'description' => '机器组信息', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'title' => '机器组状态', + 'description' => '机器组状态', + 'type' => 'string', + 'example' => 'Success', + ], + 'EcsCount' => [ + 'title' => '资源数量', + 'description' => '资源数量', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'GmtStartedTime' => [ + 'title' => '启动时间', + 'description' => '启动时间', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'ResourceGroupID' => [ + 'title' => '资源组ID', + 'description' => '资源组ID', + 'type' => 'string', + 'example' => 'rgf0zhfqn1d4ity2', + ], + 'GmtCreatedTime' => [ + 'title' => '创建时间', + 'description' => '创建时间', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'CreatorID' => [ + 'title' => '机器组创建者ID', + 'description' => '机器组创建者ID', + 'type' => 'string', + 'example' => '1612285282502324', + ], + 'ReasonMessage' => [ + 'title' => '机器组错误消息', + 'description' => '机器组错误消息', + 'type' => 'string', + 'example' => '“”', + ], + 'PaymentDurationUnit' => [ + 'title' => 'region ID', + 'description' => 'region ID', + 'type' => 'string', + 'example' => 'Monthly', + ], + 'EcsSpec' => [ + 'title' => 'ecs规格', + 'description' => 'ecs规格', + 'type' => 'string', + 'example' => 'ecs.c6.large', + ], + 'SupportedDrivers' => [ + 'title' => '机器组可支持的NVIDIA GPU驱动版本列表', + 'description' => '机器组可支持的NVIDIA GPU驱动版本列表', + 'type' => 'array', + 'items' => [ + 'description' => '驱动版本号', + 'type' => 'string', + 'example' => '470.199.02', + ], + ], + 'PaymentDuration' => [ + 'title' => '持续时长', + 'description' => '持续时长', + 'type' => 'string', + 'example' => '2', + ], + 'ReasonCode' => [ + 'title' => '机器组错误码', + 'description' => '机器组错误码', + 'type' => 'string', + 'example' => '“”', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间', + 'description' => '更新时间', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'DiskCapacity' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'GmtExpiredTime' => [ + 'title' => '过期时间', + 'description' => '过期时间', + 'type' => 'string', + 'example' => '2023-08-22T00:00:00Z'."\n", + ], + 'OrderInstanceId' => [ + 'title' => '订单ID', + 'description' => '订单ID', + 'type' => 'string', + 'example' => '“”', + ], + 'DefaultDriver' => [ + 'title' => '机器组支持的默认驱动', + 'description' => '机器组支持的默认驱动', + 'type' => 'string', + 'example' => '470.199.02', + ], + 'MachineGroupID' => [ + 'title' => '机器组ID', + 'description' => '机器组ID', + 'type' => 'string', + 'example' => 'mg1', + ], + 'PaymentType' => [ + 'title' => '付费类型', + 'description' => '付费类型', + 'type' => 'string', + 'example' => 'PREPAY', + ], + 'DiskPL' => [ + 'type' => 'string', + ], + 'Cpu' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'Gpu' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'GpuMemory' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'GpuType' => [ + 'type' => 'string', + ], + 'Memory' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'ResourceType' => [ + 'type' => 'string', + ], + 'AllocatableCpu' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'AllocatableMemory' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'SystemReservedCpu' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'SystemReservedMemory' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'Metric' => [ + 'title' => '指标', + 'description' => '资源组指标数据。', + 'type' => 'object', + 'properties' => [ + 'Time' => [ + 'title' => '时间戳', + 'description' => '时间戳。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'rg17tmvwiokh****', + ], + 'Value' => [ + 'title' => '指标值', + 'description' => '指标值。', + 'type' => 'string', + 'example' => '23000', + ], + ], + ], + 'MetricDefinition' => [ + 'title' => 'Describe the output metric of the algorithm.', + 'description' => '训练指标采集定义。', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'title' => 'A brief description for the metric.', + 'description' => '指标描述。', + 'type' => 'string', + 'example' => '训练损失函数。', + ], + 'Regex' => [ + 'title' => 'Regex use to match the metrics from job log.', + 'description' => '日志中采集指标的正则表达式。', + 'type' => 'string', + 'required' => true, + 'example' => '.*train:loss=([-+]?[0-9]*\\\\.?[0-9]+(?:[eE][-+]?[0-9]+)?).*', + ], + 'Name' => [ + 'title' => 'The name of the metric.', + 'description' => '指标名。', + 'type' => 'string', + 'required' => true, + 'example' => 'loss', + ], + ], + ], + 'Node' => [ + 'title' => '资源节点', + 'description' => '资源节点', + 'type' => 'object', + 'properties' => [ + 'CreatorId' => [ + 'title' => '资源节点创建人', + 'description' => '资源节点创建人', + 'type' => 'string', + 'example' => '281044699048527748', + ], + 'NodeName' => [ + 'title' => '资源节点名称', + 'description' => '资源节点名称', + 'type' => 'string', + 'example' => 'lingjxxxx', + ], + 'NodeType' => [ + 'title' => '资源节点规格类型', + 'description' => '资源节点规格类型', + 'type' => 'string', + 'example' => 'ecs.c8i.xlarge', + ], + 'AcceleratorType' => [ + 'title' => '资源节点规格加速器类型(CPU/GPU)', + 'description' => '资源节点规格加速器类型(CPU/GPU)', + 'type' => 'string', + 'example' => 'CPU', + ], + 'CPU' => [ + 'title' => 'CPU核数', + 'description' => 'CPU核数', + 'type' => 'string', + 'example' => '4', + ], + 'Memory' => [ + 'title' => '内存大小', + 'description' => '内存大小', + 'type' => 'string', + 'example' => '8', + ], + 'GPU' => [ + 'title' => 'GPU卡数', + 'description' => 'GPU卡数', + 'type' => 'string', + 'example' => '0', + ], + 'GPUType' => [ + 'title' => 'GPU卡型号', + 'description' => 'GPU卡型号', + 'type' => 'string', + 'example' => '""', + ], + 'GPUMemory' => [ + 'title' => 'GPU显存', + 'description' => 'GPU显存', + 'type' => 'string', + ], + 'NodeStatus' => [ + 'title' => '资源节点状态', + 'description' => '资源节点状态', + 'type' => 'string', + 'example' => 'Ready', + ], + 'ReasonCode' => [ + 'title' => '错误码', + 'description' => '错误码', + 'type' => 'string', + 'example' => '""', + ], + 'ReasonMessage' => [ + 'title' => '错误消息', + 'description' => '错误消息', + 'type' => 'string', + 'example' => '""', + ], + 'OrderStatus' => [ + 'title' => '资源节点订单状态', + 'description' => '资源节点订单状态', + 'type' => 'string', + 'example' => 'Ready', + ], + 'ResourceGroupId' => [ + 'title' => '资源节点所属资源组Id', + 'description' => '资源节点所属资源组Id', + 'type' => 'string', + 'example' => 'rgf0zhfqn1d4ity2', + ], + 'ResourceGroupName' => [ + 'title' => '资源节点所属资源组名称', + 'description' => '资源节点所属资源组名称', + 'type' => 'string', + 'example' => 'test', + ], + 'MachineGroupId' => [ + 'title' => '资源节点所属机器组Id', + 'description' => '资源节点所属机器组Id', + 'type' => 'string', + 'example' => 'mg1234456', + ], + 'GmtCreateTime' => [ + 'title' => '资源节点创建时间', + 'description' => '资源节点创建时间', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'GmtModifiedTime' => [ + 'title' => '资源节点更新时间', + 'description' => '资源节点更新时间', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'GmtExpiredTime' => [ + 'title' => '资源节点过期时间', + 'description' => '资源节点过期时间', + 'type' => 'string', + 'example' => '2025-06-22T00:00:00Z'."\n", + ], + 'IsBound' => [ + 'title' => '是否已经绑定了Quota', + 'description' => '是否已经绑定了Quota', + 'type' => 'boolean', + 'example' => 'false', + ], + 'BoundQuotas' => [ + 'title' => '绑定的Quota列表', + 'description' => '绑定的Quota列表', + 'type' => 'array', + 'items' => [ + 'description' => '所绑定的Quota信息。', + '$ref' => '#/components/schemas/QuotaIdName', + ], + ], + 'RequestCPU' => [ + 'title' => '申请CPU核数', + 'description' => '申请CPU核数', + 'type' => 'string', + 'example' => '4', + ], + 'RequestMemory' => [ + 'title' => '申请内存大小', + 'description' => '申请内存大小', + 'type' => 'string', + 'example' => '8', + ], + 'RequestGPU' => [ + 'title' => '申请GPU核数', + 'description' => '申请GPU核数', + 'type' => 'string', + 'example' => '0', + ], + 'LimitCPU' => [ + 'title' => '限制CPU核数', + 'description' => '限制CPU核数', + 'type' => 'string', + 'example' => '4', + ], + 'LimitMemory' => [ + 'title' => '限制内存大小', + 'description' => '限制内存大小', + 'type' => 'string', + 'example' => '8', + ], + 'LimitGPU' => [ + 'title' => '限制GPU核数', + 'description' => '限制GPU核数', + 'type' => 'string', + 'example' => '0', + ], + 'PodNum' => [ + 'title' => '节点上Pod数量', + 'description' => '节点上Pod数量', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2', + ], + 'WorkloadNum' => [ + 'title' => '节点上Workload数量', + 'description' => '节点上Workload数量', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2', + ], + 'Users' => [ + 'title' => '用户信息', + 'description' => '用户信息', + 'type' => 'array', + 'items' => [ + 'description' => '在该节点上运行workload的用户信息。', + '$ref' => '#/components/schemas/UserInfo', + ], + ], + 'HyperZone' => [ + 'type' => 'string', + ], + 'AvailabilityZone' => [ + 'type' => 'string', + ], + 'AllocatableCPU' => [ + 'title' => '用户可分配CPU核数', + 'description' => '用户可分配CPU核数', + 'type' => 'string', + ], + 'AllocatableMemory' => [ + 'title' => '用户可分配内存大小', + 'description' => '用户可分配内存大小', + 'type' => 'string', + ], + 'SystemReservedCPU' => [ + 'title' => '系统预留CPU核数', + 'description' => '系统预留CPU核数', + 'type' => 'string', + ], + 'SystemReservedMemory' => [ + 'title' => '系统预留内存大小', + 'description' => '系统预留内存大小', + 'type' => 'string', + ], + 'AncestorQuotaWorkloadNum' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'SelfQuotaWorkloadNum' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'DescendantQuotaWorkloadNum' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'DiskPL' => [ + 'type' => 'string', + ], + 'DiskCapacity' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'SubNodes' => [ + 'title' => '子节点名称', + 'description' => '子节点名称', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + ], + ], + 'NodeCordonParameters' => [ + 'description' => '节点禁止调度参数配置', + 'type' => 'object', + 'properties' => [ + 'QuotaId' => [ + 'title' => 'Quota Id,在工作空间禁止节点调度时使用', + 'description' => 'Quota Id,在工作空间禁止节点调度时使用', + 'type' => 'string', + 'example' => 'quota1dkoutl3tj1', + ], + 'WorkspaceId' => [ + 'title' => 'Workspace Id,在工作空间禁止节点调度时使用', + 'description' => 'Workspace Id,在工作空间禁止节点调度时使用', + 'type' => 'string', + 'example' => '12345', + ], + 'Comment' => [ + 'title' => '用户可配置禁止调度原因', + 'description' => '用户可配置禁止调度原因', + 'type' => 'string', + 'example' => 'this is a comment', + ], + ], + ], + 'NodeDrainParameters' => [ + 'description' => '清空节点操作参数', + 'type' => 'object', + 'properties' => [ + 'PodNames' => [ + 'title' => '清空指定Pod', + 'description' => '清空指定Pod', + 'type' => 'array', + 'items' => [ + 'title' => 'Pod名称', + 'description' => 'Pod名称', + 'type' => 'string', + 'example' => 'dlcxxxx-master-0', + ], + ], + 'PodFromSubProducts' => [ + 'title' => '清空指定任务类型的Pod', + 'description' => '清空指定任务类型的Pod', + 'type' => 'array', + 'items' => [ + 'title' => '任务类型:dlc/dsw/eas/tensorboard', + 'description' => '任务类型:dlc/dsw/eas/tensorboard', + 'type' => 'string', + 'example' => 'dlc', + ], + ], + ], + ], + 'NodeGPUMetric' => [ + 'title' => '节点GPU指标', + 'description' => '节点GPU指标', + 'type' => 'object', + 'properties' => [ + 'NodeId' => [ + 'title' => '节点ID', + 'type' => 'string', + ], + 'NodeType' => [ + 'title' => '节点类型', + 'type' => 'string', + ], + 'GPUType' => [ + 'title' => 'GPU类型', + 'type' => 'string', + ], + 'GPUCount' => [ + 'title' => 'GPU数量', + 'type' => 'integer', + 'format' => 'int32', + ], + 'AcceleratorType' => [ + 'title' => '显卡类型', + 'type' => 'string', + ], + 'TotalMemory' => [ + 'title' => '总内存', + 'type' => 'number', + 'format' => 'float', + ], + 'UsedMemory' => [ + 'title' => '已用内存', + 'type' => 'number', + 'format' => 'float', + ], + 'MemoryUtil' => [ + 'title' => '内存使用率', + 'type' => 'number', + 'format' => 'float', + ], + 'GPUMetrics' => [ + 'title' => 'GPU指标', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/GPUMetric', + ], + ], + ], + ], + 'NodeMetric' => [ + 'title' => '资源节点维度历史指标', + 'description' => '资源组节点指标。', + 'type' => 'object', + 'properties' => [ + 'NodeID' => [ + 'title' => '节点ID', + 'description' => '节点ID。', + 'type' => 'string', + 'example' => '-i12****node', + ], + 'Metrics' => [ + 'title' => '性能指标', + 'description' => '性能指标。', + 'type' => 'array', + 'items' => [ + 'description' => '指标信息。', + '$ref' => '#/components/schemas/Metric', + ], + 'example' => '23000', + ], + 'GPUType' => [ + 'title' => '显卡的类型', + 'description' => '显卡的类型。', + 'type' => 'string', + 'example' => 'GU108', + ], + ], + ], + 'NodeOperationParameters' => [ + 'description' => '节点操作参数配置', + 'type' => 'object', + 'properties' => [ + 'CordonParameters' => [ + 'description' => '节点禁止调度参数配置', + '$ref' => '#/components/schemas/NodeCordonParameters', + ], + 'UncordonParameters' => [ + 'description' => '节点启动调度参数配置', + '$ref' => '#/components/schemas/NodeUncordonParameters', + ], + 'DrainParameters' => [ + 'description' => '节点驱逐任务实例参数配置', + '$ref' => '#/components/schemas/NodeDrainParameters', + ], + ], + ], + 'NodeOperationResult' => [ + 'title' => '节点操作结果', + 'description' => '节点操作结果', + 'type' => 'object', + 'properties' => [ + 'NodeName' => [ + 'title' => '节点名称', + 'type' => 'string', + ], + 'Status' => [ + 'title' => '节点操作状态', + 'type' => 'string', + ], + 'Message' => [ + 'title' => '节点操作状态信息', + 'type' => 'string', + ], + ], + ], + 'NodePodInfo' => [ + 'title' => '节点上的Pod信息', + 'type' => 'object', + 'properties' => [ + 'PodName' => [ + 'title' => 'Pod名称', + 'type' => 'string', + 'required' => false, + 'example' => 'test', + ], + 'Phase' => [ + 'title' => 'Pod状态', + 'type' => 'string', + 'required' => false, + 'example' => 'Running', + ], + 'PodNamespace' => [ + 'title' => 'Pod所在namespace', + 'type' => 'string', + 'required' => false, + 'example' => 'test', + ], + 'PodIP' => [ + 'title' => 'Pod ip地址', + 'type' => 'string', + 'example' => '192.168.2.2', + ], + 'ResourceSpec' => [ + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'WorkloadType' => [ + 'title' => 'Pod属于子产品', + 'type' => 'string', + 'example' => 'dlc', + ], + 'WorkloadId' => [ + 'title' => '任务id/服务id', + 'type' => 'string', + 'example' => 'dlc19de9s6vn3acr', + ], + ], + ], + 'NodeSnapshot' => [ + 'title' => '节点快照', + 'description' => '节点快照', + 'type' => 'object', + 'properties' => [ + 'NodeName' => [ + 'title' => '节点名称', + 'type' => 'string', + ], + 'RequestCPU' => [ + 'title' => 'CPU用量', + 'type' => 'string', + ], + 'RequestMemory' => [ + 'title' => 'Memory用量', + 'type' => 'string', + ], + 'RequestGPU' => [ + 'title' => 'GPU用量', + 'type' => 'string', + ], + 'Workloads' => [ + 'title' => '节点任务快照', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'WorkloadId' => [ + 'title' => '任务ID', + 'type' => 'string', + ], + 'WorkloadType' => [ + 'title' => '任务类型', + 'type' => 'string', + ], + 'Name' => [ + 'title' => '对应排队单元名称', + 'type' => 'string', + ], + ], + ], + ], + 'WorkloadNum' => [ + 'title' => '节点workload数量', + 'type' => 'integer', + 'format' => 'int32', + ], + 'AncestorQuotaWorkloadNum' => [ + 'title' => '使用祖先Quota的workload数量', + 'type' => 'integer', + 'format' => 'int32', + ], + 'SelfQuotaWorkloadNum' => [ + 'title' => '使用本Quota的Workload数量', + 'type' => 'integer', + 'format' => 'int32', + ], + 'DescendantQuotaWorkloadNum' => [ + 'title' => '使用子Quota的workload数量', + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + 'NodeSpec' => [ + 'title' => '资源节点规格数量', + 'description' => '单资源规格信息。', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'title' => '资源节点规格类型', + 'description' => '资源节点规格类型。', + 'type' => 'string', + 'example' => 'ecs.g6.4xlarge', + ], + 'Count' => [ + 'title' => '资源节点规格数量', + 'description' => '资源节点规格数量。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'BindingPolicy' => [ + 'title' => '资源节点绑定规则', + 'description' => '资源节点绑定规则', + '$ref' => '#/components/schemas/BindingPolicy', + ], + 'HyperType' => [ + 'title' => '使用的超节点规格。指定规格时,节点规格与超节点不可同时指定。', + 'description' => '使用的超节点规格。指定规格时,节点规格与超节点不可同时指定。', + 'type' => 'string', + ], + ], + ], + 'NodeStatistics' => [ + 'type' => 'object', + 'properties' => [ + 'ActualMinResources' => [ + 'title' => '全部资源量', + '$ref' => '#/components/schemas/StatisticsResources', + ], + 'SchedulableResources' => [ + 'title' => '可调度资源量', + '$ref' => '#/components/schemas/StatisticsResources', + ], + 'IdleResources' => [ + 'title' => '空闲资源量', + '$ref' => '#/components/schemas/StatisticsResources', + ], + 'SystemReservedResources' => [ + 'title' => '系统预留资源量', + '$ref' => '#/components/schemas/StatisticsResources', + ], + 'HyperNodeDetails' => [ + 'title' => '超节点空闲统计', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'IdleNum' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'Count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + ], + 'GPUDetails' => [ + 'title' => 'GPU空闲统计', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'IdleNum' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'Count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + ], + ], + ], + 'NodeType' => [ + 'title' => '资源节点规格详情', + 'description' => '资源节点规格', + 'type' => 'object', + 'properties' => [ + 'NodeType' => [ + 'title' => '资源节点规格类型', + 'type' => 'string', + 'example' => 'ecs.g6.4xlarge', + ], + 'AcceleratorType' => [ + 'title' => '资源节点规格加速器类型(CPU/GPU)', + 'type' => 'string', + 'example' => 'CPU', + ], + 'CPU' => [ + 'title' => 'CPU核数', + 'type' => 'string', + 'example' => '16', + ], + 'Memory' => [ + 'title' => '内存大小', + 'type' => 'string', + 'example' => '64Gi', + ], + 'GPU' => [ + 'title' => 'GPU卡数', + 'type' => 'string', + 'example' => '0', + ], + 'GPUType' => [ + 'title' => 'GPU卡类型', + 'type' => 'string', + ], + 'GPUMemory' => [ + 'title' => 'GPU显存', + 'type' => 'string', + 'example' => '80G', + ], + 'AllocatableCPU' => [ + 'title' => '用户可分配CPU核数', + 'type' => 'string', + ], + 'AllocatableMemory' => [ + 'title' => '用户可分配内存大小', + 'type' => 'string', + ], + 'SystemReservedCPU' => [ + 'title' => '系统预留CPU核数', + 'type' => 'string', + ], + 'SystemReservedMemory' => [ + 'title' => '系统预留内存大小', + 'type' => 'string', + ], + ], + ], + 'NodeTypeStatistic' => [ + 'title' => '资源节点规格统计信息', + 'description' => '资源节点规格统计', + 'type' => 'object', + 'properties' => [ + 'NodeType' => [ + 'title' => '资源节点规格', + 'type' => 'string', + 'example' => 'ecs.g6.4xlarge', + ], + 'TotalCount' => [ + 'title' => '该规格的资源节点总数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'CanBeBoundCount' => [ + 'title' => '该规格可被绑定的资源节点数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '4', + ], + ], + ], + 'NodeUncordonParameters' => [ + 'description' => '节点启动调度参数配置', + 'type' => 'object', + 'properties' => [ + 'QuotaId' => [ + 'title' => 'Quota Id,启动工作空间禁止调度节点时使用', + 'description' => 'Quota Id,启动工作空间禁止调度节点时使用', + 'type' => 'string', + 'example' => 'quota1ci8g793pgm', + ], + 'WorkspaceId' => [ + 'title' => 'Workspace Id,启动在工作空间禁止调度的节点时使用', + 'description' => 'Workspace Id,启动在工作空间禁止调度的节点时使用', + 'type' => 'string', + 'example' => '12345', + ], + ], + ], + 'NodeViewMetric' => [ + 'title' => '资源节点维度实时指标', + 'description' => 'resource group metric', + 'type' => 'object', + 'properties' => [ + 'NodeID' => [ + 'title' => '节点ID', + 'type' => 'string', + 'example' => '-i121212node', + ], + 'NodeType' => [ + 'title' => '显卡的类型', + 'type' => 'string', + ], + 'MachineGroupID' => [ + 'title' => '机器组ID', + 'type' => 'string', + ], + 'CreatedTime' => [ + 'title' => '节点导入时间', + 'type' => 'string', + ], + 'RequestCPU' => [ + 'title' => '已经使用的CPU', + 'type' => 'integer', + 'format' => 'int64', + ], + 'RequestMemory' => [ + 'title' => '已经使用的内存', + 'type' => 'integer', + 'format' => 'int64', + ], + 'RequestGPU' => [ + 'title' => '使用的GPU', + 'type' => 'integer', + 'format' => 'int64', + ], + 'NetworkInputRate' => [ + 'title' => '网络输入速率', + 'type' => 'string', + ], + 'NetworkOutputRate' => [ + 'title' => '网络输出速率', + 'type' => 'string', + ], + 'DiskReadRate' => [ + 'title' => '磁盘读取速率', + 'type' => 'string', + ], + 'DiskWriteRate' => [ + 'title' => '磁盘写入速率', + 'type' => 'string', + ], + 'TotalCPU' => [ + 'title' => '总的CPU', + 'type' => 'integer', + 'format' => 'int64', + ], + 'TotalGPU' => [ + 'title' => '总的GPU', + 'type' => 'integer', + 'format' => 'int64', + ], + 'TotalMemory' => [ + 'title' => '总的内存', + 'type' => 'integer', + 'format' => 'int64', + ], + 'GPUType' => [ + 'title' => '卡型', + 'type' => 'string', + ], + 'UserNumber' => [ + 'title' => '用户总数', + 'type' => 'string', + ], + 'UserIDs' => [ + 'title' => '用户列表', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'CPUUsageRate' => [ + 'title' => 'CPU使用率', + 'type' => 'string', + ], + 'MemoryUsageRate' => [ + 'title' => '内存使用率', + 'type' => 'string', + ], + 'NodeStatus' => [ + 'title' => '节点状态', + 'type' => 'string', + ], + 'TotalTasks' => [ + 'title' => '节点任务总数', + 'type' => 'integer', + 'format' => 'int64', + ], + 'TaskIdMap' => [ + 'title' => '节点任务', + 'type' => 'object', + ], + ], + ], + 'OversoldUsageConfig' => [ + 'type' => 'object', + 'properties' => [ + 'DisabledBy' => [ + 'type' => 'string', + ], + 'Disabled' => [ + 'type' => 'boolean', + ], + ], + ], + 'Permission' => [ + 'title' => 'A short description of struct', + 'type' => 'object', + 'properties' => [ + 'ResourceType' => [ + 'title' => 'ResourceType', + 'type' => 'string', + ], + 'IsEnabled' => [ + 'title' => 'IsEnabled', + 'type' => 'boolean', + ], + ], + ], + 'QueueInfo' => [ + 'title' => '任务排队信息', + 'description' => '队列信息', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'title' => '状态', + 'type' => 'string', + 'example' => 'Enqueued', + ], + 'QuotaId' => [ + 'title' => '任务使用的Quota', + 'type' => 'string', + 'example' => '“quotamtl37ge7gkvdz”', + ], + 'UserName' => [ + 'title' => '用户名', + 'type' => 'string', + ], + 'WorkloadId' => [ + 'title' => '任务ID', + 'type' => 'string', + 'example' => 'dlcxxxx', + ], + 'Position' => [ + 'title' => '队列位置', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'GmtEnqueuedTime' => [ + 'title' => '入队时间', + 'type' => 'string', + 'example' => '“2023-06-22T00:00:00Z”', + ], + 'Priority' => [ + 'title' => '任务优先级', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2', + ], + 'GmtCreatedTime' => [ + 'title' => '任务创建时间', + 'type' => 'string', + ], + 'WorkloadType' => [ + 'title' => '任务类型', + 'type' => 'string', + 'example' => 'dlc', + ], + 'WorkspaceId' => [ + 'title' => '任务所在的工作空间', + 'type' => 'string', + 'example' => '“432524”', + ], + 'Resource' => [ + 'title' => '使用资源情况', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'Code' => [ + 'title' => '错误码', + 'type' => 'string', + 'example' => 'roleMaximumResource', + ], + 'Reason' => [ + 'title' => '错误消息', + 'type' => 'string', + 'example' => 'Current GPU Limit is 5, limited by Role PAI.AlgoDeveloper', + ], + 'UseOversoldResource' => [ + 'type' => 'boolean', + ], + 'Name' => [ + 'title' => '底层QueueUnit名称', + 'type' => 'string', + 'example' => 'test-label-79f5498dd-9qrzs', + ], + 'WorkloadStatus' => [ + 'title' => 'dlc/dsw/eas 具体状态', + 'type' => 'string', + 'example' => 'PreAllocation', + ], + 'WorkloadName' => [ + 'title' => '任务名称', + 'type' => 'string', + ], + 'UserId' => [ + 'title' => '创建者信息', + 'type' => 'string', + ], + 'GmtPositionModifiedTime' => [ + 'title' => '排队位置变化时间', + 'type' => 'string', + 'example' => '"2023-06-22T00:00:00Z"', + ], + 'CodeType' => [ + 'title' => '错误类型', + 'type' => 'string', + 'example' => 'ConfigRule', + ], + 'GmtDequeuedTime' => [ + 'title' => '出队列时间', + 'type' => 'string', + 'example' => '"2023-06-22T00:00:00Z"', + ], + 'WorkspaceName' => [ + 'type' => 'string', + ], + 'QueueStrategy' => [ + 'title' => '所在队列的出队策略', + 'type' => 'string', + 'example' => 'PaiStrategyIntelligent', + ], + ], + ], + 'Quota' => [ + 'title' => '资源配额', + 'description' => 'Quota信息。', + 'type' => 'object', + 'properties' => [ + 'QuotaId' => [ + 'title' => '资源配额ID', + 'description' => '资源配额ID。', + 'type' => 'string', + 'example' => 'quota12345', + ], + 'QuotaName' => [ + 'title' => '资源配额名称', + 'description' => '资源配额名称。', + 'type' => 'string', + 'example' => 'dlc-quota', + ], + 'ResourceType' => [ + 'title' => '资源类型', + 'description' => '资源类型,支持:'."\n" + .'- Lingjun'."\n" + .'- ECS(默认值)'."\n" + .'- ACS', + 'type' => 'string', + 'example' => 'ECS', + ], + 'ParentQuotaId' => [ + 'title' => '父资源配额ID', + 'description' => '父资源配额ID。', + 'type' => 'string', + 'example' => '""', + ], + 'ResourceGroupIds' => [ + 'title' => '资源组列表', + 'description' => '资源组列表。', + 'type' => 'array', + 'items' => [ + 'description' => '资源组ID。', + 'type' => 'string', + 'example' => 'rg69rj0leslw****', + ], + ], + 'AllocateStrategy' => [ + 'title' => '资源分配策略', + 'description' => '资源分配策略。目前仅支持ByNodeSpecs。', + 'type' => 'string', + 'example' => 'ByNodeSpec', + ], + 'Min' => [ + 'title' => '保障资源', + 'description' => '保障资源。', + '$ref' => '#/components/schemas/ResourceSpec', + ], + 'Description' => [ + 'title' => '资源配额描述', + 'description' => '资源配额描述。', + 'type' => 'string', + 'example' => 'this is a test quota', + ], + 'Labels' => [ + 'title' => '资源配额标签', + 'description' => '资源配额标签。', + 'type' => 'array', + 'items' => [ + 'description' => 'Label key value对。', + '$ref' => '#/components/schemas/Label', + ], + ], + 'CreatorId' => [ + 'title' => '资源配额创建人Id', + 'description' => '资源配额创建人ID。', + 'type' => 'string', + 'example' => '1884692****', + ], + 'LatestOperationId' => [ + 'title' => '资源配额最近变更Id', + 'description' => '资源配额最近变更ID。', + 'type' => 'string', + 'example' => 'operation****', + ], + 'Status' => [ + 'title' => '资源配额状态', + 'description' => '资源配额状态。', + 'type' => 'string', + 'example' => 'Ready', + ], + 'ReasonCode' => [ + 'title' => '错误码', + 'description' => '错误码。', + 'type' => 'string', + 'example' => '“”', + ], + 'ReasonMessage' => [ + 'title' => '错误原因', + 'description' => '错误原因。', + 'type' => 'string', + 'example' => '“”', + ], + 'GmtCreatedTime' => [ + 'title' => '资源配额创建时间', + 'description' => '资源配额创建时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'GmtModifiedTime' => [ + 'title' => '资源配额修改时间', + 'description' => '资源配额修改时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'QuotaDetails' => [ + 'title' => '资源配额详情', + 'description' => '资源配额详情。', + '$ref' => '#/components/schemas/QuotaDetails', + ], + 'QuotaConfig' => [ + 'title' => '资源配额配置', + 'description' => '资源配额配置。', + '$ref' => '#/components/schemas/QuotaConfig', + ], + 'Workspaces' => [ + 'title' => '资源配额关联的工作空间', + 'description' => '资源配额关联的工作空间。', + 'type' => 'array', + 'items' => [ + 'description' => '所关联的工作空间信息。', + '$ref' => '#/components/schemas/WorkspaceIdName', + ], + ], + 'SubQuotas' => [ + 'title' => '资源配额的子Quota列表', + 'description' => '资源配额的子Quota列表。', + 'type' => 'array', + 'items' => [ + 'description' => '包含的子Quota的ID。', + '$ref' => '#/components/schemas/QuotaIdName', + ], + ], + 'QueueStrategy' => [ + 'title' => '该Quota上的排队策略', + 'description' => '该Quota上的排队策略,支持:'."\n" + .'- PaiStrategyIntelligent:智能策略。'."\n" + .'- PaiStrategyBalance:均衡策略。'."\n" + .'- PaiStrategyRoundRobin:资源优先策略。'."\n" + .'- PaiStrategyStrictFIFO:FIFO策略。', + 'type' => 'string', + 'example' => 'PaiStrategyIntelligent', + ], + 'Version' => [ + 'description' => '版本', + 'type' => 'string', + ], + 'HyperZones' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'QuotaCluster' => [ + '$ref' => '#/components/schemas/QuotaCluster', + ], + ], + ], + 'QuotaCluster' => [ + 'type' => 'object', + 'properties' => [ + 'ClusterType' => [ + 'type' => 'string', + ], + 'Image' => [ + 'type' => 'string', + ], + 'DataSources' => [ + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/DataSource', + ], + ], + 'Endpoints' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + ], + ], + 'Status' => [ + 'type' => 'string', + ], + ], + ], + 'QuotaConfig' => [ + 'title' => '资源配额配置', + 'description' => '资源配额配置。', + 'type' => 'object', + 'properties' => [ + 'SupportRDMA' => [ + 'title' => '是否支持RDMA', + 'description' => '是否支持RDMA。', + 'type' => 'boolean', + 'example' => 'false', + ], + 'ClusterId' => [ + 'title' => 'Quota所在集群Id', + 'description' => 'Quota所在集群ID。', + 'type' => 'string', + 'example' => 'ceeb3724255364***', + ], + 'UserVpc' => [ + 'description' => '用户VPC信息。', + '$ref' => '#/components/schemas/UserVpc', + ], + 'SupportGPUDrivers' => [ + 'title' => '资源配额支持的驱动版本', + 'description' => '资源配额支持的驱动版本。', + 'type' => 'array', + 'items' => [ + 'description' => '驱动版本号。', + 'type' => 'string', + 'example' => '470.199.02', + ], + ], + 'DefaultGPUDriver' => [ + 'title' => '资源配额默认的驱动版本', + 'description' => '资源配额默认的驱动版本。', + 'type' => 'string', + 'example' => '470.199.02', + ], + 'ACS' => [ + 'title' => 'ACS conf'."\n" + .'(Deprecated)', + 'description' => 'ACS相关配置。', + '$ref' => '#/components/schemas/ACS', + ], + 'ResourceSpecs' => [ + 'title' => '资源规格模板', + 'description' => '资源规格模板。', + 'type' => 'array', + 'items' => [ + 'description' => '资源规格模板列表。', + '$ref' => '#/components/schemas/WorkspaceSpecs', + ], + ], + 'EnablePreemptSubquotaWorkloads' => [ + 'title' => '是否能够抢占子Quota资源(Deprecating,请使用EnableSubQuotaPreemption)', + 'description' => '是否能够抢占子Quota资源。', + 'type' => 'boolean', + 'deprecated' => false, + 'example' => 'false', + ], + 'EnableSubQuotaPreemption' => [ + 'title' => '是否能够抢占子Quota资源', + 'description' => '是否能够抢占子Quota资源。', + 'type' => 'boolean', + ], + 'SubQuotaPreemptionConfig' => [ + 'title' => '抢占子Quota任务配置', + 'description' => '抢占子Quota任务配置', + '$ref' => '#/components/schemas/SubQuotaPreemptionConfig', + ], + 'EnableGPUShare' => [ + 'type' => 'boolean', + ], + 'OversoldUsageConfig' => [ + '$ref' => '#/components/schemas/OversoldUsageConfig', + ], + 'SelfQuotaPreemptionConfig' => [ + '$ref' => '#/components/schemas/SelfQuotaPreemptionConfig', + ], + 'EniCacheConfig' => [ + '$ref' => '#/components/schemas/EniCacheConfig', + ], + 'SandboxCacheConfig' => [ + '$ref' => '#/components/schemas/SandboxCacheConfig', + ], + 'UseCase' => [ + 'type' => 'string', + ], + 'EnableSelfQuotaPreemption' => [ + 'title' => '开启本Quota保障资源抢占', + 'description' => '开启本Quota保障资源抢占', + 'type' => 'boolean', + ], + 'ControlPlaneClusterId' => [ + 'type' => 'string', + ], + ], + ], + 'QuotaDetails' => [ + 'title' => '资源配额详情', + 'description' => 'Quota详情', + 'type' => 'object', + 'properties' => [ + 'DesiredMinQuota' => [ + 'title' => '用户所需的MinQuota总量', + 'description' => '用户所需的MinQuota总量', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'ActualMinQuota' => [ + 'title' => '实际分配的MinQuota总量', + 'description' => '实际分配的MinQuota总量', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'RequestedQuota' => [ + 'title' => 'Quota请求量(Deprecating)', + 'description' => 'Quota请求量', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'UsedQuota' => [ + 'title' => 'Quota使用量(Deprecating)', + 'description' => 'Quota使用量', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'AllocatedQuota' => [ + 'title' => 'Quota总共用量信息', + 'description' => 'Quota总共用量信息', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'SelfAllocatedQuota' => [ + 'title' => '本级Quota用量信息', + 'description' => '本级Quota用量信息', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'AncestorsAllocatedQuota' => [ + 'title' => '祖先Quota用量信息', + 'description' => '祖先Quota用量信息', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'DescendantsAllocatedQuota' => [ + 'title' => '子孙Quota用量信息', + 'description' => '子孙Quota用量信息', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'SelfSubmittedQuota' => [ + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'AllocatableQuota' => [ + 'title' => '用户可分配Quota量', + 'description' => '用户可分配Quota量', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'SystemReservedQuota' => [ + 'title' => '系统预留Quota量', + 'description' => '系统预留Quota量', + '$ref' => '#/components/schemas/ResourceAmount', + ], + ], + ], + 'QuotaIdName' => [ + 'title' => '资源配额ID&名称', + 'description' => '资源配额Id&Name', + 'type' => 'object', + 'properties' => [ + 'QuotaId' => [ + 'title' => '资源配额ID', + 'description' => '资源配额ID', + 'type' => 'string', + 'example' => 'quota12345', + ], + 'QuotaName' => [ + 'title' => '资源配额名称', + 'description' => '资源配额名称', + 'type' => 'string', + 'example' => 'dlc-quota', + ], + ], + ], + 'QuotaJob' => [ + 'title' => 'A short description of struct', + 'description' => 'quota 分类详情', + 'type' => 'object', + 'properties' => [ + 'Total' => [ + 'title' => '总任务', + 'type' => 'integer', + 'format' => 'int64', + ], + 'Queuing' => [ + 'title' => '排队中任务', + 'type' => 'integer', + 'format' => 'int64', + ], + 'Running' => [ + 'title' => '执行中任务', + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'QuotaJobViewMetric' => [ + 'title' => '资源配额作业维度指标', + 'description' => 'quota job view metric', + 'type' => 'object', + 'properties' => [ + 'TotalCPU' => [ + 'title' => '总的CPU核心数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'CPUUsageRate' => [ + 'title' => 'CPU使用率', + 'type' => 'string', + ], + 'GPUUsageRate' => [ + 'title' => 'GPU使用率', + 'type' => 'string', + ], + 'TotalMemory' => [ + 'title' => '总内存kb', + 'type' => 'integer', + 'format' => 'int64', + ], + 'TotalGPU' => [ + 'title' => '总的GPU卡数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'MemoryUsageRate' => [ + 'title' => '内存使用率', + 'type' => 'string', + ], + 'RequestCPU' => [ + 'title' => '占用的CPU核心数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'RequestGPU' => [ + 'title' => '占用的GPU核心数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'RequestMemory' => [ + 'title' => '占用的内存kb', + 'type' => 'integer', + 'format' => 'int64', + ], + 'NetworkInputRate' => [ + 'title' => '网络写入速率', + 'type' => 'string', + ], + 'NetworkOutputRate' => [ + 'title' => '网络输出速率', + 'type' => 'string', + ], + 'DiskReadRate' => [ + 'title' => '磁盘读取速率', + 'type' => 'string', + ], + 'DiskWriteRate' => [ + 'title' => '磁盘写入速率', + 'type' => 'string', + ], + 'JobType' => [ + 'title' => '任务类型dlc,dsw /etc', + 'type' => 'string', + ], + 'UserId' => [ + 'title' => '用户ID', + 'type' => 'string', + ], + 'NodeNames' => [ + 'title' => '节点列表', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'JobId' => [ + 'title' => '任务ID', + 'type' => 'string', + ], + ], + ], + 'QuotaMetric' => [ + 'title' => '资源配额指标', + 'description' => 'resource group metric', + 'type' => 'object', + 'properties' => [ + 'Metrics' => [ + 'title' => '性能指标', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/Metric', + ], + 'example' => '23000', + ], + 'GPUType' => [ + 'title' => '显卡的类型', + 'type' => 'string', + ], + ], + ], + 'QuotaNodeViewMetric' => [ + 'title' => 'Quota内资源节点维度实时指标', + 'description' => 'quota node view metric', + 'type' => 'object', + 'properties' => [ + 'NodeID' => [ + 'title' => '节点ID', + 'type' => 'string', + 'example' => '-i121212node', + ], + 'NodeType' => [ + 'title' => '显卡的类型', + 'type' => 'string', + ], + 'QuotaId' => [ + 'title' => '资源配额ID', + 'type' => 'string', + ], + 'CreatedTime' => [ + 'title' => '节点导入时间', + 'type' => 'string', + ], + 'RequestCPU' => [ + 'title' => '已经使用的CPU', + 'type' => 'integer', + 'format' => 'int64', + ], + 'RequestMemory' => [ + 'title' => '已经使用的内存', + 'type' => 'integer', + 'format' => 'int64', + ], + 'RequestGPU' => [ + 'title' => '使用的GPU', + 'type' => 'integer', + 'format' => 'int64', + ], + 'NetworkInputRate' => [ + 'title' => '网络输入速率', + 'type' => 'string', + ], + 'NetworkOutputRate' => [ + 'title' => '网络输出速率', + 'type' => 'string', + ], + 'DiskReadRate' => [ + 'title' => '磁盘读取速率', + 'type' => 'string', + ], + 'DiskWriteRate' => [ + 'title' => '磁盘写入速率', + 'type' => 'string', + ], + 'TotalCPU' => [ + 'title' => '总的CPU', + 'type' => 'integer', + 'format' => 'int64', + ], + 'TotalGPU' => [ + 'title' => '总的GPU', + 'type' => 'integer', + 'format' => 'int64', + ], + 'TotalMemory' => [ + 'title' => '总的内存', + 'type' => 'integer', + 'format' => 'int64', + ], + 'GPUType' => [ + 'title' => '卡型', + 'type' => 'string', + ], + 'UserNumber' => [ + 'title' => '用户总数', + 'type' => 'string', + ], + 'UserIDs' => [ + 'title' => '用户列表', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'CPUUsageRate' => [ + 'title' => 'CPU使用率', + 'type' => 'string', + ], + 'MemoryUsageRate' => [ + 'title' => '内存使用率', + 'type' => 'string', + ], + 'NodeStatus' => [ + 'title' => '节点状态', + 'type' => 'string', + ], + 'TotalTasks' => [ + 'title' => '节点任务总数', + 'type' => 'integer', + 'format' => 'int64', + ], + 'TaskIdMap' => [ + 'title' => '节点任务', + 'type' => 'object', + ], + ], + ], + 'QuotaTopo' => [ + 'title' => 'A short description of struct', + 'type' => 'object', + 'properties' => [ + 'QuotaId' => [ + 'title' => 'QuotaId', + 'type' => 'string', + ], + 'QuotaName' => [ + 'title' => 'QuotaName', + 'type' => 'string', + ], + 'ResourceType' => [ + 'title' => 'ResourceType', + 'type' => 'string', + ], + 'ParentQuotaId' => [ + 'title' => 'ParentQuotaId', + 'type' => 'string', + ], + 'Depth' => [ + 'title' => 'Depth', + 'type' => 'string', + ], + 'QuotaDetails' => [ + 'title' => 'QuotaDetails', + '$ref' => '#/components/schemas/QuotaDetails', + ], + 'WorkloadDetails' => [ + 'title' => 'WorkloadDetails', + '$ref' => '#/components/schemas/WorkloadDetails', + ], + ], + ], + 'QuotaUser' => [ + 'title' => '资源配额用户', + 'type' => 'object', + 'properties' => [ + 'Username' => [ + 'title' => '用户名', + 'type' => 'string', + ], + 'UserId' => [ + 'title' => '用户ID', + 'type' => 'string', + ], + 'WorkloadCount' => [ + 'title' => '任务负载数量', + 'type' => 'integer', + 'format' => 'int32', + ], + 'Resources' => [ + 'title' => '资源', + 'type' => 'object', + 'properties' => [ + 'Used' => [ + 'title' => '已使用资源', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'Submitted' => [ + 'title' => '已提交资源', + '$ref' => '#/components/schemas/ResourceAmount', + ], + ], + ], + ], + ], + 'QuotaUserViewMetric' => [ + 'title' => '资源配额用户维度指标', + 'description' => 'quota user view metric', + 'type' => 'object', + 'properties' => [ + 'TotalCPU' => [ + 'title' => '总的CPU核心数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'CPUUsageRate' => [ + 'title' => 'CPU使用率', + 'type' => 'string', + ], + 'GPUUsageRate' => [ + 'title' => 'GPU使用率', + 'type' => 'string', + ], + 'TotalMemory' => [ + 'title' => '总内存kb', + 'type' => 'integer', + 'format' => 'int64', + ], + 'TotalGPU' => [ + 'title' => '总的GPU卡数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'MemoryUsageRate' => [ + 'title' => '内存使用率', + 'type' => 'string', + ], + 'RequestCPU' => [ + 'title' => '占用的CPU核心数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'RequestGPU' => [ + 'title' => '占用的GPU核心数', + 'type' => 'integer', + 'format' => 'int32', + ], + 'RequestMemory' => [ + 'title' => '占用的内存kb', + 'type' => 'integer', + 'format' => 'int64', + ], + 'NetworkInputRate' => [ + 'title' => '网络写入速率', + 'type' => 'string', + ], + 'NetworkOutputRate' => [ + 'title' => '网络输出速率', + 'type' => 'string', + ], + 'DiskReadRate' => [ + 'title' => '磁盘读取速率', + 'type' => 'string', + ], + 'DiskWriteRate' => [ + 'title' => '磁盘写入速率', + 'type' => 'string', + ], + 'JobType' => [ + 'title' => 'JOB类型', + 'type' => 'string', + ], + 'UserId' => [ + 'title' => '用户ID', + 'type' => 'string', + ], + 'CPUNodeNumber' => [ + 'title' => 'CPU节点的数量', + 'type' => 'integer', + 'format' => 'int32', + ], + 'GPUNodeNumber' => [ + 'title' => 'GPU节点的数量', + 'type' => 'integer', + 'format' => 'int32', + ], + 'CpuJobNames' => [ + 'title' => 'CPU任务', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'GpuJobNames' => [ + 'title' => 'GPU任务', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'NodeNames' => [ + 'title' => '节点列表', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'CpuNodeNames' => [ + 'title' => 'CPU节点列表', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'GpuNodeNames' => [ + 'title' => 'GPU节点列表', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + ], + ], + 'ResourceAmount' => [ + 'title' => '资源量', + 'description' => '资源量', + 'type' => 'object', + 'properties' => [ + 'CPU' => [ + 'title' => 'CPU总量', + 'description' => 'CPU总量', + 'type' => 'string', + 'example' => '100', + ], + 'Memory' => [ + 'title' => 'Memory总量', + 'description' => 'Memory总量', + 'type' => 'string', + 'example' => '100Gi', + ], + 'GPU' => [ + 'title' => 'GPU卡总量', + 'description' => 'GPU卡总量', + 'type' => 'string', + 'example' => '16', + ], + 'GPUType' => [ + 'title' => 'GPU卡类型', + 'description' => 'GPU卡类型', + 'type' => 'string', + 'example' => 'GPU', + ], + ], + ], + 'ResourceDiagnosisDetail' => [ + 'title' => '资源诊断详情', + 'description' => '资源诊断详情', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'title' => '诊断状态', + 'type' => 'string', + ], + 'ExceedResources' => [ + 'title' => '超限资源', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + 'example' => 'CPU', + ], + ], + 'Limit' => [ + 'title' => '资源限额', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'Used' => [ + 'title' => '资源用量', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'WorkloadIds' => [ + 'title' => '相关Workload Id', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + 'example' => 'dlc1234567890', + ], + ], + ], + ], + 'ResourceGroup' => [ + 'title' => 'A short description of struct', + 'description' => 'PAI资源组。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => 'pai resource group name', + 'description' => 'PAI资源组名称。', + 'type' => 'string', + 'example' => 'RG1', + ], + 'ResourceGroupID' => [ + 'title' => 'pai resource group id', + 'description' => 'PAI资源组ID。', + 'type' => 'string', + 'example' => 'rg17tmvwiokh****', + ], + 'WorkspaceID' => [ + 'title' => 'pworkspace id', + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '23000', + ], + 'UserVpc' => [ + 'title' => 'UserVpc', + 'description' => 'VPC配置。', + '$ref' => '#/components/schemas/UserVpc', + ], + 'GmtCreatedTime' => [ + 'title' => 'pai resource created time', + 'description' => 'PAI资源组创建时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'GmtModifiedTime' => [ + 'title' => 'GmtModified', + 'description' => 'PAI资源组更新时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'CreatorID' => [ + 'title' => 'CreatorID', + 'description' => '创建者用户ID。', + 'type' => 'string', + 'example' => '161228528250****', + ], + 'NodeCount' => [ + 'title' => 'NodeCount', + 'description' => '节点数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + ], + 'Version' => [ + 'type' => 'string', + ], + ], + ], + 'ResourceGroupMetric' => [ + 'title' => 'A short description of struct', + 'description' => 'resource group metric', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupID' => [ + 'title' => '资源组ID', + 'type' => 'string', + 'example' => 'rg17tmvwiokhzaxg', + ], + 'Metrics' => [ + 'title' => '性能指标', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/Metric', + ], + 'example' => '23000', + ], + 'GpuType' => [ + 'title' => '显卡的类型', + 'type' => 'string', + ], + ], + ], + 'ResourceInfo' => [ + 'type' => 'object', + 'properties' => [], + ], + 'ResourceInfos' => [ + 'type' => 'object', + 'properties' => [ + 'UserName' => [ + 'type' => 'string', + ], + 'GpuCardType' => [ + 'type' => 'string', + ], + 'ClusterId' => [ + 'type' => 'string', + ], + 'UserId' => [ + 'type' => 'string', + ], + 'EcsSpec' => [ + 'type' => 'string', + ], + 'RegionId' => [ + 'type' => 'string', + ], + 'MaxQuota' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'UsedQuota' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'NetworkPodId' => [ + 'type' => 'string', + ], + 'MachineModel' => [ + 'type' => 'string', + ], + ], + ], + 'ResourceLimitDetails' => [ + 'title' => 'A short description of struct', + 'description' => '资源限制细节', + 'type' => 'object', + 'properties' => [ + 'GCLevel' => [ + 'title' => 'GC 等级', + 'type' => 'string', + ], + 'ResourceLimit' => [ + 'title' => '资源限制详情', + 'type' => 'object', + ], + 'ShouldIgnoreResourceCheck' => [ + 'title' => '是否忽略资源检查', + 'type' => 'boolean', + ], + ], + ], + 'ResourceOperation' => [ + 'title' => '资源变更', + 'description' => '资源变更', + 'type' => 'object', + 'properties' => [ + 'OperationId' => [ + 'title' => '资源变更Id', + 'type' => 'string', + ], + 'ObjectType' => [ + 'title' => '资源变更对象类型', + 'type' => 'string', + ], + 'ObjectId' => [ + 'title' => '资源变更的对象Id', + 'type' => 'string', + ], + 'OperationType' => [ + 'title' => '资源变更类型', + 'type' => 'string', + ], + 'OperationSpecJson' => [ + 'title' => '资源变更明细', + 'type' => 'string', + ], + 'OperationDescription' => [ + 'title' => '资源变更描述', + 'type' => 'string', + ], + 'CreatorId' => [ + 'title' => '资源变更发起人Id', + 'type' => 'string', + ], + 'Status' => [ + 'title' => '资源变更状态', + 'type' => 'string', + ], + 'ReasonCode' => [ + 'title' => '错误码', + 'type' => 'string', + ], + 'ReasonMessage' => [ + 'title' => '错误消息', + 'type' => 'string', + ], + 'GmtCreatedTime' => [ + 'title' => '资源变更创建时间', + 'type' => 'string', + ], + 'GmtModifiedTime' => [ + 'title' => '资源变更更新时间', + 'type' => 'string', + ], + 'GmtStartTime' => [ + 'title' => '资源变更开始时间', + 'type' => 'string', + ], + 'GmtEndTime' => [ + 'title' => '资源变更结束时间', + 'type' => 'string', + ], + ], + ], + 'ResourceSpec' => [ + 'title' => '资源配额分配策略', + 'description' => '分配策略:资源节点规格和数量,资源量。', + 'type' => 'object', + 'properties' => [ + 'NodeSpecs' => [ + 'title' => '资源节点规格', + 'description' => '资源节点规格。', + 'type' => 'array', + 'items' => [ + 'description' => '单资源规格信息。', + '$ref' => '#/components/schemas/NodeSpec', + ], + ], + ], + ], + 'Rules' => [ + 'title' => '任务规则配置', + 'description' => '规则配置', + 'type' => 'object', + 'properties' => [ + 'Scheduling' => [ + 'title' => '任务调度规则配置', + '$ref' => '#/components/schemas/SchedulingRule', + ], + ], + ], + 'SandboxCacheConfig' => [ + 'type' => 'object', + 'properties' => [ + 'Enabled' => [ + 'type' => 'boolean', + ], + ], + ], + 'SchedulingRule' => [ + 'title' => '任务调度配置', + 'description' => '任务调度配置', + 'type' => 'object', + 'properties' => [ + 'StartAt' => [ + 'title' => '任务开始生效时间', + 'type' => 'string', + ], + 'EndAt' => [ + 'title' => '任务停止时间', + 'type' => 'string', + ], + 'ExecuteOnce' => [ + 'title' => '是否只执行一次', + 'type' => 'boolean', + 'required' => false, + ], + 'CronTab' => [ + 'title' => 'cron tab,当前只支持 分、时、日、月、周 五个配置,秒级别的配置会被丢弃', + 'type' => 'string', + ], + ], + ], + 'SelfQuotaPreemptionConfig' => [ + 'type' => 'object', + 'properties' => [ + 'PreemptedPriorities' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'integer', + 'format' => 'int32', + 'maximum' => '9', + 'minimum' => '1', + ], + ], + 'PreemptedProducts' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'PreemptorPriorities' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'integer', + 'format' => 'int32', + 'maximum' => '9', + 'minimum' => '1', + ], + ], + ], + ], + 'SpotPriceItem' => [ + 'title' => '抢占式实例价格', + 'description' => '抢占式实例价格', + 'type' => 'object', + 'properties' => [ + 'ZoneId' => [ + 'title' => '可用区ID', + 'type' => 'string', + 'example' => 'cn-wulanchabu-a', + ], + 'InstanceType' => [ + 'title' => '抢占式实例类型', + 'type' => 'string', + 'example' => 'ml.gu8xf.8xlarge-gu108', + ], + 'SpotDiscount' => [ + 'title' => '抢占式实例折扣', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.1', + ], + 'Timestamp' => [ + 'title' => '抢占式实例当前价格时间戳', + 'type' => 'string', + 'example' => '2024-01-17T06:00:00Z', + ], + ], + ], + 'SpotStockPreview' => [ + 'title' => '抢占式实例库存预览', + 'type' => 'object', + 'properties' => [ + 'InstanceType' => [ + 'title' => '抢占式实例类型', + 'type' => 'string', + 'example' => 'ml.gu8xf.8xlarge-gu108', + ], + 'StockStatus' => [ + 'title' => '抢占式实例库存状态', + 'type' => 'string', + 'example' => 'WithStock', + ], + 'SpotDiscount' => [ + 'title' => '抢占式实例当前折扣', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.1', + ], + 'ClusterId' => [ + 'type' => 'string', + ], + 'AvailableQuantity' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + 'StatisticsDetails' => [ + 'type' => 'object', + 'properties' => [ + 'IdleNum' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'Count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + 'StatisticsResources' => [ + 'type' => 'object', + 'properties' => [ + 'NodeNum' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'HyperNodeNum' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'CPU' => [ + 'type' => 'string', + ], + 'Memory' => [ + 'type' => 'string', + ], + 'GPU' => [ + 'type' => 'string', + ], + ], + ], + 'SubQuotaPreemptionConfig' => [ + 'title' => 'A short description of struct', + 'description' => '抢占子Quota配置', + 'type' => 'object', + 'properties' => [ + 'PreemptedPriorityUpperBound' => [ + 'title' => '被抢占任务最高优先级', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '9', + ], + 'PreemptedProducts' => [ + 'title' => '可被抢占的任务类型', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + 'example' => 'dlc', + ], + ], + ], + ], + 'Task' => [ + 'title' => '任务详情', + 'description' => '任务信息', + 'type' => 'object', + 'properties' => [ + 'QuotaId' => [ + 'title' => '所属Quota ID', + 'type' => 'string', + ], + 'TaskName' => [ + 'title' => '任务名称', + 'type' => 'string', + ], + 'TaskId' => [ + 'title' => '任务ID', + 'type' => 'string', + ], + 'Description' => [ + 'title' => '任务描述', + 'type' => 'string', + ], + 'Rules' => [ + 'title' => '任务执行规则', + '$ref' => '#/components/schemas/Rules', + ], + 'Actions' => [ + 'title' => '任务执行的操作', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/Action', + ], + ], + 'UserId' => [ + 'title' => '用户ID', + 'type' => 'string', + ], + 'UserName' => [ + 'title' => '用户名', + 'type' => 'string', + ], + 'Status' => [ + 'title' => '任务状态', + 'type' => 'string', + ], + 'GmtCreatedTime' => [ + 'title' => '任务创建时间', + 'type' => 'string', + ], + 'GmtModifiedTime' => [ + 'title' => '任务修改时间', + 'type' => 'string', + ], + 'GmtActivatedTime' => [ + 'title' => '任务激活时间', + 'type' => 'string', + ], + 'GmtStoppedTime' => [ + 'title' => '任务停止时间', + 'type' => 'string', + ], + ], + ], + 'TaskInstance' => [ + 'title' => 'Quota 任务实例', + 'description' => 'Quota任务实例', + 'type' => 'object', + 'properties' => [ + 'TaskId' => [ + 'title' => '任务ID', + 'type' => 'string', + ], + 'TaskInstanceId' => [ + 'title' => '任务实例ID', + 'type' => 'string', + ], + 'UserId' => [ + 'title' => '创建者ID', + 'type' => 'string', + ], + 'TenantId' => [ + 'title' => '云账号ID', + 'type' => 'string', + ], + 'Status' => [ + 'title' => '任务实例状态', + 'type' => 'string', + ], + 'GmtCreatedTime' => [ + 'title' => '实例创建时间', + 'type' => 'string', + ], + 'GmtEndTime' => [ + 'title' => '实例结束时间', + 'type' => 'string', + ], + ], + ], + 'TaskInstanceEvent' => [ + 'title' => 'Quota Task Instance Event', + 'description' => 'Quota 任务实例消息', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'title' => '状态', + 'type' => 'string', + ], + 'GmtStartTime' => [ + 'title' => '开始运行时间', + 'type' => 'string', + ], + 'GmtEndTime' => [ + 'title' => '结束运行时间', + 'type' => 'string', + ], + 'WorkloadType' => [ + 'title' => '任务涉及子产品类型', + 'type' => 'string', + ], + 'PodName' => [ + 'title' => '任务涉及Pod名称', + 'type' => 'string', + ], + 'Message' => [ + 'title' => '消息内容', + 'type' => 'string', + ], + ], + ], + 'TimeRangeFilter' => [ + 'title' => '时间范围定义,过滤使用', + 'description' => '时间范围搜索', + 'type' => 'object', + 'properties' => [ + 'StartTime' => [ + 'title' => '开始时间', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'EndTime' => [ + 'title' => '结束时间', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + ], + ], + 'UnschedulableNodeDetail' => [ + 'title' => '节点调度失败原因', + 'description' => '节点调度失败原因', + 'type' => 'object', + 'properties' => [ + 'Nodes' => [ + 'title' => '节点列表', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + 'example' => 'i-eabcsjiow', + ], + ], + 'Reason' => [ + 'title' => '失败原因', + 'type' => 'string', + ], + ], + ], + 'UserInfo' => [ + 'title' => '用户信息', + 'description' => '用户信息', + 'type' => 'object', + 'properties' => [ + 'UserId' => [ + 'title' => '用户Id', + 'description' => '用户Id', + 'type' => 'string', + 'example' => '161222222222', + ], + 'UserName' => [ + 'title' => '用户名', + 'description' => '用户名', + 'type' => 'string', + 'example' => 'test', + ], + ], + ], + 'UserQuotaPermission' => [ + 'title' => '用户在Quota上的权限', + 'description' => '用户在Quota上的权限', + 'type' => 'object', + 'properties' => [ + 'QuotaId' => [ + 'title' => 'Quota ID', + 'type' => 'string', + ], + 'Permissions' => [ + 'title' => '权限', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + ], + ], + 'UserViewMetric' => [ + 'title' => 'A short description of struct', + 'description' => '资源组指标数据。', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupId' => [ + 'title' => '资源组ID', + 'description' => '资源组ID。', + 'type' => 'string', + 'example' => 'rg17tmvwiokh****', + ], + 'TotalCPU' => [ + 'title' => '总的CPU核心数', + 'description' => '总的CPU核心数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1000', + ], + 'CPUUsageRate' => [ + 'title' => 'CPU使用率', + 'description' => 'CPU使用率。', + 'type' => 'string', + 'example' => '59', + ], + 'GPUUsageRate' => [ + 'title' => 'GPU使用率', + 'description' => 'GPU使用率。', + 'type' => 'string', + 'example' => '10', + ], + 'TotalMemory' => [ + 'title' => '总内存kb', + 'description' => '总内存kb。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10240', + ], + 'TotalGPU' => [ + 'title' => '总的GPU卡数', + 'description' => '总的GPU卡数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'MemoryUsageRate' => [ + 'title' => '内存使用率', + 'description' => '内存使用率。', + 'type' => 'string', + 'example' => '20', + ], + 'RequestCPU' => [ + 'title' => '占用的CPU核心数', + 'description' => '占用的CPU核心数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'RequestGPU' => [ + 'title' => '占用的GPU核心数', + 'description' => '占用的GPU核心数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'RequestMemory' => [ + 'title' => '占用的内存kb', + 'description' => '占用的内存kb。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '102400000', + ], + 'NetworkInputRate' => [ + 'title' => '网络写入速率', + 'description' => '网络写入速率。', + 'type' => 'string', + 'example' => '1', + ], + 'NetworkOutputRate' => [ + 'title' => '网络输出速率', + 'description' => '网络输出速率。', + 'type' => 'string', + 'example' => '1', + ], + 'DiskReadRate' => [ + 'title' => '磁盘读取速率', + 'description' => '磁盘读取速率。', + 'type' => 'string', + 'example' => '22', + ], + 'DiskWriteRate' => [ + 'title' => '磁盘写入速率', + 'description' => '磁盘写入速率。', + 'type' => 'string', + 'example' => '22', + ], + 'JobType' => [ + 'title' => 'JOB类型', + 'description' => 'JOB类型。', + 'type' => 'string', + 'example' => 'PyTorch', + ], + 'UserId' => [ + 'title' => '用户ID', + 'description' => '用户ID。', + 'type' => 'string', + 'example' => '16111111****', + ], + 'CPUNodeNumber' => [ + 'title' => 'CPU节点的数量', + 'description' => 'CPU节点的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'GPUNodeNumber' => [ + 'title' => 'GPU节点的数量', + 'description' => 'GPU节点的数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'CpuJobNames' => [ + 'title' => 'CPU任务', + 'description' => 'CPU任务。', + 'type' => 'array', + 'items' => [ + 'description' => '作业名称。', + 'type' => 'string', + 'example' => 'dlcxxxxx', + ], + ], + 'GpuJobNames' => [ + 'title' => 'GPU任务', + 'description' => 'GPU任务。', + 'type' => 'array', + 'items' => [ + 'description' => '作业名称。', + 'type' => 'string', + 'example' => 'dlcyyyyy', + ], + ], + 'NodeNames' => [ + 'title' => '节点列表', + 'description' => '节点列表。', + 'type' => 'array', + 'items' => [ + 'description' => '节点名称。', + 'type' => 'string', + 'example' => 'lrnxxxxxx', + ], + ], + 'CpuNodeNames' => [ + 'title' => 'CPU节点列表', + 'description' => 'CPU节点列表。', + 'type' => 'array', + 'items' => [ + 'description' => '节点名称。', + 'type' => 'string', + 'example' => 'ecixxxxxx', + ], + ], + 'GpuNodeNames' => [ + 'title' => 'GPU节点列表', + 'description' => 'GPU节点列表。', + 'type' => 'array', + 'items' => [ + 'description' => '节点名称。', + 'type' => 'string', + 'example' => 'lrnxxxxxxx', + ], + ], + ], + ], + 'UserVpc' => [ + 'title' => 'A short description of struct', + 'description' => 'UserVpc', + 'type' => 'object', + 'properties' => [ + 'VpcId' => [ + 'title' => 'VPC ID', + 'description' => 'VPC ID。', + 'type' => 'string', + 'example' => 'vpc-abcdef****', + ], + 'SwitchId' => [ + 'title' => 'VSW ID', + 'description' => '交换机ID。', + 'type' => 'string', + 'example' => 'vs-abcdef****', + ], + 'SecurityGroupId' => [ + 'title' => 'SecurityGroupID', + 'description' => '安全组ID。', + 'type' => 'string', + 'example' => 'sg-abcdef****', + ], + 'ExtendedCIDRs' => [ + 'title' => 'ExtendedCIDRs', + 'description' => '扩展网段。', + 'type' => 'array', + 'items' => [ + 'description' => '扩展网段。', + 'type' => 'string', + 'example' => '"192.168.0.1/24"', + ], + ], + 'RoleArn' => [ + 'title' => 'RoleArn', + 'description' => 'OSS访问授权信息。', + 'type' => 'string', + 'example' => 'acs:ram::25xxxx:role/AliyunPAIDLCDefaultRole', + ], + 'DefaultRoute' => [ + 'title' => 'DefaultRoute', + 'description' => '默认路由。取值如下:'."\n" + .'- eth0:表示使用默认网卡,通过公共网关访问外部网络。'."\n" + .'- eth1:表示使用用户弹性网卡,通过私有网关访问外部网络。', + 'type' => 'string', + 'example' => 'eth0', + ], + 'DefaultForwardInfo' => [ + 'title' => 'Default Forward Info', + 'description' => '默认公网网关信息', + '$ref' => '#/components/schemas/ForwardInfo', + ], + ], + ], + 'WorkloadDetails' => [ + 'title' => 'A short description of struct', + 'description' => '任务负载详情', + 'type' => 'object', + 'properties' => [ + 'Summary' => [ + '$ref' => '#/components/schemas/QuotaJob', + ], + 'DSW' => [ + '$ref' => '#/components/schemas/QuotaJob', + ], + 'DLC' => [ + '$ref' => '#/components/schemas/QuotaJob', + ], + 'EAS' => [ + '$ref' => '#/components/schemas/QuotaJob', + ], + ], + ], + 'WorkspaceIdName' => [ + 'title' => '工作空间ID&名称', + 'description' => '工作空间ID和Name。', + 'type' => 'object', + 'properties' => [ + 'WorkspaceId' => [ + 'title' => '工作空间ID', + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => 'ws123***', + ], + ], + ], + 'WorkspaceSpec' => [ + 'title' => 'A short description of struct', + 'description' => '规格模板', + 'type' => 'object', + 'properties' => [ + 'SpecName' => [ + 'title' => '模板名称', + 'description' => '模板名称', + 'type' => 'string', + 'example' => 'spec_test', + ], + 'IsGuaranteedValid' => [ + 'title' => '使用保障资源时是否合法', + 'description' => '使用保障资源时是否合法', + 'type' => 'boolean', + 'example' => 'true', + ], + 'IsOverSoldValid' => [ + 'title' => '使用超卖资源时是否合法', + 'description' => '使用超卖资源时是否合法', + 'type' => 'boolean', + 'example' => 'true', + ], + 'Spec' => [ + 'title' => '规格资源信息', + 'description' => '规格资源信息', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'CodeType' => [ + 'title' => '使用保障资源时不合法情况下,不合法原因类型', + 'description' => '使用保障资源时不合法情况下,不合法原因类型', + 'type' => 'string', + 'example' => '""', + ], + 'Code' => [ + 'title' => '使用保障资源时不合法情况下,不合法原因代码', + 'description' => '使用保障资源时不合法情况下,不合法原因代码', + 'type' => 'string', + 'example' => '""', + ], + 'Reason' => [ + 'title' => '使用保障资源时不合法情况下,不合法原因内容', + 'description' => '使用保障资源时不合法情况下,不合法原因内容', + 'type' => 'string', + 'example' => '""', + ], + ], + ], + 'WorkspaceSpecs' => [ + 'title' => 'A short description of struct', + 'description' => '工作空间内可用的提交workload时使用的规格模板', + 'type' => 'object', + 'properties' => [ + 'WorkspaceId' => [ + 'title' => '工作空间id', + 'description' => '工作空间id', + 'type' => 'string', + 'example' => '122421', + ], + 'Product' => [ + 'title' => '适用产品(DLC,DSW,EAS,...)', + 'description' => '适用产品(DLC,DSW,EAS,...)', + 'type' => 'string', + 'example' => 'DLC', + ], + 'Specs' => [ + 'title' => '资源规格列表', + 'description' => '资源规格列表', + 'type' => 'array', + 'items' => [ + 'description' => '工作空间规格模板配置。', + '$ref' => '#/components/schemas/WorkspaceSpec', + ], + ], + ], + ], + ], + ], + 'apis' => [ + 'UpdateResourceGroup' => [ + 'summary' => '您可以通过UpdateResourceGroup更新资源组信息。', + 'path' => '/api/v1/resources/{ResourceGroupID}', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '143268', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求body。', + 'type' => 'object', + 'properties' => [ + 'UserVpc' => [ + 'description' => 'Resource Group打通的VPC的信息。', + 'required' => false, + '$ref' => '#/components/schemas/UserVpc', + ], + 'Unbind' => [ + 'description' => '是否解绑Resource Group和目前已经打通的VPC。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + 'Name' => [ + 'description' => 'Resource Group名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'prophet', + ], + 'Description' => [ + 'description' => 'Resource Group描述', + 'type' => 'string', + 'required' => false, + 'example' => 'test_new_havpn_tf', + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => [ + 'description' => 'ResourceGroup的ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + ], + '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' => 'FFB1D4B4-B253-540A-9B3B-AA711C48A1B7', + ], + 'ResourceGroupID' => [ + 'description' => 'ResourceGroup的ID。', + 'type' => 'string', + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FFB1D4B4-B253-540A-9B3B-AA711C48A1B7\\",\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\"\\n}","type":"json"}]', + 'title' => '更新资源组', + ], + 'GetResourceGroupTotal' => [ + 'summary' => '您可以通过GetResourceGroupTotal获取 Resource Group资源总数。', + 'path' => '/api/v1/resources/data/total', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '145960', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + 'FEATURElearnCMM1R7', + ], + ], + 'parameters' => [ + [ + 'name' => 'ResourceGroupID', + 'in' => 'query', + 'schema' => [ + 'description' => 'Resource Group的ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'totalCPU' => [ + 'description' => 'cpu总核数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'totalMemory' => [ + 'description' => '总内存', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '300', + ], + 'totalGPU' => [ + 'description' => '总gpu核数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '24', + ], + 'totalGPUInfos' => [ + 'description' => 'GPU按照卡型统计的资源。', + 'type' => 'array', + 'items' => [ + 'description' => '按照GPU卡型分别统计的每种卡型的资源。', + '$ref' => '#/components/schemas/GPUInfo', + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCPU\\": 100,\\n \\"totalMemory\\": 300,\\n \\"totalGPU\\": 24,\\n \\"totalGPUInfos\\": [\\n {\\n \\"count\\": 0,\\n \\"type\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取资源组资源总数', + ], + 'ListResourceGroups' => [ + 'summary' => '您可以通过该接口获取通用计算资源或灵骏智算资源的资源组列表。', + 'path' => '/api/v1/resources', + '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' => '124250', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + 'FEATURElearnCMM1R7', + ], + ], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => 'pai resource group display name', + 'description' => 'Resource Group名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '分页数', + 'description' => '分页数。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '2', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页面容量', + 'description' => '页面容量。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序顺序, 枚举值 desc 或者 asc', + 'description' => '排序顺序。取值如下:'."\n" + .'- desc:降序。'."\n" + .'- asc:升序。', + 'type' => 'string', + 'required' => false, + 'example' => 'desc', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '用于排序的字段名,可选字段名:DisplayName, GmtCreated, GmtModified,RegionID Duration PricingCycle PayType', + 'description' => '用于排序的字段名,可选字段名:DisplayName、GmtCreated、GmtModified、RegionID、Duration、PricingCycle、PayType。', + 'type' => 'string', + 'required' => false, + 'example' => 'DisplayName', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'title' => 'resource group的状态', + 'description' => 'Resource Group的状态。', + 'type' => 'string', + 'required' => false, + 'example' => 'Creating', + ], + ], + [ + 'name' => 'ShowAll', + 'in' => 'query', + 'schema' => [ + 'description' => '是否全部返回。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + 'default' => 'false', + ], + ], + [ + 'name' => 'ComputingResourceProvider', + 'in' => 'query', + 'schema' => [ + 'description' => 'Resource Group的计算资源类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'Ecs', + ], + ], + [ + 'name' => 'ResourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '资源类型列表。取值如下:'."\n" + ."\n" + .'- ECS:通用计算资源。'."\n" + .'- Lingjun:灵骏智算资源。', + 'type' => 'string', + 'required' => false, + 'example' => 'Lingjun', + ], + ], + [ + 'name' => 'ResourceGroupIDs', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'HasResource', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + 'required' => false, + ], + ], + [ + 'name' => 'Versions', + 'in' => 'query', + 'schema' => [ + 'title' => '按照版本搜索。', + 'description' => '按照版本搜索。', + 'type' => 'string', + 'required' => false, + 'example' => '1.0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'ResourceGroups' => [ + 'title' => 'pai resource groups', + 'description' => '资源组列表。', + 'type' => 'array', + 'items' => [ + 'description' => '资源组。', + '$ref' => '#/components/schemas/ResourceGroup', + ], + 'example' => 'RG1', + ], + 'TotalCount' => [ + 'title' => 'list到的资源组的数量', + 'description' => '查询到的资源组的数量。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '2', + ], + 'RequestId' => [ + 'title' => '请求ID', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '9CFA2665-1FFE-5929-8468-C14C25890486', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ResourceGroups\\": [\\n {\\n \\"Name\\": \\"RG1\\",\\n \\"ResourceGroupID\\": \\"rg17tmvwiokhzaxg\\",\\n \\"WorkspaceID\\": \\"23000\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"\\",\\n \\"SwitchId\\": \\"\\",\\n \\"SecurityGroupId\\": \\"\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\"\\n ],\\n \\"RoleArn\\": \\"\\",\\n \\"DefaultRoute\\": \\"\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"\\",\\n \\"EipAllocationId\\": \\"\\"\\n }\\n },\\n \\"GmtCreatedTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"CreatorID\\": \\"\\",\\n \\"NodeCount\\": 0,\\n \\"Version\\": \\"\\"\\n }\\n ],\\n \\"TotalCount\\": 2,\\n \\"RequestId\\": \\"9CFA2665-1FFE-5929-8468-C14C25890486\\"\\n}","type":"json"}]', + 'title' => '获取资源组列表', + 'description' => '目前,AI计算资源组(包括通用计算资源和灵骏智算资源)仅在部分地域提供服务。具体支持的地域列表,请参见[AI计算资源管理](~~143986~~)。', + ], + 'GetResourceGroupRequest' => [ + 'summary' => '您可以通过GetResourceGroupRequest获取资源组已经被分配的资源数。', + 'path' => '/api/v1/resources/data/request', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '146159', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + 'FEATURElearnCMM1R7', + ], + ], + 'parameters' => [ + [ + 'name' => 'ResourceGroupID', + 'in' => 'query', + 'schema' => [ + 'description' => '资源组 ID,每一个资源组都有全局唯一的资源组ID。可以通过资源组ID来获取资源组的信息。', + 'type' => 'string', + 'required' => true, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + [ + 'name' => 'PodStatus', + 'in' => 'query', + 'schema' => [ + 'description' => '容器状态。包括:'."\n" + ."\n" + .'- Waiting'."\n" + .'- Running'."\n" + .'- Terminated', + 'type' => 'string', + 'required' => false, + 'example' => 'Running', + 'default' => 'Running', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestCPU' => [ + 'description' => '已经分配的cpu总数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'requestMemory' => [ + 'description' => '已经分配的内存总数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'requestGPU' => [ + 'description' => '已经分配的gpu总数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '8', + ], + 'requestGPUInfos' => [ + 'description' => '按照卡型单独统计的已经被分配的gpu资源', + 'type' => 'array', + 'items' => [ + 'description' => '按照卡型单独统计的已经被分配的gpu资源', + '$ref' => '#/components/schemas/GPUInfo', + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。', + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestCPU\\": 1,\\n \\"requestMemory\\": 2,\\n \\"requestGPU\\": 8,\\n \\"requestGPUInfos\\": [\\n {\\n \\"count\\": 0,\\n \\"type\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取资源组已经被分配的资源', + ], + 'DeleteResourceGroupMachineGroup' => [ + 'summary' => 'delete machine group', + 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '125207', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'MachineGroupID', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'MachineGroupID' => [ + 'type' => 'string', + ], + 'RequestId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'substitutions' => [ + 'PaiStudio::2022-01-12::DeleteResourceGroupMachineGroup', + ], + ], + 'responseDemo' => '', + ], + 'GetNodeMetrics' => [ + 'summary' => '您可以通过GetNodeMetrics获取资源组节点的指标信息。', + 'path' => '/api/v1/resources/{ResourceGroupID}/nodemetrics/{MetricType}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '151753', + 'abilityTreeNodes' => [ + 'FEATURElearn8Y18OQ', + ], + ], + 'parameters' => [ + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => [ + 'description' => '资源组 ID,每一个资源组都有全局唯一的资源组ID。可以通过资源组ID来获取资源组的信息。', + 'type' => 'string', + 'required' => true, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + [ + 'name' => 'GPUType', + 'in' => 'query', + 'schema' => [ + 'description' => '显卡类型。可能值:'."\n" + .'- V100'."\n" + .'- A100'."\n" + .'- A10'."\n" + .'- T4'."\n" + .'- P100', + 'type' => 'string', + 'required' => false, + 'example' => 'V100', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'description' => '开始时间', + 'type' => 'string', + 'required' => false, + 'example' => '2024-07-08T02:23:30.292Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'description' => '结束时间', + 'type' => 'string', + 'required' => false, + 'example' => '2024-07-10T10:17:06', + ], + ], + [ + 'name' => 'TimeStep', + 'in' => 'query', + 'schema' => [ + 'description' => '时间步长,默认值:5m。支持的时长单位的取值范围:'."\n" + ."\n" + .'- h:小时。'."\n" + ."\n" + .'- m:分钟。'."\n" + ."\n" + .'- s:秒。'."\n" + ."\n" + .'当值不带单位时,默认使用单位:s(秒)。', + 'type' => 'string', + 'required' => false, + 'example' => '1h', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'description' => '是否显示非必要信息,非必要信息目前包含Labels'."\n" + .'目前值支持:'."\n" + ."\n" + .'false:不显示非必要信息(默认值)'."\n" + .'true:显示非必要信息'."\n", + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'MetricType', + 'in' => 'path', + 'schema' => [ + 'description' => '查询的指标名', + 'type' => 'string', + 'required' => true, + 'example' => 'CpuUsageRate', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'NodesMetrics' => [ + 'description' => '节点metric信息。', + 'type' => 'array', + 'items' => [ + 'description' => '节点metric信息。', + '$ref' => '#/components/schemas/NodeMetric', + ], + ], + 'ResourceGroupID' => [ + 'description' => '资源组 ID,每一个资源组都有全局唯一的资源组ID。可以通过资源组ID来获取资源组的信息。', + 'type' => 'string', + 'example' => 'rgf0zhfqn1d4ity2', + ], + 'MetricType' => [ + 'description' => '查询的指标名。', + 'type' => 'string', + 'example' => 'DiskWriteRate', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'substitutions' => [ + 'Cms::2019-01-01::DescribeMetricList', + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NodesMetrics\\": [\\n {\\n \\"NodeID\\": \\"-i121212node\\",\\n \\"Metrics\\": [\\n {\\n \\"Time\\": 0,\\n \\"Value\\": \\"23000\\"\\n }\\n ],\\n \\"GPUType\\": \\"\\"\\n }\\n ],\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\",\\n \\"MetricType\\": \\"DiskWriteRate\\"\\n}","type":"json"}]', + 'title' => '获取节点维度的指标数据', + ], + 'ListResourceGroupMachineGroups' => [ + 'summary' => '您可以通过ListResourceGroupMachineGroups获取指定Resource Group下面的机器组列表', + 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '125191', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + 'FEATURElearnCMM1R7', + ], + ], + 'parameters' => [ + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'description' => '机器组名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'test', + ], + ], + [ + 'name' => 'CreatorID', + 'in' => 'query', + 'schema' => [ + 'description' => '机器组创建者的UserId。', + 'type' => 'string', + 'required' => false, + 'example' => '1612285282502326', + ], + ], + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => [ + 'description' => '资源组 ID,每一个资源组都有全局唯一的资源组ID。可以通过资源组ID来获取资源组的信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + [ + 'name' => 'PaymentType', + 'in' => 'query', + 'schema' => [ + 'description' => '付费类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'PREPAY', + ], + ], + [ + 'name' => 'PaymentDurationUnit', + 'in' => 'query', + 'schema' => [ + 'description' => '机器组计费时间单位。', + 'type' => 'string', + 'required' => false, + 'example' => 'Month', + ], + ], + [ + 'name' => 'PaymentDuration', + 'in' => 'query', + 'schema' => [ + 'description' => '付费时长。当PaymentDurationUnit取值为Month时,取值:1、2、3、4、5、6、7、8、9、12、24、36、48、60。', + 'type' => 'string', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'EcsSpec', + 'in' => 'query', + 'schema' => [ + 'description' => 'Ecs规格。', + 'type' => 'string', + 'required' => false, + 'example' => 'ecs.c6.large', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '2', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页大小', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '排序方式。'."\n" + ."\n" + .'- Asc - 升序排列。'."\n" + ."\n" + .'- Desc - 降序排列。', + 'type' => 'string', + 'required' => false, + 'example' => 'DESC', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'description' => '排序字段', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtCreatedTime', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'description' => '实例状态。'."\n" + .'Creating:创建中'."\n" + .'Ready:运行中'."\n" + .'Expiring: 即将过期'."\n" + .'Expired: 已过期'."\n" + .'Stopping:停止中'."\n" + .'Stopped:已停止', + 'type' => 'string', + 'required' => false, + 'example' => 'Ready', + ], + ], + [ + 'name' => 'OrderInstanceId', + 'in' => 'query', + 'schema' => [ + 'description' => '购买的实例ID。', + 'type' => 'string', + 'required' => false, + 'example' => '236553689400333', + ], + ], + [ + 'name' => 'MachineGroupIDs', + 'in' => 'query', + 'schema' => [ + 'description' => '机器组ID,多个ID通过逗号隔开。', + 'type' => 'string', + 'required' => false, + 'example' => 'mg105ecqwfe49hwb', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'MachineGroups' => [ + 'description' => '机器组列表。', + 'type' => 'array', + 'items' => [ + 'description' => '机器组。', + '$ref' => '#/components/schemas/MachineGroup', + ], + ], + 'TotalCount' => [ + 'description' => '机器组总数。', + 'type' => 'string', + 'example' => '4', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MachineGroups\\": [\\n {\\n \\"Status\\": \\"\\",\\n \\"EcsCount\\": 0,\\n \\"GmtStartedTime\\": \\"\\",\\n \\"ResourceGroupID\\": \\"\\",\\n \\"GmtCreatedTime\\": \\"\\",\\n \\"CreatorID\\": \\"\\",\\n \\"ReasonMessage\\": \\"\\",\\n \\"PaymentDurationUnit\\": \\"\\",\\n \\"EcsSpec\\": \\"\\",\\n \\"SupportedDrivers\\": [\\n \\"470.199.02\\"\\n ],\\n \\"PaymentDuration\\": \\"\\",\\n \\"ReasonCode\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"DiskCapacity\\": 0,\\n \\"GmtExpiredTime\\": \\"\\",\\n \\"OrderInstanceId\\": \\"\\",\\n \\"DefaultDriver\\": \\"470.199.02\\",\\n \\"MachineGroupID\\": \\"mg1\\",\\n \\"PaymentType\\": \\"\\",\\n \\"DiskPL\\": \\"\\",\\n \\"Cpu\\": 0,\\n \\"Gpu\\": 0,\\n \\"GpuMemory\\": 0,\\n \\"GpuType\\": \\"\\",\\n \\"Memory\\": 0,\\n \\"ResourceType\\": \\"\\",\\n \\"AllocatableCpu\\": 0,\\n \\"AllocatableMemory\\": 0,\\n \\"SystemReservedCpu\\": 0,\\n \\"SystemReservedMemory\\": 0\\n }\\n ],\\n \\"TotalCount\\": \\"4\\",\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\"\\n}","type":"json"}]', + 'title' => '获取机器组列表', + ], + 'GetUserViewMetrics' => [ + 'summary' => '您可以通过GetUserViewMetrics获取用户维度的指标数据。', + 'path' => '/api/v1/resources/{ResourceGroupID}/usermetrics', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '152476', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + 'FEATURElearnCMM1R7', + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => [ + 'description' => '资源组 ID,每一个资源组都有全局唯一的资源组ID。可以通过资源组ID来获取资源组的信息。', + 'type' => 'string', + 'required' => true, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => false, + 'example' => '86995', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '当前页码', + 'type' => 'string', + 'required' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页大小', + 'type' => 'string', + 'required' => true, + 'example' => '10', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'description' => '排序依据。', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtModified', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '排序方向:-asc:升序-desc:降序', + 'type' => 'string', + 'required' => false, + 'example' => 'DESC', + ], + ], + [ + 'name' => 'UserId', + 'in' => 'query', + 'schema' => [ + 'description' => '用户主账号ID', + 'type' => 'string', + 'required' => false, + 'example' => '123456', + ], + ], + [ + 'name' => 'TimeStep', + 'in' => 'query', + 'schema' => [ + 'description' => '时间步长,默认值:5m。支持的时长单位的取值范围:'."\n" + ."\n" + .'- h:小时。'."\n" + ."\n" + .'- m:分钟。'."\n" + ."\n" + .'- s:秒。'."\n" + ."\n" + .'当值不带单位时,默认使用单位:s(秒)。', + 'type' => 'string', + 'required' => false, + 'example' => '1h', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupId' => [ + 'description' => '资源组ID', + 'type' => 'string', + 'example' => 'rgf0zhfqn1d4ity2', + ], + 'UserMetrics' => [ + 'description' => '按照用户维度统计的指标', + 'type' => 'array', + 'items' => [ + 'description' => '按照用户维度统计的指标', + '$ref' => '#/components/schemas/UserViewMetric', + ], + ], + 'Summary' => [ + 'description' => '用户监控数据。', + '$ref' => '#/components/schemas/UserViewMetric', + ], + 'Total' => [ + 'description' => '总条数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'substitutions' => [ + 'PaiStudio::2022-01-12::GetQuotaUserViewMetrics', + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ResourceGroupId\\": \\"rgf0zhfqn1d4ity2\\",\\n \\"UserMetrics\\": [\\n {\\n \\"ResourceGroupId\\": \\"rg17tmvwiokhzaxg\\",\\n \\"TotalCPU\\": 0,\\n \\"CPUUsageRate\\": \\"\\",\\n \\"GPUUsageRate\\": \\"\\",\\n \\"TotalMemory\\": 0,\\n \\"TotalGPU\\": 0,\\n \\"MemoryUsageRate\\": \\"\\",\\n \\"RequestCPU\\": 0,\\n \\"RequestGPU\\": 0,\\n \\"RequestMemory\\": 0,\\n \\"NetworkInputRate\\": \\"\\",\\n \\"NetworkOutputRate\\": \\"\\",\\n \\"DiskReadRate\\": \\"\\",\\n \\"DiskWriteRate\\": \\"\\",\\n \\"JobType\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"CPUNodeNumber\\": 0,\\n \\"GPUNodeNumber\\": 0,\\n \\"CpuJobNames\\": [\\n \\"\\"\\n ],\\n \\"GpuJobNames\\": [\\n \\"\\"\\n ],\\n \\"NodeNames\\": [\\n \\"\\"\\n ],\\n \\"CpuNodeNames\\": [\\n \\"\\"\\n ],\\n \\"GpuNodeNames\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"Summary\\": {\\n \\"ResourceGroupId\\": \\"rg17tmvwiokhzaxg\\",\\n \\"TotalCPU\\": 0,\\n \\"CPUUsageRate\\": \\"\\",\\n \\"GPUUsageRate\\": \\"\\",\\n \\"TotalMemory\\": 0,\\n \\"TotalGPU\\": 0,\\n \\"MemoryUsageRate\\": \\"\\",\\n \\"RequestCPU\\": 0,\\n \\"RequestGPU\\": 0,\\n \\"RequestMemory\\": 0,\\n \\"NetworkInputRate\\": \\"\\",\\n \\"NetworkOutputRate\\": \\"\\",\\n \\"DiskReadRate\\": \\"\\",\\n \\"DiskWriteRate\\": \\"\\",\\n \\"JobType\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"CPUNodeNumber\\": 0,\\n \\"GPUNodeNumber\\": 0,\\n \\"CpuJobNames\\": [\\n \\"\\"\\n ],\\n \\"GpuJobNames\\": [\\n \\"\\"\\n ],\\n \\"NodeNames\\": [\\n \\"\\"\\n ],\\n \\"CpuNodeNames\\": [\\n \\"\\"\\n ],\\n \\"GpuNodeNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"Total\\": 2\\n}","type":"json"}]', + 'title' => '获取用户维度的指标', + ], + 'GetResourceGroupMachineGroup' => [ + 'summary' => '您可以通过GetResourceGroupMachineGroup获取机器组的详情。', + 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID}', + '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' => '125186', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'MachineGroupID', + 'in' => 'path', + 'schema' => [ + 'description' => 'MachineGroup的ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'mgmioirqjgw6c5lg', + ], + ], + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => [ + 'description' => '资源组 ID,每一个资源组都有全局唯一的资源组ID。可以通过资源组ID来获取资源组的信息。', + 'type' => 'string', + 'required' => true, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '对应新增标签列表,最多包含20个子项', + 'description' => '对应新增标签列表,最多包含20个子项', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'title' => '标签键', + 'description' => '实例的标签键。N 的取值范围为 1~20。', + 'type' => 'string', + 'required' => false, + 'example' => 'TestKey', + ], + 'Value' => [ + 'title' => '标签值', + 'description' => '实例的标签值。N 的取值范围为 1~20。', + 'type' => 'string', + 'required' => false, + 'example' => 'TestValue', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'MachineGroupID' => [ + 'description' => 'MachineGroup的ID。', + 'type' => 'string', + 'example' => 'mgmioirqjgw6c5lg', + ], + 'ResourceGroupID' => [ + 'description' => '资源组 ID,每一个资源组都有全局唯一的资源组ID。可以通过资源组ID来获取资源组的信息。', + 'type' => 'string', + 'example' => 'rgf0zhfqn1d4ity2', + ], + 'Status' => [ + 'description' => '实例状态。'."\n" + .'Creating:创建中'."\n" + .'Ready:运行中'."\n" + .'Expiring: 即将过期'."\n" + .'Expired: 已过期'."\n" + .'Stopping:停止中'."\n" + .'Stopped:已停止', + 'type' => 'string', + 'example' => 'Ready', + ], + 'PaymentType' => [ + 'description' => '付费类型。', + 'type' => 'string', + 'example' => 'PREPAY', + ], + 'PaymentDurationUnit' => [ + 'description' => '机器组计费时间单位。', + 'type' => 'string', + 'example' => 'Month', + ], + 'PaymentDuration' => [ + 'description' => '付费时长。当PaymentDurationUnit取值为Month时,取值:1、2、3、4、5、6、7、8、9、12、24、36、48、60。', + 'type' => 'string', + 'example' => '1', + ], + 'EcsSpec' => [ + 'description' => 'Ecs规格。', + 'type' => 'string', + 'example' => 'ecs.c6.large', + ], + 'EcsCount' => [ + 'description' => 'Ecs实例数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'GmtCreatedTime' => [ + 'description' => '机器组创建时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'GmtModifiedTime' => [ + 'description' => '机器组更新时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'GmtStartedTime' => [ + 'description' => '机器组启动时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'GmtExpiredTime' => [ + 'description' => '机器组失效时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z'."\n", + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + 'Cpu' => [ + 'description' => '机器组中每一台机器的CPU总核数。', + 'type' => 'string', + 'example' => '2', + ], + 'Gpu' => [ + 'description' => '机器组中每一台机器的GPU核数。', + 'type' => 'string', + 'example' => '8', + ], + 'GpuType' => [ + 'description' => '机器组中每一台机器的GPU卡型。', + 'type' => 'string', + 'example' => 'A100', + ], + 'Memory' => [ + 'description' => '机器组中每一台机器的内存数。', + 'type' => 'string', + 'example' => '64', + ], + 'SupportedDrivers' => [ + 'description' => '机器组中节点支持的GPU显卡驱动版本。', + 'type' => 'array', + 'items' => [ + 'description' => '535,550', + 'type' => 'string', + 'example' => '535,550', + ], + ], + 'DefaultDriver' => [ + 'description' => '机器组中每一台机器的默认的显卡驱动的版本。', + 'type' => 'string', + 'example' => '535', + ], + 'Name' => [ + 'description' => '机器组名称。', + 'type' => 'string', + 'example' => 'testMachineGroup', + ], + 'Tags' => [ + 'description' => '要查询的Tags列表,采用JSON字符串的形式,最多包含20个子项。', + 'type' => 'array', + 'items' => [ + 'description' => '标签数组。数组元素个数N取值范围:1~20。', + 'type' => 'object', + 'properties' => [ + 'TagKey' => [ + 'title' => '标签键', + 'description' => '实例的标签键。N 的取值范围为 1~20。', + 'type' => 'string', + 'example' => 'TestKey', + ], + 'TagValue' => [ + 'title' => '标签值', + 'description' => '实例的标签值。N 的取值范围为 1~20。', + 'type' => 'string', + 'example' => 'TestValue', + ], + ], + ], + ], + 'AllocatableCpu' => [ + 'type' => 'string', + ], + 'AllocatableMemory' => [ + 'type' => 'string', + ], + 'SystemReservedCpu' => [ + 'type' => 'string', + ], + 'SystemReservedMemory' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MachineGroupID\\": \\"mgmioirqjgw6c5lg\\",\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\",\\n \\"Status\\": \\"Ready\\",\\n \\"PaymentType\\": \\"PREPAY\\",\\n \\"PaymentDurationUnit\\": \\"Month\\",\\n \\"PaymentDuration\\": \\"1\\",\\n \\"EcsSpec\\": \\"ecs.c6.large\\",\\n \\"EcsCount\\": 1,\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtStartedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtExpiredTime\\": \\"2023-06-22T00:00:00Z\\\\n\\",\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\",\\n \\"Cpu\\": \\"2\\",\\n \\"Gpu\\": \\"8\\",\\n \\"GpuType\\": \\"A100\\",\\n \\"Memory\\": \\"64\\",\\n \\"SupportedDrivers\\": [\\n \\"535,550\\"\\n ],\\n \\"DefaultDriver\\": \\"535\\",\\n \\"Name\\": \\"testMachineGroup\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"TestKey\\",\\n \\"TagValue\\": \\"TestValue\\"\\n }\\n ],\\n \\"AllocatableCpu\\": \\"\\",\\n \\"AllocatableMemory\\": \\"\\",\\n \\"SystemReservedCpu\\": \\"\\",\\n \\"SystemReservedMemory\\": \\"\\"\\n}","type":"json"}]', + 'title' => '获取机器组详情', + ], + 'GetResourceGroup' => [ + 'summary' => '您可以通过GetResourceGroup获取资源组的详情信息。', + 'path' => '/api/v1/resources/{ResourceGroupID}', + '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' => '124255', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => [ + 'title' => 'get pai resource group details by id', + 'description' => '资源组 ID,每一个资源组都有全局唯一的资源组ID。可以通过资源组ID来获取资源组的信息。', + 'type' => 'string', + 'required' => true, + 'example' => 'rgmhpp8ib5lprq9k', + ], + ], + [ + 'name' => 'IsAIWorkspaceDataEnabled', + 'in' => 'query', + 'schema' => [ + 'description' => '这个参数是可选参数。默认是true。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '对应新增标签列表,最多包含20个子项', + 'description' => '对应新增标签列表,最多包含20个子项', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'title' => '标签键', + 'description' => '实例的标签键。N 的取值范围为 1~20。', + 'type' => 'string', + 'required' => false, + 'example' => 'TestKey', + ], + 'Value' => [ + 'title' => '标签值', + 'description' => '实例的标签值。N 的取值范围:1~20。', + 'type' => 'string', + 'required' => false, + 'example' => 'TestValue', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'GmtCreatedTime' => [ + 'title' => 'pai resource created time', + 'description' => 'ResourceGroup创建时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z'."\n", + ], + 'GmtModifiedTime' => [ + 'title' => 'pai resource group modified time', + 'description' => 'ResourceGroup更新时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z'."\n", + ], + 'RequestId' => [ + 'title' => 'request id', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E'."\n", + ], + 'Name' => [ + 'description' => 'ResourceGroup名称。', + 'type' => 'string', + 'example' => 'TestResourceGroup', + ], + 'CreatorID' => [ + 'description' => 'ResourceGroup创建者的UserId。', + 'type' => 'string', + 'example' => '1612285282502324', + ], + 'WorkspaceID' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '35201', + ], + 'Status' => [ + 'description' => 'ResourceGroup的状态。', + 'type' => 'string', + 'example' => 'Ready', + ], + 'UserVpc' => [ + 'description' => 'ResourceGroup打通VPC的详细信息。', + '$ref' => '#/components/schemas/UserVpc', + ], + 'ComputingResourceProvider' => [ + 'description' => 'ResourceGroup的计算资源类型。', + 'type' => 'string', + 'enumValueTitles' => [ + 'Ecs' => 'Ecs', + 'Lingjun' => 'Lingjun', + ], + 'example' => 'ECS', + ], + 'ClusterID' => [ + 'description' => 'ResourceGroup所属的集群ID。', + 'type' => 'string', + 'example' => 'cb2c7bde30b774e46a329c', + ], + 'SupportRDMA' => [ + 'description' => 'ResourceGroup是都支持RDMA。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ResourceType' => [ + 'description' => 'ResourceGroup的计算资源类型。', + 'type' => 'string', + 'example' => 'Ecs', + ], + 'Description' => [ + 'description' => 'ResourceGroup描述信息。', + 'type' => 'string', + 'example' => 'testDescription', + ], + 'Tags' => [ + 'description' => '标签列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'TagKey' => [ + 'title' => '标签键', + 'description' => '实例的标签键。N 的取值范围为 1~20。', + 'type' => 'string', + 'example' => 'testKey', + ], + 'TagValue' => [ + 'title' => '标签值', + 'description' => '实例的标签值。N 的取值范围:1~20。', + 'type' => 'string', + 'example' => 'testValue', + ], + ], + ], + ], + 'Version' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\\\n\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\\\n\\",\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\\\n\\",\\n \\"Name\\": \\"TestResourceGroup\\",\\n \\"CreatorID\\": \\"1612285282502324\\",\\n \\"WorkspaceID\\": \\"35201\\",\\n \\"Status\\": \\"Ready\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"\\",\\n \\"SwitchId\\": \\"\\",\\n \\"SecurityGroupId\\": \\"\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\"\\n ],\\n \\"RoleArn\\": \\"\\",\\n \\"DefaultRoute\\": \\"\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"\\",\\n \\"EipAllocationId\\": \\"\\"\\n }\\n },\\n \\"ComputingResourceProvider\\": \\"ECS\\",\\n \\"ClusterID\\": \\"cb2c7bde30b774e46a329c\\",\\n \\"SupportRDMA\\": true,\\n \\"ResourceType\\": \\"Ecs\\",\\n \\"Description\\": \\"testDescription\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"testKey\\",\\n \\"TagValue\\": \\"testValue\\"\\n }\\n ],\\n \\"Version\\": \\"\\"\\n}","type":"json"}]', + 'title' => '获取资源组详情', + ], + 'DeleteMachineGroup' => [ + 'summary' => 'delete machine group', + 'path' => '/api/v1/resources/machinegroups/{MachineGroupID}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '124429', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + 'FEATURElearnCMM1R7', + ], + ], + 'parameters' => [ + [ + 'name' => 'MachineGroupID', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'MachineGroupID' => [ + 'type' => 'string', + ], + 'RequestId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'substitutions' => [ + 'PaiStudio::2022-01-12::DeleteMachineGroup', + ], + ], + 'responseDemo' => '', + ], + 'CreateResourceGroup' => [ + 'summary' => '您可以使用CreateResourceGroup创建ResourceGroup。', + 'path' => '/api/v1/resources', + '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' => '125287', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + 'FEATURElearnCMM1R7', + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求结构体。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => 'ResourceGroup名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'testResourceGroup', + ], + 'Description' => [ + 'description' => 'ResourceGroup描述', + 'type' => 'string', + 'required' => false, + 'example' => 'test_api_report', + ], + 'UserVpc' => [ + 'description' => 'ResourceGroup的VPC打通信息。', + 'required' => false, + '$ref' => '#/components/schemas/UserVpc', + ], + 'ResourceType' => [ + 'description' => '资源类型列表。取值如下:'."\n" + ."\n" + .'- Ecs:通用计算资源'."\n" + .'- Lingjun:灵骏智算资源', + 'type' => 'string', + 'required' => false, + 'example' => 'Ecs', + ], + 'ComputingResourceProvider' => [ + 'description' => 'ResourceGroup的计算资源类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'Ecs', + ], + 'Tag' => [ + 'title' => '对应新增标签列表,最多包含20个子项', + 'description' => '对应新增标签列表,最多包含20个子项', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'title' => '标签键', + 'description' => '实例的标签键。N 的取值范围为 1~20。', + 'type' => 'string', + 'required' => false, + 'example' => 'TestKey', + ], + 'Value' => [ + 'title' => '标签值', + 'description' => '实例的标签值。N 的取值范围为 1~20。', + 'type' => 'string', + 'required' => false, + 'example' => 'TestValue', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'Version' => [ + 'title' => '资源组版本,当前只在resource type为ECS时生效。', + 'type' => 'string', + 'required' => false, + 'example' => '1.0', + ], + ], + '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' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E'."\n", + ], + 'ResourceGroupID' => [ + 'description' => 'ResourceGroup ID。', + 'type' => 'string', + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\\\n\\",\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\"\\n}","type":"json"}]', + 'title' => '创建资源组', + ], + 'DeleteResourceGroup' => [ + 'summary' => '您可以使用DeleteResourceGroup删除资源组。', + 'path' => '/api/v1/resources/{ResourceGroupID}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '125213', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => [ + 'title' => 'A short description of struct', + 'description' => 'ResourceGroup的ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'rgvl9d6utwcscukh', + ], + ], + ], + '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' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + 'ResourceGroupID' => [ + 'description' => '资源组 ID,每一个资源组都有全局唯一的资源组ID。可以通过资源组ID来获取资源组的信息。', + 'type' => 'string', + 'example' => 'rgvl9d6utwcscukh', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"ResourceGroupID\\": \\"rgvl9d6utwcscukh\\"\\n}","type":"json"}]', + 'title' => '删除资源组', + ], + 'GetMachineGroup' => [ + 'summary' => 'get machine group', + 'path' => '/api/v1/resources/machinegroups/{MachineGroupID}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '124271', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + 'FEATURElearnCMM1R7', + ], + ], + 'parameters' => [ + [ + 'name' => 'MachineGroupID', + 'in' => 'path', + 'schema' => [ + 'type' => 'string', + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'MachineGroupID' => [ + 'type' => 'string', + ], + 'OrderID' => [ + 'type' => 'string', + ], + 'PAIResourceID' => [ + 'type' => 'string', + ], + 'Status' => [ + 'type' => 'string', + ], + 'PayType' => [ + 'type' => 'string', + ], + 'PricingCycle' => [ + 'type' => 'string', + ], + 'Duration' => [ + 'type' => 'string', + ], + 'EcsType' => [ + 'type' => 'string', + ], + 'Count' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + 'RegionID' => [ + 'type' => 'string', + ], + 'GmtCreated' => [ + 'type' => 'string', + ], + 'GmtModified' => [ + 'type' => 'string', + ], + 'GmtStarted' => [ + 'type' => 'string', + ], + 'GmtExpired' => [ + 'type' => 'string', + ], + 'RequestId' => [ + 'type' => 'string', + ], + 'SupportedDrivers' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'DefaultDriver' => [ + 'type' => 'string', + ], + 'OrderInstanceId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'substitutions' => [ + 'PaiStudio::2022-01-12::GetMachineGroup', + ], + ], + ], + 'CreateAlgorithm' => [ + 'summary' => '创建算法。', + 'path' => '/api/v1/algorithms', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'formData', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => false, + 'example' => '12345', + ], + ], + [ + 'name' => 'AlgorithmDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '算法描述。', + 'type' => 'string', + 'required' => false, + 'example' => '通义千问大语言模型训练算法。', + ], + ], + [ + 'name' => 'AlgorithmName', + 'in' => 'formData', + 'schema' => [ + 'description' => '算法名。', + 'type' => 'string', + 'required' => false, + 'example' => 'llm_training', + ], + ], + [ + 'name' => 'DisplayName', + 'in' => 'formData', + 'schema' => [ + 'description' => '算法显示名称。', + 'type' => 'string', + 'required' => false, + 'example' => '大语言模型训练', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', + ], + 'AlgorithmId' => [ + 'description' => '训练算法ID。', + 'type' => 'string', + 'example' => 'algo-xsldfvu1334', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\"\\n}","type":"json"}]', + 'title' => '创建算法', + ], + 'CreateAlgorithmVersion' => [ + 'summary' => '创建算法版本。', + 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/x-www-form-urlencoded', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练算法ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'algo-xsldfvu1334', + ], + ], + [ + 'name' => 'AlgorithmVersion', + 'in' => 'path', + 'schema' => [ + 'description' => '算法版本。', + 'type' => 'string', + 'required' => false, + 'example' => 'v0.0.1', + ], + ], + [ + 'name' => 'AlgorithmSpec', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '算法配置。', + 'required' => false, + '$ref' => '#/components/schemas/AlgorithmSpec', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'AlgorithmId' => [ + 'description' => '训练算法ID。', + 'type' => 'string', + 'example' => 'algo-xsldfvu1334', + ], + 'AlgorithmVersion' => [ + 'description' => '算法版本。', + 'type' => 'string', + 'example' => 'v0.0.1', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\"\\n}","type":"json"}]', + 'title' => '创建算法版本', + ], + 'DeleteAlgorithm' => [ + 'summary' => '删除算法。', + 'path' => '/api/v1/algorithms/{AlgorithmId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '146690', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => [ + 'title' => '算法Id', + 'description' => '算法ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'algo-sidjc8134hv', + ], + ], + ], + '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' => 'FFB1D4B4-B253-540A-9B3B-AA711C48A1B7', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FFB1D4B4-B253-540A-9B3B-AA711C48A1B7\\"\\n}","type":"json"}]', + 'title' => '删除算法', + ], + 'DeleteAlgorithmVersion' => [ + 'summary' => '删除算法版本。', + 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/x-www-form-urlencoded', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '146338', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'algo-xsldfvu1334', + ], + ], + [ + 'name' => 'AlgorithmVersion', + 'in' => 'path', + 'schema' => [ + 'description' => '算法版本。', + 'type' => 'string', + 'required' => true, + 'example' => 'v0.0.1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\"\\n}","type":"json"}]', + 'title' => '删除算法版本', + ], + 'GetAlgorithm' => [ + 'summary' => '获取算法详情。', + 'path' => '/api/v1/algorithms/{AlgorithmId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'algo-xsldfvu1334', + ], + ], + ], + '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' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'AlgorithmDescription' => [ + 'description' => '算法描述。', + 'type' => 'string', + 'example' => '大语言模型训练。', + ], + 'AlgorithmId' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'example' => 'algo-xsldfvu1334', + ], + 'AlgorithmName' => [ + 'description' => '算法名。', + 'type' => 'string', + 'example' => 'llm_training', + ], + 'AlgorithmProvider' => [ + 'description' => '算法提供方。', + 'type' => 'string', + 'example' => 'pai', + ], + 'GmtCreateTime' => [ + 'description' => '算法创建时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'GmtModifiedTime' => [ + 'description' => '算法更新时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '12345', + ], + 'UserId' => [ + 'description' => '算法归属用户ID。', + 'type' => 'string', + 'example' => '123456789', + ], + 'TenantId' => [ + 'description' => '算法归属租户ID。', + 'type' => 'string', + 'example' => '123456789', + ], + 'DisplayName' => [ + 'description' => '算法展示名。', + 'type' => 'string', + 'example' => 'llm_training', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"AlgorithmDescription\\": \\"大语言模型训练。\\",\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"AlgorithmName\\": \\"llm_training\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"WorkspaceId\\": \\"12345\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"TenantId\\": \\"123456789\\",\\n \\"DisplayName\\": \\"llm_training\\"\\n}","type":"json"}]', + 'title' => '获取算法详情', + ], + 'GetAlgorithmVersion' => [ + 'summary' => '获取算法版本详情。', + 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'algo-xsldfvu1334', + ], + ], + [ + 'name' => 'AlgorithmVersion', + 'in' => 'path', + 'schema' => [ + 'description' => '算法版本。', + 'type' => 'string', + 'required' => false, + 'example' => 'v0.0.1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '请求返回数据。', + 'type' => 'object', + 'properties' => [ + 'AlgorithmSpec' => [ + 'description' => '算法详情。', + '$ref' => '#/components/schemas/AlgorithmSpec', + ], + 'AlgorithmId' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'example' => 'algo-xsldfvu1334', + ], + 'AlgorithmName' => [ + 'description' => '算法名。', + 'type' => 'string', + 'example' => 'llm_training', + ], + 'AlgorithmProvider' => [ + 'description' => '算法提供方。', + 'type' => 'string', + 'example' => 'pai', + ], + 'AlgorithmVersion' => [ + 'description' => '算法版本。', + 'type' => 'string', + 'example' => 'v0.0.1', + ], + 'GmtCreateTime' => [ + 'description' => '算法创建时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'GmtModifiedTime' => [ + 'description' => '算法更新时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'UserId' => [ + 'description' => '算法归属用户ID。', + 'type' => 'string', + 'example' => '123456789', + ], + 'TenantId' => [ + 'description' => '算法归属租户ID。', + 'type' => 'string', + 'example' => '123456789', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmSpec\\": {\\n \\"OutputChannels\\": [\\n {\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Name\\": \\"\\",\\n \\"SupportedChannelTypes\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"HyperParameters\\": [\\n {\\n \\"DefaultValue\\": \\"\\",\\n \\"Type\\": \\"\\",\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Name\\": \\"\\",\\n \\"Range\\": {\\n \\"Enum\\": [\\n \\"\\"\\n ],\\n \\"MinLength\\": 0,\\n \\"MaxLength\\": 0,\\n \\"Minimum\\": \\"\\",\\n \\"Maximum\\": \\"\\",\\n \\"ExclusiveMinimum\\": true,\\n \\"ExclusiveMaximum\\": true,\\n \\"Pattern\\": \\"\\"\\n },\\n \\"DisplayName\\": \\"\\"\\n }\\n ],\\n \\"JobType\\": \\"\\",\\n \\"Command\\": [\\n \\"\\"\\n ],\\n \\"MetricDefinitions\\": [\\n {\\n \\"Description\\": \\"train dataset oob score\\",\\n \\"Regex\\": \\".*train:oob_score=([-+]?[0-9]*\\\\\\\\\\\\\\\\.?[0-9]+(?:[eE][-+]?[0-9]+)?).*\\",\\n \\"Name\\": \\"train:oob_score\\"\\n }\\n ],\\n \\"InputChannels\\": [\\n {\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Name\\": \\"\\",\\n \\"SupportedChannelTypes\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"SupportsDistributedTraining\\": true,\\n \\"Image\\": \\"\\",\\n \\"SupportedInstanceTypes\\": [\\n \\"\\"\\n ],\\n \\"ComputeResource\\": {\\n \\"Policy\\": {\\n \\"Version\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n },\\n \\"CodeDir\\": {\\n \\"LocationType\\": \\"\\",\\n \\"LocationValue\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"Customization\\": {\\n \\"CodeDir\\": true\\n },\\n \\"ResourceRequirements\\": [\\n {\\n \\"Key\\": \\"SupportedMachineTypes\\",\\n \\"Operator\\": \\"in\\",\\n \\"Values\\": [\\n \\"GPU\\"\\n ]\\n }\\n ],\\n \\"ProgressDefinitions\\": {\\n \\"OverallProgress\\": {\\n \\"Description\\": \\"\\",\\n \\"Regex\\": \\"\\"\\n },\\n \\"RemainingTime\\": {\\n \\"Description\\": \\"\\",\\n \\"Regex\\": \\"\\"\\n }\\n }\\n },\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"AlgorithmName\\": \\"llm_training\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\",\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"TenantId\\": \\"123456789\\"\\n}","type":"json"}]', + 'title' => '获取算法版本详情', + ], + 'ListAlgorithms' => [ + 'summary' => '获取算法详情列表。', + 'path' => '/api/v1/algorithms', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页大小。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'AlgorithmName', + 'in' => 'query', + 'schema' => [ + 'description' => '算法名。', + 'type' => 'string', + 'required' => false, + 'example' => 'llm_training', + ], + ], + [ + 'name' => 'AlgorithmId', + 'in' => 'query', + 'schema' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'algo-xsldfvu1334', + ], + ], + [ + 'name' => 'AlgorithmProvider', + 'in' => 'query', + 'schema' => [ + 'description' => '算法提供方。', + 'type' => 'string', + 'required' => false, + 'example' => 'pai', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => false, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '请求返回。', + 'type' => 'object', + 'properties' => [ + 'Algorithms' => [ + 'description' => '算法列表。', + 'type' => 'array', + 'items' => [ + 'description' => '算法详情。', + 'type' => 'object', + 'properties' => [ + 'AlgorithmDescription' => [ + 'description' => '算法描述。', + 'type' => 'string', + 'example' => '大语言模型训练。', + ], + 'AlgorithmId' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'example' => 'algo-sidjc8134hv', + ], + 'AlgorithmName' => [ + 'description' => '算法名。', + 'type' => 'string', + 'example' => 'llm_train', + ], + 'AlgorithmProvider' => [ + 'description' => '算法提供方。', + 'type' => 'string', + 'example' => 'pai', + ], + 'GmtCreateTime' => [ + 'description' => '算法创建时间。', + 'type' => 'string', + 'example' => '2023-07-21T03:35:24Z', + ], + 'GmtModifiedTime' => [ + 'description' => '算法更新时间。', + 'type' => 'string', + 'example' => '2023-07-25T02:15:40Z', + ], + 'UserId' => [ + 'description' => '算法归属用户ID。', + 'type' => 'string', + 'example' => '123456789', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '12345', + ], + 'DisplayName' => [ + 'description' => '算法展示名。', + 'type' => 'string', + 'example' => 'LLM Train', + ], + ], + ], + ], + 'TotalCount' => [ + 'description' => '算法总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '4', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Algorithms\\": [\\n {\\n \\"AlgorithmDescription\\": \\"大语言模型训练。\\",\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\",\\n \\"AlgorithmName\\": \\"llm_train\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"GmtCreateTime\\": \\"2023-07-21T03:35:24Z\\",\\n \\"GmtModifiedTime\\": \\"2023-07-25T02:15:40Z\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"WorkspaceId\\": \\"12345\\",\\n \\"DisplayName\\": \\"LLM Train\\"\\n }\\n ],\\n \\"TotalCount\\": 4,\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => '获取算法详情列表', + ], + 'ListAlgorithmVersions' => [ + 'summary' => '获取算法版本详情列表。', + 'path' => '/api/v1/algorithms/{AlgorithmId}/versions', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页的大小。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '当前页码。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'algo-sidjc8134hv', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '请求返回。', + 'type' => 'object', + 'properties' => [ + 'AlgorithmVersions' => [ + 'description' => '算法版本详情列表。', + 'type' => 'array', + 'items' => [ + 'description' => '算法版本详情。', + 'type' => 'object', + 'properties' => [ + 'AlgorithmId' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'example' => 'algo-sidjc8134hv', + ], + 'AlgorithmName' => [ + 'description' => '算法名。', + 'type' => 'string', + 'example' => 'llm_train', + ], + 'AlgorithmProvider' => [ + 'description' => '算法提供者。', + 'type' => 'string', + 'example' => 'pai', + ], + 'AlgorithmVersion' => [ + 'description' => '算法版本。', + 'type' => 'string', + 'example' => 'v0.1.0', + ], + 'GmtCreateTime' => [ + 'description' => '算法创建时间。', + 'type' => 'string', + 'example' => '2024-01-19T02:00:26Z', + ], + 'GmtModifiedTime' => [ + 'description' => '算法更新时间。', + 'type' => 'string', + 'example' => '2024-01-22T02:00:59Z', + ], + 'TenantId' => [ + 'description' => '算法归属租户ID。', + 'type' => 'string', + 'example' => '123456789', + ], + 'UserId' => [ + 'description' => '算法归属用户ID。', + 'type' => 'string', + 'example' => '123456789', + ], + ], + ], + ], + 'TotalCount' => [ + 'description' => '算法版本总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '23', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmVersions\\": [\\n {\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\",\\n \\"AlgorithmName\\": \\"llm_train\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"AlgorithmVersion\\": \\"v0.1.0\\",\\n \\"GmtCreateTime\\": \\"2024-01-19T02:00:26Z\\",\\n \\"GmtModifiedTime\\": \\"2024-01-22T02:00:59Z\\",\\n \\"TenantId\\": \\"123456789\\",\\n \\"UserId\\": \\"123456789\\"\\n }\\n ],\\n \\"TotalCount\\": 23,\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => '获取算法版本详情列表', + ], + 'UpdateAlgorithm' => [ + 'summary' => '更新算法。', + 'path' => '/api/v1/algorithms/{AlgorithmId}', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/x-www-form-urlencoded', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'AlgorithmDescription', + 'in' => 'formData', + 'schema' => [ + 'description' => '算法描述。', + 'type' => 'string', + 'required' => false, + 'example' => '大语言模型训练。', + ], + ], + [ + 'name' => 'DisplayName', + 'in' => 'formData', + 'schema' => [ + 'description' => '算法展示名。', + 'type' => 'string', + 'required' => false, + 'example' => 'LLM Train', + ], + ], + [ + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'algo-sidjc8134hv', + ], + ], + ], + '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' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', + ], + 'AlgorithmId' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'example' => 'algo-sidjc8134hv', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\"\\n}","type":"json"}]', + 'title' => '更新算法', + ], + 'UpdateAlgorithmVersion' => [ + 'summary' => '更新算法版本。', + 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/x-www-form-urlencoded', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'algo-sidjc8134hv', + ], + ], + [ + 'name' => 'AlgorithmVersion', + 'in' => 'path', + 'schema' => [ + 'description' => '算法版本。', + 'type' => 'string', + 'required' => false, + 'example' => 'v0.0.1', + ], + ], + [ + 'name' => 'AlgorithmSpec', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'description' => '算法详情。', + 'required' => false, + '$ref' => '#/components/schemas/AlgorithmSpec', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'AlgorithmId' => [ + 'description' => '算法ID。', + 'type' => 'string', + 'example' => 'algo-sidjc8134hv', + ], + 'AlgorithmVersion' => [ + 'description' => '算法版本。', + 'type' => 'string', + 'example' => 'v0.1.0', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\",\\n \\"AlgorithmVersion\\": \\"v0.1.0\\"\\n}","type":"json"}]', + 'title' => '更新算法版本', + ], + 'CreateTrainingJob' => [ + 'summary' => '创建训练任务。', + 'path' => '/api/v1/trainingjobs', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '132535', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求body参数。', + 'type' => 'object', + 'properties' => [ + 'AlgorithmName' => [ + 'description' => '算法名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'ev_classification', + ], + 'AlgorithmProvider' => [ + 'description' => '算法提供方。', + 'type' => 'string', + 'required' => false, + 'example' => 'pai', + ], + 'AlgorithmVersion' => [ + 'description' => '算法版本。', + 'type' => 'string', + 'required' => false, + 'example' => 'v1.0.0', + ], + 'ComputeResource' => [ + 'description' => '计算资源配置。', + 'type' => 'object', + 'properties' => [ + 'EcsCount' => [ + 'description' => 'Ecs实例数。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + ], + 'EcsSpec' => [ + 'description' => 'Ecs型号。', + 'type' => 'string', + 'required' => false, + 'example' => 'ecs.gn5-c8g1.2xlarge', + ], + 'ResourceId' => [ + 'description' => '资源配额(Quota)ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'quotam670lixikcs', + ], + 'InstanceCount' => [ + 'description' => '资源配额使用实例数。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + ], + 'InstanceSpec' => [ + 'description' => '资源配额实例配置。', + 'type' => 'object', + 'properties' => [ + 'CPU' => [ + 'description' => '实例CPU核数。', + 'type' => 'string', + 'required' => false, + 'example' => '8', + ], + 'Memory' => [ + 'description' => '实例内存大小,单位为GiB。', + 'type' => 'string', + 'required' => false, + 'example' => '32', + ], + 'SharedMemory' => [ + 'description' => '实例共享内存大小,单位GB。', + 'type' => 'string', + 'required' => false, + 'example' => '32', + ], + 'GPU' => [ + 'description' => '实例GPU显卡数量。', + 'type' => 'string', + 'required' => false, + 'example' => '1', + ], + 'GPUType' => [ + 'description' => '实例GPU显卡型号。', + 'type' => 'string', + 'required' => false, + 'example' => 'V100', + ], + ], + 'required' => false, + ], + 'SpotSpec' => [ + 'description' => '抢占式实例配置。', + 'type' => 'object', + 'properties' => [ + 'SpotStrategy' => [ + 'description' => 'SpotStrategy: 实例的抢占策略,取值范围:'."\n" + .'- SpotWithPriceLimit:设置上限价格的抢占式实例。'."\n" + .'- SpotAsPriceGo:系统自动出价,跟随当前市场实际价格。', + 'type' => 'string', + 'required' => false, + 'example' => 'SpotWithPriceLimit', + ], + 'SpotDiscountLimit' => [ + 'description' => '设置实例的每小时最高价格折扣,参数SpotStrategy取值为SpotWithPriceLimit时生效。', + 'type' => 'number', + 'format' => 'float', + 'required' => false, + 'example' => '9', + ], + ], + 'required' => false, + ], + 'UseSpotInstance' => [ + 'description' => '是否使用抢占式实例。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + 'required' => false, + ], + 'HyperParameters' => [ + 'description' => '训练超参数配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练超参数配置。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '参数名。', + 'type' => 'string', + 'required' => false, + 'example' => 'learning_rate', + ], + 'Value' => [ + 'description' => '参数值。', + 'type' => 'string', + 'required' => false, + 'example' => '0.0001', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'InputChannels' => [ + 'description' => '训练输入数据配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练输入数据配置。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '输入数据名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'model', + ], + 'DatasetId' => [ + 'description' => '数据集ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'd-475megosidivjfgfq6', + ], + 'VersionName' => [ + 'type' => 'string', + 'required' => false, + ], + 'InputUri' => [ + 'description' => '输入数据链接。', + 'type' => 'string', + 'required' => false, + 'example' => 'oss://pai-quickstart-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/modelscope/models/qwen2-0.5b/main/', + ], + 'Options' => [ + 'description' => '输入数据参数配置。', + 'type' => 'string', + 'required' => false, + 'example' => '{"appendable": true}', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'Labels' => [ + 'description' => '训练任务标签。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务标签。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签的键。', + 'type' => 'string', + 'required' => false, + 'example' => 'CreatedBy', + ], + 'Value' => [ + 'description' => '标签的值。', + 'type' => 'string', + 'required' => false, + 'example' => 'QuickStart', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'OutputChannels' => [ + 'description' => '训练输出数据配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练输出数据配置。', + 'type' => 'object', + 'properties' => [ + 'DatasetId' => [ + 'description' => '数据集ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'd-475megosidivjfgfq6', + ], + 'Name' => [ + 'description' => '输出数据名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'model', + ], + 'OutputUri' => [ + 'description' => '输出数据配置。', + 'type' => 'string', + 'required' => false, + 'example' => 'oss://pai-quickstart-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/modelscope/models/qwen2-0.5b/main/', + ], + 'VersionName' => [ + 'type' => 'string', + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'Scheduler' => [ + 'description' => '训练任务调度配置。', + 'type' => 'object', + 'properties' => [ + 'MaxRunningTimeInSeconds' => [ + 'description' => '最大训练运行时长,单位为秒。数值为0时不限制最大运行时常。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '0', + ], + 'MaxRunningTimeInMinutes' => [ + 'description' => '最大训练运行时长,单位为分钟。数值为0时不限制最大运行时常。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '0', + ], + ], + 'required' => false, + ], + 'TrainingJobDescription' => [ + 'description' => '训练任务描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'qwen large language model training', + ], + 'TrainingJobName' => [ + 'description' => '训练任务名称。', + 'type' => 'string', + 'required' => true, + 'example' => 'qwen_llm', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + 'AlgorithmSpec' => [ + 'description' => '训练任务算法配置。', + 'required' => false, + '$ref' => '#/components/schemas/AlgorithmSpec', + ], + 'CodeDir' => [ + 'description' => '训练任务代码配置。', + 'required' => false, + '$ref' => '#/components/schemas/Location', + ], + 'RoleArn' => [ + 'description' => '指定角色的ARN。格式:acs:ram::$accountID:role/$roleName。', + 'type' => 'string', + 'required' => false, + 'example' => 'acs:ram::1157703270994901:role/aliyunserviceroleforpaiworkspace', + ], + 'UserVpc' => [ + 'description' => 'VPC配置。', + 'type' => 'object', + 'properties' => [ + 'VpcId' => [ + 'description' => 'VPC ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'vpc-dxiflssjx978sl', + ], + 'SwitchId' => [ + 'description' => '交换机ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'vs-icrc813vdsfol', + ], + 'SecurityGroupId' => [ + 'description' => '安全组ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'sg-qdfasd13sdasf', + ], + 'ExtendedCIDRs' => [ + 'description' => '扩展网段配置。', + 'type' => 'array', + 'items' => [ + 'description' => '扩展网段配置。', + 'type' => 'string', + 'required' => false, + 'example' => '192.168.0.1/24', + ], + 'required' => false, + ], + 'DefaultRoute' => [ + 'description' => '默认路由接口,eth0表示默认路由走pai的vpc,eht1表示默认路由走用户vpc,默认为eth0。', + 'type' => 'string', + 'required' => false, + 'example' => 'eth0', + ], + ], + 'required' => false, + ], + 'Settings' => [ + 'description' => '训练任务额外参数配置。', + 'required' => false, + '$ref' => '#/components/schemas/JobSettings', + ], + 'ExperimentConfig' => [ + 'description' => '训练任务关联实验配置。', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '训练任务关联实验ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'exp-ds9aefia90v', + ], + ], + 'required' => false, + ], + 'Environments' => [ + 'description' => '训练任务环境变量。', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'string', + 'description' => '训练任务环境变量。', + 'example' => 'debug=true', + ], + ], + 'PythonRequirements' => [ + 'description' => '训练任务Python包配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务Python包配置。', + 'type' => 'string', + 'required' => false, + 'example' => 'numpy', + ], + 'required' => false, + ], + 'Priority' => [ + 'description' => '训练任务优先级', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + 'AssignNodeSpec' => [ + 'required' => false, + '$ref' => '#/components/schemas/AssignNodeSpec', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'TrainingJobId' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'example' => 'traineyfz0m2hsfv', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TrainingJobId\\": \\"traineyfz0m2hsfv\\",\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\"\\n}","type":"json"}]', + 'title' => '创建训练任务', + ], + 'CreateInstanceWebTerminal' => [ + 'summary' => '创建进入实例容器链接。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/webterminals', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '199679', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'train1nc6686x36b', + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'description' => '实例ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'train1nc6686x36b-master-0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'WebTerminalId' => [ + 'description' => '进入实例容器的工作台ID。', + 'type' => 'string', + 'example' => 'wss://pai-dlc-proxy-cn-shanghai.aliyun.com/terminal/t1157703270994901/dlcmjzjt1dxbmx4h/dlcmjzjt1dxbmx4h-worker-0?Token=******', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"WebTerminalId\\": \\"wss://pai-dlc-proxy-cn-shanghai.aliyun.com/terminal/t1157703270994901/dlcmjzjt1dxbmx4h/dlcmjzjt1dxbmx4h-worker-0?Token=******\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => '创建进入实例容器链接', + ], + 'CheckInstanceWebTerminal' => [ + 'summary' => '校验进入实例容器链接。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/webterminals/action/check', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '199680', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'traineyfz0m2hsfv', + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'description' => '实例ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'train1oxaqdiluad-master-0', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '校验配置。', + 'type' => 'object', + 'properties' => [ + 'CheckInfo' => [ + 'description' => '校验信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'wss://pai-dlc-proxy-cn-shanghai.aliyun.com/terminal/t1157703270994901/dlcmjzjt1dxbmx4h/dlcmjzjt1dxbmx4h-worker-0?Token=******', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\"\\n}","type":"json"}]', + 'title' => '校验进入实例容器链接', + ], + 'DeleteTrainingJob' => [ + 'summary' => '删除一个训练任务。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '132982', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'train76rcaupa2cz', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '4cc83062-9bcb-4ab3-979e-2e571a35834f', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4cc83062-9bcb-4ab3-979e-2e571a35834f\\"\\n}","type":"json"}]', + 'title' => '删除训练任务', + ], + 'DeleteTrainingJobLabels' => [ + 'summary' => '删除训练任务的标签。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/labels', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '132984', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'trainw52bqlfjbjc', + ], + ], + [ + 'name' => 'Keys', + 'in' => 'query', + 'schema' => [ + 'description' => '标签的键。', + 'type' => 'string', + 'required' => true, + 'example' => 'RootModelID', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => '删除训练任务标签', + ], + 'GetToken' => [ + 'summary' => '获取训练任务分享令牌。', + 'path' => '/api/v1/tokens', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '189411', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'query', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'traincclrt205dcs', + ], + ], + [ + 'name' => 'ExpireTime', + 'in' => 'query', + 'schema' => [ + 'description' => '分享链接过期时间(默认为604800秒),最小值为0。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '60', + ], + ], + ], + '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' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6', + ], + 'Token' => [ + 'description' => '任务分享令牌,可作为API GetJob的参数Token,查看分享的任务的信息。', + 'type' => 'string', + 'example' => 'ql4OU830nJaF17LP6KTry4a9DvnjIXHP', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\",\\n \\"Token\\": \\"ql4OU830nJaF17LP6KTry4a9DvnjIXHP\\"\\n}","type":"json"}]', + 'title' => '获取训练任务分享令牌', + ], + 'GetTrainingJob' => [ + 'summary' => '获取训练任务的详情。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}', + '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' => '132929', + 'abilityTreeNodes' => [ + 'FEATURElearnVYA4L9', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'train129f212o89d', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'OutputChannels' => [ + 'description' => '训练输出数据配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练输出数据配置。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '输出数据名称。', + 'type' => 'string', + 'example' => 'model', + ], + 'OutputUri' => [ + 'description' => '输出数据链接地址。', + 'type' => 'string', + 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/model/', + ], + 'DatasetId' => [ + 'description' => '数据集ID。', + 'type' => 'string', + 'example' => 'd-8o0hh35po15ejcdq2p', + ], + 'VersionName' => [ + 'description' => '数据集版本。', + 'type' => 'string', + 'example' => 'v1', + ], + ], + ], + ], + 'Status' => [ + 'description' => '任务状态。', + 'type' => 'string', + 'example' => 'Running', + ], + 'HyperParameters' => [ + 'description' => '训练超参数配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练超参数配置。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '参数名。', + 'type' => 'string', + 'example' => 'learning_rate', + ], + 'Value' => [ + 'description' => '参数值。', + 'type' => 'string', + 'example' => '0.0001', + ], + ], + ], + ], + 'TrainingJobName' => [ + 'description' => '训练任务名称。', + 'type' => 'string', + 'example' => 'qwen_llm', + ], + 'TrainingJobId' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'example' => 'traini6hhxiq69eo', + ], + 'Scheduler' => [ + 'description' => '训练任务调度配置。', + 'type' => 'object', + 'properties' => [ + 'MaxRunningTimeInSeconds' => [ + 'description' => '最大训练运行时长,单位为秒。数值为0时不限制最大运行时常。', + 'type' => 'string', + 'example' => '0', + ], + 'MaxRunningTimeInMinutes' => [ + 'description' => '最大运行时长(分钟)。', + 'type' => 'string', + 'example' => '100', + ], + ], + ], + 'ReasonMessage' => [ + 'description' => '训练任务错误原因。', + 'type' => 'string', + 'example' => 'None', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '86995', + ], + 'ComputeResource' => [ + 'description' => '计算资源配置。', + 'type' => 'object', + 'properties' => [ + 'EcsCount' => [ + 'description' => 'Ecs实例数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'EcsSpec' => [ + 'description' => 'Ecs型号。', + 'type' => 'string', + 'example' => 'ecs.gn5-c8g1.2xlarge', + ], + 'ResourceId' => [ + 'description' => '资源配额(Quota)ID。', + 'type' => 'string', + 'example' => 'quotam670lixikcl', + ], + 'ResourceName' => [ + 'description' => '资源配额名称。', + 'type' => 'string', + 'example' => 'quota', + ], + 'InstanceCount' => [ + 'description' => '资源配额使用实例数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'InstanceSpec' => [ + 'description' => '资源配额实例配置。', + 'type' => 'object', + 'properties' => [ + 'CPU' => [ + 'description' => '实例CPU核数。', + 'type' => 'string', + 'example' => '8', + ], + 'Memory' => [ + 'description' => '实例内存大小,单位为GiB。', + 'type' => 'string', + 'example' => '32', + ], + 'SharedMemory' => [ + 'description' => '实例共享内存大小,单位为GiB。', + 'type' => 'string', + 'example' => '32', + ], + 'GPU' => [ + 'description' => '实例GPU显卡数量。', + 'type' => 'string', + 'example' => '1', + ], + 'GPUType' => [ + 'description' => '实例GPU显卡型号。', + 'type' => 'string', + 'example' => 'V100', + ], + ], + ], + 'UseSpotInstance' => [ + 'description' => '是否使用抢占式实例。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'SpotSpec' => [ + 'description' => '抢占式实例配置。', + 'type' => 'object', + 'properties' => [ + 'SpotStrategy' => [ + 'description' => 'SpotStrategy: 实例的抢占策略,取值范围:'."\n" + .'- SpotWithPriceLimit:设置上限价格的抢占式实例。'."\n" + .'- SpotAsPriceGo:系统自动出价,跟随当前市场实际价格。', + 'type' => 'string', + 'example' => 'SpotWithPriceLimit', + ], + 'SpotDiscountLimit' => [ + 'description' => '设置实例的每小时最高价格折扣,参数SpotStrategy取值为SpotWithPriceLimit时生效。', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.9', + ], + ], + ], + ], + ], + 'Labels' => [ + 'description' => '训练任务标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务标签。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签名。', + 'type' => 'string', + 'example' => 'CreatedBy', + ], + 'Value' => [ + 'description' => '标签值。', + 'type' => 'string', + 'example' => 'QuickStart', + ], + ], + ], + ], + 'AlgorithmProvider' => [ + 'description' => '算法提供方。', + 'type' => 'string', + 'example' => 'pai', + ], + 'InputChannels' => [ + 'description' => '训练输入数据配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练输入数据配置。', + 'type' => 'object', + 'properties' => [ + 'DatasetId' => [ + 'description' => '数据集ID。', + 'type' => 'string', + 'example' => 'd-475megosidivjfgfq6', + ], + 'Name' => [ + 'description' => '输入数据名称。', + 'type' => 'string', + 'example' => 'model', + ], + 'InputUri' => [ + 'description' => '输入数据链接。', + 'type' => 'string', + 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/model/', + ], + 'Options' => [ + 'description' => '输入数据的文件系统参数。', + 'type' => 'string', + 'example' => 'ossAppendable=true', + ], + 'VersionName' => [ + 'description' => '数据集版本。', + 'type' => 'string', + 'example' => 'v1', + ], + ], + ], + ], + 'AlgorithmName' => [ + 'description' => '算法名。', + 'type' => 'string', + 'example' => 'llm_training', + ], + 'ReasonCode' => [ + 'description' => '训练任务状态码。', + 'type' => 'string', + 'example' => 'TrainingJobSucceed', + ], + 'GmtModifiedTime' => [ + 'description' => '训练任务状态更新时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'StatusTransitions' => [ + 'description' => '训练任务状态变更列表。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务状态变更。', + 'type' => 'object', + 'properties' => [ + 'EndTime' => [ + 'description' => '状态结束时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'ReasonCode' => [ + 'description' => '状态码。', + 'type' => 'string', + 'example' => 'TrainingJobSucceed', + ], + 'ReasonMessage' => [ + 'description' => '状态更新信息。', + 'type' => 'string', + 'example' => 'KubeDL job runs successfully', + ], + 'StartTime' => [ + 'description' => '状态开始时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'Status' => [ + 'description' => '训练任务状态。', + 'type' => 'string', + 'example' => 'Creating', + ], + ], + ], + ], + 'TrainingJobDescription' => [ + 'description' => '训练任务描述。', + 'type' => 'string', + 'example' => 'Qwen2大语言模型训练。', + ], + 'UserId' => [ + 'description' => '用户ID。', + 'type' => 'string', + 'example' => '123456789', + ], + 'AlgorithmVersion' => [ + 'description' => '算法版本。', + 'type' => 'string', + 'example' => 'v0.0.1', + ], + 'LatestMetrics' => [ + 'description' => '训练任务指标列表。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务监控指标。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '指标名。', + 'type' => 'string', + 'example' => 'loss', + ], + 'Timestamp' => [ + 'description' => '指标收集时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'Value' => [ + 'description' => '指标值。', + 'type' => 'number', + 'format' => 'double', + 'example' => '0.11', + ], + ], + ], + ], + 'GmtCreateTime' => [ + 'description' => '训练任务创建时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'Instances' => [ + 'description' => '训练任务实例列表。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务实例。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '实例名。', + 'type' => 'string', + 'example' => 'train1oug3yehan4-master-0', + ], + 'Role' => [ + 'description' => '实例角色。', + 'type' => 'string', + 'example' => 'master', + ], + 'Status' => [ + 'description' => '实例状态。', + 'type' => 'string', + 'example' => 'Succeeded', + ], + ], + ], + ], + 'AlgorithmId' => [ + 'description' => '训练算法ID。', + 'type' => 'string', + 'example' => 'algo-xsldfvu1334', + ], + 'TrainingJobUrl' => [ + 'description' => '训练任务详情地址。', + 'type' => 'string', + 'example' => 'https://pai.console.aliyun.com/?regionId=cn-hangzhou&workspaceId=1234#/training/jobs/train1ouyadsl8n4', + ], + 'RoleArn' => [ + 'description' => '代理授权使用的角色信息。', + 'type' => 'string', + 'example' => 'acs:ram::{accountID}:role/{roleName}', + ], + 'AlgorithmSpec' => [ + 'title' => '临时算法定义。', + 'description' => '临时算法定义。', + '$ref' => '#/components/schemas/AlgorithmSpec', + ], + 'IsTempAlgo' => [ + 'title' => '是否使用了临时算法。', + 'description' => '是否使用了临时算法。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'LatestProgress' => [ + 'description' => '训练任务进度的最新值。', + 'type' => 'object', + 'properties' => [ + 'OverallProgress' => [ + 'description' => '训练任务执行的总体进度。', + 'type' => 'object', + 'properties' => [ + 'Timestamp' => [ + 'description' => '进度时间。', + 'type' => 'string', + 'example' => '2023-07-04T13:20:18Z', + ], + 'Value' => [ + 'description' => '进度值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '0.75', + ], + ], + ], + 'RemainingTime' => [ + 'description' => '训练任务执行的预估剩余时间(单位秒)。', + 'type' => 'object', + 'properties' => [ + 'Timestamp' => [ + 'description' => '进度时间。', + 'type' => 'string', + 'example' => '2023-07-04T13:20:18Z', + ], + 'Value' => [ + 'description' => '剩余时间(单位秒)。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '3600', + ], + ], + ], + ], + ], + 'UserVpc' => [ + 'description' => '用户VPC配置。', + 'type' => 'object', + 'properties' => [ + 'VpcId' => [ + 'description' => 'VPC ID。', + 'type' => 'string', + 'example' => 'vpc-abcdef****', + ], + 'SwitchId' => [ + 'description' => '交换机ID。', + 'type' => 'string', + 'example' => 'vs-abcdef****', + ], + 'SecurityGroupId' => [ + 'description' => '安全组ID。', + 'type' => 'string', + 'example' => 'sg-abcdef****', + ], + 'ExtendedCIDRs' => [ + 'description' => '扩展网段配置。', + 'type' => 'array', + 'items' => [ + 'description' => '扩展网段配置。', + 'type' => 'string', + 'example' => '192.168.0.1/24', + ], + ], + ], + ], + 'OutputModel' => [ + 'description' => '训练任务产出的模型。', + 'type' => 'object', + 'properties' => [ + 'Uri' => [ + 'description' => '模型地址。', + 'type' => 'string', + 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/model/output/', + ], + 'OutputChannelName' => [ + 'description' => '模型对应的OutputChannel名。', + 'type' => 'string', + 'example' => 'model', + ], + ], + ], + 'Settings' => [ + 'description' => '训练任务额外参数配置。', + '$ref' => '#/components/schemas/JobSettings', + ], + 'ExperimentConfig' => [ + 'description' => '训练任务关联实验配置。', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '训练任务关联实验ID。', + 'type' => 'string', + 'example' => 'exp-ds9aefia90v', + ], + 'ExperimentName' => [ + 'description' => '训练任务关联实验名。', + 'type' => 'string', + 'example' => 'large_language_model_train', + ], + ], + ], + 'Duration' => [ + 'description' => '训练任务运行时长。单位:秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '7200', + ], + 'Environments' => [ + 'description' => '训练任务环境变量。', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'description' => '训练任务环境变量。', + 'example' => 'debug=true', + ], + ], + 'PythonRequirements' => [ + 'description' => '训练任务Python包配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务Python包配置。', + 'type' => 'string', + 'example' => 'torch>=2.2.0', + ], + ], + 'Priority' => [ + 'description' => '任务优先级。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + 'AssignNodeSpec' => [ + '$ref' => '#/components/schemas/AssignNodeSpec', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OutputChannels\\": [\\n {\\n \\"Name\\": \\"model\\",\\n \\"OutputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/model/\\",\\n \\"DatasetId\\": \\"d-8o0hh35po15ejcdq2p\\",\\n \\"VersionName\\": \\"v1\\"\\n }\\n ],\\n \\"Status\\": \\"Running\\",\\n \\"HyperParameters\\": [\\n {\\n \\"Name\\": \\"learning_rate\\",\\n \\"Value\\": \\"0.0001\\"\\n }\\n ],\\n \\"TrainingJobName\\": \\"qwen_llm\\",\\n \\"TrainingJobId\\": \\"traini6hhxiq69eo\\",\\n \\"Scheduler\\": {\\n \\"MaxRunningTimeInSeconds\\": \\"0\\",\\n \\"MaxRunningTimeInMinutes\\": \\"100\\"\\n },\\n \\"ReasonMessage\\": \\"None\\",\\n \\"WorkspaceId\\": \\"86995\\",\\n \\"ComputeResource\\": {\\n \\"EcsCount\\": 1,\\n \\"EcsSpec\\": \\"ecs.gn5-c8g1.2xlarge\\",\\n \\"ResourceId\\": \\"quotam670lixikcl\\",\\n \\"ResourceName\\": \\"quota\\",\\n \\"InstanceCount\\": 1,\\n \\"InstanceSpec\\": {\\n \\"CPU\\": \\"8\\",\\n \\"Memory\\": \\"32\\",\\n \\"SharedMemory\\": \\"32\\",\\n \\"GPU\\": \\"1\\",\\n \\"GPUType\\": \\"V100\\"\\n },\\n \\"UseSpotInstance\\": true,\\n \\"SpotSpec\\": {\\n \\"SpotStrategy\\": \\"SpotWithPriceLimit\\",\\n \\"SpotDiscountLimit\\": 0.9\\n }\\n },\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"CreatedBy\\",\\n \\"Value\\": \\"QuickStart\\"\\n }\\n ],\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"InputChannels\\": [\\n {\\n \\"DatasetId\\": \\"d-475megosidivjfgfq6\\",\\n \\"Name\\": \\"model\\",\\n \\"InputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/model/\\",\\n \\"Options\\": \\"ossAppendable=true\\",\\n \\"VersionName\\": \\"v1\\"\\n }\\n ],\\n \\"AlgorithmName\\": \\"llm_training\\",\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"StatusTransitions\\": [\\n {\\n \\"EndTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"ReasonMessage\\": \\"KubeDL job runs successfully\\",\\n \\"StartTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"Status\\": \\"Creating\\"\\n }\\n ],\\n \\"TrainingJobDescription\\": \\"Qwen2大语言模型训练。\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\",\\n \\"LatestMetrics\\": [\\n {\\n \\"Name\\": \\"loss\\",\\n \\"Timestamp\\": \\"2024-07-10T11:49:47Z\\",\\n \\"Value\\": 0.11\\n }\\n ],\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Instances\\": [\\n {\\n \\"Name\\": \\"train1oug3yehan4-master-0\\",\\n \\"Role\\": \\"master\\",\\n \\"Status\\": \\"Succeeded\\"\\n }\\n ],\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"TrainingJobUrl\\": \\"https://pai.console.aliyun.com/?regionId=cn-hangzhou&workspaceId=1234#/training/jobs/train1ouyadsl8n4\\",\\n \\"RoleArn\\": \\"acs:ram::{accountID}:role/{roleName}\\",\\n \\"AlgorithmSpec\\": {\\n \\"OutputChannels\\": [\\n {\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Name\\": \\"\\",\\n \\"SupportedChannelTypes\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"HyperParameters\\": [\\n {\\n \\"DefaultValue\\": \\"\\",\\n \\"Type\\": \\"\\",\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Name\\": \\"\\",\\n \\"Range\\": {\\n \\"Enum\\": [\\n \\"\\"\\n ],\\n \\"MinLength\\": 0,\\n \\"MaxLength\\": 0,\\n \\"Minimum\\": \\"\\",\\n \\"Maximum\\": \\"\\",\\n \\"ExclusiveMinimum\\": true,\\n \\"ExclusiveMaximum\\": true,\\n \\"Pattern\\": \\"\\"\\n },\\n \\"DisplayName\\": \\"\\"\\n }\\n ],\\n \\"JobType\\": \\"\\",\\n \\"Command\\": [\\n \\"\\"\\n ],\\n \\"MetricDefinitions\\": [\\n {\\n \\"Description\\": \\"train dataset oob score\\",\\n \\"Regex\\": \\".*train:oob_score=([-+]?[0-9]*\\\\\\\\\\\\\\\\.?[0-9]+(?:[eE][-+]?[0-9]+)?).*\\",\\n \\"Name\\": \\"train:oob_score\\"\\n }\\n ],\\n \\"InputChannels\\": [\\n {\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Name\\": \\"\\",\\n \\"SupportedChannelTypes\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"SupportsDistributedTraining\\": true,\\n \\"Image\\": \\"\\",\\n \\"SupportedInstanceTypes\\": [\\n \\"\\"\\n ],\\n \\"ComputeResource\\": {\\n \\"Policy\\": {\\n \\"Version\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n },\\n \\"CodeDir\\": {\\n \\"LocationType\\": \\"\\",\\n \\"LocationValue\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"Customization\\": {\\n \\"CodeDir\\": true\\n },\\n \\"ResourceRequirements\\": [\\n {\\n \\"Key\\": \\"SupportedMachineTypes\\",\\n \\"Operator\\": \\"in\\",\\n \\"Values\\": [\\n \\"GPU\\"\\n ]\\n }\\n ],\\n \\"ProgressDefinitions\\": {\\n \\"OverallProgress\\": {\\n \\"Description\\": \\"\\",\\n \\"Regex\\": \\"\\"\\n },\\n \\"RemainingTime\\": {\\n \\"Description\\": \\"\\",\\n \\"Regex\\": \\"\\"\\n }\\n }\\n },\\n \\"IsTempAlgo\\": true,\\n \\"LatestProgress\\": {\\n \\"OverallProgress\\": {\\n \\"Timestamp\\": \\"2023-07-04T13:20:18Z\\",\\n \\"Value\\": 0.75\\n },\\n \\"RemainingTime\\": {\\n \\"Timestamp\\": \\"2023-07-04T13:20:18Z\\",\\n \\"Value\\": 3600\\n }\\n },\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"vpc-abcdef****\\",\\n \\"SwitchId\\": \\"vs-abcdef****\\",\\n \\"SecurityGroupId\\": \\"sg-abcdef****\\",\\n \\"ExtendedCIDRs\\": [\\n \\"192.168.0.1/24\\"\\n ]\\n },\\n \\"OutputModel\\": {\\n \\"Uri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/model/output/\\",\\n \\"OutputChannelName\\": \\"model\\"\\n },\\n \\"Settings\\": {\\n \\"BusinessUserId\\": \\"166924\\",\\n \\"Caller\\": \\"SilkFlow\\",\\n \\"Tags\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"PipelineId\\": \\"pid-123456\\",\\n \\"EnableTideResource\\": true,\\n \\"EnableErrorMonitoringInAIMaster\\": false,\\n \\"ErrorMonitoringArgs\\": \\"--enable-log-hang-detection true\\",\\n \\"EnableRDMA\\": true,\\n \\"EnableOssAppend\\": true,\\n \\"OversoldType\\": \\"AcceptQuotaOverSold\\",\\n \\"AdvancedSettings\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Driver\\": \\"535.54.03\\",\\n \\"EnableSanityCheck\\": true,\\n \\"SanityCheckArgs\\": \\"--sanity-check-timing=AfterJobFaultTolerant --sanity-check-timeout-ops=MarkJobFai\\",\\n \\"JobReservedMinutes\\": 30,\\n \\"JobReservedPolicy\\": \\"Always\\"\\n },\\n \\"ExperimentConfig\\": {\\n \\"ExperimentId\\": \\"exp-ds9aefia90v\\",\\n \\"ExperimentName\\": \\"large_language_model_train\\"\\n },\\n \\"Duration\\": 7200,\\n \\"Environments\\": {\\n \\"key\\": \\"debug=true\\"\\n },\\n \\"PythonRequirements\\": [\\n \\"torch>=2.2.0\\"\\n ],\\n \\"Priority\\": 0,\\n \\"AssignNodeSpec\\": {\\n \\"EnableAssignNode\\": true,\\n \\"NodeNames\\": \\"\\",\\n \\"AntiAffinityNodeNames\\": \\"\\"\\n }\\n}","type":"json"}]', + 'title' => '获取训练任务详情', + ], + 'GetTrainingJobErrorInfo' => [ + 'summary' => '获取训练任务的运行错误信息。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/errorinfo', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '195103', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'traineyfz0m2hsfv', + ], + ], + ], + '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' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'ErrorInfo' => [ + 'description' => '错误信息。', + 'type' => 'object', + 'properties' => [ + 'Code' => [ + 'description' => '错误码。', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'success', + ], + 'AdditionalInfo' => [ + 'description' => '额外信息。', + 'type' => 'string', + 'example' => 'additional info', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"ErrorInfo\\": {\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"AdditionalInfo\\": \\"additional info\\"\\n }\\n}","type":"json"}]', + 'title' => '获取训练任务错误信息', + ], + 'GetTrainingJobLatestMetrics' => [ + 'summary' => '获取TrainingJob最近的Metrics', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/latestmetrics', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '135852', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'train129f212o89d', + ], + ], + [ + 'name' => 'Names', + 'in' => 'query', + 'schema' => [ + 'description' => '指标名。', + 'type' => 'string', + 'required' => false, + 'example' => 'loss', + ], + ], + ], + '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' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + 'Metrics' => [ + 'description' => '指标信息。', + 'type' => 'array', + 'items' => [ + 'description' => '指标信息。', + 'type' => 'object', + 'properties' => [ + 'Timestamp' => [ + 'description' => '指标采集的时间戳。', + 'type' => 'string', + 'format' => 'iso8601', + 'example' => '2022-04-18T22:20:55Z', + ], + 'Value' => [ + 'description' => '指标值。', + 'type' => 'number', + 'format' => 'double', + 'example' => '0.97', + ], + 'Name' => [ + 'description' => '指标名。', + 'type' => 'string', + 'example' => 'loss', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\",\\n \\"Metrics\\": [\\n {\\n \\"Timestamp\\": \\"2022-04-18T22:20:55Z\\",\\n \\"Value\\": 0.97,\\n \\"Name\\": \\"loss\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取训练任务最新指标', + ], + 'ListTrainingJobs' => [ + 'summary' => '获取训练任务列表。', + 'path' => '/api/v1/trainingjobs', + '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' => '132980', + 'abilityTreeNodes' => [ + 'FEATURElearnVYA4L9', + ], + ], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'required' => false, + 'example' => '12345', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询的页码。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'minimum' => '1', + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页大小。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'description' => '结果排序的字段。', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtModifiedTime', + 'enum' => [ + 'GmtModifiedTime', + 'GmtCreateTime', + 'TrainingJobName', + 'AlgorithmName', + 'Status', + ], + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '排序方式,取值:'."\n" + ."\n" + .'- ASC:升序。'."\n" + .'- DESC:降序。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'ASC' => 'ASC', + 'DESC' => 'DESC', + ], + 'example' => 'DESC', + 'enum' => [ + 'desc', + 'asc', + ], + ], + ], + [ + 'name' => 'TrainingJobName', + 'in' => 'query', + 'schema' => [ + 'description' => '训练作业名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'large_language_model_training', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'description' => '训练任务状态。', + 'type' => 'string', + 'required' => false, + 'example' => 'Running', + ], + ], + [ + 'name' => 'TrainingJobId', + 'in' => 'query', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'trains930928remn', + ], + ], + [ + 'name' => 'Labels', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => '训练任务标签。', + 'type' => 'object', + 'required' => false, + 'example' => '{"project": "sd-s3"}', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'description' => '设置查询的作业创建时间的区间的起始时间。默认是7天前。', + 'type' => 'string', + 'required' => false, + 'example' => '2024-06-22T01:00:00Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'description' => '设置查询的作业创建时间的区间的截止时间。默认是当前。', + 'type' => 'string', + 'required' => false, + 'example' => '2023-12-27T02:10:00Z', + ], + ], + [ + 'name' => 'AlgorithmProvider', + 'in' => 'query', + 'schema' => [ + 'description' => '算法提供者。', + 'type' => 'string', + 'required' => false, + 'example' => 'pai', + ], + ], + [ + 'name' => 'AlgorithmName', + 'in' => 'query', + 'schema' => [ + 'description' => '算法名。', + 'type' => 'string', + 'required' => false, + 'example' => 'llm_train', + ], + ], + [ + 'name' => 'IsTempAlgo', + 'in' => 'query', + 'allowEmptyValue' => true, + 'schema' => [ + 'description' => '是否为临时算法。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => [ + 'description' => '训练任务总数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'TrainingJobs' => [ + 'description' => '训练任务详情列表。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务详情。', + 'type' => 'object', + 'properties' => [ + 'AlgorithmName' => [ + 'description' => '算法名。', + 'type' => 'string', + 'example' => 'llm_train', + ], + 'AlgorithmProvider' => [ + 'description' => '算法提供者。', + 'type' => 'string', + 'example' => 'pai', + ], + 'AlgorithmVersion' => [ + 'description' => '算法版本。', + 'type' => 'string', + 'example' => 'v0.0.1', + ], + 'ComputeResource' => [ + 'description' => '计算资源配置。', + 'type' => 'object', + 'properties' => [ + 'EcsCount' => [ + 'description' => 'Ecs实例数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'EcsSpec' => [ + 'description' => 'Ecs实例型号。', + 'type' => 'string', + 'example' => 'ecs.gn5-c8g1.2xlarge', + ], + 'ResourceId' => [ + 'description' => '资源配额ID。', + 'type' => 'string', + 'example' => 'quotam670lixikcl', + ], + 'ResourceName' => [ + 'description' => '资源配额名称。', + 'type' => 'string', + 'example' => 'quota', + ], + 'InstanceCount' => [ + 'description' => '资源配额实例数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'InstanceSpec' => [ + 'description' => '资源配额实例配置。', + 'type' => 'object', + 'properties' => [ + 'CPU' => [ + 'description' => '实例CPU核数。', + 'type' => 'string', + 'example' => '8', + ], + 'Memory' => [ + 'description' => '实例内存大小,单位为GiB。', + 'type' => 'string', + 'example' => '32', + ], + 'SharedMemory' => [ + 'description' => '实例共享内存大小,单位为GiB。', + 'type' => 'string', + 'example' => '32', + ], + 'GPU' => [ + 'description' => '实例GPU显卡数量。', + 'type' => 'string', + 'example' => '1', + ], + 'GPUType' => [ + 'description' => '实例GPU显卡型号。', + 'type' => 'string', + 'example' => 'V100', + ], + ], + ], + ], + ], + 'GmtCreateTime' => [ + 'description' => '训练任务创建时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'GmtModifiedTime' => [ + 'description' => '训练任务状态更新时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'HyperParameters' => [ + 'description' => '训练超参数配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练超参数配置。', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '参数名。', + 'type' => 'string', + 'example' => 'learning_rate', + ], + 'Value' => [ + 'description' => '参数值。', + 'type' => 'string', + 'example' => '0.001', + ], + ], + ], + ], + 'InputChannels' => [ + 'description' => '训练输入数据配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练输入数据配置。', + 'type' => 'object', + 'properties' => [ + 'DatasetId' => [ + 'description' => '数据集ID。', + 'type' => 'string', + 'example' => 'd-475megosidivjfgfq6', + ], + 'InputUri' => [ + 'description' => '输入数据链接。', + 'type' => 'string', + 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/channel/', + ], + 'Name' => [ + 'description' => '输入数据名。', + 'type' => 'string', + 'example' => 'model', + ], + 'VersionName' => [ + 'type' => 'string', + ], + ], + ], + ], + 'Labels' => [ + 'description' => '训练任务标签。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务标签。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签名。', + 'type' => 'string', + 'example' => 'CreatedBy', + ], + 'Value' => [ + 'description' => '标签值。', + 'type' => 'string', + 'example' => 'QuickStart', + ], + ], + ], + ], + 'OutputChannels' => [ + 'description' => '训练输出数据配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练输出数据配置。', + 'type' => 'object', + 'properties' => [ + 'DatasetId' => [ + 'description' => '数据集ID。', + 'type' => 'string', + 'example' => 'd-8o0hh35po15ejcdq2p', + ], + 'Name' => [ + 'description' => '输出数据名。', + 'type' => 'string', + 'example' => 'model', + ], + 'OutputUri' => [ + 'description' => '输出数据地址。', + 'type' => 'string', + 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/channel/', + ], + 'VersionName' => [ + 'type' => 'string', + ], + ], + ], + ], + 'ReasonCode' => [ + 'description' => '训练任务状态码。', + 'type' => 'string', + 'example' => 'TrainingJobSucceed', + ], + 'ReasonMessage' => [ + 'description' => '训练任务错误原因。', + 'type' => 'string', + 'example' => 'None', + ], + 'Scheduler' => [ + 'description' => '训练任务调度配置。', + 'type' => 'object', + 'properties' => [ + 'MaxRunningTimeInSeconds' => [ + 'description' => '最大训练运行时长,单位为秒。数值为0时不限制最大运行时常。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + ], + ], + 'Status' => [ + 'description' => '任务状态。', + 'type' => 'string', + 'example' => 'Running', + ], + 'StatusTransitions' => [ + 'description' => '训练任务状态变更列表。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务状态变更。', + 'type' => 'object', + 'properties' => [ + 'EndTime' => [ + 'description' => '状态结束时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'ReasonCode' => [ + 'description' => '状态码。', + 'type' => 'string', + 'example' => 'TrainingJobSucceed', + ], + 'ReasonMessage' => [ + 'description' => '状态更新信息。', + 'type' => 'string', + 'example' => 'KubeDL job runs successfully', + ], + 'StartTime' => [ + 'description' => '状态开始时间。', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + ], + 'Status' => [ + 'description' => '训练任务状态。', + 'type' => 'string', + 'example' => 'Creating', + ], + ], + ], + ], + 'TrainingJobDescription' => [ + 'description' => '训练任务描述。', + 'type' => 'string', + 'example' => 'Qwen2大语言模型训练。', + ], + 'TrainingJobId' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'example' => 'train1layo6js8ra', + ], + 'TrainingJobName' => [ + 'description' => '训练任务名。', + 'type' => 'string', + 'example' => 'qwen2-7b', + ], + 'UserId' => [ + 'description' => '用户ID。', + 'type' => 'string', + 'example' => '123456789', + ], + 'WorkspaceId' => [ + 'description' => '工作空间ID。', + 'type' => 'string', + 'example' => '1234', + ], + 'RoleArn' => [ + 'description' => '代理授权使用的角色信息。', + 'type' => 'string', + 'example' => 'acs:ram::{accountID}:role/{roleName}', + ], + 'IsTempAlgo' => [ + 'title' => '是否使用了临时算法。', + 'description' => '是否使用了临时算法。', + 'type' => 'boolean', + 'example' => 'true', + ], + 'UserVpc' => [ + 'description' => '用户VPC配置。', + 'type' => 'object', + 'properties' => [ + 'VpcId' => [ + 'description' => 'VPC ID。', + 'type' => 'string', + 'example' => 'vpc-abcdef****', + ], + 'SwitchId' => [ + 'description' => '交换机ID。', + 'type' => 'string', + 'example' => 'vs-abcdef****', + ], + 'SecurityGroupId' => [ + 'description' => '安全组ID。', + 'type' => 'string', + 'example' => 'sg-abcdef****', + ], + 'ExtendedCIDRs' => [ + 'description' => '扩展网段配置。', + 'type' => 'array', + 'items' => [ + 'description' => '扩展网段配置。', + 'type' => 'string', + 'example' => '192.168.0.1/24', + ], + ], + 'DefaultRoute' => [ + 'description' => '默认路由。', + 'type' => 'string', + 'example' => 'eth1', + ], + ], + ], + 'ExperimentConfig' => [ + 'description' => '训练任务关联实验配置。', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '训练任务关联实验ID。', + 'type' => 'string', + 'example' => 'exp-ds9aefia90v', + ], + 'ExperimentName' => [ + 'description' => '训练任务关联实验名。', + 'type' => 'string', + 'example' => 'large_language_model', + ], + ], + ], + 'Environments' => [ + 'description' => '环境变量列表。', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'description' => '环境变量。', + 'example' => 'debug=true', + ], + ], + 'PythonRequirements' => [ + 'description' => '训练任务Python包配置。', + 'type' => 'array', + 'items' => [ + 'description' => '训练任务Python包配置。', + 'type' => 'string', + 'example' => 'torch>=2.2.0', + ], + ], + 'DlcJobId' => [ + 'type' => 'string', + ], + 'AssignNodeSpec' => [ + '$ref' => '#/components/schemas/AssignNodeSpec', + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 10,\\n \\"TrainingJobs\\": [\\n {\\n \\"AlgorithmName\\": \\"llm_train\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\",\\n \\"ComputeResource\\": {\\n \\"EcsCount\\": 1,\\n \\"EcsSpec\\": \\"ecs.gn5-c8g1.2xlarge\\",\\n \\"ResourceId\\": \\"quotam670lixikcl\\",\\n \\"ResourceName\\": \\"quota\\",\\n \\"InstanceCount\\": 1,\\n \\"InstanceSpec\\": {\\n \\"CPU\\": \\"8\\",\\n \\"Memory\\": \\"32\\",\\n \\"SharedMemory\\": \\"32\\",\\n \\"GPU\\": \\"1\\",\\n \\"GPUType\\": \\"V100\\"\\n }\\n },\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"HyperParameters\\": [\\n {\\n \\"Name\\": \\"learning_rate\\",\\n \\"Value\\": \\"0.001\\"\\n }\\n ],\\n \\"InputChannels\\": [\\n {\\n \\"DatasetId\\": \\"d-475megosidivjfgfq6\\",\\n \\"InputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/channel/\\",\\n \\"Name\\": \\"model\\",\\n \\"VersionName\\": \\"\\"\\n }\\n ],\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"CreatedBy\\",\\n \\"Value\\": \\"QuickStart\\"\\n }\\n ],\\n \\"OutputChannels\\": [\\n {\\n \\"DatasetId\\": \\"d-8o0hh35po15ejcdq2p\\",\\n \\"Name\\": \\"model\\",\\n \\"OutputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/channel/\\",\\n \\"VersionName\\": \\"\\"\\n }\\n ],\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"ReasonMessage\\": \\"None\\",\\n \\"Scheduler\\": {\\n \\"MaxRunningTimeInSeconds\\": 0\\n },\\n \\"Status\\": \\"Running\\",\\n \\"StatusTransitions\\": [\\n {\\n \\"EndTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"ReasonMessage\\": \\"KubeDL job runs successfully\\",\\n \\"StartTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"Status\\": \\"Creating\\"\\n }\\n ],\\n \\"TrainingJobDescription\\": \\"Qwen2大语言模型训练。\\",\\n \\"TrainingJobId\\": \\"train1layo6js8ra\\",\\n \\"TrainingJobName\\": \\"qwen2-7b\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"WorkspaceId\\": \\"1234\\",\\n \\"RoleArn\\": \\"acs:ram::{accountID}:role/{roleName}\\",\\n \\"IsTempAlgo\\": true,\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"vpc-abcdef****\\",\\n \\"SwitchId\\": \\"vs-abcdef****\\",\\n \\"SecurityGroupId\\": \\"sg-abcdef****\\",\\n \\"ExtendedCIDRs\\": [\\n \\"192.168.0.1/24\\"\\n ],\\n \\"DefaultRoute\\": \\"eth1\\"\\n },\\n \\"ExperimentConfig\\": {\\n \\"ExperimentId\\": \\"exp-ds9aefia90v\\",\\n \\"ExperimentName\\": \\"large_language_model\\"\\n },\\n \\"Environments\\": {\\n \\"key\\": \\"debug=true\\"\\n },\\n \\"PythonRequirements\\": [\\n \\"torch>=2.2.0\\"\\n ],\\n \\"DlcJobId\\": \\"\\",\\n \\"AssignNodeSpec\\": {\\n \\"EnableAssignNode\\": true,\\n \\"NodeNames\\": \\"\\",\\n \\"AntiAffinityNodeNames\\": \\"\\"\\n }\\n }\\n ],\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => '获取训练任务列表', + ], + 'ListTrainingJobEvents' => [ + 'summary' => '获取指定训练任务的事件,以帮助您详细了解训练过程中的信息。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/events', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '165613', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'traineyfz0m2****', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => [ + 'description' => '页码(默认值为1)。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页大小(默认值为100)。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '2000', + 'minimum' => '1', + 'example' => '100', + 'default' => '100', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'title' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间', + 'description' => '起始UTC时间(iso8601格式),为空则为任务开始时间。', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间', + 'description' => '截止UTC时间(iso8601格式),为空则为当前时间。', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求ID', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'TotalCount' => [ + 'title' => '符合过滤条件的日志数量', + 'description' => '事件总数。', + 'type' => 'string', + 'example' => '23', + ], + 'Events' => [ + 'title' => '日志列表', + 'description' => '事件列表。', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '事件。', + 'type' => 'string', + 'example' => 'UserEvent', + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": \\"23\\",\\n \\"Events\\": [\\n \\"UserEvent\\"\\n ]\\n}","type":"json"}]', + 'title' => '获取训练任务事件', + ], + 'ListTrainingJobInstanceEvents' => [ + 'summary' => '获取训练任务实例对应的事件。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/events', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '165612', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'train76rcaupa2cz', + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'allowEmptyValue' => false, + 'schema' => [ + 'description' => '实例ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'train76rcaupa2cz-master-0', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页大小。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '2000', + 'minimum' => '1', + 'example' => '100', + 'default' => '100', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'title' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间', + 'description' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间。', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间', + 'description' => '截止UTC时间,格式 iso8601,假如为空是当前时间。', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求ID', + 'description' => '请求ID', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'TotalCount' => [ + 'title' => '符合过滤条件的日志数量', + 'description' => '事件数量。', + 'type' => 'string', + 'example' => '1', + ], + 'Events' => [ + 'title' => '日志列表', + 'description' => '事件列表。', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '事件信息。', + 'type' => 'string', + 'example' => 'You are using pip version 9.0.1, however version 20.2.4 is available.', + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": \\"1\\",\\n \\"Events\\": [\\n \\"You are using pip version 9.0.1, however version 20.2.4 is available.\\"\\n ]\\n}","type":"json"}]', + 'title' => '获取训练任务实例事件', + ], + 'ListTrainingJobInstanceMetrics' => [ + 'summary' => '获取训练任务实例的监控指标。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instancemetrics', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '157749', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'title' => 'Training Job Id', + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'trains930928remn', + ], + ], + [ + 'name' => 'MetricType', + 'in' => 'query', + 'schema' => [ + 'title' => '分页,从1开始,默认1', + 'description' => '指标类型:'."\n" + .'- GpuCoreUsage:POD GPU使用率'."\n" + .'- GpuMemoryUsage:POD GPU Memory使用率'."\n" + .'- CpuCoreUsage:POD CPU使用率'."\n" + .'- MemoryUsage:POD Memory使用率'."\n" + .'- NetworkInputRate:POD 网络写入速率 (TCPIP) (MB/s)'."\n" + .'- NetworkOutputRate:POD 网络写出速率 (TCPIP) (MB/s)'."\n" + .'- DiskReadRate:POD 磁盘读取速率 (MB/s)'."\n" + .'- DiskWriteRate:POD 磁盘写入速率 (MB/s)', + 'type' => 'string', + 'required' => true, + 'example' => 'GpuCoreUsage', + ], + ], + [ + 'name' => 'TimeStep', + 'in' => 'query', + 'schema' => [ + 'description' => '时间间隔,可选值:'."\n" + .'1h 30m 5m 10s', + 'type' => 'string', + 'required' => false, + 'example' => '10s', + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'query', + 'schema' => [ + 'description' => '实例ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'trains930928remn-master-0', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'title' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间', + 'description' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间。', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间', + 'description' => '截止UTC时间,格式 iso8601,假如为空是当前时间。', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + ], + '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' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + 'InstanceMetrics' => [ + 'title' => '符合过滤条件的Metrics数量', + 'description' => '所有符合过滤条件的监控指标列表。', + 'type' => 'array', + 'items' => [ + 'description' => '符合过滤条件的监控指标。', + 'type' => 'object', + 'properties' => [ + 'InstanceId' => [ + 'description' => '实例ID。', + 'type' => 'string', + 'example' => 'trainkxen7qjyg6y-master-0', + ], + 'Metrics' => [ + 'description' => '实例监控指标列表。', + 'type' => 'array', + 'items' => [ + 'description' => '实例监控指标。', + 'type' => 'object', + 'properties' => [ + 'Time' => [ + 'description' => 'UTC时间,格式 iso8601。', + 'type' => 'string', + 'example' => '2020-11-08T16:00:00Z', + ], + 'Value' => [ + 'description' => '指标值。', + 'type' => 'number', + 'format' => 'double', + 'example' => '1', + ], + ], + ], + ], + 'NodeName' => [ + 'description' => '节点名称。', + 'type' => 'string', + 'example' => 'trains930928remn-master-0', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"InstanceMetrics\\": [\\n {\\n \\"InstanceId\\": \\"trainkxen7qjyg6y-master-0\\",\\n \\"Metrics\\": [\\n {\\n \\"Time\\": \\"2020-11-08T16:00:00Z\\",\\n \\"Value\\": 1\\n }\\n ],\\n \\"NodeName\\": \\"trains930928remn-master-0\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取训练任务实例监控指标', + ], + 'ListTrainingJobLogs' => [ + 'summary' => '获取训练任务的日志。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/logs', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'train129f212o89d', + ], + ], + [ + 'name' => 'WorkerId', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => [ + 'description' => '训练任务的实例ID,已废弃,用InstanceId代替。', + 'type' => 'string', + 'required' => false, + 'example' => 'train129f212o89d-master-0', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页大小。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '2000', + 'minimum' => '1', + 'example' => '100', + 'default' => '100', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'title' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间', + 'description' => '起始UTC时间,格式 iso8601,如果为空是任务开始时间', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间', + 'description' => '截止UTC时间,格式 iso8601,如果为空是当前时间', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'query', + 'schema' => [ + 'description' => '实例ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'train129f212o89d-master-0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求ID', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'CBF05F13-B24C-5129-9048-4FA684DCD579', + ], + 'TotalCount' => [ + 'title' => '符合过滤条件的日志数量', + 'description' => '符合过滤条件的日志数量。', + 'type' => 'string', + 'example' => '23', + ], + 'Logs' => [ + 'title' => '日志列表', + 'description' => '日志列表。', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '日志行内容。', + 'type' => 'string', + 'example' => 'loss: 0.0001', + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CBF05F13-B24C-5129-9048-4FA684DCD579\\",\\n \\"TotalCount\\": \\"23\\",\\n \\"Logs\\": [\\n \\"loss: 0.0001\\"\\n ]\\n}","type":"json"}]', + 'title' => '获取训练任务的日志', + ], + 'ListTrainingJobMetrics' => [ + 'summary' => '获取训练任务的监控数据。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/metrics', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '132913', + 'abilityTreeNodes' => [ + 'FEATURElearnP1X97H', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'title' => 'Training Job Id', + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'train76rcaupa2cz', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => '分页,从1开始,默认1', + 'description' => '指标名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'accuracy', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '每页返回的日志数量', + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '每页返回的日志数量', + 'description' => '分页的大小。', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '100', + 'default' => '100', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'title' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间', + 'description' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间', + 'description' => '截止UTC时间,格式 iso8601,假如为空是当前时间', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => 'Metrics的时间顺序,有ASC和DESC', + 'description' => '指标返回的时间顺序,ASC或者DESC。', + 'type' => 'string', + 'required' => false, + 'example' => 'DESC', + 'default' => 'DESC', + ], + ], + ], + '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' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'Metrics' => [ + 'title' => '符合过滤条件的Metrics数量', + 'description' => '指标列表。', + 'type' => 'array', + 'items' => [ + 'description' => '指标信息。', + 'type' => 'object', + 'properties' => [ + 'Timestamp' => [ + 'description' => '指标采集的时间戳。', + 'type' => 'string', + 'format' => 'iso8601', + 'example' => '2022-04-18T22:20:55Z', + ], + 'Value' => [ + 'description' => '指标值。', + 'type' => 'number', + 'format' => 'double', + 'example' => '0.97', + ], + 'Name' => [ + 'title' => 'Metrics名称', + 'description' => '指标名。', + 'type' => 'string', + 'example' => 'accuracy', + ], + ], + ], + ], + 'TotalCount' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Metrics\\": [\\n {\\n \\"Timestamp\\": \\"2022-04-18T22:20:55Z\\",\\n \\"Value\\": 0.97,\\n \\"Name\\": \\"accuracy\\"\\n }\\n ],\\n \\"TotalCount\\": 0\\n}","type":"json"}]', + 'title' => '获取训练任务指标', + ], + 'ListTrainingJobOutputModels' => [ + 'summary' => '获取训练任务产出的模型信息。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/outputmodels', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '200236', + 'abilityTreeNodes' => [ + 'FEATURElearn9XMQIJ', + ], + ], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'title' => 'A short description of struct', + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'traineyfz0m2hsfv', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'OutputModels' => [ + 'description' => '训练产出模型列表。', + 'type' => 'array', + 'items' => [ + 'description' => '训练产出模型。', + 'type' => 'object', + 'properties' => [ + 'OutputChannelName' => [ + 'description' => '训练输出数据名。', + 'type' => 'string', + 'example' => 'model', + ], + 'Uri' => [ + 'description' => '训练输出数据链接。', + 'type' => 'string', + 'example' => 'oss://test-bucket.oss-cn-hangzhou.aliyuncs.com/path/to/output/channel/', + ], + 'Labels' => [ + 'description' => '标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签名。', + 'type' => 'string', + 'example' => 'RootModelName', + ], + 'Value' => [ + 'description' => '标签值。', + 'type' => 'string', + 'example' => 'qwen2-0.5', + ], + ], + ], + ], + 'Metrics' => [ + 'description' => '训练任务指标。', + 'type' => 'object', + 'example' => '{'."\n" + .' "Results": ['."\n" + .' {'."\n" + .' "Dataset": {'."\n" + .' "Train": "oss://somebucket.oss-cn-hangzhou.aliyuncs.com/datasets/Chinese-medical-dialogue-data/chinese_medical_train_sampled.json"'."\n" + .' },'."\n" + .' "Metrics": {'."\n" + .' "loss": 2.1276'."\n" + .' }'."\n" + .' }'."\n" + .' ]'."\n" + .'}', + ], + 'TrainingSpec' => [ + 'description' => '模型训练配置。', + 'type' => 'object', + 'example' => '{}', + ], + 'InferenceSpec' => [ + 'description' => '模型推理配置。', + 'type' => 'object', + 'example' => '{}', + ], + 'EvaluationSpec' => [ + 'description' => '模型评测配置。', + 'type' => 'object', + 'example' => '{}', + ], + 'SourceType' => [ + 'description' => '来源(模型是从什么任务产生的)默认:Custom。', + 'type' => 'string', + 'example' => 'PAIFlow', + ], + 'SourceId' => [ + 'description' => '来源ID,非必填:'."\n" + .'- 来源为Custom,格式无要求。'."\n" + .'- 来源若为PAIFlow,要求格式为region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf。'."\n" + .'- 来源若为TrainingService,要求格式为region=cn-shanghai,workspaceId=1345,kind=TrainingJob,id=job-sakdbaskjdf。', + 'type' => 'string', + 'example' => 'region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf', + ], + 'CompressionSpec' => [ + 'description' => '模型压缩配置。', + 'type' => 'object', + 'example' => '{}', + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OutputModels\\": [\\n {\\n \\"OutputChannelName\\": \\"model\\",\\n \\"Uri\\": \\"oss://test-bucket.oss-cn-hangzhou.aliyuncs.com/path/to/output/channel/\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"RootModelName\\",\\n \\"Value\\": \\"qwen2-0.5\\"\\n }\\n ],\\n \\"Metrics\\": {\\n \\"Results\\": [\\n {\\n \\"Dataset\\": {\\n \\"Train\\": \\"oss://somebucket.oss-cn-hangzhou.aliyuncs.com/datasets/Chinese-medical-dialogue-data/chinese_medical_train_sampled.json\\"\\n },\\n \\"Metrics\\": {\\n \\"loss\\": 2.1276\\n }\\n }\\n ]\\n },\\n \\"TrainingSpec\\": {},\\n \\"InferenceSpec\\": {},\\n \\"EvaluationSpec\\": {},\\n \\"SourceType\\": \\"PAIFlow\\",\\n \\"SourceId\\": \\"region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf\\",\\n \\"CompressionSpec\\": {}\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取训练任务产出模型', + ], + 'StopTrainingJob' => [ + 'summary' => '停止一个训练任务。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/stop', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'train76rcaupa2cz', + ], + ], + ], + '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' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => '停止训练任务', + ], + 'UpdateTrainingJobLabels' => [ + 'summary' => '更新训练任务的标签。', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/labels', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求body参数。', + 'type' => 'object', + 'properties' => [ + 'Labels' => [ + 'description' => '标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => '标签键。', + 'type' => 'string', + 'required' => false, + 'example' => 'RootModelID', + ], + 'Value' => [ + 'description' => '标签值。', + 'type' => 'string', + 'required' => false, + 'example' => 'model-ad8cv770kl', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '训练任务ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'train76rcaupa2cz', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\"\\n}","type":"json"}]', + 'title' => '更新训练任务标签', + ], + 'CreateQuota' => [ + 'summary' => '您可以通过CreateQuota接口创建一个资源配额。', + 'path' => '/api/v1/quotas', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '191129', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求体参数。', + 'type' => 'object', + 'properties' => [ + 'QuotaName' => [ + 'title' => 'Quota名称', + 'description' => 'Quota名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'test-quota', + ], + 'ResourceType' => [ + 'title' => 'Quota资源类型(Lingjun/ECS),默认值ECS', + 'description' => 'Quota资源类型(Lingjun/ECS/ACS),默认值ECS。', + 'type' => 'string', + 'required' => false, + 'example' => 'ECS', + ], + 'ParentQuotaId' => [ + 'title' => '父QuotaId'."\n" + .'1. 如果父QuotaId为空,表示创建一个根Quota,从专属资源组中分配机器'."\n" + .'2. 如果父QuotaId不为空,表示创建一个子Quota,资源从根Quota中绑定的Nodes中分配资源', + 'description' => '父QuotaId:'."\n" + .'- 如果父QuotaId为空,表示创建一个根Quota,从专属资源组中分配机器。'."\n" + .'- 如果父QuotaId不为空,表示创建一个子Quota,资源从根Quota中绑定的Nodes中分配资源。', + 'type' => 'string', + 'required' => false, + 'example' => 'quota1ci8g793pgm', + ], + 'ResourceGroupIds' => [ + 'title' => '专有资源组列表'."\n" + .'约束:'."\n" + .'1. 只有根Quota允许从(父QuotaId为空)资源组划分机器'."\n" + .'2. 指定的资源组列表中的vpc配置需要一致', + 'description' => '专有资源组列表。约束如下:'."\n" + .'- 只有根Quota允许从(父QuotaId为空)资源组划分机器。'."\n" + .'- 指定的资源组列表中的VPC配置需要一致。', + 'type' => 'array', + 'items' => [ + 'description' => '资源组ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'rgl593id9qqwkmbr', + ], + 'required' => false, + ], + 'AllocateStrategy' => [ + 'title' => 'Quota分配策略,目前仅支持ByNodeSpecs', + 'description' => 'Quota分配策略,目前仅支持ByNodeSpecs。', + 'type' => 'string', + 'required' => false, + 'example' => 'ByNodeSpecs', + ], + 'Min' => [ + 'description' => 'Min Quota配置。其中:'."\n" + .'- ResourceAmount:指定CPU/Memory/GPUDetails。'."\n" + .'- NodeSpecs:指定机器规格和数量。'."\n" + ."\n" + .'约束:'."\n" + .'- 若该Quota从专有资源组划分资源,只允许NodeSpec策略。'."\n" + .'- 若该Quota从父Quota划分资源,允许两种划分策略,但所有子Quota的只允许同一种划分策略。'."\n" + .'- Quota内所有GPU规格要求卡型相同。'."\n" + .'- 资源类型为ECS/Lingjun的资源配额只可以使用NodeSpecs方式。', + 'required' => false, + '$ref' => '#/components/schemas/ResourceSpec', + ], + 'Description' => [ + 'title' => 'Quota描述', + 'description' => 'Quota描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'this is a test quota', + ], + 'Labels' => [ + 'title' => 'Quota标签', + 'description' => 'Quota标签。', + 'type' => 'array', + 'items' => [ + 'description' => '标签。', + 'required' => false, + '$ref' => '#/components/schemas/Label', + ], + 'required' => false, + ], + 'QuotaConfig' => [ + 'description' => 'QuotaConfig 配置约束:'."\n" + .'- 使用ECS/Lingjun资源类型时,该配置不生效。'."\n" + .'- 使用ACS资源类型时,用户VPC信息以及ACS配置生效。', + 'required' => false, + '$ref' => '#/components/schemas/QuotaConfig', + ], + 'QueueStrategy' => [ + 'description' => '共支持4种Quota上的排队策略。'."\n" + ."\n" + .'- PaiStrategyIntelligent:智能策略。'."\n" + .'- PaiStrategyBalance:均衡策略。'."\n" + .'- PaiStrategyRoundRobin:资源优先策略。'."\n" + .'- PaiStrategyStrictFIFO:FIFO策略。', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStrategyIntelligent', + ], + 'ClusterSpec' => [ + 'title' => '资源配额原生集群的规格', + 'required' => false, + '$ref' => '#/components/schemas/ClusterSpec', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'CBF05F13-B24C-5129-9048-4FA684DCD579', + ], + 'QuotaId' => [ + 'title' => 'Quota Id', + 'description' => '资源配额ID。', + 'type' => 'string', + 'example' => 'quotad2kd8ljpsno', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CBF05F13-B24C-5129-9048-4FA684DCD579\\",\\n \\"QuotaId\\": \\"quotad2kd8ljpsno\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateQuotaResponse>\\n <QuotaId>quotad2kd8ljpsno</QuotaId>\\n</CreateQuotaResponse>","errorExample":""}]', + 'title' => '创建资源配额', + ], + 'ListQuotas' => [ + 'summary' => '您可以通过ListQuotas获取资源配额列表。', + 'path' => '/api/v1/quotas/', + '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' => '191173', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + 'FEATURElearnCMM1R7', + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'QuotaName', + 'in' => 'query', + 'schema' => [ + 'description' => '按照QuotaName过滤,支持模糊匹配。', + 'type' => 'string', + 'required' => false, + 'example' => 'quotajradxh43rgb', + ], + ], + [ + 'name' => 'ResourceType', + 'in' => 'query', + 'schema' => [ + 'description' => 'Quota资源类型(Lingjun/ECS/ACS),默认值ECS。', + 'type' => 'string', + 'required' => false, + 'example' => 'ECS', + ], + ], + [ + 'name' => 'LayoutMode', + 'in' => 'query', + 'schema' => [ + 'description' => '展示方式,可以为树形或列表', + 'type' => 'string', + 'required' => false, + 'example' => 'Tree', + ], + ], + [ + 'name' => 'ParentQuotaId', + 'in' => 'query', + 'schema' => [ + 'description' => '按ParentQuotaId过滤:'."\n" + ."\n" + .'- 不传,列出租户下所有Quota,包含根Quota和子Quota。'."\n" + ."\n" + .'- 传空,列出所有的根Quota。'."\n" + ."\n" + .'- 传非空,列出指定ParentQuotaId的所有子Quota。', + 'type' => 'string', + 'required' => false, + 'example' => 'quotajradxh43rgb', + ], + ], + [ + 'name' => 'QuotaIds', + 'in' => 'query', + 'schema' => [ + 'description' => '逗号分隔,按QuotaIds过滤,只支持精确匹配,最多同时支持100个。', + 'type' => 'string', + 'required' => false, + 'example' => 'quota1ci8g793pgm,quotajradxh43rgb', + ], + ], + [ + 'name' => 'WorkspaceIds', + 'in' => 'query', + 'schema' => [ + 'description' => '逗号分隔,按WorkspaceIds过滤,只支持精确匹配,最多同时支持10个。', + 'type' => 'string', + 'required' => false, + 'example' => '21345,38727', + ], + ], + [ + 'name' => 'Statuses', + 'in' => 'query', + 'schema' => [ + 'description' => '逗号分隔按照Quota Statuses过滤,只支持精确匹配。', + 'type' => 'string', + 'required' => false, + 'example' => 'Creating', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '查询第几页数据,最小值为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '设置查询的分页大小,最小值为1。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '20', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'description' => '返回结果的排序字段名,枚举值:'."\n" + ."\n" + .'- QuotaName'."\n" + ."\n" + .'- Status'."\n" + ."\n" + .'- CPU'."\n" + ."\n" + .'- Memory'."\n" + ."\n" + .'- GPU'."\n" + ."\n" + .'- GmtCreatedTime'."\n" + ."\n" + .'- GmtModifiedTime', + 'type' => 'string', + 'required' => false, + 'example' => 'status', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '排列顺序:desc或者asc。', + 'type' => 'string', + 'required' => false, + 'example' => 'desc', + ], + ], + [ + 'name' => 'Labels', + 'in' => 'query', + 'schema' => [ + 'description' => '按照Label的key和value进行过滤,多个标签使用半角逗号(,)分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'official=true,gpu=false', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'description' => '是否显示详情。取值如下:'."\n" + .'- true:显示详情。'."\n" + .'- false:不显示详情。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'WorkspaceName', + 'in' => 'query', + 'schema' => [ + 'description' => '所关联的工作空间名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'myshellprod', + ], + ], + [ + 'name' => 'HasResource', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'Versions', + 'in' => 'query', + 'schema' => [ + 'title' => '按照版本信息搜索。', + 'description' => '按照版本信息搜索。', + 'type' => 'string', + 'required' => false, + 'example' => '1.0', + ], + ], + [ + 'name' => 'ClusterType', + 'in' => 'query', + 'schema' => [ + 'title' => '集群类型', + 'description' => '集群类型', + 'type' => 'string', + 'required' => false, + 'example' => 'RayCluster', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + 'Quotas' => [ + 'description' => '资源配额列表。', + 'type' => 'array', + 'items' => [ + 'description' => '单个资源配额详情。', + '$ref' => '#/components/schemas/Quota', + ], + ], + 'TotalCount' => [ + 'description' => '总记录数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '23', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"Quotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\",\\n \\"ResourceType\\": \\"\\",\\n \\"ParentQuotaId\\": \\"\\",\\n \\"ResourceGroupIds\\": [\\n \\"\\"\\n ],\\n \\"AllocateStrategy\\": \\"\\",\\n \\"Min\\": {\\n \\"NodeSpecs\\": [\\n {\\n \\"Type\\": \\"ecs.g6.4xlarge\\",\\n \\"Count\\": 10,\\n \\"BindingPolicy\\": {\\n \\"NodeSpecCount\\": 5,\\n \\"IncludeNodes\\": [\\n \\"lrnabc\\"\\n ],\\n \\"ExcludeNodes\\": [\\n \\"lrndef\\"\\n ]\\n },\\n \\"HyperType\\": \\"\\"\\n }\\n ]\\n },\\n \\"Description\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"CreatorId\\": \\"\\",\\n \\"LatestOperationId\\": \\"\\",\\n \\"Status\\": \\"\\",\\n \\"ReasonCode\\": \\"\\",\\n \\"ReasonMessage\\": \\"\\",\\n \\"GmtCreatedTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"QuotaDetails\\": {\\n \\"DesiredMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"ActualMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"RequestedQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n }\\n },\\n \\"QuotaConfig\\": {\\n \\"SupportRDMA\\": false,\\n \\"ClusterId\\": \\"ceeb37xxxx\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"\\",\\n \\"SwitchId\\": \\"\\",\\n \\"SecurityGroupId\\": \\"\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\"\\n ],\\n \\"RoleArn\\": \\"\\",\\n \\"DefaultRoute\\": \\"\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"\\",\\n \\"EipAllocationId\\": \\"\\"\\n }\\n },\\n \\"SupportGPUDrivers\\": [\\n \\"\\"\\n ],\\n \\"DefaultGPUDriver\\": \\"470.199.02\\",\\n \\"ACS\\": {\\n \\"ACSQuotaId\\": \\"\\",\\n \\"AssociatedProducts\\": [\\n \\"\\"\\n ]\\n },\\n \\"ResourceSpecs\\": [\\n {\\n \\"WorkspaceId\\": \\"\\",\\n \\"Product\\": \\"\\",\\n \\"Specs\\": [\\n {\\n \\"SpecName\\": \\"\\",\\n \\"IsGuaranteedValid\\": true,\\n \\"IsOverSoldValid\\": true,\\n \\"CodeType\\": \\"\\",\\n \\"Code\\": \\"\\",\\n \\"Reason\\": \\"\\"\\n }\\n ]\\n }\\n ],\\n \\"EnablePreemptSubquotaWorkloads\\": true,\\n \\"EnableSubQuotaPreemption\\": true,\\n \\"SubQuotaPreemptionConfig\\": {\\n \\"PreemptedPriorityUpperBound\\": 9,\\n \\"PreemptedProducts\\": [\\n \\"dlc\\"\\n ]\\n },\\n \\"EnableGPUShare\\": true,\\n \\"OversoldUsageConfig\\": {\\n \\"DisabledBy\\": \\"\\",\\n \\"Disabled\\": true\\n },\\n \\"SelfQuotaPreemptionConfig\\": {\\n \\"PreemptedPriorities\\": [\\n 0\\n ],\\n \\"PreemptedProducts\\": [\\n \\"\\"\\n ],\\n \\"PreemptorPriorities\\": [\\n 0\\n ]\\n },\\n \\"EniCacheConfig\\": {\\n \\"Enabled\\": true,\\n \\"CachePoolSize\\": 0\\n },\\n \\"SandboxCacheConfig\\": {\\n \\"Enabled\\": true\\n },\\n \\"UseCase\\": \\"\\",\\n \\"EnableSelfQuotaPreemption\\": true,\\n \\"ControlPlaneClusterId\\": \\"\\"\\n },\\n \\"Workspaces\\": [\\n {\\n \\"WorkspaceId\\": \\"ws123456\\"\\n }\\n ],\\n \\"SubQuotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\"\\n }\\n ],\\n \\"QueueStrategy\\": \\"\\",\\n \\"Version\\": \\"\\",\\n \\"HyperZones\\": [\\n \\"\\"\\n ],\\n \\"QuotaCluster\\": {\\n \\"ClusterType\\": \\"\\",\\n \\"Image\\": \\"\\",\\n \\"DataSources\\": [\\n {\\n \\"DataSourceId\\": \\"\\",\\n \\"MountPath\\": \\"\\",\\n \\"Uri\\": \\"\\"\\n }\\n ],\\n \\"Endpoints\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"Status\\": \\"\\"\\n }\\n }\\n ],\\n \\"TotalCount\\": 23\\n}","type":"json"}]', + 'title' => '获取资源配额列表', + ], + 'GetQuota' => [ + 'summary' => '您可以通过GetQuota获取一个资源配额详情,以了解当前资源使用情况,方便进行资源管理和规划。', + 'path' => '/api/v1/quotas/{QuotaId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '191160', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'QuotaId', + 'in' => 'path', + 'schema' => [ + 'description' => '获取详细信息的Quota identifier。', + 'type' => 'string', + 'required' => false, + 'example' => 'quota1ci8g79****', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'description' => '是否显示详细信息。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'WithNodeMeta', + 'in' => 'query', + 'schema' => [ + 'title' => '是否返回绑定到Quota的节点meta信息', + 'description' => '是否返回绑定到Quota的节点meta信息', + 'type' => 'boolean', + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回内容。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + 'QuotaId' => [ + 'title' => 'Quota Id', + 'description' => '资源配额ID。', + 'type' => 'string', + 'example' => 'quotajradxh4****', + ], + 'QuotaName' => [ + 'title' => 'Quota名称', + 'description' => '资源配额名称。', + 'type' => 'string', + 'example' => 'test-quota', + ], + 'ResourceType' => [ + 'title' => 'Quota资源类型', + 'description' => 'Quota资源类型。', + 'type' => 'string', + 'example' => 'ECS', + ], + 'ParentQuotaId' => [ + 'title' => '父Quota Id', + 'description' => '父Quota ID。', + 'type' => 'string', + 'example' => 'quota1ci8g79****', + ], + 'ResourceGroupIds' => [ + 'description' => '资源配额对应的资源组信息。', + 'type' => 'array', + 'items' => [ + 'description' => '资源组ID。', + 'type' => 'string', + 'example' => 'rg69rj0leslw****', + ], + ], + 'AllocateStrategy' => [ + 'title' => '资源分配策略', + 'description' => '资源分配策略。', + 'type' => 'string', + 'example' => 'ByNodeSpec', + ], + 'Min' => [ + 'description' => 'Min Quota配置。', + '$ref' => '#/components/schemas/ResourceSpec', + ], + 'Description' => [ + 'title' => 'Quota描述', + 'description' => 'Quota描述。', + 'type' => 'string', + 'example' => 'this is a test quota', + ], + 'Labels' => [ + 'title' => 'Quota标签', + 'description' => 'Quota标签。', + 'type' => 'array', + 'items' => [ + 'description' => 'label key value对。', + '$ref' => '#/components/schemas/Label', + ], + ], + 'CreatorId' => [ + 'title' => 'Quota创建人Id', + 'description' => 'Quota创建人ID。', + 'type' => 'string', + 'example' => '1884692****', + ], + 'LatestOperationId' => [ + 'title' => 'Quota最近变更Id', + 'description' => 'Quota最近变更ID。', + 'type' => 'string', + 'example' => 'operation****', + ], + 'Status' => [ + 'title' => 'Quota状态', + 'description' => 'Quota状态。', + 'type' => 'string', + 'example' => 'Ready', + ], + 'ReasonCode' => [ + 'title' => '错误码', + 'description' => '错误码。', + 'type' => 'string', + 'example' => '“”', + ], + 'ReasonMessage' => [ + 'title' => '错误原因', + 'description' => '错误原因。', + 'type' => 'string', + 'example' => '“”', + ], + 'GmtCreatedTime' => [ + 'title' => 'Quota创建时间', + 'description' => 'Quota创建时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'GmtModifiedTime' => [ + 'title' => 'Quota修改时间', + 'description' => 'Quota修改时间。', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'QuotaDetails' => [ + 'title' => 'Quota详情', + 'description' => 'Quota的详情。', + '$ref' => '#/components/schemas/QuotaDetails', + ], + 'QuotaConfig' => [ + 'description' => 'Quota对应配置:'."\n" + ."\n" + .'- VPC信息'."\n" + ."\n" + .'- 是否支持RDMA'."\n" + ."\n" + .'- ACS对应配置(若资源类型为ACS生效)', + '$ref' => '#/components/schemas/QuotaConfig', + ], + 'Workspaces' => [ + 'title' => 'Quota关联的工作空间', + 'description' => 'Quota关联的工作空间。', + 'type' => 'array', + 'items' => [ + 'description' => '所关联的工作空间信息。', + '$ref' => '#/components/schemas/WorkspaceIdName', + ], + ], + 'SubQuotas' => [ + 'title' => 'Quota的子Quota列表', + 'description' => 'Quota的子Quota列表。', + 'type' => 'array', + 'items' => [ + 'description' => '包含的子Quota的ID。', + '$ref' => '#/components/schemas/QuotaIdName', + ], + ], + 'QueueStrategy' => [ + 'description' => 'Quota上任务的排队策略。', + 'type' => 'string', + 'example' => 'PaiStrategyIntelligent', + ], + 'Version' => [ + 'title' => '版本信息。当resource type为ECS时生效。', + 'description' => '版本信息。当resource type为ECS时生效。', + 'type' => 'string', + 'example' => '1.0', + ], + 'HyperZones' => [ + 'title' => '高性能网络区列表', + 'description' => '高性能网络区列表', + 'type' => 'array', + 'items' => [ + 'title' => '高性能网络区ID', + 'description' => '高性能网络区ID', + 'type' => 'string', + 'example' => 'A3', + ], + ], + 'QuotaCluster' => [ + 'title' => '由配额内资源组成的集群规格与状态', + 'description' => '由配额内资源组成的集群规格与状态', + '$ref' => '#/components/schemas/QuotaCluster', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\",\\n \\"QuotaId\\": \\"quotajradxh4****\\",\\n \\"QuotaName\\": \\"test-quota\\",\\n \\"ResourceType\\": \\"ECS\\",\\n \\"ParentQuotaId\\": \\"quota1ci8g79****\\",\\n \\"ResourceGroupIds\\": [\\n \\"rg69rj0leslw****\\"\\n ],\\n \\"AllocateStrategy\\": \\"ByNodeSpec\\",\\n \\"Min\\": {\\n \\"NodeSpecs\\": [\\n {\\n \\"Type\\": \\"ecs.g6.4xlarge\\",\\n \\"Count\\": 10,\\n \\"BindingPolicy\\": {\\n \\"NodeSpecCount\\": 5,\\n \\"IncludeNodes\\": [\\n \\"lrnabc\\"\\n ],\\n \\"ExcludeNodes\\": [\\n \\"lrndef\\"\\n ]\\n },\\n \\"HyperType\\": \\"\\"\\n }\\n ]\\n },\\n \\"Description\\": \\"this is a test quota\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"CreatorId\\": \\"1884692****\\",\\n \\"LatestOperationId\\": \\"operation****\\",\\n \\"Status\\": \\"Ready\\",\\n \\"ReasonCode\\": \\"“”\\",\\n \\"ReasonMessage\\": \\"“”\\",\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"QuotaDetails\\": {\\n \\"DesiredMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"ActualMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"RequestedQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n }\\n },\\n \\"QuotaConfig\\": {\\n \\"SupportRDMA\\": false,\\n \\"ClusterId\\": \\"ceeb37xxxx\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"\\",\\n \\"SwitchId\\": \\"\\",\\n \\"SecurityGroupId\\": \\"\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\"\\n ],\\n \\"RoleArn\\": \\"\\",\\n \\"DefaultRoute\\": \\"\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"\\",\\n \\"EipAllocationId\\": \\"\\"\\n }\\n },\\n \\"SupportGPUDrivers\\": [\\n \\"\\"\\n ],\\n \\"DefaultGPUDriver\\": \\"470.199.02\\",\\n \\"ACS\\": {\\n \\"ACSQuotaId\\": \\"\\",\\n \\"AssociatedProducts\\": [\\n \\"\\"\\n ]\\n },\\n \\"ResourceSpecs\\": [\\n {\\n \\"WorkspaceId\\": \\"\\",\\n \\"Product\\": \\"\\",\\n \\"Specs\\": [\\n {\\n \\"SpecName\\": \\"\\",\\n \\"IsGuaranteedValid\\": true,\\n \\"IsOverSoldValid\\": true,\\n \\"CodeType\\": \\"\\",\\n \\"Code\\": \\"\\",\\n \\"Reason\\": \\"\\"\\n }\\n ]\\n }\\n ],\\n \\"EnablePreemptSubquotaWorkloads\\": true,\\n \\"EnableSubQuotaPreemption\\": true,\\n \\"SubQuotaPreemptionConfig\\": {\\n \\"PreemptedPriorityUpperBound\\": 9,\\n \\"PreemptedProducts\\": [\\n \\"dlc\\"\\n ]\\n },\\n \\"EnableGPUShare\\": true,\\n \\"OversoldUsageConfig\\": {\\n \\"DisabledBy\\": \\"\\",\\n \\"Disabled\\": true\\n },\\n \\"SelfQuotaPreemptionConfig\\": {\\n \\"PreemptedPriorities\\": [\\n 0\\n ],\\n \\"PreemptedProducts\\": [\\n \\"\\"\\n ],\\n \\"PreemptorPriorities\\": [\\n 0\\n ]\\n },\\n \\"EniCacheConfig\\": {\\n \\"Enabled\\": true,\\n \\"CachePoolSize\\": 0\\n },\\n \\"SandboxCacheConfig\\": {\\n \\"Enabled\\": true\\n },\\n \\"UseCase\\": \\"\\",\\n \\"EnableSelfQuotaPreemption\\": true,\\n \\"ControlPlaneClusterId\\": \\"\\"\\n },\\n \\"Workspaces\\": [\\n {\\n \\"WorkspaceId\\": \\"ws123456\\"\\n }\\n ],\\n \\"SubQuotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\"\\n }\\n ],\\n \\"QueueStrategy\\": \\"PaiStrategyIntelligent\\",\\n \\"Version\\": \\"1.0\\",\\n \\"HyperZones\\": [\\n \\"A3\\"\\n ],\\n \\"QuotaCluster\\": {\\n \\"ClusterType\\": \\"\\",\\n \\"Image\\": \\"\\",\\n \\"DataSources\\": [\\n {\\n \\"DataSourceId\\": \\"\\",\\n \\"MountPath\\": \\"\\",\\n \\"Uri\\": \\"\\"\\n }\\n ],\\n \\"Endpoints\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"Status\\": \\"\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetQuotaResponse>\\n <QuotaId>quotajradxh43rgb</QuotaId>\\n <QuotaName>test-quota</QuotaName>\\n <ResourceType>ECS</ResourceType>\\n <ParentQuotaId>quota1ci8g793pgm</ParentQuotaId>\\n <ResourceGroupIds>rg69rj0leslwdnbe</ResourceGroupIds>\\n <AllocateStrategy>ByNodeSpec</AllocateStrategy>\\n <Min>\\n <NodeSpecs>\\n <Type>ecs.g6.4xlarge</Type>\\n <Count>10</Count>\\n </NodeSpecs>\\n </Min>\\n <Description>this is a test quota</Description>\\n <Labels/>\\n <Status>Ready</Status>\\n <GmtCreatedTime>2023-06-22T00:00:00Z</GmtCreatedTime>\\n <GmtModifiedTime>2023-06-22T00:00:00Z</GmtModifiedTime>\\n <QuotaDetails>\\n <DesiredMinQuota>\\n <CPU>100</CPU>\\n <Memory>100Gi</Memory>\\n <GPU>16</GPU>\\n <GPUType>GPU</GPUType>\\n </DesiredMinQuota>\\n <ActualMinQuota>\\n <CPU>100</CPU>\\n <Memory>100Gi</Memory>\\n <GPU>16</GPU>\\n <GPUType>GPU</GPUType>\\n </ActualMinQuota>\\n <RequestedQuota>\\n <CPU>100</CPU>\\n <Memory>100Gi</Memory>\\n <GPU>16</GPU>\\n <GPUType>GPU</GPUType>\\n </RequestedQuota>\\n <UsedQuota>\\n <CPU>100</CPU>\\n <Memory>100Gi</Memory>\\n <GPU>16</GPU>\\n <GPUType>GPU</GPUType>\\n </UsedQuota>\\n </QuotaDetails>\\n <QuotaConfig>\\n <SupportRDMA>false</SupportRDMA>\\n <ClusterId>ceeb37xxxx</ClusterId>\\n <UserVpc>\\n </UserVpc>\\n <DefaultGPUDriver>470.199.02</DefaultGPUDriver>\\n <ACS>\\n </ACS>\\n </QuotaConfig>\\n <Workspaces>\\n <WorkspaceId>ws123456</WorkspaceId>\\n </Workspaces>\\n <SubQuotas>\\n <QuotaId>quota12345</QuotaId>\\n <QuotaName>dlc-quota</QuotaName>\\n </SubQuotas>\\n <QueueStrategy>PaiStrategyIntelligent</QueueStrategy>\\n</GetQuotaResponse>","errorExample":""}]', + 'title' => '获取资源配额详情', + ], + 'UpdateQuota' => [ + 'summary' => '您可以通过UpdateQuota更新一个资源配额信息。', + 'path' => '/api/v1/quotas/{QuotaId}', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '191208', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'QuotaId', + 'in' => 'path', + 'schema' => [ + 'description' => 'Quota ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'quota-20210126170216-mtl37ge7gkvdz', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求body。', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'description' => '资源配额描述。', + 'type' => 'string', + 'required' => false, + 'example' => 'this is a test quota', + ], + 'Labels' => [ + 'description' => '用户定义标签列表。'."\n" + .'此处为全量更新。', + 'type' => 'array', + 'items' => [ + 'description' => '用户定义标签。', + 'required' => false, + '$ref' => '#/components/schemas/Label', + ], + 'required' => false, + ], + 'QueueStrategy' => [ + 'description' => 'Quota上任务的排队策略。', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStrategyIntelligent', + ], + 'QuotaConfig' => [ + 'description' => '资源配额配置', + 'required' => false, + '$ref' => '#/components/schemas/QuotaConfig', + ], + 'QuotaName' => [ + 'description' => '资源配额名称', + 'type' => 'string', + 'required' => false, + 'example' => 'test', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '96496E6E-00B4-5F55-80F6-1844FA9E92DC', + ], + 'QuotaId' => [ + 'title' => 'Quota Id', + 'description' => 'Quota ID。', + 'type' => 'string', + 'example' => 'quota-20210126170216-mtl37ge7gkvdz', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"96496E6E-00B4-5F55-80F6-1844FA9E92DC\\",\\n \\"QuotaId\\": \\"quota-20210126170216-mtl37ge7gkvdz\\"\\n}","type":"json"}]', + 'title' => '更新资源配额配置', + ], + 'ScaleQuota' => [ + 'summary' => '您可以通过ScaleQuota扩缩容资源配额。', + 'path' => '/api/v1/quotas/{QuotaId}/action/scale', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '191196', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'QuotaId', + 'in' => 'path', + 'schema' => [ + 'description' => 'Quota ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'quotamtl37ge7gkvdz', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求body。', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupIds' => [ + 'description' => '资源组列表。', + 'type' => 'array', + 'items' => [ + 'description' => '资源组ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'rg-aek2nxrabqavely', + ], + 'required' => false, + ], + 'Min' => [ + 'description' => '扩缩容Min Quota。'."\n" + .'><notice>NodeSpecs中填写的是扩容后的规格和数量。如果NodeSpecs中Count小于当前Quota的Count,表示缩容,否则表示扩容。></notice>', + 'required' => false, + '$ref' => '#/components/schemas/ResourceSpec', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6', + ], + 'QuotaId' => [ + 'title' => 'Quota Id', + 'description' => 'Quota ID。', + 'type' => 'string', + 'example' => 'quotamtl37ge7gkvdz', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\",\\n \\"QuotaId\\": \\"quotamtl37ge7gkvdz\\"\\n}","type":"json"}]', + 'title' => '扩缩容资源配额', + ], + 'DeleteQuota' => [ + 'summary' => '您可以通过DeleteQuota删除一个资源配额。', + 'path' => '/api/v1/quotas/{QuotaId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '191219', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'QuotaId', + 'in' => 'path', + 'schema' => [ + 'description' => '需要删除的Quota identifier。', + 'type' => 'string', + 'required' => false, + 'example' => 'quota1ci8g793pgm', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'QuotaId' => [ + 'title' => 'Quota Id', + 'description' => 'Quota ID。', + 'type' => 'string', + 'example' => 'quotamtl37ge7gkvdz', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"QuotaId\\": \\"quotamtl37ge7gkvdz\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteQuotaResponse>\\n <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>\\n <QuotaId>quotamtl37ge7gkvdz</QuotaId>\\n</DeleteQuotaResponse>","errorExample":""}]', + 'title' => '删除资源配额', + ], + 'ListQuotaWorkloads' => [ + 'summary' => '您可以通过此API获取Quota上的任务信息列表。', + 'path' => '/api/v1/quotas/{QuotaId}/workloads', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '221848', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'QuotaId', + 'in' => 'path', + 'schema' => [ + 'title' => 'Quota ID', + 'description' => 'Quota ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'quota1y9qarq****', + ], + ], + [ + 'name' => 'WorkspaceIds', + 'in' => 'query', + 'schema' => [ + 'title' => '查询指定的Workspace下的workload的排队信息', + 'description' => '查询指定的Workspace下的workload的排队信息。', + 'type' => 'string', + 'required' => false, + 'example' => '1866**', + ], + ], + [ + 'name' => 'WorkloadType', + 'in' => 'query', + 'schema' => [ + 'title' => '查询指定子产品的实例的排队信息', + 'description' => '查询指定子产品的实例的排队信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'dlc', + ], + ], + [ + 'name' => 'WorkloadIds', + 'in' => 'query', + 'schema' => [ + 'title' => '查询指定workload id的排队信息', + 'description' => '查询指定workload ID的排队信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'dlc123445**', + ], + ], + [ + 'name' => 'BeforeWorkloadId', + 'in' => 'query', + 'schema' => [ + 'title' => '查询队列中指定workload Id之前的实例的排队信息', + 'description' => '查询队列中指定workload ID之前的实例的排队信息。', + 'type' => 'string', + 'required' => false, + 'example' => 'dsw654433**', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '查询的页码', + 'description' => '查询的页码。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'minimum' => '1', + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '分页查询每页的大小', + 'description' => '分页查询每页的大小。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'maximum' => '100', + 'minimum' => '1', + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '返回结果的排序字段', + 'description' => '返回结果的排序字段。', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtCreatedTime', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排队顺序', + 'description' => '排队顺序。', + 'type' => 'string', + 'required' => false, + 'example' => 'desc', + 'enum' => [ + 'asc', + 'desc', + ], + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'description' => '在队列中状态。', + 'type' => 'string', + 'required' => false, + 'example' => 'Enqueued', + 'default' => 'Enqueued', + ], + ], + [ + 'name' => 'ShowOwn', + 'in' => 'query', + 'schema' => [ + 'description' => '是否只看本资源配额对应Workload。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + 'default' => 'true', + ], + ], + [ + 'name' => 'SubQuotaIds', + 'in' => 'query', + 'schema' => [ + 'description' => '子资源配额ID列表。', + 'type' => 'string', + 'required' => false, + 'example' => 'quota123446**,quota644322**', + ], + ], + [ + 'name' => 'UserIds', + 'in' => 'query', + 'schema' => [ + 'description' => '用户ID列表。', + 'type' => 'string', + 'required' => false, + 'example' => '290438938**,238290930**', + ], + ], + [ + 'name' => 'NodeName', + 'in' => 'query', + 'schema' => [ + 'description' => '只搜索该节点上的任务。', + 'type' => 'string', + 'required' => false, + 'example' => 'lrn482781276**', + ], + ], + [ + 'name' => 'WorkloadCreatedTimeRange', + 'in' => 'query', + 'schema' => [ + 'description' => 'Workload创建时间范围搜索。', + 'required' => false, + '$ref' => '#/components/schemas/TimeRangeFilter', + ], + ], + [ + 'name' => 'WorkloadStatuses', + 'in' => 'query', + 'schema' => [ + 'description' => '按Workload状态过滤。', + 'type' => 'string', + 'required' => false, + 'example' => 'Pending', + ], + ], + [ + 'name' => 'GmtPositionModifiedTimeRange', + 'in' => 'query', + 'schema' => [ + 'description' => 'Workload队列位置变化时间范围搜索。', + 'required' => false, + '$ref' => '#/components/schemas/TimeRangeFilter', + ], + ], + [ + 'name' => 'GmtEnqueuedTimeRange', + 'in' => 'query', + 'schema' => [ + 'description' => 'Workload进入队列时间范围搜索。', + 'required' => false, + '$ref' => '#/components/schemas/TimeRangeFilter', + ], + ], + [ + 'name' => 'GmtDequeuedTimeRange', + 'in' => 'query', + 'schema' => [ + 'description' => 'Workload出队时间范围搜索。', + 'required' => false, + '$ref' => '#/components/schemas/TimeRangeFilter', + ], + ], + [ + 'name' => 'WithHistoricalData', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '42F23B58-3684-5443-848A-8DA81FF99712', + ], + 'TotalCount' => [ + 'title' => '符合过滤条件的实例数量', + 'description' => '符合过滤条件的实例数量。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '23', + ], + 'Workloads' => [ + 'description' => 'Workload信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '一个Workload信息详情。', + '$ref' => '#/components/schemas/QueueInfo', + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"42F23B58-3684-5443-848A-8DA81FF99712\\",\\n \\"TotalCount\\": 23,\\n \\"Workloads\\": [\\n {\\n \\"Status\\": \\"Enqueued\\",\\n \\"QuotaId\\": \\"“quotamtl37ge7gkvdz”\\",\\n \\"UserName\\": \\"\\",\\n \\"WorkloadId\\": \\"dlcxxxx\\",\\n \\"Position\\": 10,\\n \\"GmtEnqueuedTime\\": \\"“2023-06-22T00:00:00Z”\\",\\n \\"Priority\\": 2,\\n \\"GmtCreatedTime\\": \\"\\",\\n \\"WorkloadType\\": \\"dlc\\",\\n \\"WorkspaceId\\": \\"“432524”\\",\\n \\"Resource\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"Code\\": \\"roleMaximumResource\\",\\n \\"Reason\\": \\"Current GPU Limit is 5, limited by Role PAI.AlgoDeveloper\\",\\n \\"UseOversoldResource\\": true,\\n \\"Name\\": \\"test-label-79f5498dd-9qrzs\\",\\n \\"WorkloadStatus\\": \\"PreAllocation\\",\\n \\"WorkloadName\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"GmtPositionModifiedTime\\": \\"\\\\\\"2023-06-22T00:00:00Z\\\\\\"\\",\\n \\"CodeType\\": \\"ConfigRule\\",\\n \\"GmtDequeuedTime\\": \\"\\\\\\"2023-06-22T00:00:00Z\\\\\\"\\",\\n \\"WorkspaceName\\": \\"\\",\\n \\"QueueStrategy\\": \\"PaiStrategyIntelligent\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取资源配额上的任务列表', + ], + 'ListTagResources' => [ + 'summary' => '查标签接口。', + 'path' => '/api/v1/tags', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'abilityTreeCode' => '205684', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => [ + 'title' => '地域', + 'description' => '地域', + 'type' => 'string', + 'required' => true, + 'example' => 'cn-hangzhou', + ], + ], + [ + 'name' => 'ResourceType', + 'in' => 'query', + 'schema' => [ + 'title' => '资源类型', + 'description' => '资源类型', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [ + 'MachineGroup' => 'MachineGroup', + 'ResourceGroup' => 'ResourceGroup', + ], + 'example' => 'ResourceGroup', + ], + ], + [ + 'name' => 'ResourceId', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '资源ID,最多 50个子项', + 'description' => '资源ID,最多 50个子项', + 'type' => 'array', + 'items' => [ + 'description' => '资源ID。一次调用最多支持添加50个资源ID。', + 'type' => 'string', + 'required' => false, + 'example' => '[\\"rgrk6hhjpvio3wvj\\"]', + ], + 'required' => false, + ], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '对应新增标签列表,最多包含20个子项', + 'description' => '对应新增标签列表,最多包含20个子项', + 'type' => 'array', + 'items' => [ + 'description' => '指定规则所适用的对象标签,可设置多个。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'title' => '标签键', + 'description' => '标签键', + 'type' => 'string', + 'required' => false, + 'example' => 'TestKey', + ], + 'Value' => [ + 'title' => '标签值', + 'description' => '标签值', + 'type' => 'string', + 'required' => false, + 'example' => 'TestValue', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => [ + 'title' => '下一个查询开始Token', + 'description' => '下一个查询开始Token', + 'type' => 'string', + 'required' => false, + 'example' => 'ad31d453a1f3f23ce0b5e8707e68181f', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求id', + 'description' => '请求id', + 'type' => 'string', + 'example' => 'CE22EE94-8AFE-53B5-9C2C-B36207B1CBF9', + ], + 'NextToken' => [ + 'title' => '下一个查询开始Token', + 'description' => '下一个查询开始Token', + 'type' => 'string', + 'example' => '3iEiu84Yk3TwHLzJV.usagf1Ain49xYKGoB6zffsDqPYZQQ5', + ], + 'TagResources' => [ + 'title' => '资源列表', + 'description' => '资源列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'TagKey' => [ + 'title' => '标签键', + 'description' => '标签键', + 'type' => 'string', + 'example' => 'tagKey', + ], + 'TagValue' => [ + 'title' => '标签值', + 'description' => '标签值', + 'type' => 'string', + 'example' => 'tagValue', + ], + 'ResourceId' => [ + 'title' => '资源ID', + 'description' => '资源ID', + 'type' => 'string', + 'example' => 'rgqssemfn6vjqqev', + ], + 'ResourceType' => [ + 'title' => '资源类型', + 'description' => '资源类型', + 'type' => 'string', + 'example' => 'ResourceGroup', + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CE22EE94-8AFE-53B5-9C2C-B36207B1CBF9\\",\\n \\"NextToken\\": \\"3iEiu84Yk3TwHLzJV.usagf1Ain49xYKGoB6zffsDqPYZQQ5\\",\\n \\"TagResources\\": [\\n {\\n \\"TagKey\\": \\"tagKey\\",\\n \\"TagValue\\": \\"tagValue\\",\\n \\"ResourceId\\": \\"rgqssemfn6vjqqev\\",\\n \\"ResourceType\\": \\"ResourceGroup\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '查询标签列表', + 'description' => '请求中至少指定以下任一参数,以确定查询对象。'."\n" + ."\n" + .'- ResourceId.N'."\n" + .'- Tag.N(Tag.N.Key与Tag.N.Value)'."\n" + ."\n" + .'同时指定下列参数时,返回结果中仅包含同时满足这两个条件的资源。'."\n" + .'- Tag.N和ResourceId.N', + ], + 'TagResources' => [ + 'summary' => '打标签接口。', + 'path' => '/api/v1/tags', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '202685', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求body。', + 'type' => 'object', + 'properties' => [ + 'ResourceType' => [ + 'title' => '资源类型', + 'description' => '资源类型', + 'type' => 'string', + 'required' => false, + 'example' => 'ResourceGroup', + ], + 'RegionId' => [ + 'title' => '地域', + 'description' => '地域', + 'type' => 'string', + 'required' => false, + 'example' => 'cn-hangzhou', + ], + 'ResourceId' => [ + 'title' => '资源ID,最多 50个子项', + 'description' => '资源ID,最多 50个子项', + 'type' => 'array', + 'items' => [ + 'description' => '资源ID。', + 'type' => 'string', + 'required' => false, + 'example' => '[\\"rgqssemfn6vjqqev\\"]', + ], + 'required' => false, + ], + 'Tag' => [ + 'title' => '对应新增标签列表,最多包含20个子项', + 'description' => '对应新增标签列表,最多包含20个子项', + 'type' => 'array', + 'items' => [ + 'description' => '标签信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'title' => '标签键', + 'description' => '标签键', + 'type' => 'string', + 'required' => false, + 'example' => 'key', + ], + 'Value' => [ + 'title' => '标签值', + 'description' => '标签值', + 'type' => 'string', + 'required' => false, + 'example' => 'value', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求id', + 'description' => '请求id', + 'type' => 'string', + 'example' => '42F23B58-3684-5443-848A-8DA81FF99712', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"42F23B58-3684-5443-848A-8DA81FF99712\\"\\n}","type":"json"}]', + 'title' => '为指定的资源列表统一创建并绑定标签', + 'description' => '绑定标签前,阿里云会校验资源已有标签数量。超过限制值后返回报错信息。', + ], + 'UntagResources' => [ + 'summary' => '为指定的资源列表统一解绑标签。解绑后,如果该标签没有绑定其他任何资源,会被自动删除。', + 'path' => '/api/v1/tags', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '205683', + 'abilityTreeNodes' => [ + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => [ + 'title' => '地域', + 'description' => '地域', + 'type' => 'string', + 'required' => true, + 'example' => 'cn-hangzhou', + ], + ], + [ + 'name' => 'ResourceType', + 'in' => 'query', + 'schema' => [ + 'title' => '资源类型', + 'description' => '资源类型', + 'type' => 'string', + 'required' => true, + 'example' => 'ResourceGroup', + ], + ], + [ + 'name' => 'ResourceId', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '资源ID,最多 50个子项', + 'description' => '资源ID,最多 50个子项', + 'type' => 'array', + 'items' => [ + 'description' => '资源列表。'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '[\\"rga2yvifxyicn1rq\\"]', + ], + 'required' => true, + ], + ], + [ + 'name' => 'TagKey', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '对应标签键列表,最多包含20个子项', + 'description' => '对应标签键列表,最多包含20个子项', + 'type' => 'array', + 'items' => [ + 'description' => '资源的标签值。N的取值范围:1~20。一旦传入该值,可以为空字符串。最多支持128个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', + 'type' => 'string', + 'required' => false, + 'example' => 'tagKey', + ], + 'required' => false, + ], + ], + [ + 'name' => 'All', + 'in' => 'query', + 'schema' => [ + 'title' => '是否全部删除,只针对tags为空时有效。取值范围: true false True False 默认是 false', + 'description' => '是否解绑实例上的所有标签,取值:'."\n" + ."\n" + .'- **true**:解绑实例上的所有标签。'."\n" + .'- **false**:不解绑实例上的所有标签。'."\n" + ."\n" + .'> - 默认值为false。'."\n" + .'- 如果同时传入TagKey和本参数,本参数不生效。'."\n", + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '公共参数,每个请求的ID都是唯一的,可用于排查和定位问题。', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\"\\n}","type":"json"}]', + 'title' => '为指定的资源列表统一解绑标签', + ], + 'ListNodes' => [ + 'summary' => '获取资源节点列表。', + 'path' => '/api/v1/nodes', + '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' => '191226', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + 'FEATURElearnCMM1R7', + 'FEATURElearn1N0SUT', + ], + ], + 'parameters' => [ + [ + 'name' => 'ResourceGroupIds', + 'in' => 'query', + 'schema' => [ + 'description' => '指定资源组ID列表,按逗号分隔,和QuotaId参数二选一必填'."\n" + .'约束:'."\n" + .'1. 需校验传入的ResourceGroupId的UserId和请求的UserId一致'."\n" + .'2. 传入的ResourceGroup列表类型需一致'."\n" + .'3. 传入的ResourceGroup列表现阶段记录的VPC需一致', + 'type' => 'string', + 'required' => false, + 'example' => 'rg69rj0leslwdnbe', + ], + ], + [ + 'name' => 'QuotaId', + 'in' => 'query', + 'schema' => [ + 'description' => '节点所属资源配额ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'quotamtl37ge7gkvdz', + ], + ], + [ + 'name' => 'NodeTypes', + 'in' => 'query', + 'schema' => [ + 'description' => '资源节点规格列表,按逗号分隔,不设置会返回所有资源节点规格的机器列表。', + 'type' => 'string', + 'required' => false, + 'example' => 'ecs.c6.xlarge', + ], + ], + [ + 'name' => 'AcceleratorType', + 'in' => 'query', + 'schema' => [ + 'description' => '加速器类型,枚举:'."\n" + ."\n" + .'- CPU'."\n" + .'- GPU'."\n" + ."\n" + .'默认为空,代表所有类型。', + 'type' => 'string', + 'required' => false, + 'example' => 'CPU', + ], + ], + [ + 'name' => 'GPUType', + 'in' => 'query', + 'schema' => [ + 'description' => '按卡类型,支持模糊匹配。', + 'type' => 'string', + 'required' => false, + 'example' => 'T4', + ], + ], + [ + 'name' => 'NodeStatuses', + 'in' => 'query', + 'schema' => [ + 'description' => '节点所处状态。按逗号分隔,不设置会返回所有状态的节点列表。', + 'type' => 'string', + 'required' => false, + 'example' => 'Ready', + ], + ], + [ + 'name' => 'OrderStatuses', + 'in' => 'query', + 'schema' => [ + 'description' => '节点所在订单状态。', + 'type' => 'string', + 'required' => false, + 'example' => 'Ready', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页页码,从1开始。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '2', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '分页查询每页数据集数量。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'description' => '排序依据。', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtCreateTime', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '排列顺序,取值:'."\n" + .'- desc:降序。'."\n" + .'- asc:升序。', + 'type' => 'string', + 'required' => false, + 'example' => 'desc', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'description' => '是否返回资源使用信息。只在QuotaId设置时生效。', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + 'default' => 'false', + ], + ], + [ + 'name' => 'NodeNames', + 'in' => 'query', + 'schema' => [ + 'description' => '只显示指定节点,按逗号分隔。', + 'type' => 'string', + 'required' => false, + 'example' => 'lingjxxxx', + ], + ], + [ + 'name' => 'HyperNode', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'CliqueID', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'FilterByQuotaId', + 'in' => 'query', + 'schema' => [ + 'description' => '与ResourceGroupIds同时使用,展示资源组里面Quota绑定某些Quota的node。', + 'type' => 'string', + 'required' => false, + 'example' => 'quotamtl37ge7gkvdz', + ], + ], + [ + 'name' => 'FilterByResourceGroupIds', + 'in' => 'query', + 'schema' => [ + 'description' => '与QuotaId同时使用,展示Quota中属于某些资源组的node。', + 'type' => 'string', + 'required' => false, + 'example' => 'rg69rj0leslwdnbe', + ], + ], + [ + 'name' => 'MachineGroupIds', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'ReasonCodes', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'HyperZone', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'AvailabilityZone', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'PaymentType', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'OrderInstanceIds', + 'in' => 'query', + 'schema' => [ + 'title' => '订单Id信息', + 'description' => '订单Id信息', + 'type' => 'string', + 'required' => false, + 'example' => '260590501560397', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'HealthRate', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '节点的健康率(健康节点的占比)', + 'description' => '节点的健康率(健康节点的占比)', + 'type' => 'object', + 'properties' => [ + 'operation' => [ + 'title' => '可选值ge, gte, eq, lte, lt', + 'description' => '可选值ge, gte, eq, lte, lt', + 'type' => 'string', + 'required' => false, + ], + 'value' => [ + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'HealthCount', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '健康的节点数', + 'description' => '健康的节点数', + 'type' => 'object', + 'properties' => [ + 'operation' => [ + 'title' => '可选值ge, gte, eq, lte, lt', + 'description' => '可选值ge, gte, eq, lte, lt', + 'type' => 'string', + 'required' => false, + ], + 'value' => [ + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'LayoutMode', + 'in' => 'query', + 'schema' => [ + 'title' => '布局模式', + 'description' => '布局模式', + 'type' => 'string', + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '请求Id', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'Nodes' => [ + 'description' => '节点列表。', + 'type' => 'array', + 'items' => [ + 'description' => '节点信息。', + '$ref' => '#/components/schemas/Node', + ], + ], + 'TotalCount' => [ + 'description' => '符合过滤条件的节点数量。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '23', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Nodes\\": [\\n {\\n \\"CreatorId\\": \\"\\",\\n \\"NodeName\\": \\"\\",\\n \\"NodeType\\": \\"\\",\\n \\"AcceleratorType\\": \\"\\",\\n \\"CPU\\": \\"\\",\\n \\"Memory\\": \\"\\",\\n \\"GPU\\": \\"\\",\\n \\"GPUType\\": \\"\\",\\n \\"GPUMemory\\": \\"\\",\\n \\"NodeStatus\\": \\"\\",\\n \\"ReasonCode\\": \\"\\",\\n \\"ReasonMessage\\": \\"\\",\\n \\"OrderStatus\\": \\"\\",\\n \\"ResourceGroupId\\": \\"\\",\\n \\"ResourceGroupName\\": \\"\\",\\n \\"MachineGroupId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"GmtExpiredTime\\": \\"\\",\\n \\"IsBound\\": true,\\n \\"BoundQuotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\"\\n }\\n ],\\n \\"RequestCPU\\": \\"\\",\\n \\"RequestMemory\\": \\"\\",\\n \\"RequestGPU\\": \\"\\",\\n \\"LimitCPU\\": \\"\\",\\n \\"LimitMemory\\": \\"\\",\\n \\"LimitGPU\\": \\"\\",\\n \\"PodNum\\": 0,\\n \\"WorkloadNum\\": 0,\\n \\"Users\\": [\\n {\\n \\"UserId\\": \\"\\",\\n \\"UserName\\": \\"\\"\\n }\\n ],\\n \\"HyperZone\\": \\"\\",\\n \\"AvailabilityZone\\": \\"\\",\\n \\"AllocatableCPU\\": \\"\\",\\n \\"AllocatableMemory\\": \\"\\",\\n \\"SystemReservedCPU\\": \\"\\",\\n \\"SystemReservedMemory\\": \\"\\",\\n \\"AncestorQuotaWorkloadNum\\": 0,\\n \\"SelfQuotaWorkloadNum\\": 0,\\n \\"DescendantQuotaWorkloadNum\\": 0,\\n \\"DiskPL\\": \\"\\",\\n \\"DiskCapacity\\": 0,\\n \\"SubNodes\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"TotalCount\\": 23\\n}","type":"json"}]', + 'title' => '获取节点列表', + 'description' => '您可以通过ListNodes 获取指定过滤条件的资源节点', + ], + 'GetSpotPriceHistory' => [ + 'summary' => '获取抢占式实例历史价格', + 'path' => '/api/v1/spots/{InstanceType}/pricehistory', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '213678', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceType', + 'in' => 'path', + 'schema' => [ + 'description' => '抢占式实例的实例规格。支持ECS规格和灵骏规格', + 'type' => 'string', + 'required' => false, + 'example' => 'ml.gu7xf.8xlarge-gu108', + ], + ], + [ + 'name' => 'SpotDuration', + 'in' => 'query', + 'schema' => [ + 'description' => '抢占式实例的保留时长,单位为小时。 注意目前仅ECS规格支持设置抢占式实例保留时长,默认值:0。取值范围:'."\n" + .'- 1:创建后阿里云会保证实例运行1小时不会被自动释放;超过1小时后,系统会自动比较出价与市场价格、检查资源库存,来决定实例的持有和回收。'."\n" + .'- 0:创建后,阿里云不保证实例运行1小时,系统会自动比较出价与市场价格、检查资源库存,来决定实例的持有和回收。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '0', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'description' => '查询抢占式实例历史价格的起始时间,最大值不得超过指定的结束时间7天。按照ISO 8601标准表示,并使用UTC +0时间,格式为yyyy-MM-ddTHH:mm:ssZ。默认值:空,空代表结束时间前3天。', + 'type' => 'string', + 'required' => false, + 'example' => '2024-12-26T09:36:46Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'description' => '查询抢占式实例历史价格的结束时间。按照ISO 8601标准表示,并使用UTC +0时间,格式为yyyy-MM-ddTHH:mm:ssZ。默认值:空,空表示当前时间。', + 'type' => 'string', + 'required' => false, + 'example' => '2024-12-30T09:36:46Z', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '分页参数:当前页码,默认值***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' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'description' => '用于排序的字段名,默认值: GmtCreatedTime,可选字段:'."\n" + ."\n" + .'- GmtCreatedTime'."\n" + ."\n" + .'仅查询灵骏规格的历史价格时该参数生效', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'GmtCreatedTime' => 'GmtCreatedTime', + ], + 'example' => 'GmtCreatedTime', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '排序顺序。默认值:asc,取值如下:'."\n" + .'- desc:降序。'."\n" + .'- asc:升序。'."\n" + ."\n" + .'仅查询灵骏规格的历史价格时该参数生效', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'asc' => 'asc', + 'desc' => 'desc', + ], + 'example' => 'asc', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '抢占式实例历史价格详情', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '8BDA4440-DD3C-5F4B-BBDD-94A9CE1E75C7', + ], + 'SpotPriceHistory' => [ + 'description' => '抢占式实例历史价格详情列表', + 'type' => 'array', + 'items' => [ + 'description' => '抢占式实例历史价格详情', + '$ref' => '#/components/schemas/SpotPriceItem', + ], + ], + 'TotalCount' => [ + 'description' => '抢占式实例历史价格总数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '194', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8BDA4440-DD3C-5F4B-BBDD-94A9CE1E75C7\\",\\n \\"SpotPriceHistory\\": [\\n {\\n \\"ZoneId\\": \\"cn-wulanchabu-a\\",\\n \\"InstanceType\\": \\"ml.gu8xf.8xlarge-gu108\\",\\n \\"SpotDiscount\\": 0.1,\\n \\"Timestamp\\": \\"2024-01-17T06:00:00Z\\"\\n }\\n ],\\n \\"TotalCount\\": 194\\n}","type":"json"}]', + 'title' => '获取抢占式实例历史价格', + ], + 'OperateNode' => [ + 'summary' => '您可以通过OperateNode对节点进行操作。', + 'path' => '/api/v1/nodes/{NodeId}', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '216521', + 'abilityTreeNodes' => [ + 'FEATURElearnZO51AS', + 'FEATURElearnCMM1R7', + ], + ], + 'parameters' => [ + [ + 'name' => 'NodeId', + 'in' => 'path', + 'schema' => [ + 'description' => '节点ID。', + 'type' => 'string', + 'required' => true, + 'example' => 'lingjunxxxx-mgxxx-xxxx', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求Body。', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupId' => [ + 'description' => '资源节点所属资源组Id', + 'type' => 'string', + 'required' => false, + 'example' => 'rgaekzbrflewn6jjq', + ], + 'Operation' => [ + 'description' => '操作 '."\n" + .'- Cordon:禁止调度'."\n" + .'- Uncordon:启动调度'."\n" + .'- Drain:驱逐Pod'."\n", + 'type' => 'string', + 'required' => true, + 'example' => 'Cordon', + 'enum' => [ + 'Cordon', + 'Uncordon', + 'Drain', + ], + ], + 'OperationParameters' => [ + 'title' => '节点操作参数配置'."\n", + 'description' => '节点操作参数配置'."\n", + 'required' => false, + '$ref' => '#/components/schemas/NodeOperationParameters', + ], + ], + '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' => '96496E6E-00B4-5F55-80F6-1844FA9E92DC', + ], + 'NodeId' => [ + 'description' => '节点ID。', + 'type' => 'string', + 'example' => 'lingjunxxxx-mgxxx-xxxx', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"96496E6E-00B4-5F55-80F6-1844FA9E92DC\\",\\n \\"NodeId\\": \\"lingjunxxxx-mgxxx-xxxx\\"\\n}","type":"json"}]', + 'title' => '操作节点', + 'description' => '您可以通过OperateNode 操作指定的资源节点,包括 禁止调度/启动调度等 操作', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-beijing', + 'endpoint' => 'pai.cn-beijing.aliyuncs.com', + ], + [ + 'regionId' => 'cn-wulanchabu', + 'endpoint' => 'pai.cn-wulanchabu.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou', + 'endpoint' => 'pai.cn-hangzhou.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'pai.cn-shanghai.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen', + 'endpoint' => 'pai.cn-shenzhen.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hongkong', + 'endpoint' => 'pai.cn-hongkong.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-1', + 'endpoint' => 'pai.ap-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-3', + 'endpoint' => 'pai.ap-southeast-3.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-5', + 'endpoint' => 'pai.ap-southeast-5.aliyuncs.com', + ], + [ + 'regionId' => 'eu-central-1', + 'endpoint' => 'pai.eu-central-1.aliyuncs.com', + ], + [ + 'regionId' => 'cn-guangzhou', + 'endpoint' => 'pai.cn-guangzhou.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-1', + 'endpoint' => 'pai.ap-northeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-east-1', + 'endpoint' => 'pai.us-east-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-west-1', + 'endpoint' => 'pai.us-west-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-northeast-2', + 'endpoint' => 'pai.ap-northeast-2.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai-finance-1', + 'endpoint' => 'pai.cn-shanghai-finance-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-southeast-1', + 'endpoint' => 'pai.us-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-7', + 'endpoint' => 'pai.ap-southeast-7.aliyuncs.com', + ], + [ + 'regionId' => 'me-east-1', + 'endpoint' => 'pai.me-east-1.aliyuncs.com', + ], + ], +]; |
