diff options
Diffstat (limited to 'data/en_us/paistudio')
| -rw-r--r-- | data/en_us/paistudio/2020-04-28/api-docs.php | 346 | ||||
| -rw-r--r-- | data/en_us/paistudio/2020-11-23/api-docs.php | 280 | ||||
| -rw-r--r-- | data/en_us/paistudio/2021-02-02/api-docs.php | 4797 | ||||
| -rw-r--r-- | data/en_us/paistudio/2022-01-12/api-docs.php | 10626 |
4 files changed, 16049 insertions, 0 deletions
diff --git a/data/en_us/paistudio/2020-04-28/api-docs.php b/data/en_us/paistudio/2020-04-28/api-docs.php new file mode 100644 index 0000000..a5d6dc7 --- /dev/null +++ b/data/en_us/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' => 'Other', + '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' => null, + ], + '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' => null, + ], + ], + '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/en_us/paistudio/2020-11-23/api-docs.php b/data/en_us/paistudio/2020-11-23/api-docs.php new file mode 100644 index 0000000..ab89920 --- /dev/null +++ b/data/en_us/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' => null, + ], + ], + '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/en_us/paistudio/2021-02-02/api-docs.php b/data/en_us/paistudio/2021-02-02/api-docs.php new file mode 100644 index 0000000..0d27461 --- /dev/null +++ b/data/en_us/paistudio/2021-02-02/api-docs.php @@ -0,0 +1,4797 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'PaiStudio', + 'version' => '2021-02-02', + ], + 'directories' => [ + [ + 'id' => 197103, + 'title' => 'Workflow Draft', + 'type' => 'directory', + 'children' => [ + 'CreateExperiment', + 'CopyExperiment', + 'UpdateExperimentMeta', + 'UpdateExperimentContent', + 'PublishExperiment', + 'GetExperiment', + 'GetExperimentMeta', + 'GetExperimentStatus', + 'DeleteExperiment', + 'ListExperiments', + ], + ], + [ + 'id' => 197114, + 'title' => 'Workflow Draft Job', + 'type' => 'directory', + 'children' => [ + 'CreateJob', + 'GetJob', + 'ListJobs', + 'StopJob', + 'StopExperiment', + ], + ], + [ + 'id' => 197111, + 'title' => 'Workflow Draft Catalog', + 'type' => 'directory', + 'children' => [ + 'CreateExperimentFolder', + 'UpdateExperimentFolder', + 'GetExperimentFolderChildren', + 'DeleteExperimentFolder', + ], + ], + [ + 'id' => 197169, + 'title' => 'algorithm', + 'type' => 'directory', + 'children' => [ + 'GetAlgorithmTree', + 'GetAlgorithmDef', + ], + ], + [ + 'id' => 197189, + 'title' => 'Other (documents not in the catalog)', + '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' => '创建实验,或根据实验模版创建实验', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'folder-xfdafx093xxfd', + ], + 'WorkspaceId' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '84972', + ], + 'TemplateId' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'template-xze5df2scrxxz', + ], + 'Options' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '{"mlflow":{"experimentId":"exp-1"}}', + ], + 'Accessibility' => [ + 'title' => '工作空间内可见性 PUBLIC; PRIVATE 默认PUBLIC', + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => '42F23B58-3684-5443-848A-8DA81FF99712', + ], + 'ExperimentId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"42F23B58-3684-5443-848A-8DA81FF99712\\",\\n \\"ExperimentId\\": \\"draft-rbvg5wzljzjhc9ks92\\"\\n}","type":"json"}]', + ], + 'CopyExperiment' => [ + 'summary' => '复制实验', + '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' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '实验名称,最大长度 128,可包含中英文', + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'folder-erwx872xuryx', + ], + 'WorkspaceId' => [ + 'title' => '实验创建的Workspace', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '84972', + ], + 'Accessibility' => [ + 'title' => '工作空间内可见性 PUBLIC; PRIVATE 默认PUBLIC', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'PUBLIC' => 'PUBLIC', + 'PRIVATE' => 'PRIVATE', + ], + 'example' => 'PUBLIC', + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'ExperimentId', + 'in' => 'path', + 'schema' => [ + 'title' => '实验Id', + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => '6D161C28-9CB1-584E-8DD5-64441E32A5B3', + ], + 'ExperimentId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6D161C28-9CB1-584E-8DD5-64441E32A5B3\\",\\n \\"ExperimentId\\": \\"draft-rbvg5wzljzjhc9ks92\\"\\n}","type":"json"}]', + ], + 'UpdateExperimentMeta' => [ + 'summary' => '更新实验的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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'folder-xfd782efd08wex', + ], + 'Options' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '{"mlflow":{"experimentId":"exp-1"}}', + ], + 'Accessibility' => [ + 'title' => '工作空间内可见性 PUBLIC; PRIVATE 默认PUBLIC', + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\"\\n}","type":"json"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-i1udvvwm2rlvxug29n', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Content' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '{ "metadata": { "name": "实验名称", "id": "pai_exp_xxxdfafafasfa", "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' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'FolderId' => [ + 'title' => '公共目录Id', + 'description' => '', + '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' => '', + '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"}]', + ], + 'GetExperiment' => [ + 'summary' => '获取实验信息', + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => 'DD405810-73C9-5721-996A-EA04BCC4BBF2', + ], + 'ExperimentId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Pipeline Draft Name', + ], + 'Description' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Pipeline Draft Description', + ], + 'GmtCreateTime' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'GmtModifiedTime' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'Creator' => [ + 'description' => '', + 'type' => 'string', + 'example' => '1326689413376250', + ], + 'Source' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'PaiStudio', + ], + 'Version' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12', + ], + 'WorkspaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '23487', + ], + 'Content' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => '{"mlflow":{"experimentId":"exp-1"}}', + ], + 'Accessibility' => [ + 'description' => '', + '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"}]', + ], + 'GetExperimentMeta' => [ + 'summary' => '获取实验的元信息', + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6', + ], + 'ExperimentId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Pipeline draft name', + ], + 'Description' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Pipeline draft description', + ], + 'GmtCreateTime' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'GmtModifiedTime' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'Creator' => [ + 'description' => '', + 'type' => 'string', + 'example' => '1326****76250', + ], + 'Source' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'PaiStudio', + ], + 'Version' => [ + 'description' => '', + 'type' => 'string', + 'example' => '12', + ], + 'WorkspaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '23487', + ], + 'Options' => [ + 'description' => '', + 'type' => 'string', + 'example' => '{"mlflow":{"experimentId":"exp-1"}}', + ], + 'Accessibility' => [ + 'description' => '', + '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"}]', + ], + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + 'Status' => [ + 'description' => '', + 'type' => 'string', + 'enumValueTitles' => [ + 'Stopped' => 'Stopped', + 'Running' => 'Running', + ], + 'example' => 'Running', + ], + 'Nodes' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'NodeId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'id-2317-1608984201281-74996', + ], + 'JobId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'job-mewqhd72nsrqujn1px', + ], + 'RunId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'flow-wayrh3k605s7i51wey', + ], + 'RunNodeId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'node-6hc0eocnmzf4pk9njc', + ], + 'Status' => [ + 'description' => '', + '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"}]', + ], + 'DeleteExperiment' => [ + 'summary' => '删除实验', + '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' => '', + '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' => '', + '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"}]', + ], + 'ListExperiments' => [ + 'summary' => '获取实验列表', + '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' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'ASC' => 'ASC', + 'DESC' => 'DESC', + ], + 'example' => 'DESC', + ], + ], + [ + 'name' => 'ExperimentId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => '34875', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtCreate', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '9708FB85-232F-5F9A-9D67-7F9CCCE20E06', + ], + 'Experiments' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Pipeline draft name', + ], + 'Description' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Pipeline draft description', + ], + 'GmtCreateTime' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'GmtModifiedTime' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'Creator' => [ + 'description' => '', + 'type' => 'string', + 'example' => '1326*******76250', + ], + 'Source' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'PaiStudio', + ], + 'Version' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '12', + ], + 'WorkspaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '23487', + ], + 'Accessibility' => [ + 'description' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'draft-o1p0k444nlq3cd50zz'."\n", + ], + 'ExperimentId' => [ + 'title' => '工作流草稿Id,已经废弃,建议使用PipelineDraftId。', + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'id-2d88-1608982098027-91558', + ], + 'Options' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => '85082123-2A3F-52E7-B27A-F04700B82FFB', + ], + 'JobId' => [ + 'description' => '', + '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"}]', + ], + 'GetJob' => [ + 'summary' => '获取一个PAI Studio作业详情', + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + 'ExperimentId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + 'WorkspaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '86995', + ], + 'JobId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'job-6xfhrofqx93y139fg3'."\n", + ], + 'Snapshot' => [ + 'description' => '', + 'type' => 'string', + 'example' => '{}', + ], + 'ExecuteType' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'EXECUTE_TO_HERE', + ], + 'NodeId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'id-xxxxx', + ], + 'RunInfo' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'flow-lcs8ez11961l6urc3m', + ], + 'PaiflowNodeId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'node-5dzotrnwyzfxmbwwc8'."\n", + ], + 'Creator' => [ + 'description' => '', + 'type' => 'string', + 'example' => '13266*******76250', + ], + 'Status' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Succeeded', + ], + 'GmtCreateTime' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2021-01-21T17:12:35.232Z', + ], + 'Arguments' => [ + 'description' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-8up80bg0k1q23stml6', + ], + ], + [ + 'name' => 'Creator', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '13266*******76250', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'ASC' => 'ASC', + 'DESC' => 'DESC', + ], + 'example' => 'DESC', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + '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' => '', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'Jobs' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'draft-4x4iv3a9enuxw4vgka', + ], + 'WorkspaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '94436', + ], + 'JobId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'job-mewqhd72nsrqujn1px', + ], + 'ExecuteType' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'EXECUTE_ALL', + ], + 'NodeId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'nodeId1', + ], + 'RunId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'flow-aayfouai80i980ncvz', + ], + 'PaiflowNodeId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'node-xdfasf8ewxfdaddl', + ], + 'Creator' => [ + 'description' => '', + 'type' => 'string', + 'example' => '17677*******89598', + ], + 'Status' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Running', + ], + 'GmtCreateTime' => [ + 'description' => '', + '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"}]', + ], + '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' => '', + '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' => '', + '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"}]', + ], + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + ], + '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' => '', + 'type' => 'object', + 'properties' => [ + 'WorkspaceId' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '45699', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'Pipeline draft name', + ], + 'ParentFolderId' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'folder-xxfdjhfxdfad', + ], + 'Source' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + 'Accessibility' => [ + 'title' => '工作空间内可见性 PUBLIC; PRIVATE 默认PUBLIC', + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', + ], + 'FolderId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'folder-xxfdjhfxduxd', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"FolderId\\": \\"folder-xxfdjhfxduxd\\"\\n}","type":"json"}]', + ], + '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' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'folder1', + ], + 'ParentFolderId' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'folder-xzf7t785nka4c2334', + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'FolderId', + 'in' => 'path', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\"\\n}","type":"json"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'folder-xzf7t7****ch7qce', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'PUBLIC', + ], + ], + [ + 'name' => 'UserId', + 'in' => 'query', + 'schema' => [ + 'title' => '若FolderId为root,Accessibility为PRIVATE,这里代表私有根路径的所有者,默认为访问者自己', + 'description' => '', + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => 'folder-xzf7t7****ch7qce', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Pipeline draft name', + ], + 'Type' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'dir', + ], + 'Icon' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'icon-folder', + ], + 'Empty' => [ + 'description' => '', + 'type' => 'boolean', + 'example' => 'false', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间', + 'description' => '', + 'type' => 'string', + 'format' => 'iso8601', + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'GmtModifiedTime' => [ + 'title' => '修改时间', + 'description' => '', + '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"}]', + ], + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\"\\n}","type":"json"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'title' => '工作空间ID。指定工作空间ID后,将根据当前工作空间是否开通GPU资源对算法树结果进行过滤。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'pai', + ], + ], + [ + 'name' => 'Identifier', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => '5vqe4Sgtzw8E6opyK3HkK+nzYlY=', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'B4F16666-FD54-5D9D-A362-53A4C66692DF', + ], + 'Spec' => [ + 'description' => '', + 'type' => 'object', + 'example' => '{}', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B4F16666-FD54-5D9D-A362-53A4C66692DF\\",\\n \\"Spec\\": {}\\n}","type":"json"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'DESC', + ], + ], + [ + 'name' => 'Source', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + ], + [ + 'name' => 'Type', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'Modified' => 'Modified', + 'Created' => 'Created', + ], + 'example' => 'Modified', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '86995', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '2', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'Experiments' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'draft-76p70ye0gwv3vbur55', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Pipeline draft name', + ], + 'Description' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Pipeline draft description', + ], + 'RecentGmtModifiedTime' => [ + 'description' => '', + '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' => '', + '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"}]', + ], + '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' => null, + ], + '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' => null, + ], + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'Data' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'WorkspaceId' => [ + 'description' => '', + '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"}]', + ], + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + 'Users' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'UserId' => [ + 'description' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'dwd_hb_user_fdsaf_hi', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'Partition', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'pt=20240805', + ], + ], + [ + 'name' => 'Endpoint', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'http://service.cn-hangzhou-vpc.maxcompute.aliyun-inc.com/api', + ], + ], + [ + 'name' => 'Limit', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + 'Content' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + '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"}]', + ], + 'GetMCTableSchema' => [ + 'summary' => '获取MaxCompute表schema', + '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' => '', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'Columns' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + '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"}]', + ], + 'SearchMCTables' => [ + 'summary' => '搜索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' => '', + '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' => '', + '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"}]', + ], + 'GetNodeInputSchema' => [ + 'summary' => '获取实验节点输入桩的输入表的格式', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'experiment-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'path', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'ff1f33b0-426a-46bb-bb30-4a5648058079', + ], + ], + [ + 'name' => 'InputId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'inputTable', + ], + ], + [ + 'name' => 'InputIndex', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'NodeIds', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'A84A1282-D3E7-5198-9E8E-2AD09C78C6C1', + ], + 'VisualizationMeta' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'NodeId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'node_id1', + ], + 'NodeName' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'Meta' => [ + 'description' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'NodeId' => [ + 'title' => 'node id', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'node-2dfd8xfjda', + ], + 'VisualizationDataIds' => [ + 'title' => 'dataId列表', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'dataId1', + ], + 'required' => false, + ], + 'StartTime' => [ + 'title' => '开始时间,UTC 时间,日期格式 iso8601,闭区间,对流算法必选', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '2021-01-30T12:51:33.028Z', + ], + 'EndTime' => [ + 'title' => '结束时间,UTC 时间,日期格式 iso8601,闭区间,对流算法必填', + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'FFB1D4B4-B253-540A-9B3B-AA711C48A1B7', + ], + 'VisualizationData' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'NodeId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'node-ux55ier8axzo2xelcc', + ], + 'DataId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'dataId1', + ], + 'Data' => [ + 'description' => '', + 'type' => 'string', + 'example' => '1,2,3,4,5', + ], + 'CreateTime' => [ + 'description' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStudio', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'path', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'Outputs' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'DisplayName' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'Type' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Model', + ], + 'OutputId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'outputModel', + ], + 'OutputIndex' => [ + 'description' => '', + 'type' => 'string', + 'example' => '0', + ], + 'Value' => [ + 'description' => '', + 'type' => 'object', + 'example' => '{'."\n" + .' "table": "table_name",'."\n" + .' "locationType": "MaxComputeTable"'."\n" + .'}', + ], + 'NodeName' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'node1', + ], + 'AlgoName' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'LocationType' => [ + 'description' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'draft-rbvg5wzljzjhc9ks92', + ], + ], + [ + 'name' => 'NodeId', + 'in' => 'path', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'node-5dzotrnwyzfxmbwwc8', + ], + ], + [ + 'name' => 'OutputId', + 'in' => 'path', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'outputId', + ], + ], + [ + 'name' => 'OutputIndex', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '601FD8B1-78EB-5220-844C-92AC2EDAF7E1', + ], + 'NodeName' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'AlgoName' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'DisplayName' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'Type' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Model', + ], + 'Value' => [ + 'description' => '', + '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' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => '12345', + ], + ], + [ + 'name' => 'IsGenerateToken', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'true', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'acs:ram::1557********904:role/aliyunodpspaidefaultrole', + ], + 'IsEnabled' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'true', + ], + 'Token' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'SecurityToken' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'CAISggJ1q6Ft5B2yf***************aAaDf+bmceH2MNtNe9XtmTXJytadQ2T0RT8uOA+4kSypOPxSHjdjmnQjbdA/Q9MyNtTErQ/m45RNsg==', + ], + 'AccessKeyId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'STS.NU************TT5LoC', + ], + 'AccessKeySecret' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'E1h2n66Duo1D**********c79JVk59R6i', + ], + 'Expiration' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2021-03-19T19:14:42Z', + ], + ], + ], + 'RoleType' => [ + 'description' => '', + '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"}]', + ], + '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' => null, + ], + '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' => null, + ], + 'MigrateExperiments' => [ + 'summary' => '迁移PAI Studio 1.0的实验', + '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' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'DestFolderId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'folder-12321313', + ], + ], + [ + 'name' => 'Accessibility', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + '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' => '', + '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"}]', + ], + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + ], + [ + 'name' => 'IsOwner', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'Accessibility', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'PRIVATE', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '9CFA2665-1FFE-5929-8468-C14C25890486', + ], + 'Code' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'NO_PERMISSION', + ], + 'Message' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'FolderIdMapping' => [ + 'description' => '', + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'object', + 'description' => '', + '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"}]', + ], + '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' => '', + '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' => '', + '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"}]', + ], + ], + '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/en_us/paistudio/2022-01-12/api-docs.php b/data/en_us/paistudio/2022-01-12/api-docs.php new file mode 100644 index 0000000..ef34bca --- /dev/null +++ b/data/en_us/paistudio/2022-01-12/api-docs.php @@ -0,0 +1,10626 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'PaiStudio', + 'version' => '2022-01-12', + ], + 'directories' => [ + [ + 'id' => 384361, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'UpdateResourceGroup', + 'GetResourceGroupTotal', + 'ListResourceGroups', + 'GetResourceGroupRequest', + 'DeleteResourceGroupMachineGroup', + 'GetNodeMetrics', + 'ListResourceGroupMachineGroups', + 'GetUserViewMetrics', + 'GetResourceGroupMachineGroup', + 'GetResourceGroup', + 'DeleteMachineGroup', + 'CreateResourceGroup', + 'DeleteResourceGroup', + 'GetMachineGroup', + ], + ], + [ + 'id' => 384376, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'CreateAlgorithm', + 'CreateAlgorithmVersion', + 'DeleteAlgorithm', + 'DeleteAlgorithmVersion', + 'GetAlgorithm', + 'GetAlgorithmVersion', + 'ListAlgorithms', + 'ListAlgorithmVersions', + 'UpdateAlgorithm', + 'UpdateAlgorithmVersion', + ], + ], + [ + 'id' => 384387, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'CreateTrainingJob', + 'CreateInstanceWebTerminal', + 'CheckInstanceWebTerminal', + 'DeleteTrainingJob', + 'DeleteTrainingJobLabels', + 'GetToken', + 'GetTrainingJob', + 'GetTrainingJobErrorInfo', + 'GetTrainingJobLatestMetrics', + 'ListTrainingJobs', + 'ListTrainingJobEvents', + 'ListTrainingJobInstanceEvents', + 'ListTrainingJobInstanceMetrics', + 'ListTrainingJobLogs', + 'ListTrainingJobMetrics', + 'ListTrainingJobOutputModels', + 'StopTrainingJob', + 'UpdateTrainingJobLabels', + ], + ], + [ + 'id' => 384406, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'CreateQuota', + 'ListQuotas', + 'GetQuota', + 'UpdateQuota', + 'ScaleQuota', + 'DeleteQuota', + 'ListQuotaWorkloads', + ], + ], + [ + 'id' => 384414, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'ListTagResources', + 'TagResources', + 'UntagResources', + ], + ], + [ + 'id' => 384418, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'ListNodes', + 'GetSpotPriceHistory', + 'OperateNode', + ], + ], + ], + 'components' => [ + 'schemas' => [ + 'ACS' => [ + 'title' => 'ACS Quota Related Configuration', + 'description' => '', + 'visibility' => 'public', + 'type' => 'object', + 'properties' => [ + 'ACSQuotaId' => [ + 'title' => 'ACS Identifier', + 'description' => 'ACS Identifier', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'rq-3kbt2gtimmyw7fgfgothocvh', + 'backendName' => 'ACSQuotaId', + ], + 'AssociatedProducts' => [ + 'title' => 'Products that can use ACS Quota', + 'description' => '', + 'visibility' => 'public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'PAI-DLC', + 'extendType' => 'true', + ], + 'backendName' => 'AssociatedProducts', + ], + ], + ], + 'AlgorithmSpec' => [ + 'title' => 'Defines how the training job of the algorithm run.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'OutputChannels' => [ + 'title' => 'The outputs of the algorithm.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/Channel', + ], + 'backendName' => 'OutputChannels', + 'itemName' => 'OutputChannels', + ], + 'HyperParameters' => [ + 'title' => 'The hype parameter used by the algorithm.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/HyperParameterDefinition', + ], + 'backendName' => 'HyperParameters', + 'itemName' => 'HyperParameters', + ], + 'JobType' => [ + 'title' => 'Job type of the training job while running the algorithm.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'required' => true, + 'example' => 'TFJob', + 'backendName' => 'JobType', + 'enum' => [ + 'TFJob', + 'PyTorchJob', + 'XGBoostJob', + 'ElasticBatchJob', + ], + ], + 'Command' => [ + 'title' => 'The command used for submit the job.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'python train.py', + 'extendType' => 'true', + ], + 'required' => true, + 'backendName' => 'Command', + 'itemName' => 'Command', + ], + 'MetricDefinitions' => [ + 'title' => 'The output metrics of the algorithm.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/MetricDefinition', + ], + 'backendName' => 'MetricDefinitions', + 'itemName' => 'MetricDefinitions', + ], + 'InputChannels' => [ + 'title' => 'The input for the algorithm.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/Channel', + ], + 'required' => false, + 'backendName' => 'InputChannels', + 'itemName' => 'InputChannels', + ], + 'SupportsDistributedTraining' => [ + 'title' => 'Indicates whether the algorithm support distributed training.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'SupportsDistributedTraining', + ], + 'Image' => [ + 'title' => 'The docker image used by the job of this algorithm.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'required' => true, + 'example' => 'registry.cn-shanghai.aliyuncs.com/pai-training/kmeans:v1.0.0', + 'backendName' => 'Image', + ], + 'SupportedInstanceTypes' => [ + 'title' => 'A list of ECS instances that the algorithm can use to submit training job.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'ecs.g6.2xlarge', + 'extendType' => 'true', + ], + 'deprecated' => true, + 'backendName' => 'SupportedInstanceTypes', + ], + 'ComputeResource' => [ + 'title' => 'Compute resource', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'Policy' => [ + 'title' => 'Policy', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'Version' => [ + 'title' => 'Policy Version', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'required' => true, + 'example' => 'V1', + 'backendName' => 'Version', + ], + 'Value' => [ + 'title' => 'Policy Value', + 'description' => 'Policy Value', + 'visibility' => 'Public', + 'type' => 'string', + 'required' => true, + 'example' => '0', + 'backendName' => 'Value', + ], + ], + 'required' => true, + 'backendName' => 'Policy', + ], + ], + 'backendName' => 'ComputeResource', + ], + 'CodeDir' => [ + 'description' => '', + 'visibility' => 'Public', + 'backendName' => 'CodeDir', + '$ref' => '#/components/schemas/Location', + ], + 'Customization' => [ + 'title' => 'Customization', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'CodeDir' => [ + 'title' => 'CodeDir', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'CodeDir', + ], + ], + 'backendName' => 'Customization', + ], + 'ResourceRequirements' => [ + 'title' => 'Resource requirements.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/ConditionExpression', + ], + 'backendName' => 'ResourceRequirements', + ], + 'ProgressDefinitions' => [ + 'title' => 'ProgressDefinitions', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'OverallProgress' => [ + 'title' => 'OverallProgress', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'title' => 'Description', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'training progress', + 'backendName' => 'Description', + ], + 'Regex' => [ + 'title' => 'Regex', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '^[0-9]+([.][0-9]+){0,1}$', + 'backendName' => 'Regex', + ], + ], + 'backendName' => 'OverallProgress', + ], + 'RemainingTime' => [ + 'title' => 'RemainingTime', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'title' => 'Description', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'training remaining time', + 'backendName' => 'Description', + ], + 'Regex' => [ + 'title' => 'Regex', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '^[0-9]+([.][0-9]+){0,1}$', + 'backendName' => 'Regex', + ], + ], + 'backendName' => 'RemainingTime', + ], + ], + 'backendName' => 'ProgressDefinitions', + ], + ], + ], + 'Channel' => [ + 'title' => 'A named input/output for the algorithm.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'title' => 'A brief description for the channel.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '', + 'backendName' => 'Description', + ], + 'Required' => [ + 'title' => 'Indicates whethe the channels is required.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'Required', + ], + 'Properties' => [ + 'title' => 'The properties of channel.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'example' => '{}', + 'backendName' => 'Properties', + ], + 'Name' => [ + 'title' => 'The name of channel.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'required' => true, + 'example' => 'Model', + 'backendName' => 'Name', + ], + 'SupportedChannelTypes' => [ + 'title' => 'Supported Channel Types', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'oss', + 'extendType' => 'true', + ], + 'required' => false, + 'backendName' => 'SupportedChannelTypes', + ], + ], + ], + 'ConditionExpression' => [ + 'title' => 'A short description of struct', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'title' => 'The key of the conditional expression.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'required' => true, + 'example' => 'SupportedMachineTypes', + 'backendName' => 'Key', + ], + 'Operator' => [ + 'title' => 'The operator of the conditional expression', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'required' => true, + 'example' => 'in', + 'backendName' => 'Operator', + ], + 'Values' => [ + 'title' => 'The values of the conditional expression.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'ecs.gn5-c4g1.xlarge', + 'extendType' => 'true', + ], + 'required' => true, + 'backendName' => 'Values', + ], + ], + ], + 'ForwardInfo' => [ + 'title' => 'User VPC Forward Info', + 'description' => 'VPC Forward Info', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'NatGatewayId' => [ + 'title' => 'NAT Gateway ID', + 'description' => 'NAT Gateway ID', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'nat-7j4mka9wguxj', + 'backendName' => 'NatGatewayId', + ], + 'EipAllocationId' => [ + 'title' => 'EIP Allocation ID', + 'description' => 'EIP Allocation ID', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'eip-h29r78ieufbih', + 'backendName' => 'EipAllocationId', + ], + ], + ], + 'GPUInfo' => [ + 'title' => 'A short description of struct', + 'description' => 'pai resource group ecs spec', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'count' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + 'backendName' => 'count', + ], + 'type' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'T4', + 'backendName' => 'type', + ], + ], + ], + 'HyperParameterDefinition' => [ + 'title' => 'Definition of the input hyper parameter for the algorithm.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'DefaultValue' => [ + 'title' => 'Default value for the parameter.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '0', + 'backendName' => 'DefaultValue', + ], + 'Type' => [ + 'title' => 'Type of the parameter.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'required' => true, + 'example' => 'Integer', + 'backendName' => 'Type', + ], + 'Description' => [ + 'title' => 'Description for the parameter.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '', + 'backendName' => 'Description', + ], + 'Required' => [ + 'title' => 'Indicates whether the parameter is required', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'Required', + ], + 'Name' => [ + 'title' => 'Name of the parameter.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'required' => true, + 'example' => 'batch_size', + 'backendName' => 'Name', + ], + 'Range' => [ + 'description' => '', + 'visibility' => 'Public', + 'backendName' => 'Range', + '$ref' => '#/components/schemas/HyperParameterRange', + ], + 'DisplayName' => [ + 'title' => 'Display name of parameter.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'Batch Size', + 'backendName' => 'DisplayName', + ], + ], + ], + 'HyperParameterRange' => [ + 'title' => 'A short description of struct', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'Enum' => [ + 'title' => 'Enumerated values for hyperparameters.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '0', + 'extendType' => 'true', + ], + 'required' => false, + 'backendName' => 'Enum', + ], + 'MinLength' => [ + 'title' => 'Minimum length of string.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + 'backendName' => 'MinLength', + ], + 'MaxLength' => [ + 'title' => 'Maximum length of string.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '30', + 'backendName' => 'MaxLength', + ], + 'Minimum' => [ + 'title' => 'Minimum value.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '0', + 'backendName' => 'Minimum', + ], + 'Maximum' => [ + 'title' => 'Maximum value.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '10', + 'backendName' => 'Maximum', + ], + 'ExclusiveMinimum' => [ + 'title' => 'Whether to exclude minimum values.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'ExclusiveMinimum', + ], + 'ExclusiveMaximum' => [ + 'title' => 'Whether to exclude maximum values', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'ExclusiveMaximum', + ], + 'Pattern' => [ + 'title' => 'Value Regex Pattern.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '^\\+?[1-9][0-9]*$', + 'backendName' => 'Pattern', + ], + ], + ], + 'JobSettings' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'BusinessUserId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '166924', + 'backendName' => 'BusinessUserId', + ], + 'Caller' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'SilkFlow', + 'backendName' => 'Caller', + ], + 'Tags' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'additionalProperties' => [ + 'visibility' => 'Public', + 'type' => 'string', + ], + 'backendName' => 'Tags', + ], + 'PipelineId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'pid-123456', + 'backendName' => 'PipelineId', + ], + 'EnableTideResource' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'EnableTideResource', + ], + 'EnableErrorMonitoringInAIMaster' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'false', + 'backendName' => 'EnableErrorMonitoringInAIMaster', + ], + 'ErrorMonitoringArgs' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '--enable-log-hang-detection true', + 'backendName' => 'ErrorMonitoringArgs', + ], + 'EnableRDMA' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'EnableRDMA', + ], + 'EnableOssAppend' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'EnableOssAppend', + ], + 'OversoldType' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'AcceptQuotaOverSold', + 'backendName' => 'OversoldType', + ], + 'AdvancedSettings' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'backendName' => 'AdvancedSettings', + ], + 'Driver' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '535.54.03', + 'backendName' => 'Driver', + ], + 'EnableSanityCheck' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'EnableSanityCheck', + ], + 'SanityCheckArgs' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '--sanity-check-timing=AfterJobFaultTolerant --sanity-check-timeout-ops=MarkJobFai', + 'backendName' => 'SanityCheckArgs', + ], + 'JobReservedMinutes' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '30', + 'backendName' => 'JobReservedMinutes', + ], + 'JobReservedPolicy' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'Always', + 'backendName' => 'JobReservedPolicy', + 'enum' => [ + 'Always', + 'OnFailure', + 'OnSucceed', + ], + ], + ], + 'parseType' => 'struct', + ], + 'Label' => [ + 'title' => 'A short description of struct', + 'description' => '', + 'visibility' => 'public', + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'title' => 'Key of label.', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'testAccTag', + 'backendName' => 'Key', + ], + 'Value' => [ + 'title' => 'Value of label.', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'nihao', + 'backendName' => 'Value', + ], + ], + ], + 'Location' => [ + 'title' => 'A short description of struct', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'LocationType' => [ + 'title' => 'Location type, such as OSS,Git.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'OSS', + 'backendName' => 'LocationType', + ], + 'LocationValue' => [ + 'title' => 'Location value.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'example' => 'oss://${bucket_name}.oss-${region}.aliyuncs.com/oss/location/path/', + 'backendName' => 'LocationValue', + ], + ], + ], + 'MachineGroup' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'MachineGroupID' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'mg1', + 'backendName' => 'MachineGroupID', + ], + 'ResourceGroupID' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'rgf0zhfqn1d4ity2', + 'backendName' => 'ResourceGroupID', + ], + 'EcsCount' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + 'backendName' => 'EcsCount', + ], + 'PaymentDuration' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '2', + 'backendName' => 'PaymentDuration', + ], + 'EcsSpec' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'ecs.c6.large', + 'backendName' => 'EcsSpec', + ], + 'GmtCreatedTime' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + 'backendName' => 'GmtCreatedTime', + ], + 'GmtExpiredTime' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '2023-08-22T00:00:00Z'."\n", + 'backendName' => 'GmtExpiredTime', + ], + 'GmtModifiedTime' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + 'backendName' => 'GmtModifiedTime', + ], + 'GmtStartedTime' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + 'backendName' => 'GmtStartedTime', + ], + 'PaymentType' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'PREPAY', + 'backendName' => 'PaymentType', + ], + 'PaymentDurationUnit' => [ + 'title' => 'region ID', + 'description' => 'region ID', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'Monthly', + 'backendName' => 'PaymentDurationUnit', + ], + 'Status' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'Success', + 'backendName' => 'Status', + ], + 'ReasonMessage' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '“”', + 'backendName' => 'ReasonMessage', + ], + 'ReasonCode' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '“”', + 'backendName' => 'ReasonCode', + ], + 'CreatorID' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '1612285282502324', + 'backendName' => 'CreatorID', + ], + 'SupportedDrivers' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '470.199.02', + 'extendType' => 'true', + ], + 'backendName' => 'SupportedDrivers', + 'itemName' => 'DriverVersions', + ], + 'DefaultDriver' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '470.199.02', + 'backendName' => 'DefaultDriver', + ], + 'OrderInstanceId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '“”', + 'backendName' => 'OrderInstanceId', + ], + ], + ], + 'Metric' => [ + 'title' => '', + 'description' => 'resource group metric', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'Time' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int64', + 'example' => 'rg17tmvwiokhzaxg', + 'backendName' => 'Time', + ], + 'Value' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '23000', + 'backendName' => 'Value', + ], + ], + ], + 'MetricDefinition' => [ + 'title' => 'Describe the output metric of the algorithm.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'title' => 'A brief description for the metric.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '', + 'backendName' => 'Description', + ], + 'Regex' => [ + 'title' => 'Regex use to match the metrics from job log.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'required' => true, + 'example' => '.*train:loss=([-+]?[0-9]*\\\\.?[0-9]+(?:[eE][-+]?[0-9]+)?).*', + 'backendName' => 'Regex', + ], + 'Name' => [ + 'title' => 'The name of the metric.', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'required' => true, + 'example' => 'loss', + 'backendName' => 'Name', + ], + ], + ], + 'Node' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'CreatorId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '281044699048527748', + 'backendName' => 'CreatorId', + ], + 'NodeName' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'lingjxxxx', + 'backendName' => 'NodeName', + ], + 'NodeType' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'ecs.c8i.xlarge', + 'backendName' => 'NodeType', + ], + 'AcceleratorType' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'CPU', + 'backendName' => 'AcceleratorType', + ], + 'CPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '4', + 'backendName' => 'CPU', + ], + 'Memory' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '8', + 'backendName' => 'Memory', + ], + 'GPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '0', + 'backendName' => 'GPU', + ], + 'GPUType' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '""', + 'backendName' => 'GPUType', + ], + 'NodeStatus' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'Ready', + 'backendName' => 'NodeStatus', + ], + 'ReasonCode' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '""', + 'backendName' => 'ReasonCode', + ], + 'ReasonMessage' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '""', + 'backendName' => 'ReasonMessage', + ], + 'OrderStatus' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'Ready', + 'backendName' => 'OrderStatus', + ], + 'ResourceGroupId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'rgf0zhfqn1d4ity2', + 'backendName' => 'ResourceGroupId', + ], + 'ResourceGroupName' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'test', + 'backendName' => 'ResourceGroupName', + ], + 'MachineGroupId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'mg1234456', + 'backendName' => 'MachineGroupId', + ], + 'GmtCreateTime' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + 'backendName' => 'GmtCreateTime', + ], + 'GmtModifiedTime' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '2024-07-10T11:49:47Z', + 'backendName' => 'GmtModifiedTime', + ], + 'GmtExpiredTime' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '2025-06-22T00:00:00Z'."\n", + 'backendName' => 'GmtExpiredTime', + ], + 'IsBound' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'false', + 'backendName' => 'IsBound', + ], + 'BoundQuotas' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/QuotaIdName', + ], + 'backendName' => 'BoundQuotas', + ], + 'RequestCPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '4', + 'backendName' => 'RequestCPU', + ], + 'RequestMemory' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '8', + 'backendName' => 'RequestMemory', + ], + 'RequestGPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '0', + 'backendName' => 'RequestGPU', + ], + 'LimitCPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '4', + 'backendName' => 'LimitCPU', + ], + 'LimitMemory' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '8', + 'backendName' => 'LimitMemory', + ], + 'LimitGPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '0', + 'backendName' => 'LimitGPU', + ], + 'PodNum' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2', + 'backendName' => 'PodNum', + ], + 'WorkloadNum' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '2', + 'backendName' => 'WorkloadNum', + ], + 'Users' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/UserInfo', + ], + 'backendName' => 'Users', + ], + ], + ], + 'NodeCordonParameters' => [ + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'QuotaId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'QuotaId', + ], + 'WorkspaceId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'WorkspaceId', + ], + 'Comment' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'Comment', + ], + ], + ], + 'NodeDrainParameters' => [ + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'PodNames' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'extendType' => 'true', + ], + 'backendName' => 'PodNames', + ], + 'PodFromSubProducts' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'extendType' => 'true', + ], + 'backendName' => 'PodFromSubProducts', + ], + ], + ], + 'NodeMetric' => [ + 'title' => '', + 'description' => 'resource group metric', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'NodeID' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '-i121212node', + 'backendName' => 'NodeID', + ], + 'Metrics' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/Metric', + ], + 'example' => '23000', + 'backendName' => 'Metrics', + ], + 'GPUType' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'GU108', + 'backendName' => 'GPUType', + ], + ], + ], + 'NodeOperationParameters' => [ + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'CordonParameters' => [ + 'visibility' => 'Public', + 'backendName' => 'CordonParameters', + '$ref' => '#/components/schemas/NodeCordonParameters', + ], + 'UncordonParameters' => [ + 'visibility' => 'Public', + 'backendName' => 'UncordonParameters', + '$ref' => '#/components/schemas/NodeUncordonParameters', + ], + 'DrainParameters' => [ + 'visibility' => 'Public', + 'backendName' => 'DrainParameters', + '$ref' => '#/components/schemas/NodeDrainParameters', + ], + ], + ], + 'NodeSpec' => [ + 'title' => '', + 'description' => 'NodeSpec', + 'visibility' => 'public', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'ecs.g6.4xlarge', + 'backendName' => 'Type', + ], + 'Count' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + 'backendName' => 'Count', + ], + ], + ], + 'NodeUncordonParameters' => [ + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'QuotaId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'QuotaId', + ], + 'WorkspaceId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'WorkspaceId', + ], + ], + ], + 'Quota' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'object', + 'properties' => [ + 'QuotaId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'quota12345', + 'backendName' => 'QuotaId', + ], + 'QuotaName' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'dlc-quota', + 'backendName' => 'QuotaName', + ], + 'ResourceType' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'ResourceType', + ], + 'ParentQuotaId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'ParentQuotaId', + ], + 'ResourceGroupIds' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'array', + 'items' => [ + 'visibility' => 'public', + 'type' => 'string', + 'extendType' => 'true', + ], + 'backendName' => 'ResourceGroupIds', + 'itemName' => 'ResourceGroupIdItem', + ], + 'AllocateStrategy' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'AllocateStrategy', + ], + 'Min' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'backendName' => 'Min', + '$ref' => '#/components/schemas/ResourceSpec', + ], + 'Description' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'Description', + ], + 'Labels' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'array', + 'items' => [ + 'visibility' => 'public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/Label', + ], + 'backendName' => 'Labels', + 'itemName' => 'LabelItem', + ], + 'CreatorId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'CreatorId', + ], + 'LatestOperationId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'LatestOperationId', + ], + 'Status' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'Status', + ], + 'ReasonCode' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'ReasonCode', + ], + 'ReasonMessage' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'ReasonMessage', + ], + 'GmtCreatedTime' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'GmtCreatedTime', + ], + 'GmtModifiedTime' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'GmtModifiedTime', + ], + 'QuotaDetails' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'backendName' => 'QuotaDetails', + '$ref' => '#/components/schemas/QuotaDetails', + ], + 'QuotaConfig' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'backendName' => 'QuotaConfig', + '$ref' => '#/components/schemas/QuotaConfig', + ], + 'Workspaces' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'array', + 'items' => [ + 'visibility' => 'public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/WorkspaceIdName', + ], + 'backendName' => 'Workspaces', + 'itemName' => 'WorkspaceItem', + ], + 'SubQuotas' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'array', + 'items' => [ + 'visibility' => 'public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/QuotaIdName', + ], + 'backendName' => 'SubQuotas', + 'itemName' => 'SubQuotaItem', + ], + 'QueueStrategy' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'backendName' => 'QueueStrategy', + ], + ], + ], + 'QuotaConfig' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'object', + 'properties' => [ + 'SupportRDMA' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'boolean', + 'example' => 'false', + 'backendName' => 'SupportRDMA', + ], + 'ClusterId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'ceeb3724255364664', + 'backendName' => 'ClusterId', + ], + 'UserVpc' => [ + 'description' => '', + 'visibility' => 'public', + 'backendName' => 'UserVpc', + '$ref' => '#/components/schemas/UserVpc', + ], + 'SupportGPUDrivers' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => '470.199.02', + 'extendType' => 'true', + ], + 'backendName' => 'SupportGPUDrivers', + ], + 'DefaultGPUDriver' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => '470.199.02', + 'backendName' => 'DefaultGPUDriver', + ], + 'ACS' => [ + 'title' => 'ACS conf', + 'description' => '', + 'visibility' => 'public', + 'backendName' => 'ACS', + '$ref' => '#/components/schemas/ACS', + ], + ], + ], + 'QuotaDetails' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'object', + 'properties' => [ + 'DesiredMinQuota' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'backendName' => 'DesiredMinQuota', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'ActualMinQuota' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'backendName' => 'ActualMinQuota', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'RequestedQuota' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'backendName' => 'RequestedQuota', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'UsedQuota' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'backendName' => 'UsedQuota', + '$ref' => '#/components/schemas/ResourceAmount', + ], + ], + ], + 'QuotaIdName' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'object', + 'properties' => [ + 'QuotaId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'quota12345', + 'backendName' => 'QuotaId', + ], + 'QuotaName' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'dlc-quota', + 'backendName' => 'QuotaName', + ], + ], + ], + 'ResourceAmount' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'object', + 'properties' => [ + 'CPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => '100', + 'backendName' => 'CPU', + ], + 'Memory' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => '100Gi', + 'backendName' => 'Memory', + ], + 'GPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => '16', + 'backendName' => 'GPU', + ], + 'GPUType' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'GPU', + 'backendName' => 'GPUType', + ], + ], + ], + 'ResourceGroup' => [ + 'title' => 'A short description of struct', + 'description' => 'pai resource group', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => 'pai resource group name', + 'description' => 'pai resource group name', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'RG1', + 'backendName' => 'Name', + ], + 'ResourceGroupID' => [ + 'title' => 'pai resource group id', + 'description' => 'pai resource group id', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'rg17tmvwiokhzaxg', + 'backendName' => 'ResourceGroupID', + ], + 'WorkspaceID' => [ + 'title' => 'pworkspace id', + 'description' => 'pworkspace id', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '23000', + 'backendName' => 'WorkspaceID', + ], + 'UserVpc' => [ + 'title' => 'UserVpc', + 'description' => 'UserVpc', + 'visibility' => 'Public', + 'backendName' => 'UserVpc', + '$ref' => '#/components/schemas/UserVpc', + ], + 'GmtCreatedTime' => [ + 'title' => 'pai resource created time', + 'description' => 'pai resource created time', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + 'backendName' => 'GmtCreatedTime', + ], + 'GmtModifiedTime' => [ + 'title' => 'GmtModified', + 'description' => 'GmtModified', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + 'backendName' => 'GmtModifiedTime', + ], + 'CreatorID' => [ + 'title' => 'CreatorID', + 'description' => 'CreatorID', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '1612285282502324', + 'backendName' => 'CreatorID', + ], + 'NodeCount' => [ + 'title' => 'NodeCount', + 'description' => 'NodeCount', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '3', + 'backendName' => 'NodeCount', + ], + ], + ], + 'ResourceSpec' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'object', + 'properties' => [ + 'NodeSpecs' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/NodeSpec', + ], + 'backendName' => 'NodeSpecs', + ], + ], + ], + 'UserInfo' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'UserId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '161222222222', + 'backendName' => 'UserId', + ], + 'UserName' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'test', + 'backendName' => 'UserName', + ], + ], + ], + 'UserViewMetric' => [ + 'title' => 'A short description of struct', + 'description' => 'resource group metric', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'rg17tmvwiokhzaxg', + 'backendName' => 'ResourceGroupID', + ], + 'TotalCPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1000', + 'backendName' => 'TotalCPU', + ], + 'CPUUsageRate' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'CPUUsageRate', + ], + 'GPUUsageRate' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'GPUUsageRate', + ], + 'TotalMemory' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int64', + 'backendName' => 'TotalMemory', + ], + 'TotalGPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int32', + 'backendName' => 'TotalGPU', + ], + 'MemoryUsageRate' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'MemoryUsageRate', + ], + 'RequestCPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + 'backendName' => 'RequestCPU', + ], + 'RequestGPU' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + 'backendName' => 'RequestGPU', + ], + 'RequestMemory' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '102400000', + 'backendName' => 'RequestMemory', + ], + 'NetworkInputRate' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'NetworkInputRate', + ], + 'NetworkOutputRate' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'NetworkOutputRate', + ], + 'DiskReadRate' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'DiskReadRate', + ], + 'DiskWriteRate' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'DiskWriteRate', + ], + 'JobType' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'JobType', + ], + 'UserId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'backendName' => 'UserId', + ], + 'CPUNodeNumber' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int32', + 'backendName' => 'CPUNodeNumber', + ], + 'GPUNodeNumber' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'integer', + 'format' => 'int32', + 'backendName' => 'GPUNodeNumber', + ], + 'CpuJobNames' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'extendType' => 'true', + ], + 'backendName' => 'CpuJobNames', + ], + 'GpuJobNames' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'extendType' => 'true', + ], + 'backendName' => 'GpuJobNames', + ], + 'NodeNames' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'extendType' => 'true', + ], + 'backendName' => 'NodeNames', + ], + 'CpuNodeNames' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'extendType' => 'true', + ], + 'backendName' => 'CpuNodeNames', + ], + 'GpuNodeNames' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'extendType' => 'true', + ], + 'backendName' => 'GpuNodeNames', + ], + ], + ], + 'UserVpc' => [ + 'title' => 'A short description of struct', + 'description' => 'UserVpc', + 'visibility' => 'public', + 'type' => 'object', + 'properties' => [ + 'VpcId' => [ + 'title' => 'VPC ID', + 'description' => 'VPC ID', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'vpc-abcdef****', + 'backendName' => 'VpcId', + ], + 'SwitchId' => [ + 'title' => 'VSW ID', + 'description' => 'VSW ID', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'vs-abcdef****', + 'backendName' => 'SwitchId', + ], + 'SecurityGroupId' => [ + 'title' => 'SecurityGroupID', + 'description' => 'SecurityGroupID', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'sg-abcdef****', + 'backendName' => 'SecurityGroupId', + ], + 'ExtendedCIDRs' => [ + 'title' => 'ExtendedCIDRs', + 'description' => 'ExtendedCIDRs', + 'visibility' => 'public', + 'type' => 'array', + 'items' => [ + 'description' => 'one cidr', + 'visibility' => 'public', + 'type' => 'string', + 'example' => '"192.168.0.1/24"', + 'extendType' => 'true', + ], + 'backendName' => 'ExtendedCIDRs', + ], + 'RoleArn' => [ + 'title' => 'RoleArn', + 'description' => 'RoleArn', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'acs:ram::25xxxx:role/AliyunPAIDLCDefaultRole', + 'backendName' => 'RoleArn', + ], + 'DefaultRoute' => [ + 'title' => 'DefaultRoute', + 'description' => 'DefaultRoute', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'eth0', + 'backendName' => 'DefaultRoute', + ], + ], + ], + 'WorkspaceIdName' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'object', + 'properties' => [ + 'WorkspaceId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'public', + 'type' => 'string', + 'example' => 'ws123456', + 'backendName' => 'WorkspaceId', + ], + ], + ], + 'WorkspaceSpec' => [ + 'title' => 'A short description of struct', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'SpecName' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'spec_test', + 'backendName' => 'SpecName', + ], + 'IsGuaranteedValid' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'IsGuaranteedValid', + ], + 'IsOverSoldValid' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'boolean', + 'example' => 'true', + 'backendName' => 'IsOverSoldValid', + ], + 'Spec' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'backendName' => 'Spec', + '$ref' => '#/components/schemas/ResourceAmount', + ], + 'CodeType' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '""', + 'backendName' => 'CodeType', + ], + 'Code' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '""', + 'backendName' => 'Code', + ], + 'Reason' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '""', + 'backendName' => 'Reason', + ], + ], + ], + 'WorkspaceSpecs' => [ + 'title' => 'A short description of struct', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'object', + 'properties' => [ + 'WorkspaceId' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => '122421', + 'backendName' => 'WorkspaceId', + ], + 'Product' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'string', + 'example' => 'DLC', + 'backendName' => 'Product', + ], + 'Specs' => [ + 'title' => '', + 'description' => '', + 'visibility' => 'Public', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'visibility' => 'Public', + 'extendType' => 'true', + '$ref' => '#/components/schemas/WorkspaceSpec', + ], + 'backendName' => 'Specs', + ], + ], + ], + ], + ], + 'apis' => [ + 'UpdateResourceGroup' => [ + 'summary' => '更新Resource Group', + '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' => '', + 'type' => 'object', + 'properties' => [ + 'UserVpc' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/UserVpc', + ], + 'Unbind' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'prophet', + ], + 'Description' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'test_new_havpn_tf', + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'FFB1D4B4-B253-540A-9B3B-AA711C48A1B7', + ], + 'ResourceGroupID' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FFB1D4B4-B253-540A-9B3B-AA711C48A1B7\\",\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\"\\n}","type":"json"}]', + 'title' => 'UpdateResourceGroup', + ], + 'GetResourceGroupTotal' => [ + 'summary' => 'get resource group total resource by group id', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'totalCPU' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'totalMemory' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '300', + ], + 'totalGPU' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '24', + ], + 'totalGPUInfos' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + '$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' => 'GetResourceGroupTotal', + ], + 'ListResourceGroups' => [ + 'summary' => 'list resource group', + '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' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'desc', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '用于排序的字段名,可选字段名:DisplayName, GmtCreated, GmtModified,RegionID Duration PricingCycle PayType', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'DisplayName', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'title' => 'resource group的状态', + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Ecs', + ], + ], + [ + 'name' => 'ResourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Lingjun', + ], + ], + [ + 'name' => 'ResourceGroupIDs', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'HasResource', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + ], + ], + [ + 'name' => 'Versions', + 'in' => 'query', + 'schema' => [ + 'title' => '按照版本搜索。', + 'type' => 'string', + 'example' => '1.0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + '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' => '', + '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' => 'ListResourceGroups', + ], + 'GetResourceGroupRequest' => [ + 'summary' => 'get resource group requested resource by resource group id', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + [ + 'name' => 'PodStatus', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Running', + 'default' => 'Running', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestCPU' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'requestMemory' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2', + ], + 'requestGPU' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '8', + ], + 'requestGPUInfos' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + '$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' => 'GetResourceGroupRequest', + ], + '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' => null, + ], + 'GetNodeMetrics' => [ + 'summary' => 'get resource group node metrics', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + [ + 'name' => 'GPUType', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => '1h', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + '$ref' => '#/components/schemas/NodeMetric', + ], + ], + 'ResourceGroupID' => [ + 'description' => '', + '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' => 'GetNodeMetrics', + ], + 'ListResourceGroupMachineGroups' => [ + 'summary' => 'list machine groups', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => '1612285282502326', + ], + ], + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'EcsSpec', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'DESC', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtCreatedTime', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Ready', + ], + ], + [ + 'name' => 'OrderInstanceId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '236553689400333', + ], + ], + [ + 'name' => 'MachineGroupIDs', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + ], + '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' => '', + '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' => 'ListResourceGroupMachineGroups', + ], + 'GetUserViewMetrics' => [ + 'summary' => 'get user view metrics', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'DESC', + ], + ], + [ + 'name' => 'UserId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '123456', + ], + ], + [ + 'name' => 'TimeStep', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '1h', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupId' => [ + 'description' => '', + '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' => 'GetUserViewMetrics', + ], + 'GetResourceGroupMachineGroup' => [ + 'summary' => 'get machine group', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'mgmioirqjgw6c5lg', + ], + ], + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'rgf0zhfqn1d4ity2', + ], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '对应新增标签列表,最多包含20个子项', + 'description' => '', + 'type' => 'array', + 'items' => [ + '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, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'MachineGroupID' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'mgmioirqjgw6c5lg', + ], + 'ResourceGroupID' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'rgf0zhfqn1d4ity2', + ], + 'Status' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Ready', + ], + 'PaymentType' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'PREPAY', + ], + 'PaymentDurationUnit' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Month', + ], + 'PaymentDuration' => [ + 'description' => '', + 'type' => 'string', + 'example' => '1', + ], + 'EcsSpec' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'ecs.c6.large', + ], + 'EcsCount' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + 'Cpu' => [ + 'description' => '', + 'type' => 'string', + 'example' => '2', + ], + 'Gpu' => [ + 'description' => '', + 'type' => 'string', + 'example' => '8', + ], + 'GpuType' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'A100', + ], + 'Memory' => [ + 'description' => '', + 'type' => 'string', + 'example' => '64', + ], + 'SupportedDrivers' => [ + 'description' => '', + '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' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'TagKey' => [ + 'title' => '标签键', + 'description' => '', + 'type' => 'string', + 'example' => 'TestKey', + ], + 'TagValue' => [ + 'title' => '标签值', + 'description' => '', + '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' => 'GetResourceGroupMachineGroup', + ], + 'GetResourceGroup' => [ + 'summary' => 'get resource group by group id', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'rgmhpp8ib5lprq9k', + ], + ], + [ + 'name' => 'IsAIWorkspaceDataEnabled', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '对应新增标签列表,最多包含20个子项', + 'description' => '', + 'type' => 'array', + 'items' => [ + '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, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'GmtCreatedTime' => [ + 'title' => 'pai resource created time', + 'description' => '', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z'."\n", + ], + 'GmtModifiedTime' => [ + 'title' => 'pai resource group modified time', + 'description' => '', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z'."\n", + ], + 'RequestId' => [ + 'title' => 'request id', + 'description' => '', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E'."\n", + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'TestResourceGroup', + ], + 'CreatorID' => [ + 'description' => '', + 'type' => 'string', + 'example' => '1612285282502324', + ], + 'WorkspaceID' => [ + 'description' => '', + 'type' => 'string', + 'example' => '35201', + ], + 'Status' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Ready', + ], + 'UserVpc' => [ + 'description' => '', + '$ref' => '#/components/schemas/UserVpc', + ], + 'ComputingResourceProvider' => [ + 'description' => '', + 'type' => 'string', + 'enumValueTitles' => [ + 'Ecs' => 'Ecs', + 'Lingjun' => 'Lingjun', + ], + 'example' => 'ECS', + ], + 'ClusterID' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'cb2c7bde30b774e46a329c', + ], + 'SupportRDMA' => [ + 'description' => '', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ResourceType' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Ecs', + ], + 'Description' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'testDescription', + ], + 'Tags' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'TagKey' => [ + 'title' => '标签键', + 'description' => '', + 'type' => 'string', + 'example' => 'testKey', + ], + 'TagValue' => [ + 'title' => '标签值', + 'description' => '', + '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' => 'GetResourceGroup', + ], + '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' => null, + ], + 'CreateResourceGroup' => [ + 'summary' => '创建资源组', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'testResourceGroup', + ], + 'Description' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'test_api_report', + ], + 'UserVpc' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/UserVpc', + ], + 'ResourceType' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Ecs', + ], + 'ComputingResourceProvider' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Ecs', + ], + 'Tag' => [ + 'title' => '对应新增标签列表,最多包含20个子项', + 'description' => '', + 'type' => 'array', + 'items' => [ + '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, + ], + 'Version' => [ + 'title' => '资源组版本,当前只在resource type为ECS时生效。', + 'type' => 'string', + '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' => '', + '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' => 'CreateResourceGroup', + ], + 'DeleteResourceGroup' => [ + 'summary' => '删除资源组', + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + 'ResourceGroupID' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'rgvl9d6utwcscukh', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"ResourceGroupID\\": \\"rgvl9d6utwcscukh\\"\\n}","type":"json"}]', + 'title' => 'DeleteResourceGroup', + ], + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', + ], + 'AlgorithmId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'algo-xsldfvu1334', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\"\\n}","type":"json"}]', + 'title' => 'CreateAlgorithm', + ], + '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' => '', + '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' => '', + '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' => 'CreateAlgorithmVersion', + ], + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => 'FFB1D4B4-B253-540A-9B3B-AA711C48A1B7', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FFB1D4B4-B253-540A-9B3B-AA711C48A1B7\\"\\n}","type":"json"}]', + 'title' => 'DeleteAlgorithm', + ], + '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' => '', + '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' => '', + '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' => 'DeleteAlgorithmVersion', + ], + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + 'AlgorithmDescription' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'AlgorithmId' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => '12345', + ], + 'UserId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '123456789', + ], + 'TenantId' => [ + 'description' => '', + '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' => 'GetAlgorithm', + ], + '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' => '', + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => '123456789', + ], + 'TenantId' => [ + 'description' => '', + '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' => 'GetAlgorithmVersion', + ], + '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' => '', + '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' => '', + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => '123456789', + ], + 'WorkspaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '12345', + ], + 'DisplayName' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'LLM Train', + ], + ], + ], + ], + 'TotalCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '4', + ], + 'RequestId' => [ + 'description' => '', + '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' => 'ListAlgorithms', + ], + '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' => '', + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => '123456789', + ], + 'UserId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '123456789', + ], + ], + ], + ], + 'TotalCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '23', + ], + 'RequestId' => [ + 'description' => '', + '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' => 'ListAlgorithmVersions', + ], + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', + ], + 'AlgorithmId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'algo-sidjc8134hv', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\"\\n}","type":"json"}]', + 'title' => 'UpdateAlgorithm', + ], + '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' => '', + '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' => '', + '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' => 'UpdateAlgorithmVersion', + ], + 'CreateTrainingJob' => [ + 'summary' => '创建TrainingJob', + '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' => '', + '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' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + ], + 'EcsSpec' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'ecs.gn5-c8g1.2xlarge', + ], + 'ResourceId' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'quotam670lixikcs', + ], + 'InstanceCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + ], + 'InstanceSpec' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'CPU' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '8', + ], + 'Memory' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '32', + ], + 'SharedMemory' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '32', + ], + 'GPU' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '1', + ], + 'GPUType' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'V100', + ], + ], + 'required' => false, + ], + 'SpotSpec' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'SpotStrategy' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'SpotWithPriceLimit', + ], + 'SpotDiscountLimit' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'd-475megosidivjfgfq6', + ], + 'VersionName' => [ + 'type' => 'string', + ], + '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' => [ + 'type' => 'string', + ], + ], + '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' => '', + '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, + ], + 'Scheduler' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'MaxRunningTimeInSeconds' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '0', + ], + 'MaxRunningTimeInMinutes' => [ + 'type' => 'integer', + 'format' => 'int64', + ], + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => '12345', + ], + 'AlgorithmSpec' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/AlgorithmSpec', + ], + 'CodeDir' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/Location', + ], + 'RoleArn' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'acs:ram::1157703270994901:role/aliyunserviceroleforpaiworkspace', + ], + 'UserVpc' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'VpcId' => [ + 'description' => 'VPC ID。', + 'type' => 'string', + 'required' => false, + 'example' => 'vpc-dxiflssjx978sl', + ], + 'SwitchId' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'vs-icrc813vdsfol', + ], + 'SecurityGroupId' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'eth0', + ], + ], + 'required' => false, + ], + 'Settings' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Priority' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + 'EnableErrorMonitoringInAIMaster' => [ + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + 'ErrorMonitoringArgs' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '--enable-log-hang-detection true', + ], + 'AIMasterType' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'ecs.c6.large', + ], + ], + 'required' => false, + '$ref' => '#/components/schemas/JobSettings', + ], + 'ExperimentConfig' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'exp-ds9aefia90v', + ], + ], + 'required' => false, + ], + 'Environments' => [ + 'description' => '', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'string', + 'description' => '', + 'example' => 'debug=true', + ], + ], + 'PythonRequirements' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'numpy', + ], + 'required' => false, + ], + 'Priority' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'AssignNodeSpec' => [ + '$ref' => '#/components/schemas/AssignNodeSpec', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'TrainingJobId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'traineyfz0m2hsfv', + ], + 'RequestId' => [ + 'description' => '', + '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' => 'CreateTrainingJob', + ], + 'CreateInstanceWebTerminal' => [ + 'summary' => '创建WebTerminal', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'train1nc6686x36b', + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'train1nc6686x36b-master-0', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'WebTerminalId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'wss://pai-dlc-proxy-cn-shanghai.aliyun.com/terminal/t1157703270994901/dlcmjzjt1dxbmx4h/dlcmjzjt1dxbmx4h-worker-0?Token=******', + ], + 'RequestId' => [ + 'description' => '', + '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' => 'CreateInstanceWebTerminal', + ], + 'CheckInstanceWebTerminal' => [ + 'summary' => '检查WebTerminal', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'traineyfz0m2hsfv', + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\"\\n}","type":"json"}]', + 'title' => 'CheckInstanceWebTerminal', + ], + 'DeleteTrainingJob' => [ + 'summary' => '删除一个TrainingJob', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'train76rcaupa2cz', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '4cc83062-9bcb-4ab3-979e-2e571a35834f', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4cc83062-9bcb-4ab3-979e-2e571a35834f\\"\\n}","type":"json"}]', + 'title' => 'DeleteTrainingJob', + ], + 'DeleteTrainingJobLabels' => [ + 'summary' => '删除TrainingJob的Labels', + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => 'DeleteTrainingJobLabels', + ], + 'GetToken' => [ + 'summary' => '调用GetToken获取临时鉴权信息', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'traincclrt205dcs', + ], + ], + [ + 'name' => 'ExpireTime', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6', + ], + 'Token' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'ql4OU830nJaF17LP6KTry4a9DvnjIXHP', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\",\\n \\"Token\\": \\"ql4OU830nJaF17LP6KTry4a9DvnjIXHP\\"\\n}","type":"json"}]', + 'title' => 'GetToken', + ], + 'GetTrainingJob' => [ + 'summary' => '获取TrainingJob的详情', + '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' => '', + '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' => '', + 'type' => 'string', + 'example' => 'd-8o0hh35po15ejcdq2p', + ], + 'VersionName' => [ + 'type' => 'string', + ], + ], + ], + ], + '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' => '', + 'type' => 'string', + 'example' => 'traini6hhxiq69eo', + ], + 'Scheduler' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'MaxRunningTimeInSeconds' => [ + 'description' => '', + 'type' => 'string', + 'format' => 'int64', + 'example' => '0', + ], + 'MaxRunningTimeInMinutes' => [ + 'type' => 'string', + ], + ], + ], + 'ReasonMessage' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'None', + ], + 'WorkspaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '86995', + ], + 'ComputeResource' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'EcsCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'EcsSpec' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'ecs.gn5-c8g1.2xlarge', + ], + 'ResourceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'quotam670lixikcl', + ], + 'ResourceName' => [ + 'type' => 'string', + ], + 'InstanceCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'InstanceSpec' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'CPU' => [ + 'description' => '', + 'type' => 'string', + 'example' => '8', + ], + 'Memory' => [ + 'description' => '', + 'type' => 'string', + 'example' => '32', + ], + 'SharedMemory' => [ + 'description' => '', + 'type' => 'string', + 'example' => '32', + ], + 'GPU' => [ + 'description' => '', + 'type' => 'string', + 'example' => '1', + ], + 'GPUType' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'V100', + ], + ], + ], + 'UseSpotInstance' => [ + 'description' => '', + 'type' => 'boolean', + 'example' => 'true', + ], + 'SpotSpec' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'SpotStrategy' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'SpotWithPriceLimit', + ], + 'SpotDiscountLimit' => [ + 'description' => '', + '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' => '', + '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' => [ + 'type' => 'string', + ], + 'VersionName' => [ + 'type' => 'string', + ], + ], + ], + ], + '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' => '', + ], + 'UserId' => [ + 'description' => '', + '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' => '', + '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' => '', + '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' => '', + 'type' => 'object', + 'properties' => [ + 'VpcId' => [ + 'description' => 'VPC ID。', + 'type' => 'string', + 'example' => 'vpc-abcdef****', + ], + 'SwitchId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'vs-abcdef****', + ], + 'SecurityGroupId' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'model', + ], + ], + ], + 'Settings' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Priority' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'EnableErrorMonitoringInAIMaster' => [ + 'description' => '', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrorMonitoringArgs' => [ + 'description' => '', + 'type' => 'string', + 'example' => '--enable-log-hang-detection true', + ], + 'AIMasterType' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'ecs.c6.large', + ], + ], + '$ref' => '#/components/schemas/JobSettings', + ], + 'ExperimentConfig' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ExperimentId' => [ + 'description' => '', + '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' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'torch>=2.2.0', + ], + ], + 'Priority' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + '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' => 'GetTrainingJob', + ], + 'GetTrainingJobErrorInfo' => [ + 'summary' => '获取Training Job的算法错误信息', + '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' => '', + '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' => '', + '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' => 'GetTrainingJobErrorInfo', + ], + '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' => '', + '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' => '', + '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' => 'GetTrainingJobLatestMetrics', + ], + 'ListTrainingJobs' => [ + 'summary' => '获取TrainingJob的列表', + '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' => '', + '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' => '', + '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' => '', + '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' => '', + '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' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'EcsSpec' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'ecs.gn5-c8g1.2xlarge', + ], + 'ResourceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'quotam670lixikcl', + ], + 'ResourceName' => [ + 'type' => 'string', + ], + 'InstanceCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'InstanceSpec' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'CPU' => [ + 'description' => '', + 'type' => 'string', + 'example' => '8', + ], + 'Memory' => [ + 'description' => '', + 'type' => 'string', + 'example' => '32', + ], + 'SharedMemory' => [ + 'description' => '', + 'type' => 'string', + 'example' => '32', + ], + 'GPU' => [ + 'description' => '', + 'type' => 'string', + 'example' => '1', + ], + 'GPUType' => [ + 'description' => '', + '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' => '', + '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' => '', + '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' => '', + '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' => '', + ], + 'TrainingJobId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'train1layo6js8ra', + ], + 'TrainingJobName' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'qwen2-7b', + ], + 'UserId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '123456789', + ], + 'WorkspaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '1234', + ], + 'RoleArn' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'acs:ram::{accountID}:role/{roleName}', + ], + 'IsTempAlgo' => [ + 'title' => '是否使用了临时算法。', + 'description' => '', + 'type' => 'boolean', + 'example' => 'true', + ], + 'UserVpc' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'VpcId' => [ + 'description' => 'VPC ID。', + 'type' => 'string', + 'example' => 'vpc-abcdef****', + ], + 'SwitchId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'vs-abcdef****', + ], + 'SecurityGroupId' => [ + 'description' => '', + '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' => '', + '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' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'torch>=2.2.0', + ], + ], + 'DlcJobId' => [ + 'type' => 'string', + ], + 'AssignNodeSpec' => [ + '$ref' => '#/components/schemas/AssignNodeSpec', + ], + ], + ], + ], + 'RequestId' => [ + 'description' => '', + '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' => 'ListTrainingJobs', + ], + 'ListTrainingJobEvents' => [ + 'summary' => '获取指定TrainingJob的事件。', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'traineyfz0m2hsfv', + ], + ], + [ + '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' => '', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间', + 'description' => '', + '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' => '', + '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' => 'ListTrainingJobEvents', + ], + 'ListTrainingJobInstanceEvents' => [ + 'summary' => '获取指定Instance(TrainingJob的运行单元)的日志。', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'train76rcaupa2cz', + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'allowEmptyValue' => false, + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间', + 'description' => '', + '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' => '', + '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' => 'ListTrainingJobInstanceEvents', + ], + 'ListTrainingJobInstanceMetrics' => [ + 'summary' => '获取Training Job实例的Metrics', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'trains930928remn', + ], + ], + [ + 'name' => 'MetricType', + 'in' => 'query', + 'schema' => [ + 'title' => '分页,从1开始,默认1', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'GpuCoreUsage', + ], + ], + [ + 'name' => 'TimeStep', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '10s', + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'trains930928remn-master-0', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'title' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间', + 'description' => '', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间', + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + 'InstanceMetrics' => [ + 'title' => '符合过滤条件的Metrics数量', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'InstanceId' => [ + 'type' => 'string', + ], + 'Metrics' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Time' => [ + 'type' => 'string', + ], + 'Value' => [ + 'type' => 'number', + 'format' => 'double', + ], + ], + ], + ], + 'NodeName' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + ], + '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' => 'ListTrainingJobInstanceMetrics', + ], + 'ListTrainingJobLogs' => [ + 'summary' => '获取Training Job的日志', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'train129f212o89d', + ], + ], + [ + 'name' => 'WorkerId', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间', + 'description' => '', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + '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' => 'ListTrainingJobLogs', + ], + 'ListTrainingJobMetrics' => [ + 'summary' => '获取Training Job的Metrics', + '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' => '', + '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' => '', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间', + 'description' => '', + 'type' => 'string', + 'format' => 'iso8601', + 'required' => false, + 'example' => '2020-11-08T16:00:00Z', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => 'Metrics的时间顺序,有ASC和DESC', + 'description' => '', + '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' => '', + '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' => 'ListTrainingJobMetrics', + ], + 'ListTrainingJobOutputModels' => [ + 'summary' => '获取Training Job 产出的所有模型信息', + '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' => '', + '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' => [ + 'type' => 'string', + ], + 'Value' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'StableDiffusion', + ], + ], + ], + ], + 'Metrics' => [ + 'description' => '', + 'type' => 'object', + 'example' => '{'."\n" + .' "lr": 0.000001,'."\n" + .' "train_loss": 2.6345'."\n" + .'}', + ], + 'TrainingSpec' => [ + 'description' => '', + 'type' => 'object', + 'example' => '{}', + ], + 'InferenceSpec' => [ + 'description' => '', + 'type' => 'object', + 'example' => '{}', + ], + 'EvaluationSpec' => [ + 'description' => '', + 'type' => 'object', + 'example' => '{}', + ], + 'SourceType' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'PAIFlow', + ], + 'SourceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf', + ], + 'CompressionSpec' => [ + 'type' => 'object', + ], + ], + ], + ], + ], + ], + ], + ], + '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' => 'ListTrainingJobOutputModels', + ], + 'StopTrainingJob' => [ + 'summary' => '停止一个TrainingJob', + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/stop', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]', + 'title' => 'StopTrainingJob', + ], + 'UpdateTrainingJobLabels' => [ + 'summary' => '更新一个TrainingJob的Labels', + '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' => '', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'train76rcaupa2cz', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\"\\n}","type":"json"}]', + 'title' => 'UpdateTrainingJobLabels', + ], + 'CreateQuota' => [ + 'summary' => '创建Quota', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'test-quota', + ], + 'ResourceType' => [ + 'title' => 'Quota资源类型(Lingjun/ECS),默认值ECS', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'ECS', + ], + 'ParentQuotaId' => [ + 'title' => '父QuotaId'."\n" + .'1. 如果父QuotaId为空,表示创建一个根Quota,从专属资源组中分配机器'."\n" + .'2. 如果父QuotaId不为空,表示创建一个子Quota,资源从根Quota中绑定的Nodes中分配资源', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'quota1ci8g793pgm', + ], + 'ResourceGroupIds' => [ + 'title' => '专有资源组列表'."\n" + .'约束:'."\n" + .'1. 只有根Quota允许从(父QuotaId为空)资源组划分机器'."\n" + .'2. 指定的资源组列表中的vpc配置需要一致', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'rgl593id9qqwkmbr', + ], + 'required' => false, + ], + 'AllocateStrategy' => [ + 'title' => 'Quota分配策略,目前仅支持ByNodeSpecs', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'ByNodeSpecs', + ], + 'Min' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/ResourceSpec', + ], + 'Description' => [ + 'title' => 'Quota描述', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'this is a test quota', + ], + 'Labels' => [ + 'title' => 'Quota标签', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/Label', + ], + 'required' => false, + ], + 'QuotaConfig' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/QuotaConfig', + ], + 'QueueStrategy' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'PaiStrategyIntelligent', + ], + 'ClusterSpec' => [ + 'title' => '资源配额原生集群的规格', + '$ref' => '#/components/schemas/ClusterSpec', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '', + 'type' => 'string', + 'example' => 'CBF05F13-B24C-5129-9048-4FA684DCD579', + ], + 'QuotaId' => [ + 'title' => 'Quota Id', + 'description' => 'Quota 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' => 'CreateQuota', + ], + 'ListQuotas' => [ + 'summary' => '获取Quota列表', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'quotajradxh43rgb', + ], + ], + [ + 'name' => 'ResourceType', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'ECS', + ], + ], + [ + 'name' => 'LayoutMode', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'ParentQuotaId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'quotajradxh43rgb', + ], + ], + [ + 'name' => 'QuotaIds', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'quota1ci8g793pgm,quotajradxh43rgb', + ], + ], + [ + 'name' => 'WorkspaceIds', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '21345,38727', + ], + ], + [ + 'name' => 'Statuses', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Creating', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '20', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'status', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'desc', + ], + ], + [ + 'name' => 'Labels', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'official=true,gpu=false', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + ], + ], + [ + 'name' => 'WorkspaceName', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'HasResource', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'Versions', + 'in' => 'query', + 'schema' => [ + 'title' => '按照版本信息搜索。', + 'type' => 'string', + 'example' => '1.0', + ], + ], + [ + 'name' => 'ClusterType', + 'in' => 'query', + 'schema' => [ + 'title' => '集群类型', + 'type' => 'string', + 'example' => 'RayCluster', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + 'Quotas' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + '$ref' => '#/components/schemas/Quota', + ], + ], + 'TotalCount' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + ], + ], + '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' => 'ListQuotas', + ], + 'GetQuota' => [ + 'summary' => '获取Quota', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'quota1ci8g793pgm', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + ], + ], + [ + 'name' => 'WithNodeMeta', + 'in' => 'query', + 'schema' => [ + 'title' => '是否返回绑定到Quota的节点meta信息', + 'type' => 'boolean', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '', + 'type' => 'string', + 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', + ], + 'QuotaId' => [ + 'title' => 'Quota Id', + 'description' => 'Quota Id', + 'type' => 'string', + 'example' => 'quotajradxh43rgb', + ], + 'QuotaName' => [ + 'title' => 'Quota名称', + 'description' => '', + 'type' => 'string', + 'example' => 'test-quota', + ], + 'ResourceType' => [ + 'title' => 'Quota资源类型', + 'description' => '', + 'type' => 'string', + 'example' => 'ECS', + ], + 'ParentQuotaId' => [ + 'title' => '父Quota Id', + 'description' => '', + 'type' => 'string', + 'example' => 'quota1ci8g793pgm', + ], + 'ResourceGroupIds' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'rg69rj0leslwdnbe', + ], + ], + 'AllocateStrategy' => [ + 'title' => '资源分配策略', + 'description' => '', + 'type' => 'string', + 'example' => 'ByNodeSpec', + ], + 'Min' => [ + 'description' => '', + '$ref' => '#/components/schemas/ResourceSpec', + ], + 'Description' => [ + 'title' => 'Quota描述', + 'description' => '', + 'type' => 'string', + 'example' => 'this is a test quota', + ], + 'Labels' => [ + 'title' => 'Quota标签', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + '$ref' => '#/components/schemas/Label', + ], + ], + 'CreatorId' => [ + 'title' => 'Quota创建人Id', + 'description' => '', + 'type' => 'string', + 'example' => '18846926616', + ], + 'LatestOperationId' => [ + 'title' => 'Quota最近变更Id', + 'description' => '', + 'type' => 'string', + 'example' => 'operation1234', + ], + 'Status' => [ + 'title' => 'Quota状态', + 'description' => '', + 'type' => 'string', + 'example' => 'Ready', + ], + 'ReasonCode' => [ + 'title' => '错误码', + 'description' => '', + 'type' => 'string', + 'example' => '“”', + ], + 'ReasonMessage' => [ + 'title' => '错误原因', + 'description' => '', + 'type' => 'string', + 'example' => '“”', + ], + 'GmtCreatedTime' => [ + 'title' => 'Quota创建时间', + 'description' => '', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'GmtModifiedTime' => [ + 'title' => 'Quota修改时间', + 'description' => '', + 'type' => 'string', + 'example' => '2023-06-22T00:00:00Z', + ], + 'QuotaDetails' => [ + 'title' => 'Quota详情', + 'description' => '', + '$ref' => '#/components/schemas/QuotaDetails', + ], + 'QuotaConfig' => [ + 'description' => '', + '$ref' => '#/components/schemas/QuotaConfig', + ], + 'Workspaces' => [ + 'title' => 'Quota关联的工作空间', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + '$ref' => '#/components/schemas/WorkspaceIdName', + ], + ], + 'SubQuotas' => [ + 'title' => 'Quota的子Quota列表', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + '$ref' => '#/components/schemas/QuotaIdName', + ], + ], + 'QueueStrategy' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'PaiStrategyIntelligent', + ], + 'Version' => [ + 'title' => '版本信息。当resource type为ECS时生效。', + 'type' => 'string', + 'example' => '1.0', + ], + 'HyperZones' => [ + 'title' => '高性能网络区列表', + 'type' => 'array', + 'items' => [ + 'title' => '高性能网络区ID', + 'type' => 'string', + ], + ], + 'QuotaCluster' => [ + 'title' => '由配额内资源组成的集群规格与状态', + '$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' => 'GetQuota', + ], + 'UpdateQuota' => [ + 'summary' => '更新Quota', + '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' => '', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'this is a test quota', + ], + 'Labels' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/Label', + ], + 'required' => false, + ], + 'QueueStrategy' => [ + 'type' => 'string', + ], + 'QuotaConfig' => [ + '$ref' => '#/components/schemas/QuotaConfig', + ], + 'QuotaName' => [ + 'type' => 'string', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '', + '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' => 'UpdateQuota', + ], + 'ScaleQuota' => [ + 'summary' => '扩缩容Quota', + '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' => '', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupIds' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'rg-aek2nxrabqavely', + ], + 'required' => false, + ], + 'Min' => [ + 'description' => '', + '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' => '', + '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' => 'ScaleQuota', + ], + 'DeleteQuota' => [ + 'summary' => '删除Quota', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'quota1ci8g793pgm', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '', + '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' => 'DeleteQuota', + ], + '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' => 'quota1y9qarqj2i7', + ], + ], + [ + 'name' => 'WorkspaceIds', + 'in' => 'query', + 'schema' => [ + 'title' => '查询指定的Workspace下的workload的排队信息', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '186692', + ], + ], + [ + 'name' => 'WorkloadType', + 'in' => 'query', + 'schema' => [ + 'title' => '查询指定子产品的实例的排队信息', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'dlc', + ], + ], + [ + 'name' => 'WorkloadIds', + 'in' => 'query', + 'schema' => [ + 'title' => '查询指定workload id的排队信息', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'dlc12344556', + ], + ], + [ + 'name' => 'BeforeWorkloadId', + 'in' => 'query', + 'schema' => [ + 'title' => '查询队列中指定workload Id之前的实例的排队信息', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'dsw65443322', + ], + ], + [ + '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' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + 'default' => 'true', + ], + ], + [ + 'name' => 'SubQuotaIds', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'quota12344666,quota64432233', + ], + ], + [ + 'name' => 'UserIds', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '29043893812,23829093093', + ], + ], + [ + 'name' => 'NodeName', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'lrn48278127617', + ], + ], + [ + 'name' => 'WorkloadCreatedTimeRange', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/TimeRangeFilter', + ], + ], + [ + 'name' => 'WorkloadStatuses', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Pending', + ], + ], + [ + 'name' => 'GmtPositionModifiedTimeRange', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/TimeRangeFilter', + ], + ], + [ + 'name' => 'GmtEnqueuedTimeRange', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/TimeRangeFilter', + ], + ], + [ + 'name' => 'GmtDequeuedTimeRange', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'required' => false, + '$ref' => '#/components/schemas/TimeRangeFilter', + ], + ], + [ + 'name' => 'WithHistoricalData', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + ], + ], + ], + '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' => '42F23B58-3684-5443-848A-8DA81FF99712', + ], + 'TotalCount' => [ + 'title' => '符合过滤条件的实例数量', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '23', + ], + 'Workloads' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + '$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' => 'ListQuotaWorkloads', + ], + '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' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '[\\"rgrk6hhjpvio3wvj\\"]', + ], + 'required' => false, + ], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '对应新增标签列表,最多包含20个子项', + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'ad31d453a1f3f23ce0b5e8707e68181f', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求id', + 'description' => '', + 'type' => 'string', + 'example' => 'CE22EE94-8AFE-53B5-9C2C-B36207B1CBF9', + ], + 'NextToken' => [ + 'title' => '下一个查询开始Token', + 'description' => '', + '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' => '', + '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"}]', + ], + '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' => '', + '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' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '[\\"rgqssemfn6vjqqev\\"]', + ], + 'required' => false, + ], + 'Tag' => [ + 'title' => '对应新增标签列表,最多包含20个子项', + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => '42F23B58-3684-5443-848A-8DA81FF99712', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"42F23B58-3684-5443-848A-8DA81FF99712\\"\\n}","type":"json"}]', + ], + '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' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '[\\"rga2yvifxyicn1rq\\"]', + ], + 'required' => true, + ], + ], + [ + 'name' => 'TagKey', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '对应标签键列表,最多包含20个子项', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'tagKey', + ], + 'required' => false, + ], + ], + [ + 'name' => 'All', + 'in' => 'query', + 'schema' => [ + 'title' => '是否全部删除,只针对tags为空时有效。取值范围: true false True False 默认是 false', + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'false', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\"\\n}","type":"json"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'rg69rj0leslwdnbe', + ], + ], + [ + 'name' => 'QuotaId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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' => '', + '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' => '', + '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'desc', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'description' => '', + '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', + ], + ], + [ + 'name' => 'CliqueID', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'FilterByQuotaId', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'quotamtl37ge7gkvdz', + ], + ], + [ + 'name' => 'FilterByResourceGroupIds', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'rg69rj0leslwdnbe', + ], + ], + [ + 'name' => 'MachineGroupIds', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'ReasonCodes', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'HyperZone', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'AvailabilityZone', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'PaymentType', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'OrderInstanceIds', + 'in' => 'query', + 'schema' => [ + 'title' => '订单Id信息', + 'type' => 'string', + 'example' => '260590501560397', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + ], + ], + [ + 'name' => 'HealthRate', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '节点的健康率(健康节点的占比)', + 'type' => 'object', + 'properties' => [ + 'operation' => [ + 'title' => '可选值ge, gte, eq, lte, lt', + 'type' => 'string', + ], + 'value' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + ], + [ + 'name' => 'HealthCount', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => '健康的节点数', + 'type' => 'object', + 'properties' => [ + 'operation' => [ + 'title' => '可选值ge, gte, eq, lte, lt', + 'type' => 'string', + ], + 'value' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + ], + [ + 'name' => 'LayoutMode', + 'in' => 'query', + 'schema' => [ + 'title' => '布局模式', + 'type' => 'string', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求Id', + 'description' => '', + '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' => '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' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'ml.gu7xf.8xlarge-gu108', + ], + ], + [ + 'name' => 'SpotDuration', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '0', + ], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '2024-12-26T09:36:46Z', + ], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '2024-12-30T09:36:46Z', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'GmtCreatedTime' => 'GmtCreatedTime', + ], + 'example' => 'GmtCreatedTime', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'asc' => 'asc', + 'desc' => 'desc', + ], + 'example' => 'asc', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + '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"}]', + ], + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'lingjunxxxx-mgxxx-xxxx', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ResourceGroupId' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'rgaekzbrflewn6jjq', + ], + 'Operation' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'Cordon', + 'enum' => [ + 'Cordon', + 'Uncordon', + 'Drain', + ], + ], + 'OperationParameters' => [ + 'title' => '节点操作参数配置'."\n", + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'lingjunxxxx-mgxxx-xxxx', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"96496E6E-00B4-5F55-80F6-1844FA9E92DC\\",\\n \\"NodeId\\": \\"lingjunxxxx-mgxxx-xxxx\\"\\n}","type":"json"}]', + ], + ], + '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', + ], + ], +]; |
