From 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 12 Jul 2026 17:11:17 +0800 Subject: update APIs 20260712 --- data/zh_cn/maxcompute/2022-01-04/api-docs.php | 23387 +++++++----------------- 1 file changed, 7070 insertions(+), 16317 deletions(-) (limited to 'data/zh_cn/maxcompute/2022-01-04') diff --git a/data/zh_cn/maxcompute/2022-01-04/api-docs.php b/data/zh_cn/maxcompute/2022-01-04/api-docs.php index aa21574..f051230 100644 --- a/data/zh_cn/maxcompute/2022-01-04/api-docs.php +++ b/data/zh_cn/maxcompute/2022-01-04/api-docs.php @@ -1,52 +1,27 @@ '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'MaxCompute', - 'version' => '2022-01-04', - ], + 'info' => ['style' => 'ROA', 'product' => 'MaxCompute', 'version' => '2022-01-04'], 'directories' => [ [ 'children' => [ + 'CreateQuota', 'ListQuotas', 'QueryQuota', 'GetQuota', [ - 'children' => [ - 'CreateComputeQuotaPlan', - 'UpdateComputeSubQuota', - 'GetComputeQuotaPlan', - 'ListComputeQuotaPlan', - 'UpdateComputeQuotaPlan', - 'DeleteComputeQuotaPlan', - 'ApplyComputeQuotaPlan', - 'GetComputeQuotaSchedule', - 'UpdateComputeQuotaSchedule', - 'GetComputeEffectivePlan', - ], + 'children' => ['CreateComputeQuotaPlan', 'UpdateComputeSubQuota', 'GetComputeQuotaPlan', 'ListComputeQuotaPlan', 'UpdateComputeQuotaPlan', 'DeleteComputeQuotaPlan', 'ApplyComputeQuotaPlan', 'GetComputeQuotaSchedule', 'UpdateComputeQuotaSchedule', 'GetComputeEffectivePlan'], 'type' => 'directory', 'title' => '计算Quota配置', 'id' => 34683, ], [ - 'children' => [ - 'ListTunnelQuotaTimer', - 'UpdateTunnelQuotaTimer', - ], + 'children' => ['ListTunnelQuotaTimer', 'UpdateTunnelQuotaTimer'], 'type' => 'directory', 'title' => 'Tunnel Quota分时配置', 'id' => 34680, ], [ - 'children' => [ - 'CreateQuotaPlan', - 'GetQuotaPlan', - 'UpdateQuotaPlan', - 'ListQuotasPlans', - 'DeleteQuotaPlan', - 'UpdateQuotaSchedule', - 'GetQuotaSchedule', - ], + 'children' => ['CreateQuotaPlan', 'GetQuotaPlan', 'UpdateQuotaPlan', 'ListQuotasPlans', 'DeleteQuotaPlan', 'UpdateQuotaSchedule', 'GetQuotaSchedule'], 'type' => 'directory', 'title' => '计算Quota配置(旧版,不推荐使用)', 'id' => 34694, @@ -59,157 +34,67 @@ [ 'children' => [ [ - 'children' => [ - 'CreateProject', - 'ListProjects', - 'GetProject', - 'UpdateProjectBasicMeta', - 'UpdateProjectDefaultQuota', - 'UpdateProjectIpWhiteList', - 'UpdateProjectModelTier', - 'GetTrustedProjects', - 'DeleteProject', - ], + 'children' => ['UpdateProjectBasicMeta', 'UpdateProjectDefaultQuota', 'UpdateProjectIpWhiteList', 'UpdateProjectModelTier', 'GetTrustedProjects'], 'type' => 'directory', 'title' => '基础管理(Project)', 'id' => 34705, ], [ - 'children' => [ - 'ListProjectUsers', - 'CreateRole', - 'ListRoles', - 'GetRoleAcl', - 'GetRoleAclOnObject', - 'GetRolePolicy', - 'ListUsersByRole', - 'UpdateUsersToRole', - ], + 'children' => ['DeleteRole', 'ListProjectUsers', 'CreateRole', 'GetRoleAcl', 'GetRoleAclOnObject', 'GetRolePolicy', 'ListUsersByRole', 'UpdateUsersToRole'], 'type' => 'directory', 'title' => '角色权限(Role、User)', 'id' => 34713, ], [ - 'children' => [ - 'ListPackages', - 'UpdatePackage', - 'CreatePackage', - 'GetPackage', - ], + 'children' => ['ListPackages', 'UpdatePackage', 'CreatePackage', 'GetPackage'], 'type' => 'directory', 'title' => 'Package', 'id' => 34721, ], [ - 'children' => [ - 'ListTables', - 'GetTableInfo', - ], + 'children' => ['GetTableInfo'], 'type' => 'directory', 'title' => '表(Table)', 'id' => 34726, ], - [ - 'children' => [ - 'ListFunctions', - ], - 'type' => 'directory', - 'title' => '函数(Function)', - 'id' => 34703, - ], - [ - 'children' => [ - 'ListResources', - ], - 'type' => 'directory', - 'title' => '资源(Resource)', - 'id' => 34729, - ], ], 'type' => 'directory', 'title' => '项目管理', 'id' => 13403, ], [ - 'children' => [ - 'ListUsers', - ], - 'type' => 'directory', - 'title' => '租户管理', - 'id' => 34731, - ], - [ - 'children' => [ - 'QueryQuotaMetric', - 'QueryTunnelMetricDetail', - 'QueryTunnelMetric', - 'GetQuotaUsage', - 'ListJobMetric', - 'QueryStorageMetric', - 'ListStorageTablesInfo', - 'ListStoragePartitionsInfo', - 'GetStorageSizeSummary', - 'GetStorageAmountSummary', - 'GetStorageSummaryCompared', - 'ListStorageProjectsInfo', - 'SumStorageMetricsByDate', - ], + 'children' => ['QueryQuotaMetric', 'QueryTunnelMetricDetail', 'QueryTunnelMetric', 'GetQuotaUsage', 'ListJobMetric', 'QueryStorageMetric', 'ListStorageTablesInfo', 'ListStoragePartitionsInfo', 'GetStorageSizeSummary', 'GetStorageAmountSummary', 'GetStorageSummaryCompared', 'ListStorageProjectsInfo'], 'type' => 'directory', 'title' => '资源观测', 'id' => 34740, ], [ - 'children' => [ - 'ListJobInfos', - 'ListJobSnapshotInfos', - 'GetJobInfo', - 'GetRunningJobs', - 'KillJobs', - 'GetJobResourceUsage', - ], + 'children' => ['ListJobInfos', 'ListJobSnapshotInfos', 'GetJobInfo', 'GetRunningJobs', 'KillJobs', 'GetJobResourceUsage'], 'type' => 'directory', 'title' => '作业运维', 'id' => 34733, ], [ 'children' => [ - 'CreateMmsDataSource', - 'GetMmsDataSource', - 'ListMmsDataSources', - 'UpdateMmsDataSource', - 'DeleteMmsDataSource', - 'CreateMmsFetchMetadataJob', - 'GetMmsFetchMetadataJob', - 'ListMmsDbs', - 'GetMmsDb', - 'ListMmsTables', - 'GetMmsTable', - 'ListMmsPartitions', - 'GetMmsPartition', - 'CreateMmsJob', - 'ListMmsJobs', - 'GetMmsJob', - 'GetMmsAsyncTask', - 'DeleteMmsJob', - 'StartMmsJob', - 'StopMmsJob', - 'RetryMmsJob', - 'ListMmsTasks', - 'GetMmsTask', - 'ListMmsTaskLogs', + 'RetryMmsTask', 'CreateMmsDataSource', 'GetMmsDataSource', 'ListMmsDataSources', 'UpdateMmsDataSource', 'DeleteMmsDataSource', 'CreateMmsFetchMetadataJob', 'GetMmsFetchMetadataJob', 'ListMmsDbs', 'GetMmsDb', 'ListMmsTables', 'GetMmsTable', 'ListMmsPartitions', 'GetMmsPartition', 'CreateMmsJob', 'ListMmsJobs', 'GetMmsJob', 'GetMmsAsyncTask', 'DeleteMmsJob', 'StartMmsJob', + 'StopMmsJob', 'RetryMmsJob', 'ListMmsTasks', 'GetMmsTask', 'ListMmsTaskLogs', 'CreateMmsTimer', 'UpdateMmsTimer', 'UpdateMmsTables', 'UpdateMmsTable', 'UpdateMmsDb', 'ListMmsTimers', 'ListMmsTimerLogs', 'ListMmsDataSourceConfigItems', 'GetMmsTimer', 'DeleteMmsTimer', ], 'type' => 'directory', 'title' => '数据迁移', 'id' => 23813, ], [ - 'children' => [ - 'ListComputeMetricsByInstance', - ], + 'children' => ['ListInstances', 'SumStorageMetricsByType', 'ListComputeMetricsBySignature', 'SumComputeMetricsByUsage', 'SumComputeMetricsByRecord', 'SumDailyBillsByItem', 'SumBills', 'SumBillsByDate', 'SumStorageMetricsByDate', 'ListComputeMetricsByInstance'], 'type' => 'directory', 'title' => '成本分析', 'id' => 34777, ], + [ + 'children' => ['TriggerMmsTimer', 'CreateProject', 'DeleteProject', 'GetProject', 'ListFunctions', 'ListProjects', 'ListResources', 'ListRoles', 'ListTables', 'ListUsers'], + 'type' => 'directory', + 'title' => '其他', + 'id' => 86474, + ], ], 'components' => [ 'schemas' => [], @@ -217,12 +102,8 @@ 'apis' => [ 'ApplyComputeQuotaPlan' => [ 'path' => '/api/v1/quotas/{nickname}/computeQuotaPlan/{planName}/apply', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -232,30 +113,18 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '259116', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota_p', - ], + 'schema' => ['description' => '一级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota_p'], ], [ 'name' => 'planName', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota计划名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'planA', - ], + 'schema' => ['description' => 'Quota计划名称。', 'type' => 'string', 'required' => true, 'example' => 'planA'], ], ], 'responses' => [ @@ -265,37 +134,16 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0b87b7a316654730544735643e9200', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'this quota plan is not exist.', - ], - 'data' => [ - 'description' => '请求返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b87b7a316654730544735643e9200'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'this quota plan is not exist.'], + 'data' => ['description' => '请求返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -314,12 +162,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -327,12 +170,8 @@ ], 'CreateComputeQuotaPlan' => [ 'path' => '/api/v1/quotas/{nickname}/computeQuotaPlan', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -342,20 +181,13 @@ 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '255781', - 'abilityTreeNodes' => [ - 'FEATUREodps2FOXFI', - ], + 'abilityTreeNodes' => ['FEATUREodps2FOXFI'], ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota_p'."\n", - ], + 'schema' => ['description' => '一级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota_p'."\n"], ], [ 'name' => 'body', @@ -365,12 +197,7 @@ 'description' => '请求体参数。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'Quota计划名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'planA', - ], + 'name' => ['description' => 'Quota计划名称。', 'type' => 'string', 'required' => true, 'example' => 'planA'], 'quota' => [ 'description' => 'Quota属性。', 'type' => 'object', @@ -379,13 +206,7 @@ 'description' => '一级Quota弹性预留CU值。', 'type' => 'object', 'properties' => [ - 'elasticReservedCU' => [ - 'description' => '弹性预留CU值。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], + 'elasticReservedCU' => ['description' => '弹性预留CU值。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], ], 'required' => false, ], @@ -396,44 +217,21 @@ 'description' => '二级Quota列表。', 'type' => 'object', 'properties' => [ - 'nickName' => [ - 'description' => '二级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota', - ], + 'nickName' => ['description' => '二级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota'], 'parameter' => [ 'description' => '二级Quota CU配置。', 'type' => 'object', 'properties' => [ - 'elasticReservedCU' => [ - 'description' => '弹性预留CU值。'."\n" - .'> '."\n" - .'> - 所有二级Quota的elasticReservedCU总和不能超过一级Quota的elasticReservedCU。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'maxCU' => [ - 'description' => '预留CU上限。'."\n" - .'> '."\n" - .'> - 二级Quota的maxCU不能超过一级Quota的maxCU', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'minCU' => [ - 'description' => '预留CU保障。'."\n" - .'> '."\n" - .'> - 二级Quota的minCU不能超过自身的maxCU'."\n" - .'> - 所有二级Quota的minCU总和不能超过一级Quota的minCU', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], + 'elasticReservedCU' => ['description' => '弹性预留CU值。'."\n" + .'> '."\n" + .'> - 所有二级Quota的elasticReservedCU总和不能超过一级Quota的elasticReservedCU。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'maxCU' => ['description' => '预留CU上限。'."\n" + .'> '."\n" + .'> - 二级Quota的maxCU不能超过一级Quota的maxCU', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'minCU' => ['description' => '预留CU保障。'."\n" + .'> '."\n" + .'> - 二级Quota的minCU不能超过自身的maxCU'."\n" + .'> - 所有二级Quota的minCU总和不能超过一级Quota的minCU', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], ], 'required' => false, ], @@ -457,37 +255,16 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0b87b7e716665825896565060e87a4', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'this quota is not exist.', - ], - 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b87b7e716665825896565060e87a4'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'this quota is not exist.'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -506,12 +283,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -520,13 +292,8 @@ 'CreateMmsDataSource' => [ 'summary' => '创建数据源,通过MMA将数据源的数据迁移到MaxCompute。', 'path' => '/api/v1/mms/datasources', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -539,9 +306,7 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182968', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ @@ -552,37 +317,20 @@ 'description' => '请求Body', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '数据源名称', - 'type' => 'string', - 'required' => false, - 'example' => 'demo', - ], + 'name' => ['description' => '数据源名称', 'type' => 'string', 'required' => false, 'example' => 'demo'], 'type' => [ 'description' => '数据源类型', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'HIVE' => 'HIVE', - 'BIGQUERY' => 'BIGQUERY', - ], + 'enumValueTitles' => ['HIVE' => 'HIVE', 'BIGQUERY' => 'BIGQUERY'], 'example' => 'BIGQUERY', ], - 'networklink' => [ - 'description' => 'maxcompute"网络连接"id', - 'type' => 'string', - 'required' => false, - 'example' => 'vpc-uf6pc2vordian33gobzfr:cn-shanghai', - ], + 'networklink' => ['description' => 'maxcompute"网络连接"id', 'type' => 'string', 'required' => false, 'example' => 'vpc-uf6pc2vordian33gobzfr:cn-shanghai'], 'config' => [ 'description' => '数据源相关配置', 'type' => 'object', 'required' => false, - 'additionalProperties' => [ - 'type' => 'any', - 'example' => '"bigquery.project.id": "xx"', - 'description' => '数据源相关配置项', - ], + 'additionalProperties' => ['type' => 'any', 'example' => '"bigquery.project.id": "xx"', 'description' => '数据源相关配置项'], ], ], 'required' => false, @@ -596,21 +344,12 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => 'B42CA730-8187-50F1-9FE0-6733297036DB', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => 'B42CA730-8187-50F1-9FE0-6733297036DB'], 'data' => [ 'description' => '返回结果。', 'type' => 'object', 'properties' => [ - 'dataSourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '18', - ], + 'dataSourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '18'], ], ], ], @@ -631,12 +370,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -645,13 +379,8 @@ 'CreateMmsFetchMetadataJob' => [ 'summary' => '“拉取数据源元数据”任务会将数据源的元数据拉取出来', 'path' => '/api/v1/mms/datasources/{sourceId}/scans', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -664,21 +393,13 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '188538', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000021', - ], + 'schema' => ['description' => '数据源ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000021'], ], [ 'name' => 'body', @@ -689,24 +410,12 @@ 'description' => '指定更新元数据的范围,可以为空', 'type' => 'object', 'properties' => [ - 'dbName' => [ - 'title' => '更新指定的源database(或schema、dataset)的元数据', - 'description' => '更新指定的源database(或schema、dataset)的元数据', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'dbName' => ['title' => '更新指定的源database(或schema、dataset)的元数据', 'description' => '更新指定的源database(或schema、dataset)的元数据', 'type' => 'string', 'required' => false, 'example' => 'default'], 'tableNames' => [ 'title' => '指定更新源表的元数据', 'description' => '指定更新源表的元数据', 'type' => 'array', - 'items' => [ - 'title' => '源表名', - 'description' => '源表名', - 'type' => 'string', - 'required' => false, - 'example' => 'table1', - ], + 'items' => ['title' => '源表名', 'description' => '源表名', 'type' => 'string', 'required' => false, 'example' => 'table1'], 'required' => false, ], ], @@ -721,21 +430,12 @@ 'description' => '返回值', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CC4D05E8-0613-5A8E-9339-A0EBD097A69E', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'CC4D05E8-0613-5A8E-9339-A0EBD097A69E'], 'data' => [ 'description' => '返回结果。', 'type' => 'object', 'properties' => [ - 'scanId' => [ - 'description' => '同步元数据的异步任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000002', - ], + 'scanId' => ['description' => '同步元数据的异步任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1000002'], ], ], ], @@ -756,12 +456,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -770,13 +465,8 @@ 'CreateMmsJob' => [ 'summary' => '创建数据迁移任务', 'path' => '/api/v1/mms/datasources/{sourceId}/jobs', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -789,21 +479,13 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182983', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000014', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000014'], ], [ 'name' => 'body', @@ -813,189 +495,83 @@ 'description' => '请求体参数', 'type' => 'object', 'properties' => [ - 'sourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '2000014', - ], - 'name' => [ - 'description' => '迁移作业名字', - 'type' => 'string', - 'required' => false, - 'example' => 'migrate_db_1', - ], - 'sourceName' => [ - 'description' => '数据源名', - 'type' => 'string', - 'required' => false, - 'example' => 'demo'."\n", - ], - 'srcDbName' => [ - 'description' => '源库名', - 'type' => 'string', - 'required' => false, - 'example' => 'src_db', - ], - 'srcSchemaName' => [ - 'description' => '源schema name-三层命名空间中的schema', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], - 'dstDbName' => [ - 'description' => '目标MaxCompute项目', - 'type' => 'string', - 'required' => false, - 'example' => 'mms_test', - ], - 'dstSchemaName' => [ - 'description' => '目标MaxCompute Schema', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '2000014'], + 'name' => ['description' => '迁移作业名字', 'type' => 'string', 'required' => false, 'example' => 'migrate_db_1'], + 'sourceName' => ['description' => '数据源名', 'type' => 'string', 'required' => false, 'example' => 'demo'."\n"], + 'srcDbName' => ['description' => '源库名', 'type' => 'string', 'required' => false, 'example' => 'src_db'], + 'srcSchemaName' => ['description' => '源schema name-三层命名空间中的schema', 'type' => 'string', 'required' => false, 'example' => 'default'], + 'dstDbName' => ['description' => '目标MaxCompute项目', 'type' => 'string', 'required' => false, 'example' => 'mms_test'], + 'dstSchemaName' => ['description' => '目标MaxCompute Schema', 'type' => 'string', 'required' => false, 'example' => 'default'], 'taskType' => [ 'title' => 'MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS', 'description' => '迁移任务类型', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'HIVE' => 'HIVE UDTF方式', - 'BIGQUERY' => 'BIGQUERY read api方式', - ], + 'enumValueTitles' => ['HIVE' => 'HIVE UDTF方式', 'BIGQUERY' => 'BIGQUERY read api方式'], 'example' => 'BIGQUERY', ], 'partitions' => [ 'description' => '分区ID列表', 'type' => 'array', - 'items' => [ - 'description' => '分区ID值', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1232', - ], + 'items' => ['description' => '分区ID值', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1232'], 'required' => false, ], 'tables' => [ 'description' => 'table名字列表', 'type' => 'array', - 'items' => [ - 'description' => 'table名字', - 'type' => 'string', - 'required' => false, - 'example' => 't1', - ], + 'items' => ['description' => 'table名字', 'type' => 'string', 'required' => false, 'example' => 't1'], 'required' => false, ], 'tableBlackList' => [ 'description' => 'table黑名单', 'type' => 'array', - 'items' => [ - 'description' => 'table名', - 'type' => 'string', - 'required' => false, - 'example' => 't1', - ], + 'items' => ['description' => 'table名', 'type' => 'string', 'required' => false, 'example' => 't1'], 'required' => false, ], 'tableWhiteList' => [ 'description' => 'table白名单, 注意:同时有白名单和黑名单时,只有黑名单有效', 'type' => 'array', - 'items' => [ - 'description' => 'table名', - 'type' => 'string', - 'required' => false, - 'example' => 't1', - ], + 'items' => ['description' => 'table名', 'type' => 'string', 'required' => false, 'example' => 't1'], 'required' => false, ], 'partitionFilters' => [ 'description' => '{table名:分区过滤表达式}', 'type' => 'object', 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '例子:p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\')'."\n" - .'例子说明:'."\n" - .'1. p1, p2, p3为分区名'."\n" - .'2. 分区值只有字符串和数字两种,字符串被双引号或单引号包裹。除int/bigint类型的分区列值外,其他所有类型的分区值都只能取字符串值。'."\n" - .'3. 比较操作符包括: >, >=, = , <, <=, <>'."\n" - .'4. 支持"in"操作符'."\n" - .'5. 逻辑操作符包括: and, or'."\n" - .'6. 支持括号'."\n" - ."\n", - 'description' => '分区过滤表达式', - ], - ], - 'schemaOnly' => [ - 'description' => '是否只迁元数据', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'additionalProperties' => ['type' => 'string', 'example' => '例子:p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\')'."\n" + .'例子说明:'."\n" + .'1. p1, p2, p3为分区名'."\n" + .'2. 分区值只有字符串和数字两种,字符串被双引号或单引号包裹。除int/bigint类型的分区列值外,其他所有类型的分区值都只能取字符串值。'."\n" + .'3. 比较操作符包括: >, >=, = , <, <=, <>'."\n" + .'4. 支持"in"操作符'."\n" + .'5. 逻辑操作符包括: and, or'."\n" + .'6. 支持括号'."\n" + ."\n", 'description' => '分区过滤表达式'], + ], + 'schemaOnly' => ['description' => '是否只迁元数据', 'type' => 'boolean', 'required' => false, 'example' => 'false'], 'tableMapping' => [ 'description' => '{源表: 目标表}', 'type' => 'object', 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - 'description' => 'table名', - 'example' => 't1_1', - ], - ], - 'increment' => [ - 'description' => '增量迁移:只迁移新分区或有变动的分区,注意有变动的分区会被重迁', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'enableSchemaMigration' => [ - 'description' => '是否迁移表结构', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'enableDataMigration' => [ - 'description' => '是否迁移表数据', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'enableVerification' => [ - 'description' => '开启校验,目前校验方式是在源和目标端执行select count,对比行数', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', + 'additionalProperties' => ['type' => 'string', 'description' => 'table名', 'example' => 't1_1'], ], + 'increment' => ['description' => '增量迁移:只迁移新分区或有变动的分区,注意有变动的分区会被重迁', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'enableSchemaMigration' => ['description' => '是否迁移表结构', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'enableDataMigration' => ['description' => '是否迁移表数据', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'enableVerification' => ['description' => '开启校验,目前校验方式是在源和目标端执行select count,对比行数', 'type' => 'boolean', 'required' => false, 'example' => 'false'], 'columnMapping' => [ 'description' => '{源列名:目标列名}', 'type' => 'object', 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - 'example' => 'null', - 'description' => '列名', - ], + 'additionalProperties' => ['type' => 'string', 'example' => 'null', 'description' => '列名'], ], 'others' => [ 'description' => '其他配置信息', 'type' => 'object', 'required' => false, - 'additionalProperties' => [ - 'type' => 'any', - 'description' => '配置值', - 'example' => 'null', - ], - ], - 'eta' => [ - 'description' => '期望的迁移完成时间. 注意:eta值越小,迁移任务的优先级会越高', - 'type' => 'string', - 'required' => false, - 'example' => '2025-02-04', + 'additionalProperties' => ['type' => 'any', 'description' => '配置值', 'example' => 'null'], ], + 'eta' => ['description' => '期望的迁移完成时间. 注意:eta值越小,迁移任务的优先级会越高', 'type' => 'string', 'required' => false, 'example' => '2025-02-04'], ], 'required' => false, ], @@ -1008,21 +584,12 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '73207140-0FD5-588A-B11A-3CE093924196', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '73207140-0FD5-588A-B11A-3CE093924196'], 'data' => [ 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'asyncTaskId' => [ - 'description' => '创建迁移作业的异步任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], + 'asyncTaskId' => ['description' => '创建迁移作业的异步任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], ], ], ], @@ -1043,158 +610,256 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], ], ], - 'CreatePackage' => [ - 'path' => '/api/v1/projects/{projectName}/packages', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateMmsTimer' => [ + 'path' => '/api/v1/mms/datasources/{sourceId}/timers', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', - 'abilityTreeCode' => '144116', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], - 'tenantRelevance' => 'tenant', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ - 'name' => 'projectName', + 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA'."\n", - ], - ], - [ - 'name' => 'isInstall', - 'in' => 'query', - 'schema' => [ - 'description' => '是否安装', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ 'name' => 'body', 'in' => 'body', + 'style' => 'json', 'schema' => [ 'description' => '请求体参数', - 'type' => 'string', - 'required' => false, - 'example' => '{'."\n" - .'"name": "test_packege", '."\n" - .' "resourceList": { '."\n" - .' "table": ['."\n" - .' {'."\n" - .' "name": "table_name",'."\n" - .' "actions": ['."\n" - .' "Describe",'."\n" - .' "Select"'."\n" - .' ]'."\n" - .' },'."\n" - .' {'."\n" - .' "name": "table_name",'."\n" - .' "actions": ['."\n" - .' "Describe",'."\n" - .' "Select"'."\n" - .' ]'."\n" - .' }'."\n" - .' ],'."\n" - .' "resource": ['."\n" - .' {'."\n" - .' "name": "",'."\n" - .' "actions": []'."\n" - .' },'."\n" - .' {'."\n" - .' "name": "",'."\n" - .' "actions": []'."\n" - .' }'."\n" - .' ],'."\n" - .' "function": ['."\n" - .' {'."\n" - .' "name": "",'."\n" - .' "actions": []'."\n" - .' },'."\n" - .' {'."\n" - .' "name": "",'."\n" - .' "actions": []'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .'}', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'PopResult', - 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc3b4ab16684833172127321e2c25', - ], - 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '2000014'], + 'name' => ['description' => '定时任务名称', 'type' => 'string', 'required' => false, 'example' => 'planA'], + 'srcDbName' => ['description' => '源库名', 'type' => 'string', 'required' => false, 'example' => 'src_db'], + 'partitions' => [ + 'description' => '当 type=Partitions 时, 通过该参数指定要迁移表的分区 ID 列表', + 'type' => 'array', + 'items' => ['description' => '要迁移表的分区 ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1232'], + 'required' => false, ], - ], - ], - ], - ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc3b4ab16684833172127321e2c25\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '创建package', - 'summary' => '通过调用该接口创建package。', - 'changeSet' => [], - 'ramActions' => [ - [ - 'operationType' => 'create', - 'ramAction' => [ - 'action' => 'odps:CreatePackage', - 'authLevel' => 'resource', - 'actionConditions' => [], - 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', + 'tables' => [ + 'description' => '当 type=Tables 时, 通过该参数指定要迁移的表的名称列表', + 'type' => 'array', + 'items' => ['description' => '要迁移的表的名称', 'type' => 'string', 'required' => false, 'example' => 't1'], + 'required' => false, ], - ], + 'tableBlackList' => [ + 'description' => '当 type=Database 时, 通过 tableBlackList 指定排除哪些表不迁移', + 'type' => 'array', + 'items' => ['description' => '当 type=Database 时, 要排除的表', 'type' => 'string', 'required' => false, 'example' => 't1'], + 'required' => false, + ], + 'tableWhiteList' => [ + 'description' => '当 type=Database 时, 指定的要迁移的表列表。如果没有指定 tableWhiteList,则迁移对应 Database 下的所有表', + 'type' => 'array', + 'items' => ['description' => '当 type=Database 时, 指定的要迁移的表。', 'type' => 'string', 'required' => false, 'example' => 't1'], + 'required' => false, + ], + 'partitionFilters' => [ + 'description' => '分区过滤表达式。 配置指定"表"对应的"分区过滤表达式"', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string', 'example' => '{'."\n" + .'"student": "p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\')" '."\n" + .'}'."\n", 'description' => '分区过滤表达式。例如:p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\'),介绍如下:'."\n" + ."\n" + .'p1、p2 和 p3 均为分区名。'."\n" + ."\n" + .'分区值仅包含字符串和数字,字符串被双引号或单引号包裹。'."\n" + ."\n" + .'除 INT 和 BIGINT 类型的分区列值外,其他类型的分区值都只能取字符串值。'."\n" + ."\n" + .'比较操作符包括:>、>=、= 、<、<=、<>。'."\n" + ."\n" + .'分区过滤表达式支持 IN 操作符。'."\n" + ."\n" + .'逻辑操作符包括:AND 和 OR。'."\n" + ."\n" + .'支持使用括号。'], + ], + 'enableSchemaMigration' => ['description' => '是否迁移表结构', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'enableDataMigration' => ['description' => '是否迁移表数据', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'enableVerification' => ['description' => '开启校验,目前校验方式是在源和目标端执行select count,对比行数', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'tableMapping' => [ + 'description' => '源表名->目标名 映射', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string', 'description' => '源表名->目标名 映射', 'example' => '{\'a\': \'a1\'}'], + ], + 'columnMapping' => [ + 'description' => '{源列名:目标列名}', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string', 'example' => '{"c-1": "c_1"}', 'description' => '{源列名:目标列名}'], + ], + 'others' => [ + 'description' => '其他配置信息', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any', 'description' => '其他配置信息', 'example' => '{}'], + ], + 'value' => ['description' => '定时任务调度时间,scheduleType=Daily 时,value=HH:MM,scheduleType=Hourly 时,value=MM', 'type' => 'string', 'required' => false, 'example' => '12:00'], + 'scheduleType' => ['description' => '定时任务调度类型', 'type' => 'string', 'required' => false, 'example' => 'Daily'], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'ApiRes', + 'description' => 'ApiRes', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0be3e0b716671885050924814e3623'], + 'data' => [ + 'description' => '返回结果。', + 'type' => 'object', + 'properties' => [ + 'timerId' => ['description' => 'timer id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], + ], + ], + ], + ], + ], + 'title' => '创建数据迁移定时任务', + 'summary' => 'CreateMmsTimer', + 'description' => '请确保在使用该接口前,已充分了解了数据传输服务独享资源组和弹性预留计算资源的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/data-transfer-fees-hourly-billing)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/data-transfer-fees-hourly-billing)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0be3e0b716671885050924814e3623\\",\\n \\"data\\": {\\n \\"timerId\\": 1\\n }\\n}","type":"json"}]', + ], + 'CreatePackage' => [ + 'path' => '/api/v1/projects/{projectName}/packages', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '144116', + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'projectName', + 'in' => 'path', + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'."\n"], + ], + [ + 'name' => 'isInstall', + 'in' => 'query', + 'schema' => ['description' => '是否安装', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '请求体参数', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .'"name": "test_packege", '."\n" + .' "resourceList": { '."\n" + .' "table": ['."\n" + .' {'."\n" + .' "name": "table_name",'."\n" + .' "actions": ['."\n" + .' "Describe",'."\n" + .' "Select"'."\n" + .' ]'."\n" + .' },'."\n" + .' {'."\n" + .' "name": "table_name",'."\n" + .' "actions": ['."\n" + .' "Describe",'."\n" + .' "Select"'."\n" + .' ]'."\n" + .' }'."\n" + .' ],'."\n" + .' "resource": ['."\n" + .' {'."\n" + .' "name": "",'."\n" + .' "actions": []'."\n" + .' },'."\n" + .' {'."\n" + .' "name": "",'."\n" + .' "actions": []'."\n" + .' }'."\n" + .' ],'."\n" + .' "function": ['."\n" + .' {'."\n" + .' "name": "",'."\n" + .' "actions": []'."\n" + .' },'."\n" + .' {'."\n" + .' "name": "",'."\n" + .' "actions": []'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .'}'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult', + 'description' => 'PopResult', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc3b4ab16684833172127321e2c25'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc3b4ab16684833172127321e2c25\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + 'title' => '创建package', + 'summary' => '通过调用该接口创建package。', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'odps:CreatePackage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], + ], ], ], ], @@ -1202,13 +867,8 @@ 'CreateProject' => [ 'summary' => '创建MaxCompute项目。', 'path' => '/api/v1/projects', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1220,34 +880,27 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], 'parameters' => [ [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'description' => '请求体参数', - 'type' => 'string', - 'required' => false, - 'example' => '{'."\n" - .' "name":"project_name",'."\n" - .' "comment":"",'."\n" - .' "productType":"payasyougo/subscription/dev",'."\n" - .' "defaultQuota":"quota_nick_name",'."\n" - .' "properties":{'."\n" - .' "sqlMeteringMax":"",'."\n" - .' "typeSystem":"",'."\n" - .' "encryption":{'."\n" - .' "enable":true,'."\n" - .' "algorithm":"",'."\n" - .' "key":""'."\n" - .' }'."\n" - .' }'."\n" - .'}', - ], + 'schema' => ['description' => '请求体参数', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .' "name":"project_name",'."\n" + .' "comment":"",'."\n" + .' "productType":"payasyougo/subscription/dev",'."\n" + .' "defaultQuota":"quota_nick_name",'."\n" + .' "properties":{'."\n" + .' "sqlMeteringMax":"",'."\n" + .' "typeSystem":"",'."\n" + .' "encryption":{'."\n" + .' "enable":true,'."\n" + .' "algorithm":"",'."\n" + .' "key":""'."\n" + .' }'."\n" + .' }'."\n" + .'}'], ], ], 'responses' => [ @@ -1257,16 +910,8 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0b87b7a316654730544735643e9200', - ], - 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0b87b7a316654730544735643e9200'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -1281,32 +926,116 @@ 'action' => 'odps:CreateProject', 'authLevel' => 'resource', 'actionConditions' => [ - [ - 'conditionKey' => 'odps:Encryption', - 'validationType' => 'always', - ], + ['conditionKey' => 'odps:Encryption', 'validationType' => 'always'], ], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:project/*', + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:project/*'], + ], + ], + ], + ], + ], + 'CreateQuota' => [ + 'summary' => '创建Quota,首次开通MaxCompute 必须先创建后付费类型的Quota,如果创建的是预付费类型的Quota,会进行自动扣款。', + 'path' => '/api/v1/quotas', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '257688', + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], + ], + 'parameters' => [ + [ + 'name' => 'chargeType', + 'in' => 'query', + 'schema' => ['description' => '计费类型;后付费:payasyougo/预付费:subscription', 'type' => 'string', 'required' => true, 'example' => 'payasyougo', 'default' => ''], + ], + [ + 'name' => 'commodityData', + 'in' => 'query', + 'schema' => ['description' => '配额商品规格'."\n" + ."\n" + .'>'."\n" + ."\n" + .'- 仅在预付费(subscription)情况下需要填写'."\n" + .'cu 最小单位为50'."\n" + .'ord_time 支持包月(month)和包年(year)'."\n" + ."\n" + .'- 创建之后 commodityData 不支持修改,如需修改请在MaxCompute控制台操作'."\n" + ."\n" + .'>', 'type' => 'string', 'required' => false, 'example' => '{"CU":50,"ord_time":"1:Month","autoRenew":false} ', 'default' => ''], + ], + [ + 'name' => 'partNickName', + 'in' => 'query', + 'schema' => ['description' => '>仅在预付费(subscription)情况下需要填写>', 'type' => 'string', 'required' => false, 'example' => 'MyQuota'], + ], + [ + 'name' => 'commodityCode', + 'in' => 'query', + 'schema' => ['description' => '商品code;eg. 中国站: 后付费的商品code为odps, 预付费的商品code为odpsplus ; 国际站 :后付费的商品code为odps_intl, 预付费的商品code为odpsplus_intl;', 'type' => 'string', 'required' => true, 'example' => 'odps'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'LxOdpsCreateOrderResponse', + 'description' => 'LxOdpsCreateOrderResponse', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc520ad17171208978521777d742c'], + 'data' => [ + 'description' => '返回参数', + 'type' => 'object', + 'properties' => [ + 'nickName' => [ + 'description' => 'quota别名', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'os_PayAsYouGoQuota_p', + ], + ], ], ], ], ], ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建Quota', + 'description' => '**请确保在使用该接口前,已充分了解MaxCompute产品的收费方式和[价格](https://www.aliyun.com/product/maxcompute/pricing?spm=5176.30275541.J_ZGek9Blx07Hclc3Ddt9dg.2.19502f3dPPfezu&scm=20140722.S_card@@%E4%BA%A7%E5%93%81@@143540.S_new~UND~card.ID_card@@%E4%BA%A7%E5%93%81@@143540-RL_MaxCompute-LOC_2024SPSearchCard-OR_ser-PAR1_213c994b17738148516424527d0d07-V_4-RE_new9-P0_0-P1_0)。**', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'odps:CreateQuota', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc520ad17171208978521777d742c\\",\\n \\"data\\": {\\n \\"nickName\\": \\"os_PayAsYouGoQuota_p\\"\\n }\\n}","type":"json"}]', ], 'CreateQuotaPlan' => [ 'path' => '/api/v1/quotas/{nickname}/plans', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1317,101 +1046,78 @@ 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '142709', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => 'QuotaNickName', - 'type' => 'string', - 'required' => true, - 'example' => 'planA', - ], + 'schema' => ['description' => 'QuotaNickName', 'type' => 'string', 'required' => true, 'example' => 'planA'], ], [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户id。', - 'type' => 'string', - 'required' => false, - 'example' => '228451885265153', - ], + 'schema' => ['description' => '租户id。', 'type' => 'string', 'required' => false, 'example' => '228451885265153'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域id。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], + 'schema' => ['description' => '地域id。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'description' => '请求体参数', - 'type' => 'string', - 'required' => false, - 'example' => '{'."\n" - .' "name": "planA",'."\n" - .' // 以下为一个一级 quota,可以只选取跟 plan 相关的字段'."\n" - .' "quota": {'."\n" - .' "name": "a",'."\n" - .' "nickName": "aaa_nick",'."\n" - .' "tenantId": "10001",'."\n" - .' "regionId": "cn-hangzhou",'."\n" - .' "parentId": "0",'."\n" - .' "cluster": "AT-ODPS-TEST3",'."\n" - .' "parameter": {'."\n" - .' "minCU": 40,'."\n" - .' "maxCU": 40,'."\n" - .' "adhocCU": 0,'."\n" - .' "elasticMinCU": 40,'."\n" - .' "elasticMaxCU": 40,'."\n" - .' "enablePreemptiveScheduling": false,'."\n" - .' "forceReservedMin":true,'."\n" - .' "enablePriority":false,'."\n" - .' "singleJobCULimit":100,'."\n" - .' "adhocQuotaBeginTimeInSec": 1345,'."\n" - .' "adhocQuotaEndTimeInSec": 1234,'."\n" - .' "ignoreAdhocQuota":false'."\n" - .' },'."\n" - .' "subQuotaInfoList":'."\n" - .' [ '."\n" - .' {'."\n" - .' "nickName": "WlmFuxiSecondaryOnlineQuotaTest",'."\n" - .' "name": "WlmFuxiSecondaryOnlineQuotaTest",'."\n" - .' "type": "FUXI_ONLINE",'."\n" - .' "tenantId": "10001",'."\n" - .' "regionId": "cn-hangzhou",'."\n" - .' "cluster": "AT-ODPS-TEST3",'."\n" - .' "parameter": {'."\n" - .' "minCU": 40,'."\n" - .' "maxCU": 40,'."\n" - .' "adhocCU": 0,'."\n" - .' "elasticMinCU": 40,'."\n" - .' "elasticMaxCU": 40,'."\n" - .' "enablePreemptiveScheduling": false,'."\n" - .' "forceReservedMin":true,'."\n" - .' "enablePriority":false,'."\n" - .' "singleJobCULimit":100,'."\n" - .' "adhocQuotaBeginTimeInSec": 1345,'."\n" - .' "adhocQuotaEndTimeInSec": 1234,'."\n" - .' "ignoreAdhocQuota":false'."\n" - .' }'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .'}', - ], + 'schema' => ['description' => '请求体参数', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .'  "name": "planA",'."\n" + .'  // The following is a level-1 quota. You can select only the fields related to the plan.'."\n" + .'  "quota": {'."\n" + .'    "name": "a",'."\n" + .'    "nickName": "aaa_nick",'."\n" + .'    "tenantId": "10001",'."\n" + .'    "regionId": "cn-hangzhou",'."\n" + .'    "parentId": "0",'."\n" + .'    "cluster": "AT-ODPS-TEST3",'."\n" + .'    "parameter": {'."\n" + .'        "minCU": 40,'."\n" + .'        "maxCU": 40,'."\n" + .'        "adhocCU": 0,'."\n" + .'        "elasticMinCU": 40,'."\n" + .'        "elasticMaxCU": 40,'."\n" + .'        "enablePreemptiveScheduling": false,'."\n" + .'        "forceReservedMin": true,'."\n" + .'        "enablePriority": false,'."\n" + .'        "singleJobCULimit": 100,'."\n" + .'        "adhocQuotaBeginTimeInSec": 1345,'."\n" + .'        "adhocQuotaEndTimeInSec": 1234,'."\n" + .'        "ignoreAdhocQuota": false'."\n" + .'    },'."\n" + .'    "subQuotaInfoList": ['."\n" + .'        {'."\n" + .'            "nickName": "WlmFuxiSecondaryOnlineQuotaTest",'."\n" + .'            "name": "WlmFuxiSecondaryOnlineQuotaTest",'."\n" + .'            "type": "FUXI_ONLINE",'."\n" + .'            "tenantId": "10001",'."\n" + .'            "regionId": "cn-hangzhou",'."\n" + .'            "cluster": "AT-ODPS-TEST3",'."\n" + .'            "parameter": {'."\n" + .'                "minCU": 40,'."\n" + .'                "maxCU": 40,'."\n" + .'                "adhocCU": 0,'."\n" + .'                "elasticMinCU": 40,'."\n" + .'                "elasticMaxCU": 40,'."\n" + .'                "enablePreemptiveScheduling": false,'."\n" + .'                "forceReservedMin": true,'."\n" + .'                "enablePriority": false,'."\n" + .'                "singleJobCULimit": 100,'."\n" + .'                "adhocQuotaBeginTimeInSec": 1345,'."\n" + .'                "adhocQuotaEndTimeInSec": 1234,'."\n" + .'                "ignoreAdhocQuota": false'."\n" + .'            }'."\n" + .'        }'."\n" + .'    ]'."\n" + .'  }'."\n" + .'}'], ], ], 'responses' => [ @@ -1421,16 +1127,8 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc3b4b016674434996033675e71ee', - ], - 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc3b4b016674434996033675e71ee'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -1443,6 +1141,11 @@ 'title' => '创建Quota计划', 'summary' => '新增Quota计划。', 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateQuotaPlan'], + ], + ], 'ramActions' => [ [ 'operationType' => 'create', @@ -1451,12 +1154,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -1464,13 +1162,8 @@ ], 'CreateRole' => [ 'path' => '/api/v1/projects/{projectName}/roles', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1481,31 +1174,19 @@ 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '144125', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', - ], + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'description' => '请求体参数。'."\n" - .'取值可参考[MaxCompute权限](~~27935~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '{"name": "role_name","type": "resource/adminn","policy": "", //policy 的内容,如果是acl,此项不需要。"acl": { // 如果是policy,则此字段不需要"table": [{"name": "", "actions":["","",]}, {"name": "", "actions":[]}],"resource":[{"name": "", "actions":["","",]}, {"name": "", "actions":[]}],"function":[{"name": "", "actions":["","",]}, {"name": "", "actions":[]}],"package":[{"name": "", "actions":["","",]}, {"name": "", "actions":[]}],"project":[{"name": "", "actions":[]}], //管控台页面固定只有当前项目"instance":[{"name": "", "actions":[]}] //管控台页面只支持name * }}// name 支持写 *', - ], + 'schema' => ['description' => '请求体参数。'."\n" + .'取值可参考[MaxCompute权限](~~27935~~)。', 'type' => 'string', 'required' => false, 'example' => '{"name": "role_name","type": "resource/admin","policy": "", //policy content. Not required if the type is acl."acl": { // Not required if the type is policy."table": [{"name": "", "actions":["","",]}, {"name": "", "actions":[]}],"resource":[{"name": "", "actions":["","",]}, {"name": "", "actions":[]}],"function":[{"name": "", "actions":["","",]}, {"name": "", "actions":[]}],"package":[{"name": "", "actions":["","",]}, {"name": "", "actions":[]}],"project":[{"name": "", "actions":[]}], //Only the current project is available on the console."instance":[{"name": "", "actions":[]}] //Only * is supported for the name. }}// * is supported for the name.'], ], ], 'responses' => [ @@ -1515,16 +1196,8 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0b87b7e716665825896565060e87a4', - ], - 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0b87b7e716665825896565060e87a4'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -1533,6 +1206,11 @@ 'title' => '创建项目级角色', 'summary' => '创建MaxCompute项目级角色。', 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateRole'], + ], + ], 'ramActions' => [ [ 'operationType' => 'create', @@ -1541,12 +1219,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#projectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#projectName}'], ], ], ], @@ -1554,12 +1227,8 @@ ], 'DeleteComputeQuotaPlan' => [ 'path' => '/api/v1/quotas/{nickname}/computeQuotaPlan/{planName}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -1569,30 +1238,18 @@ 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '258225', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota_p', - ], + 'schema' => ['description' => '一级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota_p'], ], [ 'name' => 'planName', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota计划名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'planA', - ], + 'schema' => ['description' => 'Quota计划名称。', 'type' => 'string', 'required' => true, 'example' => 'planA'], ], ], 'responses' => [ @@ -1602,37 +1259,16 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0b87b7a316654730544735643e9200', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => '0A3B1E82006A23A918C70905BF08AEC7', - ], - 'data' => [ - 'description' => '请求返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b87b7a316654730544735643e9200'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => '0A3B1E82006A23A918C70905BF08AEC7'], + 'data' => ['description' => '请求返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -1650,12 +1286,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -1664,13 +1295,8 @@ 'DeleteMmsDataSource' => [ 'summary' => '删除MMA数据源,包括数据源的迁移计划、元数据', 'path' => '/api/v1/mms/datasources/{sourceId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1683,21 +1309,13 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182967', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000015', - ], + 'schema' => ['description' => '数据源ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], ], 'responses' => [ @@ -1707,17 +1325,8 @@ 'description' => '返回值', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'EA1320AB-7766-5EC7-B0F6-8B20E2298567', - ], - 'data' => [ - 'description' => '被删除数据源的ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000015', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EA1320AB-7766-5EC7-B0F6-8B20E2298567'], + 'data' => ['description' => '被删除数据源的ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000015'], ], ], ], @@ -1733,12 +1342,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -1747,13 +1351,8 @@ 'DeleteMmsJob' => [ 'summary' => '删除MMA的数据迁移计划', 'path' => '/api/v1/mms/datasources/{sourceId}/jobs/{jobId}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1766,32 +1365,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182990', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000015', - ], + 'schema' => ['description' => '数据源ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ 'name' => 'jobId', 'in' => 'path', - 'schema' => [ - 'description' => '作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '88', - ], + 'schema' => ['description' => '作业ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '88'], ], ], 'responses' => [ @@ -1801,17 +1386,8 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '31BE216F-AEF7-581E-B9C9-DECEB5424AC4', - ], - 'data' => [ - 'description' => '被删除的作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '88', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '31BE216F-AEF7-581E-B9C9-DECEB5424AC4'], + 'data' => ['description' => '被删除的作业ID', 'type' => 'integer', 'format' => 'int64', 'example' => '88'], ], ], ], @@ -1827,27 +1403,71 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ], + ], + ], + ], + ], + 'DeleteMmsTimer' => [ + 'path' => '/api/v1/mms/datasources/{sourceId}/timers/{timerId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], + ], + 'parameters' => [ + [ + 'name' => 'sourceId', + 'in' => 'path', + 'schema' => ['description' => '数据源ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], + ], + [ + 'name' => 'timerId', + 'in' => 'path', + 'schema' => ['description' => '定时任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'ApiRes', + 'description' => 'ApiRes', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '0a06dd4516687375802853481ec9fd'], + 'data' => ['description' => '被删除数据源的ID', 'type' => 'integer', 'format' => 'int64', 'example' => 'success'], ], ], ], ], + 'title' => '删除定时任务', + 'summary' => 'DeleteMmsTimer', + 'description' => '请确保在使用该接口前,已充分了解了数据传输服务独享资源组和弹性预留计算资源的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/data-transfer-fees-hourly-billing)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/data-transfer-fees-hourly-billing)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dd4516687375802853481ec9fd\\",\\n \\"data\\": 0\\n}","type":"json"}]', ], 'DeleteProject' => [ 'summary' => '删除MaxCompute项目。此操作不可逆,请谨慎调用此API', 'path' => '/api/v1/projects/{projectName}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1860,34 +1480,19 @@ 'riskType' => 'high', 'chargeType' => 'free', 'abilityTreeCode' => '142484', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'title' => 'Project名字', - 'description' => '项目名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_project', - ], + 'schema' => ['title' => 'Project名字', 'description' => '项目名称。', 'type' => 'string', 'required' => true, 'example' => 'odps_project'], ], [ 'name' => 'isLogical', 'in' => 'query', - 'schema' => [ - 'title' => '是否逻辑删除', - 'description' => '是否逻辑删除,默认为true。false表示物理删除。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'true', - ], + 'schema' => ['title' => '是否逻辑删除', 'description' => '是否逻辑删除,默认为true。false表示物理删除。', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'], ], ], 'responses' => [ @@ -1897,17 +1502,8 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0be3e0aa16667684362147582e038f', - ], - 'data' => [ - 'title' => '返回结果', - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0be3e0aa16667684362147582e038f'], + 'data' => ['title' => '返回结果', 'description' => '返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -1926,13 +1522,8 @@ ], 'DeleteQuotaPlan' => [ 'path' => '/api/v1/quotas/{nickname}/plans/{planName}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1943,50 +1534,28 @@ 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '142708', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => 'QuotaNickName', - 'type' => 'string', - 'required' => true, - 'example' => 'quota_A', - ], + 'schema' => ['description' => 'QuotaNickName', 'type' => 'string', 'required' => true, 'example' => 'quota_A'], ], [ 'name' => 'planName', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota计划名称', - 'type' => 'string', - 'required' => true, - 'example' => 'planA', - ], + 'schema' => ['description' => 'Quota计划名称', 'type' => 'string', 'required' => true, 'example' => 'planA'], ], [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户ID。', - 'type' => 'string', - 'required' => false, - 'example' => '416441016836866', - ], + 'schema' => ['description' => '租户ID。', 'type' => 'string', 'required' => false, 'example' => '416441016836866'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域id。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域id。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'], ], ], 'responses' => [ @@ -1996,16 +1565,8 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0b57ff7616612271051086500ea3ce', - ], - 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0b57ff7616612271051086500ea3ce'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -2026,25 +1587,66 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], ], ], - 'GetComputeEffectivePlan' => [ - 'path' => '/api/v1/quotas/{nickname}/computeEffectivePlan/', - 'methods' => [ - 'get', + 'DeleteRole' => [ + 'path' => '/api/v1/projects/{projectName}/roles/{roleName}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '144124', + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], + ], + 'parameters' => [ + [ + 'name' => 'projectName', + 'in' => 'path', + 'schema' => ['description' => '项目名称。', 'type' => 'string', 'required' => true, 'example' => 'odps_project'], + ], + [ + 'name' => 'roleName', + 'in' => 'path', + 'schema' => ['description' => '角色名称。', 'type' => 'string', 'required' => true, 'example' => 'admin'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult', + 'description' => 'PopResult', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0adb901117579891946416405d0409'], + 'data' => ['description' => '返回数据。', 'type' => 'string', 'example' => 'success'], + ], + ], + ], ], - 'schemes' => [ - 'https', + 'title' => '删除角色', + 'summary' => '删除MaxCompute项目级角色', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0adb901117579891946416405d0409\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + ], + 'GetComputeEffectivePlan' => [ + 'path' => '/api/v1/quotas/{nickname}/computeEffectivePlan/', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -2054,20 +1656,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '260077', - 'abilityTreeNodes' => [ - 'FEATUREodps2FOXFI', - ], + 'abilityTreeNodes' => ['FEATUREodps2FOXFI'], ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota_p', - ], + 'schema' => ['description' => '一级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota_p'], ], ], 'responses' => [ @@ -2077,46 +1672,21 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '688003E1-D1B4-5468-957E-2FFB3AC8D79B', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'plan \\"***\\" does not exist', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '688003E1-D1B4-5468-957E-2FFB3AC8D79B'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'success'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'plan \\"***\\" does not exist'], 'data' => [ 'description' => '返回结果。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'Quota计划名称。', - 'type' => 'string', - 'example' => 'planA', - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '1714356241163', - ], + 'name' => ['description' => 'Quota计划名称。', 'type' => 'string', 'example' => 'planA'], + 'createTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '1714356241163'], 'quota' => [ 'description' => 'Quota属性。', 'type' => 'object', @@ -2127,156 +1697,52 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '二级quota ID。', - 'type' => 'string', - 'example' => '10940', - ], - 'name' => [ - 'description' => '二级Quota名称。', - 'type' => 'string', - 'example' => 'dp_cn_shanghai_1696659792_p', - ], - 'nickName' => [ - 'description' => '二级Quota昵称。', - 'type' => 'string', - 'example' => 'os_MyQuota', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => 'Quota类型。', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态。', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户ID。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'cluster' => [ - 'description' => '集群ID。', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本号。', - 'type' => 'string', - 'example' => '1386', - ], - 'parameter' => [ - 'description' => 'Quota配置参数。', - 'type' => 'object', - 'example' => '{'."\n" - .' "enablePriority": false,'."\n" - .' "minCU": 25,'."\n" - .' "adhocCU": 0,'."\n" - .' "elasticReservedCU": 0,'."\n" - .' "forceReservedMin": false,'."\n" - .' "maxCU": 50,'."\n" - .' "schedulerType": "Fifo"'."\n" - .'}', - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1718155201628', - ], - 'creatorId' => [ - 'description' => '创建者id。', - 'type' => 'string', - 'example' => '672863518', - ], + 'id' => ['description' => '二级quota ID。', 'type' => 'string', 'example' => '10940'], + 'name' => ['description' => '二级Quota名称。', 'type' => 'string', 'example' => 'dp_cn_shanghai_1696659792_p'], + 'nickName' => ['description' => '二级Quota昵称。', 'type' => 'string', 'example' => 'os_MyQuota'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => 'Quota类型。', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态。', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户ID。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'], + 'cluster' => ['description' => '集群ID。', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本号。', 'type' => 'string', 'example' => '1386'], + 'parameter' => ['description' => 'Quota配置参数。', 'type' => 'object', 'example' => '{'."\n" + .' "enablePriority": false,'."\n" + .' "minCU": 25,'."\n" + .' "adhocCU": 0,'."\n" + .' "elasticReservedCU": 0,'."\n" + .' "forceReservedMin": false,'."\n" + .' "maxCU": 50,'."\n" + .' "schedulerType": "Fifo"'."\n" + .'}'], + 'createTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1718155201628'], + 'creatorId' => ['description' => '创建者id。', 'type' => 'string', 'example' => '672863518'], ], ], ], - 'id' => [ - 'description' => '一级Quota ID。', - 'type' => 'string', - 'example' => '2413', - ], - 'name' => [ - 'description' => '一级Quota名称。', - 'type' => 'string', - 'example' => 'dp_cn_shanghai_1699533470_p', - ], - 'nickName' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'example' => 'os_MyQuota_p', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => 'Quota类型,', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态。', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户ID。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '区域ID。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'cluster' => [ - 'description' => '集群ID。', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本号。', - 'type' => 'string', - 'example' => '1964', - ], - 'parameter' => [ - 'description' => '一级quota的CU值参数。', - 'type' => 'object', - 'example' => '{'."\n" - .' "enablePriority": false,'."\n" - .' "minCU": 25,'."\n" - .' "adhocCU": 0,'."\n" - .' "elasticReservedCU": 0,'."\n" - .' "forceReservedMin": false,'."\n" - .' "maxCU": 50,'."\n" - .' "schedulerType": "Fifo"'."\n" - .'}', - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1719886322347', - ], - 'creatorId' => [ - 'description' => '创建者云账号UID。', - 'type' => 'string', - 'example' => '672863518', - ], + 'id' => ['description' => '一级Quota ID。', 'type' => 'string', 'example' => '2413'], + 'name' => ['description' => '一级Quota名称。', 'type' => 'string', 'example' => 'dp_cn_shanghai_1699533470_p'], + 'nickName' => ['description' => '一级Quota昵称。', 'type' => 'string', 'example' => 'os_MyQuota_p'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => 'Quota类型,', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态。', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户ID。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '区域ID。', 'type' => 'string', 'example' => 'cn-beijing'], + 'cluster' => ['description' => '集群ID。', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本号。', 'type' => 'string', 'example' => '1964'], + 'parameter' => ['description' => '一级quota的CU值参数。', 'type' => 'object', 'example' => '{'."\n" + .' "enablePriority": false,'."\n" + .' "minCU": 25,'."\n" + .' "adhocCU": 0,'."\n" + .' "elasticReservedCU": 0,'."\n" + .' "forceReservedMin": false,'."\n" + .' "maxCU": 50,'."\n" + .' "schedulerType": "Fifo"'."\n" + .'}'], + 'createTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1719886322347'], + 'creatorId' => ['description' => '创建者云账号UID。', 'type' => 'string', 'example' => '672863518'], ], ], - 'isEffective' => [ - 'description' => '是否生效。', - 'type' => 'boolean', - 'example' => 'true/false', - ], + 'isEffective' => ['description' => '是否生效。', 'type' => 'boolean', 'example' => 'true/false'], ], ], ], @@ -2295,12 +1761,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'QuotaPlan', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'QuotaPlan', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -2308,12 +1769,8 @@ ], 'GetComputeQuotaPlan' => [ 'path' => '/api/v1/quotas/{nickname}/computeQuotaPlan/{planName}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -2323,30 +1780,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '258227', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota_p', - ], + 'schema' => ['description' => '一级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota_p'], ], [ 'name' => 'planName', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota计划名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'planA', - ], + 'schema' => ['description' => 'Quota计划名称。', 'type' => 'string', 'required' => true, 'example' => 'planA'], ], ], 'responses' => [ @@ -2356,46 +1801,21 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'EA1320AB-7766-5EC7-B0F6-8B20E2298567', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'QUOTA_PLAN_NOT_FOUND', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'plan \\"***\\" does not exist', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EA1320AB-7766-5EC7-B0F6-8B20E2298567'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'QUOTA_PLAN_NOT_FOUND'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'plan \\"***\\" does not exist'], 'data' => [ 'description' => '返回结果。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'Quota计划名称。', - 'type' => 'string', - 'example' => 'planA', - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '1730946421757', - ], + 'name' => ['description' => 'Quota计划名称。', 'type' => 'string', 'example' => 'planA'], + 'createTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '1730946421757'], 'quota' => [ 'description' => 'Quota属性。', 'type' => 'object', @@ -2413,196 +1833,57 @@ 'enumValueTitles' => [], 'example' => '10940', ], - 'name' => [ - 'description' => '二级Quota名称。', - 'type' => 'string', - 'example' => 'dp_cn_shanghai_1696659792_p', - ], - 'nickName' => [ - 'description' => '二级Quota昵称。', - 'type' => 'string', - 'example' => 'subquotaA', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段。', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态。', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户ID。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'cluster' => [ - 'description' => '集群ID。', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本号。', - 'type' => 'string', - 'example' => '1386', - ], + 'name' => ['description' => '二级Quota名称。', 'type' => 'string', 'example' => 'dp_cn_shanghai_1696659792_p'], + 'nickName' => ['description' => '二级Quota昵称。', 'type' => 'string', 'example' => 'subquotaA'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段。', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态。', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户ID。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'], + 'cluster' => ['description' => '集群ID。', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本号。', 'type' => 'string', 'example' => '1386'], 'parameter' => [ 'description' => 'CU值参数。', 'type' => 'object', 'properties' => [ - 'elasticReservedCU' => [ - 'description' => '弹性预留CU值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], - 'maxCU' => [ - 'description' => '预留CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], - 'minCU' => [ - 'description' => '预留CU保障。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], - 'schedulerType' => [ - 'description' => '调度策略。', - 'type' => 'string', - 'example' => 'Fifo/Fair', - ], - 'singleJobCULimit' => [ - 'description' => '单作业CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], - 'forceReservedMin' => [ - 'description' => '是否独占。', - 'type' => 'boolean', - 'example' => 'true/false', - ], - 'enablePriority' => [ - 'description' => '开启优先级。', - 'type' => 'boolean', - 'example' => 'true/false', - ], + 'elasticReservedCU' => ['description' => '弹性预留CU值。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], + 'maxCU' => ['description' => '预留CU上限。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], + 'minCU' => ['description' => '预留CU保障。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], + 'schedulerType' => ['description' => '调度策略。', 'type' => 'string', 'example' => 'Fifo/Fair'], + 'singleJobCULimit' => ['description' => '单作业CU上限。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], + 'forceReservedMin' => ['description' => '是否独占。', 'type' => 'boolean', 'example' => 'true/false'], + 'enablePriority' => ['description' => '开启优先级。', 'type' => 'boolean', 'example' => 'true/false'], ], ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1718155201628', - ], - 'creatorId' => [ - 'description' => '创建者云账号UID。', - 'type' => 'string', - 'example' => '672863518', - ], + 'createTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1718155201628'], + 'creatorId' => ['description' => '创建者云账号UID。', 'type' => 'string', 'example' => '672863518'], ], ], ], - 'id' => [ - 'description' => '一级Quota ID。', - 'type' => 'string', - 'example' => '2413', - ], - 'name' => [ - 'description' => '一级Quota名称。', - 'type' => 'string', - 'example' => 'quota_a'."\n", - ], - 'nickName' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'example' => 'quota_nickname', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段。', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态。', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户ID。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '区域ID。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'cluster' => [ - 'description' => '集群ID。', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本号。', - 'type' => 'string', - 'example' => '1964', - ], + 'id' => ['description' => '一级Quota ID。', 'type' => 'string', 'example' => '2413'], + 'name' => ['description' => '一级Quota名称。', 'type' => 'string', 'example' => 'quota_a'."\n"], + 'nickName' => ['description' => '一级Quota昵称。', 'type' => 'string', 'example' => 'quota_nickname'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段。', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态。', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户ID。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '区域ID。', 'type' => 'string', 'example' => 'cn-beijing'], + 'cluster' => ['description' => '集群ID。', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本号。', 'type' => 'string', 'example' => '1964'], 'parameter' => [ 'description' => '一级quota的CU值参数。', 'type' => 'object', 'properties' => [ - 'maxCU' => [ - 'description' => '预留CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], - 'minCU' => [ - 'description' => '预留CU保障。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], - 'elasticReservedCU' => [ - 'description' => '弹性预留CU值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], + 'maxCU' => ['description' => '预留CU上限。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], + 'minCU' => ['description' => '预留CU保障。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], + 'elasticReservedCU' => ['description' => '弹性预留CU值。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], ], ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1719886322347', - ], - 'creatorId' => [ - 'description' => '创建者云账号UID。', - 'type' => 'string', - 'example' => '672863518', - ], + 'createTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1719886322347'], + 'creatorId' => ['description' => '创建者云账号UID。', 'type' => 'string', 'example' => '672863518'], ], ], - 'isEffective' => [ - 'description' => '当前是否生效。'."\n" - .'> '."\n" - .'> - 已生效的Quota计划无法删除,即 isEffective=true', - 'type' => 'boolean', - 'example' => 'true/false', - ], + 'isEffective' => ['description' => '当前是否生效。'."\n" + .'> '."\n" + .'> - 已生效的Quota计划无法删除,即 isEffective=true', 'type' => 'boolean', 'example' => 'true/false'], ], ], ], @@ -2621,12 +1902,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -2634,12 +1910,8 @@ ], 'GetComputeQuotaSchedule' => [ 'path' => '/api/v1/quotas/{nickname}/computeQuotaSchedule', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -2649,33 +1921,20 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '255379', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota_p', - ], + 'schema' => ['description' => '一级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota_p'], ], [ 'name' => 'displayTimezone', 'in' => 'query', - 'schema' => [ - 'description' => '展示时区。'."\n" - ."\n" - .'> 默认为: UTC+8。', - 'type' => 'string', - 'required' => false, - 'example' => 'UTC+8', - 'default' => 'UTC+8', - ], + 'schema' => ['description' => '展示时区。'."\n" + ."\n" + .'> 默认为: UTC+8。', 'type' => 'string', 'required' => false, 'example' => 'UTC+8', 'default' => 'UTC+8'], ], ], 'responses' => [ @@ -2685,32 +1944,15 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'B42CA730-8187-50F1-9FE0-6733297036DB', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'QUOTA_UNKNOWN_NICKNAME', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'Cannot found quota **', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'B42CA730-8187-50F1-9FE0-6733297036DB'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'QUOTA_UNKNOWN_NICKNAME'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'Cannot found quota **'], 'data' => [ 'description' => '返回结果。', 'type' => 'array', @@ -2718,40 +1960,20 @@ 'description' => '返回结果。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => 'Quota计划ID。', - 'type' => 'string', - 'example' => '89b54db44d384f26964951ea457f64a5', - ], - 'type' => [ - 'description' => 'Quota计划类型。', - 'type' => 'string', - 'example' => 'daily', - ], - 'plan' => [ - 'description' => 'Quota计划名称。', - 'type' => 'string', - 'example' => 'planA', - ], + 'id' => ['description' => 'Quota计划ID。', 'type' => 'string', 'example' => '89b54db44d384f26964951ea457f64a5'], + 'type' => ['description' => 'Quota计划类型。', 'type' => 'string', 'example' => 'daily'], + 'plan' => ['description' => 'Quota计划名称。', 'type' => 'string', 'example' => 'planA'], 'condition' => [ 'description' => '生效条件值。', 'type' => 'object', 'properties' => [ - 'at' => [ - 'description' => '生效时间。', - 'type' => 'string', - 'example' => '09:00', - ], + 'at' => ['description' => '生效时间。', 'type' => 'string', 'example' => '09:00'], ], ], - 'timezone' => [ - 'description' => '时区。'."\n" - ."\n" - .'> 默认值为: UTC+8。', - 'type' => 'string', - 'example' => ' '."\n" - .'UTC+8'."\n", - ], + 'timezone' => ['description' => '时区。'."\n" + ."\n" + .'> 默认值为: UTC+8。', 'type' => 'string', 'example' => ' '."\n" + .'UTC+8'."\n"], ], ], ], @@ -2773,12 +1995,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -2786,12 +2003,8 @@ ], 'GetJobInfo' => [ 'path' => '/api/v1/jobs/{instanceId}/info', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -2801,21 +2014,14 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '257433', - 'abilityTreeNodes' => [ - 'FEATUREodpsDUKRZ1', - ], + 'abilityTreeNodes' => ['FEATUREodpsDUKRZ1'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '作业ID。', - 'type' => 'string', - 'required' => true, - 'example' => '20230410****60gg', - ], + 'schema' => ['description' => '作业ID。', 'type' => 'string', 'required' => true, 'example' => '20230410****60gg'], ], ], 'responses' => [ @@ -2825,161 +2031,42 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0be3e0bb16654558425251398e27a9', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误描述信息。', - 'type' => 'string', - 'example' => 'This object does not exist.', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0be3e0bb16654558425251398e27a9'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误描述信息。', 'type' => 'string', 'example' => 'This object does not exist.'], 'data' => [ 'description' => '返回结果。', 'type' => 'object', 'properties' => [ - 'tenantId' => [ - 'description' => '租户ID。', - 'type' => 'string', - 'example' => '4784****5249', - ], - 'region' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-shanghai', - ], - 'instanceId' => [ - 'description' => '作业ID。', - 'type' => 'string', - 'example' => '20230410****60gg', - ], - 'jobOwner' => [ - 'description' => '作业Owner。', - 'type' => 'string', - 'example' => 'ALIYUN$7632***@aliyun.com'."\n", - ], - 'project' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'example' => 'dp_cdm_prod', - ], - 'jobType' => [ - 'description' => '作业类型。', - 'type' => 'string', - 'example' => 'SQL'."\n", - ], - 'priority' => [ - 'description' => '作业优先级。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'status' => [ - 'description' => '作业状态。', - 'type' => 'string', - 'example' => 'running', - ], - 'quotaNickname' => [ - 'description' => '作业使用的计算配额(Quota)昵称。', - 'type' => 'string', - 'example' => 'os_bigdata', - ], - 'quotaType' => [ - 'description' => 'Quota类型。', - 'type' => 'string', - 'example' => 'subscription', - ], - 'cuUsage' => [ - 'description' => '作业消耗的CU时,仅运行结束的作业有此值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'memoryUsage' => [ - 'description' => '作业消耗的内存时,仅运行结束的作业有此值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '40', - ], - 'submittedAtTime' => [ - 'description' => '作业提交时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1672112013', - ], - 'waitingTime' => [ - 'description' => '等待时长,作业从提交时间到开始运行时间的时长。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'runningAtTime' => [ - 'description' => '作业开始运行时间,特指作业获取第一份计算资源的时间。对于运行时间过短或不消耗计算资源(如DDL语句)的作业,以作业提交时间替代。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1672112113', - ], - 'runningTime' => [ - 'description' => '运行时长,作业从开始运行时间到结束运行时间的时长。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '800', - ], - 'endAtTime' => [ - 'description' => '作业运行结束时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1672112913', - ], - 'totalTime' => [ - 'description' => '总运行时长,作业从提交时间到结束时间总时长。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '900', - ], - 'signature' => [ - 'description' => 'SQL作业签名。可通过此签名查找SQL每次执行的Instances。', - 'type' => 'string', - 'example' => '20c1efb4a7caca1865f4aa784bb500efae74af04', - ], - 'extPlantFrom' => [ - 'description' => '上游平台。', - 'type' => 'string', - 'example' => 'platform_3', - ], - 'extNodeId' => [ - 'description' => '上游节点ID。', - 'type' => 'string', - 'example' => 'node_4', - ], - 'extNodeOnDuty' => [ - 'description' => '任务负责人账号ID。', - 'type' => 'string', - 'example' => 'duty_2', - ], - 'inputBytes' => [ - 'description' => '作业扫描量', - 'type' => 'number', - 'format' => 'double', - 'example' => '1234', - ], + 'tenantId' => ['description' => '租户ID。', 'type' => 'string', 'example' => '4784****5249'], + 'region' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-shanghai'], + 'instanceId' => ['description' => '作业ID。', 'type' => 'string', 'example' => '20230410****60gg'], + 'jobOwner' => ['description' => '作业Owner。', 'type' => 'string', 'example' => 'ALIYUN$7632***@aliyun.com'."\n"], + 'project' => ['description' => '项目名称。', 'type' => 'string', 'example' => 'dp_cdm_prod'], + 'jobType' => ['description' => '作业类型。', 'type' => 'string', 'example' => 'SQL'."\n"], + 'priority' => ['description' => '作业优先级。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'status' => ['description' => '作业状态。', 'type' => 'string', 'example' => 'running'], + 'quotaNickname' => ['description' => '作业使用的计算配额(Quota)昵称。', 'type' => 'string', 'example' => 'os_bigdata'], + 'quotaType' => ['description' => 'Quota类型。', 'type' => 'string', 'example' => 'subscription'], + 'cuUsage' => ['description' => '作业消耗的CU时,仅运行结束的作业有此值。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'memoryUsage' => ['description' => '作业消耗的内存时,仅运行结束的作业有此值。', 'type' => 'integer', 'format' => 'int64', 'example' => '40'], + 'submittedAtTime' => ['description' => '作业提交时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1672112013'], + 'waitingTime' => ['description' => '等待时长,作业从提交时间到开始运行时间的时长。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'runningAtTime' => ['description' => '作业开始运行时间,特指作业获取第一份计算资源的时间。对于运行时间过短或不消耗计算资源(如DDL语句)的作业,以作业提交时间替代。', 'type' => 'integer', 'format' => 'int64', 'example' => '1672112113'], + 'runningTime' => ['description' => '运行时长,作业从开始运行时间到结束运行时间的时长。', 'type' => 'integer', 'format' => 'int64', 'example' => '800'], + 'endAtTime' => ['description' => '作业运行结束时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1672112913'], + 'totalTime' => ['description' => '总运行时长,作业从提交时间到结束时间总时长。', 'type' => 'integer', 'format' => 'int64', 'example' => '900'], + 'signature' => ['description' => 'SQL作业签名。可通过此签名查找SQL每次执行的Instances。', 'type' => 'string', 'example' => '20c1efb4a7caca1865f4aa784bb500efae74af04'], + 'extPlantFrom' => ['description' => '上游平台。', 'type' => 'string', 'example' => 'platform_3'], + 'extNodeId' => ['description' => '上游节点ID。', 'type' => 'string', 'example' => 'node_4'], + 'extNodeOnDuty' => ['description' => '任务负责人账号ID。', 'type' => 'string', 'example' => 'duty_2'], + 'inputBytes' => ['description' => '作业扫描量', 'type' => 'number', 'format' => 'double', 'example' => '1234'], 'sceneResults' => [ 'description' => '智能诊断结果。', 'type' => 'array', @@ -2987,46 +2074,17 @@ 'description' => '智能诊断结果。', 'type' => 'object', 'properties' => [ - 'sceneTag' => [ - 'title' => '作业诊断场景标识', - 'description' => '智能诊断结果标签。', - 'type' => 'string', - 'example' => 'SubscriptionLackResource', - ], - 'scene' => [ - 'title' => '场景中文名称,用于诊断结果展示', - 'description' => '智能诊断结果场景。', - 'type' => 'string', - 'example' => 'LackResource', - ], - 'type' => [ - 'title' => '诊断场景类型,如WARNING/ERROR', - 'description' => '智能诊断结果类型。', - 'type' => 'string', - 'example' => 'warning', - ], - 'summary' => [ - 'title' => '诊断结果摘要,hover 展示', - 'description' => '智能诊断结果简述。', - 'type' => 'string', - 'example' => ' '."\n" - .'Insufficient computing resources available for the job. Click to view details.', - ], - 'description' => [ - 'title' => '诊断结果描述,概览页详情', - 'description' => '智能诊断结果详情。', - 'type' => 'string', - 'example' => 'This job uses annual and monthly computing resources. It may be that the job is waiting for resources due to the large amount of overall job running data, many resources requested, and low job priority. Please go to Resource Consumption to view the specific situation. You can also go to Cost Optimization to see if you need to adjust resource configuration.', - ], + 'sceneTag' => ['title' => '作业诊断场景标识', 'description' => '智能诊断结果标签。', 'type' => 'string', 'example' => 'SubscriptionLackResource'], + 'scene' => ['title' => '场景中文名称,用于诊断结果展示', 'description' => '智能诊断结果场景。', 'type' => 'string', 'example' => 'LackResource'], + 'type' => ['title' => '诊断场景类型,如WARNING/ERROR', 'description' => '智能诊断结果类型。', 'type' => 'string', 'example' => 'warning'], + 'summary' => ['title' => '诊断结果摘要,hover 展示', 'description' => '智能诊断结果简述。', 'type' => 'string', 'example' => ' '."\n" + .'Insufficient computing resources available for the job. Click to view details.'], + 'description' => ['title' => '诊断结果描述,概览页详情', 'description' => '智能诊断结果详情。', 'type' => 'string', 'example' => 'This job uses annual and monthly computing resources. It may be that the job is waiting for resources due to the large amount of overall job running data, many resources requested, and low job priority. Please go to Resource Consumption to view the specific situation. You can also go to Cost Optimization to see if you need to adjust resource configuration.'], 'params' => [ 'title' => '诊断场景参数,用于前端文本替换', 'description' => '数据倾斜、数据膨胀节点信息。只有当诊断场景为数据倾斜、数据膨胀时返回此参数。', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '"jobinsight_data_skew_node": "Worker M1#10000_0"'."\n", - 'description' => '数据倾斜、数据膨胀节点信息。', - ], + 'additionalProperties' => ['type' => 'string', 'example' => '"jobinsight_data_skew_node": "Worker M1#10000_0"'."\n", 'description' => '数据倾斜、数据膨胀节点信息。'], ], ], ], @@ -3038,22 +2096,9 @@ 'description' => '作业子状态信息。', 'type' => 'object', 'properties' => [ - 'code' => [ - 'description' => '子状态的编码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1010', - ], - 'startTime' => [ - 'description' => '子状态的开始时间。', - 'type' => 'string', - 'example' => '2025-03-05 00:04:15.717364 +0800', - ], - 'description' => [ - 'description' => '子状态的描述。', - 'type' => 'string', - 'example' => 'Waiting for scheduling', - ], + 'code' => ['description' => '子状态的编码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1010'], + 'startTime' => ['description' => '子状态的开始时间。', 'type' => 'string', 'example' => '2025-03-05 00:04:15.717364 +0800'], + 'description' => ['description' => '子状态的描述。', 'type' => 'string', 'example' => 'Waiting for scheduling'], ], ], ], @@ -3075,12 +2120,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Job', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:job/{#instanceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Job', 'arn' => 'acs:odps:{#regionId}:{#accountId}:job/{#instanceId}'], ], ], ], @@ -3088,13 +2128,8 @@ ], 'GetJobResourceUsage' => [ 'path' => '/api/v1/jobs/resourceUsage', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3104,20 +2139,13 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '188399', - 'abilityTreeNodes' => [ - 'FEATUREodpsDUKRZ1', - ], + 'abilityTreeNodes' => ['FEATUREodpsDUKRZ1'], ], 'parameters' => [ [ 'name' => 'date', 'in' => 'query', - 'schema' => [ - 'description' => '查询的日期,以天为级别,时间参数填写必须为yyyy-MM-dd', - 'type' => 'string', - 'required' => true, - 'example' => '2023-05-15', - ], + 'schema' => ['description' => '查询的日期,以天为级别,时间参数填写必须为yyyy-MM-dd', 'type' => 'string', 'required' => true, 'example' => '2023-05-15'], ], [ 'name' => 'jobOwnerList', @@ -3126,12 +2154,7 @@ 'schema' => [ 'description' => '作业的执行者列表', 'type' => 'array', - 'items' => [ - 'description' => '作业的执行者列表', - 'type' => 'string', - 'required' => false, - 'example' => 'ALIYUN$xxx@test.aliyunid.com', - ], + 'items' => ['description' => '作业的执行者列表', 'type' => 'string', 'required' => false, 'example' => 'ALIYUN$xxx@test.aliyunid.com'], 'required' => false, ], ], @@ -3142,36 +2165,19 @@ 'schema' => [ 'description' => '作业使用的配额昵称列表', 'type' => 'array', - 'items' => [ - 'description' => '作业使用的配额昵称列表', - 'type' => 'string', - 'required' => false, - 'example' => 'my_quota', - ], + 'items' => ['description' => '作业使用的配额昵称列表', 'type' => 'string', 'required' => false, 'example' => 'my_quota'], 'required' => false, ], ], [ 'name' => 'pageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回数目,默认为10,最大为100', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '每页返回数目,默认为10,最大为100', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], ], 'responses' => [ @@ -3181,27 +2187,10 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '0b57ff7616612271051086500ea3ce', - ], - 'httpCode' => [ - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => '0A3B1E82006A23A918C70905BF08AEC7', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '0b57ff7616612271051086500ea3ce'], + 'httpCode' => ['description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码', 'type' => 'string', 'example' => 'success'], + 'errorMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => '0A3B1E82006A23A918C70905BF08AEC7'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -3213,54 +2202,17 @@ 'description' => '返回的数据列表', 'type' => 'object', 'properties' => [ - 'date' => [ - 'description' => '日程开始日期,格式:yyyy-MM-dd。', - 'type' => 'string', - 'example' => '2023-05-09', - ], - 'jobOwner' => [ - 'description' => '作业的执行者', - 'type' => 'string', - 'example' => 'ALIYUN$xxx@test.aliyunid.com', - ], - 'quotaNickname' => [ - 'description' => '配额昵称', - 'type' => 'string', - 'example' => 'my_quota', - ], - 'cuUsage' => [ - 'description' => 'cu使用总量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1185100', - ], - 'memoryUsage' => [ - 'description' => '内存使用总量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '15169536', - ], + 'date' => ['description' => '日程开始日期,格式:yyyy-MM-dd。', 'type' => 'string', 'example' => '2023-05-09'], + 'jobOwner' => ['description' => '作业的执行者', 'type' => 'string', 'example' => 'ALIYUN$xxx@test.aliyunid.com'], + 'quotaNickname' => ['description' => '配额昵称', 'type' => 'string', 'example' => 'my_quota'], + 'cuUsage' => ['description' => 'cu使用总量', 'type' => 'integer', 'format' => 'int64', 'example' => '1185100'], + 'memoryUsage' => ['description' => '内存使用总量', 'type' => 'integer', 'format' => 'int64', 'example' => '15169536'], ], ], ], - 'totalCount' => [ - 'description' => '返回结果的总数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '64', - ], - 'pageNumber' => [ - 'description' => '当前页码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'pageSize' => [ - 'description' => '每页显示条数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], + 'totalCount' => ['description' => '返回结果的总数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '64'], + 'pageNumber' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'pageSize' => ['description' => '每页显示条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], ], ], ], @@ -3279,12 +2231,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -3293,13 +2240,8 @@ 'GetMmsAsyncTask' => [ 'summary' => '获取MMA单个异步任务', 'path' => '/api/v1/mms/datasources/{sourceId}/asyncTasks/{asyncTaskId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3312,32 +2254,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182969', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000028', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000028'], ], [ 'name' => 'asyncTaskId', 'in' => 'path', - 'schema' => [ - 'description' => '异步任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1000286', - ], + 'schema' => ['description' => '异步任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1000286'], ], ], 'responses' => [ @@ -3347,84 +2275,29 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '688003E1-D1B4-5468-957E-2FFB3AC8D79B', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '688003E1-D1B4-5468-957E-2FFB3AC8D79B'], 'data' => [ 'description' => '异步任务对象', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '异步任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2523', - ], - 'sourceId' => [ - 'description' => '数据源ID。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000017', - ], + 'id' => ['description' => '异步任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2523'], + 'sourceId' => ['description' => '数据源ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '2000017'], 'type' => [ 'title' => 'META_SCAN, META_SAVE, TASK_CREATE, RESTART_AGENT, STOP_JOB, CONN_TEST', 'description' => '异步任务类型', 'type' => 'string', - 'enumValueTitles' => [ - 'TASK_CREATE' => '创建迁移作业', - 'STOP_JOB' => '停止迁移作业', - ], + 'enumValueTitles' => ['TASK_CREATE' => '创建迁移作业', 'STOP_JOB' => '停止迁移作业'], 'example' => 'TASK_CREATE', ], - 'objectId' => [ - 'description' => '异步任务关联对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '232', - ], - 'status' => [ - 'description' => '异步任务状态', - 'type' => 'string', - 'example' => 'DONE', - ], - 'running' => [ - 'description' => '是否正在运行', - 'type' => 'boolean', - 'example' => 'false', - ], - 'progress' => [ - 'description' => '运行进度', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'result' => [ - 'description' => '运行结果', - 'type' => 'string', - 'example' => 'null', - ], - 'errorMsg' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'null', - ], - 'startTime' => [ - 'description' => '开始运行时间', - 'type' => 'string', - 'example' => '2024-12-17 15:44:17'."\n", - ], - 'endTime' => [ - 'description' => '结束运行时间', - 'type' => 'string', - 'example' => '2024-12-17 17:44:17'."\n", - ], - 'createTime' => [ - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-12-17 15:44:00'."\n", - ], + 'objectId' => ['description' => '异步任务关联对象ID', 'type' => 'integer', 'format' => 'int64', 'example' => '232'], + 'status' => ['description' => '异步任务状态', 'type' => 'string', 'example' => 'DONE'], + 'running' => ['description' => '是否正在运行', 'type' => 'boolean', 'example' => 'false'], + 'progress' => ['description' => '运行进度', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'result' => ['description' => '运行结果', 'type' => 'string', 'example' => 'null'], + 'errorMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'null'], + 'startTime' => ['description' => '开始运行时间', 'type' => 'string', 'example' => '2024-12-17 15:44:17'."\n"], + 'endTime' => ['description' => '结束运行时间', 'type' => 'string', 'example' => '2024-12-17 17:44:17'."\n"], + 'createTime' => ['description' => '创建时间', 'type' => 'string', 'example' => '2024-12-17 15:44:00'."\n"], ], ], ], @@ -3445,12 +2318,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -3459,12 +2327,8 @@ 'GetMmsDataSource' => [ 'summary' => '获取单个MMA数据源详情', 'path' => '/api/v1/mms/datasources/{sourceId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -3477,43 +2341,23 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182976', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000015', - ], + 'schema' => ['description' => '数据源ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ 'name' => 'withConfig', 'in' => 'query', - 'schema' => [ - 'description' => '是否获取数据源的具体配置项', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'true', - ], + 'schema' => ['description' => '是否获取数据源的具体配置项', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'], ], [ 'name' => 'lang', 'in' => 'query', - 'schema' => [ - 'description' => '指定配置项的描述语言', - 'type' => 'string', - 'required' => false, - 'example' => 'en_US', - 'default' => 'zh_CN', - ], + 'schema' => ['description' => '指定配置项的描述语言', 'type' => 'string', 'required' => false, 'example' => 'en_US', 'default' => 'zh_CN'], ], ], 'responses' => [ @@ -3523,111 +2367,42 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '98EC8C47-3D6D-560C-808B-84E494220A32', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '98EC8C47-3D6D-560C-808B-84E494220A32'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000015', - ], - 'region' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-shanghai', - ], - 'name' => [ - 'description' => '数据源名字', - 'type' => 'string', - 'example' => 'demo', - ], - 'dstProject' => [ - 'title' => '默认MaxCompute目标项目名', - 'description' => '默认MaxCompute目标项目名', - 'type' => 'string', - 'example' => 'mms_test', - ], + 'id' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000015'], + 'region' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-shanghai'], + 'name' => ['description' => '数据源名字', 'type' => 'string', 'example' => 'demo'], + 'dstProject' => ['title' => '默认MaxCompute目标项目名', 'description' => '默认MaxCompute目标项目名', 'type' => 'string', 'example' => 'mms_test'], 'dstProjects' => [ 'title' => '目标MaxCompute项目列表', 'description' => '目标MaxCompute项目列表', 'type' => 'array', - 'items' => [ - 'title' => '目标项目', - 'description' => '目标项目', - 'type' => 'string', - 'example' => 'mms_test1', - ], + 'items' => ['title' => '目标项目', 'description' => '目标项目', 'type' => 'string', 'example' => 'mms_test1'], ], 'type' => [ 'title' => 'HIVE, OSS, MAXCOMPUTE, MOCK, HIVE_OSS', 'description' => '数据源类型', 'type' => 'string', - 'enumValueTitles' => [ - 'HIVE' => 'HIVE', - 'BIGQUERY' => 'BIGQUERY', - 'MAXCOMPUTE' => 'MAXCOMPUTE', - ], + 'enumValueTitles' => ['HIVE' => 'HIVE', 'BIGQUERY' => 'BIGQUERY', 'MAXCOMPUTE' => 'MAXCOMPUTE'], 'example' => 'BIGQUERY', ], - 'networklink' => [ - 'description' => '"maxcompute网络连接ID":regioinID', + 'networklink' => ['description' => '"maxcompute网络连接ID":regioinID', 'type' => 'string', 'example' => 'vpc-2zebqp6uojhdla46677tl:cn-shanghai'], + 'lastUpdateTime' => ['description' => '元数据最新同步时间', 'type' => 'string', 'example' => '2024-12-17 15:44:17'], + 'dbNum' => ['description' => '数据源中“库”的数量', 'type' => 'integer', 'format' => 'int32', 'example' => '3'], + 'tableNum' => ['description' => '数据源中“表”的数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'], + 'partitionNum' => ['description' => '数据源中“分区”的数量', 'type' => 'integer', 'format' => 'int32', 'example' => '10000000'], + 'createTime' => ['description' => '数据源创建时间', 'type' => 'string', 'example' => '2024-12-17 09:29:58'], + 'status' => [ + 'title' => 'STOPPED, STARTING, STARTED, STOPPING, START_FAILED, STOP_FAILED', + 'description' => '数据源状态', 'type' => 'string', - 'example' => 'vpc-2zebqp6uojhdla46677tl:cn-shanghai', - ], - 'lastUpdateTime' => [ - 'description' => '元数据最新同步时间', - 'type' => 'string', - 'example' => '2024-12-17 15:44:17', - ], - 'dbNum' => [ - 'description' => '数据源中“库”的数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'tableNum' => [ - 'description' => '数据源中“表”的数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1000', - ], - 'partitionNum' => [ - 'description' => '数据源中“分区”的数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10000000', - ], - 'createTime' => [ - 'description' => '数据源创建时间', - 'type' => 'string', - 'example' => '2024-12-17 09:29:58', - ], - 'status' => [ - 'title' => 'STOPPED, STARTING, STARTED, STOPPING, START_FAILED, STOP_FAILED', - 'description' => '数据源状态', - 'type' => 'string', - 'enumValueTitles' => [ - 'STARTING' => 'STARTING', - 'STOPPED' => 'STOPPED', - 'STARTED' => 'STARTED', - 'START_FAILED' => 'START_FAILED', - 'STOPPING' => 'STOPPING', - 'STOP_FAILED' => 'STOP_FAILED', - ], + 'enumValueTitles' => ['STARTING' => 'STARTING', 'STOPPED' => 'STOPPED', 'STARTED' => 'STARTED', 'START_FAILED' => 'START_FAILED', 'STOPPING' => 'STOPPING', 'STOP_FAILED' => 'STOP_FAILED'], 'example' => 'STARTED', ], - 'errMsg' => [ - 'description' => 'status为START_FAILED或STOP_FAILED时,数据源实例“启动”或“关闭”失败的原因', - 'type' => 'string', - 'example' => 'unexpected exception', - ], + 'errMsg' => ['description' => 'status为START_FAILED或STOP_FAILED时,数据源实例“启动”或“关闭”失败的原因', 'type' => 'string', 'example' => 'unexpected exception'], 'config' => [ 'description' => '数据源相关配置', 'type' => 'array', @@ -3635,140 +2410,49 @@ 'description' => '数据源相关配置', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '配置名', - 'type' => 'string', - 'example' => '范围分区表迁移方式', - ], - 'key' => [ - 'description' => '配置的英文标识', - 'type' => 'string', - 'example' => 'bigquery.range.partition.migrate.type', - ], - 'desc' => [ - 'description' => '配置描述', - 'type' => 'string', - 'example' => '范围分区表迁移方式', - ], - 'placeHolder' => [ - 'description' => '配置示例值', - 'type' => 'string', - 'example' => 'Cluster or Partition', - ], + 'name' => ['description' => '配置名', 'type' => 'string', 'example' => 'Range partition table migration method'], + 'key' => ['description' => '配置的英文标识', 'type' => 'string', 'example' => 'bigquery.range.partition.migrate.type'], + 'desc' => ['description' => '配置描述', 'type' => 'string', 'example' => 'Range partition table migration method'], + 'placeHolder' => ['description' => '配置示例值', 'type' => 'string', 'example' => 'Cluster or Partition'], 'type' => [ 'description' => '配置类型:boolean, int, map, string, password, file', 'type' => 'string', - 'enumValueTitles' => [ - 'password' => 'password', - 'file' => 'file', - 'string' => 'string', - 'map' => 'map', - 'booelan' => 'booelan', - 'int' => 'int', - ], + 'enumValueTitles' => ['password' => 'password', 'file' => 'file', 'string' => 'string', 'map' => 'map', 'booelan' => 'booelan', 'int' => 'int'], 'example' => 'string', ], - 'subType' => [ - 'description' => 'type为file时,subType指定具体的文件类型,如.keytab', - 'type' => 'string', - 'example' => '.keytab', - ], - 'value' => [ - 'description' => '配置值', - 'type' => 'any', - 'example' => 'Partition'."\n", - ], + 'subType' => ['description' => 'type为file时,subType指定具体的文件类型,如.keytab', 'type' => 'string', 'example' => '.keytab'], + 'value' => ['description' => '配置值', 'type' => 'any', 'example' => 'Partition'."\n"], 'enums' => [ 'description' => '配置值的枚举值', 'type' => 'array', - 'items' => [ - 'description' => '配置值的枚举值', - 'type' => 'string', - 'example' => 'Cluster or Partition', - ], - ], - 'required' => [ - 'description' => '是否是必有配置', - 'type' => 'boolean', - 'example' => 'true', - ], - 'group' => [ - 'description' => '配置分组', - 'type' => 'string', - 'example' => 'basic_group', + 'items' => ['description' => '配置值的枚举值', 'type' => 'string', 'example' => 'Cluster or Partition'], ], + 'required' => ['description' => '是否是必有配置', 'type' => 'boolean', 'example' => 'true'], + 'group' => ['description' => '配置分组', 'type' => 'string', 'example' => 'basic_group'], 'subItems' => [ 'description' => '配置子项,有些配置项是否需要依赖其他配置项的值。这种依赖其他配置项的配置会被作为被依赖项的子项', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'any', - 'example' => '{"azure.bob.sas.token": "xxx"}', - 'description' => '子配置项', - ], + 'additionalProperties' => ['type' => 'any', 'example' => '{"azure.bob.sas.token": "xxx"}', 'description' => '子配置项'], ], ], ], ], - 'agentIsOnline' => [ - 'description' => '数据源实例或相关联的agent是否启动', - 'type' => 'boolean', - 'example' => 'true', - ], - 'tablesDoingNum' => [ - 'description' => '正在迁移的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '19', - ], - 'tablesDoneNum' => [ - 'description' => '迁移完成的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '16', - ], - 'tablesPartDoneNum' => [ - 'description' => '迁移部分完成的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '123', - ], - 'tablesFailedNum' => [ - 'description' => '迁移失败的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'partitionsDoingNum' => [ - 'description' => '正在迁移的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '23322', - ], - 'partitionsDoneNum' => [ - 'description' => '迁移完成的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '11113', - ], - 'partitionsFailedNum' => [ - 'description' => '迁移失败的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '32', - ], - 'scanId' => [ - 'description' => '同步元数据任务的ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000253', - ], + 'agentIsOnline' => ['description' => '数据源实例或相关联的agent是否启动', 'type' => 'boolean', 'example' => 'true'], + 'tablesDoingNum' => ['description' => '正在迁移的表', 'type' => 'integer', 'format' => 'int32', 'example' => '19'], + 'tablesDoneNum' => ['description' => '迁移完成的表', 'type' => 'integer', 'format' => 'int32', 'example' => '16'], + 'tablesPartDoneNum' => ['description' => '迁移部分完成的表', 'type' => 'integer', 'format' => 'int32', 'example' => '123'], + 'tablesFailedNum' => ['description' => '迁移失败的表', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'partitionsDoingNum' => ['description' => '正在迁移的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '23322'], + 'partitionsDoneNum' => ['description' => '迁移完成的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '11113'], + 'partitionsFailedNum' => ['description' => '迁移失败的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '32'], + 'scanId' => ['description' => '同步元数据任务的ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1000253'], ], ], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"98EC8C47-3D6D-560C-808B-84E494220A32\\",\\n \\"data\\": {\\n \\"id\\": 2000015,\\n \\"region\\": \\"cn-shanghai\\",\\n \\"name\\": \\"demo\\",\\n \\"dstProject\\": \\"mms_test\\",\\n \\"dstProjects\\": [\\n \\"mms_test1\\"\\n ],\\n \\"type\\": \\"BIGQUERY\\",\\n \\"networklink\\": \\"vpc-2zebqp6uojhdla46677tl:cn-shanghai\\",\\n \\"lastUpdateTime\\": \\"2024-12-17 15:44:17\\",\\n \\"dbNum\\": 3,\\n \\"tableNum\\": 1000,\\n \\"partitionNum\\": 10000000,\\n \\"createTime\\": \\"2024-12-17 09:29:58\\",\\n \\"status\\": \\"STARTED\\",\\n \\"errMsg\\": \\"unexpected exception\\",\\n \\"config\\": [\\n {\\n \\"name\\": \\"范围分区表迁移方式\\",\\n \\"key\\": \\"bigquery.range.partition.migrate.type\\",\\n \\"desc\\": \\"范围分区表迁移方式\\",\\n \\"placeHolder\\": \\"Cluster or Partition\\",\\n \\"type\\": \\"string\\",\\n \\"subType\\": \\".keytab\\",\\n \\"value\\": \\"Partition\\\\n\\",\\n \\"enums\\": [\\n \\"Cluster or Partition\\"\\n ],\\n \\"required\\": true,\\n \\"group\\": \\"basic_group\\",\\n \\"subItems\\": {\\n \\"key\\": \\"{\\\\\\"azure.bob.sas.token\\\\\\": \\\\\\"xxx\\\\\\"}\\"\\n }\\n }\\n ],\\n \\"agentIsOnline\\": true,\\n \\"tablesDoingNum\\": 19,\\n \\"tablesDoneNum\\": 16,\\n \\"tablesPartDoneNum\\": 123,\\n \\"tablesFailedNum\\": 2,\\n \\"partitionsDoingNum\\": 23322,\\n \\"partitionsDoneNum\\": 11113,\\n \\"partitionsFailedNum\\": 32,\\n \\"scanId\\": 1000253\\n }\\n}","type":"json"}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"98EC8C47-3D6D-560C-808B-84E494220A32\\",\\n \\"data\\": {\\n \\"id\\": 2000015,\\n \\"region\\": \\"cn-shanghai\\",\\n \\"name\\": \\"demo\\",\\n \\"dstProject\\": \\"mms_test\\",\\n \\"dstProjects\\": [\\n \\"mms_test1\\"\\n ],\\n \\"type\\": \\"BIGQUERY\\",\\n \\"networklink\\": \\"vpc-2zebqp6uojhdla46677tl:cn-shanghai\\",\\n \\"lastUpdateTime\\": \\"2024-12-17 15:44:17\\",\\n \\"dbNum\\": 3,\\n \\"tableNum\\": 1000,\\n \\"partitionNum\\": 10000000,\\n \\"createTime\\": \\"2024-12-17 09:29:58\\",\\n \\"status\\": \\"STARTED\\",\\n \\"errMsg\\": \\"unexpected exception\\",\\n \\"config\\": [\\n {\\n \\"name\\": \\"Range partition table migration method\\",\\n \\"key\\": \\"bigquery.range.partition.migrate.type\\",\\n \\"desc\\": \\"Range partition table migration method\\",\\n \\"placeHolder\\": \\"Cluster or Partition\\",\\n \\"type\\": \\"string\\",\\n \\"subType\\": \\".keytab\\",\\n \\"value\\": \\"Partition\\\\n\\",\\n \\"enums\\": [\\n \\"Cluster or Partition\\"\\n ],\\n \\"required\\": true,\\n \\"group\\": \\"basic_group\\",\\n \\"subItems\\": {\\n \\"key\\": \\"{\\\\\\"azure.bob.sas.token\\\\\\": \\\\\\"xxx\\\\\\"}\\"\\n }\\n }\\n ],\\n \\"agentIsOnline\\": true,\\n \\"tablesDoingNum\\": 19,\\n \\"tablesDoneNum\\": 16,\\n \\"tablesPartDoneNum\\": 123,\\n \\"tablesFailedNum\\": 2,\\n \\"partitionsDoingNum\\": 23322,\\n \\"partitionsDoneNum\\": 11113,\\n \\"partitionsFailedNum\\": 32,\\n \\"scanId\\": 1000253\\n }\\n}","type":"json"}]', 'title' => '获取单个数据源详情', 'changeSet' => [], 'flowControl' => [ @@ -3782,12 +2466,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -3796,13 +2475,8 @@ 'GetMmsDb' => [ 'summary' => '获取MMA数据源内的某个库', 'path' => '/api/v1/mms/datasources/{sourceId}/dbs/{dbId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3815,32 +2489,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182971', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000017', - ], + 'schema' => ['description' => '数据源ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000017'], ], [ 'name' => 'dbId', 'in' => 'path', - 'schema' => [ - 'description' => '库ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1232', - ], + 'schema' => ['description' => '库ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1232'], ], ], 'responses' => [ @@ -3850,158 +2510,41 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '90D64EB6-2962-5B1C-A039-BC41C8176C7F', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '90D64EB6-2962-5B1C-A039-BC41C8176C7F'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '库ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '63', - ], - 'name' => [ - 'description' => '库名', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'description' => [ - 'description' => '库描述', - 'type' => 'string', - 'example' => 'for mms_test', - ], - 'owner' => [ - 'description' => '库所有者', - 'type' => 'string', - 'example' => 'System user', - ], - 'location' => [ - 'description' => '库的存储位置', - 'type' => 'string', - 'example' => ' hdfs://master-1-1.c-6fc187819ed6bae0.cn-shanghai.emr.aliyuncs.com:9000/user/hive/warehouse ', - ], - 'extra' => [ - 'description' => '以JSON格式存储的其他信息', - 'type' => 'string', - 'example' => '{}', - ], - 'tables' => [ - 'description' => '表数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'tablesDoing' => [ - 'description' => '正在迁移的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'tablesDone' => [ - 'description' => '迁移完成的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '120', - ], - 'tablesPartDone' => [ - 'description' => '完成部分迁移的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'tablesFailed' => [ - 'description' => '迁移失败的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'partitions' => [ - 'description' => '分区数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'partitionsDoing' => [ - 'description' => '正在迁移的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'partitionsDone' => [ - 'description' => '迁移完成的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1400', - ], - 'partitionsFailed' => [ - 'description' => '迁移失败的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '400', - ], - 'sourceId' => [ - 'description' => '数据源ID。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000017', - ], - 'sourceName' => [ - 'description' => '数据源名', - 'type' => 'string', - 'example' => 'demo', - ], - 'size' => [ - 'description' => '库数据大小-单位Bytes', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '323232332', - ], - 'numRows' => [ - 'description' => '库数据行数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2323', - ], - 'updated' => [ - 'description' => '元数据是否有更新', - 'type' => 'boolean', - 'example' => 'true', - ], - 'lastDdlTime' => [ - 'description' => 'last ddl time', - 'type' => 'string', - 'example' => '2024-12-17 15:44:42'."\n", - ], + 'id' => ['description' => '库ID', 'type' => 'integer', 'format' => 'int64', 'example' => '63'], + 'name' => ['description' => '库名', 'type' => 'string', 'example' => 'mms_test'], + 'description' => ['description' => '库描述', 'type' => 'string', 'example' => 'for mms_test'], + 'owner' => ['description' => '库所有者', 'type' => 'string', 'example' => 'System user'], + 'location' => ['description' => '库的存储位置', 'type' => 'string', 'example' => ' hdfs://master-1-1.c-6fc187819ed6bae0.cn-shanghai.emr.aliyuncs.com:9000/user/hive/warehouse '], + 'extra' => ['description' => '以JSON格式存储的其他信息', 'type' => 'string', 'example' => '{}'], + 'tables' => ['description' => '表数量', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'tablesDoing' => ['description' => '正在迁移的表', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'tablesDone' => ['description' => '迁移完成的表', 'type' => 'integer', 'format' => 'int32', 'example' => '120'], + 'tablesPartDone' => ['description' => '完成部分迁移的表', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'tablesFailed' => ['description' => '迁移失败的表', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'partitions' => ['description' => '分区数量', 'type' => 'integer', 'format' => 'int32', 'example' => '2000'], + 'partitionsDoing' => ['description' => '正在迁移的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'partitionsDone' => ['description' => '迁移完成的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '1400'], + 'partitionsFailed' => ['description' => '迁移失败的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '400'], + 'sourceId' => ['description' => '数据源ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '2000017'], + 'sourceName' => ['description' => '数据源名', 'type' => 'string', 'example' => 'demo'], + 'size' => ['description' => '库数据大小-单位Bytes', 'type' => 'integer', 'format' => 'int64', 'example' => '323232332'], + 'numRows' => ['description' => '库数据行数', 'type' => 'integer', 'format' => 'int64', 'example' => '2323'], + 'updated' => ['description' => '元数据是否有更新', 'type' => 'boolean', 'example' => 'true'], + 'lastDdlTime' => ['description' => 'last ddl time', 'type' => 'string', 'example' => '2024-12-17 15:44:42'."\n"], 'status' => [ 'title' => 'INIT, DOING, FAILED, DONE, PART_DONE', 'description' => '迁移状态:INIT, DOING, FAILED, DONE, PART_DONE', 'type' => 'string', - 'enumValueTitles' => [ - 'PART_DONE' => '部分迁移完成', - 'INIT' => '未迁移', - 'DONE' => '迁移完成', - 'DOING' => '迁移中', - 'FAILED' => '迁移失败', - ], + 'enumValueTitles' => ['PART_DONE' => '部分迁移完成', 'INIT' => '未迁移', 'DONE' => '迁移完成', 'DOING' => '迁移中', 'FAILED' => '迁移失败'], 'example' => 'DOING', ], - 'dstName' => [ - 'title' => '源“库”对应的MaxCompute schema. 目标MaxCompute项目没有开启schema层时,该值为null. 默认与源“库”名一致', - 'description' => '源“库”对应的MaxCompute schema. 目标MaxCompute项目没有开启schema层时,该值为null. 默认与源“库”名一致', - 'type' => 'string', - 'example' => 'default', - ], - 'dstProjectName' => [ - 'title' => '目标MaxCompute项目名', - 'description' => '目标MaxCompute项目名', - 'type' => 'string', - 'example' => 'mma_test', - ], + 'dstName' => ['title' => '源“库”对应的MaxCompute schema. 目标MaxCompute项目没有开启schema层时,该值为null. 默认与源“库”名一致', 'description' => '源“库”对应的MaxCompute schema. 目标MaxCompute项目没有开启schema层时,该值为null. 默认与源“库”名一致', 'type' => 'string', 'example' => 'default'], + 'dstProjectName' => ['title' => '目标MaxCompute项目名', 'description' => '目标MaxCompute项目名', 'type' => 'string', 'example' => 'mma_test'], ], ], ], @@ -4022,12 +2565,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -4036,13 +2574,8 @@ 'GetMmsFetchMetadataJob' => [ 'summary' => '获取单个MMA“获取元数据”任务详情', 'path' => '/api/v1/mms/datasources/{sourceId}/scans/{scanId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4055,32 +2588,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182965', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000015', - ], + 'schema' => ['description' => '数据源ID。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ 'name' => 'scanId', 'in' => 'path', - 'schema' => [ - 'description' => '同步元数据的异步任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1000002', - ], + 'schema' => ['description' => '同步元数据的异步任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1000002'], ], ], 'responses' => [ @@ -4090,69 +2609,24 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '5CA6292A-E301-5CD8-B4E2-AF060F99147B', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '5CA6292A-E301-5CD8-B4E2-AF060F99147B'], 'data' => [ 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '异步任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000002', - ], - 'sourceId' => [ - 'description' => '数据源ID。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000015', - ], + 'id' => ['description' => '异步任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1000002'], + 'sourceId' => ['description' => '数据源ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '2000015'], 'status' => [ 'description' => '同步元数据的异步任务的状态', 'type' => 'string', - 'enumValueTitles' => [ - 'INIT' => 'INIT', - 'DONE' => 'DONE', - 'FAILED' => 'FAILED', - 'UPLOAD_FAILED' => 'UPLOAD_FAILED', - 'SAVE_DOING' => 'SAVE_DOING', - 'UPLOAD_DONE' => 'UPLOAD_DONE', - 'SCAN_DONE' => 'SCAN_DONE', - 'SCAN_FAILED' => 'SCAN_FAILED', - 'SCAN_DOING' => 'SCAN_DOING', - ], + 'enumValueTitles' => ['INIT' => 'INIT', 'DONE' => 'DONE', 'FAILED' => 'FAILED', 'UPLOAD_FAILED' => 'UPLOAD_FAILED', 'SAVE_DOING' => 'SAVE_DOING', 'UPLOAD_DONE' => 'UPLOAD_DONE', 'SCAN_DONE' => 'SCAN_DONE', 'SCAN_FAILED' => 'SCAN_FAILED', 'SCAN_DOING' => 'SCAN_DOING'], 'example' => 'SCAN_DOING', ], - 'progress' => [ - 'description' => '元数据同步进度 1-10000', - 'type' => 'number', - 'format' => 'float', - 'example' => '5000', - ], - 'result' => [ - 'description' => '元数据同步结果', - 'type' => 'string', - 'example' => '{"databases":5,"tables":75,"partitions":215}', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'unexpected exception', - ], - 'startTime' => [ - 'description' => '元数据开始同步时间', - 'type' => 'string', - 'example' => '2024-12-16 19:09:37', - ], - 'endTime' => [ - 'description' => '元数据同步结束时间', - 'type' => 'string', - 'example' => '2024-12-16 19:10:07', - ], + 'progress' => ['description' => '元数据同步进度 1-10000', 'type' => 'number', 'format' => 'float', 'example' => '5000'], + 'result' => ['description' => '元数据同步结果', 'type' => 'string', 'example' => '{"databases":5,"tables":75,"partitions":215}'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'unexpected exception'], + 'startTime' => ['description' => '元数据开始同步时间', 'type' => 'string', 'example' => '2024-12-16 19:09:37'], + 'endTime' => ['description' => '元数据同步结束时间', 'type' => 'string', 'example' => '2024-12-16 19:10:07'], ], ], ], @@ -4170,12 +2644,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -4184,13 +2653,8 @@ 'GetMmsJob' => [ 'summary' => '获取单个MMA迁移计划详情 ', 'path' => '/api/v1/mms/datasources/{sourceId}/jobs/{jobId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4203,32 +2667,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182992', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000015', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ 'name' => 'jobId', 'in' => 'path', - 'schema' => [ - 'description' => '作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '10', - ], + 'schema' => ['description' => '作业ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10'], ], ], 'responses' => [ @@ -4238,108 +2688,38 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'D9F872FD-5DDE-30A6-8C8A-1B8C6A81059F', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D9F872FD-5DDE-30A6-8C8A-1B8C6A81059F'], 'data' => [ 'description' => '迁移作业对象', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '迁移作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'name' => [ - 'description' => '迁移作业名字', - 'type' => 'string', - 'example' => 'migrate_db_1', - ], - 'sourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'dbId' => [ - 'description' => '源库ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '23', - ], - 'sourceName' => [ - 'description' => '数据源名', - 'type' => 'string', - 'example' => 'demo', - ], - 'srcDbName' => [ - 'description' => '源库名', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'srcSchemaName' => [ - 'description' => '源schema name-三层命名空间中的schema', - 'type' => 'string', - 'example' => 'default', - ], - 'dstDbName' => [ - 'description' => '目标MaxCompute项目', - 'type' => 'string', - 'example' => 'mms_target', - ], - 'dstSchemaName' => [ - 'description' => '目标MaxCompute Schema', - 'type' => 'string', - 'example' => 'default', - ], + 'id' => ['description' => '迁移作业ID', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'name' => ['description' => '迁移作业名字', 'type' => 'string', 'example' => 'migrate_db_1'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'dbId' => ['description' => '源库ID', 'type' => 'integer', 'format' => 'int64', 'example' => '23'], + 'sourceName' => ['description' => '数据源名', 'type' => 'string', 'example' => 'demo'], + 'srcDbName' => ['description' => '源库名', 'type' => 'string', 'example' => 'mms_test'], + 'srcSchemaName' => ['description' => '源schema name-三层命名空间中的schema', 'type' => 'string', 'example' => 'default'], + 'dstDbName' => ['description' => '目标MaxCompute项目', 'type' => 'string', 'example' => 'mms_target'], + 'dstSchemaName' => ['description' => '目标MaxCompute Schema', 'type' => 'string', 'example' => 'default'], 'status' => [ 'title' => 'INIT, DOING, FAILED, DONE', 'description' => '迁移任务状态', 'type' => 'string', - 'enumValueTitles' => [ - 'INIT' => '未运行', - 'DONE' => '成功', - 'DOING' => '运行中', - 'FAILED' => '运行失败', - ], + 'enumValueTitles' => ['INIT' => '未运行', 'DONE' => '成功', 'DOING' => '运行中', 'FAILED' => '运行失败'], 'example' => 'DOING', ], 'type' => [ 'title' => 'Database, Tables, Partitions', 'description' => '迁移范围:Database, Tables, Partitions', 'type' => 'string', - 'enumValueTitles' => [ - 'Partitions' => '多分区', - 'Database' => '单库', - 'Tables' => '多表', - ], + 'enumValueTitles' => ['Partitions' => '多分区', 'Database' => '单库', 'Tables' => '多表'], 'example' => 'Tables', ], - 'taskNum' => [ - 'description' => '包含的迁移任务数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'stopped' => [ - 'description' => '被停止', - 'type' => 'boolean', - 'example' => 'false'."\n", - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2024-12-17 15:44:17', - ], - 'taskDone' => [ - 'description' => '完成的迁移任务数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], + 'taskNum' => ['description' => '包含的迁移任务数量', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'stopped' => ['description' => '被停止', 'type' => 'boolean', 'example' => 'false'."\n"], + 'createTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2024-12-17 15:44:17'], + 'taskDone' => ['description' => '完成的迁移任务数量', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], 'config' => [ 'description' => '迁移作业的配置', 'type' => 'object', @@ -4347,121 +2727,63 @@ 'partitions' => [ 'description' => '当 type=Partitions 时, 通过该参数指定要迁移表的分区 ID 列表', 'type' => 'array', - 'items' => [ - 'description' => '要迁移表的分区 ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '[123, 132]', - ], + 'items' => ['description' => '要迁移表的分区 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '[123, 132]'], ], 'tables' => [ 'description' => '当 type=Tables 时, 通过该参数指定要迁移的表的名称列表', 'type' => 'array', - 'items' => [ - 'description' => '要迁移的表的名称', - 'type' => 'string', - 'example' => '["student", "scores"]', - ], - ], - 'taskType' => [ - 'title' => 'MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS, HIVE_SPARK, BIGQUERY', - 'description' => 'Depcreated; 可以指定的值有 MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS, HIVE_SPARK, BIGQUERY', - 'type' => 'string', - 'example' => 'BIGQUERY', + 'items' => ['description' => '要迁移的表的名称', 'type' => 'string', 'example' => '["student", "scores"]'], ], + 'taskType' => ['title' => 'MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS, HIVE_SPARK, BIGQUERY', 'description' => 'Depcreated; 可以指定的值有 MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS, HIVE_SPARK, BIGQUERY', 'type' => 'string', 'example' => 'BIGQUERY'], 'tableBlackList' => [ 'description' => '当 type=Database 时, 通过 tableBlackList 指定排除哪些表不迁移', 'type' => 'array', - 'items' => [ - 'description' => '当 type=Database 时, 要排查的表', - 'type' => 'string', - 'example' => '["student", "scores"]', - ], + 'items' => ['description' => '当 type=Database 时, 要排查的表', 'type' => 'string', 'example' => '["student", "scores"]'], ], 'tableWhiteList' => [ 'description' => '当 type=Database 时, 指定的要迁移的表列表。如果没有指定 tableWhiteList,则迁移对应 Database 下的所有表', 'type' => 'array', - 'items' => [ - 'description' => '当 type=Database 时, 指定的要迁移的表。', - 'type' => 'string', - 'example' => '["student", "scores"]', - ], + 'items' => ['description' => '当 type=Database 时, 指定的要迁移的表。', 'type' => 'string', 'example' => '["student", "scores"]'], ], 'partitionFilters' => [ 'description' => '分区过滤表达式。 配置指定"表"对应的"分区过滤表达式"', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '{'."\n" - .'"student": "p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\')" '."\n" - .'}'."\n", - 'description' => '分区过滤表达式。例如:p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\'),介绍如下:'."\n" - ."\n" - .'p1、p2 和 p3 均为分区名。'."\n" - ."\n" - .'分区值仅包含字符串和数字,字符串被双引号或单引号包裹。'."\n" - ."\n" - .'除 INT 和 BIGINT 类型的分区列值外,其他类型的分区值都只能取字符串值。'."\n" - ."\n" - .'比较操作符包括:>、>=、= 、<、<=、<>。'."\n" - ."\n" - .'分区过滤表达式支持 IN 操作符。'."\n" - ."\n" - .'逻辑操作符包括:AND 和 OR。'."\n" - ."\n" - .'支持使用括号。', - ], - ], - 'schemaOnly' => [ - 'description' => 'Depcreated', - 'type' => 'boolean', - 'example' => 'false', + 'additionalProperties' => ['type' => 'string', 'example' => '{'."\n" + .'"student": "p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\')" '."\n" + .'}'."\n", 'description' => '分区过滤表达式。例如:p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\'),介绍如下:'."\n" + ."\n" + .'p1、p2 和 p3 均为分区名。'."\n" + ."\n" + .'分区值仅包含字符串和数字,字符串被双引号或单引号包裹。'."\n" + ."\n" + .'除 INT 和 BIGINT 类型的分区列值外,其他类型的分区值都只能取字符串值。'."\n" + ."\n" + .'比较操作符包括:>、>=、= 、<、<=、<>。'."\n" + ."\n" + .'分区过滤表达式支持 IN 操作符。'."\n" + ."\n" + .'逻辑操作符包括:AND 和 OR。'."\n" + ."\n" + .'支持使用括号。'], ], + 'schemaOnly' => ['description' => 'Depcreated', 'type' => 'boolean', 'example' => 'false'], 'tableMapping' => [ 'description' => '源表名->目标名 映射', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '{\'a\': \'a1\'}', - 'description' => '源表名->目标名 映射', - ], - ], - 'increment' => [ - 'description' => '增量迁移:只迁移新分区或有变动的分区,注意有变动的分区会被重迁', - 'type' => 'boolean', - 'example' => 'true', - ], - 'enableVerification' => [ - 'description' => '开启校验,目前校验方式是在源和目标端执行select count,对比行数', - 'type' => 'boolean', - 'example' => 'true', - ], - 'tunnelQuota' => [ - 'description' => 'Depcreated', - 'type' => 'string', - 'example' => 'Depcreated', + 'additionalProperties' => ['type' => 'string', 'example' => '{\'a\': \'a1\'}', 'description' => '源表名->目标名 映射'], ], + 'increment' => ['description' => '增量迁移:只迁移新分区或有变动的分区,注意有变动的分区会被重迁', 'type' => 'boolean', 'example' => 'true'], + 'enableVerification' => ['description' => '开启校验,目前校验方式是在源和目标端执行select count,对比行数', 'type' => 'boolean', 'example' => 'true'], + 'tunnelQuota' => ['description' => 'Depcreated', 'type' => 'string', 'example' => 'Depcreated'], 'columnMapping' => [ 'description' => '{源列名:目标列名}', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '{"c-1": "c_1"}', - 'description' => '{源列名:目标列名}', - ], - ], - 'others' => [ - 'description' => '其他配置信息', - 'type' => 'object', - 'example' => '{"spark.executor.mem": "2g"}', + 'additionalProperties' => ['type' => 'string', 'example' => '{"c-1": "c_1"}', 'description' => '{源列名:目标列名}'], ], + 'others' => ['description' => '其他配置信息', 'type' => 'object', 'example' => '{"spark.executor.mem": "2g"}'], ], ], - 'eta' => [ - 'description' => '期望的迁移完成时间. 注意:eta值越小,迁移任务的优先级会越高', - 'type' => 'string', - 'example' => '2025-05-06', - ], + 'eta' => ['description' => '期望的迁移完成时间. 注意:eta值越小,迁移任务的优先级会越高', 'type' => 'string', 'example' => '2025-05-06'], ], ], ], @@ -4482,12 +2804,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -4496,13 +2813,8 @@ 'GetMmsPartition' => [ 'summary' => '获取MMA数据源内的某个分区', 'path' => '/api/v1/mms/datasources/{sourceId}/partitions/{partitionId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4515,32 +2827,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182980', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '200018', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '200018'], ], [ 'name' => 'partitionId', 'in' => 'path', - 'schema' => [ - 'description' => '分区ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2323', - ], + 'schema' => ['description' => '分区ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2323'], ], ], 'responses' => [ @@ -4550,117 +2848,34 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'D9F872FD-5DDE-30A6-8C8A-1B8C6A81059F'."\n", - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D9F872FD-5DDE-30A6-8C8A-1B8C6A81059F'."\n"], 'data' => [ 'description' => '分区对象', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '分区ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2323', - ], - 'dbId' => [ - 'description' => '分区所在“库”的id, “库”在不同数据源中对应的元数据层级名称不同。'."\n" - .'如,在BigQuery,对应Dataset; 在Hive中对应Databse; 在Databricks中对应"Schema"; 在MaxCompute中对应"Schema"。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12', - ], - 'tableId' => [ - 'description' => '表ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '23', - ], - 'dbName' => [ - 'description' => '库名。 “库”在不同数据源中对应的元数据层级名称不同。'."\n" - .'如,在BigQuery,对应Dataset; 在Hive中对应Databse; 在Databricks中对应"Schema"; 在MaxCompute中对应"Schema"。', - 'type' => 'string', - 'example' => 'd1', - ], - 'tableName' => [ - 'description' => '表名', - 'type' => 'string', - 'example' => 't1', - ], - 'value' => [ - 'description' => '分区值', - 'type' => 'string', - 'example' => 'p1=1/p2=abc'."\n", - ], - 'dstProjectName' => [ - 'title' => '目标MaxCompute项目名', - 'description' => '目标MaxCompute项目名', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'dstSchemaName' => [ - 'title' => '目标MaxCompute schema名,如果目标MaxCompute项目没有开启schema层,该值为null', - 'description' => '目标MaxCompute schema名,如果目标MaxCompute项目没有开启schema层,该值为null', - 'type' => 'string', - 'example' => 'default', - ], - 'dstTableName' => [ - 'title' => '目标MaxCompute表', - 'description' => '目标MaxCompute表', - 'type' => 'string', - 'example' => 'test', - ], - 'dstValue' => [ - 'title' => '目标MaxCompute分区值,默认与源分区值一致', - 'description' => '目标MaxCompute分区值,默认与源分区值一致', - 'type' => 'string', - 'example' => 'p1=1/p2=abc', - ], - 'sourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '200018'."\n", - ], - 'sourceName' => [ - 'description' => '数据源名称', - 'type' => 'string', - 'example' => 'demo', - ], - 'size' => [ - 'description' => '数据量大小-单位Bytes', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12323', - ], - 'numRows' => [ - 'description' => '行数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2323', - ], - 'updated' => [ - 'description' => '元数据是否有更新', - 'type' => 'boolean', - 'example' => 'false', - ], - 'lastDdlTime' => [ - 'description' => 'lastDdlTime', - 'type' => 'string', - 'example' => '2024-12-17 15:44:42'."\n", - ], + 'id' => ['description' => '分区ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2323'], + 'dbId' => ['description' => '分区所在“库”的id, “库”在不同数据源中对应的元数据层级名称不同。'."\n" + .'如,在BigQuery,对应Dataset; 在Hive中对应Databse; 在Databricks中对应"Schema"; 在MaxCompute中对应"Schema"。', 'type' => 'integer', 'format' => 'int64', 'example' => '12'], + 'tableId' => ['description' => '表ID', 'type' => 'integer', 'format' => 'int64', 'example' => '23'], + 'dbName' => ['description' => '库名。 “库”在不同数据源中对应的元数据层级名称不同。'."\n" + .'如,在BigQuery,对应Dataset; 在Hive中对应Databse; 在Databricks中对应"Schema"; 在MaxCompute中对应"Schema"。', 'type' => 'string', 'example' => 'd1'], + 'tableName' => ['description' => '表名', 'type' => 'string', 'example' => 't1'], + 'value' => ['description' => '分区值', 'type' => 'string', 'example' => 'p1=1/p2=abc'."\n"], + 'dstProjectName' => ['title' => '目标MaxCompute项目名', 'description' => '目标MaxCompute项目名', 'type' => 'string', 'example' => 'mms_test'], + 'dstSchemaName' => ['title' => '目标MaxCompute schema名,如果目标MaxCompute项目没有开启schema层,该值为null', 'description' => '目标MaxCompute schema名,如果目标MaxCompute项目没有开启schema层,该值为null', 'type' => 'string', 'example' => 'default'], + 'dstTableName' => ['title' => '目标MaxCompute表', 'description' => '目标MaxCompute表', 'type' => 'string', 'example' => 'test'], + 'dstValue' => ['title' => '目标MaxCompute分区值,默认与源分区值一致', 'description' => '目标MaxCompute分区值,默认与源分区值一致', 'type' => 'string', 'example' => 'p1=1/p2=abc'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '200018'."\n"], + 'sourceName' => ['description' => '数据源名称', 'type' => 'string', 'example' => 'demo'], + 'size' => ['description' => '数据量大小-单位Bytes', 'type' => 'integer', 'format' => 'int64', 'example' => '12323'], + 'numRows' => ['description' => '行数', 'type' => 'integer', 'format' => 'int64', 'example' => '2323'], + 'updated' => ['description' => '元数据是否有更新', 'type' => 'boolean', 'example' => 'false'], + 'lastDdlTime' => ['description' => 'lastDdlTime', 'type' => 'string', 'example' => '2024-12-17 15:44:42'."\n"], 'status' => [ 'title' => 'INIT, DOING, FAILED, DONE, PART_DONE', 'description' => '迁移状态', 'type' => 'string', - 'enumValueTitles' => [ - 'INIT' => '未迁移', - 'DONE' => '迁移完成', - 'DOING' => '正在迁移', - 'FAILED' => '迁移失败', - ], + 'enumValueTitles' => ['INIT' => '未迁移', 'DONE' => '迁移完成', 'DOING' => '正在迁移', 'FAILED' => '迁移失败'], 'example' => 'DONE', ], ], @@ -4683,12 +2898,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -4697,13 +2907,8 @@ 'GetMmsTable' => [ 'summary' => '获取MMA数据源内的某张表', 'path' => '/api/v1/mms/datasources/{sourceId}/tables/{tableId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4716,32 +2921,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182963', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12323', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12323'], ], [ 'name' => 'tableId', 'in' => 'path', - 'schema' => [ - 'description' => '表ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], + 'schema' => ['description' => '表ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], ], ], 'responses' => [ @@ -4751,79 +2942,26 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'E7FB14F1-4ACD-5C73-A755-B302D70AB9AD'."\n", - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'E7FB14F1-4ACD-5C73-A755-B302D70AB9AD'."\n"], 'data' => [ 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => 'table ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'dbId' => [ - 'description' => '库ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3', - ], - 'dbName' => [ - 'description' => '库名', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'name' => [ - 'description' => '表名', - 'type' => 'string', - 'example' => 'test', - ], - 'dstProjectName' => [ - 'title' => '目标MaxCompute项目名', - 'description' => '目标MaxCompute项目名', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'dstSchemaName' => [ - 'title' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', - 'description' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', - 'type' => 'string', - 'example' => 'default', - ], - 'dstName' => [ - 'title' => '目标MaxCompute table名,默认与原表名一致', - 'description' => '目标MaxCompute table名,默认与原表名一致', - 'type' => 'string', - 'example' => 'test', - ], - 'type' => [ - 'description' => '表类型', - 'type' => 'string', - 'example' => 'MANAGED_TABLED', - ], - 'hasPartitions' => [ - 'description' => '是否是分区表', - 'type' => 'boolean', - 'example' => 'true', - ], + 'id' => ['description' => 'table ID', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'dbId' => ['description' => '库ID', 'type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'dbName' => ['description' => '库名', 'type' => 'string', 'example' => 'mms_test'], + 'name' => ['description' => '表名', 'type' => 'string', 'example' => 'test'], + 'dstProjectName' => ['title' => '目标MaxCompute项目名', 'description' => '目标MaxCompute项目名', 'type' => 'string', 'example' => 'mms_test'], + 'dstSchemaName' => ['title' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', 'description' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', 'type' => 'string', 'example' => 'default'], + 'dstName' => ['title' => '目标MaxCompute table名,默认与原表名一致', 'description' => '目标MaxCompute table名,默认与原表名一致', 'type' => 'string', 'example' => 'test'], + 'type' => ['description' => '表类型', 'type' => 'string', 'example' => 'MANAGED_TABLED'], + 'hasPartitions' => ['description' => '是否是分区表', 'type' => 'boolean', 'example' => 'true'], 'schema' => [ 'description' => '表结构', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '表名', - 'type' => 'string', - 'example' => 'test', - ], - 'comment' => [ - 'description' => '表注释', - 'type' => 'string', - 'example' => 'for mms test', - ], + 'name' => ['description' => '表名', 'type' => 'string', 'example' => 'test'], + 'comment' => ['description' => '表注释', 'type' => 'string', 'example' => 'for mms test'], 'columns' => [ 'description' => '所有普通列', 'type' => 'array', @@ -4831,31 +2969,11 @@ 'description' => '普通列', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '列名', - 'type' => 'string', - 'example' => 'user_id', - ], - 'type' => [ - 'description' => '列类型', - 'type' => 'string', - 'example' => 'bigint', - ], - 'comment' => [ - 'description' => '列注释', - 'type' => 'string', - 'example' => 'user id', - ], - 'defaultValue' => [ - 'description' => '列默认值', - 'type' => 'string', - 'example' => '10', - ], - 'nullable' => [ - 'description' => '列是否可以为null', - 'type' => 'boolean', - 'example' => 'false', - ], + 'name' => ['description' => '列名', 'type' => 'string', 'example' => 'user_id'], + 'type' => ['description' => '列类型', 'type' => 'string', 'example' => 'bigint'], + 'comment' => ['description' => '列注释', 'type' => 'string', 'example' => 'user id'], + 'defaultValue' => ['description' => '列默认值', 'type' => 'string', 'example' => '10'], + 'nullable' => ['description' => '列是否可以为null', 'type' => 'boolean', 'example' => 'false'], ], ], ], @@ -4866,134 +2984,37 @@ 'description' => '分区列', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '列名', - 'type' => 'string', - 'example' => 'p1', - ], - 'type' => [ - 'description' => '列类型', - 'type' => 'string', - 'example' => 'string', - ], - 'comment' => [ - 'description' => '列注释', - 'type' => 'string', - 'example' => 'first partition level', - ], - 'defaultValue' => [ - 'description' => '列默认值', - 'type' => 'string', - 'example' => 'abc', - ], - 'nullable' => [ - 'description' => '列是否为空', - 'type' => 'boolean', - 'example' => 'false', - ], + 'name' => ['description' => '列名', 'type' => 'string', 'example' => 'p1'], + 'type' => ['description' => '列类型', 'type' => 'string', 'example' => 'string'], + 'comment' => ['description' => '列注释', 'type' => 'string', 'example' => 'first partition level'], + 'defaultValue' => ['description' => '列默认值', 'type' => 'string', 'example' => 'abc'], + 'nullable' => ['description' => '列是否为空', 'type' => 'boolean', 'example' => 'false'], ], ], ], ], ], - 'owner' => [ - 'description' => '表owner', - 'type' => 'string', - 'example' => 'Hive'."\n", - ], - 'location' => [ - 'description' => '表存储位置', - 'type' => 'string', - 'example' => '| hdfs://master-1-1.c-c127cd184bb029ea.cn-zhangjiakou.emr.aliyuncs.com:9000/user/hive/warehouse/demo'."\n", - ], - 'inputFormat' => [ - 'description' => 'inputFormat', - 'type' => 'string', - 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat '."\n", - ], - 'outputFormat' => [ - 'description' => 'outputFormat', - 'type' => 'string', - 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'."\n", - ], - 'serde' => [ - 'description' => 'serde', - 'type' => 'string', - 'example' => 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'."\n", - ], - 'extra' => [ - 'description' => '以JSON格式存储的其他信息', - 'type' => 'string', - 'example' => '{"mapkey.delim":":","collection.delim":",","serialization.format":"|","field.delim":"|"} '."\n", - ], - 'partitions' => [ - 'description' => '分区数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'partitionsDoing' => [ - 'description' => '正在迁移的分区数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'partitionsDone' => [ - 'description' => '迁移完成的分区数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '80', - ], - 'partitionsFailed' => [ - 'description' => '迁移失败的分区数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'sourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000028'."\n", - ], - 'sourceName' => [ - 'description' => '数据源名', - 'type' => 'string', - 'example' => 'demo', - ], - 'size' => [ - 'description' => '数据大小-以Bytes为单位', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '23232', - ], - 'numRows' => [ - 'description' => '行数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '233232', - ], - 'updated' => [ - 'description' => '元数据是否有更新', - 'type' => 'boolean', - 'example' => 'false', - ], - 'lastDdlTime' => [ - 'description' => 'lastDdlTime', - 'type' => 'string', - 'example' => '2024-12-17 15:44:42'."\n", - ], + 'owner' => ['description' => '表owner', 'type' => 'string', 'example' => 'Hive'."\n"], + 'location' => ['description' => '表存储位置', 'type' => 'string', 'example' => '| hdfs://master-1-1.c-c127cd184bb029ea.cn-zhangjiakou.emr.aliyuncs.com:9000/user/hive/warehouse/demo'."\n"], + 'inputFormat' => ['description' => 'inputFormat', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat '."\n"], + 'outputFormat' => ['description' => 'outputFormat', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'."\n"], + 'serde' => ['description' => 'serde', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'."\n"], + 'extra' => ['description' => '以JSON格式存储的其他信息', 'type' => 'string', 'example' => '{"mapkey.delim":":","collection.delim":",","serialization.format":"|","field.delim":"|"} '."\n"], + 'partitions' => ['description' => '分区数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'partitionsDoing' => ['description' => '正在迁移的分区数量', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'partitionsDone' => ['description' => '迁移完成的分区数量', 'type' => 'integer', 'format' => 'int32', 'example' => '80'], + 'partitionsFailed' => ['description' => '迁移失败的分区数量', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000028'."\n"], + 'sourceName' => ['description' => '数据源名', 'type' => 'string', 'example' => 'demo'], + 'size' => ['description' => '数据大小-以Bytes为单位', 'type' => 'integer', 'format' => 'int64', 'example' => '23232'], + 'numRows' => ['description' => '行数', 'type' => 'integer', 'format' => 'int64', 'example' => '233232'], + 'updated' => ['description' => '元数据是否有更新', 'type' => 'boolean', 'example' => 'false'], + 'lastDdlTime' => ['description' => 'lastDdlTime', 'type' => 'string', 'example' => '2024-12-17 15:44:42'."\n"], 'status' => [ 'title' => 'INIT, DOING, FAILED, DONE, PART_DONE', 'description' => '迁移状态', 'type' => 'string', - 'enumValueTitles' => [ - 'PART_DONE' => '部分迁移成功', - 'INIT' => '未迁移', - 'DONE' => '迁移成功', - 'DOING' => '迁移中', - 'FAILED' => '迁移失败', - ], + 'enumValueTitles' => ['PART_DONE' => '部分迁移成功', 'INIT' => '未迁移', 'DONE' => '迁移成功', 'DOING' => '迁移中', 'FAILED' => '迁移失败'], 'example' => 'DONE', ], ], @@ -5016,12 +3037,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -5030,13 +3046,8 @@ 'GetMmsTask' => [ 'summary' => '获取单个迁移任务详情。', 'path' => '/api/v1/mms/datasources/{sourceId}/tasks/{taskId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5049,32 +3060,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182981', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000015', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => '迁移任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '7680', - ], + 'schema' => ['description' => '迁移任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7680'], ], ], 'responses' => [ @@ -5084,137 +3081,38 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '73207140-0FD5-588A-B11A-3CE093924196', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '73207140-0FD5-588A-B11A-3CE093924196'], 'data' => [ 'description' => '迁移任务对象', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '迁移任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '7680', - ], - 'jobId' => [ - 'description' => '迁移作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '87', - ], - 'sourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000015', - ], - 'dbId' => [ - 'description' => '源库ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '23', - ], - 'tableId' => [ - 'description' => '源表ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2323', - ], - 'jobName' => [ - 'description' => '迁移作业名称', - 'type' => 'string', - 'example' => 'test_odps_spark', - ], - 'sourceName' => [ - 'description' => '数据源名', - 'type' => 'string', - 'example' => 'demo', - ], - 'srcDbName' => [ - 'description' => '源库名', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'srcSchemaName' => [ - 'description' => '源schema name-三层命名空间中的schema', - 'type' => 'string', - 'example' => 'default', - ], - 'srcTableName' => [ - 'description' => '源表名', - 'type' => 'string', - 'example' => 'table_1', - ], - 'dstDbName' => [ - 'description' => '目标MaxCompute项目', - 'type' => 'string', - 'example' => 'mms_target', - ], - 'dstSchemaName' => [ - 'description' => '目标MaxCompute Schema', - 'type' => 'string', - 'example' => 'default', - ], - 'dstTableName' => [ - 'description' => '目标MaxcCompute表', - 'type' => 'string', - 'example' => 'table_1', - ], - 'type' => [ - 'title' => 'MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS', - 'description' => '任务类型', - 'type' => 'string', - 'example' => 'BIGQUERY', - ], + 'id' => ['description' => '迁移任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '7680'], + 'jobId' => ['description' => '迁移作业ID', 'type' => 'integer', 'format' => 'int64', 'example' => '87'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000015'], + 'dbId' => ['description' => '源库ID', 'type' => 'integer', 'format' => 'int64', 'example' => '23'], + 'tableId' => ['description' => '源表ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2323'], + 'jobName' => ['description' => '迁移作业名称', 'type' => 'string', 'example' => 'test_odps_spark'], + 'sourceName' => ['description' => '数据源名', 'type' => 'string', 'example' => 'demo'], + 'srcDbName' => ['description' => '源库名', 'type' => 'string', 'example' => 'mms_test'], + 'srcSchemaName' => ['description' => '源schema name-三层命名空间中的schema', 'type' => 'string', 'example' => 'default'], + 'srcTableName' => ['description' => '源表名', 'type' => 'string', 'example' => 'table_1'], + 'dstDbName' => ['description' => '目标MaxCompute项目', 'type' => 'string', 'example' => 'mms_target'], + 'dstSchemaName' => ['description' => '目标MaxCompute Schema', 'type' => 'string', 'example' => 'default'], + 'dstTableName' => ['description' => '目标MaxcCompute表', 'type' => 'string', 'example' => 'table_1'], + 'type' => ['title' => 'MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS', 'description' => '任务类型', 'type' => 'string', 'example' => 'BIGQUERY'], 'status' => [ 'title' => 'INIT, SCHEMA_DOING, SCHEMA_DONE, SCHEMA_FAILED, DATA_DOING, DATA_DONE, DATA_FAILED, VERIFICATION_DOING, VERIFICATION_DONE, VERIFICATION_FAILED, DONE', 'description' => '迁移任务状态', 'type' => 'string', - 'enumValueTitles' => [ - 'INIT' => '未运行', - 'SCHEMA_DONE' => '迁移schema成功', - 'SCHEMA_DOING' => '迁移schema中', - 'SCHEMA_FAILED' => '迁移schema失败', - 'DATA_DOING' => '迁移数据中', - 'DATA_DONE' => '迁移数据成功', - 'DATA_FAILED' => '迁移数据失败', - ], + 'enumValueTitles' => ['INIT' => '未运行', 'SCHEMA_DONE' => '迁移schema成功', 'SCHEMA_DOING' => '迁移schema中', 'SCHEMA_FAILED' => '迁移schema失败', 'DATA_DOING' => '迁移数据中', 'DATA_DONE' => '迁移数据成功', 'DATA_FAILED' => '迁移数据失败'], 'example' => 'DATA_DOING', ], - 'running' => [ - 'description' => '是否正在运行', - 'type' => 'boolean', - 'example' => 'true', - ], - 'stopped' => [ - 'description' => '是否被停止', - 'type' => 'boolean', - 'example' => 'false', - ], - 'retriedTimes' => [ - 'description' => '已经重试的次数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'startTime' => [ - 'description' => '开始运行时间', - 'type' => 'string', - 'example' => '2024-10-25 06:21:01'."\n", - ], - 'endTime' => [ - 'description' => '结束运行时间', - 'type' => 'string', - 'example' => '2024-10-25 07:21:01'."\n", - ], - 'createTime' => [ - 'description' => '任务创建时间', - 'type' => 'string', - 'example' => '2024-10-25 04:21:01'."\n", - ], + 'running' => ['description' => '是否正在运行', 'type' => 'boolean', 'example' => 'true'], + 'stopped' => ['description' => '是否被停止', 'type' => 'boolean', 'example' => 'false'], + 'retriedTimes' => ['description' => '已经重试的次数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'startTime' => ['description' => '开始运行时间', 'type' => 'string', 'example' => '2024-10-25 06:21:01'."\n"], + 'endTime' => ['description' => '结束运行时间', 'type' => 'string', 'example' => '2024-10-25 07:21:01'."\n"], + 'createTime' => ['description' => '任务创建时间', 'type' => 'string', 'example' => '2024-10-25 04:21:01'."\n"], ], ], ], @@ -5235,66 +3133,173 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], ], ], - 'GetPackage' => [ - 'path' => '/api/v1/projects/{projectName}/packages/{packageName}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetMmsTimer' => [ + 'summary' => 'GetMmsTimer', + 'path' => '/api/v1/mms/datasources/{sourceId}/timers/{timerId}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'tenantRelevance' => 'tenant', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ - 'name' => 'projectName', + 'name' => 'sourceId', 'in' => 'path', + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], + ], + [ + 'name' => 'timerId', + 'in' => 'path', + 'schema' => ['description' => 'timer id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', + 'title' => 'ApiRes', + 'description' => 'ApiRes', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0a06dfe716674588654372173ec0da'], + 'data' => [ + 'description' => '返回数据', + 'type' => 'object', + 'properties' => [ + 'id' => ['description' => '定时任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2523'], + 'name' => ['description' => '定时任务名', 'type' => 'string', 'example' => 'sale_detail'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000017'], + 'dbId' => ['description' => '源库ID', 'type' => 'integer', 'format' => 'int64', 'example' => '23'], + 'srcDbName' => ['description' => '源库名', 'type' => 'string', 'example' => 'mms_test'], + 'type' => ['description' => '定时器类型', 'type' => 'string', 'example' => 'Daily, Hourly'], + 'config' => [ + 'description' => '迁移作业的配置', + 'type' => 'object', + 'properties' => [ + 'partitions' => [ + 'description' => '当 type=Partitions 时, 通过该参数指定要迁移表的分区 ID 列表', + 'type' => 'array', + 'items' => ['description' => '要迁移表的分区 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '[123, 132]'], + ], + 'tables' => [ + 'description' => '当 type=Tables 时, 通过该参数指定要迁移的表的名称列表', + 'type' => 'array', + 'items' => ['description' => '要迁移的表的名称', 'type' => 'string', 'example' => '["student", "scores"]'], + ], + 'tableBlackList' => [ + 'description' => '当 type=Database 时, 通过 tableBlackList 指定排除哪些表不迁移', + 'type' => 'array', + 'items' => ['description' => '当 type=Database 时, 要排除的表', 'type' => 'string', 'example' => '["student", "scores"]'], + ], + 'tableWhiteList' => [ + 'description' => '当 type=Database 时, 指定的要迁移的表列表。如果没有指定 tableWhiteList,则迁移对应 Database 下的所有表', + 'type' => 'array', + 'items' => ['description' => '当 type=Database 时, 指定的要迁移的表。', 'type' => 'string', 'example' => '["student", "scores"]'], + ], + 'partitionFilters' => [ + 'description' => '分区过滤表达式。 配置指定"表"对应的"分区过滤表达式"', + 'type' => 'object', + 'additionalProperties' => ['type' => 'string', 'example' => '{'."\n" + .'"student": "p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\')" '."\n" + .'}', 'description' => '分区过滤表达式。例如:p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\'),介绍如下:'."\n" + ."\n" + .'p1、p2 和 p3 均为分区名。'."\n" + ."\n" + .'分区值仅包含字符串和数字,字符串被双引号或单引号包裹。'."\n" + ."\n" + .'除 INT 和 BIGINT 类型的分区列值外,其他类型的分区值都只能取字符串值。'."\n" + ."\n" + .'比较操作符包括:>、>=、= 、<、<=、<>。'."\n" + ."\n" + .'分区过滤表达式支持 IN 操作符。'."\n" + ."\n" + .'逻辑操作符包括:AND 和 OR。'."\n" + ."\n" + .'支持使用括号。'], + ], + 'enableDataMigration' => ['description' => '是否迁移表数据', 'type' => 'boolean'], + 'enableSchemaMigration' => ['description' => '是否迁移表结构', 'type' => 'boolean'], + 'enableVerification' => ['description' => '开启校验,目前校验方式是在源和目标端执行select count,对比行数', 'type' => 'boolean', 'example' => 'true'], + 'tableMapping' => [ + 'description' => '源表名->目标名 映射', + 'type' => 'object', + 'additionalProperties' => ['type' => 'string', 'example' => '{\'a\': \'a1\'}', 'description' => '源表名->目标名 映射'], + ], + 'columnMapping' => [ + 'description' => '{源列名:目标列名}', + 'type' => 'object', + 'additionalProperties' => ['type' => 'string', 'example' => '{"c-1":"c_2"}', 'description' => '{源列名:目标列名}'], + ], + 'others' => [ + 'description' => '其他配置信息', + 'type' => 'object', + 'additionalProperties' => ['type' => 'any', 'description' => '其他配置信息', 'example' => '{}'], + ], + ], + ], + 'createTime' => ['description' => '任务创建时间', 'type' => 'string', 'example' => '1730946421757'], + 'updateTime' => ['description' => '定时任务最新更新时间', 'type' => 'string', 'example' => '2026-04-01T02:18:01Z'], + 'scheduleType' => ['description' => '定时任务调度类型', 'type' => 'string', 'example' => 'Daily'], + 'value' => ['description' => '定时任务调度时间,scheduleType=Daily时,value=HH:MM,scheduleType=Hourly时,value=MM', 'type' => 'string', 'example' => 'p1=1/p2=abc'."\n"], + 'stopped' => ['description' => '是否被停止', 'type' => 'boolean', 'example' => 'false'], + ], + ], + ], ], ], + ], + 'title' => '获取数据迁移定时任务', + 'description' => '请确保在使用该接口前,已充分了解了数据传输服务独享资源组和弹性预留计算资源的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/data-transfer-fees-hourly-billing)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/data-transfer-fees-hourly-billing)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dfe716674588654372173ec0da\\",\\n \\"data\\": {\\n \\"id\\": 2523,\\n \\"name\\": \\"sale_detail\\",\\n \\"sourceId\\": 2000017,\\n \\"dbId\\": 23,\\n \\"srcDbName\\": \\"mms_test\\",\\n \\"type\\": \\"Daily, Hourly\\",\\n \\"config\\": {\\n \\"partitions\\": [\\n 0\\n ],\\n \\"tables\\": [\\n \\"[\\\\\\"student\\\\\\", \\\\\\"scores\\\\\\"]\\"\\n ],\\n \\"tableBlackList\\": [\\n \\"[\\\\\\"student\\\\\\", \\\\\\"scores\\\\\\"]\\"\\n ],\\n \\"tableWhiteList\\": [\\n \\"[\\\\\\"student\\\\\\", \\\\\\"scores\\\\\\"]\\"\\n ],\\n \\"partitionFilters\\": {\\n \\"key\\": \\"{\\\\n\\\\\\"student\\\\\\": \\\\\\"p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\')\\\\\\" \\\\n}\\"\\n },\\n \\"enableDataMigration\\": true,\\n \\"enableSchemaMigration\\": true,\\n \\"enableVerification\\": true,\\n \\"tableMapping\\": {\\n \\"key\\": \\"{\'a\': \'a1\'}\\"\\n },\\n \\"columnMapping\\": {\\n \\"key\\": \\"{\\\\\\"c-1\\\\\\":\\\\\\"c_2\\\\\\"}\\"\\n },\\n \\"others\\": {\\n \\"key\\": \\"{}\\"\\n }\\n },\\n \\"createTime\\": \\"1730946421757\\",\\n \\"updateTime\\": \\"2026-04-01T02:18:01Z\\",\\n \\"scheduleType\\": \\"Daily\\",\\n \\"value\\": \\"p1=1/p2=abc\\\\n\\",\\n \\"stopped\\": false\\n }\\n}","type":"json"}]', + ], + 'GetPackage' => [ + 'path' => '/api/v1/projects/{projectName}/packages/{packageName}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'projectName', + 'in' => 'path', + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], + ], [ 'name' => 'packageName', 'in' => 'path', - 'schema' => [ - 'description' => 'package名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test_package', - ], + 'schema' => ['description' => 'package名称', 'type' => 'string', 'required' => true, 'example' => 'test_package'], ], [ 'name' => 'sourceProject', 'in' => 'query', - 'schema' => [ - 'description' => 'package所属项目。如果package 是install 的,此参数必填。', - 'type' => 'string', - 'required' => false, - 'example' => 'projectB', - ], + 'schema' => ['description' => 'package所属项目。如果package 是install 的,此参数必填。', 'type' => 'string', 'required' => false, 'example' => 'projectB'], ], ], 'responses' => [ @@ -5304,27 +3309,10 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '0b57ff8316614119858417939e3e54', - ], - 'httpCode' => [ - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '040002', - ], - 'errorMsg' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => '异常信息', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '0b57ff8316614119858417939e3e54'], + 'httpCode' => ['description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码', 'type' => 'string', 'example' => '040002'], + 'errorMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'Exception information'], 'data' => [ 'description' => '返回数据', 'type' => 'object', @@ -5336,16 +3324,8 @@ 'description' => '已经安装的项目列表', 'type' => 'object', 'properties' => [ - 'label' => [ - 'description' => '指定安全许可标签级别', - 'type' => 'string', - 'example' => '2', - ], - 'project' => [ - 'description' => 'maxcompute项目名称', - 'type' => 'string', - 'example' => 'proejctB', - ], + 'label' => ['description' => '指定安全许可标签级别', 'type' => 'string', 'example' => '2'], + 'project' => ['description' => 'maxcompute项目名称', 'type' => 'string', 'example' => 'proejctB'], ], ], ], @@ -5360,24 +3340,12 @@ 'description' => '表列表', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '表名称', - 'type' => 'string', - 'example' => 'dim_odps'."\n", - ], - 'schemaName' => [ - 'description' => 'schema名称。', - 'type' => 'string', - 'example' => 'default', - ], + 'name' => ['description' => '表名称', 'type' => 'string', 'example' => 'dim_odps'."\n"], + 'schemaName' => ['description' => 'schema名称。', 'type' => 'string', 'example' => 'default'], 'actions' => [ 'description' => '表操作', 'type' => 'array', - 'items' => [ - 'description' => '表操作', - 'type' => 'string', - 'example' => 'describe', - ], + 'items' => ['description' => '表操作', 'type' => 'string', 'example' => 'describe'], ], ], ], @@ -5389,24 +3357,12 @@ 'description' => '资源列表', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '资源名称', - 'type' => 'string', - 'example' => 'res_1', - ], - 'schemaName' => [ - 'description' => 'schema名称。', - 'type' => 'string', - 'example' => 'default', - ], + 'name' => ['description' => '资源名称', 'type' => 'string', 'example' => 'res_1'], + 'schemaName' => ['description' => 'schema名称。', 'type' => 'string', 'example' => 'default'], 'actions' => [ 'description' => '资源的操作', 'type' => 'array', - 'items' => [ - 'description' => '资源的操作', - 'type' => 'string', - 'example' => 'read', - ], + 'items' => ['description' => '资源的操作', 'type' => 'string', 'example' => 'read'], ], ], ], @@ -5418,24 +3374,12 @@ 'description' => '函数列表', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '函数名称', - 'type' => 'string', - 'example' => 'function_1', - ], - 'schemaName' => [ - 'description' => 'schema名称。', - 'type' => 'string', - 'example' => 'default', - ], + 'name' => ['description' => '函数名称', 'type' => 'string', 'example' => 'function_1'], + 'schemaName' => ['description' => 'schema名称。', 'type' => 'string', 'example' => 'default'], 'actions' => [ 'description' => '函数操作', 'type' => 'array', - 'items' => [ - 'description' => '函数操作', - 'type' => 'string', - 'example' => 'read', - ], + 'items' => ['description' => '函数操作', 'type' => 'string', 'example' => 'read'], ], ], ], @@ -5452,13 +3396,13 @@ 'enable' => false, 'eventNames' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b57ff8316614119858417939e3e54\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"040002\\",\\n \\"errorMsg\\": \\"异常信息\\",\\n \\"data\\": {\\n \\"allowedProjectList\\": [\\n {\\n \\"label\\": \\"2\\",\\n \\"project\\": \\"proejctB\\"\\n }\\n ],\\n \\"resourceList\\": {\\n \\"table\\": [\\n {\\n \\"name\\": \\"dim_odps\\\\n\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"describe\\"\\n ]\\n }\\n ],\\n \\"resource\\": [\\n {\\n \\"name\\": \\"res_1\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ],\\n \\"function\\": [\\n {\\n \\"name\\": \\"function_1\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b57ff8316614119858417939e3e54\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"040002\\",\\n \\"errorMsg\\": \\"Exception information\\",\\n \\"data\\": {\\n \\"allowedProjectList\\": [\\n {\\n \\"label\\": \\"2\\",\\n \\"project\\": \\"proejctB\\"\\n }\\n ],\\n \\"resourceList\\": {\\n \\"table\\": [\\n {\\n \\"name\\": \\"dim_odps\\\\n\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"describe\\"\\n ]\\n }\\n ],\\n \\"resource\\": [\\n {\\n \\"name\\": \\"res_1\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ],\\n \\"function\\": [\\n {\\n \\"name\\": \\"function_1\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', 'title' => '获取Package信息', 'summary' => '获取package信息。', - 'changeSet' => [ - [ - 'createdAt' => '2023-12-10T11:23:54.000Z', - 'description' => '响应参数发生变更', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetPackage'], ], ], 'ramActions' => [ @@ -5469,27 +3413,16 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], ], ], 'GetProject' => [ - 'summary' => '查询MaxCompute项目的基本信息。', 'path' => '/api/v1/projects/{projectName}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5502,57 +3435,28 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '142482', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'title' => '项目名称', - 'description' => '项目名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_project', - ], + 'schema' => ['title' => '项目名称', 'description' => '项目名称。', 'type' => 'string', 'required' => true, 'example' => 'odps_project'], ], [ 'name' => 'verbose', 'in' => 'query', - 'schema' => [ - 'title' => '是否带有安全配置附加信息', - 'description' => '是否带有附加信息(securityProperties, superAdmins)', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'true', - ], + 'schema' => ['title' => '是否带有安全配置附加信息', 'description' => '是否带有附加信息(securityProperties, superAdmins)', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'], ], [ 'name' => 'withStorageTierInfo', 'in' => 'query', - 'schema' => [ - 'title' => '是否带有分层存储附加信息', - 'description' => '是否带有附加信息(properties.storageTierInfo)', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'true', - ], + 'schema' => ['title' => '是否带有分层存储附加信息', 'description' => '是否带有附加信息(properties.storageTierInfo)', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'], ], [ 'name' => 'withQuotaProductType', 'in' => 'query', - 'schema' => [ - 'title' => '是否带有项目Quota类型附加信息', - 'description' => '是否带有附加信息(productType)', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'true', - ], + 'schema' => ['title' => '是否带有项目Quota类型附加信息', 'description' => '是否带有附加信息(productType)', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'], ], ], 'responses' => [ @@ -5562,212 +3466,91 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0b87b7b316643495896551555e855b', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'This object does not exist.', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b87b7b316643495896551555e855b'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This object does not exist.'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'example' => 'odps_project', - ], - 'owner' => [ - 'description' => '项目owner账号信息。', - 'type' => 'string', - 'example' => 'ALIYUN$odps****@aliyunid.com', - ], - 'type' => [ - 'description' => '项目类型。取值:'."\n" - .'- **managed**:内部项目。'."\n" - .'- **external**:外部项目。', - 'type' => 'string', - 'example' => 'managed', - ], - 'comment' => [ - 'description' => '项目描述。', - 'type' => 'string', - 'example' => 'BI_Analysis', - ], - 'defaultQuota' => [ - 'description' => '默认计算Quota。'."\n" - .'用于实现计算资源分配。不指定计算Quota的情况下,该项目发起的作业将消耗默认Quota资源。更多计算资源使用请参见[计算资源-Quota使用](https://help.aliyun.com/zh/maxcompute/user-guide/use-of-computing-resources)'."\n" - .'[计算资源-Quota使用](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/use-of-computing-resources)。', - 'type' => 'string', - 'example' => 'os_PayAsYouGoQuota', - ], - 'status' => [ - 'description' => '项目状态。取值:'."\n" - .'- **AVAILABLE**:正常'."\n" - .'- **READONLY**:只读'."\n" - .'- **FROZEN**:冻结'."\n" - .'- **DELETING**:删除中', - 'type' => 'string', - 'example' => 'AVAILABLE', - ], - 'productType' => [ - 'description' => '默认计算Quota的计费模式。', - 'type' => 'string', - 'example' => 'PayAsYouGo', - ], - 'threeTierModel' => [ - 'description' => '是否支持按Schema存储。'."\n" - .'MaxCompute支持Schema,处于Project下,Table、Resource、UDF上的对象,对Table、Resource、UDF进行归类。一个Project下可以有多个Schema。详情请参见[Schema操作](https://help.aliyun.com/zh/maxcompute/user-guide/schema-related-operations)'."\n" - .'[Schema操作](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/schema-related-operations)。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'costStorage' => [ - 'description' => '存储总量。'."\n" - .'查看项目当前存储大小,此存储量与计量口径一致,即按Project采集压缩后的逻辑存储大小。', - 'type' => 'string', - 'example' => '16489027', - ], - 'regionId' => [ - 'title' => '区域ID', - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'createdTime' => [ - 'title' => '创建时间', - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1704380838000'."\n", - ], + 'name' => ['description' => '项目名称。', 'type' => 'string', 'example' => 'odps_project'], + 'owner' => ['description' => '项目owner账号信息。', 'type' => 'string', 'example' => 'ALIYUN$odps****@aliyunid.com'], + 'type' => ['description' => '项目类型。取值:'."\n" + .'- **managed**:内部项目。'."\n" + .'- **external**:外部项目。', 'type' => 'string', 'example' => 'managed'], + 'comment' => ['description' => '项目描述。', 'type' => 'string', 'example' => 'BI_Analysis'], + 'defaultQuota' => ['description' => '默认计算Quota。'."\n" + .'用于实现计算资源分配。不指定计算Quota的情况下,该项目发起的作业将消耗默认Quota资源。更多计算资源使用请参见[计算资源-Quota使用](https://help.aliyun.com/zh/maxcompute/user-guide/use-of-computing-resources)'."\n" + .'[计算资源-Quota使用](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/use-of-computing-resources)。', 'type' => 'string', 'example' => 'os_PayAsYouGoQuota'], + 'status' => ['description' => '项目状态。取值:'."\n" + .'- **AVAILABLE**:正常'."\n" + .'- **READONLY**:只读'."\n" + .'- **FROZEN**:冻结'."\n" + .'- **DELETING**:删除中', 'type' => 'string', 'example' => 'AVAILABLE'], + 'productType' => ['description' => '默认计算Quota的计费模式。', 'type' => 'string', 'example' => 'PayAsYouGo'], + 'threeTierModel' => ['description' => '是否支持按Schema存储。'."\n" + .'MaxCompute支持Schema,处于Project下,Table、Resource、UDF上的对象,对Table、Resource、UDF进行归类。一个Project下可以有多个Schema。详情请参见[Schema操作](https://help.aliyun.com/zh/maxcompute/user-guide/schema-related-operations)'."\n" + .'[Schema操作](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/schema-related-operations)。', 'type' => 'boolean', 'example' => 'true'], + 'costStorage' => ['description' => '存储总量。'."\n" + .'查看项目当前存储大小,此存储量与计量口径一致,即按Project采集压缩后的逻辑存储大小。', 'type' => 'string', 'example' => '16489027'], + 'regionId' => ['title' => '区域ID', 'description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'], + 'createdTime' => ['title' => '创建时间', 'description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1704380838000'."\n"], 'properties' => [ 'description' => '项目基础属性。', 'type' => 'object', 'properties' => [ - 'timezone' => [ - 'description' => '项目时区,即为`odps.sql.timezone`属性。', - 'type' => 'string', - 'example' => 'Asia/Shanghai', - ], - 'retentionDays' => [ - 'description' => '备份数据的保留天数。在此期间,您可以将当前版本恢复至任意一个备份的数据版本。'."\n" - .'取值范围为[0,30],默认值为1,0代表关闭备份功能。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'allowFullScan' => [ - 'description' => '项目空间是否允许全表扫描。全表扫描会占用大量资源,为提升处理效率,默认关闭该功能。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'typeSystem' => [ - 'description' => '数据类型版本。取值:'."\n" - .'- **1**:1.0版本'."\n" - .'- **2**:2.0版本'."\n" - .'- **hive**:hive兼容类型'."\n" - ."\n" - .'三种数据类型版本的区别请参见[数据类型版本说明](https://help.aliyun.com/zh/maxcompute/user-guide/data-type-editions)'."\n" - .'[数据类型版本说明](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/data-type-editions)。', - 'type' => 'string', - 'example' => '2.0', - ], - 'enableDecimal2' => [ - 'description' => '项目是否开启MaxCompute 2.0的Decimal数据类型。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'sqlMeteringMax' => [ - 'description' => '单SQL消费的最高阈值。'."\n" - .'单位:扫描量(GB)*复杂度。', - 'type' => 'string', - 'example' => '1500', - ], + 'timezone' => ['description' => '项目时区,即为`odps.sql.timezone`属性。', 'type' => 'string', 'example' => 'Asia/Shanghai'], + 'retentionDays' => ['description' => '备份数据的保留天数。在此期间,您可以将当前版本恢复至任意一个备份的数据版本。'."\n" + .'取值范围为[0,30],默认值为1,0代表关闭备份功能。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'allowFullScan' => ['description' => '项目空间是否允许全表扫描。全表扫描会占用大量资源,为提升处理效率,默认关闭该功能。', 'type' => 'boolean', 'example' => 'false'], + 'typeSystem' => ['description' => '数据类型版本。取值:'."\n" + .'- **1**:1.0版本'."\n" + .'- **2**:2.0版本'."\n" + .'- **hive**:hive兼容类型'."\n" + ."\n" + .'三种数据类型版本的区别请参见[数据类型版本说明](https://help.aliyun.com/zh/maxcompute/user-guide/data-type-editions)'."\n" + .'[数据类型版本说明](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/data-type-editions)。', 'type' => 'string', 'example' => '2.0'], + 'enableDecimal2' => ['description' => '项目是否开启MaxCompute 2.0的Decimal数据类型。', 'type' => 'boolean', 'example' => 'true'], + 'sqlMeteringMax' => ['description' => '单SQL消费的最高阈值。'."\n" + .'单位:扫描量(GB)*复杂度。', 'type' => 'string', 'example' => '1500'], 'tableLifecycle' => [ 'description' => '表的生命周期属性。', 'type' => 'object', 'properties' => [ - 'type' => [ - 'description' => '生命周期类型。取值:'."\n" - .'- **mandatory**:Lifecycle子句为必选设置,用户必须设置表的生命周期。'."\n" - .'- **optional**:创建表时,Lifecycle子句为可选设置,如果不设置表的生命周期,则该表永远有效。'."\n" - .'- **inherit**:创建表时,如果不设置表的生命周期,则该表的生命周期为odps.table.lifecycle.value的值。', - 'type' => 'string', - 'example' => 'optional', - ], - 'value' => [ - 'description' => '表的生命周期,单位为:天。取值范围为1~37231,默认值为37231。', - 'type' => 'string', - 'example' => '37231', - ], + 'type' => ['description' => '生命周期类型。取值:'."\n" + .'- **mandatory**:Lifecycle子句为必选设置,用户必须设置表的生命周期。'."\n" + .'- **optional**:创建表时,Lifecycle子句为可选设置,如果不设置表的生命周期,则该表永远有效。'."\n" + .'- **inherit**:创建表时,如果不设置表的生命周期,则该表的生命周期为odps.table.lifecycle.value的值。', 'type' => 'string', 'example' => 'optional'], + 'value' => ['description' => '表的生命周期,单位为:天。取值范围为1~37231,默认值为37231。', 'type' => 'string', 'example' => '37231'], ], ], 'encryption' => [ 'description' => '存储加密属性。', 'type' => 'object', 'properties' => [ - 'enable' => [ - 'description' => '项目是否需要开启数据加密功能。更多数据加密信息,请参见'."\n" - .'[存储加密](https://help.aliyun.com/zh/maxcompute/security-and-compliance/storage-encryption)'."\n" - .'[存储加密](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/storage-encryption)。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'algorithm' => [ - 'description' => '数据加密算法:密钥支持的加密算法,包含AES256、AESCTR和RC4。', - 'type' => 'string', - 'example' => 'AES256', - ], - 'key' => [ - 'description' => '数据加密使用的密钥类型,包含默认密钥(MaxCompute Default Key)和自带密钥(BYOK)。默认密钥(MaxCompute Default Key)是MaxCompute内部创建的默认密钥。', - 'type' => 'string', - 'example' => 'dafault', - ], + 'enable' => ['description' => '项目是否需要开启数据加密功能。更多数据加密信息,请参见'."\n" + .'[存储加密](https://help.aliyun.com/zh/maxcompute/security-and-compliance/storage-encryption)'."\n" + .'[存储加密](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/storage-encryption)。', 'type' => 'boolean', 'example' => 'true'], + 'algorithm' => ['description' => '数据加密算法:密钥支持的加密算法,包含AES256、AESCTR和RC4。', 'type' => 'string', 'example' => 'AES256'], + 'key' => ['description' => '数据加密使用的密钥类型,包含默认密钥(MaxCompute Default Key)和自带密钥(BYOK)。默认密钥(MaxCompute Default Key)是MaxCompute内部创建的默认密钥。', 'type' => 'string', 'example' => 'dafault'], ], ], - 'tunnelQuota' => [ - 'description' => '项目绑定的[数据传输服务](https://help.aliyun.com/zh/maxcompute/user-guide/overview-of-dts)'."\n" - .'[数据传输服务](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/overview-of-dts)资源组。'."\n" - ."\n" - .'- Default(数据传输服务共享资源组):该项目不允许使用数据传输服务(包年包月)资源组。不管开启成默认数据传输服务资源组取值是什么,该项目默认提交的数据传输服务会自动使用Default资源组。'."\n" - ."\n" - .'- 数据传输服务(包年包月)资源组:该项目允许使用数据传输服务(包年包月)资源组。', - 'type' => 'string', - 'example' => 'Default', - ], - 'elderTunnelQuota' => [ - 'description' => '项目绑定的数据传输服务资源组父组(无需关注)。', - 'type' => 'string', - 'example' => 'Default_p', - ], - 'enableTunnelQuotaRoute' => [ - 'description' => '是否开启数据传输服务资源组路由。'."\n" - .'- true:表示该项目默认提交的数据传输任务会使用绑定的数据传输服务资源组。'."\n" - .'- false:表示该项目默认提交的数据传输任务会使用数据传输服务共享资源组。', - 'type' => 'boolean', - 'example' => 'true', - ], + 'tunnelQuota' => ['description' => '项目绑定的[数据传输服务](https://help.aliyun.com/zh/maxcompute/user-guide/overview-of-dts)'."\n" + .'[数据传输服务](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/overview-of-dts)资源组。'."\n" + ."\n" + .'- Default(数据传输服务共享资源组):该项目不允许使用数据传输服务(包年包月)资源组。不管开启成默认数据传输服务资源组取值是什么,该项目默认提交的数据传输服务会自动使用Default资源组。'."\n" + ."\n" + .'- 数据传输服务(包年包月)资源组:该项目允许使用数据传输服务(包年包月)资源组。', 'type' => 'string', 'example' => 'Default'], + 'elderTunnelQuota' => ['description' => '项目绑定的数据传输服务资源组父组(无需关注)。', 'type' => 'string', 'example' => 'Default_p'], + 'enableTunnelQuotaRoute' => ['description' => '是否开启数据传输服务资源组路由。'."\n" + .'- true:表示该项目默认提交的数据传输任务会使用绑定的数据传输服务资源组。'."\n" + .'- false:表示该项目默认提交的数据传输任务会使用数据传输服务共享资源组。', 'type' => 'boolean', 'example' => 'true'], 'storageTierInfo' => [ 'description' => '[分层存储](https://help.aliyun.com/zh/maxcompute/user-guide/tiered-storage)'."\n" .'[分层存储](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/tiered-storage)信息。', @@ -5778,58 +3561,19 @@ .'[分层存储](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/tiered-storage)信息。', 'type' => 'object', 'properties' => [ - 'standardSize' => [ - 'description' => '标准存储用量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '27649172', - ], - 'longTermSize' => [ - 'description' => '长期存储用量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '21764917', - ], - 'lowFrequencySize' => [ - 'description' => '低频存储用量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '767693', - ], + 'standardSize' => ['description' => '标准存储用量。', 'type' => 'integer', 'format' => 'int64', 'example' => '27649172'], + 'longTermSize' => ['description' => '长期存储用量。', 'type' => 'integer', 'format' => 'int64', 'example' => '21764917'], + 'lowFrequencySize' => ['description' => '低频存储用量。', 'type' => 'integer', 'format' => 'int64', 'example' => '767693'], ], ], - 'projectTotalSize' => [ - 'description' => '总存储用量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '56066037', - ], - 'projectBackupSize' => [ - 'description' => '备份存储大小。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '86672917', - ], + 'projectTotalSize' => ['description' => '总存储用量。', 'type' => 'integer', 'format' => 'int64', 'example' => '56066037'], + 'projectBackupSize' => ['description' => '备份存储大小。', 'type' => 'integer', 'format' => 'int64', 'example' => '86672917'], ], ], - 'fdcQuota' => [ - 'title' => 'fdc quota', - 'description' => '外表缓存Quota。', - 'type' => 'string', - 'example' => 'fdc_quota', - ], - 'enableFdcCacheForce' => [ - 'title' => '是否强制开启fdc缓存', - 'description' => '是否强制开启外表缓存。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'enableTieredStorage' => [ - 'description' => '是否开启[分层存储](https://help.aliyun.com/zh/maxcompute/user-guide/tiered-storage)'."\n" - .'[分层存储](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/tiered-storage)。', - 'type' => 'boolean', - 'example' => 'true', - ], + 'fdcQuota' => ['title' => 'fdc quota', 'description' => '外表缓存Quota。', 'type' => 'string', 'example' => 'fdc_quota'], + 'enableFdcCacheForce' => ['title' => '是否强制开启fdc缓存', 'description' => '是否强制开启外表缓存。', 'type' => 'boolean', 'example' => 'true'], + 'enableTieredStorage' => ['description' => '是否开启[分层存储](https://help.aliyun.com/zh/maxcompute/user-guide/tiered-storage)'."\n" + .'[分层存储](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/tiered-storage)。', 'type' => 'boolean', 'example' => 'true'], 'tableLifecycleConfig' => [ 'description' => '[分层存储生命周期规则](https://help.aliyun.com/zh/maxcompute/user-guide/tiered-storage#f61fc9db76nna)'."\n" .'[分层存储生命周期规则](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/tiered-storage#f61fc9db76nna)属性,设置后系统将基于该规则触发分层存储类型自动转换。', @@ -5839,56 +3583,26 @@ 'description' => '长期存储标识。', 'type' => 'object', 'properties' => [ - 'DaysAfterLastModificationGreaterThan' => [ - 'description' => '距离数据最后修改时间超过多少天后自动设置,对应表或分区的`LastModifiedTime`。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '180', - ], - 'DaysAfterLastAccessGreaterThan' => [ - 'description' => '距离数据最后访问时间超过多少天后自动设置,对应表或分区的`LastAccessTime`。'."\n" - ."\n" - .'> 若表或分区的LastAccessTime为空,则:'."\n" - .'> - 对于2023年10月01日前创建的表或分区,默认按照UTC+0时区的2023.10.01 00:00:00时间计算。'."\n" - .'> - 对于2023年10月01日后新建的表或分区,若数据没被访问过,按照CreateTime时间计算。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '180', - ], - 'DaysAfterLastTierModificationGreaterThan' => [ - 'description' => '距离上次转换存储类型的时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], + 'DaysAfterLastModificationGreaterThan' => ['description' => '距离数据最后修改时间超过多少天后自动设置,对应表或分区的`LastModifiedTime`。', 'type' => 'integer', 'format' => 'int64', 'example' => '180'], + 'DaysAfterLastAccessGreaterThan' => ['description' => '距离数据最后访问时间超过多少天后自动设置,对应表或分区的`LastAccessTime`。'."\n" + ."\n" + .'> 若表或分区的LastAccessTime为空,则:'."\n" + .'> - 对于2023年10月01日前创建的表或分区,默认按照UTC+0时区的2023.10.01 00:00:00时间计算。'."\n" + .'> - 对于2023年10月01日后新建的表或分区,若数据没被访问过,按照CreateTime时间计算。', 'type' => 'integer', 'format' => 'int64', 'example' => '180'], + 'DaysAfterLastTierModificationGreaterThan' => ['description' => '距离上次转换存储类型的时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], 'TierToLowFrequency' => [ 'description' => '低频存储标识。', 'type' => 'object', 'properties' => [ - 'DaysAfterLastModificationGreaterThan' => [ - 'description' => '定义距离数据最后修改时间超过多少天后自动设置,对应表或分区的`LastModifiedTime`。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30', - ], - 'DaysAfterLastAccessGreaterThan' => [ - 'description' => '定义距离数据最后访问时间超过多少天后自动设置,对应表或分区的`LastAccessTime`。'."\n" - ."\n" - .'> 若表或分区的LastAccessTime为空,则:'."\n" - .'> - 对于2023年10月01日前创建的表或分区,默认按照UTC+0时区的2023.10.01 00:00:00时间计算。'."\n" - .'> - 对于2023年10月01日后新建的表或分区,若数据没被访问过,按照CreateTime时间计算。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30', - ], - 'DaysAfterLastTierModificationGreaterThan' => [ - 'description' => '距离上次转换存储类型的时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], + 'DaysAfterLastModificationGreaterThan' => ['description' => '定义距离数据最后修改时间超过多少天后自动设置,对应表或分区的`LastModifiedTime`。', 'type' => 'integer', 'format' => 'int64', 'example' => '30'], + 'DaysAfterLastAccessGreaterThan' => ['description' => '定义距离数据最后访问时间超过多少天后自动设置,对应表或分区的`LastAccessTime`。'."\n" + ."\n" + .'> 若表或分区的LastAccessTime为空,则:'."\n" + .'> - 对于2023年10月01日前创建的表或分区,默认按照UTC+0时区的2023.10.01 00:00:00时间计算。'."\n" + .'> - 对于2023年10月01日后新建的表或分区,若数据没被访问过,按照CreateTime时间计算。', 'type' => 'integer', 'format' => 'int64', 'example' => '30'], + 'DaysAfterLastTierModificationGreaterThan' => ['description' => '距离上次转换存储类型的时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], ], @@ -5897,123 +3611,67 @@ 'description' => '外部项目属性。', 'type' => 'object', 'properties' => [ - 'isExternalCatalogBound' => [ - 'description' => '是否为[湖仓一体2.0](https://help.aliyun.com/zh/maxcompute/user-guide/lake-warehouse-integrated-2-0-use-guide)'."\n" - .'[湖仓一体2.0](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/lake-warehouse-integrated-2-0-use-guide)外部项目。', - 'type' => 'string', - 'example' => 'true', - ], - 'tableFormat' => [ - 'type' => 'string', - ], - 'warehouse' => [ - 'type' => 'string', - ], - 'foreignServerName' => [ - 'type' => 'string', - ], - 'foreignServerType' => [ - 'type' => 'string', - ], - 'externalCatalogId' => [ - 'type' => 'string', - ], + 'isExternalCatalogBound' => ['description' => '是否为[湖仓一体2.0](https://help.aliyun.com/zh/maxcompute/user-guide/lake-warehouse-integrated-2-0-use-guide)'."\n" + .'[湖仓一体2.0](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/lake-warehouse-integrated-2-0-use-guide)外部项目。', 'type' => 'string', 'example' => 'true'], + 'tableFormat' => ['type' => 'string', 'description' => ''], + 'warehouse' => ['type' => 'string', 'description' => ''], + 'foreignServerName' => ['type' => 'string', 'description' => ''], + 'foreignServerType' => ['type' => 'string', 'description' => ''], + 'externalCatalogId' => ['type' => 'string', 'description' => ''], ], ], - 'enableAutoMv' => [ - 'type' => 'boolean', - ], - 'autoMvQuotaGb' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'enableDr' => [ - 'type' => 'boolean', - ], + 'enableAutoMv' => ['type' => 'boolean', 'description' => ''], + 'autoMvQuotaGb' => ['type' => 'integer', 'format' => 'int64', 'description' => ''], + 'enableDr' => ['type' => 'boolean', 'description' => ''], + 'enableDataMasking' => ['type' => 'boolean'], ], ], 'superAdmins' => [ 'description' => '项目的`Super_Administrator`角色成员列表。', 'type' => 'array', - 'items' => [ - 'description' => '项目的`Super_Administrator`角色成员账号信息。', - 'type' => 'string', - 'example' => 'RAM$odps****@aliyunid.com:RAM_USER'."\n", - ], + 'items' => ['description' => '项目的`Super_Administrator`角色成员账号信息。', 'type' => 'string', 'example' => 'RAM$odps****@aliyunid.com:RAM_USER'."\n"], ], 'securityProperties' => [ 'description' => '权限属性。', 'type' => 'object', 'properties' => [ - 'usingAcl' => [ - 'description' => '是否使用[ACL权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/acl-based-access-control)'."\n" - .'[ACL权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/acl-based-access-control)功能,默认为使用状态。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'usingPolicy' => [ - 'description' => '是否使用[Policy权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/policy-based-access-control-1)'."\n" - .'[Policy权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/policy-based-access-control-1)功能,默认为使用状态。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'objectCreatorHasAccessPermission' => [ - 'description' => '是否允许对象创建者拥有对象的访问权限,默认为允许状态。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'objectCreatorHasGrantPermission' => [ - 'description' => '是否允许对象创建者拥有对象的授权权限,默认为允许状态。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'labelSecurity' => [ - 'description' => '是否使用[Label权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/label-based-access-control)'."\n" - .'[Label权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/label-based-access-control)功能,默认为不使用状态。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'enableDownloadPrivilege' => [ - 'description' => '是否使用[Download权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/download-control)'."\n" - .'[Download权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/label-based-access-control)功能,默认为不使用状态。', - 'type' => 'boolean', - 'example' => 'false', - ], + 'usingAcl' => ['description' => '是否使用[ACL权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/acl-based-access-control)'."\n" + .'[ACL权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/acl-based-access-control)功能,默认为使用状态。', 'type' => 'boolean', 'example' => 'true'], + 'usingPolicy' => ['description' => '是否使用[Policy权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/policy-based-access-control-1)'."\n" + .'[Policy权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/policy-based-access-control-1)功能,默认为使用状态。', 'type' => 'boolean', 'example' => 'true'], + 'objectCreatorHasAccessPermission' => ['description' => '是否允许对象创建者拥有对象的访问权限,默认为允许状态。', 'type' => 'boolean', 'example' => 'true'], + 'objectCreatorHasGrantPermission' => ['description' => '是否允许对象创建者拥有对象的授权权限,默认为允许状态。', 'type' => 'boolean', 'example' => 'true'], + 'labelSecurity' => ['description' => '是否使用[Label权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/label-based-access-control)'."\n" + .'[Label权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/label-based-access-control)功能,默认为不使用状态。', 'type' => 'boolean', 'example' => 'false'], + 'enableDownloadPrivilege' => ['description' => '是否使用[Download权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/download-control)'."\n" + .'[Download权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/label-based-access-control)功能,默认为不使用状态。', 'type' => 'boolean', 'example' => 'false'], 'projectProtection' => [ 'description' => '[数据保护机制](https://help.aliyun.com/zh/maxcompute/security-and-compliance/project-data-protection)'."\n" .'[数据保护机制](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/project-data-protection)属性。', 'type' => 'object', 'properties' => [ - 'exceptionPolicy' => [ - 'description' => '如选择开启项目空间数据保护,允许设置例外或受信任项目,指定用户将指定对象的数据流出至指定项目,所有符合Exception Policy中描述的情形都可以打破数据保护机制。', - 'type' => 'string', - 'example' => '{'."\n" - .' "Version": "1",'."\n" - .' "Statement": ['."\n" - .' {'."\n" - .' "Effect": "Allow",'."\n" - .' "Principal": "",'."\n" - .' "Action": ['."\n" - .' "odps:[, , ...]"'."\n" - .' ],'."\n" - .' "Resource": "acs:odps:*:",'."\n" - .' "Condition": {'."\n" - .' "StringEquals": {'."\n" - .' "odps:TaskType": ['."\n" - .' ""'."\n" - .' ]'."\n" - .' }'."\n" - .' }'."\n" - .' }'."\n" - .' ]'."\n" - .'}', - ], - 'protected' => [ - 'description' => '是否开启项目的[数据保护机制](https://help.aliyun.com/zh/maxcompute/security-and-compliance/project-data-protection)'."\n" - .'[数据保护机制](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/project-data-protection),禁止或允许数据流出项目,默认为不开启状态。', - 'type' => 'boolean', - 'example' => 'true', - ], + 'exceptionPolicy' => ['description' => '如选择开启项目空间数据保护,允许设置例外或受信任项目,指定用户将指定对象的数据流出至指定项目,所有符合Exception Policy中描述的情形都可以打破数据保护机制。', 'type' => 'string', 'example' => '{'."\n" + .' "Version": "1",'."\n" + .' "Statement": ['."\n" + .' {'."\n" + .' "Effect": "Allow",'."\n" + .' "Principal": "",'."\n" + .' "Action": ['."\n" + .' "odps:[, , ...]"'."\n" + .' ],'."\n" + .' "Resource": "acs:odps:*:",'."\n" + .' "Condition": {'."\n" + .' "StringEquals": {'."\n" + .' "odps:TaskType": ['."\n" + .' ""'."\n" + .' ]'."\n" + .' }'."\n" + .' }'."\n" + .' }'."\n" + .' ]'."\n" + .'}'], + 'protected' => ['description' => '是否开启项目的[数据保护机制](https://help.aliyun.com/zh/maxcompute/security-and-compliance/project-data-protection)'."\n" + .'[数据保护机制](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/project-data-protection),禁止或允许数据流出项目,默认为不开启状态。', 'type' => 'boolean', 'example' => 'true'], ], ], ], @@ -6022,35 +3680,19 @@ 'description' => 'IP白名单。', 'type' => 'object', 'properties' => [ - 'ipList' => [ - 'description' => '公网和云产品互联网络IP白名单。'."\n" - ."\n" - .'> 如果只配置公网和云产品互联网络IP白名单,则公网和云产品互联网络访问受配置限制,VPC网络访问全部禁止。', - 'type' => 'string', - 'example' => '10.88.111.3', - ], - 'vpcIpList' => [ - 'description' => 'VPC网络IP白名单。'."\n" - .'> 如果只配置VPC网络IP白名单,则VPC网络访问受配置限制,公网和云产品互联网络访问全部禁止。', - 'type' => 'string', - 'example' => '10.88.111.3', - ], + 'ipList' => ['description' => '公网和云产品互联网络IP白名单。'."\n" + ."\n" + .'> 如果只配置公网和云产品互联网络IP白名单,则公网和云产品互联网络访问受配置限制,VPC网络访问全部禁止。', 'type' => 'string', 'example' => '10.88.111.3'], + 'vpcIpList' => ['description' => 'VPC网络IP白名单。'."\n" + .'> 如果只配置VPC网络IP白名单,则VPC网络访问受配置限制,公网和云产品互联网络访问全部禁止。', 'type' => 'string', 'example' => '10.88.111.3'], ], ], 'saleTag' => [ 'description' => '默认计算Quota的实例ID与付费类型。', 'type' => 'object', 'properties' => [ - 'resourceId' => [ - 'description' => '默认计算Quota的实例ID。', - 'type' => 'string', - 'example' => 'b7afb7d1-****-****-****-c393669c307b', - ], - 'resourceType' => [ - 'description' => '默认计算Quota的付费类型。', - 'type' => 'string', - 'example' => 'PayAsYouGo', - ], + 'resourceId' => ['description' => '默认计算Quota的实例ID。', 'type' => 'string', 'example' => 'b7afb7d1-****-****-****-c393669c307b'], + 'resourceType' => ['description' => '默认计算Quota的付费类型。', 'type' => 'string', 'example' => 'PayAsYouGo'], ], ], ], @@ -6059,17 +3701,12 @@ ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7b316643495896551555e855b\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"This object does not exist.\\",\\n \\"data\\": {\\n \\"name\\": \\"odps_project\\",\\n \\"owner\\": \\"ALIYUN$odps****@aliyunid.com\\",\\n \\"type\\": \\"managed\\",\\n \\"comment\\": \\"BI_Analysis\\",\\n \\"defaultQuota\\": \\"os_PayAsYouGoQuota\\",\\n \\"status\\": \\"AVAILABLE\\",\\n \\"productType\\": \\"PayAsYouGo\\",\\n \\"threeTierModel\\": true,\\n \\"costStorage\\": \\"16489027\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"createdTime\\": 1704380838000,\\n \\"properties\\": {\\n \\"timezone\\": \\"Asia/Shanghai\\",\\n \\"retentionDays\\": 1,\\n \\"allowFullScan\\": false,\\n \\"typeSystem\\": \\"2.0\\",\\n \\"enableDecimal2\\": true,\\n \\"sqlMeteringMax\\": \\"1500\\",\\n \\"tableLifecycle\\": {\\n \\"type\\": \\"optional\\",\\n \\"value\\": \\"37231\\"\\n },\\n \\"encryption\\": {\\n \\"enable\\": true,\\n \\"algorithm\\": \\"AES256\\",\\n \\"key\\": \\"dafault\\"\\n },\\n \\"tunnelQuota\\": \\"Default\\",\\n \\"elderTunnelQuota\\": \\"Default_p\\",\\n \\"enableTunnelQuotaRoute\\": true,\\n \\"storageTierInfo\\": {\\n \\"storageTierSize\\": {\\n \\"standardSize\\": 27649172,\\n \\"longTermSize\\": 21764917,\\n \\"lowFrequencySize\\": 767693\\n },\\n \\"projectTotalSize\\": 56066037,\\n \\"projectBackupSize\\": 86672917\\n },\\n \\"fdcQuota\\": \\"fdc_quota\\",\\n \\"enableFdcCacheForce\\": true,\\n \\"enableTieredStorage\\": true,\\n \\"tableLifecycleConfig\\": {\\n \\"TierToLongterm\\": {\\n \\"DaysAfterLastModificationGreaterThan\\": 180,\\n \\"DaysAfterLastAccessGreaterThan\\": 180,\\n \\"DaysAfterLastTierModificationGreaterThan\\": 1\\n },\\n \\"TierToLowFrequency\\": {\\n \\"DaysAfterLastModificationGreaterThan\\": 30,\\n \\"DaysAfterLastAccessGreaterThan\\": 30,\\n \\"DaysAfterLastTierModificationGreaterThan\\": 1\\n }\\n },\\n \\"externalProjectProperties\\": {\\n \\"isExternalCatalogBound\\": \\"true\\",\\n \\"tableFormat\\": \\"\\",\\n \\"warehouse\\": \\"\\",\\n \\"foreignServerName\\": \\"\\",\\n \\"foreignServerType\\": \\"\\",\\n \\"externalCatalogId\\": \\"\\"\\n },\\n \\"enableAutoMv\\": true,\\n \\"autoMvQuotaGb\\": 0,\\n \\"enableDr\\": true\\n },\\n \\"superAdmins\\": [\\n \\"RAM$odps****@aliyunid.com:RAM_USER\\\\n\\"\\n ],\\n \\"securityProperties\\": {\\n \\"usingAcl\\": true,\\n \\"usingPolicy\\": true,\\n \\"objectCreatorHasAccessPermission\\": true,\\n \\"objectCreatorHasGrantPermission\\": true,\\n \\"labelSecurity\\": false,\\n \\"enableDownloadPrivilege\\": false,\\n \\"projectProtection\\": {\\n \\"exceptionPolicy\\": \\"{\\\\n \\\\\\"Version\\\\\\": \\\\\\"1\\\\\\",\\\\n \\\\\\"Statement\\\\\\": [\\\\n {\\\\n \\\\\\"Effect\\\\\\": \\\\\\"Allow\\\\\\",\\\\n \\\\\\"Principal\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"Action\\\\\\": [\\\\n \\\\\\"odps:[, , ...]\\\\\\"\\\\n ],\\\\n \\\\\\"Resource\\\\\\": \\\\\\"acs:odps:*:\\\\\\",\\\\n \\\\\\"Condition\\\\\\": {\\\\n \\\\\\"StringEquals\\\\\\": {\\\\n \\\\\\"odps:TaskType\\\\\\": [\\\\n \\\\\\"\\\\\\"\\\\n ]\\\\n }\\\\n }\\\\n }\\\\n ]\\\\n}\\",\\n \\"protected\\": true\\n }\\n },\\n \\"ipWhiteList\\": {\\n \\"ipList\\": \\"10.88.111.3\\",\\n \\"vpcIpList\\": \\"10.88.111.3\\"\\n },\\n \\"saleTag\\": {\\n \\"resourceId\\": \\"b7afb7d1-****-****-****-c393669c307b\\",\\n \\"resourceType\\": \\"PayAsYouGo\\"\\n }\\n }\\n}","type":"json"}]', 'title' => '获取项目信息', + 'summary' => '查询MaxCompute项目的基本信息。', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '800', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetProject', - ], + ['threshold' => '800', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetProject'], ], ], 'ramActions' => [ @@ -6080,28 +3717,19 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7b316643495896551555e855b\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"This object does not exist.\\",\\n \\"data\\": {\\n \\"name\\": \\"odps_project\\",\\n \\"owner\\": \\"ALIYUN$odps****@aliyunid.com\\",\\n \\"type\\": \\"managed\\",\\n \\"comment\\": \\"BI_Analysis\\",\\n \\"defaultQuota\\": \\"os_PayAsYouGoQuota\\",\\n \\"status\\": \\"AVAILABLE\\",\\n \\"productType\\": \\"PayAsYouGo\\",\\n \\"threeTierModel\\": true,\\n \\"costStorage\\": \\"16489027\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"createdTime\\": 1704380838000,\\n \\"properties\\": {\\n \\"timezone\\": \\"Asia/Shanghai\\",\\n \\"retentionDays\\": 1,\\n \\"allowFullScan\\": false,\\n \\"typeSystem\\": \\"2.0\\",\\n \\"enableDecimal2\\": true,\\n \\"sqlMeteringMax\\": \\"1500\\",\\n \\"tableLifecycle\\": {\\n \\"type\\": \\"optional\\",\\n \\"value\\": \\"37231\\"\\n },\\n \\"encryption\\": {\\n \\"enable\\": true,\\n \\"algorithm\\": \\"AES256\\",\\n \\"key\\": \\"dafault\\"\\n },\\n \\"tunnelQuota\\": \\"Default\\",\\n \\"elderTunnelQuota\\": \\"Default_p\\",\\n \\"enableTunnelQuotaRoute\\": true,\\n \\"storageTierInfo\\": {\\n \\"storageTierSize\\": {\\n \\"standardSize\\": 27649172,\\n \\"longTermSize\\": 21764917,\\n \\"lowFrequencySize\\": 767693\\n },\\n \\"projectTotalSize\\": 56066037,\\n \\"projectBackupSize\\": 86672917\\n },\\n \\"fdcQuota\\": \\"fdc_quota\\",\\n \\"enableFdcCacheForce\\": true,\\n \\"enableTieredStorage\\": true,\\n \\"tableLifecycleConfig\\": {\\n \\"TierToLongterm\\": {\\n \\"DaysAfterLastModificationGreaterThan\\": 180,\\n \\"DaysAfterLastAccessGreaterThan\\": 180,\\n \\"DaysAfterLastTierModificationGreaterThan\\": 1\\n },\\n \\"TierToLowFrequency\\": {\\n \\"DaysAfterLastModificationGreaterThan\\": 30,\\n \\"DaysAfterLastAccessGreaterThan\\": 30,\\n \\"DaysAfterLastTierModificationGreaterThan\\": 1\\n }\\n },\\n \\"externalProjectProperties\\": {\\n \\"isExternalCatalogBound\\": \\"true\\",\\n \\"tableFormat\\": \\"\\",\\n \\"warehouse\\": \\"\\",\\n \\"foreignServerName\\": \\"\\",\\n \\"foreignServerType\\": \\"\\",\\n \\"externalCatalogId\\": \\"\\"\\n },\\n \\"enableAutoMv\\": true,\\n \\"autoMvQuotaGb\\": 0,\\n \\"enableDr\\": true,\\n \\"enableDataMasking\\": true\\n },\\n \\"superAdmins\\": [\\n \\"RAM$odps****@aliyunid.com:RAM_USER\\\\n\\"\\n ],\\n \\"securityProperties\\": {\\n \\"usingAcl\\": true,\\n \\"usingPolicy\\": true,\\n \\"objectCreatorHasAccessPermission\\": true,\\n \\"objectCreatorHasGrantPermission\\": true,\\n \\"labelSecurity\\": false,\\n \\"enableDownloadPrivilege\\": false,\\n \\"projectProtection\\": {\\n \\"exceptionPolicy\\": \\"{\\\\n \\\\\\"Version\\\\\\": \\\\\\"1\\\\\\",\\\\n \\\\\\"Statement\\\\\\": [\\\\n {\\\\n \\\\\\"Effect\\\\\\": \\\\\\"Allow\\\\\\",\\\\n \\\\\\"Principal\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"Action\\\\\\": [\\\\n \\\\\\"odps:[, , ...]\\\\\\"\\\\n ],\\\\n \\\\\\"Resource\\\\\\": \\\\\\"acs:odps:*:\\\\\\",\\\\n \\\\\\"Condition\\\\\\": {\\\\n \\\\\\"StringEquals\\\\\\": {\\\\n \\\\\\"odps:TaskType\\\\\\": [\\\\n \\\\\\"\\\\\\"\\\\n ]\\\\n }\\\\n }\\\\n }\\\\n ]\\\\n}\\",\\n \\"protected\\": true\\n }\\n },\\n \\"ipWhiteList\\": {\\n \\"ipList\\": \\"10.88.111.3\\",\\n \\"vpcIpList\\": \\"10.88.111.3\\"\\n },\\n \\"saleTag\\": {\\n \\"resourceId\\": \\"b7afb7d1-****-****-****-c393669c307b\\",\\n \\"resourceType\\": \\"PayAsYouGo\\"\\n }\\n }\\n}","type":"json"}]', ], 'GetQuota' => [ 'summary' => '获取指定一级Quota组信息。'."\n" .'注意warning: 该接口会在2024年7月31日下线,我们会提供QueryQuota的接口替代,入参,出参,功能完全一样。', 'path' => '/api/v1/quotas/{nickname}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6114,62 +3742,36 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '134191', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota名称', - 'type' => 'string', - 'required' => true, - 'example' => '%E9%BB%98%E8%AE%A4%E9%A2%84%E4%BB%98%E8%B4%B9Quota_p'."\n" - ."\n" - .'#中文名称需要经过utf8 urlencode编码转义', - ], + 'schema' => ['description' => 'Quota名称', 'type' => 'string', 'required' => true, 'example' => '%E9%BB%98%E8%AE%A4%E9%A2%84%E4%BB%98%E8%B4%B9Quota_p'."\n" + ."\n" + .'# Chinese name needs to be UTF-8 URL-encoded'], ], [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'deprecated' => true, - 'required' => false, - ], + 'schema' => ['type' => 'string', 'deprecated' => true, 'required' => false, 'description' => ''], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'deprecated' => true, - 'required' => false, - ], + 'schema' => ['type' => 'string', 'deprecated' => true, 'required' => false, 'description' => ''], ], [ 'name' => 'AkProven', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'deprecated' => true, - 'required' => false, - 'default' => '', - ], + 'schema' => ['type' => 'string', 'deprecated' => true, 'required' => false, 'default' => '', 'description' => ''], ], [ 'name' => 'mock', 'in' => 'query', - 'schema' => [ - 'description' => '是否包含子模块。取值:-true:包含。-false(默认值):不包含。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', - ], + 'schema' => ['description' => '是否包含子模块。取值:-true:包含。-false(默认值):不包含。', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'], ], ], 'responses' => [ @@ -6183,24 +3785,11 @@ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示是预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription'."\n", - ], - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard', - ], - 'orderId' => [ - 'description' => '订单id。', - 'type' => 'string', - 'example' => '45245678', - ], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示是预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'."\n"], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard'], + 'orderId' => ['description' => '订单id。', 'type' => 'string', 'example' => '45245678'], ], ], 'saleTag' => [ @@ -6210,126 +3799,41 @@ 'resourceIds' => [ 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'array', - 'items' => [ - 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', - 'type' => 'string', - 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n", - ], - ], - 'resourceType' => [ - 'description' => '对象的类型,目前仅支持quota 和 project 两种类型。', - 'type' => 'string', - 'example' => '"quota"', - ], - ], - ], - 'cluster' => [ - 'description' => '集群id。', - 'type' => 'string', - 'example' => 'AT-120N', - ], - 'createTime' => [ - 'description' => '资源的创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z'."\n", - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518'."\n", - ], - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0b87b7a316654730544735643e9200', - ], - 'id' => [ - 'description' => 'quota ID', - 'type' => 'string', - 'example' => '0', - ], - 'name' => [ - 'description' => 'quota名称', - 'type' => 'string', - 'example' => 'quota_a'."\n", - ], - 'nickName' => [ - 'description' => 'quota别名', - 'type' => 'string', - 'example' => 'quota_nickname', - ], - 'parameter' => [ - 'description' => 'quota的描述信息', - 'type' => 'object', - 'example' => '{"minCU":10, '."\n" - .'"adhocCU":0,'."\n" - .'"maxCU":10,'."\n" - .'"schedulerType":"Fair",'."\n" - .'}', - ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => 'null', - ], - 'regionId' => [ - 'description' => '地域id', - 'type' => 'string', - 'example' => 'cn-beijing', - ], + 'items' => ['description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'string', 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n"], + ], + 'resourceType' => ['description' => '对象的类型,目前仅支持quota 和 project 两种类型。', 'type' => 'string', 'example' => '"quota"'], + ], + ], + 'cluster' => ['description' => '集群id。', 'type' => 'string', 'example' => 'AT-120N'], + 'createTime' => ['description' => '资源的创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'."\n"], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'."\n"], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0b87b7a316654730544735643e9200'], + 'id' => ['description' => 'quota ID', 'type' => 'string', 'example' => '0'], + 'name' => ['description' => 'quota名称', 'type' => 'string', 'example' => 'quota_a'."\n"], + 'nickName' => ['description' => 'quota别名', 'type' => 'string', 'example' => 'quota_nickname'], + 'parameter' => ['description' => 'quota的描述信息', 'type' => 'object', 'example' => '{"minCU":10, '."\n" + .'"adhocCU":0,'."\n" + .'"maxCU":10,'."\n" + .'"schedulerType":"Fair",'."\n" + .'}'], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => 'null'], + 'regionId' => ['description' => '地域id', 'type' => 'string', 'example' => 'cn-beijing'], 'scheduleInfo' => [ 'description' => '分时信息。', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '立即生效的quota计划。'."\n" - .'如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作人名称。', - 'type' => 'string', - 'example' => 'userA', - ], - 'timezone' => [ - 'description' => '时区', - 'type' => 'string', - 'example' => 'UTC+8', - ], - ], - ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '立即生效的quota计划。'."\n" + .'如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作人名称。', 'type' => 'string', 'example' => 'userA'], + 'timezone' => ['description' => '时区', 'type' => 'string', 'example' => 'UTC+8'], + ], + ], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON'], 'subQuotaInfoList' => [ 'description' => '二级quota信息', 'type' => 'array', @@ -6341,24 +3845,11 @@ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示是预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription', - ], - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard'."\n", - ], - 'orderId' => [ - 'description' => '订单id。', - 'type' => 'string', - 'example' => '45245678'."\n", - ], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示是预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard'."\n"], + 'orderId' => ['description' => '订单id。', 'type' => 'string', 'example' => '45245678'."\n"], ], ], 'saleTag' => [ @@ -6368,95 +3859,28 @@ 'resourceIds' => [ 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'array', - 'items' => [ - 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', - 'type' => 'string', - 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n", - ], - ], - 'resourceType' => [ - 'description' => '对象的类型,目前仅支持quota 和 project 两种类型。', - 'type' => 'string', - 'example' => '"quota"', + 'items' => ['description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'string', 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n"], ], + 'resourceType' => ['description' => '对象的类型,目前仅支持quota 和 project 两种类型。', 'type' => 'string', 'example' => '"quota"'], ], ], - 'cluster' => [ - 'description' => '集群id。', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'createTime' => [ - 'description' => '资源创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z'."\n", - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518'."\n", - ], - 'id' => [ - 'description' => '二级quota ID', - 'type' => 'string', - 'example' => '1000048'."\n", - ], - 'name' => [ - 'description' => '二级quota名称', - 'type' => 'string', - 'example' => 'subquotaA'."\n", - ], - 'nickName' => [ - 'description' => '二级quota别名', - 'type' => 'string', - 'example' => 'subquotaA'."\n", - ], + 'cluster' => ['description' => '集群id。', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'createTime' => ['description' => '资源创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'."\n"], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'."\n"], + 'id' => ['description' => '二级quota ID', 'type' => 'string', 'example' => '1000048'."\n"], + 'name' => ['description' => '二级quota名称', 'type' => 'string', 'example' => 'subquotaA'."\n"], + 'nickName' => ['description' => '二级quota别名', 'type' => 'string', 'example' => 'subquotaA'."\n"], 'parameter' => [ 'description' => 'quota的描述信息', 'type' => 'object', 'properties' => [ - 'enablePriority' => [ - 'description' => '开启优先级。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'forceReservedMin' => [ - 'description' => '是否独占。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'maxCU' => [ - 'description' => '预留CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'minCU' => [ - 'description' => '预留CU保障。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'schedulerType' => [ - 'description' => '调度策略。', - 'type' => 'string', - 'example' => 'Fifo/Fair', - ], - 'singleJobCULimit' => [ - 'description' => '单作业CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'elasticReservedCU' => [ - 'description' => '弹性预留CU值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], + 'enablePriority' => ['description' => '开启优先级。', 'type' => 'boolean', 'example' => 'true'], + 'forceReservedMin' => ['description' => '是否独占。', 'type' => 'boolean', 'example' => 'true'], + 'maxCU' => ['description' => '预留CU上限。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'minCU' => ['description' => '预留CU保障。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'schedulerType' => ['description' => '调度策略。', 'type' => 'string', 'example' => 'Fifo/Fair'], + 'singleJobCULimit' => ['description' => '单作业CU上限。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'elasticReservedCU' => ['description' => '弹性预留CU值。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], ], 'example' => '{"minCU":10, '."\n" .'"adhocCU":0,'."\n" @@ -6464,143 +3888,44 @@ .'"schedulerType":"Fair",'."\n" .'}', ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => '0', - ], - 'regionId' => [ - 'description' => '地域id', - 'type' => 'string', - 'example' => 'cn-beijing', - ], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => '0'], + 'regionId' => ['description' => '地域id', 'type' => 'string', 'example' => 'cn-beijing'], 'scheduleInfo' => [ 'description' => '分时信息。', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '立即生效的quota计划。'."\n" - .'如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作人名称。', - 'type' => 'string', - 'example' => 'userA'."\n", - ], - 'timezone' => [ - 'description' => '时区', - 'type' => 'string', - 'example' => 'UTC+8', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '立即生效的quota计划。'."\n" + .'如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作人名称。', 'type' => 'string', 'example' => 'userA'."\n"], + 'timezone' => ['description' => '时区', 'type' => 'string', 'example' => 'UTC+8'], ], ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON'."\n", - ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'version' => [ - 'description' => '版本号', - 'type' => 'string', - 'example' => '1', - ], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON'."\n"], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '478403690625249'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'version' => ['description' => '版本号', 'type' => 'string', 'example' => '1'], ], ], ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'version' => [ - 'description' => '版本号。', - 'type' => 'string', - 'example' => '1', - ], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '478403690625249'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'version' => ['description' => '版本号。', 'type' => 'string', 'example' => '1'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => 'quota ID', - 'type' => 'string', - 'example' => '0', - ], - 'name' => [ - 'description' => 'quota名称', - 'type' => 'string', - 'example' => 'quota_a', - ], - 'nickName' => [ - 'description' => 'Quota别名', - 'type' => 'string', - 'example' => 'quota_nickname', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON', - ], + 'id' => ['description' => 'quota ID', 'type' => 'string', 'example' => '0'], + 'name' => ['description' => 'quota名称', 'type' => 'string', 'example' => 'quota_a'], + 'nickName' => ['description' => 'Quota别名', 'type' => 'string', 'example' => 'quota_nickname'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON'], 'saleTag' => [ 'description' => '描述了MaxCompute quota 对象的标识,这个标识与阿里云售卖账单中的标识是一致的。实际使用与标签场景下。', 'type' => 'object', @@ -6608,140 +3933,50 @@ 'resourceIds' => [ 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'array', - 'items' => [ - 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', - 'type' => 'string', - 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n", - ], - ], - 'resourceType' => [ - 'description' => '对象的类型,目前仅支持quota 和 project 两种类型。', - 'type' => 'string', - 'example' => '"quota"'."\n", + 'items' => ['description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'string', 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n"], ], + 'resourceType' => ['description' => '对象的类型,目前仅支持quota 和 project 两种类型。', 'type' => 'string', 'example' => '"quota"'."\n"], ], ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '地域id', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => 'null', - ], - 'cluster' => [ - 'description' => '集群id。', - 'type' => 'string', - 'example' => 'AT-120N', - ], - 'version' => [ - 'description' => '版本号', - 'type' => 'string', - 'example' => '1', - ], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '地域id', 'type' => 'string', 'example' => 'cn-beijing'], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => 'null'], + 'cluster' => ['description' => '集群id。', 'type' => 'string', 'example' => 'AT-120N'], + 'version' => ['description' => '版本号', 'type' => 'string', 'example' => '1'], 'billingPolicy' => [ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard', - ], - 'orderId' => [ - 'description' => '订单id。', - 'type' => 'string', - 'example' => '45245678', - ], - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示是预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription', - ], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard'], + 'orderId' => ['description' => '订单id。', 'type' => 'string', 'example' => '45245678'], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示是预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'], ], ], 'scheduleInfo' => [ 'description' => '分时信息。', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '立即生效的quota计划。'."\n" - .'如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作人名称。', - 'type' => 'string', - 'example' => 'userA', - ], - 'timezone' => [ - 'description' => '时区', - 'type' => 'string', - 'example' => 'UTC+8', - ], - ], - ], - 'parameter' => [ - 'description' => 'quota的描述信息', - 'type' => 'object', - 'example' => '{"minCU":10, '."\n" - .'"adhocCU":0,'."\n" - .'"maxCU":10,'."\n" - .'"schedulerType":"Fair",'."\n" - .'}', - ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'createTime' => [ - 'description' => '资源创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z', - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '立即生效的quota计划。'."\n" + .'如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作人名称。', 'type' => 'string', 'example' => 'userA'], + 'timezone' => ['description' => '时区', 'type' => 'string', 'example' => 'UTC+8'], + ], + ], + 'parameter' => ['description' => 'quota的描述信息', 'type' => 'object', 'example' => '{"minCU":10, '."\n" + .'"adhocCU":0,'."\n" + .'"maxCU":10,'."\n" + .'"schedulerType":"Fair",'."\n" + .'}'], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'createTime' => ['description' => '资源创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'], 'subQuotaInfoList' => [ 'description' => '二级quota信息', 'type' => 'array', @@ -6749,16 +3984,8 @@ 'description' => '数据', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '二级quota ID', - 'type' => 'string', - 'example' => '1000048', - ], - 'name' => [ - 'description' => '二级quota名称', - 'type' => 'string', - 'example' => 'subquotaA', - ], + 'id' => ['description' => '二级quota ID', 'type' => 'string', 'example' => '1000048'], + 'name' => ['description' => '二级quota名称', 'type' => 'string', 'example' => 'subquotaA'], 'saleTag' => [ 'description' => '描述了MaxCompute quota 对象的标识,这个标识与阿里云售卖账单中的标识是一致的。实际使用与标签场景下。', 'type' => 'object', @@ -6766,194 +3993,61 @@ 'resourceIds' => [ 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'array', - 'items' => [ - 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', - 'type' => 'string', - 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n", - ], - ], - 'resourceType' => [ - 'description' => '对象的类型,目前仅支持quota 和 project 两种类型。', - 'type' => 'string', - 'example' => '"quota"'."\n", + 'items' => ['description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'string', 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n"], ], + 'resourceType' => ['description' => '对象的类型,目前仅支持quota 和 project 两种类型。', 'type' => 'string', 'example' => '"quota"'."\n"], ], ], - 'nickName' => [ - 'description' => '二级quota昵称', - 'type' => 'string', - 'example' => 'subquotaA', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '478403690625249'."\n", - ], - 'regionId' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => '0', - ], - 'cluster' => [ - 'description' => '集群id', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本号。', - 'type' => 'string', - 'example' => '1', - ], + 'nickName' => ['description' => '二级quota昵称', 'type' => 'string', 'example' => 'subquotaA'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '478403690625249'."\n"], + 'regionId' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-beijing'], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => '0'], + 'cluster' => ['description' => '集群id', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本号。', 'type' => 'string', 'example' => '1'], 'billingPolicy' => [ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard', - ], - 'orderId' => [ - 'description' => '订单id。', - 'type' => 'string', - 'example' => '45245678', - ], - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示是预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription', - ], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard'], + 'orderId' => ['description' => '订单id。', 'type' => 'string', 'example' => '45245678'], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示是预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'], ], ], 'scheduleInfo' => [ 'description' => '分时信息', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '立即生效的quota计划。'."\n" - .'如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作人名称。', - 'type' => 'string', - 'example' => 'userA', - ], - 'timezone' => [ - 'description' => '时区', - 'type' => 'string', - 'example' => 'UTC+8', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '立即生效的quota计划。'."\n" + .'如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作人名称。', 'type' => 'string', 'example' => 'userA'], + 'timezone' => ['description' => '时区', 'type' => 'string', 'example' => 'UTC+8'], ], ], 'parameter' => [ 'description' => 'quota的描述信息', 'type' => 'object', 'properties' => [ - 'enablePriority' => [ - 'description' => '开启优先级。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'forceReservedMin' => [ - 'description' => '是否独占。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'maxCU' => [ - 'description' => '预留CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'minCU' => [ - 'description' => '预留CU保障。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'schedulerType' => [ - 'description' => '调度策略。', - 'type' => 'string', - 'example' => 'Fifo/Fair'."\n", - ], - 'singleJobCULimit' => [ - 'description' => '单作业CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'elasticReservedCU' => [ - 'description' => '弹性预留CU值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], + 'enablePriority' => ['description' => '开启优先级。', 'type' => 'boolean', 'example' => 'true'], + 'forceReservedMin' => ['description' => '是否独占。', 'type' => 'boolean', 'example' => 'true'], + 'maxCU' => ['description' => '预留CU上限。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'minCU' => ['description' => '预留CU保障。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'schedulerType' => ['description' => '调度策略。', 'type' => 'string', 'example' => 'Fifo/Fair'."\n"], + 'singleJobCULimit' => ['description' => '单作业CU上限。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'elasticReservedCU' => ['description' => '弹性预留CU值。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], ], ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'createTime' => [ - 'description' => '资源创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z'."\n", - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518', - ], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'createTime' => ['description' => '资源创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'."\n"], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'], ], ], ], @@ -6966,6 +4060,11 @@ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"billingPolicy\\": {\\n \\"billingMethod\\": \\"subscription\\\\n\\",\\n \\"odpsSpecCode\\": \\"OdpsStandard\\",\\n \\"orderId\\": \\"45245678\\"\\n },\\n \\"saleTag\\": {\\n \\"resourceIds\\": [\\n \\"\\\\\\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\\\\\\"\\\\n\\"\\n ],\\n \\"resourceType\\": \\"\\\\\\"quota\\\\\\"\\"\\n },\\n \\"cluster\\": \\"AT-120N\\",\\n \\"createTime\\": 0,\\n \\"creatorId\\": \\"672863518\\\\n\\",\\n \\"requestId\\": \\"0b87b7a316654730544735643e9200\\",\\n \\"id\\": \\"0\\",\\n \\"name\\": \\"quota_a\\\\n\\",\\n \\"nickName\\": \\"quota_nickname\\",\\n \\"parameter\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"parentId\\": \\"null\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"scheduleInfo\\": {\\n \\"currPlan\\": \\"planA\\",\\n \\"currTime\\": \\"0800\\",\\n \\"nextPlan\\": \\"planB\\",\\n \\"nextTime\\": \\"1700\\",\\n \\"oncePlan\\": \\"planC\\",\\n \\"onceTime\\": \\"1500\\",\\n \\"operatorName\\": \\"userA\\",\\n \\"timezone\\": \\"UTC+8\\"\\n },\\n \\"status\\": \\"ON\\",\\n \\"subQuotaInfoList\\": [\\n {\\n \\"billingPolicy\\": {\\n \\"billingMethod\\": \\"subscription\\",\\n \\"odpsSpecCode\\": \\"OdpsStandard\\\\n\\",\\n \\"orderId\\": \\"45245678\\\\n\\"\\n },\\n \\"saleTag\\": {\\n \\"resourceIds\\": [\\n \\"\\\\\\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\\\\\\"\\\\n\\"\\n ],\\n \\"resourceType\\": \\"\\\\\\"quota\\\\\\"\\"\\n },\\n \\"cluster\\": \\"AT-120N\\\\n\\",\\n \\"createTime\\": 0,\\n \\"creatorId\\": \\"672863518\\\\n\\",\\n \\"id\\": \\"1000048\\\\n\\",\\n \\"name\\": \\"subquotaA\\\\n\\",\\n \\"nickName\\": \\"subquotaA\\\\n\\",\\n \\"parameter\\": {\\n \\"enablePriority\\": true,\\n \\"forceReservedMin\\": true,\\n \\"maxCU\\": 50,\\n \\"minCU\\": 50,\\n \\"schedulerType\\": \\"Fifo/Fair\\",\\n \\"singleJobCULimit\\": 10,\\n \\"elasticReservedCU\\": 50\\n },\\n \\"parentId\\": \\"0\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"scheduleInfo\\": {\\n \\"currPlan\\": \\"planA\\",\\n \\"currTime\\": \\"0800\\",\\n \\"nextPlan\\": \\"planB\\",\\n \\"nextTime\\": \\"1700\\",\\n \\"oncePlan\\": \\"planC\\",\\n \\"onceTime\\": \\"1500\\",\\n \\"operatorName\\": \\"userA\\\\n\\",\\n \\"timezone\\": \\"UTC+8\\"\\n },\\n \\"status\\": \\"ON\\\\n\\",\\n \\"tag\\": \\"abc\\",\\n \\"tenantId\\": \\"478403690625249\\",\\n \\"type\\": \\"FUXI_ONLINE\\",\\n \\"version\\": \\"1\\"\\n }\\n ],\\n \\"tag\\": \\"abc\\",\\n \\"tenantId\\": \\"478403690625249\\",\\n \\"type\\": \\"FUXI_ONLINE\\",\\n \\"version\\": \\"1\\",\\n \\"data\\": {\\n \\"id\\": \\"0\\",\\n \\"name\\": \\"quota_a\\",\\n \\"nickName\\": \\"quota_nickname\\",\\n \\"type\\": \\"FUXI_ONLINE\\",\\n \\"status\\": \\"ON\\",\\n \\"saleTag\\": {\\n \\"resourceIds\\": [\\n \\"\\\\\\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\\\\\\"\\\\n\\"\\n ],\\n \\"resourceType\\": \\"\\\\\\"quota\\\\\\"\\\\n\\"\\n },\\n \\"tenantId\\": \\"478403690625249\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"parentId\\": \\"null\\",\\n \\"cluster\\": \\"AT-120N\\",\\n \\"version\\": \\"1\\",\\n \\"billingPolicy\\": {\\n \\"odpsSpecCode\\": \\"OdpsStandard\\",\\n \\"orderId\\": \\"45245678\\",\\n \\"billingMethod\\": \\"subscription\\"\\n },\\n \\"scheduleInfo\\": {\\n \\"currPlan\\": \\"planA\\",\\n \\"currTime\\": \\"0800\\",\\n \\"nextPlan\\": \\"planB\\",\\n \\"nextTime\\": \\"1700\\",\\n \\"oncePlan\\": \\"planC\\",\\n \\"onceTime\\": \\"1500\\",\\n \\"operatorName\\": \\"userA\\",\\n \\"timezone\\": \\"UTC+8\\"\\n },\\n \\"parameter\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"tag\\": \\"abc\\",\\n \\"createTime\\": 0,\\n \\"creatorId\\": \\"672863518\\",\\n \\"subQuotaInfoList\\": [\\n {\\n \\"id\\": \\"1000048\\",\\n \\"name\\": \\"subquotaA\\",\\n \\"saleTag\\": {\\n \\"resourceIds\\": [\\n \\"\\\\\\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\\\\\\"\\\\n\\"\\n ],\\n \\"resourceType\\": \\"\\\\\\"quota\\\\\\"\\\\n\\"\\n },\\n \\"nickName\\": \\"subquotaA\\",\\n \\"type\\": \\"FUXI_ONLINE\\",\\n \\"status\\": \\"ON\\",\\n \\"tenantId\\": \\"478403690625249\\\\n\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"parentId\\": \\"0\\",\\n \\"cluster\\": \\"AT-120N\\\\n\\",\\n \\"version\\": \\"1\\",\\n \\"billingPolicy\\": {\\n \\"odpsSpecCode\\": \\"OdpsStandard\\",\\n \\"orderId\\": \\"45245678\\",\\n \\"billingMethod\\": \\"subscription\\"\\n },\\n \\"scheduleInfo\\": {\\n \\"currPlan\\": \\"planA\\",\\n \\"currTime\\": \\"0800\\",\\n \\"nextPlan\\": \\"planB\\",\\n \\"nextTime\\": \\"1700\\",\\n \\"oncePlan\\": \\"planC\\",\\n \\"onceTime\\": \\"1500\\",\\n \\"operatorName\\": \\"userA\\",\\n \\"timezone\\": \\"UTC+8\\"\\n },\\n \\"parameter\\": {\\n \\"enablePriority\\": true,\\n \\"forceReservedMin\\": true,\\n \\"maxCU\\": 50,\\n \\"minCU\\": 50,\\n \\"schedulerType\\": \\"Fifo/Fair\\\\n\\",\\n \\"singleJobCULimit\\": 10,\\n \\"elasticReservedCU\\": 50\\n },\\n \\"tag\\": \\"abc\\",\\n \\"createTime\\": 0,\\n \\"creatorId\\": \\"672863518\\"\\n }\\n ]\\n }\\n}","type":"json"}]', 'title' => '获取指定一级Quota组信息', 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '800', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetQuota'], + ], + ], 'ramActions' => [ [ 'operationType' => 'get', @@ -6974,12 +4073,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -6987,13 +4081,8 @@ ], 'GetQuotaPlan' => [ 'path' => '/api/v1/quotas/{nickname}/plans/{planName}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7003,51 +4092,29 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '142707', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota名称', - 'type' => 'string', - 'required' => true, - 'example' => 'quotaA', - ], + 'schema' => ['description' => 'Quota名称', 'type' => 'string', 'required' => true, 'example' => 'quotaA'], ], [ 'name' => 'planName', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota计划名称', - 'type' => 'string', - 'required' => true, - 'example' => 'planA', - ], + 'schema' => ['description' => 'Quota计划名称', 'type' => 'string', 'required' => true, 'example' => 'planA'], ], [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户id。', - 'type' => 'string', - 'required' => false, - 'example' => '483212237127906', - ], + 'schema' => ['description' => '租户id。', 'type' => 'string', 'required' => false, 'example' => '483212237127906'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域id。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], + 'schema' => ['description' => '地域id。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], ], ], 'responses' => [ @@ -7057,165 +4124,55 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0be3e0aa16667684362147582e038f', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0be3e0aa16667684362147582e038f'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'quota计划名称', - 'type' => 'string', - 'example' => 'planA', - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2022-05-16T06:07:45Z', - ], + 'name' => ['description' => 'quota计划名称', 'type' => 'string', 'example' => 'planA'], + 'createTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2022-05-16T06:07:45Z'], 'quota' => [ 'description' => 'quota详情', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => 'quota ID', - 'type' => 'string', - 'example' => '0', - ], - 'name' => [ - 'description' => 'quota名称', - 'type' => 'string', - 'example' => 'quota_a'."\n", - ], - 'nickName' => [ - 'description' => 'quota别名', - 'type' => 'string', - 'example' => 'quota_nickname', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => 'null', - ], - 'cluster' => [ - 'description' => '集群id。', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本号。', - 'type' => 'string', - 'example' => '1', - ], + 'id' => ['description' => 'quota ID', 'type' => 'string', 'example' => '0'], + 'name' => ['description' => 'quota名称', 'type' => 'string', 'example' => 'quota_a'."\n"], + 'nickName' => ['description' => 'quota别名', 'type' => 'string', 'example' => 'quota_nickname'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-beijing'], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => 'null'], + 'cluster' => ['description' => '集群id。', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本号。', 'type' => 'string', 'example' => '1'], 'billingPolicy' => [ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard', - ], - 'orderId' => [ - 'description' => '订单号。', - 'type' => 'string', - 'example' => '45245678', - ], - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示是预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription', - ], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard'], + 'orderId' => ['description' => '订单号。', 'type' => 'string', 'example' => '45245678'], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示是预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'], ], ], 'scheduleInfo' => [ 'description' => '分时信息', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota plan', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作者名称。', - 'type' => 'string', - 'example' => 'userA', - ], - ], - ], - 'parameter' => [ - 'description' => 'quota的描述信息', - 'type' => 'object', - ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z'."\n", - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota plan', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作者名称。', 'type' => 'string', 'example' => 'userA'], + ], + ], + 'parameter' => ['description' => 'quota的描述信息', 'type' => 'object'], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'createTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'."\n"], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'], 'subQuotaInfoList' => [ 'description' => '二级quota信息', 'type' => 'array', @@ -7223,142 +4180,44 @@ 'description' => '二级quota信息', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '二级quota ID', - 'type' => 'string', - 'example' => '1000048', - ], - 'name' => [ - 'description' => '二级quota名称', - 'type' => 'string', - 'example' => 'subquotaA', - ], - 'nickName' => [ - 'description' => '二级quota别名', - 'type' => 'string', - 'example' => 'subquotaA', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => '0', - ], - 'cluster' => [ - 'description' => '集群id', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本号', - 'type' => 'string', - 'example' => '1', - ], + 'id' => ['description' => '二级quota ID', 'type' => 'string', 'example' => '1000048'], + 'name' => ['description' => '二级quota名称', 'type' => 'string', 'example' => 'subquotaA'], + 'nickName' => ['description' => '二级quota别名', 'type' => 'string', 'example' => 'subquotaA'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-beijing'], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => '0'], + 'cluster' => ['description' => '集群id', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本号', 'type' => 'string', 'example' => '1'], 'billingPolicy' => [ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard', - ], - 'orderId' => [ - 'description' => '订单id。', - 'type' => 'string', - 'example' => '45245678', - ], - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示是预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription', - ], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard'], + 'orderId' => ['description' => '订单id。', 'type' => 'string', 'example' => '45245678'], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示是预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'], ], ], 'scheduleInfo' => [ 'description' => '分时信息。', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '计划将要生效的quota计划', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作者名称。', - 'type' => 'string', - 'example' => 'userA', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '计划将要生效的quota计划', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作者名称。', 'type' => 'string', 'example' => 'userA'], ], ], - 'parameter' => [ - 'description' => 'quota的描述信息', - 'type' => 'object', - ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'createTime' => [ - 'description' => '资源创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z'."\n", - ], - 'creatorId' => [ - 'description' => '创建者id。', - 'type' => 'string', - 'example' => '672863518', - ], + 'parameter' => ['description' => 'quota的描述信息', 'type' => 'object'], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'createTime' => ['description' => '资源创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'."\n"], + 'creatorId' => ['description' => '创建者id。', 'type' => 'string', 'example' => '672863518'], ], ], ], @@ -7386,12 +4245,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -7399,66 +4253,37 @@ ], 'GetQuotaSchedule' => [ 'path' => '/api/v1/quotas/{nickname}/schedule', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'tenantRelevance' => 'tenant', - ], + 'systemTags' => ['operationType' => 'get', 'tenantRelevance' => 'tenant'], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota名称。', - 'type' => 'string', - 'required' => true, - 'example' => '%E9%BB%98%E8%AE%A4%E9%A2%84%E4%BB%98%E8%B4%B9Quota_p'."\n" - ."\n" - .'#中文名称需要经过utf8 urlencode编码转义', - ], + 'schema' => ['description' => 'Quota名称。', 'type' => 'string', 'required' => true, 'example' => '%E9%BB%98%E8%AE%A4%E9%A2%84%E4%BB%98%E8%B4%B9Quota_p'."\n" + ."\n" + .'# Chinese name needs to be UTF-8 URL-encoded'], ], [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户ID。', - 'type' => 'string', - 'required' => false, - 'example' => '478403690625249', - ], + 'schema' => ['description' => '租户ID。', 'type' => 'string', 'required' => false, 'example' => '478403690625249'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], ], [ 'name' => 'displayTimezone', 'in' => 'query', - 'schema' => [ - 'description' => '显示时区。', - 'type' => 'string', - 'required' => false, - 'example' => 'UTC+8', - 'default' => 'UTC+8', - ], + 'schema' => ['description' => '显示时区。', 'type' => 'string', 'required' => false, 'example' => 'UTC+8', 'default' => 'UTC+8'], ], ], 'responses' => [ @@ -7468,30 +4293,13 @@ 'description' => 'PopResult>', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc059b716696296266308790e0d3e', - ], - 'httpCode' => [ - 'description' => '业务状态码。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码或空值。'."\n" - .'- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误描述信息。', - 'type' => 'string', - 'example' => '异常信息', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc059b716696296266308790e0d3e'], + 'httpCode' => ['description' => '业务状态码。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码或空值。'."\n" + .'- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => 'success'], + 'errorMsg' => ['description' => '错误描述信息。', 'type' => 'string', 'example' => 'Exception information'], 'data' => [ 'description' => '返回数据。', 'type' => 'array', @@ -7499,47 +4307,19 @@ 'description' => '返回数据。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => 'quota计划id。', - 'type' => 'string', - 'example' => '63', - ], - 'type' => [ - 'description' => '类型。', - 'type' => 'string', - 'example' => 'once', - ], - 'plan' => [ - 'description' => '计划名称。', - 'type' => 'string', - 'example' => 'planA', - ], + 'id' => ['description' => 'quota计划id。', 'type' => 'string', 'example' => '63'], + 'type' => ['description' => '类型。', 'type' => 'string', 'example' => 'once'], + 'plan' => ['description' => '计划名称。', 'type' => 'string', 'example' => 'planA'], 'condition' => [ 'description' => '条件值。', 'type' => 'object', 'properties' => [ - 'at' => [ - 'description' => '生效时间。', - 'type' => 'string', - 'example' => '0900', - ], - 'after' => [ - 'description' => '生效开始时间。', - 'type' => 'string', - 'example' => '2022-04-25T04:23:04Z'."\n", - ], + 'at' => ['description' => '生效时间。', 'type' => 'string', 'example' => '0900'], + 'after' => ['description' => '生效开始时间。', 'type' => 'string', 'example' => '2022-04-25T04:23:04Z'."\n"], ], ], - 'operator' => [ - 'description' => '操作者名称。', - 'type' => 'string', - 'example' => 'userA', - ], - 'timezone' => [ - 'description' => '时区。', - 'type' => 'string', - 'example' => 'UTC+8', - ], + 'operator' => ['description' => '操作者名称。', 'type' => 'string', 'example' => 'userA'], + 'timezone' => ['description' => '时区。', 'type' => 'string', 'example' => 'UTC+8'], ], ], ], @@ -7551,10 +4331,15 @@ 'enable' => false, 'eventNames' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc059b716696296266308790e0d3e\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"success\\",\\n \\"errorMsg\\": \\"异常信息\\",\\n \\"data\\": [\\n {\\n \\"id\\": \\"63\\",\\n \\"type\\": \\"once\\",\\n \\"plan\\": \\"planA\\",\\n \\"condition\\": {\\n \\"at\\": \\"0900\\",\\n \\"after\\": \\"2022-04-25T04:23:04Z\\\\n\\"\\n },\\n \\"operator\\": \\"userA\\",\\n \\"timezone\\": \\"UTC+8\\"\\n }\\n ]\\n}","type":"json"}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc059b716696296266308790e0d3e\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"success\\",\\n \\"errorMsg\\": \\"Exception information\\",\\n \\"data\\": [\\n {\\n \\"id\\": \\"63\\",\\n \\"type\\": \\"once\\",\\n \\"plan\\": \\"planA\\",\\n \\"condition\\": {\\n \\"at\\": \\"0900\\",\\n \\"after\\": \\"2022-04-25T04:23:04Z\\\\n\\"\\n },\\n \\"operator\\": \\"userA\\",\\n \\"timezone\\": \\"UTC+8\\"\\n }\\n ]\\n}","type":"json"}]', 'title' => '获取Quota时间计划信息', 'summary' => '获取Quota时间计划信息。', 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetQuotaSchedule'], + ], + ], 'ramActions' => [ [ 'operationType' => 'get', @@ -7563,12 +4348,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -7576,13 +4356,8 @@ ], 'GetQuotaUsage' => [ 'path' => '/api/v1/quotas/{nickname}/usage', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7592,89 +4367,49 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '124741', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_quota_p', - ], + 'schema' => ['description' => '一级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_quota_p'], ], [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择租户管理>租户属性查看。', - 'type' => 'string', - 'required' => false, - 'example' => '478403690625249', - ], + 'schema' => ['description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择租户管理>租户属性查看。', 'type' => 'string', 'required' => false, 'example' => '478403690625249'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-chengdu', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-chengdu'], ], [ 'name' => 'from', 'in' => 'query', - 'schema' => [ - 'description' => '查询开始时间点。该时间是指写入日志数据时指定的日志时间。'."\n" - ."\n" - .'- 请求参数**from**和**to**定义的时间区间遵循左闭右开原则,即该时间区间包括区间开始时间点,但不包括区间结束时间点。如果**from**和**to**的值相同,则为无效区间,函数直接返回错误。'."\n" - .'- Unix时间戳格式,表示从1970-1-1 00:00:00 UTC计算起的秒数。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1669081045', - ], + 'schema' => ['description' => '查询开始时间点。该时间是指写入日志数据时指定的日志时间。'."\n" + ."\n" + .'- 请求参数**from**和**to**定义的时间区间遵循左闭右开原则,即该时间区间包括区间开始时间点,但不包括区间结束时间点。如果**from**和**to**的值相同,则为无效区间,函数直接返回错误。'."\n" + .'- Unix时间戳格式,表示从1970-1-1 00:00:00 UTC计算起的秒数。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1669081045'], ], [ 'name' => 'to', 'in' => 'query', - 'schema' => [ - 'description' => '查询结束时间点。该时间是指写入日志数据时指定的日志时间。'."\n" - ."\n" - .'- 请求参数**from**和**to**定义的时间区间遵循左闭右开原则,即该时间区间包括区间开始时间点,但不包括区间结束时间点。如果**from**和**to**的值相同,则为无效区间,函数直接返回错误。'."\n" - .'- Unix时间戳格式,表示从1970-1-1 00:00:00 UTC计算起的秒数。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1669360870', - ], + 'schema' => ['description' => '查询结束时间点。该时间是指写入日志数据时指定的日志时间。'."\n" + ."\n" + .'- 请求参数**from**和**to**定义的时间区间遵循左闭右开原则,即该时间区间包括区间开始时间点,但不包括区间结束时间点。如果**from**和**to**的值相同,则为无效区间,函数直接返回错误。'."\n" + .'- Unix时间戳格式,表示从1970-1-1 00:00:00 UTC计算起的秒数。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1669360870'], ], [ 'name' => 'subQuotaNickname', 'in' => 'query', - 'schema' => [ - 'description' => '二级Quota昵称。', - 'type' => 'string', - 'required' => false, - 'example' => 'ot_tunnel_quota', - ], + 'schema' => ['description' => '二级Quota昵称。', 'type' => 'string', 'required' => false, 'example' => 'ot_tunnel_quota'], ], [ 'name' => 'aggMethod', 'in' => 'query', - 'schema' => [ - 'description' => '聚合算法。当获取计算Quota计算资源消耗数据时,为优化页面体验,每个指标至多支持展示60个点,因此当时间范围大于1h时,图表默认使用区间范围内(所选时间范围的分钟数/60)的平均值聚合数据,您可以根据自身需求更改聚合算法。', - 'type' => 'string', - 'required' => false, - 'example' => 'max', - 'default' => 'avg', - ], + 'schema' => ['description' => '聚合算法。当获取计算Quota计算资源消耗数据时,为优化页面体验,每个指标至多支持展示60个点,因此当时间范围大于1h时,图表默认使用区间范围内(所选时间范围的分钟数/60)的平均值聚合数据,您可以根据自身需求更改聚合算法。', 'type' => 'string', 'required' => false, 'example' => 'max', 'default' => 'avg'], ], [ 'name' => 'productId', @@ -7697,22 +4432,17 @@ 'schema' => [ 'description' => '图表类型。', 'type' => 'array', - 'items' => [ - 'description' => '图表类型。'."\n" - ."\n" - .'当productId为ODPS时支持参数:'."\n" - .'- cpu:CPU资源;'."\n" - .'- memory:内存资源;'."\n" - .'不填表示两个指标均需返回。'."\n" - ."\n" - .'当productId为TUNNEL时必须填写参数,枚举值:'."\n" - .'- request:请求并发数;'."\n" - .'- throughput:吞吐量;'."\n" - .'- error:错误请求数。', - 'type' => 'string', - 'required' => false, - 'example' => 'cpu', - ], + 'items' => ['description' => '图表类型。'."\n" + ."\n" + .'当productId为ODPS时支持参数:'."\n" + .'- cpu:CPU资源;'."\n" + .'- memory:内存资源;'."\n" + .'不填表示两个指标均需返回。'."\n" + ."\n" + .'当productId为TUNNEL时必须填写参数,枚举值:'."\n" + .'- request:请求并发数;'."\n" + .'- throughput:吞吐量;'."\n" + .'- error:错误请求数。', 'type' => 'string', 'required' => false, 'example' => 'cpu'], 'required' => false, ], ], @@ -7723,16 +4453,11 @@ 'schema' => [ 'description' => '数据指标字段。', 'type' => 'array', - 'items' => [ - 'description' => '数据指标字段。'."\n" - ."\n" - .'当productId为ODPS时无需填写。'."\n" - ."\n" - .'当productId为TUNNEL时支持填入project名称,此时返回的结果是项目维度的信息。', - 'type' => 'string', - 'required' => false, - 'example' => 'your_project_name', - ], + 'items' => ['description' => '数据指标字段。'."\n" + ."\n" + .'当productId为ODPS时无需填写。'."\n" + ."\n" + .'当productId为TUNNEL时支持填入project名称,此时返回的结果是项目维度的信息。', 'type' => 'string', 'required' => false, 'example' => 'your_project_name'], 'required' => false, ], ], @@ -7744,49 +4469,28 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0b87b7a416652014358483492eea0b', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误描述信息。', - 'type' => 'string', - 'example' => 'This object does not exist.', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b87b7a416652014358483492eea0b'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误描述信息。', 'type' => 'string', 'example' => 'This object does not exist.'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', 'properties' => [ - 'metrics' => [ - 'description' => '指标结果。', - 'type' => 'object', - 'example' => '"timestamps": [1668046140000, 1668065220000], //毫秒'."\n" - ."\n" - .' "project1#upload#request": [10, 20],'."\n" - .' "project1#download#request": [20, 30],'."\n" - ."\n" - .' "project1#upload#throughput": [50, 50],'."\n" - .' "project1#download#throughput": [60, 70],'."\n" - ."\n" - .' "pro2#errorNum": [5, 10]', - ], + 'metrics' => ['description' => '指标结果。', 'type' => 'object', 'example' => '"timestamps": [1668046140000, 1668065220000], //milliseconds'."\n" + ."\n" + .'    "project1#upload#request": [10, 20],'."\n" + .'    "project1#download#request": [20, 30],'."\n" + ."\n" + .'    "project1#upload#throughput": [50, 50],'."\n" + .'    "project1#download#throughput": [60, 70],'."\n" + ."\n" + .'    "pro2#errorNum": [5, 10]'], 'plot' => [ 'description' => '图表信息。', 'type' => 'array', @@ -7794,31 +4498,19 @@ 'description' => '图表信息。', 'type' => 'object', 'properties' => [ - 'title' => [ - 'description' => '图表标题。', - 'type' => 'string', - 'example' => '项目请求并发数', - ], - 'type' => [ - 'description' => '图表类型。', - 'type' => 'string', - 'example' => 'request', - ], + 'title' => ['description' => '图表标题。', 'type' => 'string', 'example' => 'Project request concurrency'], + 'type' => ['description' => '图表类型。', 'type' => 'string', 'example' => 'request'], 'yAxis' => [ 'description' => '数据指标字段。', 'type' => 'array', - 'items' => [ - 'description' => '数据指标字段。'."\n" - ."\n" - .'当productId为ODPS时:'."\n" - .'cpu具体类型'."\n" - .'memory具体类型'."\n" - ."\n" - .'当productId为TUNNEL且填入project名称时:'."\n" - .'project#operation#type', - 'type' => 'string', - 'example' => 'project1#download#request', - ], + 'items' => ['description' => '数据指标字段。'."\n" + ."\n" + .'当productId为ODPS时:'."\n" + .'cpu具体类型'."\n" + .'memory具体类型'."\n" + ."\n" + .'当productId为TUNNEL且填入project名称时:'."\n" + .'project#operation#type', 'type' => 'string', 'example' => 'project1#download#request'], ], ], ], @@ -7829,29 +4521,13 @@ ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7a416652014358483492eea0b\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"This object does not exist.\\",\\n \\"data\\": {\\n \\"metrics\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"plot\\": [\\n {\\n \\"title\\": \\"项目请求并发数\\",\\n \\"type\\": \\"request\\",\\n \\"yAxis\\": [\\n \\"project1#download#request\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7a416652014358483492eea0b\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"This object does not exist.\\",\\n \\"data\\": {\\n \\"metrics\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"plot\\": [\\n {\\n \\"title\\": \\"Project request concurrency\\",\\n \\"type\\": \\"request\\",\\n \\"yAxis\\": [\\n \\"project1#download#request\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', 'title' => '获取Quota资源消耗信息', 'summary' => '获取Quota资源消耗信息', - 'changeSet' => [ - [ - 'createdAt' => '2022-11-28T13:46:34.000Z', - 'description' => '请求参数发生变更、响应参数发生变更', - ], - [ - 'createdAt' => '2022-10-13T14:34:44.000Z', - 'description' => '响应参数发生变更', - ], - [ - 'createdAt' => '2022-10-13T14:05:36.000Z', - 'description' => '响应参数发生变更', - ], - [ - 'createdAt' => '2022-08-22T06:32:05.000Z', - 'description' => '响应参数发生变更', - ], - [ - 'createdAt' => '2022-08-18T12:45:00.000Z', - 'description' => 'OpenAPI 下线', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetQuotaUsage'], ], ], 'ramActions' => [ @@ -7862,12 +4538,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#nickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#nickName}'], ], ], ], @@ -7875,13 +4546,8 @@ ], 'GetRoleAcl' => [ 'path' => '/api/v1/projects/{projectName}/roles/{roleName}/roleAcl', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7891,30 +4557,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '153387', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', - ], + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], ], [ 'name' => 'roleName', 'in' => 'path', - 'schema' => [ - 'description' => '角色名称', - 'type' => 'string', - 'required' => true, - 'example' => 'roleA', - ], + 'schema' => ['description' => '角色名称', 'type' => 'string', 'required' => true, 'example' => 'roleA'], ], ], 'responses' => [ @@ -7924,27 +4578,10 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '0a06dc0916696898838762018e9564', - ], - 'httpCode' => [ - 'description' => '返回的HTTP状态码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '040002', - ], - 'errorMsg' => [ - 'description' => '错误描述信息。', - 'type' => 'string', - 'example' => '异常信息', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '0a06dc0916696898838762018e9564'], + 'httpCode' => ['description' => '返回的HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码', 'type' => 'string', 'example' => '040002'], + 'errorMsg' => ['description' => '错误描述信息。', 'type' => 'string', 'example' => 'Exception information'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -7956,24 +4593,12 @@ 'description' => '表', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '表名称', - 'type' => 'string', - 'example' => 'tableA', - ], - 'schemaName' => [ - 'description' => 'Schema名称。', - 'type' => 'string', - 'example' => 'default', - ], + 'name' => ['description' => '表名称', 'type' => 'string', 'example' => 'tableA'], + 'schemaName' => ['description' => 'Schema名称。', 'type' => 'string', 'example' => 'default'], 'actions' => [ 'description' => '表操作', 'type' => 'array', - 'items' => [ - 'description' => '表操作', - 'type' => 'string', - 'example' => 'describe', - ], + 'items' => ['description' => '表操作', 'type' => 'string', 'example' => 'describe'], ], ], ], @@ -7985,24 +4610,12 @@ 'description' => '资源', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '资源名称。', - 'type' => 'string', - 'example' => 'resourceA', - ], - 'schemaName' => [ - 'description' => 'Schema名称。', - 'type' => 'string', - 'example' => 'default', - ], + 'name' => ['description' => '资源名称。', 'type' => 'string', 'example' => 'resourceA'], + 'schemaName' => ['description' => 'Schema名称。', 'type' => 'string', 'example' => 'default'], 'actions' => [ 'description' => '资源操作', 'type' => 'array', - 'items' => [ - 'description' => '资源操作', - 'type' => 'string', - 'example' => 'read', - ], + 'items' => ['description' => '资源操作', 'type' => 'string', 'example' => 'read'], ], ], ], @@ -8014,24 +4627,12 @@ 'description' => '函数', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '函数名称。', - 'type' => 'string', - 'example' => 'functionA', - ], - 'schemaName' => [ - 'description' => 'Schema名称。', - 'type' => 'string', - 'example' => 'default', - ], + 'name' => ['description' => '函数名称。', 'type' => 'string', 'example' => 'functionA'], + 'schemaName' => ['description' => 'Schema名称。', 'type' => 'string', 'example' => 'default'], 'actions' => [ 'description' => '函数操作', 'type' => 'array', - 'items' => [ - 'description' => '函数操作', - 'type' => 'string', - 'example' => 'read', - ], + 'items' => ['description' => '函数操作', 'type' => 'string', 'example' => 'read'], ], ], ], @@ -8043,24 +4644,12 @@ 'description' => '项目', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'maxcompute项目名称', - 'type' => 'string', - 'example' => 'projectA', - ], - 'schemaName' => [ - 'description' => 'Schema名称。', - 'type' => 'string', - 'example' => 'default', - ], + 'name' => ['description' => 'maxcompute项目名称', 'type' => 'string', 'example' => 'projectA'], + 'schemaName' => ['description' => 'Schema名称。', 'type' => 'string', 'example' => 'default'], 'actions' => [ 'description' => '项目操作', 'type' => 'array', - 'items' => [ - 'description' => '项目操作', - 'type' => 'string', - 'example' => 'list', - ], + 'items' => ['description' => '项目操作', 'type' => 'string', 'example' => 'list'], ], ], ], @@ -8072,24 +4661,12 @@ 'description' => '实例', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '实例名称', - 'type' => 'string', - 'example' => 'instanceA', - ], - 'schemaName' => [ - 'description' => 'Schema名称。', - 'type' => 'string', - 'example' => 'default', - ], + 'name' => ['description' => '实例名称', 'type' => 'string', 'example' => 'instanceA'], + 'schemaName' => ['description' => 'Schema名称。', 'type' => 'string', 'example' => 'default'], 'actions' => [ 'description' => '实例操作', 'type' => 'array', - 'items' => [ - 'description' => '实例操作', - 'type' => 'string', - 'example' => 'read', - ], + 'items' => ['description' => '实例操作', 'type' => 'string', 'example' => 'read'], ], ], ], @@ -8101,24 +4678,12 @@ 'description' => 'Package', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'package名称', - 'type' => 'string', - 'example' => 'packageA', - ], - 'schemaName' => [ - 'description' => 'Schema名称。', - 'type' => 'string', - 'example' => 'default', - ], + 'name' => ['description' => 'package名称', 'type' => 'string', 'example' => 'packageA'], + 'schemaName' => ['description' => 'Schema名称。', 'type' => 'string', 'example' => 'default'], 'actions' => [ 'description' => 'package操作', 'type' => 'array', - 'items' => [ - 'description' => 'package操作', - 'type' => 'string', - 'example' => 'read', - ], + 'items' => ['description' => 'package操作', 'type' => 'string', 'example' => 'read'], ], ], ], @@ -8133,17 +4698,13 @@ 'enable' => false, 'eventNames' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dc0916696898838762018e9564\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"040002\\",\\n \\"errorMsg\\": \\"异常信息\\",\\n \\"data\\": {\\n \\"table\\": [\\n {\\n \\"name\\": \\"tableA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"describe\\"\\n ]\\n }\\n ],\\n \\"resource\\": [\\n {\\n \\"name\\": \\"resourceA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ],\\n \\"function\\": [\\n {\\n \\"name\\": \\"functionA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ],\\n \\"project\\": [\\n {\\n \\"name\\": \\"projectA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"list\\"\\n ]\\n }\\n ],\\n \\"instance\\": [\\n {\\n \\"name\\": \\"instanceA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ],\\n \\"package\\": [\\n {\\n \\"name\\": \\"packageA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dc0916696898838762018e9564\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"040002\\",\\n \\"errorMsg\\": \\"Exception information\\",\\n \\"data\\": {\\n \\"table\\": [\\n {\\n \\"name\\": \\"tableA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"describe\\"\\n ]\\n }\\n ],\\n \\"resource\\": [\\n {\\n \\"name\\": \\"resourceA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ],\\n \\"function\\": [\\n {\\n \\"name\\": \\"functionA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ],\\n \\"project\\": [\\n {\\n \\"name\\": \\"projectA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"list\\"\\n ]\\n }\\n ],\\n \\"instance\\": [\\n {\\n \\"name\\": \\"instanceA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ],\\n \\"package\\": [\\n {\\n \\"name\\": \\"packageA\\",\\n \\"schemaName\\": \\"default\\",\\n \\"actions\\": [\\n \\"read\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', 'title' => '获取项目级角色ACL授权信息', 'summary' => '获取项目级角色ACL授权信息。', - 'changeSet' => [ - [ - 'createdAt' => '2023-12-10T11:23:54.000Z', - 'description' => '响应参数发生变更', - ], - [ - 'createdAt' => '2022-09-20T11:53:08.000Z', - 'description' => 'OpenAPI 下线', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetRoleAcl'], ], ], 'ramActions' => [ @@ -8154,12 +4715,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], @@ -8167,13 +4723,8 @@ ], 'GetRoleAclOnObject' => [ 'path' => '/api/v1/projects/{projectName}/roles/{roleName}/acl', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -8183,31 +4734,19 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '144122', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', - ], + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], ], [ 'name' => 'roleName', 'in' => 'path', - 'schema' => [ - 'description' => '角色名称', - 'type' => 'string', - 'required' => true, - 'example' => 'roleA', - ], + 'schema' => ['description' => '角色名称', 'type' => 'string', 'required' => true, 'example' => 'roleA'], ], [ 'name' => 'objectType', @@ -8216,24 +4755,14 @@ 'description' => '对象类型', 'type' => 'string', 'required' => true, - 'enumValueTitles' => [ - 'resource' => 'resource', - 'function' => 'function', - ' package' => ' package', - 'table' => 'table', - ], + 'enumValueTitles' => ['resource' => 'resource', 'function' => 'function', ' package' => ' package', 'table' => 'table'], 'example' => 'table', ], ], [ 'name' => 'objectName', 'in' => 'query', - 'schema' => [ - 'description' => '对象名称', - 'type' => 'string', - 'required' => true, - 'example' => 'tableA', - ], + 'schema' => ['description' => '对象名称', 'type' => 'string', 'required' => true, 'example' => 'tableA'], ], ], 'responses' => [ @@ -8243,11 +4772,7 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '0bc1366d16686529650188023ef87f', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '0bc1366d16686529650188023ef87f'], 'data' => [ 'description' => '返回数据', 'type' => 'object', @@ -8255,11 +4780,7 @@ 'actions' => [ 'description' => '对象操作', 'type' => 'array', - 'items' => [ - 'description' => '对象操作', - 'type' => 'string', - 'example' => 'describe', - ], + 'items' => ['description' => '对象操作', 'type' => 'string', 'example' => 'describe'], ], ], ], @@ -8283,12 +4804,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], @@ -8296,13 +4812,8 @@ ], 'GetRolePolicy' => [ 'path' => '/api/v1/projects/{projectName}/roles/{roleName}/policy', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -8313,30 +4824,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '144119', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', - ], + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], ], [ 'name' => 'roleName', 'in' => 'path', - 'schema' => [ - 'description' => '角色名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'roleA', - ], + 'schema' => ['description' => '角色名称。', 'type' => 'string', 'required' => true, 'example' => 'roleA'], ], ], 'responses' => [ @@ -8346,29 +4845,21 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc1eeed16675342848904412e08dd', - ], - 'data' => [ - 'description' => '返回数据。', - 'type' => 'string', - 'example' => '{'."\n" - .' "Statement": ['."\n" - .' {'."\n" - .' "Action": ['."\n" - .' "odps:*"'."\n" - .' ],'."\n" - .' "Effect": "Allow",'."\n" - .' "Resource": ['."\n" - .' "acs:odps:*:projects/{projectname}/authorization/packages"'."\n" - .' ]'."\n" - .' }'."\n" - .' ],'."\n" - .' "Version": "1"'."\n" - .'}'."\n", - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc1eeed16675342848904412e08dd'], + 'data' => ['description' => '返回数据。', 'type' => 'string', 'example' => '{'."\n" + .' "Statement": ['."\n" + .' {'."\n" + .' "Action": ['."\n" + .' "odps:*"'."\n" + .' ],'."\n" + .' "Effect": "Allow",'."\n" + .' "Resource": ['."\n" + .' "acs:odps:*:projects/{projectname}/authorization/packages"'."\n" + .' ]'."\n" + .' }'."\n" + .' ],'."\n" + .' "Version": "1"'."\n" + .'}'."\n"], ], ], ], @@ -8389,12 +4880,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], @@ -8402,50 +4888,31 @@ ], 'GetRunningJobs' => [ 'path' => '/api/v1/jobs/runningJobs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - ], + 'systemTags' => ['operationType' => 'list'], 'parameters' => [ [ 'name' => 'from', 'in' => 'query', - 'schema' => [ - 'description' => '查询开始时间点。该时间是指作业的提交时间。'."\n" - ."\n" - .'- 请求参数**from**和**to**定义的时间区间遵循双闭原则,即该时间区间既包括区间开始时间点也包括区间结束时间点。如果**from**和**to**的值相同,则为无效区间,函数直接返回空。'."\n" - .'- Unix时间戳格式,表示从1970-1-1 00:00:00 UTC计算起的秒数。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1683785928', - ], + 'schema' => ['description' => '查询开始时间点。该时间是指作业的提交时间。'."\n" + ."\n" + .'- 请求参数**from**和**to**定义的时间区间遵循双闭原则,即该时间区间既包括区间开始时间点也包括区间结束时间点。如果**from**和**to**的值相同,则为无效区间,函数直接返回空。'."\n" + .'- Unix时间戳格式,表示从1970-1-1 00:00:00 UTC计算起的秒数。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1683785928'], ], [ 'name' => 'to', 'in' => 'query', - 'schema' => [ - 'description' => '查询结束时间点。该时间是指作业的提交时间。'."\n" - ."\n" - .'- 请求参数**from**和**to**定义的时间区间遵循双闭原则,即该时间区间既包括区间开始时间点也包括区间结束时间点。如果**from**和**to**的值相同,则为无效区间,函数直接返回空。'."\n" - .'- Unix时间戳格式,表示从1970-1-1 00:00:00 UTC计算起的秒数。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1683612946', - ], + 'schema' => ['description' => '查询结束时间点。该时间是指作业的提交时间。'."\n" + ."\n" + .'- 请求参数**from**和**to**定义的时间区间遵循双闭原则,即该时间区间既包括区间开始时间点也包括区间结束时间点。如果**from**和**to**的值相同,则为无效区间,函数直接返回空。'."\n" + .'- Unix时间戳格式,表示从1970-1-1 00:00:00 UTC计算起的秒数。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1683612946'], ], [ 'name' => 'jobOwnerList', @@ -8454,12 +4921,7 @@ 'schema' => [ 'description' => '作业的执行者列表。', 'type' => 'array', - 'items' => [ - 'description' => '作业的执行者列表。', - 'type' => 'string', - 'required' => false, - 'example' => 'ALIYUN$xxx@test.aliyunid.com', - ], + 'items' => ['description' => '作业的执行者列表。', 'type' => 'string', 'required' => false, 'example' => 'ALIYUN$xxx@test.aliyunid.com'], 'required' => false, ], ], @@ -8470,36 +4932,19 @@ 'schema' => [ 'description' => '作业使用的配额昵称列表。', 'type' => 'array', - 'items' => [ - 'description' => '作业使用的配额昵称列表。', - 'type' => 'string', - 'required' => false, - 'example' => 'my_quota', - ], + 'items' => ['description' => '作业使用的配额昵称列表。', 'type' => 'string', 'required' => false, 'example' => 'my_quota'], 'required' => false, ], ], [ 'name' => 'pageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '页码。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回数目,默认为10,最大为20。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '每页返回数目,默认为10,最大为20。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], ], 'responses' => [ @@ -8509,30 +4954,13 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc3b4ab16684833172127321e2c25', - ], - 'httpCode' => [ - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '业务错误码或空值。'."\n" - .'- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误描述信息。', - 'type' => 'string', - 'example' => '0A3B1FD2006A24C8D8BE65CDAC028298', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc3b4ab16684833172127321e2c25'], + 'httpCode' => ['description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '业务错误码或空值。'."\n" + .'- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => 'success'], + 'errorMsg' => ['description' => '错误描述信息。', 'type' => 'string', 'example' => '0A3B1FD2006A24C8D8BE65CDAC028298'], 'data' => [ 'description' => '返回结果。', 'type' => 'object', @@ -8544,77 +4972,21 @@ 'description' => '执行状态的作业。', 'type' => 'object', 'properties' => [ - 'instanceId' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'example' => '2023050206371544gomgtp3ljcr4', - ], - 'jobOwner' => [ - 'description' => '提交作业的账号。', - 'type' => 'string', - 'example' => 'ALIYUN$xxx@test.aliyunid.com', - ], - 'project' => [ - 'description' => 'MaxCompute项目名称。', - 'type' => 'string', - 'example' => 'project_20221021123044_981b', - ], - 'quotaNickname' => [ - 'description' => '作业使用的配额昵称。', - 'type' => 'string', - 'example' => 'my_quota', - ], - 'cuSnapshot' => [ - 'description' => '作业的cu快照占比。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.45', - ], - 'memorySnapshot' => [ - 'description' => '作业的内存快照占比。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.45', - ], - 'submittedAtTime' => [ - 'description' => '作业的提交时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1689746864', - ], - 'runningAtTime' => [ - 'description' => '作业的开始运行时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1689746864', - ], - 'progress' => [ - 'description' => '任务进度。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0', - ], + 'instanceId' => ['description' => '实例ID。'."\n", 'type' => 'string', 'example' => '2023050206371544gomgtp3ljcr4'], + 'jobOwner' => ['description' => '提交作业的账号。', 'type' => 'string', 'example' => 'ALIYUN$xxx@test.aliyunid.com'], + 'project' => ['description' => 'MaxCompute项目名称。', 'type' => 'string', 'example' => 'project_20221021123044_981b'], + 'quotaNickname' => ['description' => '作业使用的配额昵称。', 'type' => 'string', 'example' => 'my_quota'], + 'cuSnapshot' => ['description' => '作业的cu快照占比。', 'type' => 'number', 'format' => 'double', 'example' => '0.45'], + 'memorySnapshot' => ['description' => '作业的内存快照占比。', 'type' => 'number', 'format' => 'double', 'example' => '0.45'], + 'submittedAtTime' => ['description' => '作业的提交时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1689746864'], + 'runningAtTime' => ['description' => '作业的开始运行时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1689746864'], + 'progress' => ['description' => '任务进度。', 'type' => 'number', 'format' => 'double', 'example' => '0'], ], ], ], - 'totalCount' => [ - 'description' => '返回结果的总数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '64', - ], - 'pageNumber' => [ - 'description' => '当前页码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'pageSize' => [ - 'description' => '每页显示条数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], + 'totalCount' => ['description' => '返回结果的总数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '64'], + 'pageNumber' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'pageSize' => ['description' => '每页显示条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], ], ], ], @@ -8633,12 +5005,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -8646,13 +5013,8 @@ ], 'GetStorageAmountSummary' => [ 'path' => '/api/v1/observations/analysis/storage/amount', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -8662,40 +5024,23 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '221235', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], ], 'parameters' => [ [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择**租户管理**>**租户属性**查看。', - 'type' => 'string', - 'required' => false, - 'example' => '478403690625249', - ], + 'schema' => ['description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择**租户管理**>**租户属性**查看。', 'type' => 'string', 'required' => false, 'example' => '478403690625249'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai'], ], [ 'name' => 'date', 'in' => 'query', - 'schema' => [ - 'description' => '统计日期,以天为级别,时间参数填写为YYYYMMdd。', - 'type' => 'string', - 'required' => false, - 'example' => '20241205', - ], + 'schema' => ['description' => '统计日期,以天为级别,时间参数填写为YYYYMMdd。', 'type' => 'string', 'required' => false, 'example' => '20241205'], ], ], 'responses' => [ @@ -8705,45 +5050,19 @@ 'description' => 'PopResult>', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '688003E1-D1B4-5468-957E-2FFB3AC8D79B', - ], - 'httpCode' => [ - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '业务错误码或空值。'."\n" - .'- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'this quota is not exist.', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '688003E1-D1B4-5468-957E-2FFB3AC8D79B'], + 'httpCode' => ['description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '业务错误码或空值。'."\n" + .'- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => 'success'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'this quota is not exist.'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', 'properties' => [ - 'date' => [ - 'description' => '统计日期。', - 'type' => 'string', - 'example' => '20241205', - ], - 'timestamp' => [ - 'description' => '时间戳。当前API不会返回该数据。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '-', - ], + 'date' => ['description' => '统计日期。', 'type' => 'string', 'example' => '20241205'], + 'timestamp' => ['description' => '时间戳。当前API不会返回该数据。', 'type' => 'integer', 'format' => 'int64', 'example' => '-'], 'value' => [ 'description' => '存储指标。包括:'."\n" .'- projectAmount'."\n" @@ -8751,21 +5070,12 @@ .'- tableAmount'."\n" .'- partitionAmount', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'integer', - 'format' => 'int64', - 'description' => '存储数量值', - 'example' => '16', - ], + 'additionalProperties' => ['type' => 'integer', 'format' => 'int64', 'description' => '存储数量值', 'example' => '16'], ], 'unit' => [ 'description' => '存储指标单位。当前API不会返回该数据。', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '-', - 'description' => '当前API不会返回该数据。', - ], + 'additionalProperties' => ['type' => 'string', 'example' => '-', 'description' => '当前API不会返回该数据。'], ], ], ], @@ -8785,12 +5095,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -8798,13 +5103,8 @@ ], 'GetStorageSizeSummary' => [ 'path' => '/api/v1/observations/analysis/storage/size', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -8814,40 +5114,23 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '221233', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], ], 'parameters' => [ [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户id。', - 'type' => 'string', - 'required' => false, - 'example' => '483212237127906', - ], + 'schema' => ['description' => '租户id。', 'type' => 'string', 'required' => false, 'example' => '483212237127906'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-chengdu', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-chengdu'], ], [ 'name' => 'date', 'in' => 'query', - 'schema' => [ - 'description' => '统计日期,以天为级别,时间参数填写为YYYYMMdd。', - 'type' => 'string', - 'required' => false, - 'example' => '20241205', - ], + 'schema' => ['description' => '统计日期,以天为级别,时间参数填写为YYYYMMdd。', 'type' => 'string', 'required' => false, 'example' => '20241205'], ], ], 'responses' => [ @@ -8857,45 +5140,19 @@ 'description' => 'PopResult>', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '0be3e0aa16667684362147582e038f', - ], - 'httpCode' => [ - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '业务错误码或空值。'."\n" - .'- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误描述信息。', - 'type' => 'string', - 'example' => 'this quota is not exist.', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '0be3e0aa16667684362147582e038f'], + 'httpCode' => ['description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '业务错误码或空值。'."\n" + .'- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => 'success'], + 'errorMsg' => ['description' => '错误描述信息。', 'type' => 'string', 'example' => 'this quota is not exist.'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', 'properties' => [ - 'date' => [ - 'description' => '统计日期。', - 'type' => 'string', - 'example' => '20241205', - ], - 'timestamp' => [ - 'description' => '数据最近一次更新的时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1749090705919', - ], + 'date' => ['description' => '统计日期。', 'type' => 'string', 'example' => '20241205'], + 'timestamp' => ['description' => '数据最近一次更新的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1749090705919'], 'value' => [ 'description' => '存储指标。包括:'."\n" .'- lowFreqStorage'."\n" @@ -8903,12 +5160,7 @@ .'- longTermStorage'."\n" .'- totalStorage', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'number', - 'format' => 'double', - 'description' => '存储指标的用量大小', - 'example' => '110.438238', - ], + 'additionalProperties' => ['type' => 'number', 'format' => 'double', 'description' => '存储指标的用量大小', 'example' => '110.438238'], ], 'unit' => [ 'description' => '存储指标用量单位。包括:'."\n" @@ -8917,11 +5169,7 @@ .'- longTermStorage'."\n" .'- totalStorage', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'example' => 'TB', - 'description' => '存储指标的用量单位', - ], + 'additionalProperties' => ['type' => 'string', 'example' => 'TB', 'description' => '存储指标的用量单位'], ], ], ], @@ -8941,12 +5189,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -8954,13 +5197,8 @@ ], 'GetStorageSummaryCompared' => [ 'path' => '/api/v1/observations/analysis/storage/{type}/compared', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -8970,62 +5208,35 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '224286', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], ], 'parameters' => [ [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择**租户管理**>**租户属性**查看。', - 'type' => 'string', - 'required' => false, - 'example' => '483212237127906', - ], + 'schema' => ['description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择**租户管理**>**租户属性**查看。', 'type' => 'string', 'required' => false, 'example' => '483212237127906'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], ], [ 'name' => 'beginDate', 'in' => 'query', - 'schema' => [ - 'description' => '起始日期', - 'type' => 'string', - 'required' => true, - 'example' => '20250601', - ], + 'schema' => ['description' => '起始日期', 'type' => 'string', 'required' => true, 'example' => '20250601'], ], [ 'name' => 'endDate', 'in' => 'query', - 'schema' => [ - 'description' => '结束日期', - 'type' => 'string', - 'required' => true, - 'example' => '20250604', - ], + 'schema' => ['description' => '结束日期', 'type' => 'string', 'required' => true, 'example' => '20250604'], ], [ 'name' => 'type', 'in' => 'path', - 'schema' => [ - 'description' => '进行对比的存储指标。包括:'."\n" - .'- size'."\n" - .'- amount', - 'type' => 'string', - 'required' => true, - 'example' => 'size', - ], + 'schema' => ['description' => '进行对比的存储指标。包括:'."\n" + .'- size'."\n" + .'- amount', 'type' => 'string', 'required' => true, 'example' => 'size'], ], [ 'name' => 'projects', @@ -9034,12 +5245,7 @@ 'schema' => [ 'description' => '项目列表', 'type' => 'array', - 'items' => [ - 'description' => '项目名称', - 'type' => 'string', - 'required' => false, - 'example' => 'prj', - ], + 'items' => ['description' => '项目名称', 'type' => 'string', 'required' => false, 'example' => 'prj'], 'required' => false, ], ], @@ -9051,46 +5257,21 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '0bc3b4b016674434996033675e71ee', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'plan \\"***\\" does not exist', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '0bc3b4b016674434996033675e71ee'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'success'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'plan \\"***\\" does not exist'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', 'properties' => [ - 'beginDate' => [ - 'description' => '起始日期', - 'type' => 'string', - 'example' => '20250601', - ], - 'endDate' => [ - 'description' => '结束日期', - 'type' => 'string', - 'example' => '20250604', - ], + 'beginDate' => ['description' => '起始日期', 'type' => 'string', 'example' => '20250601'], + 'endDate' => ['description' => '结束日期', 'type' => 'string', 'example' => '20250604'], 'rate' => [ 'description' => '存储量近自起始日期到结束日期的同比。包括:'."\n" .'- lowFreqStorageRate'."\n" @@ -9098,12 +5279,7 @@ .'- standardStorageRate'."\n" .'- longTermStorageRate', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'number', - 'format' => 'double', - 'description' => '变化同比', - 'example' => '0.06365304264561006', - ], + 'additionalProperties' => ['type' => 'number', 'format' => 'double', 'description' => '变化同比', 'example' => '0.06365304264561006'], ], 'value' => [ 'description' => '存储量近自起始日期到结束日期的变化值。包括:'."\n" @@ -9112,12 +5288,7 @@ .'- standardStorage'."\n" .'- longTermStorage', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'number', - 'format' => 'double', - 'description' => '变化数值', - 'example' => '-13.437440000000606', - ], + 'additionalProperties' => ['type' => 'number', 'format' => 'double', 'description' => '变化数值', 'example' => '-13.437440000000606'], ], 'unit' => [ 'description' => '存储量近自起始日期到结束日期的变化值单位。包括:'."\n" @@ -9126,11 +5297,7 @@ .'- standardStorageUnit'."\n" .'- longTermStorageUnit', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'example' => 'GB', - 'description' => '变化数值的单位', - ], + 'additionalProperties' => ['type' => 'string', 'example' => 'GB', 'description' => '变化数值的单位'], ], ], ], @@ -9153,12 +5320,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -9166,13 +5328,8 @@ ], 'GetTableInfo' => [ 'path' => '/api/v1/projects/{projectName}/tables/{tableName}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -9183,41 +5340,24 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '159623', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => '待查看表或视图的所属项目名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_project', - ], + 'schema' => ['description' => '待查看表或视图的所属项目名称。', 'type' => 'string', 'required' => true, 'example' => 'odps_project'], ], [ 'name' => 'schemaName', 'in' => 'query', - 'schema' => [ - 'description' => '待查看表或视图的所属Schema名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'schema' => ['description' => '待查看表或视图的所属Schema名称。', 'type' => 'string', 'required' => false, 'example' => 'default'], ], [ 'name' => 'tableName', 'in' => 'path', - 'schema' => [ - 'description' => '待查看表或视图的名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'sale_detail', - ], + 'schema' => ['description' => '待查看表或视图的名称。', 'type' => 'string', 'required' => true, 'example' => 'sale_detail'], ], [ 'name' => 'type', @@ -9243,112 +5383,35 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0a06dd4516687375802853481ec9fd', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0a06dd4516687375802853481ec9fd'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '表或视图名称。', - 'type' => 'string', - 'example' => 'sale_detail', - ], - 'owner' => [ - 'description' => '表或视图的所有者账号信息。', - 'type' => 'string', - 'example' => 'ALIYUN$odps****@aliyunid.com', - ], - 'type' => [ - 'description' => '表或视图类型。取值:'."\n" - .'- **internal**:内部表。'."\n" - .'- **external**:外部表。'."\n" - .'- **view**:视图。'."\n" - .'- **materializedView**:[物化视图](https://help.aliyun.com/zh/maxcompute/user-guide/materialized-view-operations)'."\n" - .'[物化视图](https://www.alibabacloud.com/help/maxcompute/user-guide/materialized-view-operations)。', - 'type' => 'string', - 'example' => 'internal', - ], - 'schema' => [ - 'description' => '表或视图的所属Schema名称。', - 'type' => 'string', - 'example' => 'default', - ], - 'creationTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-01-17T07:07:47Z', - ], - 'viewText' => [ - 'description' => '生成视图的语句,当类型为视图时有此返回值。', - 'type' => 'string', - 'example' => 'select shop_name, sum(total_price) from sale_detail group by shop_name', - ], - 'displayName' => [ - 'description' => '展示名称。', - 'type' => 'string', - 'example' => 'odps_project.default.sale_detail', - ], - 'projectName' => [ - 'description' => '表或视图的所属项目名称。', - 'type' => 'string', - 'example' => 'odps_project', - ], - 'lastDDLTime' => [ - 'description' => '表或视图的DDL最后变更时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2023-11-21T02:05:56Z', - ], - 'lastModifiedTime' => [ - 'description' => '表或视图的数据最后变更时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2023-11-21T02:05:56Z', - ], - 'lastAccessTime' => [ - 'description' => '表或视图的数据最后访问时间,当表为非分区表时有此返回值。'."\n" - .'> 该数据从2023年7月陆续升级采集,在升级后没有被访问过或者通过ALGO作业、Hologres直读方式访问的无法采集到last_access_time。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2023-11-21T02:05:56Z', - ], - 'lifecycle' => [ - 'description' => '生命周期(天)。', - 'type' => 'string', - 'example' => '-1', - ], - 'isExternalTable' => [ - 'description' => '是否为外部表,当类型为表时有此返回值。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'size' => [ - 'description' => '如果表为非分区表,值为表的数据量大小。如果表为分区表,系统不会计算表的数据量大小,值为NULL。PARTITIONS视图中包含分区表各个分区的数据量大小。单位:字节(Byte)。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '5372', - ], - 'comment' => [ - 'description' => '表注释。', - 'type' => 'string', - 'example' => 'sale_detail', - ], - 'tableLabel' => [ - 'description' => '表的敏感等级标签。更多信息请参见[Label权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/label-based-access-control)'."\n" - .'[Label权限控制](https://www.alibabacloud.com/help/maxcompute/user-guide/label-based-access-control)。', - 'type' => 'string', - 'example' => '0', - ], - 'createTableDDL' => [ - 'description' => '创建表的DDL语句。', - 'type' => 'string', - 'example' => 'create table if not exists sale_detail( shop_name STRING, customer_id STRING, total_price DOUBLE) partitioned by (sale_date STRING, region STRING);', - ], + 'name' => ['description' => '表或视图名称。', 'type' => 'string', 'example' => 'sale_detail'], + 'owner' => ['description' => '表或视图的所有者账号信息。', 'type' => 'string', 'example' => 'ALIYUN$odps****@aliyunid.com'], + 'type' => ['description' => '表或视图类型。取值:'."\n" + .'- **internal**:内部表。'."\n" + .'- **external**:外部表。'."\n" + .'- **view**:视图。'."\n" + .'- **materializedView**:[物化视图](https://help.aliyun.com/zh/maxcompute/user-guide/materialized-view-operations)'."\n" + .'[物化视图](https://www.alibabacloud.com/help/maxcompute/user-guide/materialized-view-operations)。', 'type' => 'string', 'example' => 'internal'], + 'schema' => ['description' => '表或视图的所属Schema名称。', 'type' => 'string', 'example' => 'default'], + 'creationTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-01-17T07:07:47Z'], + 'viewText' => ['description' => '生成视图的语句,当类型为视图时有此返回值。', 'type' => 'string', 'example' => 'select shop_name, sum(total_price) from sale_detail group by shop_name'], + 'displayName' => ['description' => '展示名称。', 'type' => 'string', 'example' => 'odps_project.default.sale_detail'], + 'projectName' => ['description' => '表或视图的所属项目名称。', 'type' => 'string', 'example' => 'odps_project'], + 'lastDDLTime' => ['description' => '表或视图的DDL最后变更时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2023-11-21T02:05:56Z'], + 'lastModifiedTime' => ['description' => '表或视图的数据最后变更时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2023-11-21T02:05:56Z'], + 'lastAccessTime' => ['description' => '表或视图的数据最后访问时间,当表为非分区表时有此返回值。'."\n" + .'> 该数据从2023年7月陆续升级采集,在升级后没有被访问过或者通过ALGO作业、Hologres直读方式访问的无法采集到last_access_time。', 'type' => 'integer', 'format' => 'int64', 'example' => '2023-11-21T02:05:56Z'], + 'lifecycle' => ['description' => '生命周期(天)。', 'type' => 'string', 'example' => '-1'], + 'isExternalTable' => ['description' => '是否为外部表,当类型为表时有此返回值。', 'type' => 'boolean', 'example' => 'false'], + 'size' => ['description' => '如果表为非分区表,值为表的数据量大小。如果表为分区表,系统不会计算表的数据量大小,值为NULL。PARTITIONS视图中包含分区表各个分区的数据量大小。单位:字节(Byte)。', 'type' => 'integer', 'format' => 'int64', 'example' => '5372'], + 'comment' => ['description' => '表注释。', 'type' => 'string', 'example' => 'sale_detail'], + 'tableLabel' => ['description' => '表的敏感等级标签。更多信息请参见[Label权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/label-based-access-control)'."\n" + .'[Label权限控制](https://www.alibabacloud.com/help/maxcompute/user-guide/label-based-access-control)。', 'type' => 'string', 'example' => '0'], + 'createTableDDL' => ['description' => '创建表的DDL语句。', 'type' => 'string', 'example' => 'create table if not exists sale_detail( shop_name STRING, customer_id STRING, total_price DOUBLE) partitioned by (sale_date STRING, region STRING);'], 'nativeColumns' => [ 'description' => '字段信息。', 'type' => 'array', @@ -9356,27 +5419,11 @@ 'description' => '字段信息。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '列名。', - 'type' => 'string', - 'example' => 'shop_name', - ], - 'type' => [ - 'description' => '数据类型。', - 'type' => 'string', - 'example' => 'STRING', - ], - 'label' => [ - 'description' => '列的敏感等级标签。更多信息请参见[Label权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/label-based-access-control)'."\n" - .'[Label权限控制](https://www.alibabacloud.com/help/maxcompute/user-guide/label-based-access-control)。', - 'type' => 'string', - 'example' => '0', - ], - 'comment' => [ - 'description' => '列注释。', - 'type' => 'string', - 'example' => '商店名称', - ], + 'name' => ['description' => '列名。', 'type' => 'string', 'example' => 'shop_name'], + 'type' => ['description' => '数据类型。', 'type' => 'string', 'example' => 'STRING'], + 'label' => ['description' => '列的敏感等级标签。更多信息请参见[Label权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/label-based-access-control)'."\n" + .'[Label权限控制](https://www.alibabacloud.com/help/maxcompute/user-guide/label-based-access-control)。', 'type' => 'string', 'example' => '0'], + 'comment' => ['description' => '列注释。', 'type' => 'string', 'example' => 'Store name'], ], ], ], @@ -9387,119 +5434,40 @@ 'description' => '分区列信息。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '分区名。', - 'type' => 'string', - 'example' => 'ds=\'20190130\'', - ], - 'type' => [ - 'description' => '数据类型。', - 'type' => 'string', - 'example' => 'STRING', - ], - 'label' => [ - 'description' => '列的敏感等级标签。更多信息请参见[Label权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/label-based-access-control)'."\n" - .'[Label权限控制](https://www.alibabacloud.com/help/maxcompute/user-guide/label-based-access-control)。', - 'type' => 'string', - 'example' => '0', - ], - 'comment' => [ - 'description' => '分区列注释。', - 'type' => 'string', - 'example' => '销售日期', - ], - ], - ], - ], - 'materializedView' => [ - 'description' => '是否为[物化视图](https://help.aliyun.com/zh/maxcompute/user-guide/materialized-view-operations)'."\n" - .'[物化视图](https://www.alibabacloud.com/help/maxcompute/user-guide/materialized-view-operations)。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'rewriteEnabled' => [ - 'description' => '是否允许通过物化视图执行查询改写操作,当类型为物化视图时有此返回值。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'autoRefreshEnabled' => [ - 'description' => '是否开启自动刷新物化视图,当类型为物化视图时有此返回值。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'isOutdated' => [ - 'description' => '是否因为源表数据有变化,导致物化视图数据无效,当类型为物化视图时有此返回值。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'physicalSize' => [ - 'description' => '物理大小。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2763', - ], - 'fileNum' => [ - 'description' => '文件数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '200', - ], - 'storageHandler' => [ - 'description' => '外部表解析器,当类型为外部表时有此返回值。', - 'type' => 'string', - 'example' => 'com.aliyun.odps.CsvStorageHandler', - ], - 'location' => [ - 'description' => '外部表地址,当类型为外部表时有此返回值。', - 'type' => 'string', - 'example' => 'oss://oss-cn-hangzhou-internal.aliyuncs.com/oss-mc-test/Demo1/', - ], - 'odpsPropertiesRolearn' => [ - 'description' => 'RAM 中 AliyunODPSDefaultRole 的 ARN 信息,当类型为外部表时有此返回值。', - 'type' => 'string', - 'example' => 'acs:ram::xxxxx:role/aliyunodpsdefaultrole', - ], - 'tablestoreColumnsMapping' => [ - 'description' => '描述 MaxCompute 将访问的 Tablestore 表的列,包括主键和属性列,当类型为外部表时有此返回值。', - 'type' => 'string', - 'example' => 'o_orderkey,o_orderdate,o_custkey,o_orderstatus,o_totalprice', - ], - 'tablesotreTableName' => [ - 'description' => '需要访问的 Tablestore 表名称,当类型为外部表时有此返回值。', - 'type' => 'string', - 'example' => 'ots_tpch_orders', - ], - 'odpsSqlTextOptionFlushHeader' => [ - 'description' => '是否忽略表头,当类型为外部表时有此返回值。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'odpsTextOptionHeaderLinesCount' => [ - 'description' => '忽略表头前N行,当类型为外部表时有此返回值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], + 'name' => ['description' => '分区名。', 'type' => 'string', 'example' => 'ds=\'20190130\''], + 'type' => ['description' => '数据类型。', 'type' => 'string', 'example' => 'STRING'], + 'label' => ['description' => '列的敏感等级标签。更多信息请参见[Label权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/label-based-access-control)'."\n" + .'[Label权限控制](https://www.alibabacloud.com/help/maxcompute/user-guide/label-based-access-control)。', 'type' => 'string', 'example' => '0'], + 'comment' => ['description' => '分区列注释。', 'type' => 'string', 'example' => 'Sales date'], + ], + ], + ], + 'materializedView' => ['description' => '是否为[物化视图](https://help.aliyun.com/zh/maxcompute/user-guide/materialized-view-operations)'."\n" + .'[物化视图](https://www.alibabacloud.com/help/maxcompute/user-guide/materialized-view-operations)。', 'type' => 'boolean', 'example' => 'false'], + 'rewriteEnabled' => ['description' => '是否允许通过物化视图执行查询改写操作,当类型为物化视图时有此返回值。', 'type' => 'boolean', 'example' => 'false'], + 'autoRefreshEnabled' => ['description' => '是否开启自动刷新物化视图,当类型为物化视图时有此返回值。', 'type' => 'boolean', 'example' => 'false'], + 'isOutdated' => ['description' => '是否因为源表数据有变化,导致物化视图数据无效,当类型为物化视图时有此返回值。', 'type' => 'boolean', 'example' => 'false'], + 'physicalSize' => ['description' => '物理大小。', 'type' => 'integer', 'format' => 'int64', 'example' => '2763'], + 'fileNum' => ['description' => '文件数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '200'], + 'storageHandler' => ['description' => '外部表解析器,当类型为外部表时有此返回值。', 'type' => 'string', 'example' => 'com.aliyun.odps.CsvStorageHandler'], + 'location' => ['description' => '外部表地址,当类型为外部表时有此返回值。', 'type' => 'string', 'example' => 'oss://oss-cn-hangzhou-internal.aliyuncs.com/oss-mc-test/Demo1/'], + 'odpsPropertiesRolearn' => ['description' => 'RAM 中 AliyunODPSDefaultRole 的 ARN 信息,当类型为外部表时有此返回值。', 'type' => 'string', 'example' => 'acs:ram::xxxxx:role/aliyunodpsdefaultrole'], + 'tablestoreColumnsMapping' => ['description' => '描述 MaxCompute 将访问的 Tablestore 表的列,包括主键和属性列,当类型为外部表时有此返回值。', 'type' => 'string', 'example' => 'o_orderkey,o_orderdate,o_custkey,o_orderstatus,o_totalprice'], + 'tablesotreTableName' => ['description' => '需要访问的 Tablestore 表名称,当类型为外部表时有此返回值。', 'type' => 'string', 'example' => 'ots_tpch_orders'], + 'odpsSqlTextOptionFlushHeader' => ['description' => '是否忽略表头,当类型为外部表时有此返回值。', 'type' => 'boolean', 'example' => 'true'], + 'odpsTextOptionHeaderLinesCount' => ['description' => '忽略表头前N行,当类型为外部表时有此返回值。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], 'clusterInfo' => [ 'description' => '聚簇属性,当表类型为聚簇表时有此返回值。', 'type' => 'object', 'properties' => [ - 'clusterType' => [ - 'description' => '表的聚簇(Clustering)类型,MaxCompute当前支持[Hash Clustering](https://help.aliyun.com/zh/maxcompute/use-cases/hash-clustering)'."\n" - .'[Hash Clustering](https://www.alibabacloud.com/help/maxcompute/use-cases/hash-clustering) 和'."\n" - .' [Range Clustering](https://help.aliyun.com/zh/maxcompute/use-cases/hash-clustering)'."\n" - .'[Range Clustering](https://www.alibabacloud.com/help/maxcompute/use-cases/range-clustering)两种类型。', - 'type' => 'string', - 'example' => 'Hash', - ], + 'clusterType' => ['description' => '表的聚簇(Clustering)类型,MaxCompute当前支持[Hash Clustering](https://help.aliyun.com/zh/maxcompute/use-cases/hash-clustering)'."\n" + .'[Hash Clustering](https://www.alibabacloud.com/help/maxcompute/use-cases/hash-clustering) 和'."\n" + .' [Range Clustering](https://help.aliyun.com/zh/maxcompute/use-cases/hash-clustering)'."\n" + .'[Range Clustering](https://www.alibabacloud.com/help/maxcompute/use-cases/range-clustering)两种类型。', 'type' => 'string', 'example' => 'Hash'], 'clusterCols' => [ 'description' => '聚簇字段(Cluster Key)。', 'type' => 'array', - 'items' => [ - 'description' => '聚簇字段(Cluster Key)。', - 'type' => 'string', - 'example' => 'col_1', - ], + 'items' => ['description' => '聚簇字段(Cluster Key)。', 'type' => 'string', 'example' => 'col_1'], ], 'sortCols' => [ 'description' => '排序字段。', @@ -9508,25 +5476,12 @@ 'description' => '排序字段。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '排序字段名称。', - 'type' => 'string', - 'example' => 'col_2', - ], - 'order' => [ - 'description' => '排序方式。', - 'type' => 'string', - 'example' => 'DESC', - ], + 'name' => ['description' => '排序字段名称。', 'type' => 'string', 'example' => 'col_2'], + 'order' => ['description' => '排序方式。', 'type' => 'string', 'example' => 'DESC'], ], ], ], - 'bucketNum' => [ - 'description' => '可选字段,Cluster表的Bucket数目,0表示作业执行时动态决定。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1024', - ], + 'bucketNum' => ['description' => '可选字段,Cluster表的Bucket数目,0表示作业执行时动态决定。', 'type' => 'integer', 'format' => 'int64', 'example' => '1024'], ], ], ], @@ -9535,13 +5490,13 @@ ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dd4516687375802853481ec9fd\\",\\n \\"data\\": {\\n \\"name\\": \\"sale_detail\\",\\n \\"owner\\": \\"ALIYUN$odps****@aliyunid.com\\",\\n \\"type\\": \\"internal\\",\\n \\"schema\\": \\"default\\",\\n \\"creationTime\\": 0,\\n \\"viewText\\": \\"select shop_name, sum(total_price) from sale_detail group by shop_name\\",\\n \\"displayName\\": \\"odps_project.default.sale_detail\\",\\n \\"projectName\\": \\"odps_project\\",\\n \\"lastDDLTime\\": 0,\\n \\"lastModifiedTime\\": 0,\\n \\"lastAccessTime\\": 0,\\n \\"lifecycle\\": \\"-1\\",\\n \\"isExternalTable\\": false,\\n \\"size\\": 5372,\\n \\"comment\\": \\"sale_detail\\",\\n \\"tableLabel\\": \\"0\\",\\n \\"createTableDDL\\": \\"create table if not exists sale_detail( shop_name STRING, customer_id STRING, total_price DOUBLE) partitioned by (sale_date STRING, region STRING);\\",\\n \\"nativeColumns\\": [\\n {\\n \\"name\\": \\"shop_name\\",\\n \\"type\\": \\"STRING\\",\\n \\"label\\": \\"0\\",\\n \\"comment\\": \\"商店名称\\"\\n }\\n ],\\n \\"partitionColumns\\": [\\n {\\n \\"name\\": \\"ds=\'20190130\'\\",\\n \\"type\\": \\"STRING\\",\\n \\"label\\": \\"0\\",\\n \\"comment\\": \\"销售日期\\"\\n }\\n ],\\n \\"materializedView\\": false,\\n \\"rewriteEnabled\\": false,\\n \\"autoRefreshEnabled\\": false,\\n \\"isOutdated\\": false,\\n \\"physicalSize\\": 2763,\\n \\"fileNum\\": 200,\\n \\"storageHandler\\": \\"com.aliyun.odps.CsvStorageHandler\\",\\n \\"location\\": \\"oss://oss-cn-hangzhou-internal.aliyuncs.com/oss-mc-test/Demo1/\\",\\n \\"odpsPropertiesRolearn\\": \\"acs:ram::xxxxx:role/aliyunodpsdefaultrole\\",\\n \\"tablestoreColumnsMapping\\": \\"o_orderkey,o_orderdate,o_custkey,o_orderstatus,o_totalprice\\",\\n \\"tablesotreTableName\\": \\"ots_tpch_orders\\",\\n \\"odpsSqlTextOptionFlushHeader\\": true,\\n \\"odpsTextOptionHeaderLinesCount\\": 1,\\n \\"clusterInfo\\": {\\n \\"clusterType\\": \\"Hash\\",\\n \\"clusterCols\\": [\\n \\"col_1\\"\\n ],\\n \\"sortCols\\": [\\n {\\n \\"name\\": \\"col_2\\",\\n \\"order\\": \\"DESC\\"\\n }\\n ],\\n \\"bucketNum\\": 1024\\n }\\n }\\n}","type":"json"}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dd4516687375802853481ec9fd\\",\\n \\"data\\": {\\n \\"name\\": \\"sale_detail\\",\\n \\"owner\\": \\"ALIYUN$odps****@aliyunid.com\\",\\n \\"type\\": \\"internal\\",\\n \\"schema\\": \\"default\\",\\n \\"creationTime\\": 0,\\n \\"viewText\\": \\"select shop_name, sum(total_price) from sale_detail group by shop_name\\",\\n \\"displayName\\": \\"odps_project.default.sale_detail\\",\\n \\"projectName\\": \\"odps_project\\",\\n \\"lastDDLTime\\": 0,\\n \\"lastModifiedTime\\": 0,\\n \\"lastAccessTime\\": 0,\\n \\"lifecycle\\": \\"-1\\",\\n \\"isExternalTable\\": false,\\n \\"size\\": 5372,\\n \\"comment\\": \\"sale_detail\\",\\n \\"tableLabel\\": \\"0\\",\\n \\"createTableDDL\\": \\"create table if not exists sale_detail( shop_name STRING, customer_id STRING, total_price DOUBLE) partitioned by (sale_date STRING, region STRING);\\",\\n \\"nativeColumns\\": [\\n {\\n \\"name\\": \\"shop_name\\",\\n \\"type\\": \\"STRING\\",\\n \\"label\\": \\"0\\",\\n \\"comment\\": \\"Store name\\"\\n }\\n ],\\n \\"partitionColumns\\": [\\n {\\n \\"name\\": \\"ds=\'20190130\'\\",\\n \\"type\\": \\"STRING\\",\\n \\"label\\": \\"0\\",\\n \\"comment\\": \\"Sales date\\"\\n }\\n ],\\n \\"materializedView\\": false,\\n \\"rewriteEnabled\\": false,\\n \\"autoRefreshEnabled\\": false,\\n \\"isOutdated\\": false,\\n \\"physicalSize\\": 2763,\\n \\"fileNum\\": 200,\\n \\"storageHandler\\": \\"com.aliyun.odps.CsvStorageHandler\\",\\n \\"location\\": \\"oss://oss-cn-hangzhou-internal.aliyuncs.com/oss-mc-test/Demo1/\\",\\n \\"odpsPropertiesRolearn\\": \\"acs:ram::xxxxx:role/aliyunodpsdefaultrole\\",\\n \\"tablestoreColumnsMapping\\": \\"o_orderkey,o_orderdate,o_custkey,o_orderstatus,o_totalprice\\",\\n \\"tablesotreTableName\\": \\"ots_tpch_orders\\",\\n \\"odpsSqlTextOptionFlushHeader\\": true,\\n \\"odpsTextOptionHeaderLinesCount\\": 1,\\n \\"clusterInfo\\": {\\n \\"clusterType\\": \\"Hash\\",\\n \\"clusterCols\\": [\\n \\"col_1\\"\\n ],\\n \\"sortCols\\": [\\n {\\n \\"name\\": \\"col_2\\",\\n \\"order\\": \\"DESC\\"\\n }\\n ],\\n \\"bucketNum\\": 1024\\n }\\n }\\n}","type":"json"}]', 'title' => '获取表信息', 'summary' => '查看MaxCompute内部表、视图、外部表、聚簇表或Transactional表的信息。', - 'changeSet' => [ - [ - 'createdAt' => '2024-11-05T07:26:05.000Z', - 'description' => '响应参数发生变更', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '800', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetTableInfo'], ], ], 'ramActions' => [ @@ -9552,12 +5507,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], @@ -9565,13 +5515,8 @@ ], 'GetTrustedProjects' => [ 'path' => '/api/v1/projects/{projectName}/trustedProjects', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -9581,21 +5526,14 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '142483', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_project', - ], + 'schema' => ['description' => '项目名称。', 'type' => 'string', 'required' => true, 'example' => 'odps_project'], ], ], 'responses' => [ @@ -9605,23 +5543,15 @@ 'description' => 'PopResult>', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc0590416675329272834336e4387', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc0590416675329272834336e4387'], 'data' => [ 'description' => '返回数据。', 'type' => 'array', - 'items' => [ - 'description' => '返回数据。', - 'type' => 'string', - 'example' => 'json Array'."\n" - .'['."\n" - .'"project_A",'."\n" - .'"project_B"'."\n" - .']', - ], + 'items' => ['description' => '返回数据。', 'type' => 'string', 'example' => 'json Array'."\n" + .'['."\n" + .'"project_A",'."\n" + .'"project_B"'."\n" + .']'], ], ], ], @@ -9643,12 +5573,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'conditional', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'conditional', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], @@ -9656,13 +5581,8 @@ ], 'KillJobs' => [ 'path' => '/api/v1/jobs/kill', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -9672,49 +5592,32 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '165875', - 'abilityTreeNodes' => [ - 'FEATUREodpsDUKRZ1', - ], + 'abilityTreeNodes' => ['FEATUREodpsDUKRZ1'], ], 'parameters' => [ [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户id', - 'type' => 'string', - 'required' => false, - 'example' => '478403690625249', - ], + 'schema' => ['description' => '租户id', 'type' => 'string', 'required' => false, 'example' => '478403690625249'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域id。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域id。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'description' => '请求体参数', - 'type' => 'string', - 'required' => false, - 'example' => '['."\n" - .' {'."\n" - .' "instanceId": "",'."\n" - .' "projectName": ""'."\n" - .' },'."\n" - .' {'."\n" - .' "instanceId": "",'."\n" - .' "projectName": ""'."\n" - .' }'."\n" - .']', - ], + 'schema' => ['description' => '请求体参数', 'type' => 'string', 'required' => false, 'example' => '['."\n" + .' {'."\n" + .' "instanceId": "",'."\n" + .' "projectName": ""'."\n" + .' },'."\n" + .' {'."\n" + .' "instanceId": "",'."\n" + .' "projectName": ""'."\n" + .' }'."\n" + .']'], ], ], 'responses' => [ @@ -9724,22 +5627,9 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0abb7ede16814560741256732e91b6', - ], - 'httpCode' => [ - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'data' => [ - 'description' => '返回数据', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0abb7ede16814560741256732e91b6'], + 'httpCode' => ['description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'data' => ['description' => '返回数据', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -9756,38 +5646,30 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], ], 'ListComputeMetricsByInstance' => [ + 'summary' => '列出instance维度作业计算用量。', 'path' => '/api/v1/computeMetrics/listByInstance', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'list', - 'abilityTreeCode' => '189037', - 'abilityTreeNodes' => [ - 'FEATUREodpsO212B7', - ], + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '189037', + 'abilityTreeNodes' => ['FEATUREodpsO212B7'], ], 'parameters' => [ [ @@ -9798,102 +5680,42 @@ 'description' => '请求体参数。', 'type' => 'object', 'properties' => [ - 'region' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], 'projectNames' => [ 'description' => '项目名称。', 'type' => 'array', - 'items' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'odps_porject', - ], - 'required' => false, - ], - 'startDate' => [ - 'description' => '开始日期。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1715393576201', - ], - 'endDate' => [ - 'description' => '结束日期。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1718590596556', - ], - 'instanceId' => [ - 'description' => '作业ID。', - 'type' => 'string', - 'required' => false, - 'example' => '20240730****ddlr', - ], - 'jobOwner' => [ - 'description' => '作业Owner。', - 'type' => 'string', - 'required' => false, - 'example' => 'ALIYUN$7632***@aliyun.com', - ], - 'signature' => [ - 'description' => 'SQL作业签名。', - 'type' => 'string', - 'required' => false, - 'example' => 'ghijkl789012', - ], - 'pageNumber' => [ - 'description' => '分页页码。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'pageSize' => [ - 'description' => '每页返回数目,默认为10。', - 'type' => 'integer', - 'format' => 'int64', + 'items' => ['description' => '项目名称。', 'type' => 'string', 'required' => false, 'example' => 'odps_porject'], 'required' => false, - 'example' => '10', ], + 'startDate' => ['description' => '开始日期。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1715393576201'], + 'endDate' => ['description' => '结束日期。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1718590596556'], + 'instanceId' => ['description' => '作业ID。', 'type' => 'string', 'required' => false, 'example' => '20240730****ddlr'], + 'jobOwner' => ['description' => '作业Owner。', 'type' => 'string', 'required' => false, 'example' => 'ALIYUN$7632***@aliyun.com'], + 'signature' => ['description' => 'SQL作业签名。', 'type' => 'string', 'required' => false, 'example' => 'ghijkl789012'], + 'pageNumber' => ['description' => '分页页码。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'pageSize' => ['description' => '每页返回数目,默认为10。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], 'types' => [ 'description' => '计量类型。', 'type' => 'array', - 'items' => [ - 'description' => '计量类型。'."\n" - .'- ComputationSql:操作内部表的SQL类型作业计量数据。'."\n" - ."\n" - .'- ComputationSqlOTS:操作OTS外部表的SQL类型作业计量数据。'."\n" - ."\n" - .'- ComputationSqlOSS:操作OSS外部表的SQL类型作业计量数据。'."\n" - ."\n" - .'- MapReduce:MapReduce类型作业计量数据。'."\n" - ."\n" - .'- spark:Spark类型作业计量数据。'."\n" - ."\n" - .'- mars:Mars类型作业计量数据。', - 'type' => 'string', - 'required' => false, - 'example' => 'SQL', - ], + 'items' => ['description' => '计量类型。'."\n" + .'- ComputationSql:操作内部表的SQL类型作业计量数据。'."\n" + ."\n" + .'- ComputationSqlOTS:操作OTS外部表的SQL类型作业计量数据。'."\n" + ."\n" + .'- ComputationSqlOSS:操作OSS外部表的SQL类型作业计量数据。'."\n" + ."\n" + .'- MapReduce:MapReduce类型作业计量数据。'."\n" + ."\n" + .'- spark:Spark类型作业计量数据。'."\n" + ."\n" + .'- mars:Mars类型作业计量数据。', 'type' => 'string', 'required' => false, 'example' => 'SQL'], 'required' => false, ], 'specCodes' => [ 'description' => '规格类型。', 'type' => 'array', - 'items' => [ - 'description' => '规格类型。'."\n" - .'- OdpsStandard:对应按量付费标准版。'."\n" - .'- OdpsSpot:按量计费闲时版。', - 'type' => 'string', - 'required' => false, - 'example' => 'OdpsStandard', - ], + 'items' => ['description' => '规格类型。'."\n" + .'- OdpsStandard:对应按量付费标准版。'."\n" + .'- OdpsSpot:按量计费闲时版。', 'type' => 'string', 'required' => false, 'example' => 'OdpsStandard'], 'required' => false, ], ], @@ -9905,35 +5727,49 @@ 200 => [ 'schema' => [ 'title' => 'PopResult>', - 'description' => 'PopResult>', + 'description' => '返回结果,eg. {'."\n" + .' "data":{'."\n" + .' "instanceComputeMetrics":['."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "instanceId":"20260415082755***g4af3vobxio",'."\n" + .' "submitTime":1776241680,'."\n" + .' "specCode":"OdpsStandard",'."\n" + .' "signature":"4c504210645f7850***cf847c17886bf",'."\n" + .' "usage":0.8054948877543211,'."\n" + .' "jobOwner":"RAM$1393348188455728:role/aliyunservicerolef***omputemms",'."\n" + .' "endTime":1776241682,'."\n" + .' "type":"ComputationSql",'."\n" + .' "projectName":"dbs_mc"'."\n" + .' },'."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "instanceId":"20260415082825***8gv9abz7unq14",'."\n" + .' "submitTime":1776241707,'."\n" + .' "specCode":"OdpsStandard",'."\n" + .' "signature":"cacb1e31deb*****c19e515b59634a",'."\n" + .' "usage":0.1720797186717391,'."\n" + .' "jobOwner":"ALIYUN$mc_***ma_testcloud_com",'."\n" + .' "endTime":1776241707,'."\n" + .' "type":"ComputationSql",'."\n" + .' "projectName":"webui_139728_hangzhou"'."\n" + .' }'."\n" + .' ],'."\n" + .' "pageNumber":1,'."\n" + .' "pageSize":10,'."\n" + .' "totalCount":2808'."\n" + .' },'."\n" + .' "requestId":"0adb99df17763408113761151d0001"'."\n" + .' }', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0bc059b717363029839908920ea631', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'This object does not exist.', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0bc059b717363029839908920ea631'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', @@ -9944,108 +5780,55 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'instanceId' => [ - 'description' => '作业ID。', - 'type' => 'string', - 'example' => '20240730****ddlr', - ], - 'type' => [ - 'description' => '计量类型。'."\n" - ."\n" - .'- ComputationSql:操作内部表的SQL类型作业计量数据。'."\n" - ."\n" - .'- ComputationSqlOTS:操作OTS外部表的SQL类型作业计量数据。'."\n" - ."\n" - .'- ComputationSqlOSS:操作OSS外部表的SQL类型作业计量数据。'."\n" - ."\n" - .'- MapReduce:MapReduce类型作业计量数据。'."\n" - ."\n" - .'- spark:Spark类型作业计量数据。'."\n" - ."\n" - .'- mars:Mars类型作业计量数据。', - 'type' => 'string', - 'example' => 'ComputationSql', - ], - 'specCode' => [ - 'description' => '规格类型。'."\n" - .'- OdpsStandard:对应按量付费标准版。'."\n" - .'- OdpsSpot:按量计费闲时版。', - 'type' => 'string', - 'example' => 'OdpsStandard', - ], - 'jobOwner' => [ - 'description' => '作业Owner。', - 'type' => 'string', - 'example' => 'ALIYUN$7632***@aliyun.com', - ], - 'projectName' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'example' => 'odps_porject', - ], - 'submitTime' => [ - 'description' => '作业提交时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1610432000000', - ], - 'endTime' => [ - 'description' => '作业运行结束时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1710432000000', - ], - 'signature' => [ - 'description' => 'SQL作业签名。', - 'type' => 'string', - 'example' => 'pqrs12345tuv', - ], - 'usage' => [ - 'description' => '计算用量。'."\n" - ."\n" - .'- 扫描量计算类,单位为GB。包括ComputationSql、ComputationSqlOTS、ComputationSqlOSS计费类型,都是按扫描量计费,计算使用量为每个作业的扫描量*复杂度,其中ComputationSqlOTS和ComputationSqlOSS类型复杂度固定为1。'."\n" - ."\n" - .'- CU时计算类,单位为CU时。包括MapReduce、spark、mars计费类型,都是按CU时计费。', - 'type' => 'number', - 'format' => 'double', - 'example' => '1024', - ], - 'unit' => [ - 'description' => '计算用量单位。', - 'type' => 'string', - 'example' => 'GB', - ], + 'instanceId' => ['description' => '作业ID。', 'type' => 'string', 'example' => '20240730****ddlr'], + 'type' => ['description' => '计量类型。'."\n" + ."\n" + .'- ComputationSql:操作内部表的SQL类型作业计量数据。'."\n" + ."\n" + .'- ComputationSqlOTS:操作OTS外部表的SQL类型作业计量数据。'."\n" + ."\n" + .'- ComputationSqlOSS:操作OSS外部表的SQL类型作业计量数据。'."\n" + ."\n" + .'- MapReduce:MapReduce类型作业计量数据。'."\n" + ."\n" + .'- spark:Spark类型作业计量数据。'."\n" + ."\n" + .'- mars:Mars类型作业计量数据。', 'type' => 'string', 'example' => 'ComputationSql'], + 'specCode' => ['description' => '规格类型。'."\n" + .'- OdpsStandard:对应按量付费标准版。'."\n" + .'- OdpsSpot:按量计费闲时版。', 'type' => 'string', 'example' => 'OdpsStandard'], + 'jobOwner' => ['description' => '作业Owner。', 'type' => 'string', 'example' => 'ALIYUN$7632***@aliyun.com'], + 'projectName' => ['description' => '项目名称。', 'type' => 'string', 'example' => 'odps_porject'], + 'submitTime' => ['description' => '作业提交时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1610432000000'], + 'endTime' => ['description' => '作业运行结束时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1710432000000'], + 'signature' => ['description' => 'SQL作业签名。', 'type' => 'string', 'example' => 'pqrs12345tuv'], + 'usage' => ['description' => '计算用量。'."\n" + ."\n" + .'- 扫描量计算类,单位为GB。包括ComputationSql、ComputationSqlOTS、ComputationSqlOSS计费类型,都是按扫描量计费,计算使用量为每个作业的扫描量*复杂度,其中ComputationSqlOTS和ComputationSqlOSS类型复杂度固定为1。'."\n" + ."\n" + .'- CU时计算类,单位为CU时。包括MapReduce、spark、mars计费类型,都是按CU时计费。', 'type' => 'number', 'format' => 'double', 'example' => '1024'], + 'unit' => ['description' => '计算用量单位。', 'type' => 'string', 'example' => 'GB'], ], + 'description' => '', ], ], - 'totalCount' => [ - 'description' => '返回结果的总数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '64', - ], - 'pageNumber' => [ - 'description' => '当前页码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'pageSize' => [ - 'description' => '每页记录数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], + 'totalCount' => ['description' => '返回结果的总数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '64'], + 'pageNumber' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'pageSize' => ['description' => '每页记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], ], ], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc059b717363029839908920ea631\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"This object does not exist.\\",\\n \\"data\\": {\\n \\"instanceComputeMetrics\\": [\\n {\\n \\"instanceId\\": \\"20240730****ddlr\\",\\n \\"type\\": \\"ComputationSql\\",\\n \\"specCode\\": \\"OdpsStandard\\",\\n \\"jobOwner\\": \\"ALIYUN$7632***@aliyun.com\\",\\n \\"projectName\\": \\"odps_porject\\",\\n \\"submitTime\\": 1610432000000,\\n \\"endTime\\": 1710432000000,\\n \\"signature\\": \\"pqrs12345tuv\\",\\n \\"usage\\": 1024,\\n \\"unit\\": \\"GB\\"\\n }\\n ],\\n \\"totalCount\\": 64,\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10\\n }\\n}","type":"json"}]', - 'title' => '列出后付费作业计算用量', - 'summary' => '列出后付费作业计算用量。', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc059b717363029839908920ea631\\",\\n \\"httpCode\\": 200,\\n \\"data\\": {\\n \\"instanceComputeMetrics\\": [\\n {\\n \\"instanceId\\": \\"20240730****ddlr\\",\\n \\"type\\": \\"ComputationSql\\",\\n \\"specCode\\": \\"OdpsStandard\\",\\n \\"jobOwner\\": \\"ALIYUN$7632***@aliyun.com\\",\\n \\"projectName\\": \\"odps_porject\\",\\n \\"submitTime\\": 1610432000000,\\n \\"endTime\\": 1710432000000,\\n \\"signature\\": \\"pqrs12345tuv\\",\\n \\"usage\\": 1024,\\n \\"unit\\": \\"GB\\"\\n }\\n ],\\n \\"totalCount\\": 64,\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10\\n }\\n}","type":"json"}]', + 'title' => '列出instance维度作业计算用量', 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListComputeMetricsByInstance'], + ], + ], 'ramActions' => [ [ 'operationType' => 'list', @@ -10054,25 +5837,195 @@ 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'ListComputeMetricsBySignature' => [ + 'summary' => '按Signature查看作业计算使用量明细', + 'path' => '/api/v1/computeMetrics/listBySignature', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsO212B7'], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求参数。eg. {"startDate":1775809442560,"endDate":1776327842560,"pageNumber":1,"pageSize":10}', + 'type' => 'object', + 'properties' => [ + 'projectNames' => [ + 'description' => '实例名称列表', + 'type' => 'array', + 'items' => ['description' => '实例名称列表', 'type' => 'string', 'required' => false, 'example' => 'prj'], + 'required' => false, + ], + 'startDate' => ['description' => '开始日期。毫秒级别时间戳。必填参数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1715393576201'], + 'endDate' => ['description' => '结束日期。毫秒级别时间戳。必填参数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1718590596556'], + 'instanceId' => ['description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => '20240730****ddlr'], + 'jobOwner' => ['description' => '作业Owner。', 'type' => 'string', 'required' => false, 'example' => 'ALIYUN$7632***@aliyun.com'], + 'signature' => ['description' => 'SQL作业签名。', 'type' => 'string', 'required' => false, 'example' => 'm4S/2HipBVngCX94MNIAqmM7Ov4='], + 'pageNumber' => ['description' => '当前页', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'pageSize' => ['description' => '每页返回数目,默认为10。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], + 'types' => [ + 'description' => '计量类型。'."\n" + .'- ComputationSql:操作内部表的SQL类型作业计量数据。', + 'type' => 'array', + 'items' => ['description' => '计量类型。'."\n" + .'- ComputationSql:操作内部表的SQL类型作业计量数据。', 'type' => 'string', 'required' => false, 'example' => 'ComputationSql'], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult>', + 'description' => '返回结果,eg. {'."\n" + .' "data":{'."\n" + .' "pageNumber":1,'."\n" + .' "signatureComputeMetrics":['."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "signature":"efb4a514af076dd95a5f632b99a27779",'."\n" + .' "usage":32.67788110114634'."\n" + .' },'."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "signature":"726c63958156dacbbf80d0ad6d78fffd",'."\n" + .' "usage":32.67767215706408'."\n" + .' },'."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "signature":"031d508ccfeb4b843611d527f16f99ae",'."\n" + .' "usage":30.016094097867608'."\n" + .' },'."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "signature":"a43fdcba21156b989741648cbfcf7ffd",'."\n" + .' "usage":20.4983083428815'."\n" + .' },'."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "signature":"1fc9ad694038df11f3f7502e903fceaf",'."\n" + .' "usage":19.928280484862626'."\n" + .' },'."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "signature":"cd56e2bca5904b5085eab38f5e07b16e",'."\n" + .' "usage":19.34378239326179'."\n" + .' },'."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "signature":"612832751a56fa110cb431d8f92cc330",'."\n" + .' "usage":19.343725475482643'."\n" + .' },'."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "signature":"3089ba593a115a4ed8a5aed589a068e7",'."\n" + .' "usage":11.065628196112812'."\n" + .' },'."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "signature":"",'."\n" + .' "usage":0.1802469869144261'."\n" + .' },'."\n" + .' {'."\n" + .' "unit":"GBCplx",'."\n" + .' "signature":"0af31eba01d37a5db55b418438a9ed41",'."\n" + .' "usage":0.0360673195682466'."\n" + .' }'."\n" + .' ],'."\n" + .' "pageSize":10,'."\n" + .' "totalCount":10'."\n" + .' },'."\n" + .' "requestId":"1aed17ac17763278608577024d0001"'."\n" + .' }', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0a06dc0a17495216593736061e45a3'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'data' => [ + 'description' => '请求返回数据', + 'type' => 'object', + 'properties' => [ + 'signatureComputeMetrics' => [ + 'description' => 'signature维度统计数据列表', + 'type' => 'array', + 'items' => [ + 'description' => 'signature维度统计数据', + 'type' => 'object', + 'properties' => [ + 'signature' => ['description' => 'SQL作业签名。', 'type' => 'string', 'example' => 'YF3JMiEXEvZVmGzUXz6G4MtWVJk='], + 'projectNames' => [ + 'description' => '实例名称列表', + 'type' => 'array', + 'items' => ['description' => '实例名称列表', 'type' => 'string', 'example' => 'projectName'], + ], + 'usage' => ['description' => '使用量', 'type' => 'number', 'format' => 'double', 'example' => '32.67767215706408'], + 'unit' => ['description' => '计算用量单位。', 'type' => 'string', 'example' => 'GBCplx'], + 'instances' => [ + 'description' => '实例列表', + 'type' => 'array', + 'items' => [ + 'description' => '实例', + 'type' => 'object', + 'properties' => [ + 'instanceId' => ['description' => '实例ID。'."\n", 'type' => 'string', 'example' => '20260124052241299gdxd3wveqsj'], + 'startTime' => ['description' => '作业运行开始时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1765765291000'], + 'endTime' => ['description' => '作业运行结束时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1766780295000'], + ], + ], + ], + ], + ], + ], + 'totalCount' => ['description' => '返回结果的总数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'], + 'pageNumber' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'pageSize' => ['description' => '每页记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + ], ], ], ], ], ], + 'title' => '按Signature查看作业使用量明细', + 'description' => '按Signature查看作业明细。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dc0a17495216593736061e45a3\\",\\n \\"httpCode\\": 200,\\n \\"data\\": {\\n \\"signatureComputeMetrics\\": [\\n {\\n \\"signature\\": \\"YF3JMiEXEvZVmGzUXz6G4MtWVJk=\\",\\n \\"projectNames\\": [\\n \\"projectName\\"\\n ],\\n \\"usage\\": 32.67767215706408,\\n \\"unit\\": \\"GBCplx\\",\\n \\"instances\\": [\\n {\\n \\"instanceId\\": \\"20260124052241299gdxd3wveqsj\\",\\n \\"startTime\\": 1765765291000,\\n \\"endTime\\": 1766780295000\\n }\\n ]\\n }\\n ],\\n \\"totalCount\\": 60,\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10\\n }\\n}","type":"json"}]', ], 'ListComputeQuotaPlan' => [ 'path' => '/api/v1/quotas/{nickname}/computeQuotaPlan', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -10082,20 +6035,13 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '258226', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_MyQuota_p', - ], + 'schema' => ['description' => '一级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_MyQuota_p'], ], ], 'responses' => [ @@ -10105,27 +6051,10 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0bc3b4ae16685836687916212e7850', - ], - 'httpCode' => [ - 'description' => '返回的HTTP状态码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'This object does not exist.', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0bc3b4ae16685836687916212e7850'], + 'httpCode' => ['description' => '返回的HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This object does not exist.'], 'data' => [ 'description' => '返回数据', 'type' => 'object', @@ -10136,16 +6065,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'Quota计划名称。', - 'type' => 'string', - 'example' => 'planA', - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '1731394621890', - ], + 'name' => ['description' => 'Quota计划名称。', 'type' => 'string', 'example' => 'planA'], + 'createTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '1731394621890'], 'quota' => [ 'description' => 'Quota属性。', 'type' => 'object', @@ -10156,68 +6077,22 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '二级quota ID。', - 'type' => 'string', - 'example' => '6790', - ], - 'name' => [ - 'description' => '二级quota名称。', - 'type' => 'string', - 'example' => 'dp_cn_shanghai_1702627945_p', - ], - 'nickName' => [ - 'description' => '二级quota昵称。', - 'type' => 'string', - 'example' => 'os_MyQuota', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => 'Quota类型。', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态。', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户ID。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'cluster' => [ - 'description' => '集群ID。', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本号。', - 'type' => 'string', - 'example' => '2056', - ], + 'id' => ['description' => '二级quota ID。', 'type' => 'string', 'example' => '6790'], + 'name' => ['description' => '二级quota名称。', 'type' => 'string', 'example' => 'dp_cn_shanghai_1702627945_p'], + 'nickName' => ['description' => '二级quota昵称。', 'type' => 'string', 'example' => 'os_MyQuota'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => 'Quota类型。', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态。', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户ID。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'], + 'cluster' => ['description' => '集群ID。', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本号。', 'type' => 'string', 'example' => '2056'], 'parameter' => [ 'description' => 'Quota配置参数。', 'type' => 'object', 'properties' => [ - 'minCU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'elasticReservedCU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'maxCU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'minCU' => ['type' => 'integer', 'format' => 'int64'], + 'elasticReservedCU' => ['type' => 'integer', 'format' => 'int64'], + 'maxCU' => ['type' => 'integer', 'format' => 'int64'], ], 'example' => '{'."\n" .' "enablePriority": false,'."\n" @@ -10229,82 +6104,27 @@ .' "schedulerType": "Fifo"'."\n" .'}', ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1730946421757', - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518', - ], + 'createTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1730946421757'], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'], ], ], ], - 'id' => [ - 'description' => '一级Quota ID。', - 'type' => 'string', - 'example' => '186', - ], - 'name' => [ - 'description' => '一级Quota名称。', - 'type' => 'string', - 'example' => 'dp_cn_hangzhou_1717465943_p', - ], - 'nickName' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'example' => 'os_MyQuota_p', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段。', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态。', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户ID。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'cluster' => [ - 'description' => '集群ID。', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本。', - 'type' => 'string', - 'example' => '2056', - ], + 'id' => ['description' => '一级Quota ID。', 'type' => 'string', 'example' => '186'], + 'name' => ['description' => '一级Quota名称。', 'type' => 'string', 'example' => 'dp_cn_hangzhou_1717465943_p'], + 'nickName' => ['description' => '一级Quota昵称。', 'type' => 'string', 'example' => 'os_MyQuota_p'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段。', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态。', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户ID。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'], + 'cluster' => ['description' => '集群ID。', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本。', 'type' => 'string', 'example' => '2056'], 'parameter' => [ 'description' => 'Quota配置参数。', 'type' => 'object', 'properties' => [ - 'minCU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'elasticReservedCU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'maxCU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'minCU' => ['type' => 'integer', 'format' => 'int64'], + 'elasticReservedCU' => ['type' => 'integer', 'format' => 'int64'], + 'maxCU' => ['type' => 'integer', 'format' => 'int64'], ], 'example' => '{'."\n" .' "enablePriority": false,'."\n" @@ -10316,17 +6136,8 @@ .' "schedulerType": "Fifo"'."\n" .'}', ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1730247361356', - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518', - ], + 'createTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1730247361356'], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'], ], ], ], @@ -10350,12 +6161,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -10363,75 +6169,40 @@ ], 'ListFunctions' => [ 'path' => '/api/v1/projects/{projectName}/functions', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'tenantRelevance' => 'tenant', - ], + 'systemTags' => ['operationType' => 'list', 'tenantRelevance' => 'tenant'], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_project', - ], + 'schema' => ['description' => '项目名称。', 'type' => 'string', 'required' => true, 'example' => 'odps_project'], ], [ 'name' => 'schemaName', 'in' => 'query', - 'schema' => [ - 'description' => 'schema名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'schema' => ['description' => 'schema名称。', 'type' => 'string', 'required' => false, 'example' => 'default'], ], [ 'name' => 'prefix', 'in' => 'query', - 'schema' => [ - 'description' => '限定返回的资源名称,名称必须以Prefix作为前缀,例如Prefix是a,则返回的资源名均是以a开始的。', - 'type' => 'string', - 'required' => false, - 'example' => 'a', - ], + 'schema' => ['description' => '限定返回的资源名称,名称必须以Prefix作为前缀,例如Prefix是a,则返回的资源名均是以a开始的。', 'type' => 'string', 'required' => false, 'example' => 'a'], ], [ 'name' => 'marker', 'in' => 'query', - 'schema' => [ - 'description' => '设定结果从marker之后按字母排序的第一个开始返回。', - 'type' => 'string', - 'required' => false, - 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==', - ], + 'schema' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。', 'type' => 'string', 'required' => false, 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg=='], ], [ 'name' => 'maxItem', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回的最大结果数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - 'default' => '10', - ], + 'schema' => ['description' => '每页返回的最大结果数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'default' => '10'], ], ], 'responses' => [ @@ -10441,11 +6212,7 @@ 'description' => 'PopResult>', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0be3e0b716671885050924814e3623', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0be3e0b716671885050924814e3623'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -10457,56 +6224,18 @@ 'description' => '各个函数的信息。', 'type' => 'object', 'properties' => [ - 'displayName' => [ - 'description' => '显示名称', - 'type' => 'string', - 'example' => 'getdate', - ], - 'name' => [ - 'description' => '函数名称。', - 'type' => 'string', - 'example' => 'getdate', - ], - 'owner' => [ - 'description' => '所有者。', - 'type' => 'string', - 'example' => 'odpsowner', - ], - 'schema' => [ - 'description' => '函数schema。', - 'type' => 'string', - 'example' => 'abc', - ], - 'resources' => [ - 'description' => '函数关联的资源名称。', - 'type' => 'string', - 'example' => 'abc', - ], - 'creationTime' => [ - 'description' => '创建时间,单位毫秒', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1664505167000', - ], - 'class' => [ - 'description' => '函数所在的类。', - 'type' => 'string', - 'example' => 'abc', - ], + 'displayName' => ['description' => '显示名称', 'type' => 'string', 'example' => 'getdate'], + 'name' => ['description' => '函数名称。', 'type' => 'string', 'example' => 'getdate'], + 'owner' => ['description' => '所有者。', 'type' => 'string', 'example' => 'odpsowner'], + 'schema' => ['description' => '函数schema。', 'type' => 'string', 'example' => 'abc'], + 'resources' => ['description' => '函数关联的资源名称。', 'type' => 'string', 'example' => 'abc'], + 'creationTime' => ['description' => '创建时间,单位毫秒', 'type' => 'integer', 'format' => 'int64', 'example' => '1664505167000'], + 'class' => ['description' => '函数所在的类。', 'type' => 'string', 'example' => 'abc'], ], ], ], - 'marker' => [ - 'description' => '设定结果从marker之后按字母排序的第一个开始返回。', - 'type' => 'string', - 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==', - ], - 'maxItem' => [ - 'description' => '每页返回的最大结果数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。', 'type' => 'string', 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg=='], + 'maxItem' => ['description' => '每页返回的最大结果数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], ], ], ], @@ -10529,27 +6258,85 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], + ], + ], + ], + ], + ], + 'ListInstances' => [ + 'path' => '/api/v1/bills/instances', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '190240', + 'abilityTreeNodes' => ['FEATUREodpsO212B7'], + ], + 'parameters' => [ + [ + 'name' => 'startDate', + 'in' => 'query', + 'schema' => ['description' => '需要对某个时间段进行成本分析的开始时间', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1775644926203'], + ], + [ + 'name' => 'endDate', + 'in' => 'query', + 'schema' => ['description' => '需要对某个时间段进行成本分析的结束时间', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1759975856382'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult>', + 'description' => 'PopResult>', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0FC8BA40-C712-5FFD-9AA5-24C8F47F86E9'], + 'httpCode' => ['description' => '业务成功与否。如果非空且不是 200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'data' => [ + 'description' => '返回结果。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'name' => ['description' => '项目名称', 'type' => 'string', 'example' => 'projectAbc'], + ], + ], ], ], ], ], ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'title' => '获取需要进行成本分析的实例列表', + 'summary' => '获取需要对某个时间段进行成本分析的实例列表', + 'description' => '获取需要进行成本分析的项目', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0FC8BA40-C712-5FFD-9AA5-24C8F47F86E9\\",\\n \\"httpCode\\": 200,\\n \\"data\\": [\\n {\\n \\"name\\": \\"projectAbc\\"\\n }\\n ]\\n}","type":"json"}]', ], 'ListJobInfos' => [ 'summary' => '查看作业列表', 'path' => '/api/v1/jobs', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -10563,73 +6350,38 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '165874', - 'abilityTreeNodes' => [ - 'FEATUREodpsDUKRZ1', - ], + 'abilityTreeNodes' => ['FEATUREodpsDUKRZ1'], ], 'parameters' => [ [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户id', - 'type' => 'string', - 'required' => false, - 'example' => '478403690625249', - ], + 'schema' => ['description' => '租户id', 'type' => 'string', 'required' => false, 'example' => '478403690625249'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域id。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => '地域id。', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai'], ], [ 'name' => 'orderColumn', 'in' => 'query', - 'schema' => [ - 'description' => '排序列', - 'type' => 'string', - 'required' => false, - 'example' => 'cuUsage', - ], + 'schema' => ['description' => '排序列', 'type' => 'string', 'required' => false, 'example' => 'cuUsage'], ], [ 'name' => 'ascOrder', 'in' => 'query', - 'schema' => [ - 'description' => '升序or降序', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'true', - ], + 'schema' => ['description' => '升序or降序', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'], ], [ 'name' => 'pageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '分页页码。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '分页页码。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回数目', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '每页返回数目', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], [ 'name' => 'body', @@ -10639,159 +6391,82 @@ 'description' => '请求体参数', 'type' => 'object', 'properties' => [ - 'from' => [ - 'description' => '起始时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1672112000', - ], - 'to' => [ - 'description' => '截止时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1672112130', - ], - 'quotaNickname' => [ - 'description' => '配额(Quota)昵称', - 'type' => 'string', - 'required' => false, - 'example' => 'quota_nickname', - ], + 'from' => ['description' => '起始时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1672112000'], + 'to' => ['description' => '截止时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1672112130'], + 'quotaNickname' => ['description' => '配额(Quota)昵称', 'type' => 'string', 'required' => false, 'example' => 'quota_nickname'], 'projectList' => [ 'description' => '项目名称', 'type' => 'array', - 'items' => [ - 'description' => '项目名称', - 'type' => 'string', - 'required' => false, - 'example' => 'projectA', - ], + 'items' => ['description' => '项目名称', 'type' => 'string', 'required' => false, 'example' => 'projectA'], 'required' => false, ], 'typeList' => [ 'description' => '作业类型', 'type' => 'array', - 'items' => [ - 'description' => '作业类型', - 'type' => 'string', - 'required' => false, - 'example' => 'SQL', - ], + 'items' => ['description' => '作业类型', 'type' => 'string', 'required' => false, 'example' => 'SQL'], 'required' => false, ], 'jobOwnerList' => [ 'description' => '作业owner', 'type' => 'array', - 'items' => [ - 'description' => '作业owner', - 'type' => 'string', - 'required' => false, - 'example' => 'ALIYUN$7632***@aliyun.com', - ], + 'items' => ['description' => '作业owner', 'type' => 'string', 'required' => false, 'example' => 'ALIYUN$7632***@aliyun.com'], 'required' => false, ], 'signatureList' => [ 'description' => '作业签名', 'type' => 'array', - 'items' => [ - 'description' => '作业签名', - 'type' => 'string', - 'required' => false, - 'example' => 'signatureabc', - ], + 'items' => ['description' => '作业签名', 'type' => 'string', 'required' => false, 'example' => 'signatureabc'], 'required' => false, ], 'extNodeIdList' => [ 'description' => '上游节点ID', 'type' => 'array', - 'items' => [ - 'description' => '上游节点ID', - 'type' => 'string', - 'required' => false, - 'example' => '76358164', - ], + 'items' => ['description' => '上游节点ID', 'type' => 'string', 'required' => false, 'example' => '76358164'], 'required' => false, ], 'instanceIdList' => [ 'description' => '作业实例(Instance)Id', 'type' => 'array', - 'items' => [ - 'description' => '作业实例(Instance)Id', - 'type' => 'string', - 'required' => false, - 'example' => '20241028****jkl', - ], + 'items' => ['description' => '作业实例(Instance)Id', 'type' => 'string', 'required' => false, 'example' => '20241028****jkl'], 'required' => false, ], 'statusList' => [ 'description' => '作业状态', 'type' => 'array', - 'items' => [ - 'description' => '作业状态', - 'type' => 'string', - 'required' => false, - 'example' => 'running', - ], + 'items' => ['description' => '作业状态', 'type' => 'string', 'required' => false, 'example' => 'running'], 'required' => false, ], 'priorityList' => [ 'description' => '作业优先级', 'type' => 'array', - 'items' => [ - 'description' => '作业优先级', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '0', - ], + 'items' => ['description' => '作业优先级', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '0'], 'required' => false, ], 'sortByList' => [ 'description' => '多列排序字段', 'type' => 'array', - 'items' => [ - 'description' => '多列排序字段', - 'type' => 'string', - 'required' => false, - 'example' => 'cuUsage', - ], + 'items' => ['description' => '多列排序字段', 'type' => 'string', 'required' => false, 'example' => 'cuUsage'], 'required' => false, ], 'sortOrderList' => [ 'description' => '多列排序方式', 'type' => 'array', - 'items' => [ - 'description' => '多列排序方式', - 'type' => 'string', - 'required' => false, - 'example' => 'desc', - ], + 'items' => ['description' => '多列排序方式', 'type' => 'string', 'required' => false, 'example' => 'desc'], 'required' => false, ], 'sceneTagList' => [ 'description' => '智能诊断标签', 'type' => 'array', - 'items' => [ - 'description' => '智能诊断标签', - 'type' => 'string', - 'required' => false, - 'example' => 'SubscriptionLackResource', - ], + 'items' => ['description' => '智能诊断标签', 'type' => 'string', 'required' => false, 'example' => 'SubscriptionLackResource'], 'required' => false, ], 'extNodeNameList' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'taskNameList' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], 'required' => false, @@ -10805,39 +6480,15 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc13a9516807484336515320e38f5', - ], - 'httpCode' => [ - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc13a9516807484336515320e38f5'], + 'httpCode' => ['description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], 'data' => [ 'description' => '返回结果。', 'type' => 'object', 'properties' => [ - 'totalCount' => [ - 'description' => '返回结果的总数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '64', - ], - 'pageNumber' => [ - 'description' => '当前页码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'pageSize' => [ - 'description' => '每页显示条数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], + 'totalCount' => ['description' => '返回结果的总数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '64'], + 'pageNumber' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'pageSize' => ['description' => '每页显示条数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], 'jobInfoList' => [ 'description' => '作业信息列表', 'type' => 'array', @@ -10845,152 +6496,33 @@ 'description' => '作业信息', 'type' => 'object', 'properties' => [ - 'tenantId' => [ - 'description' => '租户ID', - 'type' => 'string', - 'example' => '213065738244354', - ], - 'region' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-shanghai', - ], - 'cluster' => [ - 'description' => '集群id', - 'type' => 'string', - 'example' => 'AY20A', - ], - 'instanceId' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'example' => '20230410050036549gfmsdwf60gg', - ], - 'jobOwner' => [ - 'description' => '提交作业的账号', - 'type' => 'string', - 'example' => 'ALIYUN$xxx@test.aliyunid.com', - ], - 'project' => [ - 'description' => 'maxcompute项目名称', - 'type' => 'string', - 'example' => 'openrec_new', - ], - 'jobType' => [ - 'description' => '作业类型', - 'type' => 'string', - 'example' => 'SQL', - ], - 'priority' => [ - 'description' => '优先级', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'status' => [ - 'description' => '状态', - 'type' => 'string', - 'example' => 'running', - ], - 'quotaNickname' => [ - 'description' => '作业使用的配额昵称', - 'type' => 'string', - 'example' => 'my_quota', - ], - 'quotaType' => [ - 'description' => 'quota类型', - 'type' => 'string', - 'example' => 'subscription', - ], - 'cuUsage' => [ - 'description' => 'cu使用总量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'memoryUsage' => [ - 'description' => '内存使用总量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '40', - ], - 'cuSnapshot' => [ - 'description' => '作业的cu快照占比', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.48', - ], - 'memorySnapshot' => [ - 'description' => '作业的内存快照占比', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.42', - ], - 'statusSnapshot' => [ - 'description' => '作业快照状态', - 'type' => 'string', - 'example' => 'running', - ], - 'submittedAtTime' => [ - 'description' => '作业的提交时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1672112013', - ], - 'waitingTime' => [ - 'description' => '等待时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'runningAtTime' => [ - 'description' => '作业的开始运行时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1672112113', - ], - 'runningTime' => [ - 'description' => '运行时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '800', - ], - 'endAtTime' => [ - 'description' => '运行结束时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'totalTime' => [ - 'description' => '总运行时长', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '900', - ], - 'signature' => [ - 'description' => 'sql签名', - 'type' => 'string', - 'example' => 'i094KijGrN3kOXZ74kbexB77XQY=', - ], - 'extPlantFrom' => [ - 'description' => '上游平台', - 'type' => 'string', - 'example' => 'platform_3', - ], - 'extNodeId' => [ - 'description' => 'DataWorks节点ID', - 'type' => 'string', - 'example' => 'node_4', - ], - 'extNodeOnDuty' => [ - 'description' => '执行责任人', - 'type' => 'string', - 'example' => 'duty_2', - ], - 'tags' => [ - 'description' => '标签', - 'type' => 'string', - 'example' => '[]', - ], + 'tenantId' => ['description' => '租户ID', 'type' => 'string', 'example' => '213065738244354'], + 'region' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-shanghai'], + 'cluster' => ['description' => '集群id', 'type' => 'string', 'example' => 'AY20A'], + 'instanceId' => ['description' => '实例ID。'."\n", 'type' => 'string', 'example' => '20230410050036549gfmsdwf60gg'], + 'jobOwner' => ['description' => '提交作业的账号', 'type' => 'string', 'example' => 'ALIYUN$xxx@test.aliyunid.com'], + 'project' => ['description' => 'maxcompute项目名称', 'type' => 'string', 'example' => 'openrec_new'], + 'jobType' => ['description' => '作业类型', 'type' => 'string', 'example' => 'SQL'], + 'priority' => ['description' => '优先级', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'status' => ['description' => '状态', 'type' => 'string', 'example' => 'running'], + 'quotaNickname' => ['description' => '作业使用的配额昵称', 'type' => 'string', 'example' => 'my_quota'], + 'quotaType' => ['description' => 'quota类型', 'type' => 'string', 'example' => 'subscription'], + 'cuUsage' => ['description' => 'cu使用总量', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'memoryUsage' => ['description' => '内存使用总量', 'type' => 'integer', 'format' => 'int64', 'example' => '40'], + 'cuSnapshot' => ['description' => '作业的cu快照占比', 'type' => 'number', 'format' => 'double', 'example' => '0.48'], + 'memorySnapshot' => ['description' => '作业的内存快照占比', 'type' => 'number', 'format' => 'double', 'example' => '0.42'], + 'statusSnapshot' => ['description' => '作业快照状态', 'type' => 'string', 'example' => 'running'], + 'submittedAtTime' => ['description' => '作业的提交时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1672112013'], + 'waitingTime' => ['description' => '等待时间', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'runningAtTime' => ['description' => '作业的开始运行时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1672112113'], + 'runningTime' => ['description' => '运行时间', 'type' => 'integer', 'format' => 'int64', 'example' => '800'], + 'endAtTime' => ['description' => '运行结束时间', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'totalTime' => ['description' => '总运行时长', 'type' => 'integer', 'format' => 'int64', 'example' => '900'], + 'signature' => ['description' => 'sql签名', 'type' => 'string', 'example' => 'i094KijGrN3kOXZ74kbexB77XQY='], + 'extPlantFrom' => ['description' => '上游平台', 'type' => 'string', 'example' => 'platform_3'], + 'extNodeId' => ['description' => 'DataWorks节点ID', 'type' => 'string', 'example' => 'node_4'], + 'extNodeOnDuty' => ['description' => '执行责任人', 'type' => 'string', 'example' => 'duty_2'], + 'tags' => ['description' => '标签', 'type' => 'string', 'example' => '[]'], 'sceneResults' => [ 'description' => '智能诊断结果。', 'type' => 'array', @@ -10998,58 +6530,23 @@ 'description' => '智能诊断结果。', 'type' => 'object', 'properties' => [ - 'sceneTag' => [ - 'description' => '智能诊断结果标签。', - 'type' => 'string', - 'example' => 'SubscriptionLackResource', - ], - 'scene' => [ - 'description' => '智能诊断结果场景。', - 'type' => 'string', - 'example' => 'LackResource', - ], - 'type' => [ - 'description' => '智能诊断结果类型。', - 'type' => 'string', - 'example' => 'warning', - ], - 'summary' => [ - 'description' => '智能诊断结果简述。', - 'type' => 'string', - 'example' => 'Insufficient computing resources available for the job. Click to view details.', - ], - 'description' => [ - 'description' => '智能诊断结果详情。', - 'type' => 'string', - 'example' => 'This job uses annual and monthly computing resources. It may be that the job is waiting for resources due to the large amount of overall job running data, many resources requested, and low job priority. Please go to Resource Consumption to view the specific situation. You can also go to Cost Optimization to see if you need to adjust resource configuration.', - ], + 'sceneTag' => ['description' => '智能诊断结果标签。', 'type' => 'string', 'example' => 'SubscriptionLackResource'], + 'scene' => ['description' => '智能诊断结果场景。', 'type' => 'string', 'example' => 'LackResource'], + 'type' => ['description' => '智能诊断结果类型。', 'type' => 'string', 'example' => 'warning'], + 'summary' => ['description' => '智能诊断结果简述。', 'type' => 'string', 'example' => 'Insufficient computing resources available for the job. Click to view details.'], + 'description' => ['description' => '智能诊断结果详情。', 'type' => 'string', 'example' => 'This job uses annual and monthly computing resources. It may be that the job is waiting for resources due to the large amount of overall job running data, many resources requested, and low job priority. Please go to Resource Consumption to view the specific situation. You can also go to Cost Optimization to see if you need to adjust resource configuration.'], 'params' => [ 'description' => '数据倾斜、数据膨胀节点信息。只有当诊断场景为数据倾斜、数据膨胀时返回此参数。', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '"jobinsight_data_skew_node": "Worker M1#10000_0"', - 'description' => '数据倾斜、数据膨胀节点信息。', - ], + 'additionalProperties' => ['type' => 'string', 'example' => '"jobinsight_data_skew_node": "Worker M1#10000_0"', 'description' => '数据倾斜、数据膨胀节点信息。'], ], ], ], ], - 'inputBytes' => [ - 'description' => '作业扫描量。单位byte。', - 'type' => 'number', - 'format' => 'double', - 'example' => '1234', - ], - 'extPlatformId' => [ - 'type' => 'string', - ], - 'extNodeName' => [ - 'type' => 'string', - ], - 'taskName' => [ - 'type' => 'string', - ], + 'inputBytes' => ['description' => '作业扫描量。单位byte。', 'type' => 'number', 'format' => 'double', 'example' => '1234'], + 'extPlatformId' => ['type' => 'string'], + 'extNodeName' => ['type' => 'string'], + 'taskName' => ['type' => 'string'], ], ], ], @@ -11063,12 +6560,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '500', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListJobInfos', - ], + ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListJobInfos'], ], ], 'ramActions' => [ @@ -11079,12 +6571,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -11093,12 +6580,8 @@ ], 'ListJobMetric' => [ 'path' => '/api/v1/jobs/metric', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -11108,32 +6591,18 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '261938', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], ], 'parameters' => [ [ 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '查询时间范围:开始时间。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1735534322', - ], + 'schema' => ['description' => '查询时间范围:开始时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1735534322'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '查询时间范围:结束时间。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1735536322', - ], + 'schema' => ['description' => '查询时间范围:结束时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1735536322'], ], [ 'name' => 'body', @@ -11147,14 +6616,7 @@ 'description' => '观测指标信息。', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'inputBytes' => 'inputBytes', - 'memory' => 'memory', - 'num' => 'num', - 'inputBytesPerCu' => 'inputBytesPerCu', - 'cpu' => 'cpu', - 'runningTime' => 'runningTime', - ], + 'enumValueTitles' => ['inputBytes' => 'inputBytes', 'memory' => 'memory', 'num' => 'num', 'inputBytesPerCu' => 'inputBytesPerCu', 'cpu' => 'cpu', 'runningTime' => 'runningTime'], 'example' => 'num', ], 'type' => [ @@ -11162,16 +6624,7 @@ 'type' => 'string', 'required' => false, 'enumValueTitles' => [ - 'p1' => '仅runningTime支持', - 'p99' => '仅runningTime支持', - 'total' => '仅num,cpu,memory,inputBytes,inputBytesPerCu支持', - 'min' => '仅runningTime支持', - 'avg' => '仅runningTime支持', - 'max' => '仅runningTime支持', - 'p5' => '仅runningTime支持', - 'p90' => '仅runningTime支持', - 'p50' => '仅runningTime支持', - 'p95' => '仅runningTime支持', + 'p1' => '仅runningTime支持', 'p99' => '仅runningTime支持', 'total' => '仅num,cpu,memory,inputBytes,inputBytesPerCu支持', 'min' => '仅runningTime支持', 'avg' => '仅runningTime支持', 'max' => '仅runningTime支持', 'p5' => '仅runningTime支持', 'p90' => '仅runningTime支持', 'p50' => '仅runningTime支持', 'p95' => '仅runningTime支持', 'p10' => '仅runningTime支持', ], 'example' => 'total', @@ -11179,23 +6632,13 @@ 'project' => [ 'description' => 'MaxCompute项目名称列表(用于过滤)。', 'type' => 'array', - 'items' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'project_a', - ], + 'items' => ['description' => '项目名称。', 'type' => 'string', 'required' => false, 'example' => 'project_a'], 'required' => false, ], 'quota' => [ 'description' => '作业使用的计算Quota昵称列表(用于过滤)。', 'type' => 'array', - 'items' => [ - 'description' => '计算Quota昵称。', - 'type' => 'string', - 'required' => false, - 'example' => 'os_PayAsYouGoQuota'."\n", - ], + 'items' => ['description' => '计算Quota昵称。', 'type' => 'string', 'required' => false, 'example' => 'os_PayAsYouGoQuota'."\n"], 'required' => false, ], 'period' => [ @@ -11203,10 +6646,7 @@ 'type' => 'integer', 'format' => 'int64', 'required' => false, - 'enumValueTitles' => [ - 3600 => '3600', - 86400 => '86400', - ], + 'enumValueTitles' => [3600 => '3600', 86400 => '86400'], 'example' => '3600', ], 'group' => [ @@ -11219,12 +6659,7 @@ .'>- status:按作业状态分组聚合。', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'quota' => 'quota', - 'project' => 'project', - 'type' => 'type', - 'status' => 'status', - ], + 'enumValueTitles' => ['quota' => 'quota', 'project' => 'project', 'type' => 'type', 'status' => 'status'], 'example' => 'project', ], ], @@ -11239,52 +6674,22 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0be3e0aa16667684362147582e038f', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'This object does not exist.', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0be3e0aa16667684362147582e038f'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This object does not exist.'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', 'properties' => [ - 'category' => [ - 'description' => '指标类型。', - 'type' => 'string', - 'example' => 'job', - ], - 'name' => [ - 'description' => '指标名称。', - 'type' => 'string', - 'example' => 'num', - ], - 'period' => [ - 'description' => '监控统计周期。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3600', - ], + 'category' => ['description' => '指标类型。', 'type' => 'string', 'example' => 'job'], + 'name' => ['description' => '指标名称。', 'type' => 'string', 'example' => 'num'], + 'period' => ['description' => '监控统计周期。', 'type' => 'integer', 'format' => 'int64', 'example' => '3600'], 'metrics' => [ 'description' => '指标详情。', 'type' => 'array', @@ -11295,13 +6700,9 @@ 'metric' => [ 'description' => '指标相关信息。', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'description' => '指标信息。'."\n" - ."\n" - .'> 可能值有:type,project,quota,group。', - 'example' => '"type": "total"', - ], + 'additionalProperties' => ['type' => 'string', 'description' => '指标信息。'."\n" + ."\n" + .'> 可能值有:type,project,quota,group。', 'example' => '"type": "total"'], ], 'values' => [ 'description' => '指标数值信息。', @@ -11309,12 +6710,7 @@ 'items' => [ 'description' => '指标数值列表。', 'type' => 'array', - 'items' => [ - 'description' => 'size为2的列表,第一列表示时间戳,第二列表示对应数值。', - 'type' => 'number', - 'format' => 'double', - 'example' => '1736679600, 3', - ], + 'items' => ['description' => 'size为2的列表,第一列表示时间戳,第二列表示对应数值。', 'type' => 'number', 'format' => 'double', 'example' => '1736679600, 3'], ], ], ], @@ -11338,12 +6734,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -11352,12 +6743,8 @@ 'ListJobSnapshotInfos' => [ 'summary' => '获取某个时间点的作业快照数据。', 'path' => '/api/v1/jobs/snapshot', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -11370,89 +6757,53 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '231738', - 'abilityTreeNodes' => [ - 'FEATUREodpsDUKRZ1', - ], + 'abilityTreeNodes' => ['FEATUREodpsDUKRZ1'], ], 'parameters' => [ [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择租户管理>租户属性查看。', - 'type' => 'string', - 'required' => false, - 'example' => '478403690625249', - ], + 'schema' => ['description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择租户管理>租户属性查看。', 'type' => 'string', 'required' => false, 'example' => '478403690625249'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-chengdu', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-chengdu'], ], [ 'name' => 'orderColumn', 'in' => 'query', - 'schema' => [ - 'description' => '排序列。支持:'."\n" - .'- submittedAtTime'."\n" - .'- waitingTime'."\n" - .'- runningAtTime'."\n" - .'- runningTime'."\n" - .'- snapshotTime'."\n" - .'- totalTime'."\n" - .'- cpuUsage '."\n" - .'- memoryUsage'."\n" - .'- minCpuPct'."\n" - .'- minMemoryPct'."\n" - .'- priority'."\n" - .'- cpuRequest'."\n" - .'- memoryRequest'."\n" - .'- cpuUsageToRequestRatio'."\n" - .'- memoryUsageToRequestRatio', - 'type' => 'string', - 'required' => false, - 'example' => 'cpuUsage', - 'default' => 'submittedAtTime', - ], + 'schema' => ['description' => '排序列。支持:'."\n" + .'- submittedAtTime'."\n" + .'- waitingTime'."\n" + .'- runningAtTime'."\n" + .'- runningTime'."\n" + .'- snapshotTime'."\n" + .'- totalTime'."\n" + .'- cpuUsage '."\n" + .'- memoryUsage'."\n" + .'- minCpuPct'."\n" + .'- minMemoryPct'."\n" + .'- priority'."\n" + .'- cpuRequest'."\n" + .'- memoryRequest'."\n" + .'- cpuUsageToRequestRatio'."\n" + .'- memoryUsageToRequestRatio', 'type' => 'string', 'required' => false, 'example' => 'cpuUsage', 'default' => 'submittedAtTime'], ], [ 'name' => 'ascOrder', 'in' => 'query', - 'schema' => [ - 'description' => '是否升序排列。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'false', - ], + 'schema' => ['description' => '是否升序排列。', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'false'], ], [ 'name' => 'pageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '分页页码。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '分页页码。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '分页大小,每页做多显示的返回结果数量。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '分页大小,每页做多显示的返回结果数量。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], [ 'name' => 'body', @@ -11462,136 +6813,68 @@ 'description' => '请求体参数。', 'type' => 'object', 'properties' => [ - 'from' => [ - 'description' => '起始时间戳。'."\n" - .'> 该参数无效。截止时间戳为需要查看的快照时间点。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1706840714', - ], - 'to' => [ - 'description' => '截止时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1706840714', - ], - 'quotaNickname' => [ - 'description' => '作业使用的计算Quota昵称。', - 'type' => 'string', - 'required' => false, - 'example' => 'quota_A', - ], + 'from' => ['description' => '起始时间戳。'."\n" + .'> 该参数无效。截止时间戳为需要查看的快照时间点。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1706840714'], + 'to' => ['description' => '截止时间戳。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1706840714'], + 'quotaNickname' => ['description' => '作业使用的计算Quota昵称。', 'type' => 'string', 'required' => false, 'example' => 'quota_A'], 'projectList' => [ 'description' => '项目名称。', 'type' => 'array', - 'items' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'projectA', - ], + 'items' => ['description' => '项目名称。', 'type' => 'string', 'required' => false, 'example' => 'projectA'], 'required' => false, ], 'typeList' => [ 'description' => '作业类型。', 'type' => 'array', - 'items' => [ - 'description' => '作业类型。', - 'type' => 'string', - 'required' => false, - 'example' => 'SQL', - ], + 'items' => ['description' => '作业类型。', 'type' => 'string', 'required' => false, 'example' => 'SQL'], 'required' => false, ], 'jobOwnerList' => [ 'description' => '作业owner。', 'type' => 'array', - 'items' => [ - 'description' => '作业owner。', - 'type' => 'string', - 'required' => false, - 'example' => 'ALIYUN$7632***@aliyun.com', - ], + 'items' => ['description' => '作业owner。', 'type' => 'string', 'required' => false, 'example' => 'ALIYUN$7632***@aliyun.com'], 'required' => false, ], 'signatureList' => [ 'description' => 'SQL作业签名。', 'type' => 'array', - 'items' => [ - 'description' => 'SQL作业签名。', - 'type' => 'string', - 'required' => false, - 'example' => 'signatureabc', - ], + 'items' => ['description' => 'SQL作业签名。', 'type' => 'string', 'required' => false, 'example' => 'signatureabc'], 'required' => false, ], 'extNodeIdList' => [ 'description' => '上游节点ID。', 'type' => 'array', - 'items' => [ - 'description' => '上游节点ID。', - 'type' => 'string', - 'required' => false, - 'example' => '76358164', - ], + 'items' => ['description' => '上游节点ID。', 'type' => 'string', 'required' => false, 'example' => '76358164'], 'required' => false, ], 'instanceIdList' => [ 'description' => '作业实例(Instance)Id。', 'type' => 'array', - 'items' => [ - 'description' => '作业实例(Instance)Id。', - 'type' => 'string', - 'required' => false, - 'example' => '20241028****jkl', - ], + 'items' => ['description' => '作业实例(Instance)Id。', 'type' => 'string', 'required' => false, 'example' => '20241028****jkl'], 'required' => false, ], 'statusList' => [ 'description' => '作业状态。', 'type' => 'array', - 'items' => [ - 'description' => '作业状态。', - 'type' => 'string', - 'required' => false, - 'example' => 'running', - ], + 'items' => ['description' => '作业状态。', 'type' => 'string', 'required' => false, 'example' => 'running'], 'required' => false, ], 'priorityList' => [ 'description' => '作业优先级。', 'type' => 'array', - 'items' => [ - 'description' => '作业优先级。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '9', - ], + 'items' => ['description' => '作业优先级。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '9'], 'required' => false, ], 'sortByList' => [ 'description' => '多列排序字段。', 'type' => 'array', - 'items' => [ - 'description' => '多列排序字段。', - 'type' => 'string', - 'required' => false, - 'example' => 'cuUsage', - ], + 'items' => ['description' => '多列排序字段。', 'type' => 'string', 'required' => false, 'example' => 'cuUsage'], 'required' => false, ], 'sortOrderList' => [ 'description' => '多列排序方式。', 'type' => 'array', - 'items' => [ - 'description' => '多列排序方式。', - 'type' => 'string', - 'required' => false, - 'example' => 'desc', - ], + 'items' => ['description' => '多列排序方式。', 'type' => 'string', 'required' => false, 'example' => 'desc'], 'required' => false, ], ], @@ -11606,32 +6889,15 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0b87b7e716665825896565060e87a4', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => '异常信息', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b87b7e716665825896565060e87a4'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'Exception information'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', @@ -11643,216 +6909,58 @@ 'description' => '作业快照信息。', 'type' => 'object', 'properties' => [ - 'tenantId' => [ - 'description' => '租户ID。', - 'type' => 'string', - 'example' => '213065738244354', - ], - 'region' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-chengdu', - ], - 'instanceId' => [ - 'description' => '作业ID。', - 'type' => 'string', - 'example' => '20241028****jkl', - ], - 'jobOwner' => [ - 'description' => '作业Owner。', - 'type' => 'string', - 'example' => 'ALIYUN$7632***@aliyun.com', - ], - 'project' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'example' => 'projectA', - ], - 'jobType' => [ - 'description' => '作业类型。', - 'type' => 'string', - 'example' => 'SQL', - ], - 'priority' => [ - 'description' => '作业优先级。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9', - ], - 'status' => [ - 'description' => '作业状态。'."\n" - ."\n" - .'> 快照作业状态只有running。', - 'type' => 'string', - 'example' => 'running', - ], - 'quotaNickname' => [ - 'description' => '作业使用的计算Quota昵称。', - 'type' => 'string', - 'example' => 'quota_A', - ], - 'quotaType' => [ - 'description' => 'Quota类型。', - 'type' => 'string', - 'example' => 'subscription', - ], - 'cpuUsage' => [ - 'description' => '作业在快照时间点的CPU使用量。单位:Core。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'memoryUsage' => [ - 'description' => '作业在快照时间点的内存使用量。单位:MB。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '409600', - ], - 'maxCpuPct' => [ - 'description' => '无需关注。', - 'type' => 'number', - 'format' => 'double', - 'example' => '-1', - ], - 'minCpuPct' => [ - 'description' => '包年包月作业在快照时间点的CPU使用占比(CPU使用量/(预留CPU保障+弹性预留CPU))。按量付费作业无此参数。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.6', - ], - 'maxMemoryPct' => [ - 'description' => '无需关注。', - 'type' => 'number', - 'format' => 'double', - 'example' => '-1', - ], - 'minMemoryPct' => [ - 'description' => '包年包月作业在观测时刻的内存使用占比(内存使用量/(预留内存保障+弹性预留内存))。按量付费作业无此参数。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.6', - ], - 'submittedAtTime' => [ - 'description' => '作业提交时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1736821785', - ], - 'waitingTime' => [ - 'description' => '等待时长。作业从提交时间到开始运行时间的时长。若暂无开始运行时间,则为提交时间到快照时间的时长。单位:s。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '20', - ], - 'runningAtTime' => [ - 'description' => '作业的开始运行时间。'."\n" - .'> 作业获取第一份计算资源的时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1736821805', - ], - 'runningTime' => [ - 'description' => '运行时长。作业从开始运行时间到快照时间点的时长。若暂无开始运行时间,则为空。单位:s。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '43', - ], - 'snapshotTime' => [ - 'description' => '快照时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1736821848', - ], - 'totalTime' => [ - 'description' => '总时长。作业从提交时间到快照时间点的时长。单位:s。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '63', - ], - 'signature' => [ - 'description' => 'SQL作业签名。', - 'type' => 'string', - 'example' => 'signatureabc', - ], - 'extPlantFrom' => [ - 'description' => '上游平台。', - 'type' => 'string', - 'example' => 'Dataworks', - ], - 'extNodeId' => [ - 'description' => '上游节点ID。', - 'type' => 'string', - 'example' => '76358164', - ], - 'extNodeOnDuty' => [ - 'description' => '任务负责人账号ID。', - 'type' => 'string', - 'example' => 'duty_2', - ], - 'cpuRequest' => [ - 'description' => '作业在快照时间点的CPU请求量。单位:Core。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '200', - ], - 'memoryRequest' => [ - 'description' => '作业在快照时间点的内存请求量。单位:MB。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '409600', - ], - 'cpuUsageToRequestRatio' => [ - 'description' => '作业在快照时间点的CPU满足率(CPU使用量/CPU请求量)。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.5', - ], - 'memoryUsageToRequestRatio' => [ - 'description' => '作业在快照时间点的内存满足率(内存使用量/内存请求量)。', - 'type' => 'number', - 'format' => 'double', - 'example' => '1', - ], - 'extPlatformId' => [ - 'type' => 'string', - ], + 'tenantId' => ['description' => '租户ID。', 'type' => 'string', 'example' => '213065738244354'], + 'region' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-chengdu'], + 'instanceId' => ['description' => '作业ID。', 'type' => 'string', 'example' => '20241028****jkl'], + 'jobOwner' => ['description' => '作业Owner。', 'type' => 'string', 'example' => 'ALIYUN$7632***@aliyun.com'], + 'project' => ['description' => '项目名称。', 'type' => 'string', 'example' => 'projectA'], + 'jobType' => ['description' => '作业类型。', 'type' => 'string', 'example' => 'SQL'], + 'priority' => ['description' => '作业优先级。', 'type' => 'integer', 'format' => 'int64', 'example' => '9'], + 'status' => ['description' => '作业状态。'."\n" + ."\n" + .'> 快照作业状态只有running。', 'type' => 'string', 'example' => 'running'], + 'quotaNickname' => ['description' => '作业使用的计算Quota昵称。', 'type' => 'string', 'example' => 'quota_A'], + 'quotaType' => ['description' => 'Quota类型。', 'type' => 'string', 'example' => 'subscription'], + 'cpuUsage' => ['description' => '作业在快照时间点的CPU使用量。单位:Core。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'memoryUsage' => ['description' => '作业在快照时间点的内存使用量。单位:MB。', 'type' => 'integer', 'format' => 'int64', 'example' => '409600'], + 'maxCpuPct' => ['description' => '无需关注。', 'type' => 'number', 'format' => 'double', 'example' => '-1'], + 'minCpuPct' => ['description' => '包年包月作业在快照时间点的CPU使用占比(CPU使用量/(预留CPU保障+弹性预留CPU))。按量付费作业无此参数。', 'type' => 'number', 'format' => 'double', 'example' => '0.6'], + 'maxMemoryPct' => ['description' => '无需关注。', 'type' => 'number', 'format' => 'double', 'example' => '-1'], + 'minMemoryPct' => ['description' => '包年包月作业在观测时刻的内存使用占比(内存使用量/(预留内存保障+弹性预留内存))。按量付费作业无此参数。', 'type' => 'number', 'format' => 'double', 'example' => '0.6'], + 'submittedAtTime' => ['description' => '作业提交时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1736821785'], + 'waitingTime' => ['description' => '等待时长。作业从提交时间到开始运行时间的时长。若暂无开始运行时间,则为提交时间到快照时间的时长。单位:s。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'], + 'runningAtTime' => ['description' => '作业的开始运行时间。'."\n" + .'> 作业获取第一份计算资源的时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1736821805'], + 'runningTime' => ['description' => '运行时长。作业从开始运行时间到快照时间点的时长。若暂无开始运行时间,则为空。单位:s。', 'type' => 'integer', 'format' => 'int64', 'example' => '43'], + 'snapshotTime' => ['description' => '快照时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1736821848'], + 'totalTime' => ['description' => '总时长。作业从提交时间到快照时间点的时长。单位:s。', 'type' => 'integer', 'format' => 'int64', 'example' => '63'], + 'signature' => ['description' => 'SQL作业签名。', 'type' => 'string', 'example' => 'signatureabc'], + 'extPlantFrom' => ['description' => '上游平台。', 'type' => 'string', 'example' => 'Dataworks'], + 'extNodeId' => ['description' => '上游节点ID。', 'type' => 'string', 'example' => '76358164'], + 'extNodeOnDuty' => ['description' => '任务负责人账号ID。', 'type' => 'string', 'example' => 'duty_2'], + 'cpuRequest' => ['description' => '作业在快照时间点的CPU请求量。单位:Core。', 'type' => 'integer', 'format' => 'int64', 'example' => '200'], + 'memoryRequest' => ['description' => '作业在快照时间点的内存请求量。单位:MB。', 'type' => 'integer', 'format' => 'int64', 'example' => '409600'], + 'cpuUsageToRequestRatio' => ['description' => '作业在快照时间点的CPU满足率(CPU使用量/CPU请求量)。', 'type' => 'number', 'format' => 'double', 'example' => '0.5'], + 'memoryUsageToRequestRatio' => ['description' => '作业在快照时间点的内存满足率(内存使用量/内存请求量)。', 'type' => 'number', 'format' => 'double', 'example' => '1'], + 'extPlatformId' => ['type' => 'string'], ], ], ], - 'totalCount' => [ - 'description' => '返回结果的总数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'pageNumber' => [ - 'description' => '当前页码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'pageSize' => [ - 'description' => '每页记录数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], + 'totalCount' => ['description' => '返回结果的总数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'pageNumber' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'pageSize' => ['description' => '每页记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], ], ], ], ], ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7e716665825896565060e87a4\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"Exception information\\",\\n \\"data\\": {\\n \\"jobInfoList\\": [\\n {\\n \\"tenantId\\": \\"213065738244354\\",\\n \\"region\\": \\"cn-chengdu\\",\\n \\"instanceId\\": \\"20241028****jkl\\",\\n \\"jobOwner\\": \\"ALIYUN$7632***@aliyun.com\\",\\n \\"project\\": \\"projectA\\",\\n \\"jobType\\": \\"SQL\\",\\n \\"priority\\": 9,\\n \\"status\\": \\"running\\",\\n \\"quotaNickname\\": \\"quota_A\\",\\n \\"quotaType\\": \\"subscription\\",\\n \\"cpuUsage\\": 100,\\n \\"memoryUsage\\": 409600,\\n \\"maxCpuPct\\": -1,\\n \\"minCpuPct\\": 0.6,\\n \\"maxMemoryPct\\": -1,\\n \\"minMemoryPct\\": 0.6,\\n \\"submittedAtTime\\": 1736821785,\\n \\"waitingTime\\": 20,\\n \\"runningAtTime\\": 1736821805,\\n \\"runningTime\\": 43,\\n \\"snapshotTime\\": 1736821848,\\n \\"totalTime\\": 63,\\n \\"signature\\": \\"signatureabc\\",\\n \\"extPlantFrom\\": \\"Dataworks\\",\\n \\"extNodeId\\": \\"76358164\\",\\n \\"extNodeOnDuty\\": \\"duty_2\\",\\n \\"cpuRequest\\": 200,\\n \\"memoryRequest\\": 409600,\\n \\"cpuUsageToRequestRatio\\": 0.5,\\n \\"memoryUsageToRequestRatio\\": 1,\\n \\"extPlatformId\\": \\"\\"\\n }\\n ],\\n \\"totalCount\\": 123,\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10\\n }\\n}","type":"json"}]', 'title' => '获取作业快照列表', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListJobSnapshotInfos', - ], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListJobSnapshotInfos'], ], ], 'ramActions' => [ @@ -11863,27 +6971,95 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'ListMmsDataSourceConfigItems' => [ + 'path' => '/api/v1/mms/configItems', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '182995', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], + ], + 'parameters' => [ + [ + 'name' => 'sourceType', + 'in' => 'query', + 'schema' => ['description' => '数据源类型', 'type' => 'string', 'required' => true, 'example' => 'Hive'], + ], + [ + 'name' => 'lang', + 'in' => 'query', + 'schema' => ['description' => '指定配置项的描述语言,默认中文', 'type' => 'string', 'required' => false, 'example' => 'zh_CN', 'default' => 'zh_CN'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'ApiRes>', + 'description' => 'ApiRes>', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '688003E1-D1B4-5468-957E-2FFB3AC8D79B'], + 'data' => [ + 'description' => '返回数据', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'name' => ['description' => '配置项名字', 'type' => 'string', 'example' => 'MaxCompute Default Project'], + 'key' => ['description' => '配置项key', 'type' => 'string', 'example' => 'mc.default.project'], + 'desc' => ['description' => '配置描述', 'type' => 'string', 'example' => 'MaxCompute Default Project'], + 'placeHolder' => ['description' => '配置示例值', 'type' => 'string', 'example' => 'project'], + 'type' => ['description' => '配置项的数据类型', 'type' => 'string', 'example' => 'STRING'], + 'subType' => ['description' => 'type为file时,subType指定具体的文件类型,如.keytab', 'type' => 'string', 'example' => '.keytab'], + 'value' => ['description' => '配置值', 'type' => 'any', 'example' => 'p1=1/p2=abc'."\n"], + 'enums' => [ + 'description' => '配置值的枚举值', + 'type' => 'array', + 'items' => ['description' => '配置值的枚举值', 'type' => 'string', 'example' => 'A '], + ], + 'required' => ['description' => '是否是必有配置', 'type' => 'boolean', 'example' => 'true'], + 'group' => ['description' => '配置分组', 'type' => 'string', 'example' => 'group.basic'], + 'subItems' => ['description' => '配置子项', 'type' => 'object'], + ], + ], ], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7e716665825896565060e87a4\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"异常信息\\",\\n \\"data\\": {\\n \\"jobInfoList\\": [\\n {\\n \\"tenantId\\": \\"213065738244354\\",\\n \\"region\\": \\"cn-chengdu\\",\\n \\"instanceId\\": \\"20241028****jkl\\",\\n \\"jobOwner\\": \\"ALIYUN$7632***@aliyun.com\\",\\n \\"project\\": \\"projectA\\",\\n \\"jobType\\": \\"SQL\\",\\n \\"priority\\": 9,\\n \\"status\\": \\"running\\",\\n \\"quotaNickname\\": \\"quota_A\\",\\n \\"quotaType\\": \\"subscription\\",\\n \\"cpuUsage\\": 100,\\n \\"memoryUsage\\": 409600,\\n \\"maxCpuPct\\": -1,\\n \\"minCpuPct\\": 0.6,\\n \\"maxMemoryPct\\": -1,\\n \\"minMemoryPct\\": 0.6,\\n \\"submittedAtTime\\": 1736821785,\\n \\"waitingTime\\": 20,\\n \\"runningAtTime\\": 1736821805,\\n \\"runningTime\\": 43,\\n \\"snapshotTime\\": 1736821848,\\n \\"totalTime\\": 63,\\n \\"signature\\": \\"signatureabc\\",\\n \\"extPlantFrom\\": \\"Dataworks\\",\\n \\"extNodeId\\": \\"76358164\\",\\n \\"extNodeOnDuty\\": \\"duty_2\\",\\n \\"cpuRequest\\": 200,\\n \\"memoryRequest\\": 409600,\\n \\"cpuUsageToRequestRatio\\": 0.5,\\n \\"memoryUsageToRequestRatio\\": 1,\\n \\"extPlatformId\\": \\"\\"\\n }\\n ],\\n \\"totalCount\\": 123,\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10\\n }\\n}","type":"json"}]', + 'title' => '列出MMA数据源配置项', + 'summary' => 'ListMmsDataSourceConfigItems', + 'description' => '请确保在使用该接口前,已充分了解MaxCompute弹性预留CU的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/computing-pricing-1)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/computing-pricing-1)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"688003E1-D1B4-5468-957E-2FFB3AC8D79B\\",\\n \\"data\\": [\\n {\\n \\"name\\": \\"MaxCompute Default Project\\",\\n \\"key\\": \\"mc.default.project\\",\\n \\"desc\\": \\"MaxCompute Default Project\\",\\n \\"placeHolder\\": \\"project\\",\\n \\"type\\": \\"STRING\\",\\n \\"subType\\": \\".keytab\\",\\n \\"value\\": \\"p1=1/p2=abc\\\\n\\",\\n \\"enums\\": [\\n \\"A \\"\\n ],\\n \\"required\\": true,\\n \\"group\\": \\"group.basic\\",\\n \\"subItems\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n}","type":"json"}]', ], 'ListMmsDataSources' => [ 'summary' => '列出MMA数据源', 'path' => '/api/v1/mms/datasources', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -11896,20 +7072,13 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182985', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'name', 'in' => 'query', - 'schema' => [ - 'description' => '数据源名称', - 'type' => 'string', - 'required' => false, - 'example' => 'demo', - ], + 'schema' => ['description' => '数据源名称', 'type' => 'string', 'required' => false, 'example' => 'demo'], ], [ 'name' => 'type', @@ -11918,45 +7087,24 @@ 'description' => '数据源类型', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'HIVE' => 'HIVE', - 'BIGQUERY' => 'BIGQUERY', - 'MAXCOMPUTE' => 'MAXCOMPUTE', - ], + 'enumValueTitles' => ['HIVE' => 'HIVE', 'BIGQUERY' => 'BIGQUERY', 'MAXCOMPUTE' => 'MAXCOMPUTE'], 'example' => 'BIGQUERY', ], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-shanghai', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai'], ], [ 'name' => 'pageNum', 'in' => 'query', - 'schema' => [ - 'description' => '页码,不填查所有', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '页码,不填查所有', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回数目, 不填查所有', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '每页返回数目, 不填查所有', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], ], 'responses' => [ @@ -11966,21 +7114,12 @@ 'description' => '分页数据', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'C1F7715F-D316-5AB6-BD02-5241083F4003', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'C1F7715F-D316-5AB6-BD02-5241083F4003'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', 'properties' => [ - 'total' => [ - 'description' => '总记录数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '9', - ], + 'total' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '9'], 'objectList' => [ 'description' => '数据源列表', 'type' => 'array', @@ -11988,103 +7127,38 @@ 'description' => '数据源', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000015', - ], - 'region' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'name' => [ - 'description' => '数据源名', - 'type' => 'string', - 'example' => 'demo', - ], - 'dstProject' => [ - 'title' => '默认目标MaxCompoute项目', - 'description' => '默认目标MaxCompoute项目', - 'type' => 'string', - 'example' => 'mms_test', - ], + 'id' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000015'], + 'region' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'], + 'name' => ['description' => '数据源名', 'type' => 'string', 'example' => 'demo'], + 'dstProject' => ['title' => '默认目标MaxCompoute项目', 'description' => '默认目标MaxCompoute项目', 'type' => 'string', 'example' => 'mms_test'], 'dstProjects' => [ 'title' => '目标MaxCompute项目列表', 'description' => '目标MaxCompute项目列表', 'type' => 'array', - 'items' => [ - 'title' => '目标MaxCompute项目', - 'description' => '目标MaxCompute项目', - 'type' => 'string', - 'example' => 'mms_test', - ], + 'items' => ['title' => '目标MaxCompute项目', 'description' => '目标MaxCompute项目', 'type' => 'string', 'example' => 'mms_test'], ], 'type' => [ 'title' => 'HIVE, OSS, MAXCOMPUTE, MOCK, HIVE_OSS', 'description' => '数据源类型', 'type' => 'string', - 'enumValueTitles' => [ - 'HIVE' => 'HIVE', - 'BIGQUERY' => 'BIGQUERY', - 'MAXCOMPUTE' => 'MAXCOMPUTE', - ], + 'enumValueTitles' => ['HIVE' => 'HIVE', 'BIGQUERY' => 'BIGQUERY', 'MAXCOMPUTE' => 'MAXCOMPUTE'], 'example' => 'BIGQUERY', ], - 'networklink' => [ - 'description' => '"maxcompute网络连接ID":regioinID', - 'type' => 'string', - 'example' => 'vpc-2zebqp6uojhdla46677tl:cn-beijing'."\n", - ], - 'lastUpdateTime' => [ - 'description' => '元数据最新同步时间', - 'type' => 'string', - 'example' => '2024-12-17 15:44:17'."\n", - ], - 'dbNum' => [ - 'description' => '数据源中“库”的数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'tableNum' => [ - 'description' => '数据源中“表”的数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1000', - ], - 'partitionNum' => [ - 'description' => '数据源中“分区”的数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10000000', - ], - 'createTime' => [ - 'description' => '数据源创建时间', - 'type' => 'string', - 'example' => '2024-12-17 09:29:58'."\n" - ."\n", - ], + 'networklink' => ['description' => '"maxcompute网络连接ID":regioinID', 'type' => 'string', 'example' => 'vpc-2zebqp6uojhdla46677tl:cn-beijing'."\n"], + 'lastUpdateTime' => ['description' => '元数据最新同步时间', 'type' => 'string', 'example' => '2024-12-17 15:44:17'."\n"], + 'dbNum' => ['description' => '数据源中“库”的数量', 'type' => 'integer', 'format' => 'int32', 'example' => '3'], + 'tableNum' => ['description' => '数据源中“表”的数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'], + 'partitionNum' => ['description' => '数据源中“分区”的数量', 'type' => 'integer', 'format' => 'int32', 'example' => '10000000'], + 'createTime' => ['description' => '数据源创建时间', 'type' => 'string', 'example' => '2024-12-17 09:29:58'."\n" + ."\n"], 'status' => [ 'title' => 'STOPPED, STARTING, STARTED, STOPPING, START_FAILED, STOP_FAILED', 'description' => '数据源状态', 'type' => 'string', - 'enumValueTitles' => [ - 'STARTING' => 'STARTING', - 'STOPPED' => 'STOPPED', - 'STARTED' => 'STARTED', - 'START_FAILED' => 'START_FAILED', - 'STOPPING' => 'STOPPING', - 'STOP_FAILED' => 'STOP_FAILED', - ], + 'enumValueTitles' => ['STARTING' => 'STARTING', 'STOPPED' => 'STOPPED', 'STARTED' => 'STARTED', 'START_FAILED' => 'START_FAILED', 'STOPPING' => 'STOPPING', 'STOP_FAILED' => 'STOP_FAILED'], 'example' => 'STARTED', ], - 'errMsg' => [ - 'description' => 'status为START_FAILED或STOP_FAILED时,数据源实例“启动”或“关闭”失败的原因', - 'type' => 'string', - 'example' => 'unexpected exception'."\n", - ], + 'errMsg' => ['description' => 'status为START_FAILED或STOP_FAILED时,数据源实例“启动”或“关闭”失败的原因', 'type' => 'string', 'example' => 'unexpected exception'."\n"], 'config' => [ 'description' => '数据源相关配置', 'type' => 'array', @@ -12092,146 +7166,54 @@ 'description' => '数据源相关配置', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '配置名', - 'type' => 'string', - 'example' => '范围分区表迁移方式'."\n", - ], - 'key' => [ - 'description' => '配置的英文标识', - 'type' => 'string', - 'example' => 'bigquery.range.partition.migrate.type'."\n", - ], - 'desc' => [ - 'description' => '配置描述', - 'type' => 'string', - 'example' => '范围分区表迁移方式'."\n", - ], - 'placeHolder' => [ - 'description' => '配置示例值', - 'type' => 'string', - 'example' => 'Cluster or Partition'."\n", - ], + 'name' => ['description' => '配置名', 'type' => 'string', 'example' => 'Range partition table migration method'], + 'key' => ['description' => '配置的英文标识', 'type' => 'string', 'example' => 'bigquery.range.partition.migrate.type'."\n"], + 'desc' => ['description' => '配置描述', 'type' => 'string', 'example' => 'Range partition table migration method'], + 'placeHolder' => ['description' => '配置示例值', 'type' => 'string', 'example' => 'Cluster or Partition'."\n"], 'type' => [ 'description' => '配置类型:boolean, int, map, string, password, file', 'type' => 'string', - 'enumValueTitles' => [ - 'password' => 'password', - 'boolean' => 'boolean', - 'file' => 'file', - 'string' => 'string', - 'map' => 'map', - 'int' => 'int', - ], + 'enumValueTitles' => ['password' => 'password', 'boolean' => 'boolean', 'file' => 'file', 'string' => 'string', 'map' => 'map', 'int' => 'int'], 'example' => 'string', ], - 'subType' => [ - 'description' => 'type为file时,subType指定具体的文件类型,如.keytab', - 'type' => 'string', - 'example' => '.keytab', - ], - 'value' => [ - 'description' => '配置值', - 'type' => 'any', - 'example' => 'Partition'."\n", - ], + 'subType' => ['description' => 'type为file时,subType指定具体的文件类型,如.keytab', 'type' => 'string', 'example' => '.keytab'], + 'value' => ['description' => '配置值', 'type' => 'any', 'example' => 'Partition'."\n"], 'enums' => [ 'description' => '配置值的枚举值', 'type' => 'array', - 'items' => [ - 'description' => '配置值的枚举值', - 'type' => 'string', - 'example' => 'Partition', - ], - ], - 'required' => [ - 'description' => '是否是必有配置', - 'type' => 'boolean', - 'example' => 'true', - ], - 'group' => [ - 'description' => '配置分组', - 'type' => 'string', - 'example' => 'basic_group', + 'items' => ['description' => '配置值的枚举值', 'type' => 'string', 'example' => 'Partition'], ], + 'required' => ['description' => '是否是必有配置', 'type' => 'boolean', 'example' => 'true'], + 'group' => ['description' => '配置分组', 'type' => 'string', 'example' => 'basic_group'], ], ], ], - 'agentIsOnline' => [ - 'description' => '数据源实例或相关联的agent是否启动', - 'type' => 'boolean', - 'example' => 'true', - ], - 'tablesDoingNum' => [ - 'description' => '正在迁移的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '18', - ], - 'tablesDoneNum' => [ - 'description' => '迁移完成的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2323', - ], - 'tablesPartDoneNum' => [ - 'description' => '迁移部分完成的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '22', - ], - 'tablesFailedNum' => [ - 'description' => '迁移失败的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'partitionsDoingNum' => [ - 'description' => '正在迁移的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2332', - ], - 'partitionsDoneNum' => [ - 'description' => '迁移完成的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '23', - ], - 'partitionsFailedNum' => [ - 'description' => '迁移失败的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2323', - ], - 'scanId' => [ - 'description' => '同步元数据任务的ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000253'."\n", - ], + 'agentIsOnline' => ['description' => '数据源实例或相关联的agent是否启动', 'type' => 'boolean', 'example' => 'true'], + 'tablesDoingNum' => ['description' => '正在迁移的表', 'type' => 'integer', 'format' => 'int32', 'example' => '18'], + 'tablesDoneNum' => ['description' => '迁移完成的表', 'type' => 'integer', 'format' => 'int32', 'example' => '2323'], + 'tablesPartDoneNum' => ['description' => '迁移部分完成的表', 'type' => 'integer', 'format' => 'int32', 'example' => '22'], + 'tablesFailedNum' => ['description' => '迁移失败的表', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'partitionsDoingNum' => ['description' => '正在迁移的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '2332'], + 'partitionsDoneNum' => ['description' => '迁移完成的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '23'], + 'partitionsFailedNum' => ['description' => '迁移失败的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '2323'], + 'scanId' => ['description' => '同步元数据任务的ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1000253'."\n", 'title' => '“元数据更新”任务ID'], + 'scanStatus' => ['title' => '“元数据更新”任务状态'."\n" + .'1. DOING: 正在运行'."\n" + .'2. DONE: 成功'."\n" + .'3. FAILED: 失败', 'type' => 'string'], + 'scanErrMsg' => ['title' => '"元数据更新"任务失败原因', 'type' => 'string'], ], ], ], - 'pageNum' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'description' => '页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], + 'pageNum' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['description' => '页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], ], ], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C1F7715F-D316-5AB6-BD02-5241083F4003\\",\\n \\"data\\": {\\n \\"total\\": 9,\\n \\"objectList\\": [\\n {\\n \\"id\\": 2000015,\\n \\"region\\": \\"cn-beijing\\",\\n \\"name\\": \\"demo\\",\\n \\"dstProject\\": \\"mms_test\\",\\n \\"dstProjects\\": [\\n \\"mms_test\\"\\n ],\\n \\"type\\": \\"BIGQUERY\\",\\n \\"networklink\\": \\"vpc-2zebqp6uojhdla46677tl:cn-beijing\\\\n\\",\\n \\"lastUpdateTime\\": \\"2024-12-17 15:44:17\\\\n\\",\\n \\"dbNum\\": 3,\\n \\"tableNum\\": 1000,\\n \\"partitionNum\\": 10000000,\\n \\"createTime\\": \\"2024-12-17 09:29:58\\\\n\\\\n\\",\\n \\"status\\": \\"STARTED\\",\\n \\"errMsg\\": \\"unexpected exception\\\\n\\",\\n \\"config\\": [\\n {\\n \\"name\\": \\"范围分区表迁移方式\\\\n\\",\\n \\"key\\": \\"bigquery.range.partition.migrate.type\\\\n\\",\\n \\"desc\\": \\"范围分区表迁移方式\\\\n\\",\\n \\"placeHolder\\": \\"Cluster or Partition\\\\n\\",\\n \\"type\\": \\"string\\",\\n \\"subType\\": \\".keytab\\",\\n \\"value\\": \\"Partition\\\\n\\",\\n \\"enums\\": [\\n \\"Partition\\"\\n ],\\n \\"required\\": true,\\n \\"group\\": \\"basic_group\\"\\n }\\n ],\\n \\"agentIsOnline\\": true,\\n \\"tablesDoingNum\\": 18,\\n \\"tablesDoneNum\\": 2323,\\n \\"tablesPartDoneNum\\": 22,\\n \\"tablesFailedNum\\": 2,\\n \\"partitionsDoingNum\\": 2332,\\n \\"partitionsDoneNum\\": 23,\\n \\"partitionsFailedNum\\": 2323,\\n \\"scanId\\": 1000253\\n }\\n ],\\n \\"pageNum\\": 1,\\n \\"pageSize\\": 20\\n }\\n}","type":"json"}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"C1F7715F-D316-5AB6-BD02-5241083F4003\\",\\n \\"data\\": {\\n \\"total\\": 9,\\n \\"objectList\\": [\\n {\\n \\"id\\": 2000015,\\n \\"region\\": \\"cn-beijing\\",\\n \\"name\\": \\"demo\\",\\n \\"dstProject\\": \\"mms_test\\",\\n \\"dstProjects\\": [\\n \\"mms_test\\"\\n ],\\n \\"type\\": \\"BIGQUERY\\",\\n \\"networklink\\": \\"vpc-2zebqp6uojhdla46677tl:cn-beijing\\\\n\\",\\n \\"lastUpdateTime\\": \\"2024-12-17 15:44:17\\\\n\\",\\n \\"dbNum\\": 3,\\n \\"tableNum\\": 1000,\\n \\"partitionNum\\": 10000000,\\n \\"createTime\\": \\"2024-12-17 09:29:58\\\\n\\\\n\\",\\n \\"status\\": \\"STARTED\\",\\n \\"errMsg\\": \\"unexpected exception\\\\n\\",\\n \\"config\\": [\\n {\\n \\"name\\": \\"Range partition table migration method\\",\\n \\"key\\": \\"bigquery.range.partition.migrate.type\\\\n\\",\\n \\"desc\\": \\"Range partition table migration method\\",\\n \\"placeHolder\\": \\"Cluster or Partition\\\\n\\",\\n \\"type\\": \\"string\\",\\n \\"subType\\": \\".keytab\\",\\n \\"value\\": \\"Partition\\\\n\\",\\n \\"enums\\": [\\n \\"Partition\\"\\n ],\\n \\"required\\": true,\\n \\"group\\": \\"basic_group\\"\\n }\\n ],\\n \\"agentIsOnline\\": true,\\n \\"tablesDoingNum\\": 18,\\n \\"tablesDoneNum\\": 2323,\\n \\"tablesPartDoneNum\\": 22,\\n \\"tablesFailedNum\\": 2,\\n \\"partitionsDoingNum\\": 2332,\\n \\"partitionsDoneNum\\": 23,\\n \\"partitionsFailedNum\\": 2323,\\n \\"scanId\\": 1000253,\\n \\"scanStatus\\": \\"\\",\\n \\"scanErrMsg\\": \\"\\"\\n }\\n ],\\n \\"pageNum\\": 1,\\n \\"pageSize\\": 20\\n }\\n}","type":"json"}]', 'title' => '列出数据源', 'changeSet' => [], 'flowControl' => [ @@ -12245,12 +7227,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -12259,13 +7236,8 @@ 'ListMmsDbs' => [ 'summary' => '列出MMA数据源内的库', 'path' => '/api/v1/mms/datasources/{sourceId}/dbs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -12278,31 +7250,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182982', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000018', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000018'], ], [ 'name' => 'name', 'in' => 'query', - 'schema' => [ - 'description' => '数据源名称', - 'type' => 'string', - 'required' => false, - 'example' => 'demo', - ], + 'schema' => ['description' => '数据源名称', 'type' => 'string', 'required' => false, 'example' => 'demo'], ], [ 'name' => 'status', @@ -12311,14 +7270,7 @@ 'description' => '数据源状态', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'STARTING' => 'STARTING', - 'STARTTED' => 'STARTTED', - 'STOPPED' => 'STOPPED', - 'START_FAILED' => 'START_FAILED', - 'STOPPING' => 'STOPPING', - 'STOP_FAILED' => 'STOP_FAILED', - ], + 'enumValueTitles' => ['STARTING' => 'STARTING', 'STARTTED' => 'STARTTED', 'STOPPED' => 'STOPPED', 'START_FAILED' => 'START_FAILED', 'STOPPING' => 'STOPPING', 'STOP_FAILED' => 'STOP_FAILED'], 'example' => 'STARTED', ], ], @@ -12334,28 +7286,17 @@ 'description' => '库中数据行数', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'asc' => 'asc', - 'desc' => 'desc', - ], + 'enumValueTitles' => ['asc' => 'asc', 'desc' => 'desc'], 'example' => 'desc', ], 'size' => [ 'description' => '库中数据的大小', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'asc' => 'asc', - 'desc' => 'desc', - ], + 'enumValueTitles' => ['asc' => 'asc', 'desc' => 'desc'], 'example' => 'asc', ], - 'updateTime' => [ - 'description' => '更新时间', - 'type' => 'string', - 'required' => false, - 'example' => '2024-12-17 15:44:17', - ], + 'updateTime' => ['description' => '更新时间', 'type' => 'string', 'required' => false, 'example' => '2024-12-17 15:44:17'], ], 'required' => false, ], @@ -12363,24 +7304,12 @@ [ 'name' => 'pageNum', 'in' => 'query', - 'schema' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '每页记录的数量', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '每页记录的数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], ], 'responses' => [ @@ -12390,21 +7319,12 @@ 'description' => '返回值', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CF3F9978-260F-5204-94BE-30A4E6B54443', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'CF3F9978-260F-5204-94BE-30A4E6B54443'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', 'properties' => [ - 'total' => [ - 'description' => '总记录数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '13', - ], + 'total' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '13'], 'objectList' => [ 'description' => '库列表', 'type' => 'array', @@ -12412,179 +7332,44 @@ 'description' => '库信息', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '库ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1530', - ], - 'name' => [ - 'description' => '库名称', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'description' => [ - 'description' => '库描述', - 'type' => 'string', - 'example' => 'for mms test', - ], - 'owner' => [ - 'description' => '库所有者', - 'type' => 'string', - 'example' => 'System user', - ], - 'location' => [ - 'description' => '库的存储位置', - 'type' => 'string', - 'example' => ' hdfs://master-1-1.c-6fc187819ed6bae0.cn-shanghai.emr.aliyuncs.com:9000/user/hive/warehouse ', - ], - 'extra' => [ - 'description' => '以JSON格式存储的其他信息', - 'type' => 'string', - 'example' => '{}', - ], - 'tables' => [ - 'description' => '表的数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'tablesDoing' => [ - 'description' => '正在迁移的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'tablesDone' => [ - 'description' => '迁移完成的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'tablesPartDone' => [ - 'description' => '部分迁移完成的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'tablesFailed' => [ - 'description' => '失败的表', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'partitions' => [ - 'description' => '分区数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1000', - ], - 'partitionsDoing' => [ - 'description' => '正在迁移的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '400', - ], - 'partitionsDone' => [ - 'description' => '迁移完成的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'partitionsFailed' => [ - 'description' => '迁移失败的分区', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'sourceId' => [ - 'description' => '数据源ID。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000015', - ], - 'sourceName' => [ - 'description' => '数据源名', - 'type' => 'string', - 'example' => 'demo', - ], - 'size' => [ - 'description' => '库数据大小-单位Bytes', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2342342', - ], - 'numRows' => [ - 'description' => '库数据行数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '23232', - ], - 'updated' => [ - 'description' => '数据有否有更新', - 'type' => 'boolean', - 'example' => 'true', - ], - 'lastDdlTime' => [ - 'description' => 'Last DDL Time', - 'type' => 'string', - 'example' => '2024-12-17 15:44:42'."\n", - ], - 'createTime' => [ - 'description' => '在mms中创建的时间', - 'type' => 'string', - 'example' => '2024-12-17 15:44:42'."\n", - ], - 'updateTime' => [ - 'description' => '数据最新更新时间', - 'type' => 'string', - 'example' => '2024-12-17 15:44:42'."\n", - ], + 'id' => ['description' => '库ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1530'], + 'name' => ['description' => '库名称', 'type' => 'string', 'example' => 'mms_test'], + 'description' => ['description' => '库描述', 'type' => 'string', 'example' => 'for mms test'], + 'owner' => ['description' => '库所有者', 'type' => 'string', 'example' => 'System user'], + 'location' => ['description' => '库的存储位置', 'type' => 'string', 'example' => ' hdfs://master-1-1.c-6fc187819ed6bae0.cn-shanghai.emr.aliyuncs.com:9000/user/hive/warehouse '], + 'extra' => ['description' => '以JSON格式存储的其他信息', 'type' => 'string', 'example' => '{}'], + 'tables' => ['description' => '表的数量', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'tablesDoing' => ['description' => '正在迁移的表', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'tablesDone' => ['description' => '迁移完成的表', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'tablesPartDone' => ['description' => '部分迁移完成的表', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'tablesFailed' => ['description' => '失败的表', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'partitions' => ['description' => '分区数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'], + 'partitionsDoing' => ['description' => '正在迁移的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '400'], + 'partitionsDone' => ['description' => '迁移完成的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'partitionsFailed' => ['description' => '迁移失败的分区', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'sourceId' => ['description' => '数据源ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '2000015'], + 'sourceName' => ['description' => '数据源名', 'type' => 'string', 'example' => 'demo'], + 'size' => ['description' => '库数据大小-单位Bytes', 'type' => 'integer', 'format' => 'int64', 'example' => '2342342'], + 'numRows' => ['description' => '库数据行数', 'type' => 'integer', 'format' => 'int64', 'example' => '23232'], + 'updated' => ['description' => '数据有否有更新', 'type' => 'boolean', 'example' => 'true'], + 'lastDdlTime' => ['description' => 'Last DDL Time', 'type' => 'string', 'example' => '2024-12-17 15:44:42'."\n"], + 'createTime' => ['description' => '在mms中创建的时间', 'type' => 'string', 'example' => '2024-12-17 15:44:42'."\n"], + 'updateTime' => ['description' => '数据最新更新时间', 'type' => 'string', 'example' => '2024-12-17 15:44:42'."\n"], 'status' => [ 'title' => 'INIT, DOING, FAILED, DONE, PART_DONE', 'description' => '迁移状态:INIT, DOING, FAILED, DONE, PART_DONE', 'type' => 'string', - 'enumValueTitles' => [ - 'PART_DONE' => '部分完成', - 'INIT' => '未迁移', - 'DONE' => '完成', - 'DOING' => '正在迁移', - 'FAILED' => '失败', - ], + 'enumValueTitles' => ['PART_DONE' => '部分完成', 'INIT' => '未迁移', 'DONE' => '完成', 'DOING' => '正在迁移', 'FAILED' => '失败'], 'example' => 'DOING', ], - 'deleted' => [ - 'description' => '已经被删除', - 'type' => 'boolean', - 'example' => 'false', - ], - 'dstProjectName' => [ - 'title' => '目标MaxCompute项目名', - 'description' => '目标MaxCompute项目名', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'dstName' => [ - 'title' => '源“库”对应的MaxCompute schema. 目标MaxCompute项目没有开启schema层时,该值为null. 默认与源“库”名一致', - 'description' => '源“库”对应的MaxCompute schema. 目标MaxCompute项目没有开启schema层时,该值为null. 默认与源“库”名一致', - 'type' => 'string', - 'example' => 'default', - ], + 'deleted' => ['description' => '已经被删除', 'type' => 'boolean', 'example' => 'false'], + 'dstProjectName' => ['title' => '目标MaxCompute项目名', 'description' => '目标MaxCompute项目名', 'type' => 'string', 'example' => 'mms_test'], + 'dstName' => ['title' => '源“库”对应的MaxCompute schema. 目标MaxCompute项目没有开启schema层时,该值为null. 默认与源“库”名一致', 'description' => '源“库”对应的MaxCompute schema. 目标MaxCompute项目没有开启schema层时,该值为null. 默认与源“库”名一致', 'type' => 'string', 'example' => 'default'], ], ], ], - 'pageSize' => [ - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'pageNum' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], + 'pageSize' => ['description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'pageNum' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], ], @@ -12605,12 +7390,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -12619,13 +7399,8 @@ 'ListMmsJobs' => [ 'summary' => '获取迁移作业列表', 'path' => '/api/v1/mms/datasources/{sourceId}/jobs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -12638,71 +7413,38 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182977', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000002', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000002'], ], [ 'name' => 'name', 'in' => 'query', - 'schema' => [ - 'description' => '数据源名称', - 'type' => 'string', - 'required' => false, - 'example' => 'demo', - ], + 'schema' => ['description' => '数据源名称', 'type' => 'string', 'required' => false, 'example' => 'demo'], ], [ 'name' => 'srcDbName', 'in' => 'query', - 'schema' => [ - 'description' => '源库名', - 'type' => 'string', - 'required' => false, - 'example' => 'test_db_1', - ], + 'schema' => ['description' => '源库名', 'type' => 'string', 'required' => false, 'example' => 'test_db_1'], ], [ 'name' => 'srcTableName', 'in' => 'query', - 'schema' => [ - 'description' => '源表名', - 'type' => 'string', - 'required' => false, - 'example' => 'test_table_1', - ], + 'schema' => ['description' => '源表名', 'type' => 'string', 'required' => false, 'example' => 'test_table_1'], ], [ 'name' => 'dstDbName', 'in' => 'query', - 'schema' => [ - 'description' => '目标MaxCompute项目', - 'type' => 'string', - 'required' => false, - 'example' => 'mms_test', - ], + 'schema' => ['description' => '目标MaxCompute项目', 'type' => 'string', 'required' => false, 'example' => 'mms_test'], ], [ 'name' => 'dstTableName', 'in' => 'query', - 'schema' => [ - 'description' => '目标MaxcCompute表', - 'type' => 'string', - 'required' => false, - 'example' => 'test_table_1', - ], + 'schema' => ['description' => '目标MaxcCompute表', 'type' => 'string', 'required' => false, 'example' => 'test_table_1'], ], [ 'name' => 'status', @@ -12711,59 +7453,29 @@ 'description' => '迁移计划状态', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'INIT' => '未运行', - 'DONE' => '成功', - 'DOING' => '正在运行', - 'FAILED' => '运行失败', - ], + 'enumValueTitles' => ['INIT' => '未运行', 'DONE' => '成功', 'DOING' => '正在运行', 'FAILED' => '运行失败'], 'example' => 'DOING', ], ], [ 'name' => 'stopped', 'in' => 'query', - 'schema' => [ - 'description' => '作业是否被停止', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '作业是否被停止', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => 'false'], ], [ 'name' => 'timerId', 'in' => 'query', - 'schema' => [ - 'title' => 'timer id', - 'description' => 'timer id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['title' => 'timer id', 'description' => 'timer id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageNum', 'in' => 'query', - 'schema' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], [ 'name' => 'sorter.status', @@ -12772,10 +7484,7 @@ 'description' => '按照状态排序', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'asc' => '升序', - 'desc' => '降序', - ], + 'enumValueTitles' => ['asc' => '升序', 'desc' => '降序'], 'example' => 'desc', ], ], @@ -12787,21 +7496,12 @@ 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '1112E7C7-C65F-57A2-A7C7-3B178AA257B6', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1112E7C7-C65F-57A2-A7C7-3B178AA257B6'], 'data' => [ 'description' => '返回数据详细信息', 'type' => 'object', 'properties' => [ - 'total' => [ - 'description' => '总记录数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], + 'total' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], 'objectList' => [ 'description' => '迁移作业列表', 'type' => 'array', @@ -12809,99 +7509,33 @@ 'description' => '迁移作业对象', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '迁移作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '18', - ], - 'name' => [ - 'description' => '迁移作业名字', - 'type' => 'string', - 'example' => 'migrate_db_1', - ], - 'sourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000015', - ], - 'dbId' => [ - 'description' => '源库ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '196', - ], - 'sourceName' => [ - 'description' => '数据源名', - 'type' => 'string', - 'example' => 'demo', - ], - 'srcDbName' => [ - 'description' => '源库名', - 'type' => 'string', - 'example' => 'test_db_1', - ], - 'srcSchemaName' => [ - 'description' => '源schema name-三层命名空间中的schema', - 'type' => 'string', - 'example' => 'test_table_1', - ], - 'dstDbName' => [ - 'description' => '目标MaxCompute项目', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'dstSchemaName' => [ - 'description' => '目标MaxCompute Schema', - 'type' => 'string', - 'example' => 'test_table_1', - ], + 'id' => ['description' => '迁移作业ID', 'type' => 'integer', 'format' => 'int64', 'example' => '18'], + 'name' => ['description' => '迁移作业名字', 'type' => 'string', 'example' => 'migrate_db_1'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000015'], + 'dbId' => ['description' => '源库ID', 'type' => 'integer', 'format' => 'int64', 'example' => '196'], + 'sourceName' => ['description' => '数据源名', 'type' => 'string', 'example' => 'demo'], + 'srcDbName' => ['description' => '源库名', 'type' => 'string', 'example' => 'test_db_1'], + 'srcSchemaName' => ['description' => '源schema name-三层命名空间中的schema', 'type' => 'string', 'example' => 'test_table_1'], + 'dstDbName' => ['description' => '目标MaxCompute项目', 'type' => 'string', 'example' => 'mms_test'], + 'dstSchemaName' => ['description' => '目标MaxCompute Schema', 'type' => 'string', 'example' => 'test_table_1'], 'status' => [ 'title' => 'INIT, DOING, FAILED, DONE', 'description' => '迁移作业状态', 'type' => 'string', - 'enumValueTitles' => [ - 'INIT' => '未开始运行', - 'DONE' => '完成', - 'DOING' => '运行中', - 'FAILED' => '运行失败', - ], + 'enumValueTitles' => ['INIT' => '未开始运行', 'DONE' => '完成', 'DOING' => '运行中', 'FAILED' => '运行失败'], 'example' => 'DONE', ], 'type' => [ 'title' => 'Database, Tables, Partitions', 'description' => '迁移范围:Database, Tables, Partitions', 'type' => 'string', - 'enumValueTitles' => [ - 'Partitions' => '多个分区', - 'Database' => '单库', - 'Tables' => '多个表', - ], + 'enumValueTitles' => ['Partitions' => '多个分区', 'Database' => '单库', 'Tables' => '多个表'], 'example' => 'Tables', ], - 'taskNum' => [ - 'description' => '包含的迁移任务数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'stopped' => [ - 'description' => '迁移作业是否被停止', - 'type' => 'boolean', - 'example' => 'false', - ], - 'createTime' => [ - 'description' => '迁移作业是否被停止', - 'type' => 'string', - 'example' => '2024-12-17 15:44:17'."\n", - ], - 'taskDone' => [ - 'description' => '迁移任务完成数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'taskNum' => ['description' => '包含的迁移任务数量', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'stopped' => ['description' => '迁移作业是否被停止', 'type' => 'boolean', 'example' => 'false'], + 'createTime' => ['description' => '迁移作业是否被停止', 'type' => 'string', 'example' => '2024-12-17 15:44:17'."\n"], + 'taskDone' => ['description' => '迁移任务完成数', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], 'config' => [ 'description' => '迁移作业的配置', 'type' => 'object', @@ -12909,137 +7543,69 @@ 'partitions' => [ 'description' => '当 type=Partitions时, 通过该参数指定要迁移表的分区ID列表', 'type' => 'array', - 'items' => [ - 'description' => '要迁移表的分区 ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '[123, 132]', - ], + 'items' => ['description' => '要迁移表的分区 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '[123, 132]'], ], 'tables' => [ 'description' => '当type=Tables时, 通过该参数指定要迁移的表的名称列表', 'type' => 'array', - 'items' => [ - 'description' => '要迁移的表的名称', - 'type' => 'string', - 'example' => '["student", "scores"]', - ], - ], - 'taskType' => [ - 'title' => 'MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS, HIVE_SPARK, BIGQUERY', - 'description' => 'Depcreated; 可以指定的值有'."\n" - .'MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS, HIVE_SPARK, BIGQUERY', - 'type' => 'string', - 'example' => 'BIGQUERY', + 'items' => ['description' => '要迁移的表的名称', 'type' => 'string', 'example' => '["student", "scores"]'], ], + 'taskType' => ['title' => 'MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS, HIVE_SPARK, BIGQUERY', 'description' => 'Depcreated; 可以指定的值有'."\n" + .'MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS, HIVE_SPARK, BIGQUERY', 'type' => 'string', 'example' => 'BIGQUERY'], 'tableBlackList' => [ 'description' => '当 type=Database时, 通过tableBlackList指定排除哪些表不迁移', 'type' => 'array', - 'items' => [ - 'description' => '当 type=Database 时, 要排查的表', - 'type' => 'string', - 'example' => '["student", "scores"]', - ], + 'items' => ['description' => '当 type=Database 时, 要排查的表', 'type' => 'string', 'example' => '["student", "scores"]'], ], 'tableWhiteList' => [ 'description' => '当 type=Database 时, 指定的要迁移的表列表。如果没有指定tableWhiteList,则迁移对应Database下的所有表', 'type' => 'array', - 'items' => [ - 'description' => '当 type=Database 时, 指定的要迁移的表。', - 'type' => 'string', - 'example' => '["student", "scores"]', - ], + 'items' => ['description' => '当 type=Database 时, 指定的要迁移的表。', 'type' => 'string', 'example' => '["student", "scores"]'], ], 'partitionFilters' => [ 'description' => '分区过滤表达式。 配置指定"表"对应的"分区过滤表达式"', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '{'."\n" - .'"student": "p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\')" '."\n" - .'}', - 'description' => '分区过滤表达式。例如:p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\'),介绍如下:'."\n" - ."\n" - .'p1、p2和p3均为分区名。'."\n" - ."\n" - .'分区值仅包含字符串和数字,字符串被双引号或单引号包裹。'."\n" - ."\n" - .'除INT和BIGINT类型的分区列值外,其他类型的分区值都只能取字符串值。'."\n" - ."\n" - .'比较操作符包括:>、>=、= 、<、<=、<>。'."\n" - ."\n" - .'分区过滤表达式支持IN操作符。'."\n" - ."\n" - .'逻辑操作符包括:AND和OR。'."\n" - ."\n" - .'支持使用括号。', - ], - ], - 'schemaOnly' => [ - 'description' => 'Depcreated', - 'type' => 'boolean', - 'example' => 'false', + 'additionalProperties' => ['type' => 'string', 'example' => '{'."\n" + .'"student": "p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\')" '."\n" + .'}', 'description' => '分区过滤表达式。例如:p1 >= \'2022-03-04\' and (p2 = 10 or p3 > 20) and p4 in (\'abc\', \'cde\'),介绍如下:'."\n" + ."\n" + .'p1、p2和p3均为分区名。'."\n" + ."\n" + .'分区值仅包含字符串和数字,字符串被双引号或单引号包裹。'."\n" + ."\n" + .'除INT和BIGINT类型的分区列值外,其他类型的分区值都只能取字符串值。'."\n" + ."\n" + .'比较操作符包括:>、>=、= 、<、<=、<>。'."\n" + ."\n" + .'分区过滤表达式支持IN操作符。'."\n" + ."\n" + .'逻辑操作符包括:AND和OR。'."\n" + ."\n" + .'支持使用括号。'], ], + 'schemaOnly' => ['description' => 'Depcreated', 'type' => 'boolean', 'example' => 'false'], 'tableMapping' => [ 'description' => '源表名->目标名 映射', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '{\'a\': \'a1\'}', - 'description' => '源表名->目标名 映射', - ], - ], - 'increment' => [ - 'description' => '增量迁移:只迁移新分区或有变动的分区,注意有变动的分区会被重迁', - 'type' => 'boolean', - 'example' => 'true', - ], - 'enableVerification' => [ - 'description' => '开启校验,目前校验方式是在源和目标端执行select count,对比行数', - 'type' => 'boolean', - 'example' => 'true', - ], - 'tunnelQuota' => [ - 'description' => 'Depcreated', - 'type' => 'string', - 'example' => 'Depcreated', + 'additionalProperties' => ['type' => 'string', 'example' => '{\'a\': \'a1\'}', 'description' => '源表名->目标名 映射'], ], + 'increment' => ['description' => '增量迁移:只迁移新分区或有变动的分区,注意有变动的分区会被重迁', 'type' => 'boolean', 'example' => 'true'], + 'enableVerification' => ['description' => '开启校验,目前校验方式是在源和目标端执行select count,对比行数', 'type' => 'boolean', 'example' => 'true'], + 'tunnelQuota' => ['description' => 'Depcreated', 'type' => 'string', 'example' => 'Depcreated'], 'columnMapping' => [ 'description' => '{源列名:目标列名}', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '{"c-1": "c_1"}', - 'description' => '{源列名:目标列名}', - ], - ], - 'others' => [ - 'description' => '其他配置信息', - 'type' => 'object', - 'example' => '{"spark.executor.mem": "2g"}', + 'additionalProperties' => ['type' => 'string', 'example' => '{"c-1": "c_1"}', 'description' => '{源列名:目标列名}'], ], + 'others' => ['description' => '其他配置信息', 'type' => 'object', 'example' => '{"spark.executor.mem": "2g"}'], ], ], - 'eta' => [ - 'description' => '期望的迁移完成时间. 注意:eta值越小,迁移任务的优先级会越高', - 'type' => 'string', - 'example' => '2025-05-06', - ], + 'eta' => ['description' => '期望的迁移完成时间. 注意:eta值越小,迁移任务的优先级会越高', 'type' => 'string', 'example' => '2025-05-06'], ], ], ], - 'pageNum' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'pageNum' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], ], ], ], @@ -13060,12 +7626,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -13074,13 +7635,8 @@ 'ListMmsPartitions' => [ 'summary' => '列出MMA数据源内的分区', 'path' => '/api/v1/mms/datasources/{sourceId}/partitions', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -13093,84 +7649,43 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182996', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '200018', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '200018'], ], [ 'name' => 'dbId', 'in' => 'query', - 'schema' => [ - 'description' => '库ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '2', - ], + 'schema' => ['description' => '库ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '2'], ], [ 'name' => 'dbName', 'in' => 'query', - 'schema' => [ - 'description' => '库名', - 'type' => 'string', - 'required' => false, - 'example' => 'd1', - ], + 'schema' => ['description' => '库名', 'type' => 'string', 'required' => false, 'example' => 'd1'], ], [ 'name' => 'updated', 'in' => 'query', - 'schema' => [ - 'description' => '过滤出元数据有更新的分区', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '过滤出元数据有更新的分区', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'tableName', 'in' => 'query', - 'schema' => [ - 'description' => '表名', - 'type' => 'string', - 'required' => false, - 'example' => 't1', - ], + 'schema' => ['description' => '表名', 'type' => 'string', 'required' => false, 'example' => 't1'], ], [ 'name' => 'tableId', 'in' => 'query', - 'schema' => [ - 'title' => '分区所在表的ID', - 'description' => '分区所在表的ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '20323', - ], + 'schema' => ['title' => '分区所在表的ID', 'description' => '分区所在表的ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '20323'], ], [ 'name' => 'value', 'in' => 'query', - 'schema' => [ - 'description' => '分区值', - 'type' => 'string', - 'required' => false, - 'example' => 'p1=1/p2=abc', - ], + 'schema' => ['description' => '分区值', 'type' => 'string', 'required' => false, 'example' => 'p1=1/p2=abc'], ], [ 'name' => 'status', @@ -13183,12 +7698,7 @@ 'description' => '迁移状态', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'INIT' => '未迁移', - 'DONE' => '迁移成功', - 'DOING' => '正在迁移', - 'FAILED' => '迁移失败', - ], + 'enumValueTitles' => ['INIT' => '未迁移', 'DONE' => '迁移成功', 'DOING' => '正在迁移', 'FAILED' => '迁移失败'], 'example' => '["DONE", "FAILED"]', ], 'required' => false, @@ -13197,44 +7707,22 @@ [ 'name' => 'lastDdlTimeStart', 'in' => 'query', - 'schema' => [ - 'description' => 'lastDdlTime最小值', - 'type' => 'string', - 'required' => false, - 'example' => '2024-12-17 15:44:42'."\n", - ], + 'schema' => ['description' => 'lastDdlTime最小值', 'type' => 'string', 'required' => false, 'example' => '2024-12-17 15:44:42'."\n"], ], [ 'name' => 'lastDdlTimeEnd', 'in' => 'query', - 'schema' => [ - 'description' => 'lastDdlTime最大值', - 'type' => 'string', - 'required' => false, - 'example' => '2024-12-17 19:44:42'."\n", - ], + 'schema' => ['description' => 'lastDdlTime最大值', 'type' => 'string', 'required' => false, 'example' => '2024-12-17 19:44:42'."\n"], ], [ 'name' => 'pageNum', 'in' => 'query', - 'schema' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '100', - ], + 'schema' => ['description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'], ], [ 'name' => 'sorter.numRows', @@ -13243,10 +7731,7 @@ 'description' => '按行数排序', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'asc' => '升序', - 'desc' => '降序', - ], + 'enumValueTitles' => ['asc' => '升序', 'desc' => '降序'], 'example' => 'desc', ], ], @@ -13257,10 +7742,7 @@ 'description' => '按数据量排序', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'asc' => '升序', - 'desc' => '降序', - ], + 'enumValueTitles' => ['asc' => '升序', 'desc' => '降序'], 'example' => 'asc', ], ], @@ -13271,10 +7753,7 @@ 'description' => '按lastDdlTime排序', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'asc' => '升序', - 'desc' => '降序', - ], + 'enumValueTitles' => ['asc' => '升序', 'desc' => '降序'], 'example' => 'desc', ], ], @@ -13286,21 +7765,12 @@ 'description' => '返回值', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'D9F872FD-5DDE-30A6-8C8A-1B8C6A81059F', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D9F872FD-5DDE-30A6-8C8A-1B8C6A81059F'], 'data' => [ 'description' => '数据', 'type' => 'object', 'properties' => [ - 'total' => [ - 'description' => '分区总数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1000', - ], + 'total' => ['description' => '分区总数', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'], 'objectList' => [ 'description' => '返回分区列表', 'type' => 'array', @@ -13308,124 +7778,35 @@ 'description' => '分区对象', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '分区ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2323', - ], - 'dbId' => [ - 'description' => '分区所在“库”的id, “库”在不同数据源中对应的元数据层级名称不同。'."\n" - .'如,在BigQuery,对应Dataset; 在Hive中对应Databse; 在Databricks中对应"Schema"; 在MaxCompute中对应"Schema"。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '196', - ], - 'tableId' => [ - 'description' => '表ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '23', - ], - 'dbName' => [ - 'description' => '库名。 “库”在不同数据源中对应的元数据层级名称不同。 如,在 BigQuery,对应 Dataset; 在 Hive 中对应 Databse; 在 Databricks 中对应"Schema"; 在 MaxCompute 中对应"Schema"。', - 'type' => 'string', - 'example' => 'd1', - ], - 'tableName' => [ - 'description' => '表名', - 'type' => 'string', - 'example' => 't1', - ], - 'value' => [ - 'description' => '分区值', - 'type' => 'string', - 'example' => 'p1=1/p2=abc'."\n", - ], - 'dstProjectName' => [ - 'title' => '目标MaxCompute项目名', - 'description' => '目标MaxCompute项目名', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'dstSchemaName' => [ - 'title' => '目标MaxCompute schema名,对于没有开启schema的MaxCompute项目,该值为空', - 'description' => '目标MaxCompute schema名,对于没有开启schema的MaxCompute项目,该值为空', + 'id' => ['description' => '分区ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2323'], + 'dbId' => ['description' => '分区所在“库”的id, “库”在不同数据源中对应的元数据层级名称不同。'."\n" + .'如,在BigQuery,对应Dataset; 在Hive中对应Databse; 在Databricks中对应"Schema"; 在MaxCompute中对应"Schema"。', 'type' => 'integer', 'format' => 'int64', 'example' => '196'], + 'tableId' => ['description' => '表ID', 'type' => 'integer', 'format' => 'int64', 'example' => '23'], + 'dbName' => ['description' => '库名。 “库”在不同数据源中对应的元数据层级名称不同。 如,在 BigQuery,对应 Dataset; 在 Hive 中对应 Databse; 在 Databricks 中对应"Schema"; 在 MaxCompute 中对应"Schema"。', 'type' => 'string', 'example' => 'd1'], + 'tableName' => ['description' => '表名', 'type' => 'string', 'example' => 't1'], + 'value' => ['description' => '分区值', 'type' => 'string', 'example' => 'p1=1/p2=abc'."\n"], + 'dstProjectName' => ['title' => '目标MaxCompute项目名', 'description' => '目标MaxCompute项目名', 'type' => 'string', 'example' => 'mms_test'], + 'dstSchemaName' => ['title' => '目标MaxCompute schema名,对于没有开启schema的MaxCompute项目,该值为空', 'description' => '目标MaxCompute schema名,对于没有开启schema的MaxCompute项目,该值为空', 'type' => 'string', 'example' => 'default'], + 'dstTableName' => ['title' => '目标MaxCompute表名', 'description' => '目标MaxCompute表名', 'type' => 'string', 'example' => 'default'], + 'dstValue' => ['title' => '目标MaxCompute分区值,默认与源分区值一致', 'description' => '目标MaxCompute分区值,默认与源分区值一致', 'type' => 'string', 'example' => 'p1=1/p2=abc'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '200018'], + 'sourceName' => ['description' => '数据源名称', 'type' => 'string', 'example' => 'demo'], + 'size' => ['description' => '数据量大小-单位Bytes', 'type' => 'integer', 'format' => 'int64', 'example' => '23223'], + 'numRows' => ['description' => '行数', 'type' => 'integer', 'format' => 'int64', 'example' => '2323'], + 'updated' => ['description' => '元数据是否有更新', 'type' => 'boolean', 'example' => 'false'], + 'lastDdlTime' => ['description' => 'lastDdlTime', 'type' => 'string', 'example' => '2024-12-17 15:44:42'."\n"], + 'status' => [ + 'title' => 'INIT, DOING, FAILED, DONE, PART_DONE', + 'description' => '迁移状态', 'type' => 'string', - 'example' => 'default', - ], - 'dstTableName' => [ - 'title' => '目标MaxCompute表名', - 'description' => '目标MaxCompute表名', - 'type' => 'string', - 'example' => 'default', - ], - 'dstValue' => [ - 'title' => '目标MaxCompute分区值,默认与源分区值一致', - 'description' => '目标MaxCompute分区值,默认与源分区值一致', - 'type' => 'string', - 'example' => 'p1=1/p2=abc', - ], - 'sourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '200018', - ], - 'sourceName' => [ - 'description' => '数据源名称', - 'type' => 'string', - 'example' => 'demo', - ], - 'size' => [ - 'description' => '数据量大小-单位Bytes', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '23223', - ], - 'numRows' => [ - 'description' => '行数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2323', - ], - 'updated' => [ - 'description' => '元数据是否有更新', - 'type' => 'boolean', - 'example' => 'false', - ], - 'lastDdlTime' => [ - 'description' => 'lastDdlTime', - 'type' => 'string', - 'example' => '2024-12-17 15:44:42'."\n", - ], - 'status' => [ - 'title' => 'INIT, DOING, FAILED, DONE, PART_DONE', - 'description' => '迁移状态', - 'type' => 'string', - 'enumValueTitles' => [ - 'INIT' => '未迁移', - 'DONE' => '迁移成功', - 'DOING' => '正在迁移', - 'FAILED' => '迁移失败', - ], - 'example' => 'DONE', + 'enumValueTitles' => ['INIT' => '未迁移', 'DONE' => '迁移成功', 'DOING' => '正在迁移', 'FAILED' => '迁移失败'], + 'example' => 'DONE', ], ], ], ], - 'pageNum' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'pageNum' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], ], ], ], @@ -13446,12 +7827,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -13460,13 +7836,8 @@ 'ListMmsTables' => [ 'summary' => '列出MMA数据源内的表', 'path' => '/api/v1/mms/datasources/{sourceId}/tables', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -13479,115 +7850,58 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182987', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000015', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ 'name' => 'onlyName', 'in' => 'query', - 'schema' => [ - 'description' => '只获取表的名字', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '只获取表的名字', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'dbId', 'in' => 'query', - 'schema' => [ - 'description' => '库ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '197', - ], + 'schema' => ['description' => '库ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '197'], ], [ 'name' => 'dbName', 'in' => 'query', - 'schema' => [ - 'description' => '库名', - 'type' => 'string', - 'required' => false, - 'example' => 'mms_test', - ], + 'schema' => ['description' => '库名', 'type' => 'string', 'required' => false, 'example' => 'mms_test'], ], [ 'name' => 'name', 'in' => 'query', - 'schema' => [ - 'description' => '表名', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['description' => '表名', 'type' => 'string', 'required' => false, 'example' => 'test'], ], [ 'name' => 'dstProjectName', 'in' => 'query', - 'schema' => [ - 'title' => '目标MaxCompute项目名', - 'description' => '目标MaxCompute项目名', - 'type' => 'string', - 'required' => false, - 'example' => 'mms_test', - ], + 'schema' => ['title' => '目标MaxCompute项目名', 'description' => '目标MaxCompute项目名', 'type' => 'string', 'required' => false, 'example' => 'mms_test'], ], [ 'name' => 'dstSchemaName', 'in' => 'query', - 'schema' => [ - 'title' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', - 'description' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'schema' => ['title' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', 'description' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', 'type' => 'string', 'required' => false, 'example' => 'default'], ], [ 'name' => 'dstName', 'in' => 'query', - 'schema' => [ - 'title' => '目标MaxCompute table', - 'description' => '目标MaxCompute table', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['title' => '目标MaxCompute table', 'description' => '目标MaxCompute table', 'type' => 'string', 'required' => false, 'example' => 'test'], ], [ 'name' => 'type', 'in' => 'query', - 'schema' => [ - 'description' => '表类型', - 'type' => 'string', - 'required' => false, - 'example' => 'MANAGED_TABLE', - ], + 'schema' => ['description' => '表类型', 'type' => 'string', 'required' => false, 'example' => 'MANAGED_TABLE'], ], [ 'name' => 'hasPartitions', 'in' => 'query', - 'schema' => [ - 'description' => '分区表', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '分区表', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ 'name' => 'status', @@ -13600,13 +7914,7 @@ 'description' => '迁移状态', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'PART_DONE' => '部分迁移成功', - 'INIT' => '未迁移', - 'DONE' => '迁移成功', - 'DOING' => '迁移中', - 'FAILED' => '迁移失败', - ], + 'enumValueTitles' => ['PART_DONE' => '部分迁移成功', 'INIT' => '未迁移', 'DONE' => '迁移成功', 'DOING' => '迁移中', 'FAILED' => '迁移失败'], 'example' => '["DONE", "FAILED"]', ], 'required' => false, @@ -13616,44 +7924,22 @@ [ 'name' => 'lastDdlTimeStart', 'in' => 'query', - 'schema' => [ - 'description' => 'lastDdlTime开始时间', - 'type' => 'string', - 'required' => false, - 'example' => '2024-12-17 15:44:42'."\n", - ], + 'schema' => ['description' => 'lastDdlTime开始时间', 'type' => 'string', 'required' => false, 'example' => '2024-12-17 15:44:42'."\n"], ], [ 'name' => 'lastDdlTimeEnd', 'in' => 'query', - 'schema' => [ - 'description' => 'lastDdlTime结束时间', - 'type' => 'string', - 'required' => false, - 'example' => '2024-12-19 15:44:42'."\n", - ], + 'schema' => ['description' => 'lastDdlTime结束时间', 'type' => 'string', 'required' => false, 'example' => '2024-12-19 15:44:42'."\n"], ], [ 'name' => 'pageNum', 'in' => 'query', - 'schema' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '分页大小。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '分页大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], [ 'name' => 'sorter.numRows', @@ -13662,10 +7948,7 @@ 'description' => '根据行数排序', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'asc' => '升序', - 'desc' => '降序', - ], + 'enumValueTitles' => ['asc' => '升序', 'desc' => '降序'], 'example' => 'desc', ], ], @@ -13676,10 +7959,7 @@ 'description' => '根据数据大小排序', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'asc' => '升序', - 'desc' => '降序', - ], + 'enumValueTitles' => ['asc' => '升序', 'desc' => '降序'], 'example' => 'asc'."\n", ], ], @@ -13690,10 +7970,7 @@ 'description' => '根据lastddltime排序', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'asc' => '升序', - 'desc' => '降序', - ], + 'enumValueTitles' => ['asc' => '升序', 'desc' => '降序'], 'example' => 'desc', ], ], @@ -13705,21 +7982,12 @@ 'description' => '返回值', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'E7FB14F1-4ACD-5C73-A755-B302D70AB9AD', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E7FB14F1-4ACD-5C73-A755-B302D70AB9AD'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', 'properties' => [ - 'total' => [ - 'description' => '总记录数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], + 'total' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], 'objectList' => [ 'description' => 'table列表', 'type' => 'array', @@ -13727,70 +7995,21 @@ 'description' => 'table信息', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => 'table ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1003476', - ], - 'dbId' => [ - 'description' => '库ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '196', - ], - 'dbName' => [ - 'description' => '库名', - 'type' => 'string', - 'example' => 'demo', - ], - 'name' => [ - 'description' => '表名', - 'type' => 'string', - 'example' => 'test', - ], - 'dstProjectName' => [ - 'title' => '目标MaxCompute项目名', - 'description' => '目标MaxCompute项目名', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'dstSchemaName' => [ - 'title' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', - 'description' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', - 'type' => 'string', - 'example' => 'default', - ], - 'dstName' => [ - 'title' => '目标MaxCompute table名,默认与源表名一致', - 'description' => '目标MaxCompute table名,默认与源表名一致', - 'type' => 'string', - 'example' => 'test', - ], - 'type' => [ - 'description' => '表类型', - 'type' => 'string', - 'example' => 'MANAGED_TABLE', - ], - 'hasPartitions' => [ - 'description' => '是不是分区表', - 'type' => 'boolean', - 'example' => 'true', - ], + 'id' => ['description' => 'table ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1003476'], + 'dbId' => ['description' => '库ID', 'type' => 'integer', 'format' => 'int64', 'example' => '196'], + 'dbName' => ['description' => '库名', 'type' => 'string', 'example' => 'demo'], + 'name' => ['description' => '表名', 'type' => 'string', 'example' => 'test'], + 'dstProjectName' => ['title' => '目标MaxCompute项目名', 'description' => '目标MaxCompute项目名', 'type' => 'string', 'example' => 'mms_test'], + 'dstSchemaName' => ['title' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', 'description' => '目标MaxCompute schema名,目标MaxCompute项目没有开启schema层时,该值为null', 'type' => 'string', 'example' => 'default'], + 'dstName' => ['title' => '目标MaxCompute table名,默认与源表名一致', 'description' => '目标MaxCompute table名,默认与源表名一致', 'type' => 'string', 'example' => 'test'], + 'type' => ['description' => '表类型', 'type' => 'string', 'example' => 'MANAGED_TABLE'], + 'hasPartitions' => ['description' => '是不是分区表', 'type' => 'boolean', 'example' => 'true'], 'schema' => [ 'description' => '表结构', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '表名', - 'type' => 'string', - 'example' => 'test', - ], - 'comment' => [ - 'description' => '表注释', - 'type' => 'string', - 'example' => 'for mms test', - ], + 'name' => ['description' => '表名', 'type' => 'string', 'example' => 'test'], + 'comment' => ['description' => '表注释', 'type' => 'string', 'example' => 'for mms test'], 'columns' => [ 'description' => '所有表普通列', 'type' => 'array', @@ -13798,31 +8017,11 @@ 'description' => '表普通列', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '列名', - 'type' => 'string', - 'example' => 'user_id', - ], - 'type' => [ - 'description' => '列类型', - 'type' => 'string', - 'example' => 'bigint', - ], - 'comment' => [ - 'description' => '列注释', - 'type' => 'string', - 'example' => 'user id', - ], - 'defaultValue' => [ - 'description' => '列默认值', - 'type' => 'string', - 'example' => '""', - ], - 'nullable' => [ - 'description' => '列是否可以为null', - 'type' => 'boolean', - 'example' => 'false', - ], + 'name' => ['description' => '列名', 'type' => 'string', 'example' => 'user_id'], + 'type' => ['description' => '列类型', 'type' => 'string', 'example' => 'bigint'], + 'comment' => ['description' => '列注释', 'type' => 'string', 'example' => 'user id'], + 'defaultValue' => ['description' => '列默认值', 'type' => 'string', 'example' => '""'], + 'nullable' => ['description' => '列是否可以为null', 'type' => 'boolean', 'example' => 'false'], ], ], ], @@ -13833,151 +8032,44 @@ 'description' => '分区列', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '列名', - 'type' => 'string', - 'example' => 'p1', - ], - 'type' => [ - 'description' => '列类型', - 'type' => 'string', - 'example' => 'string', - ], - 'comment' => [ - 'description' => '列注释', - 'type' => 'string', - 'example' => '第一分区', - ], - 'defaultValue' => [ - 'description' => '列默认值', - 'type' => 'string', - 'example' => 'abc', - ], - 'nullable' => [ - 'description' => '列是否为空', - 'type' => 'boolean', - 'example' => 'false', - ], + 'name' => ['description' => '列名', 'type' => 'string', 'example' => 'p1'], + 'type' => ['description' => '列类型', 'type' => 'string', 'example' => 'string'], + 'comment' => ['description' => '列注释', 'type' => 'string', 'example' => '第一分区'], + 'defaultValue' => ['description' => '列默认值', 'type' => 'string', 'example' => 'abc'], + 'nullable' => ['description' => '列是否为空', 'type' => 'boolean', 'example' => 'false'], ], ], ], ], ], - 'owner' => [ - 'description' => '表owner', - 'type' => 'string', - 'example' => 'Hive', - ], - 'location' => [ - 'description' => '表存储位置', - 'type' => 'string', - 'example' => '| hdfs://master-1-1.c-c127cd184bb029ea.cn-zhangjiakou.emr.aliyuncs.com:9000/user/hive/warehouse/demo', - ], - 'inputFormat' => [ - 'description' => 'inputFormat', - 'type' => 'string', - 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat ', - ], - 'outputFormat' => [ - 'description' => 'outputFormat', - 'type' => 'string', - 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat', - ], - 'serde' => [ - 'description' => 'serde', - 'type' => 'string', - 'example' => 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe', - ], - 'extra' => [ - 'description' => '以JSON格式存储的其他信息', - 'type' => 'string', - 'example' => '{"mapkey.delim":":","collection.delim":",","serialization.format":"|","field.delim":"|"} ', - ], - 'partitions' => [ - 'description' => '分区数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'partitionsDoing' => [ - 'description' => '正在迁移的分区数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'partitionsDone' => [ - 'description' => '迁移完成的分区数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '60', - ], - 'partitionsFailed' => [ - 'description' => '迁移失败的分区数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '40', - ], - 'sourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000028', - ], - 'sourceName' => [ - 'description' => '数据源名', - 'type' => 'string', - 'example' => 'demo ', - ], - 'size' => [ - 'description' => '数据大小-以Bytes为单位', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2985028', - ], - 'numRows' => [ - 'description' => '行数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '232323', - ], - 'updated' => [ - 'description' => '元数据是否有更新', - 'type' => 'boolean', - 'example' => 'true', - ], - 'lastDdlTime' => [ - 'description' => 'lastDdlTime', - 'type' => 'string', - 'example' => '2024-12-17 15:44:42'."\n", - ], + 'owner' => ['description' => '表owner', 'type' => 'string', 'example' => 'Hive'], + 'location' => ['description' => '表存储位置', 'type' => 'string', 'example' => '| hdfs://master-1-1.c-c127cd184bb029ea.cn-zhangjiakou.emr.aliyuncs.com:9000/user/hive/warehouse/demo'], + 'inputFormat' => ['description' => 'inputFormat', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat '], + 'outputFormat' => ['description' => 'outputFormat', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'], + 'serde' => ['description' => 'serde', 'type' => 'string', 'example' => 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'], + 'extra' => ['description' => '以JSON格式存储的其他信息', 'type' => 'string', 'example' => '{"mapkey.delim":":","collection.delim":",","serialization.format":"|","field.delim":"|"} '], + 'partitions' => ['description' => '分区数量', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'partitionsDoing' => ['description' => '正在迁移的分区数量', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'partitionsDone' => ['description' => '迁移完成的分区数量', 'type' => 'integer', 'format' => 'int32', 'example' => '60'], + 'partitionsFailed' => ['description' => '迁移失败的分区数量', 'type' => 'integer', 'format' => 'int32', 'example' => '40'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000028'], + 'sourceName' => ['description' => '数据源名', 'type' => 'string', 'example' => 'demo '], + 'size' => ['description' => '数据大小-以Bytes为单位', 'type' => 'integer', 'format' => 'int64', 'example' => '2985028'], + 'numRows' => ['description' => '行数', 'type' => 'integer', 'format' => 'int64', 'example' => '232323'], + 'updated' => ['description' => '元数据是否有更新', 'type' => 'boolean', 'example' => 'true'], + 'lastDdlTime' => ['description' => 'lastDdlTime', 'type' => 'string', 'example' => '2024-12-17 15:44:42'."\n"], 'status' => [ 'title' => 'INIT, DOING, FAILED, DONE, PART_DONE', 'description' => '迁移状态', 'type' => 'string', - 'enumValueTitles' => [ - 'PART_DONE' => '部分迁移成功', - 'INIT' => '未迁移', - 'DONE' => '迁移成功', - 'DOING' => '迁移中', - 'FAILED' => '迁移失败', - ], + 'enumValueTitles' => ['PART_DONE' => '部分迁移成功', 'INIT' => '未迁移', 'DONE' => '迁移成功', 'DOING' => '迁移中', 'FAILED' => '迁移失败'], 'example' => 'DONE', ], ], ], ], - 'pageNum' => [ - 'description' => '页', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], + 'pageNum' => ['description' => '页', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], ], ], ], @@ -13998,12 +8090,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -14012,13 +8099,8 @@ 'ListMmsTaskLogs' => [ 'summary' => '列出单个迁移任务的执行日志。', 'path' => '/api/v1/mms/datasources/{sourceId}/tasks/{taskId}/logs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -14031,32 +8113,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182978', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000015', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => '迁移任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '4032', - ], + 'schema' => ['description' => '迁移任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '4032'], ], ], 'responses' => [ @@ -14066,11 +8134,7 @@ 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'A3AE5649-EF90-54BD-86D0-C632FA950988', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'A3AE5649-EF90-54BD-86D0-C632FA950988'], 'data' => [ 'description' => '日志列表', 'type' => 'array', @@ -14078,56 +8142,20 @@ 'description' => '迁移任务日志对象', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '日志ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10000', - ], - 'sourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000015', - ], - 'taskId' => [ - 'description' => '迁移任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4023', - ], + 'id' => ['description' => '日志ID', 'type' => 'integer', 'format' => 'int64', 'example' => '10000'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000015'], + 'taskId' => ['description' => '迁移任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '4023'], 'status' => [ 'title' => 'INIT, SCHEMA_DOING, SCHEMA_DONE, SCHEMA_FAILED, DATA_DOING, DATA_DONE, DATA_FAILED, VERIFICATION_DOING, VERIFICATION_DONE, VERIFICATION_FAILED, DONE', 'description' => '迁移任务状态', 'type' => 'string', - 'enumValueTitles' => [ - 'INIT' => '待运行', - 'DATA_DONG' => '数据迁移成功', - 'DONE' => '成功', - 'SCHEMA_DONE' => '迁移schema成功', - 'SCHEMA_DOING' => '迁移schema中', - 'SCHEMA_FAILED' => '迁移schema失败', - 'DATA_DOING' => '数据迁移中', - 'DATA_FAILED' => '数据迁移失败', - ], + 'enumValueTitles' => ['INIT' => '待运行', 'DATA_DONG' => '数据迁移成功', 'DONE' => '成功', 'SCHEMA_DONE' => '迁移schema成功', 'SCHEMA_DOING' => '迁移schema中', 'SCHEMA_FAILED' => '迁移schema失败', 'DATA_DOING' => '数据迁移中', 'DATA_FAILED' => '数据迁移失败'], 'example' => 'DATA_DOING', ], - 'action' => [ - 'description' => '迁移任务做的操作', - 'type' => 'string', - 'example' => "\n" - .'create schema if not exists mms_test.default;', - ], - 'msg' => [ - 'description' => '迁移任务操作的结果', - 'type' => 'string', - 'example' => 'ok', - ], - 'createTime' => [ - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-12-17 15:44:00'."\n", - ], + 'action' => ['description' => '迁移任务做的操作', 'type' => 'string', 'example' => "\n" + .'create schema if not exists mms_test.default;'], + 'msg' => ['description' => '迁移任务操作的结果', 'type' => 'string', 'example' => 'ok'], + 'createTime' => ['description' => '创建时间', 'type' => 'string', 'example' => '2024-12-17 15:44:00'."\n"], ], ], ], @@ -14149,12 +8177,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -14163,13 +8186,8 @@ 'ListMmsTasks' => [ 'summary' => '获取迁移任务列表', 'path' => '/api/v1/mms/datasources/{sourceId}/tasks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -14182,82 +8200,43 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182975', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000028', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000028'], ], [ 'name' => 'jobId', 'in' => 'query', - 'schema' => [ - 'description' => '迁移作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '迁移作业ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], [ 'name' => 'jobName', 'in' => 'query', - 'schema' => [ - 'description' => '作业名称'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test1', - ], + 'schema' => ['description' => '作业名称'."\n", 'type' => 'string', 'required' => false, 'example' => 'test1'], ], [ 'name' => 'srcDbName', 'in' => 'query', - 'schema' => [ - 'description' => '源库名', - 'type' => 'string', - 'required' => false, - 'example' => 'test_db_1', - ], + 'schema' => ['description' => '源库名', 'type' => 'string', 'required' => false, 'example' => 'test_db_1'], ], [ 'name' => 'srcTableName', 'in' => 'query', - 'schema' => [ - 'description' => '源表名', - 'type' => 'string', - 'required' => false, - 'example' => 'test_table_1', - ], + 'schema' => ['description' => '源表名', 'type' => 'string', 'required' => false, 'example' => 'test_table_1'], ], [ 'name' => 'dstDbName', 'in' => 'query', - 'schema' => [ - 'description' => '目标MaxCompute项目', - 'type' => 'string', - 'required' => false, - 'example' => 'mms_test', - ], + 'schema' => ['description' => '目标MaxCompute项目', 'type' => 'string', 'required' => false, 'example' => 'mms_test'], ], [ 'name' => 'dstTableName', 'in' => 'query', - 'schema' => [ - 'description' => '目标MaxcCompute表', - 'type' => 'string', - 'required' => false, - 'example' => 'test_table_1', - ], + 'schema' => ['description' => '目标MaxcCompute表', 'type' => 'string', 'required' => false, 'example' => 'test_table_1'], ], [ 'name' => 'status', @@ -14267,16 +8246,7 @@ 'type' => 'string', 'required' => false, 'enumValueTitles' => [ - 'INIT' => '未执行', - 'DONE' => '成功', - 'VERIFICATION_FAILED' => '数据校验失败', - 'SCHEMA_DONE' => '迁移schema成功', - 'SCHEMA_DOING' => '迁移schema中', - 'VERIFICATION_DOING' => '数据校验中', - 'SCHEMA_FAILED' => '迁移schema失败', - 'VERIFICATION_DONE' => '数据校验成功', - 'DATA_DOING' => '迁移数据中', - 'DATA_DONE' => '迁移数据成功', + 'INIT' => '未执行', 'DONE' => '成功', 'VERIFICATION_FAILED' => '数据校验失败', 'SCHEMA_DONE' => '迁移schema成功', 'SCHEMA_DOING' => '迁移schema中', 'VERIFICATION_DOING' => '数据校验中', 'SCHEMA_FAILED' => '迁移schema失败', 'VERIFICATION_DONE' => '数据校验成功', 'DATA_DOING' => '迁移数据中', 'DATA_DONE' => '迁移数据成功', 'DATA_FAILED' => '迁移数据失败', ], 'example' => 'DATA_DOING', @@ -14285,34 +8255,17 @@ [ 'name' => 'partition', 'in' => 'query', - 'schema' => [ - 'description' => '分区值-通过分区值过滤迁移了某个分区值的迁移任务', - 'type' => 'string', - 'required' => false, - 'example' => 'p1=1/p2=abc', - ], + 'schema' => ['description' => '分区值-通过分区值过滤迁移了某个分区值的迁移任务', 'type' => 'string', 'required' => false, 'example' => 'p1=1/p2=abc'], ], [ 'name' => 'pageNum', 'in' => 'query', - 'schema' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], [ 'name' => 'sorter.startTime', @@ -14321,10 +8274,7 @@ 'description' => '根据开始运行时间排序', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'asc' => '升序', - 'desc' => '降序', - ], + 'enumValueTitles' => ['asc' => '升序', 'desc' => '降序'], 'example' => 'desc', ], ], @@ -14335,10 +8285,7 @@ 'description' => '根据状态进行排序', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'asc' => '升序', - 'desc' => '降序', - ], + 'enumValueTitles' => ['asc' => '升序', 'desc' => '降序'], 'example' => 'asc', ], ], @@ -14350,21 +8297,12 @@ 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '373A5CB2-8570-53BE-A98F-729B11D7A8B0', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '373A5CB2-8570-53BE-A98F-729B11D7A8B0'], 'data' => [ 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'total' => [ - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], + 'total' => ['description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], 'objectList' => [ 'description' => '迁移任务列表', 'type' => 'array', @@ -14372,148 +8310,44 @@ 'description' => '迁移任务对象', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '迁移任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2323', - ], - 'jobId' => [ - 'description' => '迁移作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '87', - ], - 'sourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000028', - ], - 'dbId' => [ - 'description' => '源库ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '196', - ], - 'tableId' => [ - 'description' => '源表ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '23', - ], - 'jobName' => [ - 'description' => '迁移作业名称', - 'type' => 'string', - 'example' => 'test_odps_spark', - ], - 'sourceName' => [ - 'description' => '数据源名', - 'type' => 'string', - 'example' => 'demo ', - ], - 'srcDbName' => [ - 'description' => '源库名', - 'type' => 'string', - 'example' => 'db_1', - ], - 'srcSchemaName' => [ - 'description' => '源schema name-三层命名空间中的schema', - 'type' => 'string', - 'example' => 'default', - ], - 'srcTableName' => [ - 'description' => '源表名', - 'type' => 'string', - 'example' => 'table_1', - ], - 'dstDbName' => [ - 'description' => '目标MaxCompute项目', - 'type' => 'string', - 'example' => 'mms_test', - ], - 'dstSchemaName' => [ - 'description' => '目标MaxCompute Schema', - 'type' => 'string', - 'example' => 'default', - ], - 'dstTableName' => [ - 'description' => '目标MaxcCompute表', - 'type' => 'string', - 'example' => 'table_1', - ], + 'id' => ['description' => '迁移任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2323'], + 'jobId' => ['description' => '迁移作业ID', 'type' => 'integer', 'format' => 'int64', 'example' => '87'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000028'], + 'dbId' => ['description' => '源库ID', 'type' => 'integer', 'format' => 'int64', 'example' => '196'], + 'tableId' => ['description' => '源表ID', 'type' => 'integer', 'format' => 'int64', 'example' => '23'], + 'jobName' => ['description' => '迁移作业名称', 'type' => 'string', 'example' => 'test_odps_spark'], + 'sourceName' => ['description' => '数据源名', 'type' => 'string', 'example' => 'demo '], + 'srcDbName' => ['description' => '源库名', 'type' => 'string', 'example' => 'db_1'], + 'srcSchemaName' => ['description' => '源schema name-三层命名空间中的schema', 'type' => 'string', 'example' => 'default'], + 'srcTableName' => ['description' => '源表名', 'type' => 'string', 'example' => 'table_1'], + 'dstDbName' => ['description' => '目标MaxCompute项目', 'type' => 'string', 'example' => 'mms_test'], + 'dstSchemaName' => ['description' => '目标MaxCompute Schema', 'type' => 'string', 'example' => 'default'], + 'dstTableName' => ['description' => '目标MaxcCompute表', 'type' => 'string', 'example' => 'table_1'], 'type' => [ 'title' => 'MOCK, HIVE: hive udtf task, HIVE_DATAX: hive datax task, COPY_TASK: odps Copy Task, ODPS_INSERT_OVERWRITE: odps simple insert overwrite task, MC2MC_VERIFY, OSS, HIVE_OSS', 'description' => '任务类型', 'type' => 'string', - 'enumValueTitles' => [ - 'HIVE' => '通过HIve UDTF迁移', - 'BIGQUERY' => '通过Read Api迁移', - ], + 'enumValueTitles' => ['HIVE' => '通过HIve UDTF迁移', 'BIGQUERY' => '通过Read Api迁移'], 'example' => 'BIGQUERY', ], 'status' => [ 'title' => 'INIT, SCHEMA_DOING, SCHEMA_DONE, SCHEMA_FAILED, DATA_DOING, DATA_DONE, DATA_FAILED, VERIFICATION_DOING, VERIFICATION_DONE, VERIFICATION_FAILED, DONE', 'description' => '迁移任务状态', 'type' => 'string', - 'enumValueTitles' => [ - 'INIT' => '未运行', - 'DONE' => '成功', - 'SCHEMA_DONE' => '迁移schema成功', - 'SCHEMA_DOING' => '迁移schema中', - 'SCHEMA_FAILED' => '迁移schema失败', - 'DATA_DOING' => '数据迁移中', - 'DATA_DONE' => '数据迁移成功', - 'DATA_FAILED' => '数据迁移失败', - ], + 'enumValueTitles' => ['INIT' => '未运行', 'DONE' => '成功', 'SCHEMA_DONE' => '迁移schema成功', 'SCHEMA_DOING' => '迁移schema中', 'SCHEMA_FAILED' => '迁移schema失败', 'DATA_DOING' => '数据迁移中', 'DATA_DONE' => '数据迁移成功', 'DATA_FAILED' => '数据迁移失败'], 'example' => 'DATA_DOING', ], - 'running' => [ - 'description' => '是否正在运行', - 'type' => 'boolean', - 'example' => 'true', - ], - 'stopped' => [ - 'description' => '是否被停止', - 'type' => 'boolean', - 'example' => 'false', - ], - 'retriedTimes' => [ - 'description' => '已经重试的次数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'startTime' => [ - 'description' => '开始运行时间', - 'type' => 'string', - 'example' => '2024-10-25 06:21:01', - ], - 'endTime' => [ - 'description' => '结束运行时间', - 'type' => 'string', - 'example' => '2024-10-25 07:21:01'."\n", - ], - 'createTime' => [ - 'description' => '任务创建时间', - 'type' => 'string', - 'example' => '2024-10-25 04:21:01'."\n", - ], + 'running' => ['description' => '是否正在运行', 'type' => 'boolean', 'example' => 'true'], + 'stopped' => ['description' => '是否被停止', 'type' => 'boolean', 'example' => 'false'], + 'retriedTimes' => ['description' => '已经重试的次数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'startTime' => ['description' => '开始运行时间', 'type' => 'string', 'example' => '2024-10-25 06:21:01'], + 'endTime' => ['description' => '结束运行时间', 'type' => 'string', 'example' => '2024-10-25 07:21:01'."\n"], + 'createTime' => ['description' => '任务创建时间', 'type' => 'string', 'example' => '2024-10-25 04:21:01'."\n"], ], ], ], - 'pageNum' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'pageNum' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], ], ], ], @@ -14534,26 +8368,212 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ], + ], + ], + ], + ], + 'ListMmsTimerLogs' => [ + 'path' => '/api/v1/mms/datasources/{sourceId}/timers/{timerId}/logs', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], + ], + 'parameters' => [ + [ + 'name' => 'sourceId', + 'in' => 'path', + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '2000015'], + ], + [ + 'name' => 'timerId', + 'in' => 'path', + 'schema' => ['description' => 'timer id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'pageNum', + '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' => 'ApiRes>', + 'description' => 'ApiRes>', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b87b7e716665825896565060e87a4'], + 'data' => [ + 'description' => '返回数据', + 'type' => 'object', + 'properties' => [ + 'total' => ['description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'objectList' => [ + 'description' => '日志列表', + 'type' => 'array', + 'items' => [ + 'description' => '日志信息', + 'type' => 'object', + 'properties' => [ + 'id' => ['description' => '定时任务创建迁移作业的异步任务 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1003476'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '200018'], + 'status' => ['description' => '定时任务创建迁移作业的状态', 'type' => 'string', 'example' => 'DOING'], + 'action' => ['description' => '定时任务创建迁移作业的动作日志', 'type' => 'string', 'example' => 'start job'], + 'msg' => ['description' => '定时任务创建迁移作业的日志信息', 'type' => 'string', 'example' => 'start job success'], + 'createTime' => ['description' => '日志创建时间', 'type' => 'string', 'example' => '2024-12-17 15:44:17'."\n"], + ], + ], + ], + 'pageNum' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + ], ], ], ], ], ], + 'title' => '列出定时任务日志', + 'summary' => 'ListMmsTimerLogs', + 'description' => '请确保在使用该接口前,已充分了解了数据传输服务独享资源组和弹性预留计算资源的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/data-transfer-fees-hourly-billing)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/data-transfer-fees-hourly-billing)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7e716665825896565060e87a4\\",\\n \\"data\\": {\\n \\"total\\": 100,\\n \\"objectList\\": [\\n {\\n \\"id\\": 1003476,\\n \\"sourceId\\": 200018,\\n \\"status\\": \\"DOING\\",\\n \\"action\\": \\"start job\\",\\n \\"msg\\": \\"start job success\\",\\n \\"createTime\\": \\"2024-12-17 15:44:17\\\\n\\"\\n }\\n ],\\n \\"pageNum\\": 1,\\n \\"pageSize\\": 10\\n }\\n}","type":"json"}]', ], - 'ListPackages' => [ - 'path' => '/api/v1/projects/{projectName}/packages', - 'methods' => [ - 'get', + 'ListMmsTimers' => [ + 'summary' => 'ListMmsTimers', + 'path' => '/api/v1/mms/datasources/{sourceId}/timers', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], + ], + 'parameters' => [ + [ + 'name' => 'sourceId', + 'in' => 'path', + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], + ], + [ + 'name' => 'name', + 'in' => 'query', + 'schema' => ['description' => '表名', 'type' => 'string', 'required' => false, 'example' => 'demo'], + ], + [ + 'name' => 'srcDbName', + 'in' => 'query', + 'schema' => ['description' => '源库名', 'type' => 'string', 'required' => false, 'example' => 'test_db_1'], + ], + [ + 'name' => 'srcTableName', + 'in' => 'query', + 'schema' => ['description' => '源表名', 'type' => 'string', 'required' => false, 'example' => 'test_table_1'], + ], + [ + 'name' => 'stopped', + 'in' => 'query', + 'schema' => ['description' => '作业是否被停止', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + ], + [ + 'name' => 'pageNum', + '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' => 'ApiRes>', + 'description' => 'ApiRes>', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b87b7e716665825896565060e87a4'], + 'data' => [ + 'description' => '返回数据', + 'type' => 'object', + 'properties' => [ + 'total' => ['description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '13'], + 'objectList' => [ + 'description' => '日志信息', + 'type' => 'array', + 'items' => [ + 'description' => '定时任务对象', + 'type' => 'object', + 'properties' => [ + 'id' => ['description' => '定时任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '18'], + 'name' => ['description' => '定时任务名', 'type' => 'string', 'example' => 'migrate_db_1'], + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000015'], + 'dbId' => ['description' => '源库ID', 'type' => 'integer', 'format' => 'int64', 'example' => '196'], + 'srcDbName' => ['description' => '源库名', 'type' => 'string', 'example' => 'db_1'], + 'type' => ['description' => '作业类型', 'type' => 'string', 'example' => 'TABLES'], + 'createTime' => ['description' => '创建时间', 'type' => 'string', 'example' => '2024-12-17 09:29:58'."\n" + ."\n"], + 'scheduleType' => ['description' => '定时任务调度类型', 'type' => 'string', 'example' => 'Daily'], + 'value' => ['description' => '调度时间', 'type' => 'string', 'example' => '00:00'], + 'stopped' => ['description' => '是否被停止', 'type' => 'boolean', 'example' => 'false'], + ], + ], + ], + 'pageNum' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['description' => '每页显示条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + ], + ], + ], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + 'title' => '列出数据迁移定时任务', + 'description' => '请确保在使用该接口前,已充分了解了数据传输服务独享资源组和弹性预留计算资源的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/data-transfer-fees-hourly-billing)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/data-transfer-fees-hourly-billing)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7e716665825896565060e87a4\\",\\n \\"data\\": {\\n \\"total\\": 13,\\n \\"objectList\\": [\\n {\\n \\"id\\": 18,\\n \\"name\\": \\"migrate_db_1\\",\\n \\"sourceId\\": 2000015,\\n \\"dbId\\": 196,\\n \\"srcDbName\\": \\"db_1\\",\\n \\"type\\": \\"TABLES\\",\\n \\"createTime\\": \\"2024-12-17 09:29:58\\\\n\\\\n\\",\\n \\"scheduleType\\": \\"Daily\\",\\n \\"value\\": \\"00:00\\",\\n \\"stopped\\": false\\n }\\n ],\\n \\"pageNum\\": 1,\\n \\"pageSize\\": 10\\n }\\n}","type":"json"}]', + ], + 'ListPackages' => [ + 'path' => '/api/v1/projects/{projectName}/packages', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -14563,21 +8583,14 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '144118', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', - ], + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], ], ], 'responses' => [ @@ -14587,11 +8600,7 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc3b4aa16677927210252786e4cb6', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc3b4aa16677927210252786e4cb6'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -14603,17 +8612,8 @@ 'description' => '创建的package列表。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'package名称。', - 'type' => 'string', - 'example' => 'packageA', - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-08-02T02:30:34Z', - ], + 'name' => ['description' => 'package名称。', 'type' => 'string', 'example' => 'packageA'], + 'createTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-08-02T02:30:34Z'], ], ], ], @@ -14624,27 +8624,10 @@ 'description' => '已安装的package列表。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'package名称。', - 'type' => 'string', - 'example' => 'packageB', - ], - 'sourceProject' => [ - 'description' => 'package所属项目。如果package 是install 的,此参数必填。', - 'type' => 'string', - 'example' => 'projectB', - ], - 'status' => [ - 'description' => '状态', - 'type' => 'string', - 'example' => 'OK', - ], - 'installTime' => [ - 'description' => '安装时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-02T02:30:34Z'."\n", - ], + 'name' => ['description' => 'package名称。', 'type' => 'string', 'example' => 'packageB'], + 'sourceProject' => ['description' => 'package所属项目。如果package 是install 的,此参数必填。', 'type' => 'string', 'example' => 'projectB'], + 'status' => ['description' => '状态', 'type' => 'string', 'example' => 'OK'], + 'installTime' => ['description' => '安装时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-02T02:30:34Z'."\n"], ], ], ], @@ -14670,12 +8653,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], @@ -14684,13 +8662,8 @@ 'ListProjectUsers' => [ 'summary' => '获取项目用户列表。', 'path' => '/api/v1/projects/{projectName}/users', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -14700,20 +8673,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '151440', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', - ], + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], ], ], 'responses' => [ @@ -14723,11 +8689,7 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '0b87b7b316643495896551555e855b', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '0b87b7b316643495896551555e855b'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -14739,11 +8701,7 @@ 'description' => '用户列表', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'userA', - ], + 'name' => ['description' => '用户名称', 'type' => 'string', 'example' => 'userA'], ], ], ], @@ -14764,136 +8722,105 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], ], ], 'ListProjects' => [ + 'summary' => '获取MaxCompute项目列表。', 'path' => '/api/v1/projects', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', 'abilityTreeCode' => '137543', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户ID。可以通过登录[MaxCompute控制台](https://maxcompute.console.aliyun.com),在左侧导航栏选择**租户管理**>**租户属性**查看。', - 'type' => 'string', - 'required' => false, - 'example' => '5495****3697', - ], + 'schema' => ['description' => '租户ID。可以通过登录[MaxCompute控制台](https://maxcompute.console.aliyun.com),在左侧导航栏选择**租户管理**>**租户属性**查看。', 'type' => 'string', 'required' => false, 'example' => '5495****3697'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], ], [ 'name' => 'quotaNickName', 'in' => 'query', - 'schema' => [ - 'description' => 'Quota昵称(可通过登录[MaxCompute控制台](https://maxcompute.console.aliyun.com),在左侧导航栏选择**工作区**>**配额**(Quota)**管理**查看获取)。', - 'type' => 'string', - 'required' => false, - 'example' => 'os_PayAsYouGoQuota'."\n", - ], + 'schema' => ['description' => 'Quota昵称(可通过登录[MaxCompute控制台](https://maxcompute.console.aliyun.com),在左侧导航栏选择**工作区**>**配额**(Quota)**管理**查看获取)。', 'type' => 'string', 'required' => false, 'example' => 'os_PayAsYouGoQuota'."\n"], ], [ 'name' => 'quotaName', 'in' => 'query', - 'schema' => [ - 'description' => 'Quota名称(系统自动生成,可通过登录[MaxCompute控制台](https://maxcompute.console.aliyun.com),在左侧导航栏选择**工作区**>**配额**(Quota)**管理**查看获取)。', - 'type' => 'string', - 'required' => false, - 'example' => 'aliyun_5495***3697', - ], + 'schema' => ['description' => 'Quota名称(系统自动生成,可通过登录[MaxCompute控制台](https://maxcompute.console.aliyun.com),在左侧导航栏选择**工作区**>**配额**(Quota)**管理**查看获取)。', 'type' => 'string', 'required' => false, 'example' => 'aliyun_5495***3697'], ], [ 'name' => 'prefix', 'in' => 'query', - 'schema' => [ - 'description' => '限定返回的资源名称,名称必须以Prefix作为前缀,例如Prefix是a,则返回的资源名均是以a开始的。', - 'type' => 'string', - 'required' => false, - 'example' => 'a', - ], + 'schema' => ['description' => '限定返回的资源名称,名称必须以Prefix作为前缀,例如Prefix是a,则返回的资源名均是以a开始的。', 'type' => 'string', 'required' => false, 'example' => 'a'], ], [ 'name' => 'marker', 'in' => 'query', - 'schema' => [ - 'description' => '设定结果从marker之后按字母排序的第一个开始返回。', - 'type' => 'string', - 'required' => false, - 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==', - ], + 'schema' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。', 'type' => 'string', 'required' => false, 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg=='], ], [ 'name' => 'maxItem', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回的最大结果数,默认为10。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - 'default' => '10', - ], + 'schema' => ['description' => '每页返回的最大结果数,默认为10。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'default' => '10'], ], [ 'name' => 'saleTags', 'in' => 'query', + 'schema' => ['description' => '默认计算Quota的实例ID与付费类型。', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .' "resourceId": "b7afb7d1-****-****-****-c393669c307b",'."\n" + .' "resourceType": "PayAsYouGo"'."\n" + .' }'], + ], + [ + 'name' => 'type', + 'in' => 'query', + 'schema' => ['description' => '项目类型。取值:'."\n" + .'- **managed**:内部项目。'."\n" + .'- **external**:外部项目。', 'type' => 'string', 'required' => false, 'example' => 'managed'], + ], + [ + 'name' => 'sortBy', + 'in' => 'query', 'schema' => [ - 'description' => '默认计算Quota的实例ID与付费类型。', + 'title' => '指定排序字段,目前可填的只有 createdTime', + 'description' => '指定排序字段,目前可填的只有 createdTime', 'type' => 'string', 'required' => false, - 'example' => '{'."\n" - .' "resourceId": "b7afb7d1-****-****-****-c393669c307b",'."\n" - .' "resourceType": "PayAsYouGo"'."\n" - .' }', + 'enumValueTitles' => ['createdTime' => 'createdTime'], + 'example' => 'createdTime', ], ], [ - 'name' => 'type', + 'name' => 'sortOrder', 'in' => 'query', 'schema' => [ - 'description' => '项目类型。取值:'."\n" - .'- **managed**:内部项目。'."\n" - .'- **external**:外部项目。', + 'title' => '指定排序顺序,sortBy填写时生效。可填值:ASC,DESC(大小写不敏感)', + 'description' => '指定排序顺序,sortBy填写时生效。可填值:ASC,DESC(大小写不敏感)', 'type' => 'string', 'required' => false, - 'example' => 'managed', + 'enumValueTitles' => ['ASC' => 'ASC 升序', 'DESC' => 'DESC 降序'], + 'example' => 'DESC', ], ], [ @@ -14904,10 +8831,7 @@ .'[Information Schema](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/tenant-level-information-schema)功能。', 'type' => 'boolean', 'required' => false, - 'enumValueTitles' => [ - 'true' => '列出', - 'false' => '不列出', - ], + 'enumValueTitles' => ['true' => '列出', 'false' => '不列出'], 'example' => 'true', 'default' => 'false', ], @@ -14920,11 +8844,7 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0b16399216671970335563173e2340', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b16399216671970335563173e2340'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', @@ -14936,172 +8856,76 @@ 'description' => '项目信息。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'example' => 'odps_project', - ], - 'owner' => [ - 'description' => '项目owner账号信息。', - 'type' => 'string', - 'example' => 'ALIYUN$odps****@aliyunid.com'."\n", - ], - 'type' => [ - 'description' => '项目类型。取值:'."\n" - .'- **managed**:内部项目。'."\n" - .'- **external**:外部项目。', - 'type' => 'string', - 'example' => 'managed', - ], - 'comment' => [ - 'description' => '项目描述。', - 'type' => 'string', - 'example' => 'BI_Analysis', - ], - 'defaultQuota' => [ - 'description' => '默认计算Quota。'."\n" - .'用于实现计算资源分配。不指定计算Quota的情况下,该项目发起的作业将消耗默认Quota资源。更多计算资源使用请参见[计算资源-Quota使用](https://help.aliyun.com/zh/maxcompute/user-guide/use-of-computing-resources)'."\n" - .'[计算资源-Quota使用](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/use-of-computing-resources)。', - 'type' => 'string', - 'example' => 'os_PayAsYouGoQuota'."\n", - ], - 'status' => [ - 'description' => '项目状态。取值:'."\n" - .'- **AVAILABLE**:正常'."\n" - .'- **READONLY**:只读'."\n" - .'- **FROZEN**:冻结'."\n" - .'- **DELETING**:删除中', - 'type' => 'string', - 'example' => 'AVAILABLE', - ], - 'costStorage' => [ - 'description' => '存储总量。 查看项目当前存储大小,此存储量与计量口径一致,即按Project采集压缩后的逻辑存储大小。', - 'type' => 'string', - 'example' => '16489027', - ], - 'regionId' => [ - 'title' => '区域ID', - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'createdTime' => [ - 'title' => '创建时间', - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1704380838000', - ], + 'name' => ['description' => '项目名称。', 'type' => 'string', 'example' => 'odps_project'], + 'owner' => ['description' => '项目owner账号信息。', 'type' => 'string', 'example' => 'ALIYUN$odps****@aliyunid.com'."\n"], + 'type' => ['description' => '项目类型。取值:'."\n" + .'- **managed**:内部项目。'."\n" + .'- **external**:外部项目。', 'type' => 'string', 'example' => 'managed'], + 'comment' => ['description' => '项目描述。', 'type' => 'string', 'example' => 'BI_Analysis'], + 'defaultQuota' => ['description' => '默认计算Quota。'."\n" + .'用于实现计算资源分配。不指定计算Quota的情况下,该项目发起的作业将消耗默认Quota资源。更多计算资源使用请参见[计算资源-Quota使用](https://help.aliyun.com/zh/maxcompute/user-guide/use-of-computing-resources)'."\n" + .'[计算资源-Quota使用](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/use-of-computing-resources)。', 'type' => 'string', 'example' => 'os_PayAsYouGoQuota'."\n"], + 'status' => ['description' => '项目状态。取值:'."\n" + .'- **AVAILABLE**:正常'."\n" + .'- **READONLY**:只读'."\n" + .'- **FROZEN**:冻结'."\n" + .'- **DELETING**:删除中', 'type' => 'string', 'example' => 'AVAILABLE'], + 'costStorage' => ['description' => '存储总量。 查看项目当前存储大小,此存储量与计量口径一致,即按Project采集压缩后的逻辑存储大小。', 'type' => 'string', 'example' => '16489027'], + 'regionId' => ['title' => '区域ID', 'description' => '地域ID。', 'type' => 'string', 'example' => 'cn-beijing'], + 'createdTime' => ['title' => '创建时间', 'description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1704380838000'], 'properties' => [ 'description' => '项目基础属性。', 'type' => 'object', 'properties' => [ - 'timezone' => [ - 'description' => '项目时区,即为`odps.sql.timezone`属性。', - 'type' => 'string', - 'example' => 'Asia/Shanghai'."\n", - ], - 'retentionDays' => [ - 'description' => '备份数据的保留天数。在此期间,您可以将当前版本恢复至任意一个备份的数据版本。 取值范围为[0,30],默认值为1,0代表关闭备份功能。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'allowFullScan' => [ - 'description' => '项目空间是否允许全表扫描。全表扫描会占用大量资源,为提升处理效率,默认关闭该功能。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'typeSystem' => [ - 'description' => '数据类型版本。取值:'."\n" - .'- **1**:1.0版本'."\n" - .'- **2**:2.0版本'."\n" - .'- **hive**:hive兼容类型'."\n" - ."\n" - .'三种数据类型版本的区别请参见[数据类型版本说明](https://help.aliyun.com/zh/maxcompute/user-guide/data-type-editions)'."\n" - .'[数据类型版本说明](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/data-type-editions)。', - 'type' => 'string', - 'example' => '2', - ], - 'enableDecimal2' => [ - 'description' => '项目是否开启MaxCompute 2.0的Decimal数据类型。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'sqlMeteringMax' => [ - 'description' => '单SQL消费的最高阈值。 单位:扫描量(GB)*复杂度。', - 'type' => 'string', - 'example' => '1500', - ], + 'timezone' => ['description' => '项目时区,即为`odps.sql.timezone`属性。', 'type' => 'string', 'example' => 'Asia/Shanghai'."\n"], + 'retentionDays' => ['description' => '备份数据的保留天数。在此期间,您可以将当前版本恢复至任意一个备份的数据版本。 取值范围为[0,30],默认值为1,0代表关闭备份功能。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'allowFullScan' => ['description' => '项目空间是否允许全表扫描。全表扫描会占用大量资源,为提升处理效率,默认关闭该功能。', 'type' => 'boolean', 'example' => 'false'], + 'typeSystem' => ['description' => '数据类型版本。取值:'."\n" + .'- **1**:1.0版本'."\n" + .'- **2**:2.0版本'."\n" + .'- **hive**:hive兼容类型'."\n" + ."\n" + .'三种数据类型版本的区别请参见[数据类型版本说明](https://help.aliyun.com/zh/maxcompute/user-guide/data-type-editions)'."\n" + .'[数据类型版本说明](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/data-type-editions)。', 'type' => 'string', 'example' => '2'], + 'enableDecimal2' => ['description' => '项目是否开启MaxCompute 2.0的Decimal数据类型。', 'type' => 'boolean', 'example' => 'true'], + 'sqlMeteringMax' => ['description' => '单SQL消费的最高阈值。 单位:扫描量(GB)*复杂度。', 'type' => 'string', 'example' => '1500'], 'tableLifecycle' => [ 'description' => '表的生命周期属性。', 'type' => 'object', 'properties' => [ - 'type' => [ - 'description' => '生命周期类型。取值:'."\n" - .'- **mandatory**:Lifecycle子句为必选设置,用户必须设置表的生命周期。'."\n" - .'- **optional**:创建表时,Lifecycle子句为可选设置,如果不设置表的生命周期,则该表永远有效。'."\n" - .'- **inherit**:创建表时,如果不设置表的生命周期,则该表的生命周期为odps.table.lifecycle.value的值。', - 'type' => 'string', - 'example' => 'optional', - ], - 'value' => [ - 'description' => '表的生命周期,单位为:天。取值范围为1~37231,默认值为37231。', - 'type' => 'string', - 'example' => '37231'."\n", - ], + 'type' => ['description' => '生命周期类型。取值:'."\n" + .'- **mandatory**:Lifecycle子句为必选设置,用户必须设置表的生命周期。'."\n" + .'- **optional**:创建表时,Lifecycle子句为可选设置,如果不设置表的生命周期,则该表永远有效。'."\n" + .'- **inherit**:创建表时,如果不设置表的生命周期,则该表的生命周期为odps.table.lifecycle.value的值。', 'type' => 'string', 'example' => 'optional'], + 'value' => ['description' => '表的生命周期,单位为:天。取值范围为1~37231,默认值为37231。', 'type' => 'string', 'example' => '37231'."\n"], ], ], 'encryption' => [ 'description' => '存储加密属性。', 'type' => 'object', 'properties' => [ - 'enable' => [ - 'description' => '项目是否开启数据加密功能。更多数据加密信息,请参见'."\n" - .'[存储加密](https://help.aliyun.com/zh/maxcompute/security-and-compliance/storage-encryption)'."\n" - .'[存储加密](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/storage-encryption)。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'algorithm' => [ - 'description' => '数据加密算法:密钥支持的加密算法,包含AES256、AESCTR和RC4。', - 'type' => 'string', - 'example' => 'AES256', - ], - 'key' => [ - 'description' => '数据加密使用的密钥类型,包含默认密钥(MaxCompute Default Key)和自带密钥(BYOK)。默认密钥(MaxCompute Default Key)是MaxCompute内部创建的默认密钥。', - 'type' => 'string', - 'example' => 'dafault', - ], + 'enable' => ['description' => '项目是否开启数据加密功能。更多数据加密信息,请参见'."\n" + .'[存储加密](https://help.aliyun.com/zh/maxcompute/security-and-compliance/storage-encryption)'."\n" + .'[存储加密](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/storage-encryption)。', 'type' => 'boolean', 'example' => 'true'], + 'algorithm' => ['description' => '数据加密算法:密钥支持的加密算法,包含AES256、AESCTR和RC4。', 'type' => 'string', 'example' => 'AES256'], + 'key' => ['description' => '数据加密使用的密钥类型,包含默认密钥(MaxCompute Default Key)和自带密钥(BYOK)。默认密钥(MaxCompute Default Key)是MaxCompute内部创建的默认密钥。', 'type' => 'string', 'example' => 'dafault'], ], ], - 'tunnelQuota' => [ - 'description' => '项目绑定的[数据传输服务](https://help.aliyun.com/zh/maxcompute/user-guide/overview-of-dts)'."\n" - .'[数据传输服务](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/overview-of-dts)资源组。'."\n" - ."\n" - .'- Default(数据传输服务共享资源组):该项目不允许使用数据传输服务(包年包月)资源组。不管开启成默认数据传输服务资源组取值是什么,该项目默认提交的数据传输服务会自动使用Default资源组。'."\n" - ."\n" - .'- 数据传输服务(包年包月)资源组:该项目允许使用数据传输服务(包年包月)资源组。', - 'type' => 'string', - 'example' => 'Default', - ], - 'enableTunnelQuotaRoute' => [ - 'description' => '是否开启数据传输服务资源组路由。'."\n" - .'- true:表示该项目默认提交的数据传输任务会使用绑定的数据传输服务资源组。'."\n" - .'- false:表示该项目默认提交的数据传输任务会使用数据传输服务共享资源组。', - 'type' => 'boolean', - 'example' => 'true', - ], + 'tunnelQuota' => ['description' => '项目绑定的[数据传输服务](https://help.aliyun.com/zh/maxcompute/user-guide/overview-of-dts)'."\n" + .'[数据传输服务](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/overview-of-dts)资源组。'."\n" + ."\n" + .'- Default(数据传输服务共享资源组):该项目不允许使用数据传输服务(包年包月)资源组。不管开启成默认数据传输服务资源组取值是什么,该项目默认提交的数据传输服务会自动使用Default资源组。'."\n" + ."\n" + .'- 数据传输服务(包年包月)资源组:该项目允许使用数据传输服务(包年包月)资源组。', 'type' => 'string', 'example' => 'Default'], + 'enableTunnelQuotaRoute' => ['description' => '是否开启数据传输服务资源组路由。'."\n" + .'- true:表示该项目默认提交的数据传输任务会使用绑定的数据传输服务资源组。'."\n" + .'- false:表示该项目默认提交的数据传输任务会使用数据传输服务共享资源组。', 'type' => 'boolean', 'example' => 'true'], 'externalProjectProperties' => [ 'description' => '外部项目属性。', 'type' => 'object', 'properties' => [ - 'isExternalCatalogBound' => [ - 'description' => '是否为[湖仓一体2.0](https://help.aliyun.com/zh/maxcompute/user-guide/lake-warehouse-integrated-2-0-use-guide)'."\n" - .'[湖仓一体2.0](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/lake-warehouse-integrated-2-0-use-guide)外部项目。', - 'type' => 'string', - 'example' => 'true', - ], + 'isExternalCatalogBound' => ['description' => '是否为[湖仓一体2.0](https://help.aliyun.com/zh/maxcompute/user-guide/lake-warehouse-integrated-2-0-use-guide)'."\n" + .'[湖仓一体2.0](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/lake-warehouse-integrated-2-0-use-guide)外部项目。', 'type' => 'string', 'example' => 'true'], ], ], ], @@ -15110,75 +8934,43 @@ 'description' => '权限属性。', 'type' => 'object', 'properties' => [ - 'usingAcl' => [ - 'description' => '是否使用[ACL权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/acl-based-access-control)'."\n" - .'[ACL权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/acl-based-access-control)功能,默认为使用状态。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'usingPolicy' => [ - 'description' => '是否使用[Policy权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/policy-based-access-control-1)'."\n" - .'[Policy权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/policy-based-access-control-1)功能,默认为使用状态。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'objectCreatorHasAccessPermission' => [ - 'description' => '是否允许对象创建者拥有对象的访问权限,默认为允许状态。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'objectCreatorHasGrantPermission' => [ - 'description' => '是否允许对象创建者拥有对象的授权权限,默认为允许状态。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'labelSecurity' => [ - 'description' => '是否使用[Label权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/label-based-access-control)'."\n" - .'[Label权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/label-based-access-control)功能,默认为不使用状态。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'enableDownloadPrivilege' => [ - 'description' => '是否使用[Download权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/download-control)'."\n" - .'[Download权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/label-based-access-control)功能,默认为不使用状态。', - 'type' => 'boolean', - 'example' => 'false', - ], + 'usingAcl' => ['description' => '是否使用[ACL权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/acl-based-access-control)'."\n" + .'[ACL权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/acl-based-access-control)功能,默认为使用状态。', 'type' => 'boolean', 'example' => 'true'], + 'usingPolicy' => ['description' => '是否使用[Policy权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/policy-based-access-control-1)'."\n" + .'[Policy权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/policy-based-access-control-1)功能,默认为使用状态。', 'type' => 'boolean', 'example' => 'true'], + 'objectCreatorHasAccessPermission' => ['description' => '是否允许对象创建者拥有对象的访问权限,默认为允许状态。', 'type' => 'boolean', 'example' => 'true'], + 'objectCreatorHasGrantPermission' => ['description' => '是否允许对象创建者拥有对象的授权权限,默认为允许状态。', 'type' => 'boolean', 'example' => 'true'], + 'labelSecurity' => ['description' => '是否使用[Label权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/label-based-access-control)'."\n" + .'[Label权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/label-based-access-control)功能,默认为不使用状态。', 'type' => 'boolean', 'example' => 'false'], + 'enableDownloadPrivilege' => ['description' => '是否使用[Download权限控制](https://help.aliyun.com/zh/maxcompute/user-guide/download-control)'."\n" + .'[Download权限控制](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/label-based-access-control)功能,默认为不使用状态。', 'type' => 'boolean', 'example' => 'false'], 'projectProtection' => [ 'description' => '[数据保护机制](https://help.aliyun.com/zh/maxcompute/security-and-compliance/project-data-protection)'."\n" .'[数据保护机制](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/project-data-protection)属性。', 'type' => 'object', 'properties' => [ - 'protected' => [ - 'description' => '是否开启项目的[数据保护机制](https://help.aliyun.com/zh/maxcompute/security-and-compliance/project-data-protection)'."\n" - .'[数据保护机制](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/project-data-protection),禁止或允许数据流出项目,默认为不开启状态。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'exceptionPolicy' => [ - 'description' => '如选择开启项目空间数据保护,允许设置例外或受信任项目,指定用户将指定对象的数据流出至指定项目,所有符合Exception Policy中描述的情形都可以打破数据保护机制。', - 'type' => 'string', - 'example' => '{'."\n" - .' "Version": "1",'."\n" - .' "Statement": ['."\n" - .' {'."\n" - .' "Effect": "Allow",'."\n" - .' "Principal": "",'."\n" - .' "Action": ['."\n" - .' "odps:[, , ...]"'."\n" - .' ],'."\n" - .' "Resource": "acs:odps:*:",'."\n" - .' "Condition": {'."\n" - .' "StringEquals": {'."\n" - .' "odps:TaskType": ['."\n" - .' ""'."\n" - .' ]'."\n" - .' }'."\n" - .' }'."\n" - .' }'."\n" - .' ]'."\n" - .'}', - ], + 'protected' => ['description' => '是否开启项目的[数据保护机制](https://help.aliyun.com/zh/maxcompute/security-and-compliance/project-data-protection)'."\n" + .'[数据保护机制](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/project-data-protection),禁止或允许数据流出项目,默认为不开启状态。', 'type' => 'boolean', 'example' => 'true'], + 'exceptionPolicy' => ['description' => '如选择开启项目空间数据保护,允许设置例外或受信任项目,指定用户将指定对象的数据流出至指定项目,所有符合Exception Policy中描述的情形都可以打破数据保护机制。', 'type' => 'string', 'example' => '{'."\n" + .' "Version": "1",'."\n" + .' "Statement": ['."\n" + .' {'."\n" + .' "Effect": "Allow",'."\n" + .' "Principal": "",'."\n" + .' "Action": ['."\n" + .' "odps:[, , ...]"'."\n" + .' ],'."\n" + .' "Resource": "acs:odps:*:",'."\n" + .' "Condition": {'."\n" + .' "StringEquals": {'."\n" + .' "odps:TaskType": ['."\n" + .' ""'."\n" + .' ]'."\n" + .' }'."\n" + .' }'."\n" + .' }'."\n" + .' ]'."\n" + .'}'], ], ], ], @@ -15187,35 +8979,19 @@ 'description' => 'IP白名单。', 'type' => 'object', 'properties' => [ - 'ipList' => [ - 'description' => '公网和云产品互联网络IP白名单。'."\n" - ."\n" - .'> 如果只配置公网和云产品互联网络IP白名单,则公网和云产品互联网络访问受配置限制,VPC网络访问全部禁止。', - 'type' => 'string', - 'example' => '10.88.111.3', - ], - 'vpcIpList' => [ - 'description' => 'VPC网络IP白名单。'."\n" - .'> 如果只配置VPC网络IP白名单,则VPC网络访问受配置限制,公网和云产品互联网络访问全部禁止。', - 'type' => 'string', - 'example' => '10.88.111.3', - ], + 'ipList' => ['description' => '公网和云产品互联网络IP白名单。'."\n" + ."\n" + .'> 如果只配置公网和云产品互联网络IP白名单,则公网和云产品互联网络访问受配置限制,VPC网络访问全部禁止。', 'type' => 'string', 'example' => '10.88.111.3'], + 'vpcIpList' => ['description' => 'VPC网络IP白名单。'."\n" + .'> 如果只配置VPC网络IP白名单,则VPC网络访问受配置限制,公网和云产品互联网络访问全部禁止。', 'type' => 'string', 'example' => '10.88.111.3'], ], ], 'saleTag' => [ 'description' => '默认计算Quota的实例ID与付费类型。', 'type' => 'object', 'properties' => [ - 'resourceId' => [ - 'description' => '默认计算Quota的实例ID。', - 'type' => 'string', - 'example' => 'b7afb7d1-****-****-****-c393669c307b'."\n", - ], - 'resourceType' => [ - 'description' => '默认计算Quota的付费类型。', - 'type' => 'string', - 'example' => 'PayAsYouGo'."\n", - ], + 'resourceId' => ['description' => '默认计算Quota的实例ID。', 'type' => 'string', 'example' => 'b7afb7d1-****-****-****-c393669c307b'."\n"], + 'resourceType' => ['description' => '默认计算Quota的付费类型。', 'type' => 'string', 'example' => 'PayAsYouGo'."\n"], ], ], 'threeTierModel' => [ @@ -15223,31 +8999,15 @@ .'MaxCompute支持Schema,处于Project下,Table、Resource、UDF上的对象,对Table、Resource、UDF进行归类。一个Project下可以有多个Schema。详情请参见[Schema操作](https://help.aliyun.com/zh/maxcompute/user-guide/schema-related-operations)'."\n" .'[Schema操作](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/schema-related-operations)。', 'type' => 'boolean', - 'enumValueTitles' => [ - 'true' => '支持', - 'false' => '不支持', - ], + 'enumValueTitles' => ['true' => '支持', 'false' => '不支持'], 'example' => 'true', ], ], ], ], - 'marker' => [ - 'description' => '设定结果从marker之后按字母排序的第一个开始返回。', - 'type' => 'string', - 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==', - ], - 'maxItem' => [ - 'description' => '每页返回的最大结果数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'NextToken' => [ - 'description' => '分页标识,当前接口仅支持连续翻页。返回值nextToken 非空代表还有剩余数据。把nextToken 作为参数继续查询会获得下一页。', - 'type' => 'string', - 'example' => 'AAAAAV3MpHK1AP0pfERHZN5pu6kvikyUl3ChyRxN+qLPvtOb', - ], + 'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。', 'type' => 'string', 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg=='], + 'maxItem' => ['description' => '每页返回的最大结果数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'NextToken' => ['description' => '分页标识,当前接口仅支持连续翻页。返回值nextToken 非空代表还有剩余数据。把nextToken 作为参数继续查询会获得下一页。', 'type' => 'string', 'example' => 'AAAAAV3MpHK1AP0pfERHZN5pu6kvikyUl3ChyRxN+qLPvtOb'], ], ], ], @@ -15260,39 +9020,10 @@ ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b16399216671970335563173e2340\\",\\n \\"data\\": {\\n \\"projects\\": [\\n {\\n \\"name\\": \\"odps_project\\",\\n \\"owner\\": \\"ALIYUN$odps****@aliyunid.com\\\\n\\",\\n \\"type\\": \\"managed\\",\\n \\"comment\\": \\"BI_Analysis\\",\\n \\"defaultQuota\\": \\"os_PayAsYouGoQuota\\\\n\\",\\n \\"status\\": \\"AVAILABLE\\",\\n \\"costStorage\\": \\"16489027\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"createdTime\\": 1704380838000,\\n \\"properties\\": {\\n \\"timezone\\": \\"Asia/Shanghai\\\\n\\",\\n \\"retentionDays\\": 1,\\n \\"allowFullScan\\": false,\\n \\"typeSystem\\": \\"2\\",\\n \\"enableDecimal2\\": true,\\n \\"sqlMeteringMax\\": \\"1500\\",\\n \\"tableLifecycle\\": {\\n \\"type\\": \\"optional\\",\\n \\"value\\": \\"37231\\\\n\\"\\n },\\n \\"encryption\\": {\\n \\"enable\\": true,\\n \\"algorithm\\": \\"AES256\\",\\n \\"key\\": \\"dafault\\"\\n },\\n \\"tunnelQuota\\": \\"Default\\",\\n \\"enableTunnelQuotaRoute\\": true,\\n \\"externalProjectProperties\\": {\\n \\"isExternalCatalogBound\\": \\"true\\"\\n }\\n },\\n \\"securityProperties\\": {\\n \\"usingAcl\\": true,\\n \\"usingPolicy\\": true,\\n \\"objectCreatorHasAccessPermission\\": true,\\n \\"objectCreatorHasGrantPermission\\": true,\\n \\"labelSecurity\\": false,\\n \\"enableDownloadPrivilege\\": false,\\n \\"projectProtection\\": {\\n \\"protected\\": true,\\n \\"exceptionPolicy\\": \\"{\\\\n \\\\\\"Version\\\\\\": \\\\\\"1\\\\\\",\\\\n \\\\\\"Statement\\\\\\": [\\\\n {\\\\n \\\\\\"Effect\\\\\\": \\\\\\"Allow\\\\\\",\\\\n \\\\\\"Principal\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"Action\\\\\\": [\\\\n \\\\\\"odps:[, , ...]\\\\\\"\\\\n ],\\\\n \\\\\\"Resource\\\\\\": \\\\\\"acs:odps:*:\\\\\\",\\\\n \\\\\\"Condition\\\\\\": {\\\\n \\\\\\"StringEquals\\\\\\": {\\\\n \\\\\\"odps:TaskType\\\\\\": [\\\\n \\\\\\"\\\\\\"\\\\n ]\\\\n }\\\\n }\\\\n }\\\\n ]\\\\n}\\"\\n }\\n },\\n \\"ipWhiteList\\": {\\n \\"ipList\\": \\"10.88.111.3\\",\\n \\"vpcIpList\\": \\"10.88.111.3\\"\\n },\\n \\"saleTag\\": {\\n \\"resourceId\\": \\"b7afb7d1-****-****-****-c393669c307b\\\\n\\",\\n \\"resourceType\\": \\"PayAsYouGo\\\\n\\"\\n },\\n \\"threeTierModel\\": true\\n }\\n ],\\n \\"marker\\": \\"cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==\\",\\n \\"maxItem\\": 10,\\n \\"NextToken\\": \\"AAAAAV3MpHK1AP0pfERHZN5pu6kvikyUl3ChyRxN+qLPvtOb\\"\\n }\\n}","type":"json"}]', 'title' => '获取项目列表', - 'summary' => '获取MaxCompute项目列表。', - 'changeSet' => [ - [ - 'createdAt' => '2024-09-12T08:31:50.000Z', - 'description' => '响应参数发生变更', - ], - [ - 'createdAt' => '2024-07-31T07:43:55.000Z', - 'description' => '响应参数发生变更', - ], - [ - 'createdAt' => '2024-01-08T05:32:02.000Z', - 'description' => '响应参数发生变更', - ], - [ - 'createdAt' => '2023-11-14T07:01:39.000Z', - 'description' => '请求参数发生变更、响应参数发生变更', - ], - [ - 'createdAt' => '2023-09-21T03:13:39.000Z', - 'description' => '响应参数发生变更', - ], - [ - 'createdAt' => '2023-08-23T11:03:02.000Z', - 'description' => '请求参数发生变更', - ], - [ - 'createdAt' => '2023-01-09T08:15:17.000Z', - 'description' => '请求参数发生变更、响应参数发生变更', - ], - [ - 'createdAt' => '2022-11-14T09:44:49.000Z', - 'description' => '响应参数发生变更', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListProjects'], ], ], 'ramActions' => [ @@ -15303,12 +9034,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'conditional', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/*', - ], + ['validationType' => 'conditional', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/*'], ], ], ], @@ -15316,13 +9042,8 @@ ], 'ListQuotas' => [ 'path' => '/api/v1/quotas', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -15335,81 +9056,44 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '124145', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'deprecated' => true, - 'required' => false, - ], + 'schema' => ['type' => 'string', 'deprecated' => true, 'required' => false], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'deprecated' => true, - 'required' => false, - ], + 'schema' => ['type' => 'string', 'deprecated' => true, 'required' => false], ], [ 'name' => 'productId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'deprecated' => true, - 'required' => false, - 'default' => 'ODPS', - ], + 'schema' => ['type' => 'string', 'deprecated' => true, 'required' => false, 'default' => 'ODPS'], ], [ 'name' => 'billingType', 'in' => 'query', - 'schema' => [ - 'description' => '付费模式', - 'type' => 'string', - 'required' => false, - 'example' => 'subscription', - 'default' => 'subscription', - ], + 'schema' => ['description' => '付费模式', 'type' => 'string', 'required' => false, 'example' => 'subscription', 'default' => 'subscription'], ], [ 'name' => 'saleTags', 'in' => 'query', - 'schema' => [ - 'description' => '可以根据费用标签来过滤quota 对象,费用标签是用户在标签云产品创建的。', - 'type' => 'string', - 'required' => false, - 'example' => '{"tag":"this_is_tag_demo"}', - ], + 'schema' => ['description' => '可以根据费用标签来过滤quota 对象,费用标签是用户在标签云产品创建的。', 'type' => 'string', 'required' => false, 'example' => '{"tag":"this_is_tag_demo"}'], ], [ 'name' => 'marker', 'in' => 'query', - 'schema' => [ - 'description' => '设定结果从marker之后按字母排序的第一个开始返回。', - 'type' => 'string', - 'required' => false, - 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==', - ], + 'schema' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。', 'type' => 'string', 'required' => false, 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg=='], ], [ 'name' => 'maxItem', 'in' => 'query', - 'schema' => [ - 'description' => '限制返回的最大数。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '100', - ], + 'schema' => ['description' => '限制返回的最大数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'], ], ], 'responses' => [ @@ -15419,11 +9103,7 @@ 'description' => 'PopCompatibleResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc12e6f16677875480593081d2956', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc12e6f16677875480593081d2956'], 'quotaInfoList' => [ 'description' => 'quota列表', 'type' => 'array', @@ -15435,24 +9115,11 @@ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示是预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription', - ], - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard ', - ], - 'orderId' => [ - 'description' => '订单id。', - 'type' => 'string', - 'example' => '45245678', - ], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示是预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard '], + 'orderId' => ['description' => '订单id。', 'type' => 'string', 'example' => '45245678'], ], ], 'saleTag' => [ @@ -15462,121 +9129,40 @@ 'resourceIds' => [ 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'array', - 'items' => [ - 'description' => 'maxcompute quota 对象的标识', - 'type' => 'string', - 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"', - ], - ], - 'resourceType' => [ - 'description' => '对象的类型,目前仅支持quota 和 project 两种类型。', - 'type' => 'string', - 'example' => '"project"', + 'items' => ['description' => 'maxcompute quota 对象的标识', 'type' => 'string', 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'], ], + 'resourceType' => ['description' => '对象的类型,目前仅支持quota 和 project 两种类型。', 'type' => 'string', 'example' => '"project"'], ], ], - 'cluster' => [ - 'description' => '集群id', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'createTime' => [ - 'description' => '资源创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z'."\n", - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518'."\n", - ], - 'id' => [ - 'description' => 'quota ID', - 'type' => 'string', - 'example' => '0', - ], - 'name' => [ - 'description' => 'quota名称', - 'type' => 'string', - 'example' => 'quota_a'."\n", - ], - 'nickName' => [ - 'description' => 'quota别名', - 'type' => 'string', - 'example' => 'quota_nickname'."\n", - ], - 'parameter' => [ - 'description' => 'quota的描述信息', - 'type' => 'object', - 'example' => '{"minCU":10, '."\n" - .'"adhocCU":0,'."\n" - .'"maxCU":10,'."\n" - .'"schedulerType":"Fair",'."\n" - .'}', - ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => 'null', - ], - 'regionId' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], + 'cluster' => ['description' => '集群id', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'createTime' => ['description' => '资源创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'."\n"], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'."\n"], + 'id' => ['description' => 'quota ID', 'type' => 'string', 'example' => '0'], + 'name' => ['description' => 'quota名称', 'type' => 'string', 'example' => 'quota_a'."\n"], + 'nickName' => ['description' => 'quota别名', 'type' => 'string', 'example' => 'quota_nickname'."\n"], + 'parameter' => ['description' => 'quota的描述信息', 'type' => 'object', 'example' => '{"minCU":10, '."\n" + .'"adhocCU":0,'."\n" + .'"maxCU":10,'."\n" + .'"schedulerType":"Fair",'."\n" + .'}'], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => 'null'], + 'regionId' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-beijing'], 'scheduleInfo' => [ 'description' => '分时信息。', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '立即生效的quota计划。'."\n" - .'如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作人名称。', - 'type' => 'string', - 'example' => 'userA', - ], - 'timezone' => [ - 'description' => '时区', - 'type' => 'string', - 'example' => 'UTC+8', - ], - ], - ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON '."\n", - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '立即生效的quota计划。'."\n" + .'如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作人名称。', 'type' => 'string', 'example' => 'userA'], + 'timezone' => ['description' => '时区', 'type' => 'string', 'example' => 'UTC+8'], + ], + ], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON '."\n"], 'subQuotaInfoList' => [ 'description' => '二级quota信息', 'type' => 'array', @@ -15591,139 +9177,44 @@ 'resourceIds' => [ 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'array', - 'items' => [ - 'description' => 'maxcompute quota 对象的标识', - 'type' => 'string', - 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n", - ], - ], - 'resourceType' => [ - 'description' => '对象的类型,目前仅支持quota 和 project 两种类型。', - 'type' => 'string', - 'example' => '"quota"', + 'items' => ['description' => 'maxcompute quota 对象的标识', 'type' => 'string', 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n"], ], + 'resourceType' => ['description' => '对象的类型,目前仅支持quota 和 project 两种类型。', 'type' => 'string', 'example' => '"quota"'], ], ], 'billingPolicy' => [ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示是预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription'."\n", - ], - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard ', - ], - 'orderId' => [ - 'description' => '订单id。', - 'type' => 'string', - 'example' => '45245678'."\n", - ], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示是预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'."\n"], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard '], + 'orderId' => ['description' => '订单id。', 'type' => 'string', 'example' => '45245678'."\n"], ], ], - 'cluster' => [ - 'description' => '集群id', - 'type' => 'string', - 'example' => 'AT-120N', - ], - 'createTime' => [ - 'description' => '资源创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z'."\n", - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518'."\n", - ], - 'id' => [ - 'description' => '二级quota ID', - 'type' => 'string', - 'example' => '1000048', - ], - 'name' => [ - 'description' => '二级quota名称', - 'type' => 'string', - 'example' => 'subquotaA'."\n", - ], - 'nickName' => [ - 'description' => '二级quota别名', - 'type' => 'string', - 'example' => 'subquotaA'."\n", - ], + 'cluster' => ['description' => '集群id', 'type' => 'string', 'example' => 'AT-120N'], + 'createTime' => ['description' => '资源创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'."\n"], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'."\n"], + 'id' => ['description' => '二级quota ID', 'type' => 'string', 'example' => '1000048'], + 'name' => ['description' => '二级quota名称', 'type' => 'string', 'example' => 'subquotaA'."\n"], + 'nickName' => ['description' => '二级quota别名', 'type' => 'string', 'example' => 'subquotaA'."\n"], 'parameter' => [ 'description' => 'quota的描述信息', 'type' => 'object', 'properties' => [ - 'enablePriority' => [ - 'description' => '开启优先级。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'forceReservedMin' => [ - 'description' => '是否独占。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'maxCU' => [ - 'description' => '预留CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'minCU' => [ - 'description' => '预留CU保障。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'schedulerType' => [ - 'description' => '调度策略。', - 'type' => 'string', - 'example' => 'Fifo/Fair'."\n", - ], - 'singleJobCULimit' => [ - 'description' => '单作业CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'elasticReservedCU' => [ - 'description' => '弹性预留CU值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], - 'slotNum' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'adhocSlot' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'minGu' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'maxGu' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'autoScaleCPULimit' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'enablePriority' => ['description' => '开启优先级。', 'type' => 'boolean', 'example' => 'true'], + 'forceReservedMin' => ['description' => '是否独占。', 'type' => 'boolean', 'example' => 'true'], + 'maxCU' => ['description' => '预留CU上限。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'minCU' => ['description' => '预留CU保障。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'schedulerType' => ['description' => '调度策略。', 'type' => 'string', 'example' => 'Fifo/Fair'."\n"], + 'singleJobCULimit' => ['description' => '单作业CU上限。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'elasticReservedCU' => ['description' => '弹性预留CU值。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], + 'slotNum' => ['type' => 'integer', 'format' => 'int64'], + 'adhocSlot' => ['type' => 'integer', 'format' => 'int64'], + 'minGu' => ['type' => 'integer', 'format' => 'int64'], + 'maxGu' => ['type' => 'integer', 'format' => 'int64'], + 'autoScaleCPULimit' => ['type' => 'integer', 'format' => 'int64'], ], 'example' => '{"minCU":10, '."\n" .'"adhocCU":0,'."\n" @@ -15731,113 +9222,35 @@ .'"schedulerType":"Fair",'."\n" .'}', ], - 'parentId' => [ - 'description' => '父资源id', - 'type' => 'string', - 'example' => '0', - ], - 'regionId' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], + 'parentId' => ['description' => '父资源id', 'type' => 'string', 'example' => '0'], + 'regionId' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-beijing'], 'scheduleInfo' => [ 'description' => '分时信息。', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '立即生效的quota计划。'."\n" - .'如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作人名称。', - 'type' => 'string', - 'example' => 'userA', - ], - 'timezone' => [ - 'description' => '时区', - 'type' => 'string', - 'example' => 'UTC+8', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '立即生效的quota计划。'."\n" + .'如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作人名称。', 'type' => 'string', 'example' => 'userA'], + 'timezone' => ['description' => '时区', 'type' => 'string', 'example' => 'UTC+8'], ], ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON', - ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '280747109771520'."\n", - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE'."\n", - ], - 'version' => [ - 'description' => '版本', - 'type' => 'string', - 'example' => '1', - ], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON'], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '280747109771520'."\n"], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'."\n"], + 'version' => ['description' => '版本', 'type' => 'string', 'example' => '1'], ], ], ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '280747109771520'."\n", - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE'."\n", - ], - 'version' => [ - 'description' => '版本。', - 'type' => 'string', - 'example' => '1', - ], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '280747109771520'."\n"], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'."\n"], + 'version' => ['description' => '版本。', 'type' => 'string', 'example' => '1'], 'Tags' => [ 'description' => '标签', 'type' => 'array', @@ -15845,33 +9258,16 @@ 'description' => '标签', 'type' => 'object', 'properties' => [ - 'TagValue' => [ - 'description' => '标签值。', - 'type' => 'string', - 'example' => '1', - ], - 'TagKey' => [ - 'description' => '标签键。', - 'type' => 'string', - 'example' => 'Department', - ], + 'TagValue' => ['description' => '标签值。', 'type' => 'string', 'example' => '1'], + 'TagKey' => ['description' => '标签键。', 'type' => 'string', 'example' => 'Department'], ], ], ], ], ], ], - 'marker' => [ - 'description' => '设定结果从marker之后按字母排序的第一个开始返回。', - 'type' => 'string', - 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==', - ], - 'maxItem' => [ - 'description' => '每页返回的最大结果数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], + 'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。', 'type' => 'string', 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg=='], + 'maxItem' => ['description' => '每页返回的最大结果数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -15883,153 +9279,50 @@ 'description' => 'quota列表', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => 'quota id', - 'type' => 'string', - 'example' => '0'."\n", - ], - 'name' => [ - 'description' => 'quota名称', - 'type' => 'string', - 'example' => 'quota_a'."\n", - ], - 'nickName' => [ - 'description' => 'quota别名', - 'type' => 'string', - 'example' => 'quota_nickname', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '280747109771520', - ], - 'regionId' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'parentId' => [ - 'description' => '父资源 id', - 'type' => 'string', - 'example' => 'null', - ], - 'cluster' => [ - 'description' => '集群id', - 'type' => 'string', - 'example' => 'AT-120N', - ], - 'version' => [ - 'description' => '版本', - 'type' => 'string', - 'example' => '1', - ], + 'id' => ['description' => 'quota id', 'type' => 'string', 'example' => '0'."\n"], + 'name' => ['description' => 'quota名称', 'type' => 'string', 'example' => 'quota_a'."\n"], + 'nickName' => ['description' => 'quota别名', 'type' => 'string', 'example' => 'quota_nickname'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '280747109771520'], + 'regionId' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-beijing'], + 'parentId' => ['description' => '父资源 id', 'type' => 'string', 'example' => 'null'], + 'cluster' => ['description' => '集群id', 'type' => 'string', 'example' => 'AT-120N'], + 'version' => ['description' => '版本', 'type' => 'string', 'example' => '1'], 'billingPolicy' => [ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard ', - ], - 'orderId' => [ - 'description' => '订单id', - 'type' => 'string', - 'example' => '45245678'."\n", - ], - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示是预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription', - ], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard '], + 'orderId' => ['description' => '订单id', 'type' => 'string', 'example' => '45245678'."\n"], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示是预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'], ], ], 'scheduleInfo' => [ 'description' => '分时信息', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA'."\n", - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '立即生效的quota计划。'."\n" - .'如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作人名称。', - 'type' => 'string', - 'example' => 'userA', - ], - 'timezone' => [ - 'description' => '时区', - 'type' => 'string', - 'example' => 'UTC+8', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'."\n"], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '立即生效的quota计划。'."\n" + .'如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作人名称。', 'type' => 'string', 'example' => 'userA'], + 'timezone' => ['description' => '时区', 'type' => 'string', 'example' => 'UTC+8'], ], ], - 'parameter' => [ - 'description' => 'quota的描述信息', - 'type' => 'object', - 'example' => '{"minCU":10, '."\n" - .'"adhocCU":0,'."\n" - .'"maxCU":10,'."\n" - .'"schedulerType":"Fair",'."\n" - .'}', - ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'createTime' => [ - 'description' => '资源创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z'."\n", - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518'."\n", - ], + 'parameter' => ['description' => 'quota的描述信息', 'type' => 'object', 'example' => '{"minCU":10, '."\n" + .'"adhocCU":0,'."\n" + .'"maxCU":10,'."\n" + .'"schedulerType":"Fair",'."\n" + .'}'], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'createTime' => ['description' => '资源创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'."\n"], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'."\n"], 'saleTag' => [ 'description' => '描述了MaxCompute quota 对象的标识,这个标识与阿里云售卖账单中的标识是一致的。实际使用与标签场景下。', 'type' => 'object', @@ -16037,17 +9330,9 @@ 'resourceIds' => [ 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'array', - 'items' => [ - 'description' => 'maxcompute quota 对象的标识', - 'type' => 'string', - 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n", - ], - ], - 'resourceType' => [ - 'description' => '对象的类型,目前仅支持quota 和 project 两种类型。', - 'type' => 'string', - 'example' => '"quota"'."\n", + 'items' => ['description' => 'maxcompute quota 对象的标识', 'type' => 'string', 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n"], ], + 'resourceType' => ['description' => '对象的类型,目前仅支持quota 和 project 两种类型。', 'type' => 'string', 'example' => '"quota"'."\n"], ], ], 'subQuotaInfoList' => [ @@ -16057,193 +9342,58 @@ 'description' => '二级quota信息', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '二级quota ID', - 'type' => 'string', - 'example' => '1000048', - ], - 'name' => [ - 'description' => '二级quota名称', - 'type' => 'string', - 'example' => 'subquotaA'."\n", - ], - 'nickName' => [ - 'description' => '二级quota昵称', - 'type' => 'string', - 'example' => 'subquotaA'."\n", - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE'."\n", - ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '280747109771520'."\n", - ], - 'regionId' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => '0', - ], - 'cluster' => [ - 'description' => '集群id', - 'type' => 'string', - 'example' => 'AT-120N', - ], - 'version' => [ - 'description' => '版本号', - 'type' => 'string', - 'example' => '1', - ], + 'id' => ['description' => '二级quota ID', 'type' => 'string', 'example' => '1000048'], + 'name' => ['description' => '二级quota名称', 'type' => 'string', 'example' => 'subquotaA'."\n"], + 'nickName' => ['description' => '二级quota昵称', 'type' => 'string', 'example' => 'subquotaA'."\n"], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'."\n"], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '280747109771520'."\n"], + 'regionId' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-beijing'], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => '0'], + 'cluster' => ['description' => '集群id', 'type' => 'string', 'example' => 'AT-120N'], + 'version' => ['description' => '版本号', 'type' => 'string', 'example' => '1'], 'billingPolicy' => [ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard ', - ], - 'orderId' => [ - 'description' => '订单id。', - 'type' => 'string', - 'example' => '45245678'."\n", - ], - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription', - ], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard '], + 'orderId' => ['description' => '订单id。', 'type' => 'string', 'example' => '45245678'."\n"], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'], ], ], 'scheduleInfo' => [ 'description' => '分时信息', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '立即生效的quota计划。'."\n" - .'如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作人名称。', - 'type' => 'string', - 'example' => 'userA', - ], - 'timezone' => [ - 'description' => '时区', - 'type' => 'string', - 'example' => 'UTC+8', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '立即生效的quota计划。'."\n" + .'如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作人名称。', 'type' => 'string', 'example' => 'userA'], + 'timezone' => ['description' => '时区', 'type' => 'string', 'example' => 'UTC+8'], ], ], 'parameter' => [ 'description' => 'quota的描述信息', 'type' => 'object', 'properties' => [ - 'enablePriority' => [ - 'description' => '开启优先级。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'forceReservedMin' => [ - 'description' => '是否独占。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'maxCU' => [ - 'description' => '预留CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'minCU' => [ - 'description' => '预留CU保障。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'schedulerType' => [ - 'description' => '调度策略。', - 'type' => 'string', - 'example' => 'Fifo/Fair'."\n", - ], - 'singleJobCULimit' => [ - 'description' => '单作业CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'elasticReservedCU' => [ - 'description' => '弹性预留CU值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], - 'slotNum' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'adhocSlot' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'autoScaleCPULimit' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'minGu' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'maxGu' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'enablePriority' => ['description' => '开启优先级。', 'type' => 'boolean', 'example' => 'true'], + 'forceReservedMin' => ['description' => '是否独占。', 'type' => 'boolean', 'example' => 'true'], + 'maxCU' => ['description' => '预留CU上限。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'minCU' => ['description' => '预留CU保障。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'schedulerType' => ['description' => '调度策略。', 'type' => 'string', 'example' => 'Fifo/Fair'."\n"], + 'singleJobCULimit' => ['description' => '单作业CU上限。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'elasticReservedCU' => ['description' => '弹性预留CU值。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], + 'slotNum' => ['type' => 'integer', 'format' => 'int64'], + 'adhocSlot' => ['type' => 'integer', 'format' => 'int64'], + 'autoScaleCPULimit' => ['type' => 'integer', 'format' => 'int64'], + 'minGu' => ['type' => 'integer', 'format' => 'int64'], + 'maxGu' => ['type' => 'integer', 'format' => 'int64'], ], 'example' => '{"minCU":10, '."\n" .'"adhocCU":0,'."\n" @@ -16251,22 +9401,9 @@ .'"schedulerType":"Fair",'."\n" .'}', ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'createTime' => [ - 'description' => '资源创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z'."\n", - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518'."\n", - ], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'createTime' => ['description' => '资源创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'."\n"], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'."\n"], 'saleTag' => [ 'description' => '描述了MaxCompute quota 对象的标识,这个标识与阿里云售卖账单中的标识是一致的。实际使用与标签场景下。', 'type' => 'object', @@ -16274,17 +9411,9 @@ 'resourceIds' => [ 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'array', - 'items' => [ - 'description' => 'maxcompute quota 对象的标识', - 'type' => 'string', - 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n", - ], - ], - 'resourceType' => [ - 'description' => '对象的类型,目前仅支持quota 和 project 两种类型。', - 'type' => 'string', - 'example' => '"quota"'."\n", + 'items' => ['description' => 'maxcompute quota 对象的标识', 'type' => 'string', 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n"], ], + 'resourceType' => ['description' => '对象的类型,目前仅支持quota 和 project 两种类型。', 'type' => 'string', 'example' => '"quota"'."\n"], ], ], ], @@ -16297,33 +9426,16 @@ 'description' => '标签', 'type' => 'object', 'properties' => [ - 'TagValue' => [ - 'description' => '标签值。', - 'type' => 'string', - 'example' => 'a12351qHDP6YEQMt', - ], - 'TagKey' => [ - 'description' => '标签键。', - 'type' => 'string', - 'example' => 'Department', - ], + 'TagValue' => ['description' => '标签值。', 'type' => 'string', 'example' => 'a12351qHDP6YEQMt'], + 'TagKey' => ['description' => '标签键。', 'type' => 'string', 'example' => 'Department'], ], ], ], ], ], ], - 'marker' => [ - 'description' => '设定结果从marker之后按字母排序的第一个开始返回。', - 'type' => 'string', - 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==', - ], - 'maxItem' => [ - 'description' => '每页返回的最大结果数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], + 'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。', 'type' => 'string', 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg=='], + 'maxItem' => ['description' => '每页返回的最大结果数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], 'NextToken' => [ 'description' => '分页标识,当前接口仅支持连续翻页。返回值nextToken 非空代表还有剩余数据。把nextToken 作为参数继续查询会获得下一页。', 'type' => 'string', @@ -16332,11 +9444,7 @@ ], ], ], - 'NextToken' => [ - 'description' => '分页标识,当前接口仅支持连续翻页。返回值nextToken 非空代表还有剩余数据。把nextToken 作为参数继续查询会获得下一页。', - 'type' => 'string', - 'example' => 'AAAAAdDWBF2w6Olxc+cMPjUtUMo/CvPe4IK7f7kIQFrIZjyc', - ], + 'NextToken' => ['description' => '分页标识,当前接口仅支持连续翻页。返回值nextToken 非空代表还有剩余数据。把nextToken 作为参数继续查询会获得下一页。', 'type' => 'string', 'example' => 'AAAAAdDWBF2w6Olxc+cMPjUtUMo/CvPe4IK7f7kIQFrIZjyc'], ], ], ], @@ -16346,12 +9454,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '300', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListQuotas', - ], + ['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListQuotas'], ], ], 'ramActions' => [ @@ -16362,12 +9465,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/*'], ], ], ], @@ -16376,13 +9474,8 @@ ], 'ListQuotasPlans' => [ 'path' => '/api/v1/quotas/{nickname}/plans', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -16392,40 +9485,23 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '142713', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota名称', - 'type' => 'string', - 'required' => true, - 'example' => 'quotaA', - ], + 'schema' => ['description' => 'Quota名称', 'type' => 'string', 'required' => true, 'example' => 'quotaA'], ], [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户id', - 'type' => 'string', - 'required' => false, - 'example' => '478403690625249', - ], + 'schema' => ['description' => '租户id', 'type' => 'string', 'required' => false, 'example' => '478403690625249'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域id。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], + 'schema' => ['description' => '地域id。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], ], ], 'responses' => [ @@ -16435,11 +9511,7 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0be3e0bd16661643917136451ebf55', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0be3e0bd16661643917136451ebf55'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -16451,156 +9523,50 @@ 'description' => '数据', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'Quota计划名称', - 'type' => 'string', - 'example' => 'planA', - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2022-05-16T06:07:45Z'."\n", - ], + 'name' => ['description' => 'Quota计划名称', 'type' => 'string', 'example' => 'planA'], + 'createTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2022-05-16T06:07:45Z'."\n"], 'quota' => [ 'description' => 'quota详情', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => 'quota ID', - 'type' => 'string', - 'example' => '0', - ], - 'name' => [ - 'description' => 'quota名称', - 'type' => 'string', - 'example' => 'quota_a', - ], - 'nickName' => [ - 'description' => 'quota别名', - 'type' => 'string', - 'example' => 'quota_nickname', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => 'null', - ], - 'cluster' => [ - 'description' => '集群id', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本。', - 'type' => 'string', - 'example' => '1', - ], + 'id' => ['description' => 'quota ID', 'type' => 'string', 'example' => '0'], + 'name' => ['description' => 'quota名称', 'type' => 'string', 'example' => 'quota_a'], + 'nickName' => ['description' => 'quota别名', 'type' => 'string', 'example' => 'quota_nickname'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-beijing'], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => 'null'], + 'cluster' => ['description' => '集群id', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本。', 'type' => 'string', 'example' => '1'], 'billingPolicy' => [ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard ', - ], - 'orderId' => [ - 'description' => '订单id。', - 'type' => 'string', - 'example' => '45245678', - ], - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示是预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription', - ], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard '], + 'orderId' => ['description' => '订单id。', 'type' => 'string', 'example' => '45245678'], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示是预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'], ], ], 'scheduleInfo' => [ 'description' => '分时信息。', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800'."\n", - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作者名称。', - 'type' => 'string', - 'example' => 'userA', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'."\n"], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作者名称。', 'type' => 'string', 'example' => 'userA'], ], ], - 'parameter' => [ - 'description' => 'quota的描述信息', - 'type' => 'object', - ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z'."\n", - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518', - ], + 'parameter' => ['description' => 'quota的描述信息', 'type' => 'object'], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'createTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'."\n"], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'], 'subQuotaInfoList' => [ 'description' => '二级quota信息', 'type' => 'array', @@ -16608,142 +9574,44 @@ 'description' => '二级quota信息', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '二级quota ID', - 'type' => 'string', - 'example' => '1000048', - ], - 'name' => [ - 'description' => '二级quota名称', - 'type' => 'string', - 'example' => 'subquotaA', - ], - 'nickName' => [ - 'description' => '二级quota昵称', - 'type' => 'string', - 'example' => 'subquotaA', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => '0', - ], - 'cluster' => [ - 'description' => '集群id', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本号', - 'type' => 'string', - 'example' => '1', - ], + 'id' => ['description' => '二级quota ID', 'type' => 'string', 'example' => '1000048'], + 'name' => ['description' => '二级quota名称', 'type' => 'string', 'example' => 'subquotaA'], + 'nickName' => ['description' => '二级quota昵称', 'type' => 'string', 'example' => 'subquotaA'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-beijing'], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => '0'], + 'cluster' => ['description' => '集群id', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本号', 'type' => 'string', 'example' => '1'], 'billingPolicy' => [ 'description' => '订单信息', 'type' => 'object', 'properties' => [ - 'odpsSpecCode' => [ - 'description' => '订单规格', - 'type' => 'string', - 'example' => 'OdpsStandard ', - ], - 'orderId' => [ - 'description' => '订单ID', - 'type' => 'string', - 'example' => '45245678', - ], - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription,表示是预付费quota。'."\n" - .'- payasyougo,表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription'."\n", - ], + 'odpsSpecCode' => ['description' => '订单规格', 'type' => 'string', 'example' => 'OdpsStandard '], + 'orderId' => ['description' => '订单ID', 'type' => 'string', 'example' => '45245678'], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription,表示是预付费quota。'."\n" + .'- payasyougo,表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'."\n"], ], ], 'scheduleInfo' => [ 'description' => '分时信息', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作者名称。', - 'type' => 'string', - 'example' => 'userA', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作者名称。', 'type' => 'string', 'example' => 'userA'], ], ], - 'parameter' => [ - 'description' => 'quota的描述信息', - 'type' => 'object', - ], - 'tag' => [ - 'description' => 'quota的资源标签', - 'type' => 'string', - 'example' => 'abc', - ], - 'createTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-09-06T02:14:44Z'."\n", - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518', - ], + 'parameter' => ['description' => 'quota的描述信息', 'type' => 'object'], + 'tag' => ['description' => 'quota的资源标签', 'type' => 'string', 'example' => 'abc'], + 'createTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-09-06T02:14:44Z'."\n"], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'], ], ], ], @@ -16774,12 +9642,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -16787,75 +9650,40 @@ ], 'ListResources' => [ 'path' => '/api/v1/projects/{projectName}/resources', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'tenantRelevance' => 'tenant', - ], + 'systemTags' => ['operationType' => 'list', 'tenantRelevance' => 'tenant'], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', - ], + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], ], [ 'name' => 'schemaName', 'in' => 'query', - 'schema' => [ - 'description' => 'schema名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'schema' => ['description' => 'schema名称。', 'type' => 'string', 'required' => false, 'example' => 'default'], ], [ 'name' => 'name', 'in' => 'query', - 'schema' => [ - 'description' => '资源名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'res'."\n", - ], + 'schema' => ['description' => '资源名称。', 'type' => 'string', 'required' => false, 'example' => 'res'."\n"], ], [ 'name' => 'marker', 'in' => 'query', - 'schema' => [ - 'description' => '设定结果从marker之后按字母排序的第一个开始返回。', - 'type' => 'string', - 'required' => false, - 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==', - ], + 'schema' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。', 'type' => 'string', 'required' => false, 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg=='], ], [ 'name' => 'maxItem', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回的最大结果数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - 'default' => '10', - ], + 'schema' => ['description' => '每页返回的最大结果数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'default' => '10'], ], ], 'responses' => [ @@ -16865,11 +9693,7 @@ 'description' => 'PopResult>', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc3b4ae16685836687916212e7850', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc3b4ae16685836687916212e7850'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -16881,85 +9705,27 @@ 'description' => '资源列表。', 'type' => 'object', 'properties' => [ - 'displayName' => [ - 'description' => '显示名称', - 'type' => 'string', - 'example' => 'res_1'."\n", - ], - 'name' => [ - 'description' => '资源名称。', - 'type' => 'string', - 'example' => 'res_1', - ], - 'owner' => [ - 'description' => '资源的拥有者。', - 'type' => 'string', - 'example' => '1265860483008101', - ], + 'displayName' => ['description' => '显示名称', 'type' => 'string', 'example' => 'res_1'."\n"], + 'name' => ['description' => '资源名称。', 'type' => 'string', 'example' => 'res_1'], + 'owner' => ['description' => '资源的拥有者。', 'type' => 'string', 'example' => '1265860483008101'], 'type' => [ 'description' => '资源类型。', 'type' => 'string', - 'enumValueTitles' => [ - 'file' => 'file', - 'py' => 'py', - 'jar' => 'jar', - 'volumefile' => 'volumefile', - 'table' => 'table', - ], + 'enumValueTitles' => ['file' => 'file', 'py' => 'py', 'jar' => 'jar', 'volumefile' => 'volumefile', 'table' => 'table'], 'example' => 'file', ], - 'schema' => [ - 'description' => '所属schema。', - 'type' => 'string', - 'example' => 'schemaA', - ], - 'lastUpdator' => [ - 'description' => '最后更新人。', - 'type' => 'string', - 'example' => 'ALIYUN$xxx@test.aliyunid.com', - ], - 'creationTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-01-29T03:34:09Z', - ], - 'lastModifiedTime' => [ - 'description' => '修改时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2023-04-18T06:15:05Z', - ], - 'comment' => [ - 'description' => '备注。', - 'type' => 'string', - 'example' => 'filr类型资源', - ], - 'size' => [ - 'description' => '大小。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'contentMD5' => [ - 'description' => 'HTTP请求正文的128-bit MD5散列值转换成BASE64编码的结果。', - 'type' => 'string', - 'example' => 'MACiECZtnLiNkNS1v5****=1', - ], + 'schema' => ['description' => '所属schema。', 'type' => 'string', 'example' => 'schemaA'], + 'lastUpdator' => ['description' => '最后更新人。', 'type' => 'string', 'example' => 'ALIYUN$xxx@test.aliyunid.com'], + 'creationTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-01-29T03:34:09Z'], + 'lastModifiedTime' => ['description' => '修改时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2023-04-18T06:15:05Z'], + 'comment' => ['description' => '备注。', 'type' => 'string', 'example' => 'Filr type resource'], + 'size' => ['description' => '大小。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'contentMD5' => ['description' => 'HTTP请求正文的128-bit MD5散列值转换成BASE64编码的结果。', 'type' => 'string', 'example' => 'MACiECZtnLiNkNS1v5****=1'], ], ], ], - 'marker' => [ - 'description' => '设定结果从marker之后按字母排序的第一个开始返回。', - 'type' => 'string', - 'example' => 'ZmN0X21vbnRoX3Rhb2Jhb19pbmRleCE=', - ], - 'maxItem' => [ - 'description' => '每页返回的最大结果数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。', 'type' => 'string', 'example' => 'ZmN0X21vbnRoX3Rhb2Jhb19pbmRleCE='], + 'maxItem' => ['description' => '每页返回的最大结果数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], ], ], ], @@ -16970,13 +9736,13 @@ 'enable' => false, 'eventNames' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc3b4ae16685836687916212e7850\\",\\n \\"data\\": {\\n \\"resources\\": [\\n {\\n \\"displayName\\": \\"res_1\\\\n\\",\\n \\"name\\": \\"res_1\\",\\n \\"owner\\": \\"1265860483008101\\",\\n \\"type\\": \\"file\\",\\n \\"schema\\": \\"schemaA\\",\\n \\"lastUpdator\\": \\"ALIYUN$xxx@test.aliyunid.com\\",\\n \\"creationTime\\": 0,\\n \\"lastModifiedTime\\": 0,\\n \\"comment\\": \\"filr类型资源\\",\\n \\"size\\": 10,\\n \\"contentMD5\\": \\"MACiECZtnLiNkNS1v5****=1\\"\\n }\\n ],\\n \\"marker\\": \\"ZmN0X21vbnRoX3Rhb2Jhb19pbmRleCE=\\",\\n \\"maxItem\\": 10\\n }\\n}","type":"json"}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc3b4ae16685836687916212e7850\\",\\n \\"data\\": {\\n \\"resources\\": [\\n {\\n \\"displayName\\": \\"res_1\\\\n\\",\\n \\"name\\": \\"res_1\\",\\n \\"owner\\": \\"1265860483008101\\",\\n \\"type\\": \\"file\\",\\n \\"schema\\": \\"schemaA\\",\\n \\"lastUpdator\\": \\"ALIYUN$xxx@test.aliyunid.com\\",\\n \\"creationTime\\": 0,\\n \\"lastModifiedTime\\": 0,\\n \\"comment\\": \\"Filr type resource\\",\\n \\"size\\": 10,\\n \\"contentMD5\\": \\"MACiECZtnLiNkNS1v5****=1\\"\\n }\\n ],\\n \\"marker\\": \\"ZmN0X21vbnRoX3Rhb2Jhb19pbmRleCE=\\",\\n \\"maxItem\\": 10\\n }\\n}","type":"json"}]', 'title' => '获取资源列表', 'summary' => '获取MaxCompute项目内的资源列表。', - 'changeSet' => [ - [ - 'createdAt' => '2023-11-14T07:01:39.000Z', - 'description' => '请求参数发生变更、响应参数发生变更', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListResources'], ], ], 'ramActions' => [ @@ -16987,12 +9753,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], @@ -17000,13 +9761,8 @@ ], 'ListRoles' => [ 'path' => '/api/v1/projects/{projectName}/roles', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -17017,20 +9773,13 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '144112', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', - ], + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], ], ], 'responses' => [ @@ -17040,11 +9789,7 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0a06dfe716686526652451361e80ae', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0a06dfe716686526652451361e80ae'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -17056,38 +9801,27 @@ 'description' => '角色列表', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '角色名称。', - 'type' => 'string', - 'example' => 'roleA', - ], + 'name' => ['description' => '角色名称。', 'type' => 'string', 'example' => 'roleA'], 'type' => [ 'description' => '角色类型', 'type' => 'string', - 'enumValueTitles' => [ - 'resource' => 'resource', - 'admin' => 'admin', - ], + 'enumValueTitles' => ['resource' => 'resource', 'admin' => 'admin'], 'example' => 'admin', ], - 'policy' => [ - 'description' => '角色的Policy授权信息', - 'type' => 'string', - 'example' => '{'."\n" - .' "Statement": ['."\n" - .' {'."\n" - .' "Action": ['."\n" - .' "odps:*"'."\n" - .' ],'."\n" - .' "Effect": "Allow",'."\n" - .' "Resource": ['."\n" - .' "acs:odps:*:projects/{projectname}/authorization/packages"'."\n" - .' ]'."\n" - .' }'."\n" - .' ],'."\n" - .' "Version": "1"'."\n" - .'}', - ], + 'policy' => ['description' => '角色的Policy授权信息', 'type' => 'string', 'example' => '{'."\n" + .' "Statement": ['."\n" + .' {'."\n" + .' "Action": ['."\n" + .' "odps:*"'."\n" + .' ],'."\n" + .' "Effect": "Allow",'."\n" + .' "Resource": ['."\n" + .' "acs:odps:*:projects/{projectname}/authorization/packages"'."\n" + .' ]'."\n" + .' }'."\n" + .' ],'."\n" + .' "Version": "1"'."\n" + .'}'], 'acl' => [ 'description' => '角色的ACL授权信息', 'type' => 'object', @@ -17099,19 +9833,11 @@ 'description' => '表', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '表名称。', - 'type' => 'string', - 'example' => 'tableA', - ], + 'name' => ['description' => '表名称。', 'type' => 'string', 'example' => 'tableA'], 'actions' => [ 'description' => '表操作', 'type' => 'array', - 'items' => [ - 'description' => '表操作', - 'type' => 'string', - 'example' => 'describe', - ], + 'items' => ['description' => '表操作', 'type' => 'string', 'example' => 'describe'], ], ], ], @@ -17123,19 +9849,11 @@ 'description' => '资源', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '资源名称。', - 'type' => 'string', - 'example' => 'resourceA', - ], + 'name' => ['description' => '资源名称。', 'type' => 'string', 'example' => 'resourceA'], 'actions' => [ 'description' => '资源操作', 'type' => 'array', - 'items' => [ - 'description' => '资源操作', - 'type' => 'string', - 'example' => 'read', - ], + 'items' => ['description' => '资源操作', 'type' => 'string', 'example' => 'read'], ], ], ], @@ -17147,19 +9865,11 @@ 'description' => '函数', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '函数名称。', - 'type' => 'string', - 'example' => 'functionA', - ], + 'name' => ['description' => '函数名称。', 'type' => 'string', 'example' => 'functionA'], 'actions' => [ 'description' => '函数操作', 'type' => 'array', - 'items' => [ - 'description' => '函数操作', - 'type' => 'string', - 'example' => 'read', - ], + 'items' => ['description' => '函数操作', 'type' => 'string', 'example' => 'read'], ], ], ], @@ -17171,19 +9881,11 @@ 'description' => 'package', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'package名称', - 'type' => 'string', - 'example' => 'packageA', - ], + 'name' => ['description' => 'package名称', 'type' => 'string', 'example' => 'packageA'], 'actions' => [ 'description' => 'package操作', 'type' => 'array', - 'items' => [ - 'description' => 'package操作', - 'type' => 'string', - 'example' => 'read', - ], + 'items' => ['description' => 'package操作', 'type' => 'string', 'example' => 'read'], ], ], ], @@ -17195,19 +9897,11 @@ 'description' => '项目', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'maxcompute项目名称', - 'type' => 'string', - 'example' => 'projectA', - ], + 'name' => ['description' => 'maxcompute项目名称', 'type' => 'string', 'example' => 'projectA'], 'actions' => [ 'description' => '项目操作', 'type' => 'array', - 'items' => [ - 'description' => '项目操作', - 'type' => 'string', - 'example' => 'list', - ], + 'items' => ['description' => '项目操作', 'type' => 'string', 'example' => 'list'], ], ], ], @@ -17219,19 +9913,11 @@ 'description' => '实例', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '实例名称。', - 'type' => 'string', - 'example' => 'instanceA', - ], + 'name' => ['description' => '实例名称。', 'type' => 'string', 'example' => 'instanceA'], 'actions' => [ 'description' => '实例操作', 'type' => 'array', - 'items' => [ - 'description' => '实例操作', - 'type' => 'string', - 'example' => 'read', - ], + 'items' => ['description' => '实例操作', 'type' => 'string', 'example' => 'read'], ], ], ], @@ -17263,171 +9949,102 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], ], ], 'ListStoragePartitionsInfo' => [ + 'summary' => '获取某个MaxCompute项目内分区表的各分区存储明细。', 'path' => '/api/v1/observations/analysis/storage/projects/{project}/tables/{table}/partitionsInfo', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', 'abilityTreeCode' => '223396', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], + 'autoTest' => true, + 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择**租户管理**>**租户属性**查看。', - 'type' => 'string', - 'required' => false, - 'example' => '40713753659****', - ], + 'schema' => ['description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择**租户管理**>**租户属性**查看。', 'type' => 'string', 'required' => false, 'example' => '40713753659****'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], ], [ 'name' => 'date', 'in' => 'query', - 'schema' => [ - 'description' => '统计日期,以天为级别,时间参数填写为YYYYMMdd。', - 'type' => 'string', - 'required' => true, - 'example' => '20241205', - ], + 'schema' => ['description' => '统计日期,以天为级别,时间参数填写为YYYYMMdd。', 'type' => 'string', 'required' => true, 'example' => '20241205'], ], [ 'name' => 'project', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_project', - ], + 'schema' => ['description' => 'MaxCompute项目名称。', 'type' => 'string', 'required' => true, 'example' => 'odps_project'], ], [ 'name' => 'schema', 'in' => 'query', - 'schema' => [ - 'description' => '归属schema。', - 'type' => 'string', - 'required' => false, - 'example' => 'schema', - ], + 'schema' => ['description' => '归属schema。', 'type' => 'string', 'required' => false, 'example' => 'schema'], ], [ 'name' => 'table', 'in' => 'path', - 'schema' => [ - 'description' => '表名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'bank_data', - ], + 'schema' => ['description' => '表名称。', 'type' => 'string', 'required' => true, 'example' => 'bank_data'], ], [ 'name' => 'partitionPrefix', 'in' => 'query', - 'schema' => [ - 'description' => '分区名称(模糊匹配)。', - 'type' => 'string', - 'required' => false, - 'example' => '20241201', - ], + 'schema' => ['description' => '分区名称(模糊匹配)。', 'type' => 'string', 'required' => false, 'example' => '20241201'], ], [ 'name' => 'types', 'in' => 'query', - 'style' => 'json', + 'style' => 'simple', 'schema' => [ 'description' => '存储类型。', 'type' => 'array', - 'items' => [ - 'description' => '存储类型。'."\n" - .'- standard:标准存储;'."\n" - .'- lowfrequency:低频存储;'."\n" - .'- longterm:长期存储。', - 'type' => 'string', - 'required' => false, - 'example' => 'standard', - ], + 'items' => ['description' => '存储类型。'."\n" + .'- standardStorage:标准存储;'."\n" + .'- lowFreqStorage:低频存储;'."\n" + .'- longTermStorage:长期存储。', 'type' => 'string', 'required' => false, 'example' => 'standardStorage'], 'required' => false, ], ], [ 'name' => 'orderColumn', 'in' => 'query', - 'schema' => [ - 'description' => '排序列。', - 'type' => 'string', - 'required' => false, - 'example' => 'totalFrequency', - ], + 'schema' => ['description' => '排序列。', 'type' => 'string', 'required' => false, 'example' => 'totalFrequency'], ], [ 'name' => 'ascOrder', 'in' => 'query', - 'schema' => [ - 'description' => '是否升序排列。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', - ], + 'schema' => ['description' => '是否升序排列。', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回数目,默认为10。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '每页返回数目,默认为10。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], [ 'name' => 'pageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '分页页码。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '分页页码。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], ], 'responses' => [ @@ -17437,32 +10054,15 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0be3e0bd16661643917136451ebf55', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'This object does not exist.', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0be3e0bd16661643917136451ebf55'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This object does not exist.'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', @@ -17474,124 +10074,39 @@ 'description' => '分区存储信息列表。', 'type' => 'object', 'properties' => [ - 'projectName' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'example' => 'odps_project', - ], - 'schemaName' => [ - 'description' => 'Schema名称。', - 'type' => 'string', - 'example' => 'schema', - ], - 'tableName' => [ - 'description' => '表名称。', - 'type' => 'string', - 'example' => 'bank_data', - ], - 'partition' => [ - 'description' => '分区名称。', - 'type' => 'string', - 'example' => 'ds=20241201', - ], - 'isPartitioned' => [ - 'description' => '是否分区表。本接口返回均为分区信息,无需关注此字段。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'type' => [ - 'description' => '类型。', - 'type' => 'string', - 'example' => 'PARTITION', - ], - 'storageType' => [ - 'description' => '存储类型。'."\n" - .'- standard:标准存储;'."\n" - .'- lowfrequency:低频存储;'."\n" - .'- longterm:长期存储。', - 'type' => 'string', - 'example' => 'standard', - ], - 'totalFrequency' => [ - 'description' => '访问频次。'."\n" - .'> - 访问行为包括:'."\n" - .'>> - 表作为SQL计算任务中的输入表。'."\n" - .'>> - 表被Tunnel下载。'."\n" - .'>> - 表被StorageAPI调用Read(分区表的分区粒度数据暂无)。访问每增加一次,访问频次+1。'."\n" - .'> - 该数据从2023年7月陆续升级统计,在升级后没有被访问过或者通过ALGO作业、Hologres直读方式访问的将无法统计至访问频次。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'totalInputAmount' => [ - 'description' => '访问数据总量。'."\n" - .'> 所有访问行为读取的数据量。', - 'type' => 'number', - 'format' => 'double', - 'example' => '1', - ], - 'totalInputAmountUnit' => [ - 'description' => '访问数据总量单位。', - 'type' => 'string', - 'example' => 'GB', - ], - 'fileCount' => [ - 'description' => '文件数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'fileSize' => [ - 'description' => '存储大小。', - 'type' => 'number', - 'format' => 'double', - 'example' => '1', - ], - 'fileSizeUnit' => [ - 'description' => '存储大小单位。', - 'type' => 'string', - 'example' => 'GB', - ], - 'rate' => [ - 'description' => '总存储量近{$recentDays}天同比。本接口无此返回值。', - 'type' => 'number', - 'format' => 'double', - 'example' => '1%', - ], - 'lastAccessTime' => [ - 'description' => '分区的数据最后访问时间。'."\n" - .'> 该数据从2023年7月陆续升级采集,在升级后没有被访问过或者通过ALGO作业、Hologres直读方式访问的无法采集到last_access_time。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1694589365', - ], + 'projectName' => ['description' => '项目名称。', 'type' => 'string', 'example' => 'odps_project'], + 'schemaName' => ['description' => 'Schema名称。', 'type' => 'string', 'example' => 'schema'], + 'tableName' => ['description' => '表名称。', 'type' => 'string', 'example' => 'bank_data'], + 'partition' => ['description' => '分区名称。', 'type' => 'string', 'example' => 'ds=20241201'], + 'isPartitioned' => ['description' => '是否分区表。本接口返回均为分区信息,无需关注此字段。', 'type' => 'boolean', 'example' => 'false'], + 'type' => ['description' => '类型。', 'type' => 'string', 'example' => 'PARTITION'], + 'storageType' => ['description' => '存储类型。'."\n" + .'- standard:标准存储;'."\n" + .'- lowfrequency:低频存储;'."\n" + .'- longterm:长期存储。', 'type' => 'string', 'example' => 'standard'], + 'totalFrequency' => ['description' => '访问频次。'."\n" + .'> - 访问行为包括:'."\n" + .'>> - 表作为SQL计算任务中的输入表。'."\n" + .'>> - 表被Tunnel下载。'."\n" + .'>> - 表被StorageAPI调用Read(分区表的分区粒度数据暂无)。访问每增加一次,访问频次+1。'."\n" + .'> - 该数据从2023年7月陆续升级统计,在升级后没有被访问过或者通过ALGO作业、Hologres直读方式访问的将无法统计至访问频次。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'totalInputAmount' => ['description' => '访问数据总量。'."\n" + .'> 所有访问行为读取的数据量。', 'type' => 'number', 'format' => 'double', 'example' => '1'], + 'totalInputAmountUnit' => ['description' => '访问数据总量单位。', 'type' => 'string', 'example' => 'GB'], + 'fileCount' => ['description' => '文件数。', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'fileSize' => ['description' => '存储大小。', 'type' => 'number', 'format' => 'double', 'example' => '1'], + 'fileSizeUnit' => ['description' => '存储大小单位。', 'type' => 'string', 'example' => 'GB'], + 'rate' => ['description' => '总存储量近{$recentDays}天同比。本接口无此返回值。', 'type' => 'number', 'format' => 'double', 'example' => '1%'], + 'lastAccessTime' => ['description' => '分区的数据最后访问时间。'."\n" + .'> 该数据从2023年7月陆续升级采集,在升级后没有被访问过或者通过ALGO作业、Hologres直读方式访问的无法采集到last_access_time。', 'type' => 'integer', 'format' => 'int64', 'example' => '1694589365'], ], ], ], - 'date' => [ - 'description' => '统计日期。', - 'type' => 'string', - 'example' => '20241205', - ], - 'totalCount' => [ - 'description' => '返回结果的总数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '57', - ], - 'pageNumber' => [ - 'description' => '当前页码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'pageSize' => [ - 'description' => '每页记录数。'."\n" - ."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], + 'date' => ['description' => '统计日期。', 'type' => 'string', 'example' => '20241205'], + 'totalCount' => ['description' => '返回结果的总数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '57'], + 'pageNumber' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'pageSize' => ['description' => '每页记录数。'."\n" + ."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '10'], ], ], ], @@ -17600,8 +10115,12 @@ ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0be3e0bd16661643917136451ebf55\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"This object does not exist.\\",\\n \\"data\\": {\\n \\"storagePartitionInfoList\\": [\\n {\\n \\"projectName\\": \\"odps_project\\",\\n \\"schemaName\\": \\"schema\\",\\n \\"tableName\\": \\"bank_data\\",\\n \\"partition\\": \\"ds=20241201\\",\\n \\"isPartitioned\\": false,\\n \\"type\\": \\"PARTITION\\",\\n \\"storageType\\": \\"standard\\",\\n \\"totalFrequency\\": 10,\\n \\"totalInputAmount\\": 1,\\n \\"totalInputAmountUnit\\": \\"GB\\",\\n \\"fileCount\\": 2,\\n \\"fileSize\\": 1,\\n \\"fileSizeUnit\\": \\"GB\\",\\n \\"rate\\": 0,\\n \\"lastAccessTime\\": 1694589365\\n }\\n ],\\n \\"date\\": \\"20241205\\",\\n \\"totalCount\\": 57,\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 10\\n }\\n}","type":"json"}]', 'title' => '获取分区存储明细', - 'summary' => '获取某个MaxCompute项目内分区表的各分区存储明细。', 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListStoragePartitionsInfo'], + ], + ], 'ramActions' => [ [ 'operationType' => 'get', @@ -17610,12 +10129,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Storage', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#project}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Storage', 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#project}'], ], ], ], @@ -17623,13 +10137,8 @@ ], 'ListStorageProjectsInfo' => [ 'path' => '/api/v1/observations/analysis/storage/projectsInfo', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -17639,111 +10148,58 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '223394', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], ], 'parameters' => [ [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择**租户管理**>**租户属性**查看。', - 'type' => 'string', - 'required' => false, - 'example' => '28074710977****', - ], + 'schema' => ['description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择**租户管理**>**租户属性**查看。', 'type' => 'string', 'required' => false, 'example' => '28074710977****'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域id。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-chengdu', - ], + 'schema' => ['description' => '地域id。', 'type' => 'string', 'required' => false, 'example' => 'cn-chengdu'], ], [ 'name' => 'projectPrefix', 'in' => 'query', - 'schema' => [ - 'description' => 'MaxCompute 项目名称前缀', - 'type' => 'string', - 'required' => false, - 'example' => 'odps_project', - ], + 'schema' => ['description' => 'MaxCompute 项目名称前缀', 'type' => 'string', 'required' => false, 'example' => 'odps_project'], ], [ 'name' => 'date', 'in' => 'query', - 'schema' => [ - 'description' => '统计日期,以天为级别,时间参数填写为`YYYYMMdd`。', - 'type' => 'string', - 'required' => true, - 'example' => '20241205', - ], + 'schema' => ['description' => '统计日期,以天为级别,时间参数填写为`YYYYMMdd`。', 'type' => 'string', 'required' => true, 'example' => '20241205'], ], [ 'name' => 'recentDays', 'in' => 'query', - 'schema' => [ - 'description' => '同比对比天数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => '同比对比天数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], ], [ 'name' => 'orderColumn', 'in' => 'query', - 'schema' => [ - 'description' => '排序列。包括:'."\n" - .'- totalStorage'."\n" - .'- longTermStorage'."\n" - .'- lowFreqStorage'."\n" - .'- standardStorage'."\n" - .'- recycleBinStorage', - 'type' => 'string', - 'required' => false, - 'example' => 'totalStorage', - 'default' => 'totalStorage', - ], + 'schema' => ['description' => '排序列。包括:'."\n" + .'- totalStorage'."\n" + .'- longTermStorage'."\n" + .'- lowFreqStorage'."\n" + .'- standardStorage'."\n" + .'- recycleBinStorage', 'type' => 'string', 'required' => false, 'example' => 'totalStorage', 'default' => 'totalStorage'], ], [ 'name' => 'ascOrder', 'in' => 'query', - 'schema' => [ - 'description' => '是否升序排列。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', - ], + 'schema' => ['description' => '是否升序排列。', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回数目', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '每页返回数目', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], [ 'name' => 'pageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '分页页码。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '分页页码。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], ], 'responses' => [ @@ -17753,32 +10209,15 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0bc3b4b016674434996033675e71ee', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST'."\n", - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'this quota is not exist.', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0bc3b4b016674434996033675e71ee'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'."\n"], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'this quota is not exist.'], 'data' => [ 'description' => '数据', 'type' => 'object', @@ -17790,109 +10229,27 @@ 'description' => '项目级别的存储信息', 'type' => 'object', 'properties' => [ - 'date' => [ - 'description' => '统计日期,以天为级别,时间参数填写为`YYYYMMdd`。', - 'type' => 'string', - 'example' => '20250528', - ], - 'projectName' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'example' => 'max_testproject', - ], - 'totalStorage' => [ - 'description' => '总存储用量。', - 'type' => 'number', - 'format' => 'double', - 'example' => '1', - ], - 'totalStorageUnit' => [ - 'description' => '总存储用量单位。', - 'type' => 'string', - 'example' => 'TB', - ], - 'standardStorage' => [ - 'description' => '标准存储用量。', - 'type' => 'number', - 'format' => 'double', - 'example' => '500', - ], - 'standardStorageUnit' => [ - 'description' => '标准存储用量单位。', - 'type' => 'string', - 'example' => 'GB', - ], - 'longTermStorage' => [ - 'description' => '长期存储用量。', - 'type' => 'number', - 'format' => 'double', - 'example' => '300', - ], - 'longTermStorageUnit' => [ - 'description' => '长期存储用量单位。', - 'type' => 'string', - 'example' => 'GB', - ], - 'lowFreqStorage' => [ - 'description' => '低频存储用量。', - 'type' => 'number', - 'format' => 'double', - 'example' => '200', - ], - 'lowFreqStorageUnit' => [ - 'description' => '低频存储用量单位。', - 'type' => 'string', - 'example' => 'GB', - ], - 'recycleBinStorage' => [ - 'description' => '回收站存储用量。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0', - ], - 'recycleBinStorageUnit' => [ - 'description' => '回收站存储用量单位。', - 'type' => 'string', - 'example' => 'B', - ], - 'rate' => [ - 'description' => '总存储量近{$recentDays}天同比。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.011872406445069006', - ], - 'timestamp' => [ - 'description' => '数据最近一次更新的时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1749105045512', - ], + 'date' => ['description' => '统计日期,以天为级别,时间参数填写为`YYYYMMdd`。', 'type' => 'string', 'example' => '20250528'], + 'projectName' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'example' => 'max_testproject'], + 'totalStorage' => ['description' => '总存储用量。', 'type' => 'number', 'format' => 'double', 'example' => '1'], + 'totalStorageUnit' => ['description' => '总存储用量单位。', 'type' => 'string', 'example' => 'TB'], + 'standardStorage' => ['description' => '标准存储用量。', 'type' => 'number', 'format' => 'double', 'example' => '500'], + 'standardStorageUnit' => ['description' => '标准存储用量单位。', 'type' => 'string', 'example' => 'GB'], + 'longTermStorage' => ['description' => '长期存储用量。', 'type' => 'number', 'format' => 'double', 'example' => '300'], + 'longTermStorageUnit' => ['description' => '长期存储用量单位。', 'type' => 'string', 'example' => 'GB'], + 'lowFreqStorage' => ['description' => '低频存储用量。', 'type' => 'number', 'format' => 'double', 'example' => '200'], + 'lowFreqStorageUnit' => ['description' => '低频存储用量单位。', 'type' => 'string', 'example' => 'GB'], + 'recycleBinStorage' => ['description' => '回收站存储用量。', 'type' => 'number', 'format' => 'double', 'example' => '0'], + 'recycleBinStorageUnit' => ['description' => '回收站存储用量单位。', 'type' => 'string', 'example' => 'B'], + 'rate' => ['description' => '总存储量近{$recentDays}天同比。', 'type' => 'number', 'format' => 'double', 'example' => '0.011872406445069006'], + 'timestamp' => ['description' => '数据最近一次更新的时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1749105045512'], ], ], ], - 'date' => [ - 'description' => '统计日期。', - 'type' => 'string', - 'example' => '20241205', - ], - 'totalCount' => [ - 'description' => '返回结果的总数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '60', - ], - 'pageNumber' => [ - 'description' => '分页页码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'pageSize' => [ - 'description' => '每页记录数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], + 'date' => ['description' => '统计日期。', 'type' => 'string', 'example' => '20241205'], + 'totalCount' => ['description' => '返回结果的总数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'], + 'pageNumber' => ['description' => '分页页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'pageSize' => ['description' => '每页记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], ], ], ], @@ -17914,12 +10271,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -17927,13 +10279,8 @@ ], 'ListStorageTablesInfo' => [ 'path' => '/api/v1/observations/analysis/storage/projects/{project}/tablesInfo', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -17943,82 +10290,43 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '223395', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], ], 'parameters' => [ [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择**租户管理**>**租户属性**查看。', - 'type' => 'string', - 'required' => false, - 'example' => '28074710977****', - ], + 'schema' => ['description' => '租户ID。可以通过登录MaxCompute控制台,在左侧导航栏选择**租户管理**>**租户属性**查看。', 'type' => 'string', 'required' => false, 'example' => '28074710977****'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], ], [ 'name' => 'date', 'in' => 'query', - 'schema' => [ - 'description' => '统计日期,以天为级别,时间参数填写为`YYYYMMdd`。', - 'type' => 'string', - 'required' => true, - 'example' => '20241205', - ], + 'schema' => ['description' => '统计日期,以天为级别,时间参数填写为`YYYYMMdd`。', 'type' => 'string', 'required' => true, 'example' => '20241205'], ], [ 'name' => 'recentDays', 'in' => 'query', - 'schema' => [ - 'description' => '同比对比天数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => '同比对比天数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], ], [ 'name' => 'project', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_project', - ], + 'schema' => ['description' => 'MaxCompute项目名称。', 'type' => 'string', 'required' => true, 'example' => 'odps_project'], ], [ 'name' => 'schema', 'in' => 'query', - 'schema' => [ - 'description' => '归属Schema。', - 'type' => 'string', - 'required' => false, - 'example' => 'schema', - ], + 'schema' => ['description' => '归属Schema。', 'type' => 'string', 'required' => false, 'example' => 'schema'], ], [ 'name' => 'tablePrefix', 'in' => 'query', - 'schema' => [ - 'description' => '表名称(模糊匹配)。', - 'type' => 'string', - 'required' => false, - 'example' => 'bank', - ], + 'schema' => ['description' => '表名称(模糊匹配)。', 'type' => 'string', 'required' => false, 'example' => 'bank'], ], [ 'name' => 'types', @@ -18027,57 +10335,29 @@ 'schema' => [ 'description' => '存储类型。', 'type' => 'array', - 'items' => [ - 'description' => '存储类型。', - 'type' => 'string', - 'required' => false, - 'example' => 'standardStorage', - ], + 'items' => ['description' => '存储类型。', 'type' => 'string', 'required' => false, 'example' => 'standardStorage'], 'required' => false, ], ], [ 'name' => 'orderColumn', 'in' => 'query', - 'schema' => [ - 'description' => '排序列。', - 'type' => 'string', - 'required' => false, - 'example' => 'totalFrequency', - ], + 'schema' => ['description' => '排序列。', 'type' => 'string', 'required' => false, 'example' => 'totalFrequency'], ], [ 'name' => 'ascOrder', 'in' => 'query', - 'schema' => [ - 'description' => '是否升序排列。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', - ], + 'schema' => ['description' => '是否升序排列。', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回数目,默认为10。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '每页返回数目,默认为10。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], [ 'name' => 'pageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '分页页码。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '分页页码。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], ], 'responses' => [ @@ -18087,32 +10367,15 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0bc12e6a16679892465424670db3eb', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'This object does not exist.'."\n", - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0bc12e6a16679892465424670db3eb'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This object does not exist.'."\n"], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', @@ -18124,170 +10387,47 @@ 'description' => '表存储信息列表。', 'type' => 'object', 'properties' => [ - 'date' => [ - 'description' => '统计日期(不会返回)。', - 'type' => 'string', - 'example' => '20241205', - ], - 'projectName' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'example' => 'odps_project', - ], - 'schemaName' => [ - 'description' => 'Schema名称。', - 'type' => 'string', - 'example' => 'schema', - ], - 'tableName' => [ - 'description' => '表名称。', - 'type' => 'string', - 'example' => 'bank_data', - ], - 'isPartitioned' => [ - 'description' => '是否分区表。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'storageType' => [ - 'description' => '表存储类型。'."\n" - .'- standard:标准存储;'."\n" - .'- lowfrequency:低频存储;'."\n" - .'- longterm:长期存储;'."\n" - .'- unknown:当表为分区表时返回此值,需调用ListStoragePartitionsInfo查询各分区的存储类型。', - 'type' => 'string', - 'example' => 'standard', - ], - 'lastAccessTime' => [ - 'description' => '表的数据最后访问时间,当表为非分区表时有此返回值。'."\n" - .'> 该数据从2023年7月陆续升级采集,在升级后没有被访问过或者通过ALGO作业、Hologres直读方式访问的无法采集到last_access_time。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1694589365', - ], - 'totalStorageFileCount' => [ - 'description' => '总文件数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'totalStorage' => [ - 'description' => '总存储用量。分区表为各分区存储用量之和。若各分区存储类型不一致,则为各类型存储用量之和。', - 'type' => 'number', - 'format' => 'double', - 'example' => '600', - ], - 'totalStorageUnit' => [ - 'description' => '存储用量单位。', - 'type' => 'string', - 'example' => 'KB', - ], - 'rate' => [ - 'description' => '总存储量近{$recentDays}天同比。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0', - ], - 'standardStorageFileCount' => [ - 'description' => '标准存储文件数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'standardStorage' => [ - 'description' => '标准存储用量。', - 'type' => 'number', - 'format' => 'double', - 'example' => '600', - ], - 'standardStorageUnit' => [ - 'description' => '标准存储用量单位。', - 'type' => 'string', - 'example' => 'KB', - ], - 'longTermStorageFileCount' => [ - 'description' => '长期存储文件数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'longTermStorage' => [ - 'description' => '长期存储用量。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0', - ], - 'longTermStorageUnit' => [ - 'description' => '长期存储用量单位。', - 'type' => 'string', - 'example' => 'B', - ], - 'lowFreqStorageFileCount' => [ - 'description' => '低频存储文件数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'lowFreqStorage' => [ - 'description' => '低频存储用量。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0', - ], - 'lowFreqStorageUnit' => [ - 'description' => '低频存储用量单位。', - 'type' => 'string', - 'example' => 'B', - ], - 'totalFrequency' => [ - 'description' => '访问频次。'."\n" - .'> - 访问行为包括:'."\n" - .'>> - 表作为SQL计算任务中的输入表。'."\n" - .'>> - 表被Tunnel下载。'."\n" - .'>> - 表被StorageAPI调用Read(分区表的分区粒度数据暂无)。访问每增加一次,访问频次+1。'."\n" - .'> - 该数据从2023年7月陆续升级统计,在升级后没有被访问过或者通过ALGO作业、Hologres直读方式访问的将无法统计至访问频次。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'totalInputAmount' => [ - 'description' => '访问数据总量。'."\n" - .'> 所有访问行为读取的数据量。', - 'type' => 'number', - 'format' => 'double', - 'example' => '1', - ], - 'totalInputAmountUnit' => [ - 'description' => '访问数据总量单位。', - 'type' => 'string', - 'example' => 'GB', - ], - ], - ], - ], - 'date' => [ - 'description' => '统计日期。', - 'type' => 'string', - 'example' => '20241205', - ], - 'totalCount' => [ - 'description' => '返回结果的总数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'pageNumber' => [ - 'description' => '分页页码。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'pageSize' => [ - 'description' => '每页记录数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], + 'date' => ['description' => '统计日期(不会返回)。', 'type' => 'string', 'example' => '20241205'], + 'projectName' => ['description' => '项目名称。', 'type' => 'string', 'example' => 'odps_project'], + 'schemaName' => ['description' => 'Schema名称。', 'type' => 'string', 'example' => 'schema'], + 'tableName' => ['description' => '表名称。', 'type' => 'string', 'example' => 'bank_data'], + 'isPartitioned' => ['description' => '是否分区表。', 'type' => 'boolean', 'example' => 'false'], + 'storageType' => ['description' => '表存储类型。'."\n" + .'- standard:标准存储;'."\n" + .'- lowfrequency:低频存储;'."\n" + .'- longterm:长期存储;'."\n" + .'- unknown:当表为分区表时返回此值,需调用ListStoragePartitionsInfo查询各分区的存储类型。', 'type' => 'string', 'example' => 'standard'], + 'lastAccessTime' => ['description' => '表的数据最后访问时间,当表为非分区表时有此返回值。'."\n" + .'> 该数据从2023年7月陆续升级采集,在升级后没有被访问过或者通过ALGO作业、Hologres直读方式访问的无法采集到last_access_time。', 'type' => 'integer', 'format' => 'int64', 'example' => '1694589365'], + 'totalStorageFileCount' => ['description' => '总文件数。', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'totalStorage' => ['description' => '总存储用量。分区表为各分区存储用量之和。若各分区存储类型不一致,则为各类型存储用量之和。', 'type' => 'number', 'format' => 'double', 'example' => '600'], + 'totalStorageUnit' => ['description' => '存储用量单位。', 'type' => 'string', 'example' => 'KB'], + 'rate' => ['description' => '总存储量近{$recentDays}天同比。', 'type' => 'number', 'format' => 'double', 'example' => '0'], + 'standardStorageFileCount' => ['description' => '标准存储文件数。', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'standardStorage' => ['description' => '标准存储用量。', 'type' => 'number', 'format' => 'double', 'example' => '600'], + 'standardStorageUnit' => ['description' => '标准存储用量单位。', 'type' => 'string', 'example' => 'KB'], + 'longTermStorageFileCount' => ['description' => '长期存储文件数。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'longTermStorage' => ['description' => '长期存储用量。', 'type' => 'number', 'format' => 'double', 'example' => '0'], + 'longTermStorageUnit' => ['description' => '长期存储用量单位。', 'type' => 'string', 'example' => 'B'], + 'lowFreqStorageFileCount' => ['description' => '低频存储文件数。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'lowFreqStorage' => ['description' => '低频存储用量。', 'type' => 'number', 'format' => 'double', 'example' => '0'], + 'lowFreqStorageUnit' => ['description' => '低频存储用量单位。', 'type' => 'string', 'example' => 'B'], + 'totalFrequency' => ['description' => '访问频次。'."\n" + .'> - 访问行为包括:'."\n" + .'>> - 表作为SQL计算任务中的输入表。'."\n" + .'>> - 表被Tunnel下载。'."\n" + .'>> - 表被StorageAPI调用Read(分区表的分区粒度数据暂无)。访问每增加一次,访问频次+1。'."\n" + .'> - 该数据从2023年7月陆续升级统计,在升级后没有被访问过或者通过ALGO作业、Hologres直读方式访问的将无法统计至访问频次。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'totalInputAmount' => ['description' => '访问数据总量。'."\n" + .'> 所有访问行为读取的数据量。', 'type' => 'number', 'format' => 'double', 'example' => '1'], + 'totalInputAmountUnit' => ['description' => '访问数据总量单位。', 'type' => 'string', 'example' => 'GB'], + ], + ], + ], + 'date' => ['description' => '统计日期。', 'type' => 'string', 'example' => '20241205'], + 'totalCount' => ['description' => '返回结果的总数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'pageNumber' => ['description' => '分页页码。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'pageSize' => ['description' => '每页记录数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], ], ], ], @@ -18306,12 +10446,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Storage', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#project}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Storage', 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#project}'], ], ], ], @@ -18319,13 +10454,8 @@ ], 'ListTables' => [ 'path' => '/api/v1/projects/{projectName}/tables', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -18335,52 +10465,28 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '143060', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', - ], + 'schema' => ['description' => 'MaxCompute项目名称。', 'type' => 'string', 'required' => true, 'example' => 'projectA'], ], [ 'name' => 'prefix', 'in' => 'query', - 'schema' => [ - 'description' => '限定返回的资源名称,名称必须以Prefix作为前缀,例如Prefix是a,则返回的资源名均是以a开始的。', - 'type' => 'string', - 'required' => false, - 'example' => 'a', - ], + 'schema' => ['description' => '限定返回的资源名称,名称必须以Prefix作为前缀,例如Prefix是a,则返回的资源名均是以a开始的。', 'type' => 'string', 'required' => false, 'example' => 'a'], ], [ 'name' => 'marker', 'in' => 'query', - 'schema' => [ - 'description' => '设定结果从marker之后按字母排序的第一个开始返回。', - 'type' => 'string', - 'required' => false, - 'example' => 'Y29tbWlzc2lvbl9leHRlcm5hbF91cmdlXzFfd3Ih', - ], + 'schema' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。', 'type' => 'string', 'required' => false, 'example' => 'Y29tbWlzc2lvbl9leHRlcm5hbF91cmdlXzFfd3Ih'], ], [ 'name' => 'maxItem', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回的最大结果数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - 'default' => '10', - ], + 'schema' => ['description' => '每页返回的最大结果数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'default' => '10'], ], [ 'name' => 'type', @@ -18389,22 +10495,14 @@ 'description' => '表类型。', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'internal' => 'internal', - 'external' => 'external', - ], + 'enumValueTitles' => ['internal' => 'internal', 'external' => 'external'], 'example' => 'internal', ], ], [ 'name' => 'schemaName', 'in' => 'query', - 'schema' => [ - 'description' => 'Schema名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'schema' => ['description' => 'Schema名称。', 'type' => 'string', 'required' => false, 'example' => 'default'], ], ], 'responses' => [ @@ -18414,11 +10512,7 @@ 'description' => 'PopResult>', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0a06dd4516687375802853481ec9fd', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0a06dd4516687375802853481ec9fd'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -18430,51 +10524,17 @@ 'description' => '表信息。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '表名称。', - 'type' => 'string', - 'example' => 'sale_detail', - ], - 'owner' => [ - 'description' => '表所有者。', - 'type' => 'string', - 'example' => '188785396123****', - ], - 'type' => [ - 'description' => '表类型。', - 'type' => 'string', - 'example' => 'internal'."\n", - ], - 'schema' => [ - 'description' => '归属schema。', - 'type' => 'string', - 'example' => 'default', - ], - 'creationTime' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2022-01-17T07:07:47Z', - ], - 'displayName' => [ - 'description' => '展示名称。', - 'type' => 'string', - 'example' => 'sale_detail', - ], + 'name' => ['description' => '表名称。', 'type' => 'string', 'example' => 'sale_detail'], + 'owner' => ['description' => '表所有者。', 'type' => 'string', 'example' => '188785396123****'], + 'type' => ['description' => '表类型。', 'type' => 'string', 'example' => 'internal'."\n"], + 'schema' => ['description' => '归属schema。', 'type' => 'string', 'example' => 'default'], + 'creationTime' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2022-01-17T07:07:47Z'], + 'displayName' => ['description' => '展示名称。', 'type' => 'string', 'example' => 'sale_detail'], ], ], ], - 'marker' => [ - 'description' => '设定结果从marker之后按字母排序的第一个开始返回。', - 'type' => 'string', - 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==', - ], - 'maxItem' => [ - 'description' => '每页返回的最大结果数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。', 'type' => 'string', 'example' => 'cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg=='], + 'maxItem' => ['description' => '每页返回的最大结果数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], ], ], ], @@ -18489,18 +10549,9 @@ 'title' => '获取表列表', 'summary' => '获取MaxCompute项目内的表列表。', 'changeSet' => [ - [ - 'createdAt' => '2024-09-23T03:28:20.000Z', - 'description' => '响应参数发生变更', - ], - [ - 'createdAt' => '2023-11-14T07:01:39.000Z', - 'description' => '请求参数发生变更、响应参数发生变更', - ], - [ - 'createdAt' => '2022-11-28T13:46:34.000Z', - 'description' => '请求参数发生变更', - ], + ['createdAt' => '2024-09-23T03:28:20.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-11-14T07:01:39.000Z', 'description' => '请求参数发生变更、响应参数发生变更'], + ['createdAt' => '2022-11-28T13:46:34.000Z', 'description' => '请求参数发生变更'], ], 'ramActions' => [ [ @@ -18510,12 +10561,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], @@ -18523,12 +10569,8 @@ ], 'ListTunnelQuotaTimer' => [ 'path' => '/api/v1/tunnel/{nickname}/timers', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -18538,21 +10580,14 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '254735', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => '一级数据传输服务独享资源组(Tunnel Quota)昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'ot_tunnel_quota_p'."\n", - ], + 'schema' => ['description' => '一级数据传输服务独享资源组(Tunnel Quota)昵称。', 'type' => 'string', 'required' => true, 'example' => 'ot_tunnel_quota_p'."\n"], ], ], 'responses' => [ @@ -18562,32 +10597,15 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0be3e0b716671885050924814e3623', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'This object does not exist.', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0be3e0b716671885050924814e3623'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This object does not exist.'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'array', @@ -18595,37 +10613,15 @@ 'description' => '请求返回结果。', 'type' => 'object', 'properties' => [ - 'beginTime' => [ - 'description' => '分时配置开始时间。', - 'type' => 'string', - 'example' => '00:00', - ], - 'endTime' => [ - 'description' => '分时配置结束时间。', - 'type' => 'string', - 'example' => '08:00', - ], - 'timezone' => [ - 'description' => '分时配置时区属性。', - 'type' => 'string', - 'example' => 'Asia/Shanghai', - ], + 'beginTime' => ['description' => '分时配置开始时间。', 'type' => 'string', 'example' => '00:00'], + 'endTime' => ['description' => '分时配置结束时间。', 'type' => 'string', 'example' => '08:00'], + 'timezone' => ['description' => '分时配置时区属性。', 'type' => 'string', 'example' => 'Asia/Shanghai'], 'tunnelQuotaParameter' => [ 'description' => '分时配置参数。', 'type' => 'object', 'properties' => [ - 'slotNum' => [ - 'description' => '预留并发(Slot)数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'elasticReservedSlotNum' => [ - 'description' => '弹性预留并发(Slot)数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], + 'slotNum' => ['description' => '预留并发(Slot)数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'elasticReservedSlotNum' => ['description' => '弹性预留并发(Slot)数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], ], ], ], @@ -18647,12 +10643,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -18660,13 +10651,8 @@ ], 'ListUsers' => [ 'path' => '/api/v1/users', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -18676,32 +10662,18 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '144479', - 'abilityTreeNodes' => [ - 'FEATUREodpsRZY2HN', - ], + 'abilityTreeNodes' => ['FEATUREodpsRZY2HN'], ], 'parameters' => [ [ 'name' => 'pageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'description' => '每页返回数目', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '每页返回数目', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], ], 'responses' => [ @@ -18711,11 +10683,7 @@ 'description' => 'PopResult>', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '0a06dd4816687424611405643e3730', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '0a06dd4816687424611405643e3730'], 'data' => [ 'description' => '返回数据', 'type' => 'object', @@ -18727,52 +10695,17 @@ 'description' => '用户列表', 'type' => 'object', 'properties' => [ - 'accountId' => [ - 'description' => '账号ID', - 'type' => 'string', - 'example' => '16783562****', - ], - 'accountName' => [ - 'description' => '账号名称', - 'type' => 'string', - 'example' => 'Bob@', - ], - 'displayName' => [ - 'description' => '显示名称', - 'type' => 'string', - 'example' => 'Bob', - ], - 'accountType' => [ - 'description' => '账号类型', - 'type' => 'string', - 'example' => 'ALIYUN', - ], - 'tenantId' => [ - 'description' => '租户ID', - 'type' => 'string', - 'example' => '1567253789', - ], + 'accountId' => ['description' => '账号ID', 'type' => 'string', 'example' => '16783562****'], + 'accountName' => ['description' => '账号名称', 'type' => 'string', 'example' => 'Bob@'], + 'displayName' => ['description' => '显示名称', 'type' => 'string', 'example' => 'Bob'], + 'accountType' => ['description' => '账号类型', 'type' => 'string', 'example' => 'ALIYUN'], + 'tenantId' => ['description' => '租户ID', 'type' => 'string', 'example' => '1567253789'], ], ], ], - 'totalCount' => [ - 'description' => '返回结果的总数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '64', - ], - 'pageNumber' => [ - 'description' => '当前页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'pageSize' => [ - 'description' => '每页显示条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'totalCount' => ['description' => '返回结果的总数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '64'], + 'pageNumber' => ['description' => '当前页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'pageSize' => ['description' => '每页显示条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], ], ], ], @@ -18791,12 +10724,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], @@ -18804,13 +10732,8 @@ ], 'ListUsersByRole' => [ 'path' => '/api/v1/projects/{projectName}/roles/{roleName}/users', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -18820,30 +10743,18 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '144126', - 'abilityTreeNodes' => [ - 'FEATUREodpsS3AG2F', - ], + 'abilityTreeNodes' => ['FEATUREodpsS3AG2F'], ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', - ], + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], ], [ 'name' => 'roleName', 'in' => 'path', - 'schema' => [ - 'description' => '角色名称', - 'type' => 'string', - 'required' => true, - 'example' => 'roleA', - ], + 'schema' => ['description' => '角色名称', 'type' => 'string', 'required' => true, 'example' => 'roleA'], ], ], 'responses' => [ @@ -18853,11 +10764,7 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '0be3e0bb16654558425251398e27a9', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '0be3e0bb16654558425251398e27a9'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -18869,11 +10776,7 @@ 'description' => '用户列表', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'ALIYUN${account_name}', - ], + 'name' => ['description' => '用户名称', 'type' => 'string', 'example' => 'ALIYUN${account_name}'], ], ], ], @@ -18895,12 +10798,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], @@ -18908,13 +10806,8 @@ ], 'QueryQuota' => [ 'path' => '/api/v1/quotas/{nickname}/query', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -18927,68 +10820,39 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '228019', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], ], 'parameters' => [ [ 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota名称。', - 'type' => 'string', - 'required' => true, - 'example' => '%E9%BB%98%E8%AE%A4%E9%A2%84%E4%BB%98%E8%B4%B9Quota_p'."\n" - ."\n" - .'#中文名称需要经过utf8 urlencode编码转义', - ], + 'schema' => ['description' => 'Quota名称。', 'type' => 'string', 'required' => true, 'example' => '%E9%BB%98%E8%AE%A4%E9%A2%84%E4%BB%98%E8%B4%B9Quota_p'."\n" + ."\n" + .'# Chinese name needs to be UTF-8 URL-encoded'], ], [ 'name' => 'tenantId', 'in' => 'query', - 'schema' => [ - 'description' => '租户ID。', - 'type' => 'string', - 'required' => false, - 'example' => '483212237127906', - ], + 'schema' => ['description' => '租户ID。', 'type' => 'string', 'required' => false, 'example' => '483212237127906'], ], [ 'name' => 'region', 'in' => 'query', - 'schema' => [ - 'description' => '地域id。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-chengdu', - ], + 'schema' => ['description' => '地域id。', 'type' => 'string', 'required' => false, 'example' => 'cn-chengdu'], ], [ 'name' => 'AkProven', 'in' => 'query', - 'schema' => [ - 'description' => 'ak换取凭证。', - 'type' => 'string', - 'required' => false, - 'example' => 'null', - 'default' => '', - ], + 'schema' => ['description' => 'ak换取凭证。', 'type' => 'string', 'required' => false, 'example' => 'null', 'default' => ''], ], [ 'name' => 'mock', 'in' => 'query', - 'schema' => [ - 'description' => '是否包含子模块。取值如下:'."\n" - ."\n" - .'- true:包含。'."\n" - ."\n" - .'- false(默认值):不包含。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - 'default' => 'false', - ], + 'schema' => ['description' => '是否包含子模块。取值如下:'."\n" + ."\n" + .'- true:包含。'."\n" + ."\n" + .'- false(默认值):不包含。', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'], ], ], 'responses' => [ @@ -18998,27 +10862,10 @@ 'description' => 'PopCompatibleResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc1eeed16675342848904412e08dd', - ], - 'httpCode' => [ - 'description' => '返回的HTTP状态码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => '异常信息', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc1eeed16675342848904412e08dd'], + 'httpCode' => ['description' => '返回的HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'success'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'Exception information'], 'data' => [ 'description' => '返回数据。', 'type' => 'object', @@ -19030,160 +10877,48 @@ 'description' => '数据。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'description' => '二级quota ID。', - 'type' => 'string', - 'example' => '1000048', - ], - 'name' => [ - 'description' => '二级quota名称。', - 'type' => 'string', - 'example' => 'subquotaA', - ], - 'nickName' => [ - 'description' => '二级quota昵称。', - 'type' => 'string', - 'example' => 'subquotaA', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段。', - 'type' => 'string', - 'example' => 'FUXI_ONLINE', - ], - 'status' => [ - 'description' => '资源状态。', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '478403690625249'."\n", - ], - 'regionId' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => '0', - ], - 'cluster' => [ - 'description' => '集群id。', - 'type' => 'string', - 'example' => 'AT-120N'."\n", - ], - 'version' => [ - 'description' => '版本号。', - 'type' => 'string', - 'example' => '1', - ], + 'id' => ['description' => '二级quota ID。', 'type' => 'string', 'example' => '1000048'], + 'name' => ['description' => '二级quota名称。', 'type' => 'string', 'example' => 'subquotaA'], + 'nickName' => ['description' => '二级quota昵称。', 'type' => 'string', 'example' => 'subquotaA'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段。', 'type' => 'string', 'example' => 'FUXI_ONLINE'], + 'status' => ['description' => '资源状态。', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '478403690625249'."\n"], + 'regionId' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-beijing'], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => '0'], + 'cluster' => ['description' => '集群id。', 'type' => 'string', 'example' => 'AT-120N'."\n"], + 'version' => ['description' => '版本号。', 'type' => 'string', 'example' => '1'], 'billingPolicy' => [ 'description' => '订单信息。', 'type' => 'object', 'properties' => [ - 'odpsSpecCode' => [ - 'description' => '订单规格。', - 'type' => 'string', - 'example' => 'OdpsStandard', - ], - 'orderId' => [ - 'description' => '订单id。', - 'type' => 'string', - 'example' => '880c0d0d-5d79-4217-b683-8e8bdd2a2523', - ], - 'instanceId' => [ - 'title' => 'instanceId 与 orderId 在mc 看来是一样的。', - 'description' => 'instanceId 与 orderId 在mc 看来是一样的。', - 'type' => 'string', - 'example' => '880c0d0d-5d79-4217-b683-8e8bdd2a2523', - ], - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription:表示是预付费quota。'."\n" - .'- payasyougo:表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription', - ], + 'odpsSpecCode' => ['description' => '订单规格。', 'type' => 'string', 'example' => 'OdpsStandard'], + 'orderId' => ['description' => '订单id。', 'type' => 'string', 'example' => '880c0d0d-5d79-4217-b683-8e8bdd2a2523'], + 'instanceId' => ['title' => 'instanceId 与 orderId 在mc 看来是一样的。', 'description' => 'instanceId 与 orderId 在mc 看来是一样的。', 'type' => 'string', 'example' => '880c0d0d-5d79-4217-b683-8e8bdd2a2523'], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription:表示是预付费quota。'."\n" + .'- payasyougo:表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'], ], ], 'scheduleInfo' => [ 'description' => '分时信息。', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划。', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间。', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划。', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间。', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '立即生效的quota计划。'."\n" - .'如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间。', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作人名称。', - 'type' => 'string', - 'example' => 'userA', - ], - 'timezone' => [ - 'description' => '时区。', - 'type' => 'string', - 'example' => 'UTC+8', - ], + 'currPlan' => ['description' => '按照调度计划生效的quota计划。', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间。', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划。', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间。', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '立即生效的quota计划。'."\n" + .'如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间。', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作人名称。', 'type' => 'string', 'example' => 'userA'], + 'timezone' => ['description' => '时区。', 'type' => 'string', 'example' => 'UTC+8'], ], ], - 'parameter' => [ - 'description' => 'quota的描述信息。', - 'type' => 'object', - 'example' => '{\'maxCU\': 10, \'minCU\': 10, \'adhocCU\': 0, \'schedulerType\': \'Fifo\'}', - ], - 'tag' => [ - 'description' => 'quota的资源标签。', - 'type' => 'string', - 'example' => 'abc', - ], - 'createTime' => [ - 'description' => '资源创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1688653978768', - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '672863518', - ], - 'groupName' => [ - 'description' => '角色组名称。', - 'type' => 'string', - 'example' => 'abc', - ], + 'parameter' => ['description' => 'quota的描述信息。', 'type' => 'object', 'example' => '{\'maxCU\': 10, \'minCU\': 10, \'adhocCU\': 0, \'schedulerType\': \'Fifo\'}'], + 'tag' => ['description' => 'quota的资源标签。', 'type' => 'string', 'example' => 'abc'], + 'createTime' => ['description' => '资源创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1688653978768'], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '672863518'], + 'groupName' => ['description' => '角色组名称。', 'type' => 'string', 'example' => 'abc'], 'saleTag' => [ 'description' => '描述了MaxCompute quota 对象的标识,这个标识与阿里云售卖账单中的标识是一致的。实际使用与标签场景下。', 'type' => 'object', @@ -19191,198 +10926,70 @@ 'resourceIds' => [ 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'array', - 'items' => [ - 'description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', - 'type' => 'string', - 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n", - ], - ], - 'resourceType' => [ - 'description' => '对象的类型,目前仅支持quota 和 project 两种类型。', - 'type' => 'string', - 'example' => '"quota"'."\n", + 'items' => ['description' => 'maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把quota 对象的费用都关联到某个标签上。', 'type' => 'string', 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n"], ], + 'resourceType' => ['description' => '对象的类型,目前仅支持quota 和 project 两种类型。', 'type' => 'string', 'example' => '"quota"'."\n"], ], ], ], ], ], - 'id' => [ - 'description' => 'quota ID。', - 'type' => 'string', - 'example' => '2523', - ], - 'name' => [ - 'description' => 'quota名称。', - 'type' => 'string', - 'example' => 'quota_a', - ], - 'nickName' => [ - 'description' => 'Quota别名。', - 'type' => 'string', - 'example' => 'quota_nickname', - ], - 'type' => [ - 'title' => '对应控制集群的resourceSystemType字段', - 'description' => '对应控制集群的resourceSystemType字段。', - 'type' => 'string', - 'example' => 'FUXI_OFFLINE', - ], - 'status' => [ - 'description' => '资源状态。', - 'type' => 'string', - 'example' => 'ON', - ], - 'tenantId' => [ - 'description' => '租户id。', - 'type' => 'string', - 'example' => '478403690625249', - ], - 'regionId' => [ - 'description' => '地域id。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'parentId' => [ - 'description' => '父资源id。', - 'type' => 'string', - 'example' => 'null', - ], - 'cluster' => [ - 'description' => '集群id。', - 'type' => 'string', - 'example' => 'AT-120N', - ], - 'version' => [ - 'description' => '版本号。', - 'type' => 'string', - 'example' => '1', - ], + 'id' => ['description' => 'quota ID。', 'type' => 'string', 'example' => '2523'], + 'name' => ['description' => 'quota名称。', 'type' => 'string', 'example' => 'quota_a'], + 'nickName' => ['description' => 'Quota别名。', 'type' => 'string', 'example' => 'quota_nickname'], + 'type' => ['title' => '对应控制集群的resourceSystemType字段', 'description' => '对应控制集群的resourceSystemType字段。', 'type' => 'string', 'example' => 'FUXI_OFFLINE'], + 'status' => ['description' => '资源状态。', 'type' => 'string', 'example' => 'ON'], + 'tenantId' => ['description' => '租户id。', 'type' => 'string', 'example' => '478403690625249'], + 'regionId' => ['description' => '地域id。', 'type' => 'string', 'example' => 'cn-beijing'], + 'parentId' => ['description' => '父资源id。', 'type' => 'string', 'example' => 'null'], + 'cluster' => ['description' => '集群id。', 'type' => 'string', 'example' => 'AT-120N'], + 'version' => ['description' => '版本号。', 'type' => 'string', 'example' => '1'], 'billingPolicy' => [ 'description' => '订单信息。', 'type' => 'object', 'properties' => [ - 'odpsSpecCode' => [ - 'description' => '订单规格。', - 'type' => 'string', - 'example' => 'OdpsStandard', - ], - 'orderId' => [ - 'description' => '订单id。', - 'type' => 'string', - 'example' => '880c0d0d-5d79-4217-b683-8e8bdd2a2523', - ], - 'instanceId' => [ - 'title' => 'instanceId 与 orderId 在mc 看来是一样的。', - 'description' => 'instanceId 与 orderId 在mc 看来是一样的。', - 'type' => 'string', - 'example' => '880c0d0d-5d79-4217-b683-8e8bdd2a2523', - ], - 'billingMethod' => [ - 'title' => '"PAYASYOUGO" 表示后付费', - 'description' => '付费模式。'."\n" - .'- subscription:表示是预付费quota。'."\n" - .'- payasyougo:表示是后付费quota。', - 'type' => 'string', - 'example' => 'subscription', - ], + 'odpsSpecCode' => ['description' => '订单规格。', 'type' => 'string', 'example' => 'OdpsStandard'], + 'orderId' => ['description' => '订单id。', 'type' => 'string', 'example' => '880c0d0d-5d79-4217-b683-8e8bdd2a2523'], + 'instanceId' => ['title' => 'instanceId 与 orderId 在mc 看来是一样的。', 'description' => 'instanceId 与 orderId 在mc 看来是一样的。', 'type' => 'string', 'example' => '880c0d0d-5d79-4217-b683-8e8bdd2a2523'], + 'billingMethod' => ['title' => '"PAYASYOUGO" 表示后付费', 'description' => '付费模式。'."\n" + .'- subscription:表示是预付费quota。'."\n" + .'- payasyougo:表示是后付费quota。', 'type' => 'string', 'example' => 'subscription'], ], ], 'scheduleInfo' => [ 'description' => '分时信息。', 'type' => 'object', 'properties' => [ - 'currPlan' => [ - 'description' => '按照调度计划生效的quota计划。', - 'type' => 'string', - 'example' => 'planA', - ], - 'currTime' => [ - 'description' => 'currPlan被调度的时间。', - 'type' => 'string', - 'example' => '0800', - ], - 'nextPlan' => [ - 'description' => '按照调度计划将要生效的quota计划。', - 'type' => 'string', - 'example' => 'planB', - ], - 'nextTime' => [ - 'description' => 'next_plan被调度的时间。', - 'type' => 'string', - 'example' => '1700', - ], - 'oncePlan' => [ - 'description' => '立即生效的quota计划。'."\n" - .'如果用户触发了立即生效且不同于curr_plan,那么非空。', - 'type' => 'string', - 'example' => 'planC', - ], - 'onceTime' => [ - 'description' => '立即生效触发的时间。', - 'type' => 'string', - 'example' => '1500', - ], - 'operatorName' => [ - 'description' => '操作人名称。', - 'type' => 'string', - 'example' => 'userA', - ], - 'timezone' => [ - 'description' => '时区。', - 'type' => 'string', - 'example' => 'UTC+8', - ], - ], - ], - 'parameter' => [ - 'description' => 'quota的描述信息。', - 'type' => 'object', - 'example' => '{"minCU":10, '."\n" - .'"adhocCU":0,'."\n" - .'"maxCU":10,'."\n" - .'"schedulerType":"Fair",'."\n" - .'}', - ], - 'tag' => [ - 'description' => 'quota的资源标签。', - 'type' => 'string', - 'example' => 'abc', - ], - 'createTime' => [ - 'description' => '资源创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1714356241163', - ], - 'creatorId' => [ - 'description' => '资源创建者,云账号UID。', - 'type' => 'string', - 'example' => '1248953767546358', - ], - 'groupName' => [ - 'description' => '群名称。', - 'type' => 'string', - 'example' => 'abc', - ], - 'saleTag' => [ - 'description' => '描述了MaxCompute quota对象的标识,这个标识与阿里云售卖账单中的标识是一致的。实际使用与标签场景下。', - 'type' => 'object', - 'properties' => [ - 'resourceIds' => [ - 'description' => 'MaxCompute Quota对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把Quota对象的费用都关联到某个标签上。', - 'type' => 'array', - 'items' => [ - 'description' => 'MaxCompute Quota对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把Quota对象的费用都关联到某个标签上。', - 'type' => 'string', - 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n", - ], - ], - 'resourceType' => [ - 'description' => '对象的类型,目前仅支持quota和project两种类型。', - 'type' => 'string', - 'example' => 'project', + 'currPlan' => ['description' => '按照调度计划生效的quota计划。', 'type' => 'string', 'example' => 'planA'], + 'currTime' => ['description' => 'currPlan被调度的时间。', 'type' => 'string', 'example' => '0800'], + 'nextPlan' => ['description' => '按照调度计划将要生效的quota计划。', 'type' => 'string', 'example' => 'planB'], + 'nextTime' => ['description' => 'next_plan被调度的时间。', 'type' => 'string', 'example' => '1700'], + 'oncePlan' => ['description' => '立即生效的quota计划。'."\n" + .'如果用户触发了立即生效且不同于curr_plan,那么非空。', 'type' => 'string', 'example' => 'planC'], + 'onceTime' => ['description' => '立即生效触发的时间。', 'type' => 'string', 'example' => '1500'], + 'operatorName' => ['description' => '操作人名称。', 'type' => 'string', 'example' => 'userA'], + 'timezone' => ['description' => '时区。', 'type' => 'string', 'example' => 'UTC+8'], + ], + ], + 'parameter' => ['description' => 'quota的描述信息。', 'type' => 'object', 'example' => '{"minCU":10, '."\n" + .'"adhocCU":0,'."\n" + .'"maxCU":10,'."\n" + .'"schedulerType":"Fair",'."\n" + .'}'], + 'tag' => ['description' => 'quota的资源标签。', 'type' => 'string', 'example' => 'abc'], + 'createTime' => ['description' => '资源创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1714356241163'], + 'creatorId' => ['description' => '资源创建者,云账号UID。', 'type' => 'string', 'example' => '1248953767546358'], + 'groupName' => ['description' => '群名称。', 'type' => 'string', 'example' => 'abc'], + 'saleTag' => [ + 'description' => '描述了MaxCompute quota对象的标识,这个标识与阿里云售卖账单中的标识是一致的。实际使用与标签场景下。', + 'type' => 'object', + 'properties' => [ + 'resourceIds' => [ + 'description' => 'MaxCompute Quota对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把Quota对象的费用都关联到某个标签上。', + 'type' => 'array', + 'items' => ['description' => 'MaxCompute Quota对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把Quota对象的费用都关联到某个标签上。', 'type' => 'string', 'example' => '"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"'."\n"], ], + 'resourceType' => ['description' => '对象的类型,目前仅支持quota和project两种类型。', 'type' => 'string', 'example' => 'project'], ], ], ], @@ -19391,10 +10998,15 @@ ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc1eeed16675342848904412e08dd\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"success\\",\\n \\"errorMsg\\": \\"异常信息\\",\\n \\"data\\": {\\n \\"subQuotaInfoList\\": [\\n {\\n \\"id\\": \\"1000048\\",\\n \\"name\\": \\"subquotaA\\",\\n \\"nickName\\": \\"subquotaA\\",\\n \\"type\\": \\"FUXI_ONLINE\\",\\n \\"status\\": \\"ON\\",\\n \\"tenantId\\": \\"478403690625249\\\\n\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"parentId\\": \\"0\\",\\n \\"cluster\\": \\"AT-120N\\\\n\\",\\n \\"version\\": \\"1\\",\\n \\"billingPolicy\\": {\\n \\"odpsSpecCode\\": \\"OdpsStandard\\",\\n \\"orderId\\": \\"880c0d0d-5d79-4217-b683-8e8bdd2a2523\\",\\n \\"instanceId\\": \\"880c0d0d-5d79-4217-b683-8e8bdd2a2523\\",\\n \\"billingMethod\\": \\"subscription\\"\\n },\\n \\"scheduleInfo\\": {\\n \\"currPlan\\": \\"planA\\",\\n \\"currTime\\": \\"0800\\",\\n \\"nextPlan\\": \\"planB\\",\\n \\"nextTime\\": \\"1700\\",\\n \\"oncePlan\\": \\"planC\\",\\n \\"onceTime\\": \\"1500\\",\\n \\"operatorName\\": \\"userA\\",\\n \\"timezone\\": \\"UTC+8\\"\\n },\\n \\"parameter\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"tag\\": \\"abc\\",\\n \\"createTime\\": 1688653978768,\\n \\"creatorId\\": \\"672863518\\",\\n \\"groupName\\": \\"abc\\",\\n \\"saleTag\\": {\\n \\"resourceIds\\": [\\n \\"\\\\\\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\\\\\\"\\\\n\\"\\n ],\\n \\"resourceType\\": \\"\\\\\\"quota\\\\\\"\\\\n\\"\\n }\\n }\\n ],\\n \\"id\\": \\"2523\\",\\n \\"name\\": \\"quota_a\\",\\n \\"nickName\\": \\"quota_nickname\\",\\n \\"type\\": \\"FUXI_OFFLINE\\",\\n \\"status\\": \\"ON\\",\\n \\"tenantId\\": \\"478403690625249\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"parentId\\": \\"null\\",\\n \\"cluster\\": \\"AT-120N\\",\\n \\"version\\": \\"1\\",\\n \\"billingPolicy\\": {\\n \\"odpsSpecCode\\": \\"OdpsStandard\\",\\n \\"orderId\\": \\"880c0d0d-5d79-4217-b683-8e8bdd2a2523\\",\\n \\"instanceId\\": \\"880c0d0d-5d79-4217-b683-8e8bdd2a2523\\",\\n \\"billingMethod\\": \\"subscription\\"\\n },\\n \\"scheduleInfo\\": {\\n \\"currPlan\\": \\"planA\\",\\n \\"currTime\\": \\"0800\\",\\n \\"nextPlan\\": \\"planB\\",\\n \\"nextTime\\": \\"1700\\",\\n \\"oncePlan\\": \\"planC\\",\\n \\"onceTime\\": \\"1500\\",\\n \\"operatorName\\": \\"userA\\",\\n \\"timezone\\": \\"UTC+8\\"\\n },\\n \\"parameter\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"tag\\": \\"abc\\",\\n \\"createTime\\": 1714356241163,\\n \\"creatorId\\": \\"1248953767546358\\",\\n \\"groupName\\": \\"abc\\",\\n \\"saleTag\\": {\\n \\"resourceIds\\": [\\n \\"\\\\\\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\\\\\\"\\\\n\\"\\n ],\\n \\"resourceType\\": \\"project\\"\\n }\\n }\\n}","type":"json"}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc1eeed16675342848904412e08dd\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"success\\",\\n \\"errorMsg\\": \\"Exception information\\",\\n \\"data\\": {\\n \\"subQuotaInfoList\\": [\\n {\\n \\"id\\": \\"1000048\\",\\n \\"name\\": \\"subquotaA\\",\\n \\"nickName\\": \\"subquotaA\\",\\n \\"type\\": \\"FUXI_ONLINE\\",\\n \\"status\\": \\"ON\\",\\n \\"tenantId\\": \\"478403690625249\\\\n\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"parentId\\": \\"0\\",\\n \\"cluster\\": \\"AT-120N\\\\n\\",\\n \\"version\\": \\"1\\",\\n \\"billingPolicy\\": {\\n \\"odpsSpecCode\\": \\"OdpsStandard\\",\\n \\"orderId\\": \\"880c0d0d-5d79-4217-b683-8e8bdd2a2523\\",\\n \\"instanceId\\": \\"880c0d0d-5d79-4217-b683-8e8bdd2a2523\\",\\n \\"billingMethod\\": \\"subscription\\"\\n },\\n \\"scheduleInfo\\": {\\n \\"currPlan\\": \\"planA\\",\\n \\"currTime\\": \\"0800\\",\\n \\"nextPlan\\": \\"planB\\",\\n \\"nextTime\\": \\"1700\\",\\n \\"oncePlan\\": \\"planC\\",\\n \\"onceTime\\": \\"1500\\",\\n \\"operatorName\\": \\"userA\\",\\n \\"timezone\\": \\"UTC+8\\"\\n },\\n \\"parameter\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"tag\\": \\"abc\\",\\n \\"createTime\\": 1688653978768,\\n \\"creatorId\\": \\"672863518\\",\\n \\"groupName\\": \\"abc\\",\\n \\"saleTag\\": {\\n \\"resourceIds\\": [\\n \\"\\\\\\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\\\\\\"\\\\n\\"\\n ],\\n \\"resourceType\\": \\"\\\\\\"quota\\\\\\"\\\\n\\"\\n }\\n }\\n ],\\n \\"id\\": \\"2523\\",\\n \\"name\\": \\"quota_a\\",\\n \\"nickName\\": \\"quota_nickname\\",\\n \\"type\\": \\"FUXI_OFFLINE\\",\\n \\"status\\": \\"ON\\",\\n \\"tenantId\\": \\"478403690625249\\",\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"parentId\\": \\"null\\",\\n \\"cluster\\": \\"AT-120N\\",\\n \\"version\\": \\"1\\",\\n \\"billingPolicy\\": {\\n \\"odpsSpecCode\\": \\"OdpsStandard\\",\\n \\"orderId\\": \\"880c0d0d-5d79-4217-b683-8e8bdd2a2523\\",\\n \\"instanceId\\": \\"880c0d0d-5d79-4217-b683-8e8bdd2a2523\\",\\n \\"billingMethod\\": \\"subscription\\"\\n },\\n \\"scheduleInfo\\": {\\n \\"currPlan\\": \\"planA\\",\\n \\"currTime\\": \\"0800\\",\\n \\"nextPlan\\": \\"planB\\",\\n \\"nextTime\\": \\"1700\\",\\n \\"oncePlan\\": \\"planC\\",\\n \\"onceTime\\": \\"1500\\",\\n \\"operatorName\\": \\"userA\\",\\n \\"timezone\\": \\"UTC+8\\"\\n },\\n \\"parameter\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"tag\\": \\"abc\\",\\n \\"createTime\\": 1714356241163,\\n \\"creatorId\\": \\"1248953767546358\\",\\n \\"groupName\\": \\"abc\\",\\n \\"saleTag\\": {\\n \\"resourceIds\\": [\\n \\"\\\\\\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\\\\\\"\\\\n\\"\\n ],\\n \\"resourceType\\": \\"project\\"\\n }\\n }\\n}","type":"json"}]', 'title' => '获取指定一级Quota组信息', 'summary' => '获取指定一级Quota组信息。', 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '800', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryQuota'], + ], + ], 'ramActions' => [ [ 'operationType' => 'get', @@ -19403,12 +11015,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], @@ -19417,12 +11024,8 @@ 'QueryQuotaMetric' => [ 'summary' => '查看quota资源消耗的时序信息', 'path' => '/api/v1/observations/quota/{metric}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -19434,56 +11037,31 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '查询时间范围:开始时间。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1735534322', - ], + 'schema' => ['description' => '查询时间范围:开始时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1735534322'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '查询时间范围:结束时间。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1735536322', - ], + 'schema' => ['description' => '查询时间范围:结束时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1735536322'], ], [ 'name' => 'metric', 'in' => 'path', - 'schema' => [ - 'description' => '观测指标名称。仅支持cpu和memory', - 'type' => 'string', - 'required' => true, - 'example' => 'cpu', - ], + 'schema' => ['description' => '观测指标名称。仅支持cpu和memory', 'type' => 'string', 'required' => true, 'example' => 'cpu'], ], [ 'name' => 'strategy', 'in' => 'query', - 'schema' => [ - 'description' => '数据聚合策略。默认max。仅支持max和avg。'."\n" - ."\n" - .'数据的采集频率是1分钟。当查询的时间范围较大时,数据展示的自适应步长会超过1分钟,此时指标会进行聚合。该参数即指定数据的聚合逻辑。', - 'type' => 'string', - 'required' => false, - 'example' => 'max', - 'default' => 'max', - ], + 'schema' => ['description' => '数据聚合策略。默认max。仅支持max和avg。'."\n" + ."\n" + .'数据的采集频率是1分钟。当查询的时间范围较大时,数据展示的自适应步长会超过1分钟,此时指标会进行聚合。该参数即指定数据的聚合逻辑。', 'type' => 'string', 'required' => false, 'example' => 'max', 'default' => 'max'], ], [ 'name' => 'body', @@ -19493,30 +11071,12 @@ 'description' => '请求体参数', 'type' => 'object', 'properties' => [ - 'nickname' => [ - 'description' => '一级Quota昵称。必填参数。', - 'type' => 'string', - 'required' => false, - 'example' => 'os_sns_p', - ], - 'subQuotaNickname' => [ - 'description' => '二级Quota昵称。', - 'type' => 'string', - 'required' => false, - 'example' => 'os_sns', - ], - 'interval' => [ - 'description' => '固定间隔,单位为秒。默认为空,表示使用系统自适应间隔策略。'."\n" - .'- 自适应间隔策略:查询时间范围在6小时内时间隔60s,24小时内时300s,72小时内时900s,超过72小时则1800s。'."\n" - .'- 指定间隔:仅支持60,300,900。且要求查询间隔在72小时内。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '60', - ], - 'subMetric' => [ - 'type' => 'string', - ], + 'nickname' => ['description' => '一级Quota昵称。必填参数。', 'type' => 'string', 'required' => false, 'example' => 'os_sns_p'], + 'subQuotaNickname' => ['description' => '二级Quota昵称。', 'type' => 'string', 'required' => false, 'example' => 'os_sns'], + 'interval' => ['description' => '固定间隔,单位为秒。默认为空,表示使用系统自适应间隔策略。'."\n" + .'- 自适应间隔策略:查询时间范围在6小时内时间隔60s,24小时内时300s,72小时内时900s,超过72小时则1800s。'."\n" + .'- 指定间隔:仅支持60,300,900。且要求查询间隔在72小时内。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '60'], + 'subMetric' => ['type' => 'string'], ], 'required' => false, ], @@ -19529,52 +11089,22 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0b87b7b316643495896551555e855b', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'plan \\"***\\" does not exist', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0b87b7b316643495896551555e855b'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'success'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'plan \\"***\\" does not exist'], 'data' => [ 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'category' => [ - 'description' => '不支持。', - 'type' => 'string', - 'example' => '不支持。', - ], - 'name' => [ - 'description' => '观测指标名称。', - 'type' => 'string', - 'example' => 'cpu', - ], - 'period' => [ - 'description' => '监控数据步长。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '60', - ], + 'category' => ['description' => '不支持。', 'type' => 'string', 'example' => 'Not supported.'], + 'name' => ['description' => '观测指标名称。', 'type' => 'string', 'example' => 'cpu'], + 'period' => ['description' => '监控数据步长。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'], 'metrics' => [ 'description' => '指标值。', 'type' => 'array', @@ -19585,13 +11115,9 @@ 'metric' => [ 'description' => '指标元数据信息。', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'description' => '指标元数据信息。'."\n" - .'- unit:元数据单位。指标为cpu时,单位是Core。指标为memory时,单位是GB。'."\n" - .'- type:元数据类型。查询指标类别为cpu时,元数据类型包括totalMaxCpu、totalUsedCpu、adhocCpu、adhocUsedCpu、maxCpu、minCpu、requestCpu、usedCpu、elasticMaxCpu、elasticUsedCpu。查询指标类别为memory时,元数据类型包括totalMaxMem、totalUsedMem、adhocMem、adhocUsedMem、elasticMaxMem、elasticUsedMem、maxMem、minMem、usedMem。', - 'example' => 'totalUsedCpu', - ], + 'additionalProperties' => ['type' => 'string', 'description' => '指标元数据信息。'."\n" + .'- unit:元数据单位。指标为cpu时,单位是Core。指标为memory时,单位是GB。'."\n" + .'- type:元数据类型。查询指标类别为cpu时,元数据类型包括totalMaxCpu、totalUsedCpu、adhocCpu、adhocUsedCpu、maxCpu、minCpu、requestCpu、usedCpu、elasticMaxCpu、elasticUsedCpu。查询指标类别为memory时,元数据类型包括totalMaxMem、totalUsedMem、adhocMem、adhocUsedMem、elasticMaxMem、elasticUsedMem、maxMem、minMem、usedMem。', 'example' => 'totalUsedCpu'], ], 'values' => [ 'description' => '时序数据。', @@ -19599,12 +11125,7 @@ 'items' => [ 'description' => '长度为2,分别是时间戳和数值。', 'type' => 'array', - 'items' => [ - 'description' => '长度为2,分别是时间戳和数值。', - 'type' => 'number', - 'format' => 'double', - 'example' => '[1757571840,10]', - ], + 'items' => ['description' => '长度为2,分别是时间戳和数值。', 'type' => 'number', 'format' => 'double', 'example' => '[1757571840,10]'], ], ], ], @@ -19629,27 +11150,18 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quota/{#metric}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quota/{#metric}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7b316643495896551555e855b\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"success\\",\\n \\"errorMsg\\": \\"plan \\\\\\\\\\\\\\"***\\\\\\\\\\\\\\" does not exist\\",\\n \\"data\\": {\\n \\"category\\": \\"不支持。\\",\\n \\"name\\": \\"cpu\\",\\n \\"period\\": 60,\\n \\"metrics\\": [\\n {\\n \\"metric\\": {\\n \\"key\\": \\"totalUsedCpu\\"\\n },\\n \\"values\\": [\\n [\\n 0\\n ]\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7b316643495896551555e855b\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"success\\",\\n \\"errorMsg\\": \\"plan \\\\\\\\\\\\\\"***\\\\\\\\\\\\\\" does not exist\\",\\n \\"data\\": {\\n \\"category\\": \\"Not supported.\\",\\n \\"name\\": \\"cpu\\",\\n \\"period\\": 60,\\n \\"metrics\\": [\\n {\\n \\"metric\\": {\\n \\"key\\": \\"totalUsedCpu\\"\\n },\\n \\"values\\": [\\n [\\n 0\\n ]\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', ], 'QueryStorageMetric' => [ 'summary' => '查看存储数据的时序指标。', 'path' => '/api/v1/observations/storage/{metric}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -19661,44 +11173,25 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '查询时间范围:开始时间。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1735534322', - ], + 'schema' => ['description' => '查询时间范围:开始时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1735534322'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '查询时间范围:结束时间。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1735536322', - ], + 'schema' => ['description' => '查询时间范围:结束时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1735536322'], ], [ 'name' => 'metric', 'in' => 'path', - 'schema' => [ - 'description' => '观测指标名称。包括:'."\n" - .'- summary', - 'type' => 'string', - 'required' => true, - 'example' => 'summary', - ], + 'schema' => ['description' => '观测指标名称。包括:'."\n" + .'- summary', 'type' => 'string', 'required' => true, 'example' => 'summary'], ], [ 'name' => 'body', @@ -19711,12 +11204,7 @@ 'projectList' => [ 'description' => '项目名称。', 'type' => 'array', - 'items' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'projectA', - ], + 'items' => ['description' => '项目名称。', 'type' => 'string', 'required' => false, 'example' => 'projectA'], 'required' => false, ], 'typeList' => [ @@ -19727,12 +11215,7 @@ .'- standardStorage'."\n" .'- recycleBinStorage', 'type' => 'array', - 'items' => [ - 'description' => '存储类型', - 'type' => 'string', - 'required' => false, - 'example' => 'totalStorage', - ], + 'items' => ['description' => '存储类型', 'type' => 'string', 'required' => false, 'example' => 'totalStorage'], 'required' => false, ], ], @@ -19747,52 +11230,22 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0be3e0bb16654558425251398e27a9', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误描述信息。', - 'type' => 'string', - 'example' => '0A3B1FD2006A24C8D8BE65CDAC028298', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0be3e0bb16654558425251398e27a9'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'success'], + 'errorMsg' => ['description' => '错误描述信息。', 'type' => 'string', 'example' => '0A3B1FD2006A24C8D8BE65CDAC028298'], 'data' => [ 'description' => '请求返回结果。', 'type' => 'object', 'properties' => [ - 'category' => [ - 'description' => '观测指标所属类别。', - 'type' => 'string', - 'example' => 'storage', - ], - 'name' => [ - 'description' => '观测指标名称。', - 'type' => 'string', - 'example' => 'summary', - ], - 'period' => [ - 'description' => '监控数据步长。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3600', - ], + 'category' => ['description' => '观测指标所属类别。', 'type' => 'string', 'example' => 'storage'], + 'name' => ['description' => '观测指标名称。', 'type' => 'string', 'example' => 'summary'], + 'period' => ['description' => '监控数据步长。', 'type' => 'integer', 'format' => 'int64', 'example' => '3600'], 'metrics' => [ 'description' => '指标值。', 'type' => 'array', @@ -19803,13 +11256,9 @@ 'metric' => [ 'description' => '指标元数据信息。', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'description' => '观测指标信息。包括:'."\n" - .'- unit'."\n" - .'- type', - 'example' => '"unit":"GB" "type":"standardStorage"', - ], + 'additionalProperties' => ['type' => 'string', 'description' => '观测指标信息。包括:'."\n" + .'- unit'."\n" + .'- type', 'example' => '"unit":"GB" "type":"standardStorage"'], ], 'values' => [ 'description' => '观测时序数据。', @@ -19817,13 +11266,8 @@ 'items' => [ 'description' => '长度为2,分别是时间戳和数值。', 'type' => 'array', - 'items' => [ - 'description' => '长度为2,分别是时间戳和数值。', - 'type' => 'number', - 'format' => 'double', - 'example' => '174853440,'."\n" - .'2.345719', - ], + 'items' => ['description' => '长度为2,分别是时间戳和数值。', 'type' => 'number', 'format' => 'double', 'example' => '174853440,'."\n" + .'2.345719'], ], ], ], @@ -19849,12 +11293,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Storage', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#metric}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Storage', 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#metric}'], ], ], ], @@ -19863,12 +11302,8 @@ 'QueryTunnelMetric' => [ 'summary' => '用于查询指定时间范围内的Tunnel数据传输服务相关指标数据。', 'path' => '/api/v1/observations/tunnel/{metric}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -19882,32 +11317,18 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], ], 'parameters' => [ [ 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '查询时间范围:开始时间。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1735534322', - ], + 'schema' => ['description' => '查询时间范围:开始时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1735534322'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '查询时间范围:结束时间。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1735536322', - ], + 'schema' => ['description' => '查询时间范围:结束时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1735536322'], ], [ 'name' => 'metric', @@ -19916,13 +11337,7 @@ 'description' => '观测指标名称。', 'type' => 'string', 'required' => true, - 'enumValueTitles' => [ - 'request' => 'request', - 'slot_max' => 'slot_max', - 'slot_usage' => 'slot_usage', - 'throughput' => 'throughput', - 'throughput_speed' => 'throughput_speed', - ], + 'enumValueTitles' => ['request' => 'request', 'slot_max' => 'slot_max', 'slot_usage' => 'slot_usage', 'throughput' => 'throughput', 'throughput_speed' => 'throughput_speed'], 'example' => 'slot_usage', ], ], @@ -19935,10 +11350,7 @@ .'数据的采集频率是1分钟。当查询的时间范围较大时,数据展示的自适应步长会超过1分钟,此时指标会进行聚合。该参数即指定数据的聚合逻辑。', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'avg' => 'avg', - 'max' => 'max', - ], + 'enumValueTitles' => ['avg' => 'avg', 'max' => 'max'], 'example' => 'max', 'default' => 'max', ], @@ -19951,33 +11363,18 @@ 'description' => '请求体参数。', 'type' => 'object', 'properties' => [ - 'quotaNickname' => [ - 'description' => 'Tunnel二级Quota昵称。'."\n" - ."\n" - .'共享Quota昵称是:default'."\n" - ."\n" - .'独享Quota昵称的格式是:quotaNickname#subQuotaNickname', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], - 'project' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'project_a', - ], + 'quotaNickname' => ['description' => 'Tunnel二级Quota昵称。'."\n" + ."\n" + .'共享Quota昵称是:default'."\n" + ."\n" + .'独享Quota昵称的格式是:quotaNickname#subQuotaNickname', 'type' => 'string', 'required' => false, 'example' => 'default'], + 'project' => ['description' => '项目名称。', 'type' => 'string', 'required' => false, 'example' => 'project_a'], 'tableList' => [ 'description' => '表名称列表'."\n" ."\n" .'归属于project,因此如果tableList不为空,则project不为空。', 'type' => 'array', - 'items' => [ - 'description' => '表名称', - 'type' => 'string', - 'required' => false, - 'example' => 'tab_name', - ], + 'items' => ['description' => '表名称', 'type' => 'string', 'required' => false, 'example' => 'tab_name'], 'required' => false, ], 'operationList' => [ @@ -20003,16 +11400,7 @@ .'table_preview - Preview 下载', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'download' => 'download', - 'max_storage_read' => 'max_storage_read', - 'max_storage_write' => 'max_storage_write', - 'upload' => 'upload', - 'upsert' => 'upsert', - 'table_preview' => 'table_preview', - 'download_instance' => 'download_instance', - 'stream_upload' => 'stream_upload', - ], + 'enumValueTitles' => ['download' => 'download', 'max_storage_read' => 'max_storage_read', 'max_storage_write' => 'max_storage_write', 'upload' => 'upload', 'upsert' => 'upsert', 'table_preview' => 'table_preview', 'download_instance' => 'download_instance', 'stream_upload' => 'stream_upload'], 'example' => 'upload', ], 'required' => false, @@ -20020,49 +11408,32 @@ 'codeList' => [ 'description' => '请求的HTTP CODE列表', 'type' => 'array', - 'items' => [ - 'description' => 'HTTP CODE', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '403', - ], + 'items' => ['description' => 'HTTP CODE', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '403'], 'required' => false, ], 'groupList' => [ 'description' => '分组依据列表', 'type' => 'array', - 'items' => [ - 'description' => '分组依据。包括:'."\n" - ."\n" - .'quota'."\n" - ."\n" - .'project'."\n" - ."\n" - .'table'."\n" - ."\n" - .'operation'."\n" - ."\n" - .'ip (仅metric为throughput时支持)'."\n" - ."\n" - .'code (仅metric为request时支持)', - 'type' => 'string', - 'required' => false, - 'example' => 'quota', - ], - 'required' => false, - ], - 'topN' => [ - 'description' => '数据数量限制。'."\n" + 'items' => ['description' => '分组依据。包括:'."\n" ."\n" - .'当分组依据包含table或ip时,该参数生效。'."\n" + .'quota'."\n" ."\n" - .'默认是10,最大不超过100。', - 'type' => 'integer', - 'format' => 'int32', + .'project'."\n" + ."\n" + .'table'."\n" + ."\n" + .'operation'."\n" + ."\n" + .'ip (仅metric为throughput时支持)'."\n" + ."\n" + .'code (仅metric为request时支持)', 'type' => 'string', 'required' => false, 'example' => 'quota'], 'required' => false, - 'example' => '10', ], + 'topN' => ['description' => '数据数量限制。'."\n" + ."\n" + .'当分组依据包含table或ip时,该参数生效。'."\n" + ."\n" + .'默认是10,最大不超过100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], 'required' => false, ], @@ -20075,47 +11446,17 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0bc3b4b016674434996033675e71ee', - ], - 'httpCode' => [ - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误描述信息。', - 'type' => 'string', - 'example' => '0A3B1E82006A23A918C70905BF08AEC7', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0bc3b4b016674434996033675e71ee'], + 'httpCode' => ['description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'success'], + 'errorMsg' => ['description' => '错误描述信息。', 'type' => 'string', 'example' => '0A3B1E82006A23A918C70905BF08AEC7'], 'data' => [ 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'category' => [ - 'description' => '观测指标所属类别。', - 'type' => 'string', - 'example' => 'tunnel', - ], - 'name' => [ - 'description' => '观测指标名称。', - 'type' => 'string', - 'example' => 'slot_usage', - ], - 'period' => [ - 'description' => '监控数据步长。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '60', - ], + 'category' => ['description' => '观测指标所属类别。', 'type' => 'string', 'example' => 'tunnel'], + 'name' => ['description' => '观测指标名称。', 'type' => 'string', 'example' => 'slot_usage'], + 'period' => ['description' => '监控数据步长。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'], 'metrics' => [ 'description' => '指标值。', 'type' => 'array', @@ -20126,11 +11467,7 @@ 'metric' => [ 'description' => '指标元数据信息。', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'description' => '元数据信息。其中,key是分组依据,value是对应的元数据。', - 'example' => '"project":"prjName"', - ], + 'additionalProperties' => ['type' => 'string', 'description' => '元数据信息。其中,key是分组依据,value是对应的元数据。', 'example' => '"project":"prjName"'], ], 'values' => [ 'description' => '指标数值列表。', @@ -20138,12 +11475,7 @@ 'items' => [ 'description' => '长度为2,分别是时间戳和数值。', 'type' => 'array', - 'items' => [ - 'description' => '时间戳和指标数值。', - 'type' => 'number', - 'format' => 'double', - 'example' => '[1745220780,1]', - ], + 'items' => ['description' => '时间戳和指标数值。', 'type' => 'number', 'format' => 'double', 'example' => '[1745220780,1]'], ], ], ], @@ -20211,12 +11543,7 @@ 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ - [ - 'threshold' => '400', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'QueryTunnelMetric', - ], + ['threshold' => '400', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryTunnelMetric'], ], ], 'ramActions' => [ @@ -20227,12 +11554,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Tunnel', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:tunnel/{#metric}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Tunnel', 'arn' => 'acs:odps:{#regionId}:{#accountId}:tunnel/{#metric}'], ], ], ], @@ -20241,12 +11563,8 @@ 'QueryTunnelMetricDetail' => [ 'summary' => '用于查询指定时间范围内的Tunnel数据传输服务相关详情数据。', 'path' => '/api/v1/observations/tunnel/{metric}/detail', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -20259,33 +11577,19 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREodps2B6Z0N', - ], + 'abilityTreeNodes' => ['FEATUREodps2B6Z0N'], 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '查询时间范围:开始时间。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1735534322', - ], + 'schema' => ['description' => '查询时间范围:开始时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1735534322'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '查询时间范围:结束时间。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1735536322', - ], + 'schema' => ['description' => '查询时间范围:结束时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1735536322'], ], [ 'name' => 'metric', @@ -20294,11 +11598,7 @@ 'description' => '观测指标名称。', 'type' => 'string', 'required' => true, - 'enumValueTitles' => [ - 'slot_usage_detail' => 'slot_usage_detail', - 'throughput_summary' => 'throughput_summary', - 'throughput_detail' => 'throughput_detail', - ], + 'enumValueTitles' => ['slot_usage_detail' => 'slot_usage_detail', 'throughput_summary' => 'throughput_summary', 'throughput_detail' => 'throughput_detail'], 'example' => 'slot_usage_detail', ], ], @@ -20310,107 +11610,72 @@ 'description' => '请求体参数。', 'type' => 'object', 'properties' => [ - 'quotaNickname' => [ - 'description' => 'Tunnel二级Quota昵称。'."\n" - ."\n" - .'共享Quota昵称是:default'."\n" - ."\n" - .'独享Quota昵称的格式是:quotaNickname#subQuotaNickname', - 'type' => 'string', - 'required' => false, - 'example' => 'quota_A', - ], - 'project' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'project_a', - ], + 'quotaNickname' => ['description' => 'Tunnel二级Quota昵称。'."\n" + ."\n" + .'共享Quota昵称是:default'."\n" + ."\n" + .'独享Quota昵称的格式是:quotaNickname#subQuotaNickname', 'type' => 'string', 'required' => false, 'example' => 'quota_A'], + 'project' => ['description' => '项目名称。', 'type' => 'string', 'required' => false, 'example' => 'project_a'], 'tableList' => [ 'description' => '表名称列表'."\n" ."\n" .'归属于project,因此如果tableList不为空,则project不为空。', 'type' => 'array', - 'items' => [ - 'description' => '表名称', - 'type' => 'string', - 'required' => false, - 'example' => 'tab_name', - ], + 'items' => ['description' => '表名称', 'type' => 'string', 'required' => false, 'example' => 'tab_name'], 'required' => false, ], 'operationList' => [ 'description' => '操作类型列表', 'type' => 'array', - 'items' => [ - 'description' => '操作类型|包括:'."\n" - ."\n" - .'upload - Tunnel Batch 上传'."\n" - ."\n" - .'download - Tunnel Batch 下载'."\n" - ."\n" - .'stream_upload - Tunnel Stream 上传'."\n" - ."\n" - .'max_storage_read - Storage API 下载'."\n" - ."\n" - .'download_instance - Tunnel Instance 下载'."\n" - ."\n" - .'upsert - Tunnel Upsert 上传'."\n" - ."\n" - .'max_storage_write - Storage API 上传'."\n" - ."\n" - .'table_preview - Preview 下载', - 'type' => 'string', - 'required' => false, - 'example' => 'upload', - ], + 'items' => ['description' => '操作类型|包括:'."\n" + ."\n" + .'upload - Tunnel Batch 上传'."\n" + ."\n" + .'download - Tunnel Batch 下载'."\n" + ."\n" + .'stream_upload - Tunnel Stream 上传'."\n" + ."\n" + .'max_storage_read - Storage API 下载'."\n" + ."\n" + .'download_instance - Tunnel Instance 下载'."\n" + ."\n" + .'upsert - Tunnel Upsert 上传'."\n" + ."\n" + .'max_storage_write - Storage API 上传'."\n" + ."\n" + .'table_preview - Preview 下载', 'type' => 'string', 'required' => false, 'example' => 'upload'], 'required' => false, ], 'groupList' => [ 'description' => '分组依据列表', 'type' => 'array', - 'items' => [ - 'description' => '分组依据。包括:'."\n" - ."\n" - .'quota'."\n" - ."\n" - .'project'."\n" - ."\n" - .'table'."\n" - ."\n" - .'operation'."\n" - ."\n" - .'ip (仅metric为throughput_detail时支持)', - 'type' => 'string', - 'required' => false, - 'example' => 'quota', - ], - 'required' => false, - ], - 'orderColumn' => [ - 'description' => '排序列', - 'type' => 'string', + 'items' => ['description' => '分组依据。包括:'."\n" + ."\n" + .'quota'."\n" + ."\n" + .'project'."\n" + ."\n" + .'table'."\n" + ."\n" + .'operation'."\n" + ."\n" + .'ip (仅metric为throughput_detail时支持)', 'type' => 'string', 'required' => false, 'example' => 'quota'], 'required' => false, - 'enumValueTitles' => [ - 'avgValue' => 'avgValue', - 'minValue' => 'minValue', - 'maxValue' => 'maxValue', - 'sumValue' => 'sumValue', - ], - 'example' => 'maxValue', ], - 'ascOrder' => [ - 'description' => '是否升序', - 'type' => 'boolean', + 'orderColumn' => [ + 'description' => '排序列', + 'type' => 'string', 'required' => false, - 'example' => 'false', + 'enumValueTitles' => ['avgValue' => 'avgValue', 'minValue' => 'minValue', 'maxValue' => 'maxValue', 'sumValue' => 'sumValue'], + 'example' => 'maxValue', ], - 'limit' => [ - 'description' => '查询的数量限制。默认是10,最大100。', - 'type' => 'integer', - 'format' => 'int64', + 'ascOrder' => ['description' => '是否升序', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'limit' => ['description' => '查询的数量限制。默认是10,最大100。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], + 'codeList' => [ + 'description' => '错误码列表', + 'type' => 'array', + 'items' => ['description' => '错误码。比如400,500等', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '403'], 'required' => false, - 'example' => '10', ], ], 'required' => false, @@ -20424,36 +11689,15 @@ 'description' => 'PopResult', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0a06dd4516687375802853481ec9fd', - ], - 'httpCode' => [ - 'description' => '返回的HTTP状态码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'plan \\"***\\" does not exist', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0a06dd4516687375802853481ec9fd'], + 'httpCode' => ['description' => '返回的HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'plan \\"***\\" does not exist'], 'data' => [ 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '观测指标名称。', - 'type' => 'string', - 'example' => 'tableA', - ], + 'name' => ['description' => '观测指标名称。', 'type' => 'string', 'example' => 'tableA'], 'metrics' => [ 'description' => '指标值。', 'type' => 'array', @@ -20464,17 +11708,9 @@ 'metric' => [ 'description' => '指标元数据信息。', 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - 'description' => '元数据信息。其中,key是分组依据,value是对应的元数据。', - 'example' => '"project":"prjName"', - ], - ], - 'value' => [ - 'description' => '指标数值信息', - 'type' => 'object', - 'example' => '"avgValue":"11.5"', + 'additionalProperties' => ['type' => 'string', 'description' => '元数据信息。其中,key是分组依据,value是对应的元数据。', 'example' => '"project":"prjName"'], ], + 'value' => ['description' => '指标数值信息', 'type' => 'object', 'example' => '"avgValue":"11.5"'], ], ], ], @@ -20523,6 +11759,11 @@ .'- groupList 支持quota,project,table,operation'."\n" .' - groupList不能为空,表示数据的展示粒度。', 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '400', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryTunnelMetricDetail'], + ], + ], 'ramActions' => [ [ 'operationType' => 'list', @@ -20531,12 +11772,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Tunnel', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:tunnel/{#metric}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Tunnel', 'arn' => 'acs:odps:{#regionId}:{#accountId}:tunnel/{#metric}'], ], ], ], @@ -20545,13 +11781,8 @@ 'RetryMmsJob' => [ 'summary' => '重试数据迁移作业', 'path' => '/api/v1/mms/datasources/{sourceId}/jobs/{jobId}/retry', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -20564,32 +11795,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182974', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000015', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ 'name' => 'jobId', 'in' => 'path', - 'schema' => [ - 'description' => '迁移作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '78', - ], + 'schema' => ['description' => '迁移作业ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '78'], ], ], 'responses' => [ @@ -20599,17 +11816,8 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '7F5DAD1C-9EC2-5FE5-97CF-BCE21B4ABA29', - ], - 'data' => [ - 'description' => '返回结果', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '78', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '7F5DAD1C-9EC2-5FE5-97CF-BCE21B4ABA29'], + 'data' => ['description' => '返回结果', 'type' => 'integer', 'format' => 'int64', 'example' => '78'], ], ], ], @@ -20625,27 +11833,71 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ], + ], + ], + ], + ], + 'RetryMmsTask' => [ + 'summary' => 'RetryMmsTask', + 'path' => '/api/v1/mms/datasources/{sourceId}/tasks/{taskId}/retry', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '249902', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], + ], + 'parameters' => [ + [ + 'name' => 'sourceId', + 'in' => 'path', + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], + ], + [ + 'name' => 'taskId', + 'in' => 'path', + 'schema' => ['description' => '迁移任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7680'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'ApiRes', + 'description' => 'ApiRes', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0a06dd4516687375802853481ec9fd'], + 'data' => ['description' => '返回数据。', 'type' => 'integer', 'format' => 'int64', 'example' => 'success'], ], ], ], ], + 'title' => '重试数据迁移任务', + 'description' => '请确保在使用该接口前,已充分了解了数据传输服务独享资源组和弹性预留计算资源的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/data-transfer-fees-hourly-billing)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/data-transfer-fees-hourly-billing)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dd4516687375802853481ec9fd\\",\\n \\"data\\": 0\\n}","type":"json"}]', ], 'StartMmsJob' => [ 'summary' => '开启数据迁移作业', 'path' => '/api/v1/mms/datasources/{sourceId}/jobs/{jobId}/start', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -20658,32 +11910,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182989', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000015', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ 'name' => 'jobId', 'in' => 'path', - 'schema' => [ - 'description' => '迁移作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '88', - ], + 'schema' => ['description' => '迁移作业ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '88'], ], ], 'responses' => [ @@ -20693,17 +11931,8 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '5CA6292A-E301-5CD8-B4E2-AF060F99147B', - ], - 'data' => [ - 'description' => '迁移作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '88', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '5CA6292A-E301-5CD8-B4E2-AF060F99147B'], + 'data' => ['description' => '迁移作业ID', 'type' => 'integer', 'format' => 'int64', 'example' => '88'], ], ], ], @@ -20719,12 +11948,7 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], @@ -20733,13 +11957,8 @@ 'StopMmsJob' => [ 'summary' => '停止数据迁移作业', 'path' => '/api/v1/mms/datasources/{sourceId}/jobs/{jobId}/stop', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -20752,32 +11971,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '182973', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000015', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ 'name' => 'jobId', 'in' => 'path', - 'schema' => [ - 'description' => '迁移作业ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '88', - ], + 'schema' => ['description' => '迁移作业ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '88'], ], ], 'responses' => [ @@ -20787,17 +11992,8 @@ 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '8023D058-62B7-5C49-8EB6-AD9BA7942BC5', - ], - 'data' => [ - 'description' => '数据迁移ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '88', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '8023D058-62B7-5C49-8EB6-AD9BA7942BC5'], + 'data' => ['description' => '数据迁移ID', 'type' => 'integer', 'format' => 'int64', 'example' => '88'], ], ], ], @@ -20813,87 +12009,135 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], ], ], - 'SumStorageMetricsByDate' => [ - 'path' => '/api/v1/storageMetrics/sumByDate', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - 'http', - ], + 'SumBills' => [ + 'summary' => '按实例或者计费项统计费用信息', + 'path' => '/api/v1/bills/sum', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [], + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsO212B7'], + ], 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ - 'description' => '请求体参数', + 'description' => '按照实例或者计费项统计费用信息的入参,eg. {"startDate":1775714495313,"endDate":1776232895313,"statsType":"FEE_ITEM","topN":8}', 'type' => 'object', 'properties' => [ - 'userId' => [ - 'description' => '用户UID', - 'type' => 'string', - 'required' => false, - 'example' => '12345', - ], - 'region' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], 'projectNames' => [ - 'description' => '项目名称。', + 'description' => '实例名称列表,如果statsType是FEE_ITEM的时候,则projectNames列表不用传', 'type' => 'array', - 'items' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'prj', - ], - 'required' => false, - ], - 'startDate' => [ - 'description' => '开始日期。毫秒级别时间戳。必填参数。', - 'type' => 'integer', - 'format' => 'int64', + 'items' => ['description' => '实例名称', 'type' => 'string', 'required' => false, 'example' => 'projectName'], 'required' => false, - 'example' => '1715393576201', ], - 'endDate' => [ - 'description' => '结束日期。毫秒级别时间戳。必填参数。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1718590596556', + 'startDate' => ['description' => '费用统计周期开始时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1715393576201'], + 'endDate' => ['description' => '费用统计周期的结束时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1776232895313'], + 'statsType' => ['description' => '统计类型,枚举值:PROJECT(实例)或者FEE_ITEM(费用项)', 'type' => 'string', 'required' => false, 'example' => 'PROJECT'], + 'topN' => ['description' => '费用排序之后前多少项', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult', + 'description' => 'PopResult', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'BB66A390-4EF7-557E-9489-7F98D6F44002'], + 'httpCode' => ['description' => 'http状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'data' => [ + 'description' => '返回结果', + 'type' => 'object', + 'properties' => [ + 'totalCost' => ['description' => '下面费用项的费用的总和', 'type' => 'string', 'example' => '123.56'], + 'currency' => ['description' => '币种,固定值', 'type' => 'string', 'example' => 'CNY'], + 'itemBills' => [ + 'description' => '费用项列表', + 'type' => 'array', + 'items' => [ + 'description' => '费用项对象', + 'type' => 'object', + 'properties' => [ + 'itemName' => ['description' => '当费用项类型为PROJECT时,表示实例名称;当费用项类型为FEE_ITEM时,itemName可能是DRStorage,ComputationSql,Storage等等。', 'type' => 'string', 'example' => 'projectName'], + 'cost' => ['description' => '费用', 'type' => 'string', 'example' => '123.56'], + 'currency' => ['description' => '币种', 'type' => 'string', 'example' => 'CNY'], + 'percentage' => ['description' => '费用占当前总费用的百分比,不带百分号', 'type' => 'number', 'format' => 'double', 'example' => '56.12'], + ], + ], + ], + ], ], - 'statsType' => [ - 'description' => '存储用量统计类型。必填参数。包括:'."\n" - .'- PROJECT'."\n" - .'- STORAGE_TYPE', - 'type' => 'string', + ], + ], + ], + ], + 'title' => '按实例或者计费项统计费用信息', + 'description' => '按实例或者计费项统计费用信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"BB66A390-4EF7-557E-9489-7F98D6F44002\\",\\n \\"httpCode\\": 200,\\n \\"data\\": {\\n \\"totalCost\\": \\"123.56\\",\\n \\"currency\\": \\"CNY\\",\\n \\"itemBills\\": [\\n {\\n \\"itemName\\": \\"projectName\\",\\n \\"cost\\": \\"123.56\\",\\n \\"currency\\": \\"CNY\\",\\n \\"percentage\\": 56.12\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'SumBillsByDate' => [ + 'summary' => '按实例或者费用项逐日统计费用', + 'path' => '/api/v1/bills/sumByDate', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsO212B7'], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求体参数,eg. {"startDate":1775714495313,"endDate":1776232895313,"projectNames":["vw2","mcqa2_tpcds_test","bird"],"statsType":"FEE_ITEM","topN":8}', + 'type' => 'object', + 'properties' => [ + 'projectNames' => [ + 'description' => '实例名称列表', + 'type' => 'array', + 'items' => ['description' => '实例名称', 'type' => 'string', 'required' => false, 'example' => 'projectName'], 'required' => false, - 'example' => 'PROJECT', ], + 'startDate' => ['description' => '费用统计周期开始时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1715393576201'], + 'endDate' => ['description' => '费用统计周期结束时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1718590596556'], + 'statsType' => ['description' => '统计类型,枚举值:PROJECT(实例)或者 FEE_ITEM(费用项)', 'type' => 'string', 'required' => false, 'example' => 'PROJECT'], + 'topN' => ['description' => '费用排序之后前多少项', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '8'], ], 'required' => false, ], @@ -20902,89 +12146,33 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'PopResult>', - 'description' => 'PopResult>', + 'title' => 'PopResult>', + 'description' => 'PopResult>', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0abb781a17411408145995819e0dae', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'success', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'this quota is not exist.', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'BB66A390-4EF7-557E-9489-7F98D6F44002'], + 'httpCode' => ['description' => 'http状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], 'data' => [ - 'description' => '返回结果。', + 'description' => '返回结果列表。', 'type' => 'array', 'items' => [ - 'description' => '请求返回结果。', + 'description' => '返回结果', 'type' => 'object', 'properties' => [ - 'storageType' => [ - 'description' => '存储类型。包括:'."\n" - .'- Storage。标准存储。'."\n" - .'- LowFreqStorage。低频存储。'."\n" - .'- ColdStorage。长期存储。', - 'type' => 'string', - 'example' => 'Storage', - ], - 'dateTime' => [ - 'description' => '统计日期。格式为yyyyMMdd', - 'type' => 'string', - 'example' => '20250719', - ], - 'usage' => [ - 'description' => '存储总量', - 'type' => 'string', - 'example' => '329.503338', - ], - 'unit' => [ - 'description' => '存储总量单位', - 'type' => 'string', - 'example' => 'GB', - ], - 'itemStorageMetrics' => [ - 'description' => '指定类型的存储用量列表', + 'dateTime' => ['description' => '统计日期。格式为yyyyMMdd', 'type' => 'string', 'example' => '20250719'], + 'cost' => ['description' => '当前dateTime维度,下面费用列表的总费用', 'type' => 'string', 'example' => '2000'], + 'currency' => ['description' => '币种,固定值', 'type' => 'string', 'example' => 'RMB'], + 'itemBills' => [ + 'description' => '费用项列表', 'type' => 'array', 'items' => [ - 'description' => '指定类型的存储用量', + 'description' => '费用项列表', 'type' => 'object', 'properties' => [ - 'itemName' => [ - 'description' => '当指定类型为PROJECT时,表示项目名称,当指定类型为STORAGE_TYPE时,表示存储类型。', - 'type' => 'string', - 'example' => 'prj', - ], - 'usage' => [ - 'description' => '存储用量', - 'type' => 'string', - 'example' => '300.560392', - ], - 'percentage' => [ - 'description' => '存储用量百分比', - 'type' => 'number', - 'format' => 'double', - 'example' => '91.22', - ], + 'itemName' => ['description' => '当费用项类型为 PROJECT 时,表示实例名称;当费用项类型为 FEE_ITEM 时,itemName 可能是 DRStorage,ComputationSql,Storage 等等。', 'type' => 'string', 'example' => 'projectName'], + 'cost' => ['description' => '费用', 'type' => 'string', 'example' => '1000'], + 'currency' => ['description' => '币种,固定值', 'type' => 'string', 'example' => 'RMB'], + 'percentage' => ['description' => '费用占当前总费用的百分比,不带百分号', 'type' => 'number', 'format' => 'double', 'example' => '50'], ], ], ], @@ -20995,157 +12183,50 @@ ], ], ], - 'title' => '存储用量汇总', - 'summary' => '指定日期查看各个类别的存储信息或各个project的存储信息。', + 'title' => '按实例或者费用项逐日统计费用', + 'description' => '按实例或者费用项逐日统计费用', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [], ], - 'ramActions' => [ - [ - 'operationType' => '', - 'ramAction' => [ - 'action' => 'odps:SumStorageMetricsByDate', - 'authLevel' => 'operate', - 'actionConditions' => [], - 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], - ], - ], - ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0abb781a17411408145995819e0dae\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"success\\",\\n \\"errorMsg\\": \\"this quota is not exist.\\",\\n \\"data\\": [\\n {\\n \\"storageType\\": \\"Storage\\",\\n \\"dateTime\\": \\"20250719\\",\\n \\"usage\\": \\"329.503338\\",\\n \\"unit\\": \\"GB\\",\\n \\"itemStorageMetrics\\": [\\n {\\n \\"itemName\\": \\"prj\\",\\n \\"usage\\": \\"300.560392\\",\\n \\"percentage\\": 91.22\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"BB66A390-4EF7-557E-9489-7F98D6F44002\\",\\n \\"httpCode\\": 200,\\n \\"data\\": [\\n {\\n \\"dateTime\\": \\"20250719\\",\\n \\"cost\\": \\"2000\\",\\n \\"currency\\": \\"RMB\\",\\n \\"itemBills\\": [\\n {\\n \\"itemName\\": \\"projectName\\",\\n \\"cost\\": \\"1000\\",\\n \\"currency\\": \\"RMB\\",\\n \\"percentage\\": 50\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', ], - 'UpdateComputeQuotaPlan' => [ - 'path' => '/api/v1/quotas/{nickname}/computeQuotaPlan', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'SumComputeMetricsByRecord' => [ + 'summary' => '统计用量记录数', + 'path' => '/api/v1/computeMetrics/sumByRecord', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '257598', - 'abilityTreeNodes' => [ - 'FEATUREodps2FOXFI', - ], + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsO212B7'], ], 'parameters' => [ - [ - 'name' => 'nickname', - 'in' => 'path', - 'schema' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota_p', - ], - ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ - 'description' => '请求体参数。', + 'description' => '请求体参数,eg. {"startDate":1775714495313,"endDate":1776232895313,"projectNames":["vw2","mcqa2_tpcds_test","bird"]}', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => 'Quota计划名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'planA', - ], - 'quota' => [ - 'description' => 'Quota属性。', - 'type' => 'object', - 'properties' => [ - 'parameter' => [ - 'description' => '一级Quota属性。', - 'type' => 'object', - 'properties' => [ - 'elasticReservedCU' => [ - 'description' => '一级Quota弹性预留CU值。'."\n" - .'> '."\n" - .'> - 一级Quota ElasticReservedCU必须是50倍数'."\n" - .'> - 一级Quota ElasticReservedCU 大于等于0'."\n" - .'> - 一级Quota ElasticReservedCU 小于等于一级Quota MaxCU', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - ], - 'required' => false, - ], - 'subQuotaInfoList' => [ - 'description' => '二级Quota列表。', - 'type' => 'array', - 'items' => [ - 'description' => '二级Quota列表。', - 'type' => 'object', - 'properties' => [ - 'nickName' => [ - 'description' => '二级quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota', - ], - 'parameter' => [ - 'description' => '二级Quota属性。', - 'type' => 'object', - 'properties' => [ - 'elasticReservedCU' => [ - 'description' => '弹性预留CU值。'."\n" - .'> '."\n" - .'> - 二级Quota的ElasticReservedCU大于等于0 '."\n" - .'> - 二级Quota的ElasticReservedCU总和必须等于一级Quota ElasticReservedCU', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'maxCU' => [ - 'description' => '预留CU上限。'."\n" - .'> '."\n" - .'> - 二级Quota的maxCU不能超过一级Quota的maxCU。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'minCU' => [ - 'description' => '预留CU保障。'."\n" - .'> '."\n" - .'> - 所有二级Quota minCU总和需要等于 一级Quota的minCU'."\n" - .'> - 二级Quota的minCU不能超过自身的maxCU', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => false, - ], - ], + 'projectNames' => [ + 'description' => '实例名称列表', + 'type' => 'array', + 'items' => ['description' => '实例名称', 'type' => 'string', 'required' => false, 'example' => 'projectName'], 'required' => false, ], + 'startDate' => ['description' => '统计周期的开始时间;毫秒级别时间戳,必填参数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1715393576201'], + 'endDate' => ['description' => '统计周期的结束时间;毫秒级别时间戳,必填参数', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1718590596556'], ], 'required' => false, ], @@ -21154,472 +12235,400 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'PopResult', - 'description' => '请求返回参数。', + 'title' => 'PopResult>', + 'description' => '返回结果, eg. {'."\n" + .' "data":['."\n" + .' {'."\n" + .' "dailyComputeRecords":['."\n" + .' {'."\n" + .' "dateTime":"20260409",'."\n" + .' "record":"494",'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260410",'."\n" + .' "record":"89",'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260411"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260412"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260413"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260414",'."\n" + .' "record":"9",'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260415"'."\n" + .' }'."\n" + .' ],'."\n" + .' "type":"$sum"'."\n" + .' },'."\n" + .' {'."\n" + .' "dailyComputeRecords":['."\n" + .' {'."\n" + .' "dateTime":"20260409",'."\n" + .' "record":"494",'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260410",'."\n" + .' "record":"89",'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260411"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260412"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260413"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260414",'."\n" + .' "record":"9",'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260415"'."\n" + .' }'."\n" + .' ],'."\n" + .' "type":"ComputationSql"'."\n" + .' }'."\n" + .' ],'."\n" + .' "requestId":"0adbdcee17762496758954804d0001"'."\n" + .' }', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0be3e0aa16667684362147582e038f', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'QUOTA_PLAN_NOT_FOUND', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'plan \\"***\\" does not exist', - ], + 'requestId' => ['description' => '请求 ID。', 'type' => 'string', 'example' => '0a06dfe517540143853845404e83af'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', + 'description' => '请求返回结果。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => '使用量类型,eg. ComputationSql', 'type' => 'string', 'example' => 'ComputationSql'], + 'dailyComputeRecords' => [ + 'description' => '每日用量记录数列表', + 'type' => 'array', + 'items' => [ + 'description' => '每日用量记录数', + 'type' => 'object', + 'properties' => [ + 'dateTime' => ['description' => '统计日期。格式为yyyyMMdd', 'type' => 'string', 'example' => '20260411'], + 'record' => ['description' => '记录数', 'type' => 'string', 'example' => '1200'], + 'percentage' => ['description' => '使用量占当前总使用量的百分比,不带百分号', 'type' => 'number', 'format' => 'double', 'example' => '50'], + ], + ], + ], + ], + ], ], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0be3e0aa16667684362147582e038f\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"QUOTA_PLAN_NOT_FOUND\\",\\n \\"errorMsg\\": \\"plan \\\\\\\\\\\\\\"***\\\\\\\\\\\\\\" does not exist\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '更新Quota计划', - 'summary' => '更新Quota计划。', - 'description' => '请确保在使用该接口前,已充分了解MaxCompute弹性预留CU的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/computing-pricing-1)'."\n" - .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/computing-pricing-1)。', - 'requestParamsDescription' => ''."\n" - ."\n" - .'- 该接口仅支持计算类型Quota'."\n" - .'- subQuotaInfoList内需要列出所有二级Quota'."\n" - .'- 必须配置默认二级Quota , 默认二级Quota名称一般为 一级Quota Nickname 去除 _p 。例如 os_ComputeQuota_p 的默认二级Quota为 os_ComputeQuota'."\n" - ."\n" - .'', + 'title' => '统计用量记录数', + 'description' => '统计用量记录数', 'changeSet' => [], - 'ramActions' => [ - [ - 'operationType' => 'update', - 'ramAction' => [ - 'action' => 'odps:UpdateQuotaPlan', - 'authLevel' => 'resource', - 'actionConditions' => [], - 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], - ], - ], - ], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dfe517540143853845404e83af\\",\\n \\"httpCode\\": 200,\\n \\"data\\": [\\n {\\n \\"type\\": \\"ComputationSql\\",\\n \\"dailyComputeRecords\\": [\\n {\\n \\"dateTime\\": \\"20260411\\",\\n \\"record\\": \\"1200\\",\\n \\"percentage\\": 50\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', ], - 'UpdateComputeQuotaSchedule' => [ - 'path' => '/api/v1/quotas/{nickname}/computeQuotaSchedule', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'SumComputeMetricsByUsage' => [ + 'summary' => '统计扫描量计算类的使用量或者CU时计算类使用量', + 'path' => '/api/v1/computeMetrics/sumByUsage', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '255380', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsO212B7'], ], 'parameters' => [ - [ - 'name' => 'nickname', - 'in' => 'path', - 'schema' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota_p', - ], - ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ - 'description' => '请求体参数。', - 'type' => 'array', - 'items' => [ - 'description' => '请求体参数。', - 'type' => 'object', - 'properties' => [ - 'condition' => [ - 'description' => '生效条件值。', - 'type' => 'object', - 'properties' => [ - 'at' => [ - 'description' => '生效时间。', - 'type' => 'string', - 'required' => true, - 'example' => '10:00', - ], - ], - 'required' => false, - ], - 'type' => [ - 'description' => '类型。'."\n" - .'>目前只支持daily>', - 'type' => 'string', - 'required' => true, - 'docRequired' => false, - 'example' => 'daily', - ], - 'plan' => [ - 'description' => 'Quota计划名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'planA', - ], + 'description' => '请求体参数。eg. {"usageType":"SCAN","startDate":1775799429846,"endDate":1776317829846}', + 'type' => 'object', + 'properties' => [ + 'projectNames' => [ + 'description' => '实例名称列表', + 'type' => 'array', + 'items' => ['description' => '实例名称', 'type' => 'string', 'required' => false, 'example' => 'projectName'], + 'required' => false, ], - 'required' => false, + 'startDate' => ['description' => '统计的开始时间;毫秒级别时间戳,必填参数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1715393576201'], + 'endDate' => ['description' => '统计的结束时间;毫秒级别时间戳,必填参数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1718590596556'], + 'usageType' => ['description' => '使用量类型,枚举值:CU(cu时使用量)、SCAN(扫描量)', 'type' => 'string', 'required' => false, 'example' => 'SCAN'], ], 'required' => false, ], ], - [ - 'name' => 'scheduleTimezone', - 'in' => 'query', - 'schema' => [ - 'description' => '时区。'."\n" - .'> 默认为: UTC+8。', - 'type' => 'string', - 'required' => false, - 'example' => 'UTC+8', - ], - ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'PopResult', - 'description' => '请求返回参数。', + 'title' => 'PopResult>', + 'description' => '返回结果, eg. {'."\n" + .' "data":['."\n" + .' {'."\n" + .' "dailyComputeMetrics":['."\n" + .' {'."\n" + .' "dateTime":"20260410",'."\n" + .' "unit":"GBCplx",'."\n" + .' "usage":"1400"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260411"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260412"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260413",'."\n" + .' "unit":"GBCplx",'."\n" + .' "usage":"2500"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260414",'."\n" + .' "unit":"GBCplx",'."\n" + .' "usage":"0.169228057"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260415",'."\n" + .' "unit":"GBCplx",'."\n" + .' "usage":"1.149683987"'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260416"'."\n" + .' }'."\n" + .' ],'."\n" + .' "type":"ComputationSql"'."\n" + .' }'."\n" + .' ],'."\n" + .' "requestId":"0adb99df17763178343322885d0001"'."\n" + .' }', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0be3e0aa16667684362147582e038f', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'QUOTA_PLAN_NOT_FOUND', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'plan \\"***\\" does not exist', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '0bc0598d17544456742466519e6611'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', + 'description' => '返回数据。', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => '计量类型。'."\n" + ."\n" + .'ComputationSql:操作内部表的 SQL 类型作业计量数据。'."\n" + ."\n" + .'ComputationSqlOTS:操作 OTS 外部表的 SQL 类型作业计量数据。'."\n" + ."\n" + .'ComputationSqlOSS:操作 OSS 外部表的 SQL 类型作业计量数据。'."\n" + ."\n" + .'MapReduce:MapReduce 类型作业计量数据。'."\n" + ."\n" + .'spark:Spark 类型作业计量数据。'."\n" + ."\n" + .'mars:Mars 类型作业计量数据。', 'type' => 'string', 'example' => 'ComputationSql'], + 'dailyComputeMetrics' => [ + 'description' => '每日使用量统计列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'dateTime' => ['description' => '统计日期。格式为yyyyMMdd', 'type' => 'string', 'example' => '20260413'], + 'usage' => ['description' => '使用量', 'type' => 'string', 'example' => '1.149683987'], + 'unit' => ['description' => '计算用量单位。', 'type' => 'string', 'example' => 'GBCplx'], + ], + 'description' => '', + ], + ], + ], + ], ], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0be3e0aa16667684362147582e038f\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"QUOTA_PLAN_NOT_FOUND\\",\\n \\"errorMsg\\": \\"plan \\\\\\\\\\\\\\"***\\\\\\\\\\\\\\" does not exist\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '更新计算Quota分时计划', - 'summary' => '更新计算Quota分时计划。', - 'description' => '请确保在使用该接口前,已充分了解MaxCompute弹性预留CU的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/computing-pricing-1)'."\n" - .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/computing-pricing-1)。', - 'requestParamsDescription' => '>'."\n" - .'使用时需要从生效时间00:00开始配置。'."\n" - .'>', + 'title' => '统计扫描量计算类的使用量或者CU时计算类使用量', + 'description' => '统计扫描量计算类的使用量或者CU时计算类使用量', 'changeSet' => [], - 'ramActions' => [ - [ - 'operationType' => 'update', - 'ramAction' => [ - 'action' => 'odps:UpdateQuotaSchedule', - 'authLevel' => 'resource', - 'actionConditions' => [], - 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], - ], - ], - ], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc0598d17544456742466519e6611\\",\\n \\"httpCode\\": 200,\\n \\"data\\": [\\n {\\n \\"type\\": \\"ComputationSql\\",\\n \\"dailyComputeMetrics\\": [\\n {\\n \\"dateTime\\": \\"20260413\\",\\n \\"usage\\": \\"1.149683987\\",\\n \\"unit\\": \\"GBCplx\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', ], - 'UpdateComputeSubQuota' => [ - 'path' => '/api/v1/quotas/{nickname}/computeSubQuota', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'SumDailyBillsByItem' => [ + 'summary' => '按实例或者费用项逐日统计费用明细', + 'path' => '/api/v1/dailyBills/sumByItem', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '255780', - 'abilityTreeNodes' => [ - 'FEATUREodps2FOXFI', - ], + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsO212B7'], ], 'parameters' => [ - [ - 'name' => 'nickname', - 'in' => 'path', - 'schema' => [ - 'description' => '一级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota_p', - ], - ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ - 'description' => '请求体参数。', 'type' => 'object', 'properties' => [ - 'subQuotaInfoList' => [ - 'description' => '二级Quota列表。', + 'projectNames' => [ 'type' => 'array', - 'items' => [ - 'description' => '二级Quota列表。', - 'type' => 'object', - 'properties' => [ - 'nickName' => [ - 'description' => '二级Quota昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'os_ComputeQuota', - ], - 'parameter' => [ - 'description' => 'CU值配置。', - 'type' => 'object', - 'properties' => [ - 'enablePriority' => [ - 'description' => '开启优先级。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'forceReservedMin' => [ - 'description' => '是否独占。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'maxCU' => [ - 'description' => '预留CU上限。'."\n" - .'> - 二级Quota的maxCU不能超过一级Quota的maxCU。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'minCU' => [ - 'description' => '预留CU保障。'."\n" - .'> '."\n" - .'> - 二级Quota的minCU不能超过自身的maxCU;'."\n" - .'> - 所有二级Quota的minCU总和不能超过一级Quota的minCU。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '50', - ], - 'schedulerType' => [ - 'description' => '调度策略。', - 'type' => 'string', - 'required' => false, - 'example' => 'Fifo/Fair', - ], - 'singleJobCULimit' => [ - 'description' => '单作业CU上限。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], - ], - 'required' => false, - ], - 'type' => [ - 'description' => 'Quota类型。', - 'type' => 'string', - 'required' => false, - 'example' => 'FUXI_OFFLINE', - ], - ], - 'required' => false, - ], - 'required' => false, + 'items' => ['type' => 'string', 'description' => ''], + 'description' => '', + ], + 'startDate' => ['type' => 'integer', 'format' => 'int64', 'description' => ''], + 'endDate' => ['type' => 'integer', 'format' => 'int64', 'description' => ''], + 'statsType' => ['type' => 'string', 'description' => ''], + 'types' => [ + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => ''], + 'description' => '', ], + 'pageNumber' => ['type' => 'integer', 'format' => 'int64', 'description' => ''], + 'pageSize' => ['type' => 'integer', 'format' => 'int64', 'description' => ''], ], - 'required' => false, + 'description' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'PopResult', - 'description' => '请求返回参数。', + 'title' => 'PopResult>', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0b57ff7616612271051086500ea3ce', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'this quota is not exist.', - ], + 'requestId' => ['type' => 'string', 'description' => ''], + 'httpCode' => ['type' => 'integer', 'format' => 'int32', 'description' => ''], 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', + 'type' => 'object', + 'properties' => [ + 'itemSummaryBills' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'itemName' => ['type' => 'string', 'description' => ''], + 'totalCost' => ['type' => 'string', 'description' => ''], + 'currency' => ['type' => 'string', 'description' => ''], + 'percentage' => ['type' => 'number', 'format' => 'double', 'description' => ''], + 'specCode' => ['type' => 'string', 'description' => ''], + 'dailySumBills' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'dateTime' => ['type' => 'string', 'description' => ''], + 'cost' => ['type' => 'string', 'description' => ''], + 'currency' => ['type' => 'string', 'description' => ''], + 'itemBills' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'itemName' => ['type' => 'string', 'description' => ''], + 'cost' => ['type' => 'string', 'description' => ''], + 'currency' => ['type' => 'string', 'description' => ''], + 'percentage' => ['type' => 'number', 'format' => 'double', 'description' => ''], + ], + 'description' => '', + ], + 'description' => '', + ], + ], + 'description' => '', + ], + 'description' => '', + ], + ], + 'description' => '', + ], + 'description' => '', + ], + 'totalCount' => ['type' => 'integer', 'format' => 'int64', 'description' => ''], + 'pageNumber' => ['type' => 'integer', 'format' => 'int64', 'description' => ''], + 'pageSize' => ['type' => 'integer', 'format' => 'int64', 'description' => ''], + ], + 'description' => '', ], ], + 'description' => 'PopResult>', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b57ff7616612271051086500ea3ce\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"this quota is not exist.\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '更新计算Quota基础配置', - 'summary' => '更新MaxCompute的基础配置,包括增加和删除二级Quota,定义二级Quota的基础属性和当前生效的Quota计划的CU配置。', - 'description' => '请确保在使用该接口前,已充分了解MaxCompute弹性预留CU的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/computing-pricing-1)'."\n" - .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/computing-pricing-1)。', - 'requestParamsDescription' => '>'."\n" - ."\n" - .'- UpdateComputeSubQuota提交的配置为Quota的最终形态;'."\n" - ."\n" - .'- UpdateComputeSubQuota必须配置默认二级Quota;'."\n" - ."\n" - .'- 新增: 入参包含不存在的二级Quota时,则会新增二级Quota;'."\n" - ."\n" - .'- 删除: 已存在的二级Quota未在入参中声明,则会将其删除。'."\n" - ."\n" - .'- 修改: 入参与已存在的二级Quota配置参数不一致,则会更新这个二级Quota的配置。'."\n" - ."\n" - .'>', + 'title' => '按实例或者费用项逐日统计费用明细信息', 'changeSet' => [], - 'ramActions' => [ - [ - 'operationType' => 'update', - 'ramAction' => [ - 'action' => 'odps:UpdateSubQuotas', - 'authLevel' => 'resource', - 'actionConditions' => [], - 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], - ], - ], - ], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"httpCode\\": 0,\\n \\"data\\": {\\n \\"itemSummaryBills\\": [\\n {\\n \\"itemName\\": \\"\\",\\n \\"totalCost\\": \\"\\",\\n \\"currency\\": \\"\\",\\n \\"percentage\\": 0,\\n \\"specCode\\": \\"\\",\\n \\"dailySumBills\\": [\\n {\\n \\"dateTime\\": \\"\\",\\n \\"cost\\": \\"\\",\\n \\"currency\\": \\"\\",\\n \\"itemBills\\": [\\n {\\n \\"itemName\\": \\"\\",\\n \\"cost\\": \\"\\",\\n \\"currency\\": \\"\\",\\n \\"percentage\\": 0\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"totalCount\\": 0,\\n \\"pageNumber\\": 0,\\n \\"pageSize\\": 0\\n }\\n}","type":"json"}]', ], - 'UpdateMmsDataSource' => [ - 'summary' => '重新拉取MMA数据源的元数据', - 'path' => '/api/v1/mms/datasources/{sourceId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'SumStorageMetricsByDate' => [ + 'path' => '/api/v1/storageMetrics/sumByDate', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '182994', - 'abilityTreeNodes' => [ - 'FEATUREodpsN8WEG6', - ], + 'abilityTreeNodes' => ['FEATUREodpsO212B7'], ], 'parameters' => [ - [ - 'name' => 'sourceId', - 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2000017', - ], - ], [ 'name' => 'body', 'in' => 'body', @@ -21628,45 +12637,17 @@ 'description' => '请求体参数', 'type' => 'object', 'properties' => [ - 'name' => [ - 'description' => '新的数据源名', - 'type' => 'string', - 'required' => false, - 'example' => 'dept1', - ], - 'action' => [ - 'title' => 'UPDATE_CONFIG, START, STOP, RENAME', - 'description' => '更新操作类型:'."\n" - .'1. UPDATE_CONFIG: 更新数据源配置'."\n" - .'2. START:启动数据源实例'."\n" - .'3. STOP:关闭数据源实例'."\n" - .'4. RENAME: 重命名', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'RENAME' => 'RENAME', - 'STOP' => 'STOP', - 'UPDATE_CONFIG' => 'UPDATE_CONFIG', - 'START' => 'START', - ], - 'example' => 'UPDATE_CONFIG', - ], - 'test' => [ - 'description' => '测试数据源配置', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'config' => [ - 'description' => '数据源配置,不同的数据源配置项不同', - 'type' => 'object', + 'projectNames' => [ + 'description' => '项目名称。', + 'type' => 'array', + 'items' => ['description' => '项目名称。', 'type' => 'string', 'required' => false, 'example' => 'prj'], 'required' => false, - 'additionalProperties' => [ - 'type' => 'any', - 'description' => 'key为string,value为任何类型的配置项', - 'example' => '{"mc.sql.hints": {"odps.sql.decimal.odps2": true}}', - ], ], + 'startDate' => ['description' => '开始日期。毫秒级别时间戳。必填参数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1715393576201'], + 'endDate' => ['description' => '结束日期。毫秒级别时间戳。必填参数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1718590596556'], + 'statsType' => ['description' => '存储用量统计类型。必填参数。包括:'."\n" + .'- PROJECT'."\n" + .'- STORAGE_TYPE', 'type' => 'string', 'required' => false, 'example' => 'PROJECT'], ], 'required' => false, ], @@ -21675,30 +12656,44 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'ApiRes', - 'description' => '返回数据', + 'title' => 'PopResult>', + 'description' => 'PopResult>', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '76CE80C8-7392-5591-BCC8-610AFBF78ADF', - ], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0abb781a17411408145995819e0dae'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], 'data' => [ - 'description' => '请求返回结果', - 'type' => 'object', - 'properties' => [ - 'sourceId' => [ - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000017', - ], - 'asyncTaskId' => [ - 'description' => '异步任务ID,在测试数据源配置时,用于获取测试结果', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', + 'description' => '返回结果。', + 'type' => 'array', + 'items' => [ + 'description' => '请求返回结果。', + 'type' => 'object', + 'properties' => [ + 'storageType' => ['description' => '存储类型。包括:'."\n" + .'- Storage。标准存储。'."\n" + .'- LowFreqStorage。低频存储。'."\n" + .'- ColdStorage。长期存储。', 'type' => 'string', 'example' => 'Storage'], + 'dateTime' => ['description' => '统计日期。格式为yyyyMMdd', 'type' => 'string', 'example' => '20250719'], + 'usage' => ['description' => '存储总量', 'type' => 'string', 'example' => '329.503338'], + 'unit' => ['description' => '存储总量单位', 'type' => 'string', 'example' => 'GB'], + 'itemStorageMetrics' => [ + 'description' => '指定类型的存储用量列表', + 'type' => 'array', + 'items' => [ + 'description' => '指定类型的存储用量', + 'type' => 'object', + 'properties' => [ + 'itemName' => ['description' => '当指定类型为PROJECT时,表示项目名称,当指定类型为STORAGE_TYPE时,表示存储类型。', 'type' => 'string', 'example' => 'prj'], + 'usage' => ['description' => '存储用量', 'type' => 'string', 'example' => '300.560392'], + 'percentage' => ['description' => '存储用量百分比', 'type' => 'number', 'format' => 'double', 'example' => '91.22'], + ], + ], + ], ], ], ], @@ -21706,247 +12701,310 @@ ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"76CE80C8-7392-5591-BCC8-610AFBF78ADF\\",\\n \\"data\\": {\\n \\"sourceId\\": 2000017,\\n \\"asyncTaskId\\": 100\\n }\\n}","type":"json"}]', - 'title' => '更新数据源配置、启/停数据源实例', + 'title' => '存储用量汇总', + 'summary' => '指定日期查看各个类别的存储信息或各个project的存储信息。', 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], 'ramActions' => [ [ - 'operationType' => 'update', + 'operationType' => '', 'ramAction' => [ - 'action' => 'odps:UpdateMmsDataSource', - 'authLevel' => 'resource', + 'action' => 'odps:SumStorageMetricsByDate', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0abb781a17411408145995819e0dae\\",\\n \\"httpCode\\": 200,\\n \\"data\\": [\\n {\\n \\"storageType\\": \\"Storage\\",\\n \\"dateTime\\": \\"20250719\\",\\n \\"usage\\": \\"329.503338\\",\\n \\"unit\\": \\"GB\\",\\n \\"itemStorageMetrics\\": [\\n {\\n \\"itemName\\": \\"prj\\",\\n \\"usage\\": \\"300.560392\\",\\n \\"percentage\\": 91.22\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', ], - 'UpdatePackage' => [ - 'path' => '/api/v1/projects/{projectName}/packages/{packageName}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'SumStorageMetricsByType' => [ + 'path' => '/api/v1/storageMetrics/sumByType', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '144114', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsO212B7'], ], 'parameters' => [ - [ - 'name' => 'projectName', - 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', - ], - ], - [ - 'name' => 'packageName', - 'in' => 'path', - 'schema' => [ - 'description' => 'package名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'packageA', - ], - ], [ 'name' => 'body', 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => '请求体参数', - 'type' => 'string', + 'description' => '请求体参数, eg. {"startDate":1775736972887,"endDate":1776255372887}', + 'type' => 'object', + 'properties' => [ + 'projectNames' => [ + 'description' => '实例名称', + 'type' => 'array', + 'items' => ['description' => '实例名称', 'type' => 'string', 'required' => false, 'example' => 'projectName'], + 'required' => false, + ], + 'startDate' => ['description' => '统计周期的开始时间;毫秒级别时间戳,必填参数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1715393576201'], + 'endDate' => ['description' => '统计周期的结束时间;毫秒级别时间戳,必填参数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1718590596556'], + 'statsType' => ['description' => '统计类型, 枚举值:PROJECT(实例)/ STORAGE_TYPE(存储类型)', 'type' => 'string', 'required' => false, 'example' => 'PROJECT'], + ], 'required' => false, - 'example' => '{'."\n" - .' "add": {'."\n" - .' "allowedProjectList": ['."\n" - .' {'."\n" - .' "label": "2",'."\n" - .' "project": "project_name"'."\n" - .' }'."\n" - .' ],'."\n" - .' "resourceList": {'."\n" - .' "table": ['."\n" - .' {'."\n" - .' "name": "table_name",'."\n" - .' "actions": ['."\n" - .' "Describe",'."\n" - .' "Select"'."\n" - .' ]'."\n" - .' },'."\n" - .' {'."\n" - .' "name": "table_name",'."\n" - .' "actions": ['."\n" - .' "Describe",'."\n" - .' "Select"'."\n" - .' ]'."\n" - .' }'."\n" - .' ],'."\n" - .' "resource": ['."\n" - .' {'."\n" - .' "name": "",'."\n" - .' "actions": []'."\n" - .' },'."\n" - .' {'."\n" - .' "name": "",'."\n" - .' "actions": []'."\n" - .' }'."\n" - .' ],'."\n" - .' "function": ['."\n" - .' {'."\n" - .' "name": "",'."\n" - .' "actions": []'."\n" - .' },'."\n" - .' {'."\n" - .' "name": "",'."\n" - .' "actions": []'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .' },'."\n" - .' "remove": {'."\n" - .' "allowedProjectList": ['."\n" - .' {'."\n" - .' "project": "project_name"'."\n" - .' },'."\n" - .' {'."\n" - .' "project": "project_2"'."\n" - .' }'."\n" - .' ],'."\n" - .' "resourceList": {'."\n" - .' "table": ['."\n" - .' {'."\n" - .' "name": "table_name"'."\n" - .' },'."\n" - .' {'."\n" - .' "name": "table_name"'."\n" - .' }'."\n" - .' ],'."\n" - .' "resource": ['."\n" - .' {'."\n" - .' "name": ""'."\n" - .' },'."\n" - .' {'."\n" - .' "name": ""'."\n" - .' }'."\n" - .' ],'."\n" - .' "function": ['."\n" - .' {'."\n" - .' "name": ""'."\n" - .' },'."\n" - .' {'."\n" - .' "name": ""'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .' }'."\n" - .'}', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'PopResult', - 'description' => 'PopResult', + 'title' => 'PopResult>', + 'description' => '返回结果: {'."\n" + .' "data":['."\n" + .' {'."\n" + .' "unit":"GB",'."\n" + .' "usage":1300590.087592,'."\n" + .' "dailyStorageMetrics":['."\n" + .' {'."\n" + .' "dateTime":"20260409",'."\n" + .' "unit":"GB",'."\n" + .' "usage":188646.972738,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260410",'."\n" + .' "unit":"GB",'."\n" + .' "usage":183595.781138,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260411",'."\n" + .' "unit":"GB",'."\n" + .' "usage":183558.852148,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260412",'."\n" + .' "unit":"GB",'."\n" + .' "usage":182844.984265,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260413",'."\n" + .' "unit":"GB",'."\n" + .' "usage":184196.743598,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260414",'."\n" + .' "unit":"GB",'."\n" + .' "usage":183833.465982,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260415",'."\n" + .' "unit":"GB",'."\n" + .' "usage":193913.287722,'."\n" + .' "percentage":100.0'."\n" + .' }'."\n" + .' ],'."\n" + .' "storageType":"Storage"'."\n" + .' },'."\n" + .' {'."\n" + .' "unit":"GB",'."\n" + .' "usage":1300590.087592,'."\n" + .' "dailyStorageMetrics":['."\n" + .' {'."\n" + .' "dateTime":"20260409",'."\n" + .' "unit":"GB",'."\n" + .' "usage":188646.972738,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260410",'."\n" + .' "unit":"GB",'."\n" + .' "usage":183595.781138,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260411",'."\n" + .' "unit":"GB",'."\n" + .' "usage":183558.852148,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260412",'."\n" + .' "unit":"GB",'."\n" + .' "usage":182844.984265,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260413",'."\n" + .' "unit":"GB",'."\n" + .' "usage":184196.743598,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260414",'."\n" + .' "unit":"GB",'."\n" + .' "usage":183833.465982,'."\n" + .' "percentage":100.0'."\n" + .' },'."\n" + .' {'."\n" + .' "dateTime":"20260415",'."\n" + .' "unit":"GB",'."\n" + .' "usage":193913.287722,'."\n" + .' "percentage":100.0'."\n" + .' }'."\n" + .' ],'."\n" + .' "storageType":"$sum"'."\n" + .' }'."\n" + .' ],'."\n" + .' "requestId":"0adbb1ef17762559936096081d0001"'."\n" + .' }', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0bc1ec4016697018733156991e0888', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0a06dc0917476202205161986edbbc'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', + 'description' => '返回数据', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'storageType' => ['description' => '存储类型。包括:'."\n" + .'- Storage 标准存储。'."\n" + .'- LowFreqStorage 低频存储;'."\n" + .'- ColdStorage 长期存储;'."\n" + .'- $sum 总存储;'."\n" + .'- RecycleBinStorage 备份存储;'."\n" + .'- DRStorage 多AZ存储;', 'type' => 'string', 'example' => 'Storage'], + 'usage' => ['description' => '存储总量', 'type' => 'number', 'format' => 'double', 'example' => '329.503338'], + 'unit' => ['description' => '存储指标单位。', 'type' => 'string', 'example' => 'GB'], + 'dailyStorageMetrics' => [ + 'description' => '按日统计的存储使用量列表', + 'type' => 'array', + 'items' => [ + 'description' => '按日统计的存储使用量', + 'type' => 'object', + 'properties' => [ + 'storageType' => ['description' => '存储类型。包括:'."\n" + .'- Storage 标准存储。'."\n" + .'- LowFreqStorage 低频存储;'."\n" + .'- ColdStorage 长期存储;'."\n" + .'- $sum 总存储;'."\n" + .'- RecycleBinStorage 备份存储;'."\n" + .'- DRStorage 多AZ存储;', 'type' => 'string', 'example' => 'Storage'], + 'dateTime' => ['description' => '统计日期。格式为yyyyMMdd', 'type' => 'string', 'example' => '20260410'], + 'usage' => ['description' => '存储用量', 'type' => 'number', 'format' => 'double', 'example' => '30'], + 'percentage' => ['description' => '存储用量百分比', 'type' => 'number', 'format' => 'double', 'example' => '50'], + 'unit' => ['description' => '存储指标单位。', 'type' => 'string', 'example' => 'GB'], + ], + ], + ], + ], + ], ], ], ], ], ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc1ec4016697018733156991e0888\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '更新Package', - 'summary' => '更新Package内的对象及允许安装的项目列表。', + 'title' => '按存储类型统计存储使用量', + 'summary' => '按存储类型统计存储使用量', + 'description' => '按存储类型统计存储使用量', 'changeSet' => [], - 'ramActions' => [ - [ - 'operationType' => 'update', - 'ramAction' => [ - 'action' => 'odps:UpdatePackage', - 'authLevel' => 'resource', - 'actionConditions' => [], - 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], - ], - ], - ], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dc0917476202205161986edbbc\\",\\n \\"httpCode\\": 200,\\n \\"data\\": [\\n {\\n \\"storageType\\": \\"Storage\\",\\n \\"usage\\": 329.503338,\\n \\"unit\\": \\"GB\\",\\n \\"dailyStorageMetrics\\": [\\n {\\n \\"storageType\\": \\"Storage\\",\\n \\"dateTime\\": \\"20260410\\",\\n \\"usage\\": 30,\\n \\"percentage\\": 50,\\n \\"unit\\": \\"GB\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', ], - 'UpdateProjectBasicMeta' => [ - 'path' => '/api/v1/projects/{projectName}/meta', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'TriggerMmsTimer' => [ + 'path' => '/api/v1/mms/datasources/{sourceId}/timers/{timerId}/trigger', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '142939', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ - 'name' => 'projectName', + 'name' => 'sourceId', + 'in' => 'path', + 'schema' => ['description' => 'datasource id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000014'], + ], + [ + 'name' => 'timerId', 'in' => 'path', + 'schema' => ['description' => 'timer id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_project', + 'title' => 'ApiRes', + 'description' => 'ApiRes', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0be3e0b716671885050924814e3623'], + 'data' => ['description' => 'timer id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], ], ], + ], + 'title' => '立即触发数据迁移定时任务', + 'summary' => 'TriggerMmsTimer', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0be3e0b716671885050924814e3623\\",\\n \\"data\\": 1\\n}","type":"json"}]', + ], + 'UpdateComputeQuotaPlan' => [ + 'path' => '/api/v1/quotas/{nickname}/computeQuotaPlan', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '257598', + 'abilityTreeNodes' => ['FEATUREodps2FOXFI'], + ], + 'parameters' => [ + [ + 'name' => 'nickname', + 'in' => 'path', + 'schema' => ['description' => '一级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota_p'], + ], [ 'name' => 'body', 'in' => 'body', @@ -21955,149 +13013,59 @@ 'description' => '请求体参数。', 'type' => 'object', 'properties' => [ - 'comment' => [ - 'description' => '项目描述。', - 'type' => 'string', - 'required' => false, - 'example' => 'BI_Analysis', - ], - 'properties' => [ - 'description' => '项目基础属性。', + 'name' => ['description' => 'Quota计划名称。', 'type' => 'string', 'required' => true, 'example' => 'planA'], + 'quota' => [ + 'description' => 'Quota属性。', 'type' => 'object', 'properties' => [ - 'allowFullScan' => [ - 'description' => '项目空间是否允许全表扫描。全表扫描会占用大量资源,为提升处理效率,默认关闭该功能。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'enableDecimal2' => [ - 'description' => '项目是否开启MaxCompute 2.0的Decimal数据类型。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'enableTunnelQuotaRoute' => [ - 'description' => '是否开启数据传输服务资源组路由。'."\n" - .'- true:表示该项目默认提交的数据传输任务会使用绑定的数据传输服务资源组。'."\n" - .'- false:表示该项目默认提交的数据传输任务会使用数据传输服务共享资源组。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'encryption' => [ - 'description' => '存储加密属性。', + 'parameter' => [ + 'description' => '一级Quota属性。', 'type' => 'object', 'properties' => [ - 'enable' => [ - 'description' => '项目是否需要开启数据加密功能。更多数据加密信息,请参见'."\n" - .'[存储加密](https://help.aliyun.com/zh/maxcompute/security-and-compliance/storage-encryption)'."\n" - .'[存储加密](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/storage-encryption)。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'key' => [ - 'description' => '数据加密使用的密钥类型,包含默认密钥(MaxCompute Default Key)和自带密钥(BYOK)。默认密钥(MaxCompute Default Key)是MaxCompute内部创建的默认密钥。', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], - 'algorithm' => [ - 'description' => '数据加密算法:密钥支持的加密算法,包含AES256、AESCTR和RC4。', - 'type' => 'string', - 'required' => false, - 'example' => 'AES256', - ], + 'elasticReservedCU' => ['description' => '一级Quota弹性预留CU值。'."\n" + .'> '."\n" + .'> - 一级Quota ElasticReservedCU必须是50倍数'."\n" + .'> - 一级Quota ElasticReservedCU 大于等于0'."\n" + .'> - 一级Quota ElasticReservedCU 小于等于一级Quota MaxCU', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], ], 'required' => false, ], - 'retentionDays' => [ - 'description' => '备份数据的保留天数。在此期间,您可以将当前版本恢复至任意一个备份的数据版本。'."\n" - .'取值范围为[0,30],默认值为1,0代表关闭备份功能。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'sqlMeteringMax' => [ - 'description' => '单SQL消费的最高阈值。'."\n" - .'单位:扫描量(GB)*复杂度。', - 'type' => 'string', - 'required' => false, - 'example' => '1500', - ], - 'tableLifecycle' => [ - 'description' => '表的生命周期属性。', - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => '生命周期类型。取值:'."\n" - .'- **mandatory**:Lifecycle子句为必选设置,用户必须设置表的生命周期。'."\n" - .'- **optional**:创建表时,Lifecycle子句为可选设置,如果不设置表的生命周期,则该表永远有效。'."\n" - .'- **inherit**:创建表时,如果不设置表的生命周期,则该表的生命周期为odps.table.lifecycle.value的值。', - 'type' => 'string', - 'required' => false, - 'example' => 'optional', - ], - 'value' => [ - 'description' => '表的生命周期,单位为:天。取值范围为1~37231,默认值为37231。', - 'type' => 'string', - 'required' => false, - 'example' => '37231', + 'subQuotaInfoList' => [ + 'description' => '二级Quota列表。', + 'type' => 'array', + 'items' => [ + 'description' => '二级Quota列表。', + 'type' => 'object', + 'properties' => [ + 'nickName' => ['description' => '二级quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota'], + 'parameter' => [ + 'description' => '二级Quota属性。', + 'type' => 'object', + 'properties' => [ + 'elasticReservedCU' => ['description' => '弹性预留CU值。'."\n" + .'> '."\n" + .'> - 二级Quota的ElasticReservedCU大于等于0 '."\n" + .'> - 二级Quota的ElasticReservedCU总和必须等于一级Quota ElasticReservedCU', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'maxCU' => ['description' => '预留CU上限。'."\n" + .'> '."\n" + .'> - 二级Quota的maxCU不能超过一级Quota的maxCU。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'minCU' => ['description' => '预留CU保障。'."\n" + .'> '."\n" + .'> - 所有二级Quota minCU总和需要等于 一级Quota的minCU'."\n" + .'> - 二级Quota的minCU不能超过自身的maxCU', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + ], + 'required' => false, + ], ], + 'required' => false, ], 'required' => false, ], - 'timezone' => [ - 'description' => '项目时区,即为`odps.sql.timezone`属性。', - 'type' => 'string', - 'required' => false, - 'example' => 'Asia/Shanghai'."\n", - ], - 'tunnelQuota' => [ - 'description' => '项目绑定的[数据传输服务](https://help.aliyun.com/zh/maxcompute/user-guide/overview-of-dts)'."\n" - .'[数据传输服务](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/overview-of-dts)资源组。'."\n" - ."\n" - .'- Default(数据传输服务共享资源组):该项目不允许使用数据传输服务(包年包月)资源组。不管开启成默认数据传输服务资源组取值是什么,该项目默认提交的数据传输服务会自动使用Default资源组。'."\n" - ."\n" - .'- 数据传输服务(包年包月)资源组:该项目允许使用数据传输服务(包年包月)资源组。', - 'type' => 'string', - 'required' => false, - 'example' => 'Default', - ], - 'typeSystem' => [ - 'description' => '数据类型版本。取值:'."\n" - .'- **1**:1.0版本'."\n" - .'- **2**:2.0版本'."\n" - .'- **hive**:hive兼容类型'."\n" - ."\n" - .'三种数据类型版本的区别请参见[数据类型版本说明](https://help.aliyun.com/zh/maxcompute/user-guide/data-type-editions)'."\n" - .'[数据类型版本说明](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/data-type-editions)。', - 'type' => 'string', - 'required' => false, - 'example' => '2.0', - ], - 'enableDr' => [ - 'type' => 'boolean', - 'required' => false, - ], ], 'required' => false, ], ], 'required' => false, - 'example' => '{'."\n" - .'"status":"", // AVAILABLE 表示恢复项目,FROZEN 冻结项目'."\n" - .'"comment": "",'."\n" - .'"propertis": {}'."\n" - .'}'."\n" - ."\n" - .'- 注: comment 如果不更新就给 null。如果給空字符串就会改成空'."\n" - ."\n" - .'具体properties 属性kv与 GetProject 中返回的properties 一致。'."\n" - .'按需修改提交,不要每次提交全部属性列表'."\n" - .'如果是重置,则相关value置为空字符串即可。', ], ], ], @@ -22108,102 +13076,67 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0b87b7e216652820458545253e8b0a', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'This object does not exist.'."\n", - ], - 'data' => [ - 'description' => '请求返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0be3e0aa16667684362147582e038f'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'QUOTA_PLAN_NOT_FOUND'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'plan \\"***\\" does not exist'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7e216652820458545253e8b0a\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"This object does not exist.\\\\n\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '修改项目基本信息', - 'summary' => '修改项目基本信息', - 'changeSet' => [ - [ - 'createdAt' => '2025-03-24T03:01:45.000Z', - 'description' => '请求参数发生变更', - ], - ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0be3e0aa16667684362147582e038f\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"QUOTA_PLAN_NOT_FOUND\\",\\n \\"errorMsg\\": \\"plan \\\\\\\\\\\\\\"***\\\\\\\\\\\\\\" does not exist\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + 'title' => '更新Quota计划', + 'summary' => '更新Quota计划。', + 'description' => '请确保在使用该接口前,已充分了解MaxCompute弹性预留CU的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/computing-pricing-1)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/computing-pricing-1)。', + 'requestParamsDescription' => ''."\n" + ."\n" + .'- 该接口仅支持计算类型Quota'."\n" + .'- subQuotaInfoList内需要列出所有二级Quota'."\n" + .'- 必须配置默认二级Quota , 默认二级Quota名称一般为 一级Quota Nickname 去除 _p 。例如 os_ComputeQuota_p 的默认二级Quota为 os_ComputeQuota'."\n" + ."\n" + .'', + 'changeSet' => [], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:UpdateProjectBasicMeta', + 'action' => 'odps:UpdateQuotaPlan', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], ], ], - 'UpdateProjectDefaultQuota' => [ - 'path' => '/api/v1/projects/{projectName}/quota', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateComputeQuotaSchedule' => [ + 'path' => '/api/v1/quotas/{nickname}/computeQuotaSchedule', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '142942', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeCode' => '255380', + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], ], 'parameters' => [ [ - 'name' => 'projectName', + 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => '项目名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_project', - ], + 'schema' => ['description' => '一级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota_p'], ], [ 'name' => 'body', @@ -22211,21 +13144,34 @@ 'style' => 'json', 'schema' => [ 'description' => '请求体参数。', - 'type' => 'object', - 'properties' => [ - 'quota' => [ - 'description' => '二级计算Quota。用于实现计算资源分配,该项目发起的作业将默认消耗此计算Quota。', - 'type' => 'string', - 'required' => false, - 'example' => 'os_PayAsYouGoQuota'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '请求体参数。', + 'type' => 'object', + 'properties' => [ + 'condition' => [ + 'description' => '生效条件值。', + 'type' => 'object', + 'properties' => [ + 'at' => ['description' => '生效时间。', 'type' => 'string', 'required' => true, 'example' => '10:00'], + ], + 'required' => false, + ], + 'type' => ['description' => '类型。'."\n" + .'>目前只支持daily>', 'type' => 'string', 'required' => true, 'docRequired' => false, 'example' => 'daily'], + 'plan' => ['description' => 'Quota计划名称。', 'type' => 'string', 'required' => true, 'example' => 'planA'], ], + 'required' => false, ], 'required' => false, - 'example' => '{'."\n" - .' "quota":"" //quotaNickName'."\n" - .'}', ], ], + [ + 'name' => 'scheduleTimezone', + 'in' => 'query', + 'schema' => ['description' => '时区。'."\n" + .'> 默认为: UTC+8。', 'type' => 'string', 'required' => false, 'example' => 'UTC+8'], + ], ], 'responses' => [ 200 => [ @@ -22234,89 +13180,105 @@ 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0a06dfe716674588654372173ec0da', - ], - 'data' => [ - 'description' => '请求返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0be3e0aa16667684362147582e038f'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'QUOTA_PLAN_NOT_FOUND'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'plan \\"***\\" does not exist'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dfe716674588654372173ec0da\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '修改项目默认计算Quota', - 'summary' => '修改项目默认计算Quota', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0be3e0aa16667684362147582e038f\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"QUOTA_PLAN_NOT_FOUND\\",\\n \\"errorMsg\\": \\"plan \\\\\\\\\\\\\\"***\\\\\\\\\\\\\\" does not exist\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + 'title' => '更新计算Quota分时计划', + 'summary' => '更新计算Quota分时计划。', + 'description' => '请确保在使用该接口前,已充分了解MaxCompute弹性预留CU的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/computing-pricing-1)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/computing-pricing-1)。', + 'requestParamsDescription' => '>'."\n" + .'使用时需要从生效时间00:00开始配置。'."\n" + .'>', 'changeSet' => [], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:UpdateProjectDefaultQuota', + 'action' => 'odps:UpdateQuotaSchedule', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], ], ], - 'UpdateProjectIpWhiteList' => [ - 'path' => '/api/v1/projects/{projectName}/ipWhiteList', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateComputeSubQuota' => [ + 'path' => '/api/v1/quotas/{nickname}/computeSubQuota', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '142941', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeCode' => '255780', + 'abilityTreeNodes' => ['FEATUREodps2FOXFI'], ], 'parameters' => [ [ - 'name' => 'projectName', + 'name' => 'nickname', 'in' => 'path', - 'schema' => [ - 'description' => '项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_project', - ], + 'schema' => ['description' => '一级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota_p'], ], [ 'name' => 'body', 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => '请求体参数', - 'type' => 'string', + 'description' => '请求体参数。', + 'type' => 'object', + 'properties' => [ + 'subQuotaInfoList' => [ + 'description' => '二级Quota列表。', + 'type' => 'array', + 'items' => [ + 'description' => '二级Quota列表。', + 'type' => 'object', + 'properties' => [ + 'nickName' => ['description' => '二级Quota昵称。', 'type' => 'string', 'required' => true, 'example' => 'os_ComputeQuota'], + 'parameter' => [ + 'description' => 'CU值配置。', + 'type' => 'object', + 'properties' => [ + 'enablePriority' => ['description' => '开启优先级。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'forceReservedMin' => ['description' => '是否独占。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'maxCU' => ['description' => '预留CU上限。'."\n" + .'> - 二级Quota的maxCU不能超过一级Quota的maxCU。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'minCU' => ['description' => '预留CU保障。'."\n" + .'> '."\n" + .'> - 二级Quota的minCU不能超过自身的maxCU;'."\n" + .'> - 所有二级Quota的minCU总和不能超过一级Quota的minCU。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '50'], + 'schedulerType' => ['description' => '调度策略。', 'type' => 'string', 'required' => false, 'example' => 'Fifo/Fair'], + 'singleJobCULimit' => ['description' => '单作业CU上限。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], + ], + 'required' => false, + ], + 'type' => ['description' => 'Quota类型。', 'type' => 'string', 'required' => false, 'example' => 'FUXI_OFFLINE'], + ], + 'required' => false, + ], + 'required' => false, + ], + ], 'required' => false, - 'example' => 'json'."\n" - ."\n" - .'{"ipWhiteList":{"ipList": "", //string 以逗号分隔多个'."\n" - .' "vpcIpList": "", //}'."\n" - .' }', ], ], ], @@ -22324,622 +13286,597 @@ 200 => [ 'schema' => [ 'title' => 'PopResult', - 'description' => 'PopResult', + 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '0bc12e4316675560945192024e1044', - ], - 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b57ff7616612271051086500ea3ce'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'this quota is not exist.'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc12e4316675560945192024e1044\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '修改项目IP白名单', - 'summary' => '修改MaxCompute项目IP白名单。', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b57ff7616612271051086500ea3ce\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"this quota is not exist.\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + 'title' => '更新计算Quota基础配置', + 'summary' => '更新MaxCompute的基础配置,包括增加和删除二级Quota,定义二级Quota的基础属性和当前生效的Quota计划的CU配置。', + 'description' => '请确保在使用该接口前,已充分了解MaxCompute弹性预留CU的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/computing-pricing-1)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/computing-pricing-1)。', + 'requestParamsDescription' => '>'."\n" + ."\n" + .'- UpdateComputeSubQuota提交的配置为Quota的最终形态;'."\n" + ."\n" + .'- UpdateComputeSubQuota必须配置默认二级Quota;'."\n" + ."\n" + .'- 新增: 入参包含不存在的二级Quota时,则会新增二级Quota;'."\n" + ."\n" + .'- 删除: 已存在的二级Quota未在入参中声明,则会将其删除。'."\n" + ."\n" + .'- 修改: 入参与已存在的二级Quota配置参数不一致,则会更新这个二级Quota的配置。'."\n" + ."\n" + .'>', 'changeSet' => [], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:UpdateProjectIpWhiteList', + 'action' => 'odps:UpdateSubQuotas', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], ], ], - 'UpdateProjectModelTier' => [ - 'summary' => '将project的二层模型升级为三层模型', - 'path' => '/api/v1/projects/{projectName}/modelTier', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateMmsDataSource' => [ + 'summary' => '重新拉取MMA数据源的元数据', + 'path' => '/api/v1/mms/datasources/{sourceId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '204095', - 'abilityTreeNodes' => [ - 'FEATUREodpsTZPZOE', - ], + 'abilityTreeCode' => '182994', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ - 'name' => 'projectName', + 'name' => 'sourceId', 'in' => 'path', + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000017'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'projectA', + 'description' => '请求体参数', + 'type' => 'object', + 'properties' => [ + 'name' => ['description' => '新的数据源名', 'type' => 'string', 'required' => false, 'example' => 'dept1'], + 'action' => [ + 'title' => 'UPDATE_CONFIG, START, STOP, RENAME', + 'description' => '更新操作类型:'."\n" + .'1. UPDATE_CONFIG: 更新数据源配置'."\n" + .'2. START:启动数据源实例'."\n" + .'3. STOP:关闭数据源实例'."\n" + .'4. RENAME: 重命名', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['RENAME' => 'RENAME', 'STOP' => 'STOP', 'UPDATE_CONFIG' => 'UPDATE_CONFIG', 'START' => 'START'], + 'example' => 'UPDATE_CONFIG', + ], + 'test' => ['description' => '测试数据源配置', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'config' => [ + 'description' => '数据源配置,不同的数据源配置项不同', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any', 'description' => 'key为string,value为任何类型的配置项', 'example' => '{"mc.sql.hints": {"odps.sql.decimal.odps2": true}}'], + ], + ], + 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'PopResult', - 'description' => '请求返回参数。', + 'title' => 'ApiRes', + 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '73207140-0FD5-588A-B11A-3CE093924196', - ], - 'httpCode' => [ - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST', - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'this project is not exist.', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '76CE80C8-7392-5591-BCC8-610AFBF78ADF'], 'data' => [ - 'description' => '返回数据。', - 'type' => 'string', - 'example' => '"data":{'."\n" - .' "data":"success",'."\n" - .' "requestId":"****"'."\n" - .' }', + 'description' => '请求返回结果', + 'type' => 'object', + 'properties' => [ + 'sourceId' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2000017'], + 'asyncTaskId' => ['description' => '异步任务ID,在测试数据源配置时,用于获取测试结果', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + ], ], ], ], ], ], - 'title' => '升级项目到支持Schema层级', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"76CE80C8-7392-5591-BCC8-610AFBF78ADF\\",\\n \\"data\\": {\\n \\"sourceId\\": 2000017,\\n \\"asyncTaskId\\": 100\\n }\\n}","type":"json"}]', + 'title' => '更新数据源配置、启/停数据源实例', 'changeSet' => [], - 'flowControl' => [ - 'flowControlList' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'odps:UpdateMmsDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ], + ], + ], ], - 'ramActions' => [], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"73207140-0FD5-588A-B11A-3CE093924196\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"this project is not exist.\\",\\n \\"data\\": \\"\\\\\\"data\\\\\\":{\\\\n\\\\t\\\\t\\\\\\"data\\\\\\":\\\\\\"success\\\\\\",\\\\n\\\\t\\\\t\\\\\\"requestId\\\\\\":\\\\\\"****\\\\\\"\\\\n\\\\t}\\"\\n}","type":"json"}]', ], - 'UpdateQuotaPlan' => [ - 'path' => '/api/v1/quotas/{nickname}/plans/{planName}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateMmsDb' => [ + 'summary' => '功能:', + 'path' => '/api/v1/mms/datasources/{sourceId}/dbs/{dbId}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '142710', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ - 'name' => 'nickname', + 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota名称', - 'type' => 'string', - 'required' => true, - 'example' => 'quotaA', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000014'], ], [ - 'name' => 'planName', + 'name' => 'dbId', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota计划名称', - 'type' => 'string', - 'required' => true, - 'example' => 'planA', - ], - ], - [ - 'name' => 'tenantId', - 'in' => 'query', - 'schema' => [ - 'description' => '租户id。', - 'type' => 'string', - 'required' => false, - 'example' => '478403690625249', - ], - ], - [ - 'name' => 'region', - 'in' => 'query', - 'schema' => [ - 'description' => '地域id。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '库ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2'], ], [ 'name' => 'body', 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => '请求体参数', - 'type' => 'string', + 'description' => '请求Body', + 'type' => 'object', + 'properties' => [ + 'dstProjectName' => ['description' => '目标MaxCompute项目名', 'type' => 'string', 'required' => false, 'example' => 'dst_project_name'], + 'dstName' => ['description' => '源库对应的MaxCompute schema', 'type' => 'string', 'required' => false, 'example' => 'default'], + 'status' => ['description' => '迁移状态', 'type' => 'string', 'required' => false, 'example' => 'INIT'], + ], 'required' => false, - 'example' => '{'."\n" - .' "name": "planA",'."\n" - .' // 以下为一个一级 quota,可以只选取跟 plan 相关的字段'."\n" - .' "quota": {'."\n" - .' "name": "a",'."\n" - .' "nickName": "aaa_nick",'."\n" - .' "tenantId": "10001",'."\n" - .' "regionId": "cn-hangzhou",'."\n" - .' "parentId": "0",'."\n" - .' "cluster": "AT-ODPS-TEST3",'."\n" - .' "parameter": {'."\n" - .' "minCU": 40,'."\n" - .' "maxCU": 40,'."\n" - .' "adhocCU": 0,'."\n" - .' "elasticMinCU": 40,'."\n" - .' "elasticMaxCU": 40,'."\n" - .' "enablePreemptiveScheduling": false,'."\n" - .' "forceReservedMin":true,'."\n" - .' "enablePriority":false,'."\n" - .' "singleJobCULimit":100,'."\n" - .' "adhocQuotaBeginTimeInSec": 1345,'."\n" - .' "adhocQuotaEndTimeInSec": 1234,'."\n" - .' "ignoreAdhocQuota":false'."\n" - .' },'."\n" - .' "subQuotaInfoList":'."\n" - .' [ '."\n" - .' {'."\n" - .' "nickName": "WlmFuxiSecondaryOnlineQuotaTest",'."\n" - .' "name": "WlmFuxiSecondaryOnlineQuotaTest",'."\n" - .' "type": "FUXI_ONLINE",'."\n" - .' "tenantId": "10001",'."\n" - .' "regionId": "cn-hangzhou",'."\n" - .' "cluster": "AT-ODPS-TEST3",'."\n" - .' "parameter": {'."\n" - .' "minCU": 40,'."\n" - .' "maxCU": 40,'."\n" - .' "adhocCU": 0,'."\n" - .' "elasticMinCU": 40,'."\n" - .' "elasticMaxCU": 40,'."\n" - .' "enablePreemptiveScheduling": false,'."\n" - .' "forceReservedMin":true,'."\n" - .' "enablePriority":false,'."\n" - .' "singleJobCULimit":100,'."\n" - .' "adhocQuotaBeginTimeInSec": 1345,'."\n" - .' "adhocQuotaEndTimeInSec": 1234,'."\n" - .' "ignoreAdhocQuota":false'."\n" - .' }'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .'}', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'PopResult', - 'description' => 'PopResult', + 'title' => 'ApiRes', + 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0a06dfe516688379832875789e2c65', - ], - 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b87b7e716665825896565060e87a4'], + 'data' => ['description' => '返回结果。', 'type' => 'integer', 'format' => 'int64', 'example' => 'success'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dfe516688379832875789e2c65\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '更新Quota计划', - 'summary' => '更新Quota计划。', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新MMS库的目的、状态', + 'description' => '请确保在使用该接口前,已充分了解了数据传输服务独享资源组和弹性预留计算资源的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/data-transfer-fees-hourly-billing)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/data-transfer-fees-hourly-billing)。', 'changeSet' => [], - 'ramActions' => [ - [ - 'operationType' => 'update', - 'ramAction' => [ - 'action' => 'odps:UpdateQuotaPlan', - 'authLevel' => 'resource', - 'actionConditions' => [], - 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], - ], - ], - ], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7e716665825896565060e87a4\\",\\n \\"data\\": 0\\n}","type":"json"}]', ], - 'UpdateQuotaSchedule' => [ - 'path' => '/api/v1/quotas/{nickname}/schedule', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateMmsTable' => [ + 'path' => '/api/v1/mms/datasources/{sourceId}/tables/{tableId}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '142712', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ - 'name' => 'nickname', + 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => 'Quota名称', - 'type' => 'string', - 'required' => true, - 'example' => '%E9%BB%98%E8%AE%A4%E9%A2%84%E4%BB%98%E8%B4%B9Quota_p'."\n" - ."\n" - .'#中文名称需要经过utf8 urlencode编码转义', - ], - ], - [ - 'name' => 'tenantId', - 'in' => 'query', - 'schema' => [ - 'description' => '租户id', - 'type' => 'string', - 'required' => false, - 'example' => '478403690625249', - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000015'], ], [ - 'name' => 'region', - 'in' => 'query', - 'schema' => [ - 'description' => '地域id。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-chengdu', - ], + 'name' => 'tableId', + 'in' => 'path', + 'schema' => ['description' => '表ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '20323'], ], [ 'name' => 'body', 'in' => 'body', + 'style' => 'json', 'schema' => [ 'description' => '请求体参数', - 'type' => 'string', + 'type' => 'object', + 'properties' => [ + 'dstProjectName' => ['description' => '目标MaxCompute项目名', 'type' => 'string', 'required' => false, 'example' => 'dst_project_name'], + 'dstSchemaName' => ['description' => '目标MaxCompute Schema', 'type' => 'string', 'required' => false, 'example' => 'default'], + 'dstName' => ['description' => '目标MaxCompute table名,默认与原表名一致', 'type' => 'string', 'required' => false, 'example' => 'dst_table_name'], + 'status' => ['description' => '迁移状态', 'type' => 'string', 'required' => false, 'example' => 'INIT'], + ], 'required' => false, - 'example' => "\n" - .'# 立即生效'."\n" - .'['."\n" - .' {'."\n" - .' "type": "once",'."\n" - .' "plan": "planA",'."\n" - .' "operator":"userA"'."\n" - .' }'."\n" - .']'."\n" - ."\n" - .'# 定时调度'."\n" - .'['."\n" - .' {'."\n" - .' "id": "etl_time",'."\n" - .' "type": "daily",'."\n" - .' "condition": {'."\n" - .' "at": "0800"'."\n" - .' },'."\n" - .' "plan": "planA"'."\n" - .' },'."\n" - .' {'."\n" - .' "id": "bi",'."\n" - .' "type": "daily",'."\n" - .' "condition": {'."\n" - .' "at": "0900"'."\n" - .' },'."\n" - .' "plan": "planB"'."\n" - .' },'."\n" - .']', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'PopResult', - 'description' => 'PopResult', + 'title' => 'ApiRes', + 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '0a06dfe516691014920015940e1c9d', - ], - 'data' => [ - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => 'EA1320AB-7766-5EC7-B0F6-8B20E2298567'], + 'data' => ['description' => '返回Table ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], ], ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dfe516691014920015940e1c9d\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '更新Quota时间计划', - 'summary' => '更新Quota时间计划信息。', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新MMS表目的、状态', + 'summary' => '更新表元数据', + 'description' => '请确保在使用该接口前,已充分了解了数据传输服务独享资源组和弹性预留计算资源的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/data-transfer-fees-hourly-billing)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/data-transfer-fees-hourly-billing)。', 'changeSet' => [], - 'ramActions' => [ - [ - 'operationType' => 'update', - 'ramAction' => [ - 'action' => 'odps:UpdateQuotaSchedule', - 'authLevel' => 'resource', - 'actionConditions' => [], - 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], - ], - ], - ], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"EA1320AB-7766-5EC7-B0F6-8B20E2298567\\",\\n \\"data\\": 1\\n}","type":"json"}]', ], - 'UpdateTunnelQuotaTimer' => [ - 'path' => '/api/v1/tunnel/{nickname}/timers', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'UpdateMmsTables' => [ + 'summary' => '更新表元数据', + 'path' => '/api/v1/mms/datasources/{sourceId}/tables', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '254734', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], - 'tenantRelevance' => 'tenant', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], ], 'parameters' => [ [ - 'name' => 'nickname', + 'name' => 'sourceId', 'in' => 'path', - 'schema' => [ - 'description' => '一级数据传输服务独享资源组(Tunnel Quota)昵称。', - 'type' => 'string', - 'required' => true, - 'example' => 'ot_tunnel_quota_p'."\n", - ], + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000014'], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ - 'description' => '请求体参数。', - 'type' => 'array', - 'items' => [ - 'description' => '请求体参数。', - 'type' => 'object', - 'properties' => [ - 'beginTime' => [ - 'description' => '分时配置开始时间。', - 'type' => 'string', - 'required' => false, - 'example' => '00:00', - ], - 'endTime' => [ - 'description' => '分时配置结束时间。', - 'type' => 'string', - 'required' => false, - 'example' => '08:00', - ], - 'tunnelQuotaParameter' => [ - 'description' => '分时配置参数。', - 'type' => 'object', - 'properties' => [ - 'slotNum' => [ - 'description' => '预留并发(Slot)数。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '100', - ], - 'elasticReservedSlotNum' => [ - 'description' => '弹性预留并发(Slot)数。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '100', - ], - ], - 'required' => false, - ], + 'description' => '请求体参数', + 'type' => 'object', + 'properties' => [ + 'tables' => [ + 'description' => 'Deprecated', + 'type' => 'array', + 'items' => ['description' => 'Deprecated', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'required' => false, ], - 'required' => false, + 'dbName' => ['description' => '要修改的表名所属的库名', 'type' => 'string', 'required' => false, 'example' => 'default'], + 'tableNames' => [ + 'description' => '要修改的表名列表', + 'type' => 'array', + 'items' => ['description' => '源表名', 'type' => 'string', 'required' => false, 'example' => 'table1'], + 'required' => false, + ], + 'dstProjectName' => ['description' => '目标MaxCompute项目名', 'type' => 'string', 'required' => false, 'example' => 'pj'], + 'dstSchemaName' => ['description' => '目标MaxCompute Schema', 'type' => 'string', 'required' => false, 'example' => 'default'], + 'status' => ['description' => '迁移状态', 'type' => 'string', 'required' => false, 'example' => 'INIT'], ], 'required' => false, ], ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'ApiRes', + 'description' => 'ApiRes', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '5CA6292A-E301-5CD8-B4E2-AF060F99147B'], + 'data' => ['description' => '返回结果。', 'type' => 'integer', 'format' => 'int64', 'example' => '88'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '批量更新表目的、状态', + 'description' => '请确保在使用该接口前,已充分了解了数据传输服务独享资源组和弹性预留计算资源的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/data-transfer-fees-hourly-billing)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/data-transfer-fees-hourly-billing)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"5CA6292A-E301-5CD8-B4E2-AF060F99147B\\",\\n \\"data\\": 88\\n}","type":"json"}]', + ], + 'UpdateMmsTimer' => [ + 'summary' => 'UpdateMmsTimer', + 'path' => '/api/v1/mms/datasources/{sourceId}/timers/{timerId}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsN8WEG6'], + ], + 'parameters' => [ + [ + 'name' => 'sourceId', + 'in' => 'path', + 'schema' => ['description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2000014'], + ], [ - 'name' => 'timezone', - 'in' => 'query', + 'name' => 'timerId', + 'in' => 'path', + 'schema' => ['description' => '定时任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => '时区。', - 'type' => 'string', + 'description' => '请求Body', + 'type' => 'object', + 'properties' => [ + 'value' => ['description' => '定时任务调度时间,scheduleType=Daily 时,value=HH:MM,scheduleType=Hourly 时,value=MM', 'type' => 'string', 'required' => false, 'example' => '2025-09-20'], + 'stopped' => ['description' => '是否被停止', 'type' => 'boolean', 'required' => false], + 'scheduleType' => ['description' => '定时任务调度类型', 'type' => 'string', 'required' => false, 'example' => 'Daily'], + ], 'required' => false, - 'example' => 'Asia/Shanghai', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'PopResult', - 'description' => '请求返回参数。', + 'title' => 'ApiRes', + 'description' => 'ApiRes', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0bc12e4316675560945192024e1044', - ], - 'httpCode' => [ - 'description' => 'HTTP状态码。'."\n" - .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" - .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" - .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" - .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" - .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'OBJECT_NOT_EXIST'."\n", - ], - 'errorMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'This object does not exist.'."\n", - ], - 'data' => [ - 'description' => '请求返回结果。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => 'EA1320AB-7766-5EC7-B0F6-8B20E2298567'], + 'data' => ['description' => '返回结果', 'type' => 'integer', 'format' => 'int64', 'example' => 'success'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc12e4316675560945192024e1044\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\\\n\\",\\n \\"errorMsg\\": \\"This object does not exist.\\\\n\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '更新Quota(Tunnel)分时扩缩容配置', - 'summary' => '更新数据传输服务独享资源组(Tunnel Quota)的分时扩缩容配置。', + 'title' => '更新定时任务', 'description' => '请确保在使用该接口前,已充分了解了数据传输服务独享资源组和弹性预留计算资源的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/data-transfer-fees-hourly-billing)'."\n" .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/data-transfer-fees-hourly-billing)。', 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"EA1320AB-7766-5EC7-B0F6-8B20E2298567\\",\\n \\"data\\": 0\\n}","type":"json"}]', + ], + 'UpdatePackage' => [ + 'path' => '/api/v1/projects/{projectName}/packages/{packageName}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '144114', + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], + ], + 'parameters' => [ + [ + 'name' => 'projectName', + 'in' => 'path', + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], + ], + [ + 'name' => 'packageName', + 'in' => 'path', + 'schema' => ['description' => 'package名称。', 'type' => 'string', 'required' => true, 'example' => 'packageA'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '请求体参数', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .' "add": {'."\n" + .' "allowedProjectList": ['."\n" + .' {'."\n" + .' "label": "2",'."\n" + .' "project": "project_name"'."\n" + .' }'."\n" + .' ],'."\n" + .' "resourceList": {'."\n" + .' "table": ['."\n" + .' {'."\n" + .' "name": "table_name",'."\n" + .' "actions": ['."\n" + .' "Describe",'."\n" + .' "Select"'."\n" + .' ]'."\n" + .' },'."\n" + .' {'."\n" + .' "name": "table_name",'."\n" + .' "actions": ['."\n" + .' "Describe",'."\n" + .' "Select"'."\n" + .' ]'."\n" + .' }'."\n" + .' ],'."\n" + .' "resource": ['."\n" + .' {'."\n" + .' "name": "",'."\n" + .' "actions": []'."\n" + .' },'."\n" + .' {'."\n" + .' "name": "",'."\n" + .' "actions": []'."\n" + .' }'."\n" + .' ],'."\n" + .' "function": ['."\n" + .' {'."\n" + .' "name": "",'."\n" + .' "actions": []'."\n" + .' },'."\n" + .' {'."\n" + .' "name": "",'."\n" + .' "actions": []'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' },'."\n" + .' "remove": {'."\n" + .' "allowedProjectList": ['."\n" + .' {'."\n" + .' "project": "project_name"'."\n" + .' },'."\n" + .' {'."\n" + .' "project": "project_2"'."\n" + .' }'."\n" + .' ],'."\n" + .' "resourceList": {'."\n" + .' "table": ['."\n" + .' {'."\n" + .' "name": "table_name"'."\n" + .' },'."\n" + .' {'."\n" + .' "name": "table_name"'."\n" + .' }'."\n" + .' ],'."\n" + .' "resource": ['."\n" + .' {'."\n" + .' "name": ""'."\n" + .' },'."\n" + .' {'."\n" + .' "name": ""'."\n" + .' }'."\n" + .' ],'."\n" + .' "function": ['."\n" + .' {'."\n" + .' "name": ""'."\n" + .' },'."\n" + .' {'."\n" + .' "name": ""'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' }'."\n" + .'}'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult', + 'description' => 'PopResult', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0bc1ec4016697018733156991e0888'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], + ], + ], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc1ec4016697018733156991e0888\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + 'title' => '更新Package', + 'summary' => '更新Package内的对象及允许安装的项目列表。', + 'changeSet' => [], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:UpdateQuotaTimers', + 'action' => 'odps:UpdatePackage', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], ], ], - 'UpdateUsersToRole' => [ - 'summary' => '项目角色添加或删除用户', - 'path' => '/api/v1/projects/{projectName}/roles/{roleName}/users', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateProjectBasicMeta' => [ + 'path' => '/api/v1/projects/{projectName}/meta', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -22951,63 +13888,93 @@ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREodpsZAKNHC', - ], + 'abilityTreeCode' => '142939', + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], 'parameters' => [ [ 'name' => 'projectName', 'in' => 'path', - 'schema' => [ - 'description' => 'MaxCompute项目名称', - 'type' => 'string', - 'required' => true, - 'example' => 'project_a', - ], - ], - [ - 'name' => 'roleName', - 'in' => 'path', - 'schema' => [ - 'description' => 'Project Role名称', - 'type' => 'string', - 'required' => true, - 'example' => 'admin', - ], + 'schema' => ['description' => '项目名称。', 'type' => 'string', 'required' => true, 'example' => 'odps_project'], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ - 'description' => '请求Body', + 'description' => '请求体参数。', 'type' => 'object', 'properties' => [ - 'add' => [ - 'description' => '添加用户到project role的action', - 'type' => 'array', - 'items' => [ - 'description' => '账号列表', - 'type' => 'string', - 'required' => false, - 'example' => '["ALIYUN$test1","ALIYUN$test2"]', - ], - 'required' => false, - ], - 'remove' => [ - 'description' => '删除project role内用户的action', - 'type' => 'array', - 'items' => [ - 'description' => '账号列表', - 'type' => 'string', - 'required' => false, - 'example' => '["ALIYUN$test3","ALIYUN$test4"]', + 'comment' => ['description' => '项目描述。', 'type' => 'string', 'required' => false, 'example' => 'BI_Analysis'], + 'properties' => [ + 'description' => '项目基础属性。', + 'type' => 'object', + 'properties' => [ + 'allowFullScan' => ['description' => '项目空间是否允许全表扫描。全表扫描会占用大量资源,为提升处理效率,默认关闭该功能。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'enableDecimal2' => ['description' => '项目是否开启MaxCompute 2.0的Decimal数据类型。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'enableTunnelQuotaRoute' => ['description' => '是否开启数据传输服务资源组路由。'."\n" + .'- true:表示该项目默认提交的数据传输任务会使用绑定的数据传输服务资源组。'."\n" + .'- false:表示该项目默认提交的数据传输任务会使用数据传输服务共享资源组。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'encryption' => [ + 'description' => '存储加密属性。', + 'type' => 'object', + 'properties' => [ + 'enable' => ['description' => '项目是否需要开启数据加密功能。更多数据加密信息,请参见'."\n" + .'[存储加密](https://help.aliyun.com/zh/maxcompute/security-and-compliance/storage-encryption)'."\n" + .'[存储加密](https://www.alibabacloud.com/help/zh/maxcompute/security-and-compliance/storage-encryption)。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'key' => ['description' => '数据加密使用的密钥类型,包含默认密钥(MaxCompute Default Key)和自带密钥(BYOK)。默认密钥(MaxCompute Default Key)是MaxCompute内部创建的默认密钥。', 'type' => 'string', 'required' => false, 'example' => 'default'], + 'algorithm' => ['description' => '数据加密算法:密钥支持的加密算法,包含AES256、AESCTR和RC4。', 'type' => 'string', 'required' => false, 'example' => 'AES256'], + ], + 'required' => false, + ], + 'retentionDays' => ['description' => '备份数据的保留天数。在此期间,您可以将当前版本恢复至任意一个备份的数据版本。'."\n" + .'取值范围为[0,30],默认值为1,0代表关闭备份功能。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'sqlMeteringMax' => ['description' => '单SQL消费的最高阈值。'."\n" + .'单位:扫描量(GB)*复杂度。', 'type' => 'string', 'required' => false, 'example' => '1500'], + 'tableLifecycle' => [ + 'description' => '表的生命周期属性。', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => '生命周期类型。取值:'."\n" + .'- **mandatory**:Lifecycle子句为必选设置,用户必须设置表的生命周期。'."\n" + .'- **optional**:创建表时,Lifecycle子句为可选设置,如果不设置表的生命周期,则该表永远有效。'."\n" + .'- **inherit**:创建表时,如果不设置表的生命周期,则该表的生命周期为odps.table.lifecycle.value的值。', 'type' => 'string', 'required' => false, 'example' => 'optional'], + 'value' => ['description' => '表的生命周期,单位为:天。取值范围为1~37231,默认值为37231。', 'type' => 'string', 'required' => false, 'example' => '37231'], + ], + 'required' => false, + ], + 'timezone' => ['description' => '项目时区,即为`odps.sql.timezone`属性。', 'type' => 'string', 'required' => false, 'example' => 'Asia/Shanghai'."\n"], + 'tunnelQuota' => ['description' => '项目绑定的[数据传输服务](https://help.aliyun.com/zh/maxcompute/user-guide/overview-of-dts)'."\n" + .'[数据传输服务](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/overview-of-dts)资源组。'."\n" + ."\n" + .'- Default(数据传输服务共享资源组):该项目不允许使用数据传输服务(包年包月)资源组。不管开启成默认数据传输服务资源组取值是什么,该项目默认提交的数据传输服务会自动使用Default资源组。'."\n" + ."\n" + .'- 数据传输服务(包年包月)资源组:该项目允许使用数据传输服务(包年包月)资源组。', 'type' => 'string', 'required' => false, 'example' => 'Default'], + 'typeSystem' => ['description' => '数据类型版本。取值:'."\n" + .'- **1**:1.0版本'."\n" + .'- **2**:2.0版本'."\n" + .'- **hive**:hive兼容类型'."\n" + ."\n" + .'三种数据类型版本的区别请参见[数据类型版本说明](https://help.aliyun.com/zh/maxcompute/user-guide/data-type-editions)'."\n" + .'[数据类型版本说明](https://www.alibabacloud.com/help/zh/maxcompute/user-guide/data-type-editions)。', 'type' => 'string', 'required' => false, 'example' => '2.0'], + 'enableDr' => ['type' => 'boolean', 'required' => false, 'description' => ''], + 'enableDataMasking' => ['type' => 'boolean'], ], 'required' => false, ], ], 'required' => false, + 'example' => '{'."\n" + .'"status":"", // AVAILABLE: restore the project, FROZEN: freeze the project'."\n" + .'"comment": "",'."\n" + .'"properties": {}'."\n" + .'}'."\n" + ."\n" + .'- Note: If you do not want to update the comment, set it to null. If you set it to an empty string, the comment will be cleared.'."\n" + ."\n" + .'The properties key-value pairs are the same as those returned by GetProject.'."\n" + .'Submit only the properties that need to be modified. Do not submit the full property list every time.'."\n" + .'To reset a property, set the corresponding value to an empty string.', ], ], ], @@ -23015,1890 +13982,1887 @@ 200 => [ 'schema' => [ 'title' => 'PopResult', - 'description' => 'PopResult', + 'description' => '请求返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '0a032a1317254153012687347ef4ee', - ], - 'data' => [ - 'description' => '返回结果', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0b87b7e216652820458545253e8b0a'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This object does not exist.'."\n"], + 'data' => ['description' => '请求返回结果。', 'type' => 'string', 'example' => 'success'], ], ], ], ], - 'title' => '项目角色添加或删除用户', - 'extraInfo' => '>该接口只针对Project的角色管理操作>', + 'title' => '修改项目基本信息', + 'summary' => '修改项目基本信息', 'changeSet' => [], 'flowControl' => [ - 'flowControlList' => [], + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateProjectBasicMeta'], + ], ], 'ramActions' => [ [ 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:UpdateUsersToRole', + 'action' => 'odps:UpdateProjectBasicMeta', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a032a1317254153012687347ef4ee\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', - ], - ], - 'endpoints' => [ - [ - 'regionId' => 'cn-wulanchabu', - 'regionName' => '华北6(乌兰察布)', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.cn-wulanchabu.aliyuncs.com', - 'endpoint' => 'maxcompute.cn-wulanchabu.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-wulanchabu.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'regionName' => '华北2(北京)', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.cn-beijing.aliyuncs.com', - 'endpoint' => 'maxcompute.cn-beijing.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'regionName' => '华东2(上海)', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.cn-shanghai.aliyuncs.com', - 'endpoint' => 'maxcompute.cn-shanghai.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'regionName' => '中国香港', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.cn-hongkong.aliyuncs.com', - 'endpoint' => 'maxcompute.cn-hongkong.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-hongkong.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'regionName' => '华北3(张家口)', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.cn-zhangjiakou.aliyuncs.com', - 'endpoint' => 'maxcompute.cn-zhangjiakou.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-zhangjiakou.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'regionName' => '华南1(深圳)', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.cn-shenzhen.aliyuncs.com', - 'endpoint' => 'maxcompute.cn-shenzhen.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-1', - 'regionName' => '日本(东京)', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.ap-northeast-1.aliyuncs.com', - 'endpoint' => 'maxcompute.ap-northeast-1.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.ap-northeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'regionName' => '西南1(成都)', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.cn-chengdu.aliyuncs.com', - 'endpoint' => 'maxcompute.cn-chengdu.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-chengdu.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'regionName' => '新加坡', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.ap-southeast-1.aliyuncs.com', - 'endpoint' => 'maxcompute.ap-southeast-1.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'regionName' => '马来西亚(吉隆坡)', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.ap-southeast-3.aliyuncs.com', - 'endpoint' => 'maxcompute.ap-southeast-3.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.ap-southeast-3.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-5', - 'regionName' => '印度尼西亚(雅加达)', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.ap-southeast-5.aliyuncs.com', - 'endpoint' => 'maxcompute.ap-southeast-5.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.ap-southeast-5.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'regionName' => '华东1(杭州)', - 'areaId' => 'asiaPacific', - 'areaName' => '亚太', - 'public' => 'maxcompute.cn-hangzhou.aliyuncs.com', - 'endpoint' => 'maxcompute.cn-hangzhou.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'regionName' => '美国(弗吉尼亚)', - 'areaId' => 'europeAmerica', - 'areaName' => '欧洲与美洲', - 'public' => 'maxcompute.us-east-1.aliyuncs.com', - 'endpoint' => 'maxcompute.us-east-1.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.us-east-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'regionName' => '英国(伦敦)', - 'areaId' => 'europeAmerica', - 'areaName' => '欧洲与美洲', - 'public' => 'maxcompute.eu-west-1.aliyuncs.com', - 'endpoint' => 'maxcompute.eu-west-1.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.eu-west-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'regionName' => '美国(硅谷)', - 'areaId' => 'europeAmerica', - 'areaName' => '欧洲与美洲', - 'public' => 'maxcompute.us-west-1.aliyuncs.com', - 'endpoint' => 'maxcompute.us-west-1.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.us-west-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'regionName' => '德国(法兰克福)', - 'areaId' => 'europeAmerica', - 'areaName' => '欧洲与美洲', - 'public' => 'maxcompute.eu-central-1.aliyuncs.com', - 'endpoint' => 'maxcompute.eu-central-1.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.eu-central-1.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'regionName' => '阿联酋(迪拜)', - 'areaId' => 'middleEast', - 'areaName' => '中东', - 'public' => 'maxcompute.aliyuncs.com', - 'endpoint' => 'maxcompute.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.me-east-1.aliyuncs.com', - ], - [ - 'regionId' => 'me-central-1', - 'regionName' => '沙特(利雅得)', - 'areaId' => 'middleEast', - 'areaName' => '中东', - 'public' => 'maxcompute.me-central-1.aliyuncs.com', - 'endpoint' => 'maxcompute.me-central-1.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.me-central-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-finance', - 'regionName' => '华东1 金融云', - 'areaId' => 'industryCloud', - 'areaName' => '行业云', - 'public' => 'maxcompute.cn-hangzhou-finance.aliyuncs.com', - 'endpoint' => 'maxcompute.cn-hangzhou-finance.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-hangzhou-finance.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-finance-1', - 'regionName' => '华南1 金融云', - 'areaId' => 'industryCloud', - 'areaName' => '行业云', - 'public' => 'maxcompute.cn-shenzhen-finance-1.aliyuncs.com', - 'endpoint' => 'maxcompute.cn-shenzhen-finance-1.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-shenzhen-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-1', - 'regionName' => '华北2 金融云(邀测)', - 'areaId' => 'industryCloud', - 'areaName' => '行业云', - 'public' => 'macompute.cn-beijing-finance-1.aliyuncs.com', - 'endpoint' => 'macompute.cn-beijing-finance-1.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-beijing-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'regionName' => '华东2 金融云', - 'areaId' => 'industryCloud', - 'areaName' => '行业云', - 'public' => 'maxcompute.cn-shanghai-finance-1.aliyuncs.com', - 'endpoint' => 'maxcompute.cn-shanghai-finance-1.aliyuncs.com', - 'vpc' => 'maxcompute-vpc.cn-shanghai-finance-1.aliyuncs.com', - ], - ], - 'errorCodes' => [ - [ - 'code' => 'ILLEGAL_ARGUMENT', - 'message' => 'The parameter is illegal.', - 'http_code' => 400, - 'description' => '非法参数', - ], - [ - 'code' => 'ILLEGAL_REQUEST', - 'message' => 'The parameter is illegal.', - 'http_code' => 400, - 'description' => '非法请求', - ], - [ - 'code' => 'INTERNAL_SERVER_ERROR', - 'message' => 'Server error.', - 'http_code' => 500, - 'description' => '服务器错误', - ], - [ - 'code' => 'InvalidParameter.Condition', - 'message' => 'The parameter Condition is wrongly formed.', - 'http_code' => 400, - 'description' => 'Condition参数填写不正确。', - ], - [ - 'code' => 'INVALID_USER', - 'message' => 'Please buy MaxCompute product firstly. The user does not exist.', - 'http_code' => 400, - 'description' => '用户不存在,请先开通MaxCompute。', - ], - [ - 'code' => 'METER_CENTER_ERROR', - 'message' => 'Call meter center create job failed.', - 'http_code' => 500, - 'description' => '调用计量中心失败。', - ], - [ - 'code' => 'NO_PERMISSION', - 'message' => 'sub user has no permission to access object.', - 'http_code' => 403, - 'description' => '用户没有权限操作Maxcompute的资源。', - ], - [ - 'code' => 'OBJECT_NOT_EXIST', - 'message' => 'This object does not exist.', - 'http_code' => 404, - 'description' => '对象不存在。', - ], - [ - 'code' => 'ProjectNotExist', - 'message' => 'The project does not exist.', - 'http_code' => 403, - 'description' => '项目不存在', - ], - [ - 'code' => 'QUOTA_ADHOC_NOT_ENOUGH', - 'message' => 'There is not enough adhoc cu.', - 'http_code' => 400, - 'description' => '弹性CU库存不足。', - ], - [ - 'code' => 'QUOTA_PLAN_NOT_FOUND', - 'message' => 'This quota plan is not exist.', - 'http_code' => 404, - 'description' => '计算资源Quota分时计划不存在。', - ], - [ - 'code' => 'QUOTA_TIMER_HANDLE_FAILED', - 'message' => 'This quota timer of Tunnel Quota is abnormal.', - 'http_code' => 400, - 'description' => '数据传输服务独享资源组(Tunnel Quota)的分时配置处理异常。', - ], - [ - 'code' => 'QUOTA_UNKNOWN_NICKNAME', - 'message' => 'Cannot found quota by nickname.', - 'http_code' => 400, - 'description' => '无法根据填入的nickname查询到Quota。', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0b87b7e216652820458545253e8b0a\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"This object does not exist.\\\\n\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', ], - ], - 'changeSet' => [], - 'flowControl' => [ - 'flowControlList' => [ - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetStorageSizeSummary', - ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListResources', - ], - [ - 'threshold' => '-1', - 'countWindow' => 1, - 'regionId' => '*', + 'UpdateProjectDefaultQuota' => [ + 'path' => '/api/v1/projects/{projectName}/quota', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListUsers', + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '142942', + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], - [ - 'threshold' => '800', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetQuota', + 'parameters' => [ + [ + 'name' => 'projectName', + 'in' => 'path', + 'schema' => ['description' => '项目名称。', 'type' => 'string', 'required' => true, 'example' => 'odps_project'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求体参数。', + 'type' => 'object', + 'properties' => [ + 'quota' => ['description' => '二级计算Quota。用于实现计算资源分配,该项目发起的作业将默认消耗此计算Quota。', 'type' => 'string', 'required' => false, 'example' => 'os_PayAsYouGoQuota'."\n"], + ], + 'required' => false, + 'example' => '{'."\n" + .' "quota":"" //quotaNickName'."\n" + .'}', + ], + ], ], - [ - 'threshold' => '300', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListProjects', + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult', + 'description' => '请求返回参数。', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0a06dfe716674588654372173ec0da'], + 'data' => ['description' => '请求返回结果。', 'type' => 'string', 'example' => 'success'], + ], + ], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetComputeEffectivePlan', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dfe716674588654372173ec0da\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + 'title' => '修改项目默认计算Quota', + 'summary' => '修改项目默认计算Quota', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'odps:UpdateProjectDefaultQuota', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], + ], + ], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ApplyComputeQuotaPlan', + ], + 'UpdateProjectIpWhiteList' => [ + 'path' => '/api/v1/projects/{projectName}/ipWhiteList', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetJobInfo', + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '142941', + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], - [ - 'threshold' => '400', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'QueryTunnelMetric', + 'parameters' => [ + [ + 'name' => 'projectName', + 'in' => 'path', + 'schema' => ['description' => '项目名称', 'type' => 'string', 'required' => true, 'example' => 'odps_project'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '请求体参数', 'type' => 'string', 'required' => false, 'example' => '{"ipWhiteList":{"ipList": "", //string, separate multiple values with commas'."\n" + .'                "vpcIpList": ""}}'], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'UpdateQuotaPlan', + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult', + 'description' => 'PopResult', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '0bc12e4316675560945192024e1044'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], + ], + ], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'DeleteComputeQuotaPlan', + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'CreateQuotaPlan', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc12e4316675560945192024e1044\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + 'title' => '修改项目IP白名单', + 'summary' => '修改MaxCompute项目IP白名单。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateProjectIpWhiteList'], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListComputeMetricsByInstance', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'odps:UpdateProjectIpWhiteList', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], + ], + ], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListTunnelQuotaTimer', + ], + 'UpdateProjectModelTier' => [ + 'summary' => '将project的二层模型升级为三层模型', + 'path' => '/api/v1/projects/{projectName}/modelTier', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'DeleteQuotaPlan', + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '204095', + 'abilityTreeNodes' => ['FEATUREodpsTZPZOE'], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'UpdateProjectBasicMeta', + 'parameters' => [ + [ + 'name' => 'projectName', + 'in' => 'path', + 'schema' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'required' => true, 'example' => 'projectA'], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListFunctions', + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult', + 'description' => '请求返回参数。', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '73207140-0FD5-588A-B11A-3CE093924196'], + 'httpCode' => ['description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'this project is not exist.'], + 'data' => ['description' => '返回数据。', 'type' => 'string', 'example' => '"data":{'."\n" + .' "data":"success",'."\n" + .' "requestId":"****"'."\n" + .' }'], + ], + ], + ], ], - [ - 'threshold' => '800', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetTableInfo', + 'title' => '升级项目到支持Schema层级', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - [ - 'threshold' => '800', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetProject', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"73207140-0FD5-588A-B11A-3CE093924196\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\",\\n \\"errorMsg\\": \\"this project is not exist.\\",\\n \\"data\\": \\"\\\\\\"data\\\\\\":{\\\\n\\\\t\\\\t\\\\\\"data\\\\\\":\\\\\\"success\\\\\\",\\\\n\\\\t\\\\t\\\\\\"requestId\\\\\\":\\\\\\"****\\\\\\"\\\\n\\\\t}\\"\\n}","type":"json"}]', + ], + 'UpdateQuotaPlan' => [ + 'path' => '/api/v1/quotas/{nickname}/plans/{planName}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetRoleAcl', + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '142710', + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], ], - [ - 'threshold' => '300', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetQuotaUsage', + 'parameters' => [ + [ + 'name' => 'nickname', + 'in' => 'path', + 'schema' => ['description' => 'Quota名称', 'type' => 'string', 'required' => true, 'example' => 'quotaA'], + ], + [ + 'name' => 'planName', + 'in' => 'path', + 'schema' => ['description' => 'Quota计划名称', 'type' => 'string', 'required' => true, 'example' => 'planA'], + ], + [ + 'name' => 'tenantId', + 'in' => 'query', + 'schema' => ['description' => '租户id。', 'type' => 'string', 'required' => false, 'example' => '478403690625249'], + ], + [ + 'name' => 'region', + 'in' => 'query', + 'schema' => ['description' => '地域id。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '请求体参数', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .'  "name": "planA",'."\n" + .'  // The following is a level-1 quota. You can select only the fields related to the plan.'."\n" + .'  "quota": {'."\n" + .'    "name": "a",'."\n" + .'    "nickName": "aaa_nick",'."\n" + .'    "tenantId": "10001",'."\n" + .'    "regionId": "cn-hangzhou",'."\n" + .'    "parentId": "0",'."\n" + .'    "cluster": "AT-ODPS-TEST3",'."\n" + .'    "parameter": {'."\n" + .'        "minCU": 40,'."\n" + .'        "maxCU": 40,'."\n" + .'        "adhocCU": 0,'."\n" + .'        "elasticMinCU": 40,'."\n" + .'        "elasticMaxCU": 40,'."\n" + .'        "enablePreemptiveScheduling": false,'."\n" + .'        "forceReservedMin": true,'."\n" + .'        "enablePriority": false,'."\n" + .'        "singleJobCULimit": 100,'."\n" + .'        "adhocQuotaBeginTimeInSec": 1345,'."\n" + .'        "adhocQuotaEndTimeInSec": 1234,'."\n" + .'        "ignoreAdhocQuota": false'."\n" + .'    },'."\n" + .'    "subQuotaInfoList": ['."\n" + .'        {'."\n" + .'            "nickName": "WlmFuxiSecondaryOnlineQuotaTest",'."\n" + .'            "name": "WlmFuxiSecondaryOnlineQuotaTest",'."\n" + .'            "type": "FUXI_ONLINE",'."\n" + .'            "tenantId": "10001",'."\n" + .'            "regionId": "cn-hangzhou",'."\n" + .'            "cluster": "AT-ODPS-TEST3",'."\n" + .'            "parameter": {'."\n" + .'                "minCU": 40,'."\n" + .'                "maxCU": 40,'."\n" + .'                "adhocCU": 0,'."\n" + .'                "elasticMinCU": 40,'."\n" + .'                "elasticMaxCU": 40,'."\n" + .'                "enablePreemptiveScheduling": false,'."\n" + .'                "forceReservedMin": true,'."\n" + .'                "enablePriority": false,'."\n" + .'                "singleJobCULimit": 100,'."\n" + .'                "adhocQuotaBeginTimeInSec": 1345,'."\n" + .'                "adhocQuotaEndTimeInSec": 1234,'."\n" + .'                "ignoreAdhocQuota": false'."\n" + .'            }'."\n" + .'        }'."\n" + .'    ]'."\n" + .'  }'."\n" + .'}'], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListJobSnapshotInfos', + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult', + 'description' => 'PopResult', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0a06dfe516688379832875789e2c65'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], + ], + ], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetQuotaPlan', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dfe516688379832875789e2c65\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + 'title' => '更新Quota计划', + 'summary' => '更新Quota计划。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateQuotaPlan'], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'KillJobs', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'odps:UpdateQuotaPlan', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], + ], + ], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetPackage', + ], + 'UpdateQuotaSchedule' => [ + 'path' => '/api/v1/quotas/{nickname}/schedule', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetRoleAclOnObject', + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '142712', + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListComputeQuotaPlan', + 'parameters' => [ + [ + 'name' => 'nickname', + 'in' => 'path', + 'schema' => ['description' => 'Quota名称', 'type' => 'string', 'required' => true, 'example' => '%E9%BB%98%E8%AE%A4%E9%A2%84%E4%BB%98%E8%B4%B9Quota_p'."\n" + ."\n" + .'# Chinese name needs to be UTF-8 URL-encoded'], + ], + [ + 'name' => 'tenantId', + 'in' => 'query', + 'schema' => ['description' => '租户id', 'type' => 'string', 'required' => false, 'example' => '478403690625249'], + ], + [ + 'name' => 'region', + 'in' => 'query', + 'schema' => ['description' => '地域id。', 'type' => 'string', 'required' => false, 'example' => 'cn-chengdu'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '请求体参数', 'type' => 'string', 'required' => false, 'example' => '# The quota plan immediately takes effect.'."\n" + .'['."\n" + .'  {'."\n" + .'    "type": "once",'."\n" + .'    "plan": "planA",'."\n" + .'    "operator": "userA"'."\n" + .'  }'."\n" + .']'."\n" + ."\n" + .'# The quota plan is scheduled on a regular basis.'."\n" + .'['."\n" + .'  {'."\n" + .'    "id": "etl_time",'."\n" + .'    "type": "daily",'."\n" + .'    "condition": {'."\n" + .'      "at": "0800"'."\n" + .'    },'."\n" + .'    "plan": "planA"'."\n" + .'  },'."\n" + .'  {'."\n" + .'    "id": "bi",'."\n" + .'    "type": "daily",'."\n" + .'    "condition": {'."\n" + .'      "at": "0900"'."\n" + .'    },'."\n" + .'    "plan": "planB"'."\n" + .'  }'."\n" + .']'], + ], ], - [ - 'threshold' => '800', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'QueryQuota', + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult', + 'description' => 'PopResult', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '0a06dfe516691014920015940e1c9d'], + 'data' => ['description' => '返回结果。', 'type' => 'string', 'example' => 'success'], + ], + ], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListQuotasPlans', + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'UpdateComputeQuotaPlan', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a06dfe516691014920015940e1c9d\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + 'title' => '更新Quota时间计划', + 'summary' => '更新Quota时间计划信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateQuotaSchedule'], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetJobResourceUsage', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'odps:UpdateQuotaSchedule', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], + ], + ], + ], ], - [ - 'threshold' => '500', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetRunningJobs', + ], + 'UpdateTunnelQuotaTimer' => [ + 'path' => '/api/v1/tunnel/{nickname}/timers', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListStoragePartitionsInfo', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '254734', + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], + 'tenantRelevance' => 'tenant', ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'UpdateComputeSubQuota', + 'parameters' => [ + [ + 'name' => 'nickname', + 'in' => 'path', + 'schema' => ['description' => '一级数据传输服务独享资源组(Tunnel Quota)昵称。', 'type' => 'string', 'required' => true, 'example' => 'ot_tunnel_quota_p'."\n"], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求体参数。', + 'type' => 'array', + 'items' => [ + 'description' => '请求体参数。', + 'type' => 'object', + 'properties' => [ + 'beginTime' => ['description' => '分时配置开始时间。', 'type' => 'string', 'required' => false, 'example' => '00:00'], + 'endTime' => ['description' => '分时配置结束时间。', 'type' => 'string', 'required' => false, 'example' => '08:00'], + 'tunnelQuotaParameter' => [ + 'description' => '分时配置参数。', + 'type' => 'object', + 'properties' => [ + 'slotNum' => ['description' => '预留并发(Slot)数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'], + 'elasticReservedSlotNum' => ['description' => '弹性预留并发(Slot)数。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'], + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + [ + 'name' => 'timezone', + 'in' => 'query', + 'schema' => ['description' => '时区。', 'type' => 'string', 'required' => false, 'example' => 'Asia/Shanghai'], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'UpdatePackage', + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult', + 'description' => '请求返回参数。', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0bc12e4316675560945192024e1044'], + 'httpCode' => ['description' => 'HTTP状态码。'."\n" + .'- 1xx:信息响应 - 请求已接收,正在处理中。'."\n" + .'- 2xx:成功 - 请求动作已被服务端成功接收、理解并接受。'."\n" + .'- 3xx:重定向 - 请求被重定向,采取进一步行动以完成请求。'."\n" + .'- 4xx:客户端错误 - 请求包含错误请求参、语法或特定请求条件无法满足。'."\n" + .'- 5xx:服务端错误 - 服务器由于其他原因无法满足请求。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'OBJECT_NOT_EXIST'."\n"], + 'errorMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'This object does not exist.'."\n"], + 'data' => ['description' => '请求返回结果。', 'type' => 'string', 'example' => 'success'], + ], + ], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListProjectUsers', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0bc12e4316675560945192024e1044\\",\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"OBJECT_NOT_EXIST\\\\n\\",\\n \\"errorMsg\\": \\"This object does not exist.\\\\n\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + 'title' => '更新Quota(Tunnel)分时扩缩容配置', + 'summary' => '更新数据传输服务独享资源组(Tunnel Quota)的分时扩缩容配置。', + 'description' => '请确保在使用该接口前,已充分了解了数据传输服务独享资源组和弹性预留计算资源的[收费方式和价格](https://help.aliyun.com/zh/maxcompute/product-overview/data-transfer-fees-hourly-billing)'."\n" + .'[收费方式和价格](https://www.alibabacloud.com/help/maxcompute/product-overview/data-transfer-fees-hourly-billing)。', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'odps:UpdateQuotaTimers', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'CreateProject', + ], + 'UpdateUsersToRole' => [ + 'summary' => '项目角色添加或删除用户', + 'path' => '/api/v1/projects/{projectName}/roles/{roleName}/users', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREodpsZAKNHC'], + ], + 'parameters' => [ + [ + 'name' => 'projectName', + 'in' => 'path', + 'schema' => ['description' => 'MaxCompute项目名称', 'type' => 'string', 'required' => true, 'example' => 'project_a'], + ], + [ + 'name' => 'roleName', + 'in' => 'path', + 'schema' => ['description' => 'Project Role名称', 'type' => 'string', 'required' => true, 'example' => 'admin'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求Body', + 'type' => 'object', + 'properties' => [ + 'add' => [ + 'description' => '添加用户到project role的action', + 'type' => 'array', + 'items' => ['description' => '账号列表', 'type' => 'string', 'required' => false, 'example' => '["ALIYUN$test1","ALIYUN$test2"]'], + 'required' => false, + ], + 'remove' => [ + 'description' => '删除project role内用户的action', + 'type' => 'array', + 'items' => ['description' => '账号列表', 'type' => 'string', 'required' => false, 'example' => '["ALIYUN$test3","ALIYUN$test4"]'], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'PopResult', + 'description' => 'PopResult', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '0a032a1317254153012687347ef4ee'], + 'data' => ['description' => '返回结果', 'type' => 'string', 'example' => 'success'], + ], + ], + ], ], - [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetStorageAmountSummary', + 'title' => '项目角色添加或删除用户', + 'extraInfo' => '>该接口只针对Project的角色管理操作>', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - [ - 'threshold' => '500', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListJobInfos', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'odps:UpdateUsersToRole', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"0a032a1317254153012687347ef4ee\\",\\n \\"data\\": \\"success\\"\\n}","type":"json"}]', + ], + ], + 'endpoints' => [ + ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'maxcompute.cn-wulanchabu.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-wulanchabu.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.cn-beijing.aliyuncs.com', 'endpoint' => 'maxcompute.cn-beijing.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.cn-shanghai.aliyuncs.com', 'endpoint' => 'maxcompute.cn-shanghai.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.cn-hongkong.aliyuncs.com', 'endpoint' => 'maxcompute.cn-hongkong.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-hongkong.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'maxcompute.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-zhangjiakou.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.cn-shenzhen.aliyuncs.com', 'endpoint' => 'maxcompute.cn-shenzhen.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.ap-northeast-1.aliyuncs.com', 'endpoint' => 'maxcompute.ap-northeast-1.aliyuncs.com', 'vpc' => 'maxcompute-vpc.ap-northeast-1.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.cn-chengdu.aliyuncs.com', 'endpoint' => 'maxcompute.cn-chengdu.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-chengdu.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.ap-southeast-1.aliyuncs.com', 'endpoint' => 'maxcompute.ap-southeast-1.aliyuncs.com', 'vpc' => 'maxcompute-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.ap-southeast-3.aliyuncs.com', 'endpoint' => 'maxcompute.ap-southeast-3.aliyuncs.com', 'vpc' => 'maxcompute-vpc.ap-southeast-3.aliyuncs.com'], + ['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.ap-southeast-5.aliyuncs.com', 'endpoint' => 'maxcompute.ap-southeast-5.aliyuncs.com', 'vpc' => 'maxcompute-vpc.ap-southeast-5.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'maxcompute.cn-hangzhou.aliyuncs.com', 'endpoint' => 'maxcompute.cn-hangzhou.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'maxcompute.us-east-1.aliyuncs.com', 'endpoint' => 'maxcompute.us-east-1.aliyuncs.com', 'vpc' => 'maxcompute-vpc.us-east-1.aliyuncs.com'], + ['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'maxcompute.eu-west-1.aliyuncs.com', 'endpoint' => 'maxcompute.eu-west-1.aliyuncs.com', 'vpc' => 'maxcompute-vpc.eu-west-1.aliyuncs.com'], + ['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'maxcompute.us-west-1.aliyuncs.com', 'endpoint' => 'maxcompute.us-west-1.aliyuncs.com', 'vpc' => 'maxcompute-vpc.us-west-1.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'maxcompute.eu-central-1.aliyuncs.com', 'endpoint' => 'maxcompute.eu-central-1.aliyuncs.com', 'vpc' => 'maxcompute-vpc.eu-central-1.aliyuncs.com'], + ['regionId' => 'me-east-1', 'regionName' => '阿联酋(迪拜)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'maxcompute.aliyuncs.com', 'endpoint' => 'maxcompute.aliyuncs.com', 'vpc' => 'maxcompute-vpc.me-east-1.aliyuncs.com'], + ['regionId' => 'me-central-1', 'regionName' => '沙特(利雅得)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'maxcompute.me-central-1.aliyuncs.com', 'endpoint' => 'maxcompute.me-central-1.aliyuncs.com', 'vpc' => 'maxcompute-vpc.me-central-1.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'maxcompute.cn-hangzhou-finance.aliyuncs.com', 'endpoint' => 'maxcompute.cn-hangzhou-finance.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-hangzhou-finance.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-finance-1', 'regionName' => '华南1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'maxcompute.cn-shenzhen-finance-1.aliyuncs.com', 'endpoint' => 'maxcompute.cn-shenzhen-finance-1.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-shenzhen-finance-1.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-1', 'regionName' => '华北2 金融云(邀测)', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'macompute.cn-beijing-finance-1.aliyuncs.com', 'endpoint' => 'macompute.cn-beijing-finance-1.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-beijing-finance-1.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'maxcompute.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'maxcompute.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'maxcompute-vpc.cn-shanghai-finance-1.aliyuncs.com'], + ], + 'errorCodes' => [ + ['code' => 'ILLEGAL_ARGUMENT', 'message' => 'The parameter is illegal.', 'http_code' => 400, 'description' => '非法参数'], + ['code' => 'ILLEGAL_REQUEST', 'message' => 'The parameter is illegal.', 'http_code' => 400, 'description' => '非法请求'], + ['code' => 'INTERNAL_SERVER_ERROR', 'message' => 'Server error.', 'http_code' => 500, 'description' => '服务器错误'], + ['code' => 'InvalidParameter.Condition', 'message' => 'The parameter Condition is wrongly formed.', 'http_code' => 400, 'description' => 'Condition参数填写不正确。'], + ['code' => 'INVALID_USER', 'message' => 'Please buy MaxCompute product firstly. The user does not exist.', 'http_code' => 400, 'description' => '用户不存在,请先开通MaxCompute。'], + ['code' => 'METER_CENTER_ERROR', 'message' => 'Call meter center create job failed.', 'http_code' => 500, 'description' => '调用计量中心失败。'], + ['code' => 'NO_PERMISSION', 'message' => 'sub user has no permission to access object.', 'http_code' => 403, 'description' => '用户没有权限操作Maxcompute的资源。'], + ['code' => 'OBJECT_NOT_EXIST', 'message' => 'This object does not exist.', 'http_code' => 404, 'description' => '对象不存在。'], + ['code' => 'ProjectNotExist', 'message' => 'The project does not exist.', 'http_code' => 403, 'description' => '项目不存在'], + ['code' => 'QUOTA_ADHOC_NOT_ENOUGH', 'message' => 'There is not enough adhoc cu.', 'http_code' => 400, 'description' => '弹性CU库存不足。'], + ['code' => 'QUOTA_PLAN_NOT_FOUND', 'message' => 'This quota plan is not exist.', 'http_code' => 404, 'description' => '计算资源Quota分时计划不存在。'], + ['code' => 'QUOTA_TIMER_HANDLE_FAILED', 'message' => 'This quota timer of Tunnel Quota is abnormal.', 'http_code' => 400, 'description' => '数据传输服务独享资源组(Tunnel Quota)的分时配置处理异常。'], + ['code' => 'QUOTA_UNKNOWN_NICKNAME', 'message' => 'Cannot found quota by nickname.', 'http_code' => 400, 'description' => '无法根据填入的nickname查询到Quota。'], + ], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetStorageSizeSummary'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListResources'], + ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListUsers'], + ['threshold' => '800', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetQuota'], + ['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListProjects'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetComputeEffectivePlan'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ApplyComputeQuotaPlan'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetJobInfo'], + ['threshold' => '400', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryTunnelMetric'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateQuotaPlan'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteComputeQuotaPlan'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateQuotaPlan'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListComputeMetricsByInstance'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListTunnelQuotaTimer'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteQuotaPlan'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateProjectBasicMeta'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListFunctions'], + ['threshold' => '800', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetTableInfo'], + ['threshold' => '800', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetProject'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetRoleAcl'], + ['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetQuotaUsage'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListJobSnapshotInfos'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetQuotaPlan'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'KillJobs'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetPackage'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetRoleAclOnObject'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListComputeQuotaPlan'], + ['threshold' => '800', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryQuota'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListQuotasPlans'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateComputeQuotaPlan'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetJobResourceUsage'], + ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetRunningJobs'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListStoragePartitionsInfo'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateComputeSubQuota'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdatePackage'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListProjectUsers'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateProject'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetStorageAmountSummary'], + ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListJobInfos'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListJobMetric'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateComputeQuotaPlan'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetQuotaSchedule'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetTrustedProjects'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetComputeQuotaSchedule'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetComputeQuotaPlan'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListRoles'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateRole'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreatePackage'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateComputeQuotaSchedule'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateTunnelQuotaTimer'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListPackages'], + ['threshold' => '400', 'countWindow' => 60, 'regionId' => '*', 'api' => 'QueryTunnelMetricDetail'], + ['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListQuotas'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateProjectDefaultQuota'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateProjectIpWhiteList'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateQuotaSchedule'], + ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListUsersByRole'], + ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListStorageTablesInfo'], + ['threshold' => '300', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListTables'], + ['threshold' => '100', 'countWindow' => 60, 'regionId' => '*', 'api' => 'GetRolePolicy'], + ], + ], + 'ram' => [ + 'productCode' => 'MaxCompute', + 'productName' => '云原生大数据计算服务 MaxCompute', + 'ramCodes' => ['odps', 'maxcompute'], + 'ramLevel' => '资源级', + 'ramConditions' => [ [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListJobMetric', + 'name' => 'odps:Encryption', + 'schema' => ['type' => 'Boolean', 'description' => '项目是否开启加密'], ], + ], + 'ramActions' => [ [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'CreateComputeQuotaPlan', + 'apiName' => 'ListMmsTables', + 'description' => '列出数据源内的表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'odps:ListMmsTables', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetQuotaSchedule', + 'apiName' => 'UpdateMmsDataSource', + 'description' => '更新数据源配置、启/停数据源实例', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'odps:UpdateMmsDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetTrustedProjects', + 'apiName' => 'GetRoleAclOnObject', + 'description' => '获取角色对某对象的ACL授权', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'odps:GetRoleAclOnObject', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetComputeQuotaSchedule', + 'apiName' => 'QueryStorageMetric', + 'description' => '存储资源观测时序数据', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'odps:QueryStorageMetric', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Storage', 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#metric}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetComputeQuotaPlan', + 'apiName' => 'GetJobInfo', + 'description' => '查看作业的基础信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'odps:GetJobInfo', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Job', 'arn' => 'acs:odps:{#regionId}:{#accountId}:job/{#instanceId}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListRoles', + 'apiName' => 'GetMmsDataSource', + 'description' => '获取单个数据源详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'odps:GetMmsDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'CreateRole', + 'apiName' => 'StartMmsJob', + 'description' => '启动数据迁移作业', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'odps:StartMmsJob', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'CreatePackage', + 'apiName' => 'CreateRole', + 'description' => '创建项目级角色', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'odps:CreateRole', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#projectName}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'UpdateComputeQuotaSchedule', + 'apiName' => 'GetStorageSizeSummary', + 'description' => '获取存储用量信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'odps:GetStorageSizeSummary', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'UpdateTunnelQuotaTimer', + 'apiName' => 'ListMmsJobs', + 'description' => '获取迁移作业列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'odps:ListMmsJobs', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListPackages', + 'apiName' => 'ListStorageProjectsInfo', + 'description' => '获取项目存储明细', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'odps:ListStorageProjectsInfo', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], [ - 'threshold' => '400', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'QueryTunnelMetricDetail', + 'apiName' => 'QueryQuota', + 'description' => '获取指定一级Quota组信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'odps:QueryQuota', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], + ], + ], ], [ - 'threshold' => '300', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListQuotas', + 'apiName' => 'GetMmsPartition', + 'description' => '获取数据源内的某个分区', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'odps:GetMmsPartition', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'UpdateProjectDefaultQuota', + 'apiName' => 'ListPackages', + 'description' => '获取Package列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'odps:ListPackages', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'UpdateProjectIpWhiteList', + 'apiName' => 'QueryTunnelMetric', + 'description' => 'Tunnel资源观测时序数据', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'odps:QueryTunnelMetric', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Tunnel', 'arn' => 'acs:odps:{#regionId}:{#accountId}:tunnel/{#metric}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'UpdateQuotaSchedule', + 'apiName' => 'DeleteProject', + 'description' => '删除项目', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'odps:DeleteProject', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], + ], + ], ], [ - 'threshold' => '500', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListUsersByRole', + 'apiName' => 'GetComputeQuotaPlan', + 'description' => '获取计算Quota计划详细信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'odps:GetQuotaPlan', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], + ], + ], ], [ - 'threshold' => '500', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListStorageTablesInfo', + 'apiName' => 'SumBillsByDate', + 'description' => '按实例或者费用项逐日统计费用', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'odps:SumBillsByDate', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], [ - 'threshold' => '300', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'ListTables', + 'apiName' => 'UpdateUsersToRole', + 'description' => '项目角色添加或删除用户', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'odps:UpdateUsersToRole', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], + ], + ], ], [ - 'threshold' => '100', - 'countWindow' => 60, - 'regionId' => '*', - 'api' => 'GetRolePolicy', + 'apiName' => 'UpdateProjectIpWhiteList', + 'description' => '修改项目IP白名单', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'odps:UpdateProjectIpWhiteList', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], + ], + ], ], - ], - ], - 'ram' => [ - 'productCode' => 'MaxCompute', - 'productName' => '云原生大数据计算服务 MaxCompute', - 'ramCodes' => [ - 'odps', - 'maxcompute', - ], - 'ramLevel' => '资源级', - 'ramConditions' => [ [ - 'name' => 'odps:Encryption', - 'schema' => [ - 'type' => 'Boolean', - 'description' => '项目是否开启加密', + 'apiName' => 'GetMmsJob', + 'description' => '获取单个迁移作业详情 ', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'odps:GetMmsJob', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ], ], - ], - ], - 'ramActions' => [ + ], [ - 'apiName' => 'GetMmsDb', - 'description' => '获取数据源内的某个库', - 'operationType' => 'get', + 'apiName' => 'CreateMmsDataSource', + 'description' => '创建数据源', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'odps:GetMmsDb', + 'action' => 'odps:CreateMmsDataSource', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'ListTunnelQuotaTimer', - 'description' => '查看Quota(Tunnel)分时扩缩容配置', + 'apiName' => 'ListResources', + 'description' => '获取资源列表', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:ListQuotaTimers', + 'action' => 'odps:ListResources', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'ListMmsTables', - 'description' => '列出数据源内的表', + 'apiName' => 'ListTables', + 'description' => '获取表列表', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:ListMmsTables', + 'action' => 'odps:ListTables', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'GetMmsAsyncTask', - 'description' => '获取数据迁移相关的单个异步任务详情', - 'operationType' => 'get', + 'apiName' => 'StopMmsJob', + 'description' => '停止数据迁移作业', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:GetMmsAsyncTask', + 'action' => 'odps:StopMmsJob', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'ListStorageProjectsInfo', - 'description' => '获取项目存储明细', + 'apiName' => 'ListFunctions', + 'description' => '获取函数列表', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:ListStorageProjectsInfo', + 'action' => 'odps:ListFunctions', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'StartMmsJob', - 'description' => '启动数据迁移作业', - 'operationType' => 'update', + 'apiName' => 'ListMmsTasks', + 'description' => '获取数据迁移任务列表', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:StartMmsJob', + 'action' => 'odps:ListMmsTasks', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'GetProject', - 'description' => '获取项目信息', - 'operationType' => 'get', + 'apiName' => 'ApplyComputeQuotaPlan', + 'description' => '立即生效Quota计划', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:GetProject', + 'action' => 'odps:ApplyComputeQuotaPlan', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'QueryTunnelMetric', - 'description' => 'Tunnel资源观测时序数据', - 'operationType' => 'list', + 'apiName' => 'UpdateComputeQuotaSchedule', + 'description' => '更新计算Quota分时计划', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:QueryTunnelMetric', + 'action' => 'odps:UpdateQuotaSchedule', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Tunnel', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:tunnel/{#metric}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'ListMmsDataSources', - 'description' => '列出数据源', + 'apiName' => 'ListComputeQuotaPlan', + 'description' => '列举计算Quota计划', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:ListMmsDataSources', + 'action' => 'odps:ListQuotasPlans', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'UpdateProjectDefaultQuota', - 'description' => '修改项目默认计算Quota', + 'apiName' => 'UpdateMmsTables', + 'description' => '批量更新表目的、状态', 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:UpdateProjectDefaultQuota', + 'action' => 'odps:UpdateMmsTables', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'GetQuotaSchedule', - 'description' => '获取Quota时间计划信息', + 'apiName' => 'ListProjectUsers', + 'description' => '获取项目用户列表', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:GetQuotaSchedule', + 'action' => 'odps:ListProjectUsers', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'GetRolePolicy', - 'description' => '获取角色Policy授权内容', - 'operationType' => 'get', + 'apiName' => 'ListUsersByRole', + 'description' => '获取绑定某项目级角色的用户列表', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:GetRolePolicy', + 'action' => 'odps:ListUsersByRole', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'UpdateQuotaSchedule', - 'description' => '更新Quota时间计划', - 'operationType' => 'update', + 'apiName' => 'GetMmsTask', + 'description' => '获取单个迁移任务详情', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:UpdateQuotaSchedule', + 'action' => 'odps:GetMmsTask', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'ListMmsTasks', - 'description' => '获取数据迁移任务列表', - 'operationType' => 'list', + 'apiName' => 'CreateMmsTimer', + 'description' => '创建数据迁移定时任务', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'odps:ListMmsTasks', + 'action' => 'odps:CreateMmsTimer', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'ListUsers', - 'description' => '获取用户列表', + 'apiName' => 'ListMmsDataSources', + 'description' => '列出数据源', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:ListUsers', + 'action' => 'odps:ListMmsDataSources', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'GetMmsJob', - 'description' => '获取单个迁移作业详情 ', - 'operationType' => 'get', + 'apiName' => 'QueryQuotaMetric', + 'description' => '计算资源消耗信息', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:GetMmsJob', + 'action' => 'odps:QueryQuotaMetric', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quota/{#metric}'], ], ], ], [ - 'apiName' => 'GetTrustedProjects', - 'description' => '获取受信任项目列表', + 'apiName' => 'GetRoleAcl', + 'description' => '获取项目级角色ACL授权信息', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:GetTrustedProjects', + 'action' => 'odps:GetRoleAcl', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'conditional', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'GetComputeQuotaSchedule', - 'description' => '获取计算Quota分时计划', - 'operationType' => 'get', + 'apiName' => 'ListMmsPartitions', + 'description' => '列出数据源内的分区', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:GetQuotaSchedule', + 'action' => 'odps:ListMmsPartitions', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'UpdateProjectIpWhiteList', - 'description' => '修改项目IP白名单', - 'operationType' => 'update', + 'apiName' => 'ListProjects', + 'description' => '获取项目列表', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:UpdateProjectIpWhiteList', + 'action' => 'odps:ListProjects', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'conditional', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/*'], ], ], ], [ - 'apiName' => 'GetStorageSummaryCompared', - 'description' => '存储趋势同比变化', + 'apiName' => 'GetQuota', + 'description' => '获取指定一级Quota组信息', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:GetStorageSummaryCompared', + 'action' => 'odps:GetQuota', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'UpdateMmsDataSource', - 'description' => '更新数据源配置、启/停数据源实例', + 'apiName' => 'KillJobs', + 'description' => '终止作业', 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:UpdateMmsDataSource', + 'action' => 'odps:KillJobs', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'ListUsersByRole', - 'description' => '获取绑定某项目级角色的用户列表', - 'operationType' => 'list', + 'apiName' => 'UpdatePackage', + 'description' => '更新Package', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:ListUsersByRole', + 'action' => 'odps:UpdatePackage', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'ListJobSnapshotInfos', - 'description' => '获取作业快照列表', - 'operationType' => 'list', + 'apiName' => 'ListQuotas', + 'description' => '获取Quota列表', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:ListJobSnapshotInfos', + 'action' => 'odps:ListQuotas', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/*'], ], ], ], [ - 'apiName' => 'GetMmsTable', - 'description' => '获取MMA数据源内的某张表', - 'operationType' => 'get', + 'apiName' => 'ListComputeMetricsBySignature', + 'description' => '按Signature查看作业使用量明细', + 'operationType' => 'none', 'ramAction' => [ - 'action' => 'odps:GetMmsTable', - 'authLevel' => 'resource', + 'action' => 'odps:ListComputeMetricsBySignature', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'ListPackages', - 'description' => '获取Package列表', - 'operationType' => 'list', + 'apiName' => 'UpdateProjectModelTier', + 'description' => '升级项目到支持Schema层级', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:ListPackages', + 'action' => 'odps:UpdateProjectModelTier', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'GetStorageAmountSummary', - 'description' => '获取存储总量信息', - 'operationType' => 'get', + 'apiName' => 'DeleteMmsTimer', + 'description' => '删除定时任务', + 'operationType' => 'delete', 'ramAction' => [ - 'action' => 'odps:GetStorageAmountSummary', + 'action' => 'odps:DeleteMmsTimer', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'GetJobInfo', - 'description' => '查看作业的基础信息', - 'operationType' => 'get', + 'apiName' => 'TriggerMmsTimer', + 'description' => '立即触发数据迁移定时任务', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'odps:GetJobInfo', + 'action' => 'odps:TriggerMmsTimer', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Job', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:job/{#instanceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'ListMmsJobs', - 'description' => '获取迁移作业列表', - 'operationType' => 'list', + 'apiName' => 'CreateMmsFetchMetadataJob', + 'description' => '创建“同步数据源元数据”任务', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'odps:ListMmsJobs', + 'action' => 'odps:CreateMmsFetchMetadataJob', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'ListResources', - 'description' => '获取资源列表', - 'operationType' => 'list', + 'apiName' => 'CreateQuota', + 'description' => '创建Quota', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'odps:ListResources', + 'action' => 'odps:CreateQuota', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/*'], ], ], ], [ - 'apiName' => 'UpdatePackage', - 'description' => '更新Package', + 'apiName' => 'UpdateMmsTimer', + 'description' => '更新定时任务', 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:UpdatePackage', + 'action' => 'odps:UpdateMmsTimer', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'GetJobResourceUsage', - 'description' => '获得作业执行者级别的资源使用列表', + 'apiName' => 'ListJobSnapshotInfos', + 'description' => '获取作业快照列表', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:GetJobResourceUsage', - 'authLevel' => 'resource', - 'actionConditions' => [], - 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], - ], - ], - ], - [ - 'apiName' => 'DeleteQuotaPlan', - 'description' => '删除Quota计划', - 'operationType' => 'delete', - 'ramAction' => [ - 'action' => 'odps:DeleteQuotaPlan', + 'action' => 'odps:ListJobSnapshotInfos', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'ListComputeQuotaPlan', - 'description' => '列举计算Quota计划', + 'apiName' => 'ListJobMetric', + 'description' => '获取作业性能指标', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:ListQuotasPlans', + 'action' => 'odps:ListJobMetric', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'CreateQuotaPlan', - 'description' => '创建Quota计划', - 'operationType' => 'create', + 'apiName' => 'ListInstances', + 'description' => '获取需要进行成本分析的实例列表', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:CreateQuotaPlan', + 'action' => 'odps:ListInstances', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'CreateMmsFetchMetadataJob', - 'description' => '创建“同步数据源元数据”任务', - 'operationType' => 'create', + 'apiName' => 'DeleteComputeQuotaPlan', + 'description' => '删除计算Quota计划', + 'operationType' => 'delete', 'ramAction' => [ - 'action' => 'odps:CreateMmsFetchMetadataJob', + 'action' => 'odps:DeleteQuotaPlan', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'DeleteMmsDataSource', - 'description' => '删除数据源', + 'apiName' => 'DeleteQuotaPlan', + 'description' => '删除Quota计划', 'operationType' => 'delete', 'ramAction' => [ - 'action' => 'odps:DeleteMmsDataSource', + 'action' => 'odps:DeleteQuotaPlan', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'GetQuota', - 'description' => '获取指定一级Quota组信息', - 'operationType' => 'get', + 'apiName' => 'SumComputeMetricsByRecord', + 'description' => '统计用量记录数', + 'operationType' => 'none', 'ramAction' => [ - 'action' => 'odps:GetQuota', - 'authLevel' => 'resource', + 'action' => 'odps:SumComputeMetricsByRecord', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'QueryQuotaMetric', - 'description' => '计算资源消耗信息', - 'operationType' => 'list', + 'apiName' => 'UpdateComputeQuotaPlan', + 'description' => '更新Quota计划', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:QueryQuotaMetric', + 'action' => 'odps:UpdateQuotaPlan', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quota/{#metric}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'QueryStorageMetric', - 'description' => '存储资源观测时序数据', - 'operationType' => 'list', + 'apiName' => 'CreateQuotaPlan', + 'description' => '创建Quota计划', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'odps:QueryStorageMetric', + 'action' => 'odps:CreateQuotaPlan', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Storage', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#metric}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'ListComputeMetricsByInstance', - 'description' => '列出后付费作业计算用量', - 'operationType' => 'list', + 'apiName' => 'GetMmsAsyncTask', + 'description' => '获取数据迁移相关的单个异步任务详情', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:ListComputeMetricsByInstance', - 'authLevel' => 'operate', + 'action' => 'odps:GetMmsAsyncTask', + 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'ListProjects', - 'description' => '获取项目列表', - 'operationType' => 'list', + 'apiName' => 'UpdateComputeSubQuota', + 'description' => '更新计算Quota基础配置', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:ListProjects', + 'action' => 'odps:UpdateSubQuotas', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'conditional', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'UpdateQuotaPlan', - 'description' => '更新Quota计划', - 'operationType' => 'update', + 'apiName' => 'CreateMmsJob', + 'description' => '创建数据迁移任务', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'odps:UpdateQuotaPlan', + 'action' => 'odps:CreateMmsJob', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'UpdateProjectModelTier', - 'description' => '升级项目到支持Schema层级', - 'operationType' => 'update', + 'apiName' => 'GetProject', + 'description' => '获取项目信息', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:UpdateProjectModelTier', + 'action' => 'odps:GetProject', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'UpdateComputeQuotaSchedule', - 'description' => '更新计算Quota分时计划', - 'operationType' => 'update', + 'apiName' => 'ListMmsTimers', + 'description' => '列出数据迁移定时任务', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:UpdateQuotaSchedule', + 'action' => 'odps:ListMmsTimers', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'GetMmsTask', - 'description' => '获取单个迁移任务详情', - 'operationType' => 'get', + 'apiName' => 'ListComputeMetricsByInstance', + 'description' => '列出instance维度作业计算用量', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:GetMmsTask', - 'authLevel' => 'resource', + 'action' => 'odps:ListComputeMetricsByInstance', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'GetQuotaUsage', - 'description' => '获取Quota资源消耗信息', + 'apiName' => 'ListStoragePartitionsInfo', + 'description' => '获取分区存储明细', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:GetQuotaUsage', + 'action' => 'odps:ListStoragePartitionsInfo', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#nickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Storage', 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#project}'], ], ], ], [ - 'apiName' => 'ListRoles', - 'description' => '获取项目级角色列表', - 'operationType' => 'list', + 'apiName' => 'CreateComputeQuotaPlan', + 'description' => '创建计算Quota计划', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'odps:ListRoles', + 'action' => 'odps:CreateQuotaPlan', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'DeleteComputeQuotaPlan', - 'description' => '删除计算Quota计划', + 'apiName' => 'DeleteMmsJob', + 'description' => '删除数据迁移作业', 'operationType' => 'delete', 'ramAction' => [ - 'action' => 'odps:DeleteQuotaPlan', + 'action' => 'odps:DeleteMmsJob', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'GetComputeQuotaPlan', - 'description' => '获取计算Quota计划详细信息', - 'operationType' => 'get', + 'apiName' => 'RetryMmsTask', + 'description' => '重试数据迁移任务', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:GetQuotaPlan', + 'action' => 'odps:RetryMmsTask', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'UpdateUsersToRole', - 'description' => '项目角色添加或删除用户', + 'apiName' => 'UpdateQuotaSchedule', + 'description' => '更新Quota时间计划', 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:UpdateUsersToRole', + 'action' => 'odps:UpdateQuotaSchedule', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'ListQuotasPlans', - 'description' => '获取Quota计划列表', + 'apiName' => 'GetComputeQuotaSchedule', + 'description' => '获取计算Quota分时计划', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:ListQuotasPlans', + 'action' => 'odps:GetQuotaSchedule', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'ListJobMetric', - 'description' => '获取作业性能指标', - 'operationType' => 'list', + 'apiName' => 'UpdateProjectDefaultQuota', + 'description' => '修改项目默认计算Quota', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:ListJobMetric', + 'action' => 'odps:UpdateProjectDefaultQuota', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'ListStorageTablesInfo', - 'description' => '获取表存储明细', - 'operationType' => 'get', + 'apiName' => 'CreatePackage', + 'description' => '创建package', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'odps:ListStorageTablesInfo', + 'action' => 'odps:CreatePackage', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Storage', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#project}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'ListJobInfos', - 'description' => '查看作业列表', - 'operationType' => 'list', + 'apiName' => 'DeleteRole', + 'description' => '删除角色', + 'operationType' => 'delete', 'ramAction' => [ - 'action' => 'odps:ListJobInfos', + 'action' => 'odps:DeleteRole', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#projectName}'], ], ], ], [ - 'apiName' => 'RetryMmsJob', - 'description' => '重试数据迁移作业', - 'operationType' => 'update', + 'apiName' => 'GetStorageSummaryCompared', + 'description' => '存储趋势同比变化', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:RetryMmsJob', + 'action' => 'odps:GetStorageSummaryCompared', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'GetRoleAclOnObject', - 'description' => '获取角色对某对象的ACL授权', - 'operationType' => 'get', + 'apiName' => 'CreateProject', + 'description' => '创建项目', + 'operationType' => 'create', 'ramAction' => [ - 'action' => 'odps:GetRoleAclOnObject', + 'action' => 'odps:CreateProject', 'authLevel' => 'resource', - 'actionConditions' => [], + 'actionConditions' => [ + ['conditionKey' => 'odps:Encryption', 'validationType' => 'always'], + ], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:project/*'], ], ], ], [ - 'apiName' => 'StopMmsJob', - 'description' => '停止数据迁移作业', + 'apiName' => 'RetryMmsJob', + 'description' => '重试数据迁移作业', 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:StopMmsJob', + 'action' => 'odps:RetryMmsJob', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'CreateMmsJob', - 'description' => '创建数据迁移任务', - 'operationType' => 'create', + 'apiName' => 'GetMmsTimer', + 'description' => '获取数据迁移定时任务', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:CreateMmsJob', + 'action' => 'odps:GetMmsTimer', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'GetRoleAcl', - 'description' => '获取项目级角色ACL授权信息', - 'operationType' => 'get', + 'apiName' => 'GetJobResourceUsage', + 'description' => '获得作业执行者级别的资源使用列表', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:GetRoleAcl', + 'action' => 'odps:GetJobResourceUsage', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'ListProjectUsers', - 'description' => '获取项目用户列表', + 'apiName' => 'GetQuotaSchedule', + 'description' => '获取Quota时间计划信息', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:ListProjectUsers', + 'action' => 'odps:GetQuotaSchedule', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'GetComputeEffectivePlan', - 'description' => '获取当前生效的计算Quota计划', - 'operationType' => 'get', + 'apiName' => 'SumDailyBillsByItem', + 'description' => '按实例或者费用项逐日统计费用明细信息', + 'operationType' => 'none', 'ramAction' => [ - 'action' => 'odps:GetEffectivePlan', - 'authLevel' => 'resource', + 'action' => 'odps:SumDailyBillsByItem', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'QuotaPlan', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'ListTables', - 'description' => '获取表列表', + 'apiName' => 'ListMmsDbs', + 'description' => '获取数据源内的"数据库"列表', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:ListTables', + 'action' => 'odps:ListMmsDbs', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'GetStorageSizeSummary', - 'description' => '获取存储用量信息', - 'operationType' => 'get', + 'apiName' => 'UpdateProjectBasicMeta', + 'description' => '修改项目基本信息', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:GetStorageSizeSummary', + 'action' => 'odps:UpdateProjectBasicMeta', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'CreateRole', - 'description' => '创建项目级角色', - 'operationType' => 'create', + 'apiName' => 'QueryTunnelMetricDetail', + 'description' => 'Tunnel资源观测详情数据', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:CreateRole', + 'action' => 'odps:QueryTunnelMetricDetail', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#projectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Tunnel', 'arn' => 'acs:odps:{#regionId}:{#accountId}:tunnel/{#metric}'], ], ], ], [ - 'apiName' => 'QueryQuota', - 'description' => '获取指定一级Quota组信息', - 'operationType' => 'get', + 'apiName' => 'UpdateMmsDb', + 'description' => '更新MMS库的目的、状态', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:QueryQuota', + 'action' => 'odps:UpdateMmsDb', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'UpdateComputeQuotaPlan', + 'apiName' => 'UpdateQuotaPlan', 'description' => '更新Quota计划', 'operationType' => 'update', 'ramAction' => [ @@ -24906,580 +15870,369 @@ 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'SumStorageMetricsByDate', - 'description' => '存储用量汇总', - 'operationType' => '', + 'apiName' => 'GetMmsDb', + 'description' => '获取数据源内的某个库', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:SumStorageMetricsByDate', - 'authLevel' => 'operate', + 'action' => 'odps:GetMmsDb', + 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'DeleteMmsJob', - 'description' => '删除数据迁移作业', - 'operationType' => 'delete', + 'apiName' => 'GetTableInfo', + 'description' => '获取表信息', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:DeleteMmsJob', + 'action' => 'odps:GetTableInfo', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'GetRunningJobs', - 'description' => '获取运行态的作业列表', - 'operationType' => 'list', + 'apiName' => 'GetComputeEffectivePlan', + 'description' => '获取当前生效的计算Quota计划', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:GetRunningJobs', + 'action' => 'odps:GetEffectivePlan', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'QuotaPlan', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'ListStoragePartitionsInfo', - 'description' => '获取分区存储明细', - 'operationType' => 'get', + 'apiName' => 'UpdateTunnelQuotaTimer', + 'description' => '更新Quota(Tunnel)分时扩缩容配置', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:ListStoragePartitionsInfo', + 'action' => 'odps:UpdateQuotaTimers', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Storage', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#project}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'GetMmsDataSource', - 'description' => '获取单个数据源详情', - 'operationType' => 'get', + 'apiName' => 'SumStorageMetricsByDate', + 'description' => '存储用量汇总', + 'operationType' => 'none', 'ramAction' => [ - 'action' => 'odps:GetMmsDataSource', - 'authLevel' => 'resource', + 'action' => 'odps:SumStorageMetricsByDate', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'ListQuotas', - 'description' => '获取Quota列表', + 'apiName' => 'GetMmsTable', + 'description' => '获取MMA数据源内的某张表', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:ListQuotas', + 'action' => 'odps:GetMmsTable', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'DeleteProject', - 'description' => '删除项目', - 'operationType' => 'delete', + 'apiName' => 'ListJobInfos', + 'description' => '查看作业列表', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:DeleteProject', + 'action' => 'odps:ListJobInfos', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'UpdateComputeSubQuota', - 'description' => '更新计算Quota基础配置', - 'operationType' => 'update', + 'apiName' => 'GetTrustedProjects', + 'description' => '获取受信任项目列表', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:UpdateSubQuotas', + 'action' => 'odps:GetTrustedProjects', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'conditional', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'ListMmsDbs', - 'description' => '获取数据源内的"数据库"列表', - 'operationType' => 'list', + 'apiName' => 'ListQuotasPlans', + 'description' => '获取Quota计划列表', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:ListMmsDbs', + 'action' => 'odps:ListQuotasPlans', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], [ - 'apiName' => 'ListMmsPartitions', - 'description' => '列出数据源内的分区', + 'apiName' => 'ListMmsTimerLogs', + 'description' => '列出定时任务日志', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:ListMmsPartitions', + 'action' => 'odps:ListMmsTimerLogs', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'CreateProject', - 'description' => '创建项目', - 'operationType' => 'create', + 'apiName' => 'GetQuotaUsage', + 'description' => '获取Quota资源消耗信息', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:CreateProject', + 'action' => 'odps:GetQuotaUsage', 'authLevel' => 'resource', - 'actionConditions' => [ - [ - 'conditionKey' => 'odps:Encryption', - 'validationType' => 'always', - ], - ], + 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:project/*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#nickName}'], ], ], ], [ - 'apiName' => 'GetPackage', - 'description' => '获取Package信息', - 'operationType' => 'get', + 'apiName' => 'SumBills', + 'description' => '按实例或者计费项统计费用信息', + 'operationType' => 'none', 'ramAction' => [ - 'action' => 'odps:GetPackage', - 'authLevel' => 'resource', + 'action' => 'odps:SumBills', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'UpdateProjectBasicMeta', - 'description' => '修改项目基本信息', - 'operationType' => 'update', + 'apiName' => 'GetMmsFetchMetadataJob', + 'description' => '获取“同步元数据”任务详情', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:UpdateProjectBasicMeta', + 'action' => 'odps:GetMmsFetchMetadataJob', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'QueryTunnelMetricDetail', - 'description' => 'Tunnel资源观测详情数据', - 'operationType' => 'list', + 'apiName' => 'UpdateMmsTable', + 'description' => '更新MMS表目的、状态', + 'operationType' => 'update', 'ramAction' => [ - 'action' => 'odps:QueryTunnelMetricDetail', + 'action' => 'odps:UpdateMmsTable', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Tunnel', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:tunnel/{#metric}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'GetQuotaPlan', - 'description' => '获取Quota计划信息', + 'apiName' => 'GetPackage', + 'description' => '获取Package信息', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:GetQuotaPlan', + 'action' => 'odps:GetPackage', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'ListFunctions', - 'description' => '获取函数列表', + 'apiName' => 'ListRoles', + 'description' => '获取项目级角色列表', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:ListFunctions', + 'action' => 'odps:ListRoles', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'CreateMmsDataSource', - 'description' => '创建数据源', - 'operationType' => 'create', + 'apiName' => 'SumComputeMetricsByUsage', + 'description' => '统计扫描量计算类的使用量或者CU时计算类使用量', + 'operationType' => 'none', 'ramAction' => [ - 'action' => 'odps:CreateMmsDataSource', - 'authLevel' => 'resource', + 'action' => 'odps:SumComputeMetricsByUsage', + 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'CreatePackage', - 'description' => '创建package', - 'operationType' => 'create', + 'apiName' => 'ListMmsTaskLogs', + 'description' => '列出单个迁移任务的执行日志', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:CreatePackage', + 'action' => 'odps:ListMmsTaskLogs', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'ListMmsTaskLogs', - 'description' => '列出单个迁移任务的执行日志', + 'apiName' => 'ListUsers', + 'description' => '获取用户列表', 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:ListMmsTaskLogs', + 'action' => 'odps:ListUsers', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'CreateComputeQuotaPlan', - 'description' => '创建计算Quota计划', - 'operationType' => 'create', + 'apiName' => 'GetRolePolicy', + 'description' => '获取角色Policy授权内容', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:CreateQuotaPlan', + 'action' => 'odps:GetRolePolicy', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], ], ], ], [ - 'apiName' => 'KillJobs', - 'description' => '终止作业', - 'operationType' => 'update', + 'apiName' => 'DeleteMmsDataSource', + 'description' => '删除数据源', + 'operationType' => 'delete', 'ramAction' => [ - 'action' => 'odps:KillJobs', + 'action' => 'odps:DeleteMmsDataSource', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], ], ], ], [ - 'apiName' => 'ApplyComputeQuotaPlan', - 'description' => '立即生效Quota计划', - 'operationType' => 'update', + 'apiName' => 'GetStorageAmountSummary', + 'description' => '获取存储总量信息', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:ApplyComputeQuotaPlan', + 'action' => 'odps:GetStorageAmountSummary', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'GetTableInfo', - 'description' => '获取表信息', - 'operationType' => 'get', + 'apiName' => 'GetRunningJobs', + 'description' => '获取运行态的作业列表', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:GetTableInfo', + 'action' => 'odps:GetRunningJobs', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'GetMmsFetchMetadataJob', - 'description' => '获取“同步元数据”任务详情', - 'operationType' => 'get', + 'apiName' => 'ListTunnelQuotaTimer', + 'description' => '查看Quota(Tunnel)分时扩缩容配置', + 'operationType' => 'list', 'ramAction' => [ - 'action' => 'odps:GetMmsFetchMetadataJob', + 'action' => 'odps:ListQuotaTimers', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], [ - 'apiName' => 'UpdateTunnelQuotaTimer', - 'description' => '更新Quota(Tunnel)分时扩缩容配置', - 'operationType' => 'update', + 'apiName' => 'ListStorageTablesInfo', + 'description' => '获取表存储明细', + 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:UpdateQuotaTimers', + 'action' => 'odps:ListStorageTablesInfo', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => '全部资源', - 'arn' => '*', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Storage', 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#project}'], ], ], ], [ - 'apiName' => 'GetMmsPartition', - 'description' => '获取数据源内的某个分区', + 'apiName' => 'GetQuotaPlan', + 'description' => '获取Quota计划信息', 'operationType' => 'get', 'ramAction' => [ - 'action' => 'odps:GetMmsPartition', + 'action' => 'odps:GetQuotaPlan', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ - [ - 'validationType' => 'always', - 'product' => 'MaxCompute', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], + ['validationType' => 'always', 'product' => 'MaxCompute', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], ], ], ], ], 'resourceTypes' => [ - [ - 'validationType' => 'always', - 'resourceType' => 'project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quota/{#NickName}', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Storage', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/*', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Tunnel', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:tunnel/{#metric}', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/*', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'User', - 'arn' => 'acs:odps:*:{#accountId}:user/*', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Job', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:job/*', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Job', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:job/{#instanceId}', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quota/{#metric}', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Storage', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#metric}', - ], - [ - 'validationType' => 'conditional', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/*', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Storage', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#project}', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'QuotaPlan', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Quota', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/*', - ], - [ - 'validationType' => 'always', - 'resourceType' => 'Project', - 'arn' => 'acs:odps:{#regionId}:{#accountId}:project/*', - ], + ['validationType' => 'always', 'resourceType' => 'project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ['validationType' => 'always', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/{#sourceId}'], + ['validationType' => 'always', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}'], + ['validationType' => 'always', 'resourceType' => 'Storage', 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#metric}'], + ['validationType' => 'always', 'resourceType' => 'Job', 'arn' => 'acs:odps:{#regionId}:{#accountId}:job/{#instanceId}'], + ['validationType' => 'always', 'resourceType' => 'Storage', 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/*'], + ['validationType' => 'always', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], + ['validationType' => 'always', 'resourceType' => 'Tunnel', 'arn' => 'acs:odps:{#regionId}:{#accountId}:tunnel/{#metric}'], + ['validationType' => 'always', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:mmsdatasource/*'], + ['validationType' => 'always', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quota/{#metric}'], + ['validationType' => 'conditional', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:projects/*'], + ['validationType' => 'always', 'resourceType' => 'Job', 'arn' => 'acs:odps:{#regionId}:{#accountId}:job/*'], + ['validationType' => 'always', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/*'], + ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:odps:*:{#accountId}:instance/*'], + ['validationType' => 'always', 'resourceType' => 'Storage', 'arn' => 'acs:odps:{#regionId}:{#accountId}:storage/{#project}'], + ['validationType' => 'always', 'resourceType' => 'Project', 'arn' => 'acs:odps:{#regionId}:{#accountId}:project/*'], + ['validationType' => 'always', 'resourceType' => 'QuotaPlan', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}'], + ['validationType' => 'always', 'resourceType' => 'Quota', 'arn' => 'acs:odps:{#regionId}:{#accountId}:quota/{#NickName}'], + ['validationType' => 'always', 'resourceType' => 'User', 'arn' => 'acs:odps:*:{#accountId}:user/*'], ], ], ]; -- cgit v1.2.3