diff options
Diffstat (limited to 'data/paistudio/2022-01-12/api-docs.php')
| -rw-r--r-- | data/paistudio/2022-01-12/api-docs.php | 7227 |
1 files changed, 2228 insertions, 4999 deletions
diff --git a/data/paistudio/2022-01-12/api-docs.php b/data/paistudio/2022-01-12/api-docs.php index 44a8e1b..d51d413 100644 --- a/data/paistudio/2022-01-12/api-docs.php +++ b/data/paistudio/2022-01-12/api-docs.php @@ -1,32 +1,22 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'PaiStudio', - 'version' => '2022-01-12', - ], + 'info' => ['style' => 'ROA', 'product' => 'PaiStudio', 'version' => '2022-01-12'], 'components' => [ 'schemas' => [ 'ACS' => [ 'type' => 'object', 'properties' => [ - 'ACSQuotaId' => [ - 'type' => 'string', - ], + 'ACSQuotaId' => ['type' => 'string'], 'AssociatedProducts' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], 'Action' => [ 'type' => 'object', 'properties' => [ - 'ActionType' => [ - 'type' => 'string', - ], + 'ActionType' => ['type' => 'string'], ], ], 'AlgorithmSpec' => [ @@ -34,59 +24,37 @@ 'properties' => [ 'OutputChannels' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/Channel', - ], + 'items' => ['$ref' => '#/components/schemas/Channel'], ], 'HyperParameters' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/HyperParameterDefinition', - ], + 'items' => ['$ref' => '#/components/schemas/HyperParameterDefinition'], ], 'JobType' => [ 'type' => 'string', 'required' => true, - 'enum' => [ - 'TFJob', - 'PyTorchJob', - 'XGBoostJob', - 'ElasticBatchJob', - ], + 'enum' => ['TFJob', 'PyTorchJob', 'XGBoostJob', 'ElasticBatchJob'], ], 'Command' => [ 'type' => 'array', 'required' => true, - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'MetricDefinitions' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/MetricDefinition', - ], + 'items' => ['$ref' => '#/components/schemas/MetricDefinition'], ], 'InputChannels' => [ 'type' => 'array', 'required' => false, - 'items' => [ - '$ref' => '#/components/schemas/Channel', - ], - ], - 'SupportsDistributedTraining' => [ - 'type' => 'boolean', - ], - 'Image' => [ - 'type' => 'string', - 'required' => true, + 'items' => ['$ref' => '#/components/schemas/Channel'], ], + 'SupportsDistributedTraining' => ['type' => 'boolean'], + 'Image' => ['type' => 'string', 'required' => true], 'SupportedInstanceTypes' => [ 'type' => 'array', 'deprecated' => false, - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'ComputeResource' => [ 'type' => 'object', @@ -95,34 +63,22 @@ 'type' => 'object', 'required' => true, 'properties' => [ - 'Version' => [ - 'type' => 'string', - 'required' => true, - ], - 'Value' => [ - 'type' => 'string', - 'required' => true, - ], + 'Version' => ['type' => 'string', 'required' => true], + 'Value' => ['type' => 'string', 'required' => true], ], ], ], ], - 'CodeDir' => [ - '$ref' => '#/components/schemas/Location', - ], + 'CodeDir' => ['$ref' => '#/components/schemas/Location'], 'Customization' => [ 'type' => 'object', 'properties' => [ - 'CodeDir' => [ - 'type' => 'boolean', - ], + 'CodeDir' => ['type' => 'boolean'], ], ], 'ResourceRequirements' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/ConditionExpression', - ], + 'items' => ['$ref' => '#/components/schemas/ConditionExpression'], ], 'ProgressDefinitions' => [ 'type' => 'object', @@ -130,249 +86,131 @@ 'OverallProgress' => [ 'type' => 'object', 'properties' => [ - 'Description' => [ - 'type' => 'string', - ], - 'Regex' => [ - 'type' => 'string', - ], + 'Description' => ['type' => 'string'], + 'Regex' => ['type' => 'string'], ], ], 'RemainingTime' => [ 'type' => 'object', 'properties' => [ - 'Description' => [ - 'type' => 'string', - ], - 'Regex' => [ - 'type' => 'string', - ], + 'Description' => ['type' => 'string'], + 'Regex' => ['type' => 'string'], ], ], ], ], ], ], - 'AllocateStrategySpec' => [ + 'AllocatedHyperNodeDetail' => [ 'type' => 'object', 'properties' => [ - 'NodeSpecs' => [ - 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/NodeSpec', - ], - ], + 'HyperNodeName' => ['type' => 'string'], + 'AllocatedNodeNum' => ['type' => 'integer', 'format' => 'int64'], + 'TotalNodeNum' => ['type' => 'integer', 'format' => 'int64'], + 'EmptyNodeNum' => ['type' => 'integer', 'format' => 'int64'], ], ], 'AssignNodeSpec' => [ 'type' => 'object', 'properties' => [ - 'EnableAssignNode' => [ - 'type' => 'boolean', - ], - 'NodeNames' => [ - 'type' => 'string', - ], - 'AntiAffinityNodeNames' => [ - 'type' => 'string', - ], + 'EnableAssignNode' => ['type' => 'boolean'], + 'NodeNames' => ['type' => 'string'], + 'AntiAffinityNodeNames' => ['type' => 'string'], ], ], 'BindingPolicy' => [ 'type' => 'object', 'properties' => [ - 'NodeSpecCount' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'NodeSpecCount' => ['type' => 'integer', 'format' => 'int64'], 'IncludeNodes' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'ExcludeNodes' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], 'CacheInfo' => [ 'type' => 'object', 'properties' => [ - 'MountPoint' => [ - 'type' => 'string', - ], - 'Port' => [ - 'type' => 'string', - ], + 'MountPoint' => ['type' => 'string'], + 'Port' => ['type' => 'string'], ], ], 'CacheService' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'QuotaId' => [ - 'type' => 'string', - ], - 'TenantId' => [ - 'type' => 'string', - ], - 'SupportedClientQuotaIds' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'CreatedBy' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], + 'CacheServiceId' => ['type' => 'string'], + 'QuotaId' => ['type' => 'string'], + 'UserVpc' => ['$ref' => '#/components/schemas/UserVpc'], 'CacheInfos' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/CacheInfo', - ], - ], - 'CacheServiceId' => [ - 'type' => 'string', - ], - 'GmtCreated' => [ - 'type' => 'string', + 'items' => ['$ref' => '#/components/schemas/CacheInfo'], ], - 'UserVpc' => [ - '$ref' => '#/components/schemas/UserVpc', + 'SupportedClientQuotaIds' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], ], + 'TenantId' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'CreatedBy' => ['type' => 'string'], + 'GmtCreated' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'SupportRDMA' => ['type' => 'string'], + 'NetworkType' => ['type' => 'string'], + 'ClusterId' => ['type' => 'string'], + 'IsSharded' => ['type' => 'boolean'], ], ], 'CapacityLock' => [ 'type' => 'object', 'properties' => [ - 'id' => [ - 'type' => 'string', - ], - 'gmtCreated' => [ - 'type' => 'string', - ], - 'gmtModified' => [ - 'type' => 'string', - ], - 'lockProvider' => [ - 'type' => 'string', - ], - 'privatePoolId' => [ - 'type' => 'string', - ], - 'tenantId' => [ - 'type' => 'string', - ], - 'instanceType' => [ - 'type' => 'string', - ], - 'zoneId' => [ - 'type' => 'string', - ], - 'paymentType' => [ - 'type' => 'string', - ], - 'status' => [ - 'type' => 'string', - ], - 'lastSyncTime' => [ - 'type' => 'string', - ], - 'lastReconcileAttemptTime' => [ - 'type' => 'string', - ], - 'crsReservationId' => [ - 'type' => 'string', - ], - 'expireTime' => [ - 'type' => 'string', - ], - 'operator' => [ - 'type' => 'string', - ], - 'description' => [ - 'type' => 'string', - ], - 'requestedCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'lockedCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'usedCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'availableCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'id' => ['type' => 'string'], + 'gmtCreated' => ['type' => 'string'], + 'gmtModified' => ['type' => 'string'], + 'lockProvider' => ['type' => 'string'], + 'privatePoolId' => ['type' => 'string'], + 'tenantId' => ['type' => 'string'], + 'instanceType' => ['type' => 'string'], + 'zoneId' => ['type' => 'string'], + 'paymentType' => ['type' => 'string'], + 'status' => ['type' => 'string'], + 'lastSyncTime' => ['type' => 'string'], + 'lastReconcileAttemptTime' => ['type' => 'string'], + 'crsReservationId' => ['type' => 'string'], + 'expireTime' => ['type' => 'string'], + 'operator' => ['type' => 'string'], + 'description' => ['type' => 'string'], + 'requestedCount' => ['type' => 'integer', 'format' => 'int32'], + 'lockedCount' => ['type' => 'integer', 'format' => 'int32'], + 'usedCount' => ['type' => 'integer', 'format' => 'int32'], + 'availableCount' => ['type' => 'integer', 'format' => 'int32'], ], ], 'Channel' => [ 'type' => 'object', 'properties' => [ - 'Description' => [ - 'type' => 'string', - ], - 'Required' => [ - 'type' => 'boolean', - ], - 'Properties' => [ - 'type' => 'object', - ], - 'Name' => [ - 'type' => 'string', - 'required' => true, - ], + 'Description' => ['type' => 'string'], + 'Required' => ['type' => 'boolean'], + 'Properties' => ['type' => 'object'], + 'Name' => ['type' => 'string', 'required' => true], 'SupportedChannelTypes' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - ], - ], - ], - ], - 'ChannelProperty' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Value' => [ - 'type' => 'string', - 'required' => true, - ], - 'Name' => [ - 'type' => 'string', - 'required' => true, + 'items' => ['type' => 'string'], ], ], ], 'ClusterSpec' => [ 'type' => 'object', 'properties' => [ - 'ClusterType' => [ - 'type' => 'string', - ], - 'Image' => [ - 'type' => 'string', - ], + 'ClusterType' => ['type' => 'string'], + 'Image' => ['type' => 'string'], 'DataSources' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/DataSource', - ], + 'items' => ['$ref' => '#/components/schemas/DataSource'], ], ], ], @@ -381,166 +219,96 @@ 'properties' => [ 'OutputChannels' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/Channel', - ], + 'items' => ['$ref' => '#/components/schemas/Channel'], ], 'HyperParameters' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/HyperParameterDefinition', - ], - ], - 'JobType' => [ - 'type' => 'string', - 'required' => true, - ], - 'Command' => [ - 'type' => 'string', - 'required' => true, + 'items' => ['$ref' => '#/components/schemas/HyperParameterDefinition'], ], + 'JobType' => ['type' => 'string', 'required' => true], + 'Command' => ['type' => 'string', 'required' => true], 'MetricDefinitions' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/MetricDefinition', - ], + 'items' => ['$ref' => '#/components/schemas/MetricDefinition'], ], 'InputChannels' => [ 'type' => 'array', 'required' => false, - 'items' => [ - '$ref' => '#/components/schemas/Channel', - ], - ], - 'Image' => [ - 'type' => 'string', - 'required' => true, - ], - 'CodeDir' => [ - '$ref' => '#/components/schemas/Location', + 'items' => ['$ref' => '#/components/schemas/Channel'], ], + 'Image' => ['type' => 'string', 'required' => true], + 'CodeDir' => ['$ref' => '#/components/schemas/Location'], 'ResourceRequirements' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/ConditionExpression', - ], + 'items' => ['$ref' => '#/components/schemas/ConditionExpression'], ], ], ], 'ConditionExpression' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => true, - ], - 'Operator' => [ - 'type' => 'string', - 'required' => true, - ], + 'Key' => ['type' => 'string', 'required' => true], + 'Operator' => ['type' => 'string', 'required' => true], 'Values' => [ 'type' => 'array', 'required' => true, - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], 'DataSource' => [ 'type' => 'object', 'properties' => [ - 'DataSourceId' => [ - 'type' => 'string', - ], - 'MountPath' => [ - 'type' => 'string', - ], - 'Uri' => [ - 'type' => 'string', - ], + 'DataSourceId' => ['type' => 'string'], + 'MountPath' => ['type' => 'string'], + 'Uri' => ['type' => 'string'], ], ], 'EcsSpec' => [ 'type' => 'object', 'properties' => [ - 'InstanceType' => [ - 'type' => 'string', - ], - 'Cpu' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Gpu' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GpuType' => [ - 'type' => 'string', - ], - 'GpuTypeAlias' => [ - 'type' => 'string', - ], - 'Memory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'SupportRDMA' => [ - 'type' => 'boolean', - ], - 'EriQuantity' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'SupportSetNetworkCardIndex' => [ - 'type' => 'boolean', - ], - 'AcceleratorType' => [ - 'type' => 'string', - ], - 'PlannedCpu' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'PlannedMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ResourceType' => [ - 'type' => 'string', - ], - 'EcsImageId' => [ - 'type' => 'string', - ], - 'GpuGUSpec' => [ - 'type' => 'string', - ], - 'GpuMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'MachineModel' => [ - 'type' => 'string', - ], - 'SupportGPUShare' => [ - 'type' => 'boolean', - ], - 'NetworkMode' => [ - 'type' => 'string', - ], + 'InstanceType' => ['type' => 'string'], + 'Cpu' => ['type' => 'integer', 'format' => 'int32'], + 'Gpu' => ['type' => 'integer', 'format' => 'int32'], + 'GpuType' => ['type' => 'string'], + 'GpuTypeAlias' => ['type' => 'string'], + 'Memory' => ['type' => 'integer', 'format' => 'int32'], + 'SupportRDMA' => ['type' => 'boolean'], + 'EriQuantity' => ['type' => 'integer', 'format' => 'int32'], + 'SupportSetNetworkCardIndex' => ['type' => 'boolean'], + 'AcceleratorType' => ['type' => 'string'], + 'PlannedCpu' => ['type' => 'integer', 'format' => 'int32'], + 'PlannedMemory' => ['type' => 'integer', 'format' => 'int32'], + 'ResourceType' => ['type' => 'string'], + 'EcsImageId' => ['type' => 'string'], + 'GpuGUSpec' => ['type' => 'string'], + 'GpuMemory' => ['type' => 'integer', 'format' => 'int32'], + 'MachineModel' => ['type' => 'string'], + 'SupportGPUShare' => ['type' => 'boolean'], + 'NetworkMode' => ['type' => 'string'], ], ], 'EniCacheConfig' => [ 'type' => 'object', 'properties' => [ - 'Enabled' => [ - 'type' => 'boolean', - ], - 'CachePoolSize' => [ - 'type' => 'integer', - 'format' => 'int32', - 'maximum' => '255', - ], + 'Enabled' => ['type' => 'boolean'], + 'CachePoolSize' => ['type' => 'integer', 'format' => 'int32', 'maximum' => '255'], + ], + ], + 'Event' => [ + 'type' => 'object', + 'properties' => [ + 'ObjectId' => ['type' => 'string'], + 'TriggeredBy' => ['type' => 'string'], + 'TriggerUserId' => ['type' => 'string'], + 'EventId' => ['type' => 'string'], + 'EventType' => ['type' => 'string'], + 'ObjectType' => ['type' => 'string'], + 'TriggerTenantId' => ['type' => 'string'], + 'TriggerTime' => ['type' => 'string'], + 'IsTruncated' => ['type' => 'boolean'], + 'Content' => ['type' => 'string'], + 'Function' => ['type' => 'string'], ], ], 'Features' => [ @@ -549,9 +317,7 @@ 'Quota' => [ 'type' => 'object', 'properties' => [ - 'IsEnabled' => [ - 'type' => 'boolean', - ], + 'IsEnabled' => ['type' => 'boolean'], ], ], ], @@ -559,72 +325,36 @@ 'ForwardInfo' => [ 'type' => 'object', 'properties' => [ - 'NatGatewayId' => [ - 'type' => 'string', - ], - 'EipAllocationId' => [ - 'type' => 'string', - ], + 'NatGatewayId' => ['type' => 'string'], + 'EipAllocationId' => ['type' => 'string'], ], ], 'GPUInfo' => [ 'type' => 'object', 'properties' => [ - 'count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'type' => [ - 'type' => 'string', - ], + 'count' => ['type' => 'integer', 'format' => 'int64'], + 'type' => ['type' => 'string'], ], ], 'GPUMetric' => [ 'type' => 'object', 'properties' => [ - 'Index' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Model' => [ - 'type' => 'string', - ], - 'UsageRate' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'Status' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'Index' => ['type' => 'integer', 'format' => 'int64'], + 'Model' => ['type' => 'string'], + 'UsageRate' => ['type' => 'number', 'format' => 'float'], + 'Status' => ['type' => 'integer', 'format' => 'int64'], ], ], 'HyperParameterDefinition' => [ 'type' => 'object', 'properties' => [ - 'DefaultValue' => [ - 'type' => 'string', - ], - 'Type' => [ - 'type' => 'string', - 'required' => true, - ], - 'Description' => [ - 'type' => 'string', - ], - 'Required' => [ - 'type' => 'boolean', - ], - 'Name' => [ - 'type' => 'string', - 'required' => true, - ], - 'Range' => [ - '$ref' => '#/components/schemas/HyperParameterRange', - ], - 'DisplayName' => [ - 'type' => 'string', - ], + 'DefaultValue' => ['type' => 'string'], + 'Type' => ['type' => 'string', 'required' => true], + 'Description' => ['type' => 'string'], + 'Required' => ['type' => 'boolean'], + 'Name' => ['type' => 'string', 'required' => true], + 'Range' => ['$ref' => '#/components/schemas/HyperParameterRange'], + 'DisplayName' => ['type' => 'string'], ], ], 'HyperParameterRange' => [ @@ -633,481 +363,200 @@ 'Enum' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - ], - ], - 'MinLength' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'MaxLength' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Minimum' => [ - 'type' => 'string', - ], - 'Maximum' => [ - 'type' => 'string', - ], - 'ExclusiveMinimum' => [ - 'type' => 'boolean', - ], - 'ExclusiveMaximum' => [ - 'type' => 'boolean', - ], - 'Pattern' => [ - 'type' => 'string', + 'items' => ['type' => 'string'], ], + 'MinLength' => ['type' => 'integer', 'format' => 'int64'], + 'MaxLength' => ['type' => 'integer', 'format' => 'int64'], + 'Minimum' => ['type' => 'string'], + 'Maximum' => ['type' => 'string'], + 'ExclusiveMinimum' => ['type' => 'boolean'], + 'ExclusiveMaximum' => ['type' => 'boolean'], + 'Pattern' => ['type' => 'string'], ], ], 'JobSettings' => [ 'type' => 'object', 'properties' => [ - 'BusinessUserId' => [ - 'type' => 'string', - ], - 'Caller' => [ - 'type' => 'string', - ], + 'BusinessUserId' => ['type' => 'string'], + 'Caller' => ['type' => 'string'], 'Tags' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], - ], - 'PipelineId' => [ - 'type' => 'string', - ], - 'EnableTideResource' => [ - 'type' => 'boolean', - ], - 'EnableErrorMonitoringInAIMaster' => [ - 'type' => 'boolean', - ], - 'ErrorMonitoringArgs' => [ - 'type' => 'string', - ], - 'EnableRDMA' => [ - 'type' => 'boolean', - ], - 'EnableOssAppend' => [ - 'type' => 'boolean', - ], - 'OversoldType' => [ - 'type' => 'string', - ], - 'AdvancedSettings' => [ - 'type' => 'object', - ], - 'Driver' => [ - 'type' => 'string', - ], - 'EnableSanityCheck' => [ - 'type' => 'boolean', - ], - 'SanityCheckArgs' => [ - 'type' => 'string', - ], - 'JobReservedMinutes' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'additionalProperties' => ['type' => 'string'], + ], + 'PipelineId' => ['type' => 'string'], + 'EnableTideResource' => ['type' => 'boolean'], + 'EnableErrorMonitoringInAIMaster' => ['type' => 'boolean'], + 'ErrorMonitoringArgs' => ['type' => 'string'], + 'EnableRDMA' => ['type' => 'boolean'], + 'EnableOssAppend' => ['type' => 'boolean'], + 'OversoldType' => ['type' => 'string'], + 'AdvancedSettings' => ['type' => 'object'], + 'Driver' => ['type' => 'string'], + 'EnableSanityCheck' => ['type' => 'boolean'], + 'SanityCheckArgs' => ['type' => 'string'], + 'JobReservedMinutes' => ['type' => 'integer', 'format' => 'int32'], 'JobReservedPolicy' => [ 'type' => 'string', - 'enum' => [ - 'Always', - 'OnFailure', - 'OnSucceed', - ], + 'enum' => ['Always', 'OnFailure', 'OnSucceed'], ], ], ], 'JobViewMetric' => [ 'type' => 'object', 'properties' => [ - 'ResourceGroupID' => [ - 'type' => 'string', - ], - 'TotalCPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'CPUUsageRate' => [ - 'type' => 'string', - ], - 'GPUUsageRate' => [ - 'type' => 'string', - ], - 'TotalMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TotalGPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'MemoryUsageRate' => [ - 'type' => 'string', - ], - 'RequestCPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'RequestGPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'RequestMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'NetworkInputRate' => [ - 'type' => 'string', - ], - 'NetworkOutputRate' => [ - 'type' => 'string', - ], - 'DiskReadRate' => [ - 'type' => 'string', - ], - 'DiskWriteRate' => [ - 'type' => 'string', - ], - 'JobType' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], + 'ResourceGroupID' => ['type' => 'string'], + 'TotalCPU' => ['type' => 'integer', 'format' => 'int32'], + 'CPUUsageRate' => ['type' => 'string'], + 'GPUUsageRate' => ['type' => 'string'], + 'TotalMemory' => ['type' => 'integer', 'format' => 'int64'], + 'TotalGPU' => ['type' => 'integer', 'format' => 'int32'], + 'MemoryUsageRate' => ['type' => 'string'], + 'RequestCPU' => ['type' => 'integer', 'format' => 'int32'], + 'RequestGPU' => ['type' => 'integer', 'format' => 'int32'], + 'RequestMemory' => ['type' => 'integer', 'format' => 'int64'], + 'NetworkInputRate' => ['type' => 'string'], + 'NetworkOutputRate' => ['type' => 'string'], + 'DiskReadRate' => ['type' => 'string'], + 'DiskWriteRate' => ['type' => 'string'], + 'JobType' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], 'NodeNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'JobId' => [ - 'type' => 'string', + 'items' => ['type' => 'string'], ], + 'JobId' => ['type' => 'string'], ], ], 'Label' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], + 'Value' => ['type' => 'string'], ], ], 'Location' => [ 'type' => 'object', 'properties' => [ - 'LocationType' => [ - 'type' => 'string', - ], - 'LocationValue' => [ - 'type' => 'object', - ], + 'LocationType' => ['type' => 'string'], + 'LocationValue' => ['type' => 'object'], ], ], 'MachineGroup' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'EcsCount' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'GmtStartedTime' => [ - 'type' => 'string', - ], - 'ResourceGroupID' => [ - 'type' => 'string', - ], - 'GmtCreatedTime' => [ - 'type' => 'string', - ], - 'CreatorID' => [ - 'type' => 'string', - ], - 'ReasonMessage' => [ - 'type' => 'string', - ], - 'PaymentDurationUnit' => [ - 'type' => 'string', - ], - 'EcsSpec' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'EcsCount' => ['type' => 'integer', 'format' => 'int64'], + 'GmtStartedTime' => ['type' => 'string'], + 'ResourceGroupID' => ['type' => 'string'], + 'GmtCreatedTime' => ['type' => 'string'], + 'CreatorID' => ['type' => 'string'], + 'ReasonMessage' => ['type' => 'string'], + 'PaymentDurationUnit' => ['type' => 'string'], + 'EcsSpec' => ['type' => 'string'], 'SupportedDrivers' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'PaymentDuration' => [ - 'type' => 'string', - ], - 'ReasonCode' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'DiskCapacity' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'GmtExpiredTime' => [ - 'type' => 'string', - ], - 'OrderInstanceId' => [ - 'type' => 'string', - ], - 'DefaultDriver' => [ - 'type' => 'string', - ], - 'MachineGroupID' => [ - 'type' => 'string', - ], - 'PaymentType' => [ - 'type' => 'string', - ], - 'DiskPL' => [ - 'type' => 'string', - ], - 'Cpu' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Gpu' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'GpuMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'GpuType' => [ - 'type' => 'string', - ], - 'Memory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'ResourceType' => [ - 'type' => 'string', - ], - 'AllocatableCpu' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'AllocatableMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'SystemReservedCpu' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'SystemReservedMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'items' => ['type' => 'string'], + ], + 'PaymentDuration' => ['type' => 'string'], + 'ReasonCode' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'DiskCapacity' => ['type' => 'integer', 'format' => 'int64'], + 'GmtExpiredTime' => ['type' => 'string'], + 'OrderInstanceId' => ['type' => 'string'], + 'DefaultDriver' => ['type' => 'string'], + 'MachineGroupID' => ['type' => 'string'], + 'PaymentType' => ['type' => 'string'], + 'DiskPL' => ['type' => 'string'], + 'Cpu' => ['type' => 'integer', 'format' => 'int64'], + 'Gpu' => ['type' => 'integer', 'format' => 'int64'], + 'GpuMemory' => ['type' => 'integer', 'format' => 'int64'], + 'GpuType' => ['type' => 'string'], + 'Memory' => ['type' => 'integer', 'format' => 'int64'], + 'ResourceType' => ['type' => 'string'], + 'AllocatableCpu' => ['type' => 'integer', 'format' => 'int64'], + 'AllocatableMemory' => ['type' => 'integer', 'format' => 'int64'], + 'SystemReservedCpu' => ['type' => 'integer', 'format' => 'int64'], + 'SystemReservedMemory' => ['type' => 'integer', 'format' => 'int64'], ], ], 'Metric' => [ 'type' => 'object', 'properties' => [ - 'Time' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Value' => [ - 'type' => 'string', - ], + 'Time' => ['type' => 'integer', 'format' => 'int64'], + 'Value' => ['type' => 'string'], ], ], 'MetricDefinition' => [ 'type' => 'object', 'properties' => [ - 'Description' => [ - 'type' => 'string', - ], - 'Regex' => [ - 'type' => 'string', - 'required' => true, - ], - 'Name' => [ - 'type' => 'string', - 'required' => true, - ], + 'Description' => ['type' => 'string'], + 'Regex' => ['type' => 'string', 'required' => true], + 'Name' => ['type' => 'string', 'required' => true], ], ], 'Node' => [ 'type' => 'object', 'properties' => [ - 'CreatorId' => [ - 'type' => 'string', - ], - 'NodeName' => [ - 'type' => 'string', - ], - 'NodeType' => [ - 'type' => 'string', - ], - 'AcceleratorType' => [ - 'type' => 'string', - ], - 'CPU' => [ - 'type' => 'string', - ], - 'Memory' => [ - 'type' => 'string', - ], - 'GPU' => [ - 'type' => 'string', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'GPUMemory' => [ - 'type' => 'string', - ], - 'NodeStatus' => [ - 'type' => 'string', - ], - 'ReasonCode' => [ - 'type' => 'string', - ], - 'ReasonMessage' => [ - 'type' => 'string', - ], - 'OrderStatus' => [ - 'type' => 'string', - ], - 'ResourceGroupId' => [ - 'type' => 'string', - ], - 'ResourceGroupName' => [ - 'type' => 'string', - ], - 'MachineGroupId' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'GmtExpiredTime' => [ - 'type' => 'string', - ], - 'IsBound' => [ - 'type' => 'boolean', - ], + 'CreatorId' => ['type' => 'string'], + 'NodeName' => ['type' => 'string'], + 'NodeType' => ['type' => 'string'], + 'AcceleratorType' => ['type' => 'string'], + 'CPU' => ['type' => 'string'], + 'Memory' => ['type' => 'string'], + 'GPU' => ['type' => 'string'], + 'GPUType' => ['type' => 'string'], + 'GPUMemory' => ['type' => 'string'], + 'NodeStatus' => ['type' => 'string'], + 'ReasonCode' => ['type' => 'string'], + 'ReasonMessage' => ['type' => 'string'], + 'OrderStatus' => ['type' => 'string'], + 'ResourceGroupId' => ['type' => 'string'], + 'ResourceGroupName' => ['type' => 'string'], + 'MachineGroupId' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string', 'deprecated' => true], + 'GmtCreatedTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'GmtExpiredTime' => ['type' => 'string'], + 'IsBound' => ['type' => 'boolean'], 'BoundQuotas' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/QuotaIdName', - ], - ], - 'RequestCPU' => [ - 'type' => 'string', - ], - 'RequestMemory' => [ - 'type' => 'string', - ], - 'RequestGPU' => [ - 'type' => 'string', - ], - 'LimitCPU' => [ - 'type' => 'string', - ], - 'LimitMemory' => [ - 'type' => 'string', - ], - 'LimitGPU' => [ - 'type' => 'string', - ], - 'PodNum' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'WorkloadNum' => [ - 'type' => 'integer', - 'format' => 'int64', + 'items' => ['$ref' => '#/components/schemas/QuotaIdName'], ], + 'RequestCPU' => ['type' => 'string'], + 'RequestMemory' => ['type' => 'string'], + 'RequestGPU' => ['type' => 'string'], + 'LimitCPU' => ['type' => 'string'], + 'LimitMemory' => ['type' => 'string'], + 'LimitGPU' => ['type' => 'string'], + 'PodNum' => ['type' => 'integer', 'format' => 'int64'], + 'WorkloadNum' => ['type' => 'integer', 'format' => 'int64'], 'Users' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/UserInfo', - ], - ], - 'HyperZone' => [ - 'type' => 'string', - ], - 'AvailabilityZone' => [ - 'type' => 'string', - ], - 'AllocatableCPU' => [ - 'type' => 'string', - ], - 'AllocatableMemory' => [ - 'type' => 'string', - ], - 'SystemReservedCPU' => [ - 'type' => 'string', - ], - 'SystemReservedMemory' => [ - 'type' => 'string', - ], - 'AncestorQuotaWorkloadNum' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'SelfQuotaWorkloadNum' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'DescendantQuotaWorkloadNum' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'DiskPL' => [ - 'type' => 'string', - ], - 'DiskCapacity' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'items' => ['$ref' => '#/components/schemas/UserInfo'], + ], + 'HyperZone' => ['type' => 'string'], + 'AvailabilityZone' => ['type' => 'string'], + 'AllocatableCPU' => ['type' => 'string'], + 'AllocatableMemory' => ['type' => 'string'], + 'SystemReservedCPU' => ['type' => 'string'], + 'SystemReservedMemory' => ['type' => 'string'], + 'AncestorQuotaWorkloadNum' => ['type' => 'integer', 'format' => 'int64'], + 'SelfQuotaWorkloadNum' => ['type' => 'integer', 'format' => 'int64'], + 'DescendantQuotaWorkloadNum' => ['type' => 'integer', 'format' => 'int64'], + 'DiskPL' => ['type' => 'string'], + 'DiskCapacity' => ['type' => 'integer', 'format' => 'int64'], 'SubNodes' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], 'NodeCordonParameters' => [ 'type' => 'object', 'properties' => [ - 'QuotaId' => [ - 'type' => 'string', - ], - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Comment' => [ - 'type' => 'string', - ], + 'QuotaId' => ['type' => 'string'], + 'WorkspaceId' => ['type' => 'string'], + 'Comment' => ['type' => 'string'], ], ], 'NodeDrainParameters' => [ @@ -1115,227 +564,118 @@ 'properties' => [ 'PodNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'PodFromSubProducts' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], + 'Force' => ['type' => 'boolean'], ], ], 'NodeGPUMetric' => [ 'type' => 'object', 'properties' => [ - 'NodeId' => [ - 'type' => 'string', - ], - 'NodeType' => [ - 'type' => 'string', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'GPUCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'AcceleratorType' => [ - 'type' => 'string', - ], - 'TotalMemory' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'UsedMemory' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'MemoryUtil' => [ - 'type' => 'number', - 'format' => 'float', - ], + 'NodeId' => ['type' => 'string'], + 'NodeType' => ['type' => 'string'], + 'GPUType' => ['type' => 'string'], + 'GPUCount' => ['type' => 'integer', 'format' => 'int32'], + 'AcceleratorType' => ['type' => 'string'], + 'TotalMemory' => ['type' => 'number', 'format' => 'float'], + 'UsedMemory' => ['type' => 'number', 'format' => 'float'], + 'MemoryUtil' => ['type' => 'number', 'format' => 'float'], 'GPUMetrics' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/GPUMetric', - ], + 'items' => ['$ref' => '#/components/schemas/GPUMetric'], ], ], ], 'NodeMetric' => [ 'type' => 'object', 'properties' => [ - 'NodeID' => [ - 'type' => 'string', - ], + 'NodeID' => ['type' => 'string'], 'Metrics' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/Metric', - ], - ], - 'GPUType' => [ - 'type' => 'string', + 'items' => ['$ref' => '#/components/schemas/Metric'], ], + 'GPUType' => ['type' => 'string'], ], ], 'NodeOperationParameters' => [ 'type' => 'object', 'properties' => [ - 'CordonParameters' => [ - '$ref' => '#/components/schemas/NodeCordonParameters', - ], - 'UncordonParameters' => [ - '$ref' => '#/components/schemas/NodeUncordonParameters', - ], - 'DrainParameters' => [ - '$ref' => '#/components/schemas/NodeDrainParameters', - ], + 'CordonParameters' => ['$ref' => '#/components/schemas/NodeCordonParameters'], + 'UncordonParameters' => ['$ref' => '#/components/schemas/NodeUncordonParameters'], + 'DrainParameters' => ['$ref' => '#/components/schemas/NodeDrainParameters'], ], ], 'NodeOperationResult' => [ 'type' => 'object', 'properties' => [ - 'NodeName' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], + 'NodeName' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'Message' => ['type' => 'string'], ], ], 'NodePodInfo' => [ 'type' => 'object', 'properties' => [ - 'PodName' => [ - 'type' => 'string', - 'required' => false, - ], - 'Phase' => [ - 'type' => 'string', - 'required' => false, - ], - 'PodNamespace' => [ - 'type' => 'string', - 'required' => false, - ], - 'PodIP' => [ - 'type' => 'string', - ], - 'ResourceSpec' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'WorkloadType' => [ - 'type' => 'string', - ], - 'WorkloadId' => [ - 'type' => 'string', - ], + 'PodName' => ['type' => 'string', 'required' => false], + 'Phase' => ['type' => 'string', 'required' => false], + 'PodNamespace' => ['type' => 'string', 'required' => false], + 'PodIP' => ['type' => 'string'], + 'ResourceSpec' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'WorkloadType' => ['type' => 'string'], + 'WorkloadId' => ['type' => 'string'], ], ], 'NodeSnapshot' => [ 'type' => 'object', 'properties' => [ - 'NodeName' => [ - 'type' => 'string', - ], - 'RequestCPU' => [ - 'type' => 'string', - ], - 'RequestMemory' => [ - 'type' => 'string', - ], - 'RequestGPU' => [ - 'type' => 'string', - ], + 'NodeName' => ['type' => 'string'], + 'RequestCPU' => ['type' => 'string'], + 'RequestMemory' => ['type' => 'string'], + 'RequestGPU' => ['type' => 'string'], 'Workloads' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'WorkloadId' => [ - 'type' => 'string', - ], - 'WorkloadType' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], + 'WorkloadId' => ['type' => 'string'], + 'WorkloadType' => ['type' => 'string'], + 'Name' => ['type' => 'string'], ], ], ], - 'WorkloadNum' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'AncestorQuotaWorkloadNum' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'SelfQuotaWorkloadNum' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'DescendantQuotaWorkloadNum' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'WorkloadNum' => ['type' => 'integer', 'format' => 'int32'], + 'AncestorQuotaWorkloadNum' => ['type' => 'integer', 'format' => 'int32'], + 'SelfQuotaWorkloadNum' => ['type' => 'integer', 'format' => 'int32'], + 'DescendantQuotaWorkloadNum' => ['type' => 'integer', 'format' => 'int32'], ], ], 'NodeSpec' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'Count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'BindingPolicy' => [ - '$ref' => '#/components/schemas/BindingPolicy', - ], - 'HyperType' => [ - 'type' => 'string', - ], + 'Type' => ['type' => 'string'], + 'Count' => ['type' => 'integer', 'format' => 'int64'], + 'BindingPolicy' => ['$ref' => '#/components/schemas/BindingPolicy'], + 'HyperType' => ['type' => 'string'], ], ], 'NodeStatistics' => [ 'type' => 'object', 'properties' => [ - 'ActualMinResources' => [ - '$ref' => '#/components/schemas/StatisticsResources', - ], - 'SchedulableResources' => [ - '$ref' => '#/components/schemas/StatisticsResources', - ], - 'IdleResources' => [ - '$ref' => '#/components/schemas/StatisticsResources', - ], - 'SystemReservedResources' => [ - '$ref' => '#/components/schemas/StatisticsResources', - ], + 'ActualMinResources' => ['$ref' => '#/components/schemas/StatisticsResources'], + 'SchedulableResources' => ['$ref' => '#/components/schemas/StatisticsResources'], + 'IdleResources' => ['$ref' => '#/components/schemas/StatisticsResources'], + 'SystemReservedResources' => ['$ref' => '#/components/schemas/StatisticsResources'], 'HyperNodeDetails' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'IdleNum' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'IdleNum' => ['type' => 'integer', 'format' => 'int64'], + 'Count' => ['type' => 'integer', 'format' => 'int64'], ], ], ], @@ -1344,14 +684,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'IdleNum' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'IdleNum' => ['type' => 'integer', 'format' => 'int64'], + 'Count' => ['type' => 'integer', 'format' => 'int64'], ], ], ], @@ -1360,560 +694,264 @@ 'NodeType' => [ 'type' => 'object', 'properties' => [ - 'NodeType' => [ - 'type' => 'string', - ], - 'AcceleratorType' => [ - 'type' => 'string', - ], - 'CPU' => [ - 'type' => 'string', - ], - 'Memory' => [ - 'type' => 'string', - ], - 'GPU' => [ - 'type' => 'string', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'GPUMemory' => [ - 'type' => 'string', - ], - 'AllocatableCPU' => [ - 'type' => 'string', - ], - 'AllocatableMemory' => [ - 'type' => 'string', - ], - 'SystemReservedCPU' => [ - 'type' => 'string', - ], - 'SystemReservedMemory' => [ - 'type' => 'string', - ], + 'NodeType' => ['type' => 'string'], + 'AcceleratorType' => ['type' => 'string'], + 'CPU' => ['type' => 'string'], + 'Memory' => ['type' => 'string'], + 'GPU' => ['type' => 'string'], + 'GPUType' => ['type' => 'string'], + 'GPUMemory' => ['type' => 'string'], + 'AllocatableCPU' => ['type' => 'string'], + 'AllocatableMemory' => ['type' => 'string'], + 'SystemReservedCPU' => ['type' => 'string'], + 'SystemReservedMemory' => ['type' => 'string'], ], ], 'NodeTypeStatistic' => [ 'type' => 'object', 'properties' => [ - 'NodeType' => [ - 'type' => 'string', - ], - 'TotalCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'CanBeBoundCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'NodeType' => ['type' => 'string'], + 'TotalCount' => ['type' => 'integer', 'format' => 'int32'], + 'CanBeBoundCount' => ['type' => 'integer', 'format' => 'int32'], ], ], 'NodeUncordonParameters' => [ 'type' => 'object', 'properties' => [ - 'QuotaId' => [ - 'type' => 'string', - ], - 'WorkspaceId' => [ - 'type' => 'string', - ], + 'QuotaId' => ['type' => 'string'], + 'WorkspaceId' => ['type' => 'string'], ], ], 'NodeViewMetric' => [ 'type' => 'object', 'properties' => [ - 'NodeID' => [ - 'type' => 'string', - ], - 'NodeType' => [ - 'type' => 'string', - ], - 'MachineGroupID' => [ - 'type' => 'string', - ], - 'CreatedTime' => [ - 'type' => 'string', - ], - 'RequestCPU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'RequestMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'RequestGPU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'NetworkInputRate' => [ - 'type' => 'string', - ], - 'NetworkOutputRate' => [ - 'type' => 'string', - ], - 'DiskReadRate' => [ - 'type' => 'string', - ], - 'DiskWriteRate' => [ - 'type' => 'string', - ], - 'TotalCPU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TotalGPU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TotalMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'UserNumber' => [ - 'type' => 'string', - ], + 'NodeID' => ['type' => 'string'], + 'NodeType' => ['type' => 'string'], + 'MachineGroupID' => ['type' => 'string'], + 'CreatedTime' => ['type' => 'string'], + 'RequestCPU' => ['type' => 'integer', 'format' => 'int64'], + 'RequestMemory' => ['type' => 'integer', 'format' => 'int64'], + 'RequestGPU' => ['type' => 'integer', 'format' => 'int64'], + 'NetworkInputRate' => ['type' => 'string'], + 'NetworkOutputRate' => ['type' => 'string'], + 'DiskReadRate' => ['type' => 'string'], + 'DiskWriteRate' => ['type' => 'string'], + 'TotalCPU' => ['type' => 'integer', 'format' => 'int64'], + 'TotalGPU' => ['type' => 'integer', 'format' => 'int64'], + 'TotalMemory' => ['type' => 'integer', 'format' => 'int64'], + 'GPUType' => ['type' => 'string'], + 'UserNumber' => ['type' => 'string'], 'UserIDs' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'CPUUsageRate' => [ - 'type' => 'string', - ], - 'MemoryUsageRate' => [ - 'type' => 'string', - ], - 'NodeStatus' => [ - 'type' => 'string', - ], - 'TotalTasks' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TaskIdMap' => [ - 'type' => 'object', + 'items' => ['type' => 'string'], ], + 'CPUUsageRate' => ['type' => 'string'], + 'MemoryUsageRate' => ['type' => 'string'], + 'NodeStatus' => ['type' => 'string'], + 'TotalTasks' => ['type' => 'integer', 'format' => 'int64'], + 'TaskIdMap' => ['type' => 'object'], ], ], 'OversoldUsageConfig' => [ 'type' => 'object', 'properties' => [ - 'DisabledBy' => [ - 'type' => 'string', - ], - 'Disabled' => [ - 'type' => 'boolean', - ], + 'DisabledBy' => ['type' => 'string'], + 'Disabled' => ['type' => 'boolean'], ], ], 'Permission' => [ 'type' => 'object', 'properties' => [ - 'ResourceType' => [ - 'type' => 'string', - ], - 'IsEnabled' => [ - 'type' => 'boolean', - ], + 'ResourceType' => ['type' => 'string'], + 'IsEnabled' => ['type' => 'boolean'], ], ], 'QueueInfo' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'QuotaId' => [ - 'type' => 'string', - ], - 'UserName' => [ - 'type' => 'string', - ], - 'WorkloadId' => [ - 'type' => 'string', - ], - 'Position' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'GmtEnqueuedTime' => [ - 'type' => 'string', - ], - 'Priority' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'GmtCreatedTime' => [ - 'type' => 'string', - ], - 'WorkloadType' => [ - 'type' => 'string', - ], - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Resource' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'Code' => [ - 'type' => 'string', - ], - 'Reason' => [ - 'type' => 'string', - ], - 'UseOversoldResource' => [ - 'type' => 'boolean', - ], - 'Name' => [ - 'type' => 'string', - ], - 'WorkloadStatus' => [ - 'type' => 'string', - ], - 'WorkloadName' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], - 'GmtPositionModifiedTime' => [ - 'type' => 'string', - ], - 'CodeType' => [ - 'type' => 'string', - ], - 'GmtDequeuedTime' => [ - 'type' => 'string', - ], - 'WorkspaceName' => [ - 'type' => 'string', - ], - 'QueueStrategy' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'QuotaId' => ['type' => 'string'], + 'UserName' => ['type' => 'string'], + 'WorkloadId' => ['type' => 'string'], + 'Position' => ['type' => 'integer', 'format' => 'int64'], + 'GmtEnqueuedTime' => ['type' => 'string'], + 'Priority' => ['type' => 'integer', 'format' => 'int64'], + 'GmtCreatedTime' => ['type' => 'string'], + 'WorkloadType' => ['type' => 'string'], + 'WorkspaceId' => ['type' => 'string'], + 'Resource' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'Code' => ['type' => 'string'], + 'Reason' => ['type' => 'string'], + 'UseOversoldResource' => ['type' => 'boolean'], + 'Name' => ['type' => 'string'], + 'WorkloadStatus' => ['type' => 'string'], + 'WorkloadName' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'GmtPositionModifiedTime' => ['type' => 'string'], + 'CodeType' => ['type' => 'string'], + 'GmtDequeuedTime' => ['type' => 'string'], + 'WorkspaceName' => ['type' => 'string'], + 'QueueStrategy' => ['type' => 'string'], + ], + ], + 'QueueMeta' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => ['type' => 'string'], + 'QuotaId' => ['type' => 'string'], + 'Position' => ['type' => 'string'], + 'GmtEnqueuedTime' => ['type' => 'string'], + 'GmtPositionModifiedTime' => ['type' => 'string'], + 'GmtDequeuedTime' => ['type' => 'string'], + 'QueueStrategy' => ['type' => 'string'], + 'Resource' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'ScheduledResource' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'UseOversoldResource' => ['type' => 'boolean'], ], ], 'Quota' => [ 'type' => 'object', 'properties' => [ - 'QuotaId' => [ - 'type' => 'string', - ], - 'QuotaName' => [ - 'type' => 'string', - ], - 'ResourceType' => [ - 'type' => 'string', - ], - 'ParentQuotaId' => [ - 'type' => 'string', - ], + 'QuotaId' => ['type' => 'string'], + 'QuotaName' => ['type' => 'string'], + 'ResourceType' => ['type' => 'string'], + 'ParentQuotaId' => ['type' => 'string'], 'ResourceGroupIds' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'AllocateStrategy' => [ - 'type' => 'string', - ], - 'Min' => [ - '$ref' => '#/components/schemas/ResourceSpec', - ], - 'Description' => [ - 'type' => 'string', + 'items' => ['type' => 'string'], ], + 'AllocateStrategy' => ['type' => 'string'], + 'Min' => ['$ref' => '#/components/schemas/ResourceSpec'], + 'Description' => ['type' => 'string'], 'Labels' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/Label', - ], - ], - 'CreatorId' => [ - 'type' => 'string', - ], - 'LatestOperationId' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'ReasonCode' => [ - 'type' => 'string', - ], - 'ReasonMessage' => [ - 'type' => 'string', - ], - 'GmtCreatedTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'QuotaDetails' => [ - '$ref' => '#/components/schemas/QuotaDetails', - ], - 'QuotaConfig' => [ - '$ref' => '#/components/schemas/QuotaConfig', - ], + 'items' => ['$ref' => '#/components/schemas/Label'], + ], + 'CreatorId' => ['type' => 'string'], + 'LatestOperationId' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'ReasonCode' => ['type' => 'string'], + 'ReasonMessage' => ['type' => 'string'], + 'GmtCreatedTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'QuotaDetails' => ['$ref' => '#/components/schemas/QuotaDetails'], + 'QuotaConfig' => ['$ref' => '#/components/schemas/QuotaConfig'], 'Workspaces' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/WorkspaceIdName', - ], + 'items' => ['$ref' => '#/components/schemas/WorkspaceIdName'], ], 'SubQuotas' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/QuotaIdName', - ], - ], - 'QueueStrategy' => [ - 'type' => 'string', - ], - 'Version' => [ - 'type' => 'string', + 'items' => ['$ref' => '#/components/schemas/QuotaIdName'], ], + 'QueueStrategy' => ['type' => 'string'], + 'Version' => ['type' => 'string'], + 'QuotaCluster' => ['$ref' => '#/components/schemas/QuotaCluster'], 'HyperZones' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'QuotaCluster' => [ - '$ref' => '#/components/schemas/QuotaCluster', + 'items' => ['type' => 'string'], ], + 'GPUType' => ['type' => 'string'], ], ], 'QuotaCluster' => [ 'type' => 'object', 'properties' => [ - 'ClusterType' => [ - 'type' => 'string', - ], - 'Image' => [ - 'type' => 'string', - ], + 'ClusterType' => ['type' => 'string'], + 'Image' => ['type' => 'string'], 'DataSources' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/DataSource', - ], + 'items' => ['$ref' => '#/components/schemas/DataSource'], ], 'Endpoints' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], - ], - 'Status' => [ - 'type' => 'string', + 'additionalProperties' => ['type' => 'string'], ], + 'Status' => ['type' => 'string'], ], ], 'QuotaConfig' => [ 'type' => 'object', 'properties' => [ - 'SupportRDMA' => [ - 'type' => 'boolean', - ], - 'ClusterId' => [ - 'type' => 'string', - ], - 'UserVpc' => [ - '$ref' => '#/components/schemas/UserVpc', - ], + 'SupportRDMA' => ['type' => 'boolean'], + 'ClusterId' => ['type' => 'string'], + 'UserVpc' => ['$ref' => '#/components/schemas/UserVpc'], 'SupportGPUDrivers' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'DefaultGPUDriver' => [ - 'type' => 'string', - ], - 'ACS' => [ - '$ref' => '#/components/schemas/ACS', + 'items' => ['type' => 'string'], ], + 'DefaultGPUDriver' => ['type' => 'string'], + 'ACS' => ['$ref' => '#/components/schemas/ACS'], 'ResourceSpecs' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/WorkspaceSpecs', - ], - ], - 'EnablePreemptSubquotaWorkloads' => [ - 'type' => 'boolean', - 'deprecated' => false, - ], - 'EnableSubQuotaPreemption' => [ - 'type' => 'boolean', + 'items' => ['$ref' => '#/components/schemas/WorkspaceSpecs'], ], - 'SubQuotaPreemptionConfig' => [ - '$ref' => '#/components/schemas/SubQuotaPreemptionConfig', - ], - 'EnableGPUShare' => [ - 'type' => 'boolean', - ], - 'OversoldUsageConfig' => [ - '$ref' => '#/components/schemas/OversoldUsageConfig', - ], - 'SelfQuotaPreemptionConfig' => [ - '$ref' => '#/components/schemas/SelfQuotaPreemptionConfig', - ], - 'EniCacheConfig' => [ - '$ref' => '#/components/schemas/EniCacheConfig', - ], - 'SandboxCacheConfig' => [ - '$ref' => '#/components/schemas/SandboxCacheConfig', - ], - 'UseCase' => [ - 'type' => 'string', - ], - 'EnableSelfQuotaPreemption' => [ - 'type' => 'boolean', - ], - 'ControlPlaneClusterId' => [ - 'type' => 'string', + 'EnablePreemptSubquotaWorkloads' => ['type' => 'boolean', 'deprecated' => false], + 'EnableSubQuotaPreemption' => ['type' => 'boolean'], + 'SubQuotaPreemptionConfig' => ['$ref' => '#/components/schemas/SubQuotaPreemptionConfig'], + 'EnableGPUShare' => ['type' => 'boolean'], + 'OversoldUsageConfig' => ['$ref' => '#/components/schemas/OversoldUsageConfig'], + 'SelfQuotaPreemptionConfig' => ['$ref' => '#/components/schemas/SelfQuotaPreemptionConfig'], + 'EniCacheConfig' => ['$ref' => '#/components/schemas/EniCacheConfig'], + 'SandboxCacheConfig' => ['$ref' => '#/components/schemas/SandboxCacheConfig'], + 'UseCase' => ['type' => 'string'], + 'EnableSelfQuotaPreemption' => ['type' => 'boolean'], + 'ControlPlaneClusterId' => ['type' => 'string'], + 'IsEncryptedResource' => ['type' => 'boolean'], + 'WorkloadTypes' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], ], ], ], 'QuotaDetails' => [ 'type' => 'object', 'properties' => [ - 'DesiredMinQuota' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'ActualMinQuota' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'RequestedQuota' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'UsedQuota' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'AllocatedQuota' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'SelfAllocatedQuota' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'AncestorsAllocatedQuota' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'DescendantsAllocatedQuota' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'SelfSubmittedQuota' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'AllocatableQuota' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'SystemReservedQuota' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], + 'DesiredMinQuota' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'ActualMinQuota' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'RequestedQuota' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'UsedQuota' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'AllocatedQuota' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'SelfAllocatedQuota' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'AncestorsAllocatedQuota' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'DescendantsAllocatedQuota' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'SelfSubmittedQuota' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'AllocatableQuota' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'SystemReservedQuota' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'NodeStatistics' => ['$ref' => '#/components/schemas/QuotaNodeStatistics'], ], ], 'QuotaIdName' => [ 'type' => 'object', 'properties' => [ - 'QuotaId' => [ - 'type' => 'string', - ], - 'QuotaName' => [ - 'type' => 'string', - ], - ], - ], - 'QuotaJob' => [ - 'type' => 'object', - 'properties' => [ - 'Total' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Queuing' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Running' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'QuotaId' => ['type' => 'string'], + 'QuotaName' => ['type' => 'string'], ], ], 'QuotaJobViewMetric' => [ 'type' => 'object', 'properties' => [ - 'TotalCPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'CPUUsageRate' => [ - 'type' => 'string', - ], - 'GPUUsageRate' => [ - 'type' => 'string', - ], - 'TotalMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TotalGPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'MemoryUsageRate' => [ - 'type' => 'string', - ], - 'RequestCPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'RequestGPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'RequestMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'NetworkInputRate' => [ - 'type' => 'string', - ], - 'NetworkOutputRate' => [ - 'type' => 'string', - ], - 'DiskReadRate' => [ - 'type' => 'string', - ], - 'DiskWriteRate' => [ - 'type' => 'string', - ], - 'JobType' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], + 'TotalCPU' => ['type' => 'integer', 'format' => 'int32'], + 'CPUUsageRate' => ['type' => 'string'], + 'GPUUsageRate' => ['type' => 'string'], + 'TotalMemory' => ['type' => 'integer', 'format' => 'int64'], + 'TotalGPU' => ['type' => 'integer', 'format' => 'int32'], + 'MemoryUsageRate' => ['type' => 'string'], + 'RequestCPU' => ['type' => 'integer', 'format' => 'int32'], + 'RequestGPU' => ['type' => 'integer', 'format' => 'int32'], + 'RequestMemory' => ['type' => 'integer', 'format' => 'int64'], + 'NetworkInputRate' => ['type' => 'string'], + 'NetworkOutputRate' => ['type' => 'string'], + 'DiskReadRate' => ['type' => 'string'], + 'DiskWriteRate' => ['type' => 'string'], + 'JobType' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], 'NodeNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'JobId' => [ - 'type' => 'string', + 'items' => ['type' => 'string'], ], + 'JobId' => ['type' => 'string'], ], ], 'QuotaMetric' => [ @@ -1921,144 +959,66 @@ 'properties' => [ 'Metrics' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/Metric', - ], - ], - 'GPUType' => [ - 'type' => 'string', + 'items' => ['$ref' => '#/components/schemas/Metric'], ], + 'GPUType' => ['type' => 'string'], ], ], - 'QuotaNodeViewMetric' => [ + 'QuotaNodeStatistics' => [ 'type' => 'object', 'properties' => [ - 'NodeID' => [ - 'type' => 'string', - ], - 'NodeType' => [ - 'type' => 'string', - ], - 'QuotaId' => [ - 'type' => 'string', - ], - 'CreatedTime' => [ - 'type' => 'string', - ], - 'RequestCPU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'RequestMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'RequestGPU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'NetworkInputRate' => [ - 'type' => 'string', - ], - 'NetworkOutputRate' => [ - 'type' => 'string', - ], - 'DiskReadRate' => [ - 'type' => 'string', - ], - 'DiskWriteRate' => [ - 'type' => 'string', - ], - 'TotalCPU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TotalGPU' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TotalMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'UserNumber' => [ - 'type' => 'string', - ], - 'UserIDs' => [ + 'ActualMinNodeNum' => ['type' => 'integer', 'format' => 'int64'], + 'ActualMinHyperNodeNum' => ['type' => 'integer', 'format' => 'int64'], + 'AllocatedNodeNum' => ['type' => 'integer', 'format' => 'int64'], + 'AllocatedHyperNodeNum' => ['type' => 'integer', 'format' => 'int64'], + 'EmptyNodeNum' => ['type' => 'integer', 'format' => 'int64'], + 'AllocatedHyperNodeDetails' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'CPUUsageRate' => [ - 'type' => 'string', - ], - 'MemoryUsageRate' => [ - 'type' => 'string', - ], - 'NodeStatus' => [ - 'type' => 'string', - ], - 'TotalTasks' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TaskIdMap' => [ - 'type' => 'object', + 'items' => ['$ref' => '#/components/schemas/AllocatedHyperNodeDetail'], ], ], ], - 'QuotaTopo' => [ + 'QuotaNodeViewMetric' => [ 'type' => 'object', 'properties' => [ - 'QuotaId' => [ - 'type' => 'string', - ], - 'QuotaName' => [ - 'type' => 'string', - ], - 'ResourceType' => [ - 'type' => 'string', - ], - 'ParentQuotaId' => [ - 'type' => 'string', - ], - 'Depth' => [ - 'type' => 'string', - ], - 'QuotaDetails' => [ - '$ref' => '#/components/schemas/QuotaDetails', - ], - 'WorkloadDetails' => [ - '$ref' => '#/components/schemas/WorkloadDetails', + 'NodeID' => ['type' => 'string'], + 'NodeType' => ['type' => 'string'], + 'QuotaId' => ['type' => 'string'], + 'CreatedTime' => ['type' => 'string'], + 'RequestCPU' => ['type' => 'integer', 'format' => 'int64'], + 'RequestMemory' => ['type' => 'integer', 'format' => 'int64'], + 'RequestGPU' => ['type' => 'integer', 'format' => 'int64'], + 'NetworkInputRate' => ['type' => 'string'], + 'NetworkOutputRate' => ['type' => 'string'], + 'DiskReadRate' => ['type' => 'string'], + 'DiskWriteRate' => ['type' => 'string'], + 'TotalCPU' => ['type' => 'integer', 'format' => 'int64'], + 'TotalGPU' => ['type' => 'integer', 'format' => 'int64'], + 'TotalMemory' => ['type' => 'integer', 'format' => 'int64'], + 'GPUType' => ['type' => 'string'], + 'UserNumber' => ['type' => 'string'], + 'UserIDs' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], ], + 'CPUUsageRate' => ['type' => 'string'], + 'MemoryUsageRate' => ['type' => 'string'], + 'NodeStatus' => ['type' => 'string'], + 'TotalTasks' => ['type' => 'integer', 'format' => 'int64'], + 'TaskIdMap' => ['type' => 'object'], ], ], 'QuotaUser' => [ 'type' => 'object', 'properties' => [ - 'Username' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], - 'WorkloadCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'Username' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'WorkloadCount' => ['type' => 'integer', 'format' => 'int32'], 'Resources' => [ 'type' => 'object', 'properties' => [ - 'Used' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'Submitted' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], + 'Used' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'Submitted' => ['$ref' => '#/components/schemas/ResourceAmount'], ], ], ], @@ -2066,290 +1026,137 @@ 'QuotaUserViewMetric' => [ 'type' => 'object', 'properties' => [ - 'TotalCPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'CPUUsageRate' => [ - 'type' => 'string', - ], - 'GPUUsageRate' => [ - 'type' => 'string', - ], - 'TotalMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TotalGPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'MemoryUsageRate' => [ - 'type' => 'string', - ], - 'RequestCPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'RequestGPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'RequestMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'NetworkInputRate' => [ - 'type' => 'string', - ], - 'NetworkOutputRate' => [ - 'type' => 'string', - ], - 'DiskReadRate' => [ - 'type' => 'string', - ], - 'DiskWriteRate' => [ - 'type' => 'string', - ], - 'JobType' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], - 'CPUNodeNumber' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUNodeNumber' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'TotalCPU' => ['type' => 'integer', 'format' => 'int32'], + 'CPUUsageRate' => ['type' => 'string'], + 'GPUUsageRate' => ['type' => 'string'], + 'TotalMemory' => ['type' => 'integer', 'format' => 'int64'], + 'TotalGPU' => ['type' => 'integer', 'format' => 'int32'], + 'MemoryUsageRate' => ['type' => 'string'], + 'RequestCPU' => ['type' => 'integer', 'format' => 'int32'], + 'RequestGPU' => ['type' => 'integer', 'format' => 'int32'], + 'RequestMemory' => ['type' => 'integer', 'format' => 'int64'], + 'NetworkInputRate' => ['type' => 'string'], + 'NetworkOutputRate' => ['type' => 'string'], + 'DiskReadRate' => ['type' => 'string'], + 'DiskWriteRate' => ['type' => 'string'], + 'JobType' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'CPUNodeNumber' => ['type' => 'integer', 'format' => 'int32'], + 'GPUNodeNumber' => ['type' => 'integer', 'format' => 'int32'], 'CpuJobNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'GpuJobNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'NodeNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'CpuNodeNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'GpuNodeNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], 'ResourceAmount' => [ 'type' => 'object', 'properties' => [ - 'CPU' => [ - 'type' => 'string', - ], - 'Memory' => [ - 'type' => 'string', - ], - 'GPU' => [ - 'type' => 'string', - ], - 'GPUType' => [ - 'type' => 'string', - ], + 'CPU' => ['type' => 'string'], + 'Memory' => ['type' => 'string'], + 'GPU' => ['type' => 'string'], + 'GPUType' => ['type' => 'string'], ], ], 'ResourceDiagnosisDetail' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], 'ExceedResources' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'Limit' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'Used' => [ - '$ref' => '#/components/schemas/ResourceAmount', + 'items' => ['type' => 'string'], ], + 'Limit' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'Used' => ['$ref' => '#/components/schemas/ResourceAmount'], 'WorkloadIds' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], 'ResourceGroup' => [ 'type' => 'object', 'properties' => [ - 'Name' => [ - 'type' => 'string', - ], - 'ResourceGroupID' => [ - 'type' => 'string', - ], - 'WorkspaceID' => [ - 'type' => 'string', - ], - 'UserVpc' => [ - '$ref' => '#/components/schemas/UserVpc', - ], - 'GmtCreatedTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'CreatorID' => [ - 'type' => 'string', - ], - 'NodeCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Version' => [ - 'type' => 'string', - ], + 'Name' => ['type' => 'string'], + 'ResourceGroupID' => ['type' => 'string'], + 'WorkspaceID' => ['type' => 'string'], + 'UserVpc' => ['$ref' => '#/components/schemas/UserVpc'], + 'GmtCreatedTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'CreatorID' => ['type' => 'string'], + 'NodeCount' => ['type' => 'integer', 'format' => 'int32'], + 'Version' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'ResourceType' => ['type' => 'string'], ], ], 'ResourceGroupMetric' => [ 'type' => 'object', 'properties' => [ - 'ResourceGroupID' => [ - 'type' => 'string', - ], + 'ResourceGroupID' => ['type' => 'string'], 'Metrics' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/Metric', - ], - ], - 'GpuType' => [ - 'type' => 'string', + 'items' => ['$ref' => '#/components/schemas/Metric'], ], + 'GpuType' => ['type' => 'string'], ], ], - 'ResourceInfo' => [ - 'type' => 'object', - 'properties' => [], - ], 'ResourceInfos' => [ 'type' => 'object', 'properties' => [ - 'UserName' => [ - 'type' => 'string', - ], - 'GpuCardType' => [ - 'type' => 'string', - ], - 'ClusterId' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], - 'EcsSpec' => [ - 'type' => 'string', - ], - 'RegionId' => [ - 'type' => 'string', - ], - 'MaxQuota' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'UsedQuota' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'NetworkPodId' => [ - 'type' => 'string', - ], - 'MachineModel' => [ - 'type' => 'string', - ], + 'UserName' => ['type' => 'string'], + 'GpuCardType' => ['type' => 'string'], + 'ClusterId' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'EcsSpec' => ['type' => 'string'], + 'RegionId' => ['type' => 'string'], + 'MaxQuota' => ['type' => 'integer', 'format' => 'int64'], + 'UsedQuota' => ['type' => 'integer', 'format' => 'int64'], + 'NetworkPodId' => ['type' => 'string'], + 'MachineModel' => ['type' => 'string'], ], ], 'ResourceLimitDetails' => [ 'type' => 'object', 'properties' => [ - 'GCLevel' => [ - 'type' => 'string', - ], - 'ResourceLimit' => [ - 'type' => 'object', - ], - 'ShouldIgnoreResourceCheck' => [ - 'type' => 'boolean', - ], + 'GCLevel' => ['type' => 'string'], + 'ResourceLimit' => ['type' => 'object'], + 'ShouldIgnoreResourceCheck' => ['type' => 'boolean'], ], ], 'ResourceOperation' => [ 'type' => 'object', 'properties' => [ - 'OperationId' => [ - 'type' => 'string', - ], - 'ObjectType' => [ - 'type' => 'string', - ], - 'ObjectId' => [ - 'type' => 'string', - ], - 'OperationType' => [ - 'type' => 'string', - ], - 'OperationSpecJson' => [ - 'type' => 'string', - ], - 'OperationDescription' => [ - 'type' => 'string', - ], - 'CreatorId' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'ReasonCode' => [ - 'type' => 'string', - ], - 'ReasonMessage' => [ - 'type' => 'string', - ], - 'GmtCreatedTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'GmtStartTime' => [ - 'type' => 'string', - ], - 'GmtEndTime' => [ - 'type' => 'string', - ], + 'OperationId' => ['type' => 'string'], + 'ObjectType' => ['type' => 'string'], + 'ObjectId' => ['type' => 'string'], + 'OperationType' => ['type' => 'string'], + 'OperationSpecJson' => ['type' => 'string'], + 'OperationDescription' => ['type' => 'string'], + 'CreatorId' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'ReasonCode' => ['type' => 'string'], + 'ReasonMessage' => ['type' => 'string'], + 'GmtCreatedTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'GmtStartTime' => ['type' => 'string'], + 'GmtEndTime' => ['type' => 'string'], ], ], 'ResourceSpec' => [ @@ -2357,270 +1164,179 @@ 'properties' => [ 'NodeSpecs' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/NodeSpec', - ], + 'items' => ['$ref' => '#/components/schemas/NodeSpec'], ], ], ], 'Rules' => [ 'type' => 'object', 'properties' => [ - 'Scheduling' => [ - '$ref' => '#/components/schemas/SchedulingRule', - ], + 'Scheduling' => ['$ref' => '#/components/schemas/SchedulingRule'], ], ], 'SandboxCacheConfig' => [ 'type' => 'object', 'properties' => [ - 'Enabled' => [ - 'type' => 'boolean', - ], + 'Enabled' => ['type' => 'boolean'], ], ], 'SchedulingRule' => [ 'type' => 'object', 'properties' => [ - 'StartAt' => [ - 'type' => 'string', - ], - 'EndAt' => [ - 'type' => 'string', - ], - 'ExecuteOnce' => [ - 'type' => 'boolean', - 'required' => false, - ], - 'CronTab' => [ - 'type' => 'string', - ], + 'StartAt' => ['type' => 'string'], + 'EndAt' => ['type' => 'string'], + 'ExecuteOnce' => ['type' => 'boolean', 'required' => false], + 'CronTab' => ['type' => 'string'], ], ], 'SelfQuotaPreemptionConfig' => [ 'type' => 'object', 'properties' => [ - 'PreemptedPriorities' => [ + 'PreemptorPriorities' => [ 'type' => 'array', - 'items' => [ - 'type' => 'integer', - 'format' => 'int32', - 'minimum' => '1', - 'maximum' => '9', - ], + 'items' => ['type' => 'integer', 'format' => 'int32', 'minimum' => '1', 'maximum' => '9'], ], - 'PreemptedProducts' => [ + 'PreemptedPriorities' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'integer', 'format' => 'int32', 'minimum' => '1', 'maximum' => '9'], ], - 'PreemptorPriorities' => [ + 'PreemptedProducts' => [ 'type' => 'array', - 'items' => [ - 'type' => 'integer', - 'format' => 'int32', - 'minimum' => '1', - 'maximum' => '9', - ], + 'items' => ['type' => 'string'], ], ], ], + 'SpotBidPreviewItem' => [ + 'type' => 'object', + 'properties' => [ + 'name' => ['type' => 'string'], + 'jobName' => ['type' => 'string'], + 'instanceType' => ['type' => 'string'], + 'gcLevel' => ['type' => 'string'], + 'replicas' => ['type' => 'integer', 'format' => 'int32'], + 'maxDiscount' => ['type' => 'number', 'format' => 'double'], + 'phase' => ['type' => 'string'], + 'message' => ['type' => 'string'], + 'clusterId' => ['type' => 'string'], + 'allowCrossHpnZone' => ['type' => 'boolean'], + 'active' => ['type' => 'boolean'], + ], + ], 'SpotPriceItem' => [ 'type' => 'object', 'properties' => [ - 'ZoneId' => [ - 'type' => 'string', - ], - 'InstanceType' => [ - 'type' => 'string', - ], - 'SpotDiscount' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'Timestamp' => [ - 'type' => 'string', + 'ZoneId' => ['type' => 'string'], + 'InstanceType' => ['type' => 'string'], + 'SpotDiscount' => ['type' => 'number', 'format' => 'float'], + 'Timestamp' => ['type' => 'string'], + ], + ], + 'SpotStockInternalInfo' => [ + 'type' => 'object', + 'properties' => [ + 'clusterId' => ['type' => 'string'], + 'hpnZone' => ['type' => 'string'], + 'totalQuantity' => ['type' => 'integer', 'format' => 'int32'], + 'availableQuantity' => ['type' => 'integer', 'format' => 'int32'], + ], + ], + 'SpotStockItem' => [ + 'type' => 'object', + 'properties' => [ + 'instanceType' => ['type' => 'string'], + 'stockStatus' => ['type' => 'string'], + 'internalInfo' => [ + 'type' => 'array', + 'items' => ['$ref' => '#/components/schemas/SpotStockInternalInfo'], ], ], ], 'SpotStockPreview' => [ 'type' => 'object', 'properties' => [ - 'InstanceType' => [ - 'type' => 'string', - ], - 'StockStatus' => [ - 'type' => 'string', - ], - 'SpotDiscount' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'ClusterId' => [ - 'type' => 'string', - ], - 'AvailableQuantity' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'InstanceType' => ['type' => 'string'], + 'StockStatus' => ['type' => 'string'], + 'SpotDiscount' => ['type' => 'number', 'format' => 'float'], + 'ClusterId' => ['type' => 'string'], + 'AvailableQuantity' => ['type' => 'integer', 'format' => 'int32'], ], ], 'StatisticsDetails' => [ 'type' => 'object', 'properties' => [ - 'IdleNum' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'IdleNum' => ['type' => 'integer', 'format' => 'int64'], + 'Count' => ['type' => 'integer', 'format' => 'int64'], ], ], 'StatisticsResources' => [ 'type' => 'object', 'properties' => [ - 'NodeNum' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'HyperNodeNum' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'CPU' => [ - 'type' => 'string', - ], - 'Memory' => [ - 'type' => 'string', - ], - 'GPU' => [ - 'type' => 'string', - ], + 'NodeNum' => ['type' => 'integer', 'format' => 'int64'], + 'HyperNodeNum' => ['type' => 'integer', 'format' => 'int64'], + 'CPU' => ['type' => 'string'], + 'Memory' => ['type' => 'string'], + 'GPU' => ['type' => 'string'], ], ], 'SubQuotaPreemptionConfig' => [ 'type' => 'object', 'properties' => [ - 'PreemptedPriorityUpperBound' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'PreemptedPriorityUpperBound' => ['type' => 'integer', 'format' => 'int64'], 'PreemptedProducts' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], 'Task' => [ 'type' => 'object', 'properties' => [ - 'QuotaId' => [ - 'type' => 'string', - ], - 'TaskName' => [ - 'type' => 'string', - ], - 'TaskId' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], - 'Rules' => [ - '$ref' => '#/components/schemas/Rules', - ], + 'QuotaId' => ['type' => 'string'], + 'TaskName' => ['type' => 'string'], + 'TaskId' => ['type' => 'string'], + 'Description' => ['type' => 'string'], + 'Rules' => ['$ref' => '#/components/schemas/Rules'], 'Actions' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/Action', - ], - ], - 'UserId' => [ - 'type' => 'string', - ], - 'UserName' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'GmtCreatedTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'GmtActivatedTime' => [ - 'type' => 'string', - ], - 'GmtStoppedTime' => [ - 'type' => 'string', + 'items' => ['$ref' => '#/components/schemas/Action'], ], + 'UserId' => ['type' => 'string'], + 'UserName' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'GmtCreatedTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'GmtActivatedTime' => ['type' => 'string'], + 'GmtStoppedTime' => ['type' => 'string'], ], ], 'TaskInstance' => [ 'type' => 'object', 'properties' => [ - 'TaskId' => [ - 'type' => 'string', - ], - 'TaskInstanceId' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], - 'TenantId' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'GmtCreatedTime' => [ - 'type' => 'string', - ], - 'GmtEndTime' => [ - 'type' => 'string', - ], + 'TaskId' => ['type' => 'string'], + 'TaskInstanceId' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'TenantId' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'GmtCreatedTime' => ['type' => 'string'], + 'GmtEndTime' => ['type' => 'string'], ], ], 'TaskInstanceEvent' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'GmtStartTime' => [ - 'type' => 'string', - ], - 'GmtEndTime' => [ - 'type' => 'string', - ], - 'WorkloadType' => [ - 'type' => 'string', - ], - 'PodName' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'GmtStartTime' => ['type' => 'string'], + 'GmtEndTime' => ['type' => 'string'], + 'WorkloadType' => ['type' => 'string'], + 'PodName' => ['type' => 'string'], + 'Message' => ['type' => 'string'], ], ], 'TimeRangeFilter' => [ 'type' => 'object', 'properties' => [ - 'StartTime' => [ - 'type' => 'string', - ], - 'EndTime' => [ - 'type' => 'string', - ], + 'StartTime' => ['type' => 'string'], + 'EndTime' => ['type' => 'string'], ], ], 'UnschedulableNodeDetail' => [ @@ -2628,260 +1344,164 @@ 'properties' => [ 'Nodes' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'Reason' => [ - 'type' => 'string', + 'items' => ['type' => 'string'], ], + 'Reason' => ['type' => 'string'], ], ], 'UserInfo' => [ 'type' => 'object', 'properties' => [ - 'UserId' => [ - 'type' => 'string', - ], - 'UserName' => [ - 'type' => 'string', - ], + 'UserId' => ['type' => 'string'], + 'UserName' => ['type' => 'string'], ], ], 'UserQuotaPermission' => [ 'type' => 'object', 'properties' => [ - 'QuotaId' => [ - 'type' => 'string', - ], + 'QuotaId' => ['type' => 'string'], 'Permissions' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], 'UserViewMetric' => [ 'type' => 'object', 'properties' => [ - 'ResourceGroupId' => [ - 'type' => 'string', - ], - 'TotalCPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'CPUUsageRate' => [ - 'type' => 'string', - ], - 'GPUUsageRate' => [ - 'type' => 'string', - ], - 'TotalMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TotalGPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'MemoryUsageRate' => [ - 'type' => 'string', - ], - 'RequestCPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'RequestGPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'RequestMemory' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'NetworkInputRate' => [ - 'type' => 'string', - ], - 'NetworkOutputRate' => [ - 'type' => 'string', - ], - 'DiskReadRate' => [ - 'type' => 'string', - ], - 'DiskWriteRate' => [ - 'type' => 'string', - ], - 'JobType' => [ - 'type' => 'string', - ], - 'UserId' => [ - 'type' => 'string', - ], - 'CPUNodeNumber' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUNodeNumber' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'ResourceGroupId' => ['type' => 'string'], + 'TotalCPU' => ['type' => 'integer', 'format' => 'int32'], + 'CPUUsageRate' => ['type' => 'string'], + 'GPUUsageRate' => ['type' => 'string'], + 'TotalMemory' => ['type' => 'integer', 'format' => 'int64'], + 'TotalGPU' => ['type' => 'integer', 'format' => 'int32'], + 'MemoryUsageRate' => ['type' => 'string'], + 'RequestCPU' => ['type' => 'integer', 'format' => 'int32'], + 'RequestGPU' => ['type' => 'integer', 'format' => 'int32'], + 'RequestMemory' => ['type' => 'integer', 'format' => 'int64'], + 'NetworkInputRate' => ['type' => 'string'], + 'NetworkOutputRate' => ['type' => 'string'], + 'DiskReadRate' => ['type' => 'string'], + 'DiskWriteRate' => ['type' => 'string'], + 'JobType' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'CPUNodeNumber' => ['type' => 'integer', 'format' => 'int32'], + 'GPUNodeNumber' => ['type' => 'integer', 'format' => 'int32'], 'CpuJobNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'GpuJobNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'NodeNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'CpuNodeNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'GpuNodeNames' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], 'UserVpc' => [ 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'type' => 'string', - ], - 'SwitchId' => [ - 'type' => 'string', - ], - 'SecurityGroupId' => [ - 'type' => 'string', - ], + 'VpcId' => ['type' => 'string'], + 'SwitchId' => ['type' => 'string'], + 'SecurityGroupId' => ['type' => 'string'], 'ExtendedCIDRs' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'RoleArn' => [ - 'type' => 'string', - ], - 'DefaultRoute' => [ - 'type' => 'string', - ], - 'DefaultForwardInfo' => [ - '$ref' => '#/components/schemas/ForwardInfo', + 'items' => ['type' => 'string'], ], + 'RoleArn' => ['type' => 'string'], + 'DefaultRoute' => ['type' => 'string'], + 'DefaultForwardInfo' => ['$ref' => '#/components/schemas/ForwardInfo'], ], ], - 'WorkloadDetails' => [ + 'WorkloadInfo' => [ 'type' => 'object', 'properties' => [ - 'Summary' => [ - '$ref' => '#/components/schemas/QuotaJob', - ], - 'DSW' => [ - '$ref' => '#/components/schemas/QuotaJob', - ], - 'DLC' => [ - '$ref' => '#/components/schemas/QuotaJob', - ], - 'EAS' => [ - '$ref' => '#/components/schemas/QuotaJob', + 'WorkloadId' => ['type' => 'string'], + 'WorkloadName' => ['type' => 'string'], + 'WorkloadType' => ['type' => 'string'], + 'WorkspaceId' => ['type' => 'string'], + 'WorkspaceName' => ['type' => 'string'], + 'WorkloadCreatedTime' => ['type' => 'string'], + 'WorkloadStatus' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'TenantId' => ['type' => 'string'], + 'UserName' => ['type' => 'string'], + 'Priority' => ['type' => 'integer', 'format' => 'int32'], + 'IsScheduled' => ['type' => 'string'], + 'QueueMetas' => [ + 'type' => 'array', + 'items' => ['$ref' => '#/components/schemas/QueueMeta'], ], ], ], 'WorkspaceIdName' => [ 'type' => 'object', 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], + 'WorkspaceId' => ['type' => 'string'], + 'WorkspaceName' => ['type' => 'string'], ], ], 'WorkspaceSpec' => [ 'type' => 'object', 'properties' => [ - 'SpecName' => [ - 'type' => 'string', - ], - 'IsGuaranteedValid' => [ - 'type' => 'boolean', - ], - 'IsOverSoldValid' => [ - 'type' => 'boolean', - ], - 'Spec' => [ - '$ref' => '#/components/schemas/ResourceAmount', - ], - 'CodeType' => [ - 'type' => 'string', - ], - 'Code' => [ - 'type' => 'string', - ], - 'Reason' => [ - 'type' => 'string', - ], + 'SpecName' => ['type' => 'string'], + 'IsGuaranteedValid' => ['type' => 'boolean'], + 'IsOverSoldValid' => ['type' => 'boolean'], + 'Spec' => ['$ref' => '#/components/schemas/ResourceAmount'], + 'CodeType' => ['type' => 'string'], + 'Code' => ['type' => 'string'], + 'Reason' => ['type' => 'string'], ], ], 'WorkspaceSpecs' => [ 'type' => 'object', 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Product' => [ - 'type' => 'string', - ], + 'WorkspaceId' => ['type' => 'string'], + 'Product' => ['type' => 'string'], 'Specs' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/WorkspaceSpec', - ], + 'items' => ['$ref' => '#/components/schemas/WorkspaceSpec'], ], ], ], ], ], 'apis' => [ - 'UpdateResourceGroup' => [ - 'path' => '/api/v1/resources/{ResourceGroupID}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CheckInstanceWebTerminal' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/webterminals/action/check', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ 'name' => 'body', 'in' => 'body', 'style' => 'json', @@ -2889,750 +1509,203 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'UserVpc' => [ - '$ref' => '#/components/schemas/UserVpc', - 'required' => false, - ], - 'Unbind' => [ - 'type' => 'boolean', - 'required' => false, - ], - 'Name' => [ - 'type' => 'string', - 'required' => false, - ], - 'Description' => [ - 'type' => 'string', - 'required' => false, - ], + 'CheckInfo' => ['type' => 'string', 'required' => false], ], ], ], - [ - 'name' => 'ResourceGroupID', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'GetResourceGroupTotal' => [ - 'path' => '/api/v1/resources/data/total', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'ResourceGroupID', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], ], ], - 'ListResourceGroups' => [ - 'path' => '/api/v1/resources', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateAlgorithm' => [ + 'path' => '/api/v1/algorithms', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => [], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'Name', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - ], - [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - ], - [ - 'name' => 'Order', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'Status', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'ShowAll', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], - ], - [ - 'name' => 'ComputingResourceProvider', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'ResourceType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'ResourceGroupIDs', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'HasResource', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], - ], - [ - 'name' => 'Versions', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'WorkspaceId', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - ], - 'GetResourceGroupRequest' => [ - 'path' => '/api/v1/resources/data/request', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'AlgorithmDescription', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => true, - 'parameters' => [ [ - 'name' => 'ResourceGroupID', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'AlgorithmName', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'PodStatus', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'DisplayName', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'DeleteResourceGroupMachineGroup' => [ - 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateAlgorithmVersion' => [ + 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => true, + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'deprecated' => false, 'parameters' => [ [ - 'name' => 'MachineGroupID', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - ], - ], - [ - 'name' => 'ResourceGroupID', + 'name' => 'AlgorithmId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string', 'required' => false], ], - ], - ], - 'GetNodeMetrics' => [ - 'path' => '/api/v1/resources/{ResourceGroupID}/nodemetrics/{MetricType}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => true, - 'parameters' => [ - [ - 'name' => 'ResourceGroupID', + 'name' => 'AlgorithmVersion', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'GPUType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'StartTime', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'EndTime', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'TimeStep', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'Verbose', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], - ], - [ - 'name' => 'MetricType', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'AlgorithmSpec', + 'in' => 'formData', + 'style' => 'json', + 'schema' => ['$ref' => '#/components/schemas/AlgorithmSpec', 'required' => false], ], ], ], - 'ListResourceGroupMachineGroups' => [ - 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateInstanceWebTerminal' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/webterminals', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'Name', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'CreatorID', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'ResourceGroupID', + 'name' => 'TrainingJobId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'PaymentType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'PaymentDurationUnit', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'PaymentDuration', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'EcsSpec', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - ], - [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - ], - [ - 'name' => 'Order', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'Status', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'OrderInstanceId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'MachineGroupIDs', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'GetUserViewMetrics' => [ - 'path' => '/api/v1/resources/{ResourceGroupID}/usermetrics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + 'schema' => ['type' => 'string', 'required' => true], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => true, - 'parameters' => [ [ - 'name' => 'ResourceGroupID', + 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'WorkspaceId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'Order', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'UserId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'TimeStep', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetResourceGroupMachineGroup' => [ - 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateQuota' => [ + 'path' => '/api/v1/quotas', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'MachineGroupID', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'ResourceGroupID', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'Tag', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', 'style' => 'json', 'schema' => [ - 'type' => 'array', + 'type' => 'object', 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], - 'Value' => [ - 'type' => 'string', - 'required' => false, - ], + 'properties' => [ + 'QuotaName' => ['type' => 'string', 'required' => false], + 'ResourceType' => ['type' => 'string', 'required' => false], + 'ParentQuotaId' => ['type' => 'string', 'required' => false], + 'ResourceGroupIds' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], + ], + 'AllocateStrategy' => ['type' => 'string', 'required' => false], + 'Min' => ['$ref' => '#/components/schemas/ResourceSpec', 'required' => false], + 'Description' => ['type' => 'string', 'required' => false], + 'Labels' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['$ref' => '#/components/schemas/Label', 'required' => false], ], + 'QuotaConfig' => ['$ref' => '#/components/schemas/QuotaConfig', 'required' => false], + 'QueueStrategy' => ['type' => 'string', 'required' => false], + 'ClusterSpec' => ['$ref' => '#/components/schemas/ClusterSpec', 'required' => false], ], ], ], ], ], - 'GetResourceGroup' => [ - 'path' => '/api/v1/resources/{ResourceGroupID}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateResourceGroup' => [ + 'path' => '/api/v1/resources', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceGroupID', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'IsAIWorkspaceDataEnabled', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], - ], - [ - 'name' => 'Tag', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', 'style' => 'json', 'schema' => [ - 'type' => 'array', + 'type' => 'object', 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], - 'Value' => [ - 'type' => 'string', + 'properties' => [ + 'Name' => ['type' => 'string', 'required' => false], + 'Description' => ['type' => 'string', 'required' => false], + 'UserVpc' => ['$ref' => '#/components/schemas/UserVpc', 'required' => false], + 'ResourceType' => ['type' => 'string', 'required' => false], + 'ComputingResourceProvider' => ['type' => 'string', 'required' => false], + 'Tag' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', 'required' => false, + 'properties' => [ + 'Key' => ['type' => 'string', 'required' => false], + 'Value' => ['type' => 'string', 'required' => false], + ], ], ], + 'Version' => ['type' => 'string', 'required' => false], ], ], ], ], ], - 'DeleteMachineGroup' => [ - 'path' => '/api/v1/resources/machinegroups/{MachineGroupID}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => true, - 'parameters' => [ - [ - 'name' => 'MachineGroupID', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - ], - ], - ], - ], - 'CreateResourceGroup' => [ - 'path' => '/api/v1/resources', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateTrainingJob' => [ + 'path' => '/api/v1/trainingjobs', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ @@ -3643,1171 +1716,717 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'Name' => [ - 'type' => 'string', - 'required' => false, - ], - 'Description' => [ - 'type' => 'string', + 'AlgorithmName' => ['type' => 'string', 'required' => false], + 'AlgorithmProvider' => ['type' => 'string', 'required' => false], + 'AlgorithmVersion' => ['type' => 'string', 'required' => false], + 'ComputeResource' => [ + 'type' => 'object', 'required' => false, + 'properties' => [ + 'EcsCount' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'EcsSpec' => ['type' => 'string', 'required' => false], + 'ResourceId' => ['type' => 'string', 'required' => false], + 'InstanceCount' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'InstanceSpec' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'CPU' => ['type' => 'string', 'required' => false], + 'Memory' => ['type' => 'string', 'required' => false], + 'SharedMemory' => ['type' => 'string', 'required' => false], + 'GPU' => ['type' => 'string', 'required' => false], + 'GPUType' => ['type' => 'string', 'required' => false], + ], + ], + 'SpotSpec' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'SpotStrategy' => ['type' => 'string', 'required' => false], + 'SpotDiscountLimit' => ['type' => 'number', 'format' => 'float', 'required' => false], + ], + ], + 'UseSpotInstance' => ['type' => 'boolean', 'required' => false], + ], ], - 'UserVpc' => [ - '$ref' => '#/components/schemas/UserVpc', + 'HyperParameters' => [ + 'type' => 'array', 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Name' => ['type' => 'string', 'required' => false], + 'Value' => ['type' => 'string', 'required' => false], + ], + ], ], - 'ResourceType' => [ - 'type' => 'string', + 'InputChannels' => [ + 'type' => 'array', 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Name' => ['type' => 'string', 'required' => false], + 'DatasetId' => ['type' => 'string', 'required' => false], + 'VersionName' => ['type' => 'string', 'required' => false], + 'InputUri' => ['type' => 'string', 'required' => false], + 'Options' => ['type' => 'string', 'required' => false], + ], + ], ], - 'ComputingResourceProvider' => [ - 'type' => 'string', + 'Labels' => [ + 'type' => 'array', 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Key' => ['type' => 'string', 'required' => false], + 'Value' => ['type' => 'string', 'required' => false], + ], + ], ], - 'Tag' => [ + 'OutputChannels' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], - 'Value' => [ - 'type' => 'string', - 'required' => false, - ], + 'DatasetId' => ['type' => 'string', 'required' => false], + 'Name' => ['type' => 'string', 'required' => false], + 'OutputUri' => ['type' => 'string', 'required' => false], + 'VersionName' => ['type' => 'string', 'required' => false], ], ], ], - 'Version' => [ - 'type' => 'string', + 'Scheduler' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'MaxRunningTimeInSeconds' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'MaxRunningTimeInMinutes' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + ], + ], + 'TrainingJobDescription' => ['type' => 'string', 'required' => false], + 'TrainingJobName' => ['type' => 'string', 'required' => true], + 'WorkspaceId' => ['type' => 'string', 'required' => true], + 'AlgorithmSpec' => ['$ref' => '#/components/schemas/AlgorithmSpec', 'required' => false], + 'CodeDir' => ['$ref' => '#/components/schemas/Location', 'required' => false], + 'RoleArn' => ['type' => 'string', 'required' => false], + 'UserVpc' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'VpcId' => ['type' => 'string', 'required' => false], + 'SwitchId' => ['type' => 'string', 'required' => false], + 'SecurityGroupId' => ['type' => 'string', 'required' => false], + 'ExtendedCIDRs' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], + ], + 'DefaultRoute' => ['type' => 'string', 'required' => false], + ], + ], + 'Settings' => ['$ref' => '#/components/schemas/JobSettings', 'required' => false], + 'ExperimentConfig' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'ExperimentId' => ['type' => 'string', 'required' => false], + ], + ], + 'Environments' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string'], + ], + 'PythonRequirements' => [ + 'type' => 'array', 'required' => false, + 'items' => ['type' => 'string', 'required' => false], ], + 'Priority' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'AssignNodeSpec' => ['$ref' => '#/components/schemas/AssignNodeSpec', 'required' => false], ], ], ], ], ], - 'DeleteResourceGroup' => [ - 'path' => '/api/v1/resources/{ResourceGroupID}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteAlgorithm' => [ + 'path' => '/api/v1/algorithms/{AlgorithmId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], ], - 'produces' => [ - 'application/json', + ], + 'DeleteAlgorithmVersion' => [ + 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceGroupID', + 'name' => 'AlgorithmId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'AlgorithmVersion', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetMachineGroup' => [ + 'DeleteMachineGroup' => [ 'path' => '/api/v1/resources/machinegroups/{MachineGroupID}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => true, 'parameters' => [ [ 'name' => 'MachineGroupID', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string'], ], ], ], - 'CreateAlgorithm' => [ - 'path' => '/api/v1/algorithms', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteQuota' => [ + 'path' => '/api/v1/quotas/{QuotaId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'WorkspaceId', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'AlgorithmDescription', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'QuotaId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'DeleteResourceGroup' => [ + 'path' => '/api/v1/resources/{ResourceGroupID}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'AlgorithmName', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'DisplayName', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CreateAlgorithmVersion' => [ - 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteResourceGroupMachineGroup' => [ + 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/x-www-form-urlencoded', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => true, 'parameters' => [ [ - 'name' => 'AlgorithmId', + 'name' => 'MachineGroupID', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string'], ], [ - 'name' => 'AlgorithmVersion', + 'name' => 'ResourceGroupID', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'AlgorithmSpec', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - '$ref' => '#/components/schemas/AlgorithmSpec', - 'required' => false, - ], + 'schema' => ['type' => 'string'], ], ], ], - 'DeleteAlgorithm' => [ - 'path' => '/api/v1/algorithms/{AlgorithmId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteTrainingJob' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'AlgorithmId', + 'name' => 'TrainingJobId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'DeleteAlgorithmVersion' => [ - 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteTrainingJobLabels' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/labels', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/x-www-form-urlencoded', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'AlgorithmId', + 'name' => 'TrainingJobId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'AlgorithmVersion', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'Keys', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'GetAlgorithm' => [ 'path' => '/api/v1/algorithms/{AlgorithmId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'AlgorithmId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'GetAlgorithmVersion' => [ 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'AlgorithmId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'AlgorithmVersion', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'ListAlgorithms' => [ - 'path' => '/api/v1/algorithms', - 'methods' => [ - 'get', + 'GetMachineGroup' => [ + 'path' => '/api/v1/resources/machinegroups/{MachineGroupID}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => true, + 'parameters' => [ + [ + 'name' => 'MachineGroupID', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], ], + ], + 'GetNodeMetrics' => [ + 'path' => '/api/v1/resources/{ResourceGroupID}/nodemetrics/{MetricType}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => true, 'parameters' => [ [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'PageNumber', + 'name' => 'GPUType', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'AlgorithmName', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'AlgorithmId', + 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'AlgorithmProvider', + 'name' => 'TimeStep', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'WorkspaceId', + 'name' => 'Verbose', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'MetricType', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'ListAlgorithmVersions' => [ - 'path' => '/api/v1/algorithms/{AlgorithmId}/versions', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetQuota' => [ + 'path' => '/api/v1/quotas/{QuotaId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], + 'name' => 'QuotaId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'PageNumber', + 'name' => 'Verbose', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ - 'name' => 'AlgorithmId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'WithNodeMeta', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], ], ], ], - 'UpdateAlgorithm' => [ - 'path' => '/api/v1/algorithms/{AlgorithmId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetResourceGroup' => [ + 'path' => '/api/v1/resources/{ResourceGroupID}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/x-www-form-urlencoded', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'AlgorithmDescription', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'DisplayName', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'IsAIWorkspaceDataEnabled', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], ], [ - 'name' => 'AlgorithmId', - 'in' => 'path', + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'array', 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Key' => ['type' => 'string', 'required' => false], + 'Value' => ['type' => 'string', 'required' => false], + ], + ], ], ], ], ], - 'UpdateAlgorithmVersion' => [ - 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetResourceGroupMachineGroup' => [ + 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/x-www-form-urlencoded', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'AlgorithmId', + 'name' => 'MachineGroupID', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'AlgorithmVersion', + 'name' => 'ResourceGroupID', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'AlgorithmSpec', - 'in' => 'formData', + 'name' => 'Tag', + 'in' => 'query', 'style' => 'json', 'schema' => [ - '$ref' => '#/components/schemas/AlgorithmSpec', + 'type' => 'array', 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Key' => ['type' => 'string', 'required' => false], + 'Value' => ['type' => 'string', 'required' => false], + ], + ], ], ], ], ], - 'CreateTrainingJob' => [ - 'path' => '/api/v1/trainingjobs', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetResourceGroupRequest' => [ + 'path' => '/api/v1/resources/data/request', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => true, 'parameters' => [ [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'AlgorithmName' => [ - 'type' => 'string', - 'required' => false, - ], - 'AlgorithmProvider' => [ - 'type' => 'string', - 'required' => false, - ], - 'AlgorithmVersion' => [ - 'type' => 'string', - 'required' => false, - ], - 'ComputeResource' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'EcsCount' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - 'EcsSpec' => [ - 'type' => 'string', - 'required' => false, - ], - 'ResourceId' => [ - 'type' => 'string', - 'required' => false, - ], - 'InstanceCount' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - 'InstanceSpec' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'CPU' => [ - 'type' => 'string', - 'required' => false, - ], - 'Memory' => [ - 'type' => 'string', - 'required' => false, - ], - 'SharedMemory' => [ - 'type' => 'string', - 'required' => false, - ], - 'GPU' => [ - 'type' => 'string', - 'required' => false, - ], - 'GPUType' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - 'SpotSpec' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'SpotStrategy' => [ - 'type' => 'string', - 'required' => false, - ], - 'SpotDiscountLimit' => [ - 'type' => 'number', - 'format' => 'float', - 'required' => false, - ], - ], - ], - 'UseSpotInstance' => [ - 'type' => 'boolean', - 'required' => false, - ], - ], - ], - 'HyperParameters' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Name' => [ - 'type' => 'string', - 'required' => false, - ], - 'Value' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'InputChannels' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Name' => [ - 'type' => 'string', - 'required' => false, - ], - 'DatasetId' => [ - 'type' => 'string', - 'required' => false, - ], - 'VersionName' => [ - 'type' => 'string', - 'required' => false, - ], - 'InputUri' => [ - 'type' => 'string', - 'required' => false, - ], - 'Options' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'Labels' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], - 'Value' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'OutputChannels' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'DatasetId' => [ - 'type' => 'string', - 'required' => false, - ], - 'Name' => [ - 'type' => 'string', - 'required' => false, - ], - 'OutputUri' => [ - 'type' => 'string', - 'required' => false, - ], - 'VersionName' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'Scheduler' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'MaxRunningTimeInSeconds' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - 'MaxRunningTimeInMinutes' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - ], - ], - 'TrainingJobDescription' => [ - 'type' => 'string', - 'required' => false, - ], - 'TrainingJobName' => [ - 'type' => 'string', - 'required' => true, - ], - 'WorkspaceId' => [ - 'type' => 'string', - 'required' => true, - ], - 'AlgorithmSpec' => [ - '$ref' => '#/components/schemas/AlgorithmSpec', - 'required' => false, - ], - 'CodeDir' => [ - '$ref' => '#/components/schemas/Location', - 'required' => false, - ], - 'RoleArn' => [ - 'type' => 'string', - 'required' => false, - ], - 'UserVpc' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'VpcId' => [ - 'type' => 'string', - 'required' => false, - ], - 'SwitchId' => [ - 'type' => 'string', - 'required' => false, - ], - 'SecurityGroupId' => [ - 'type' => 'string', - 'required' => false, - ], - 'ExtendedCIDRs' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - 'DefaultRoute' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - 'Settings' => [ - '$ref' => '#/components/schemas/JobSettings', - 'required' => false, - ], - 'ExperimentConfig' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'ExperimentId' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - 'Environments' => [ - 'type' => 'object', - 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - ], - ], - 'PythonRequirements' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - 'Priority' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'AssignNodeSpec' => [ - '$ref' => '#/components/schemas/AssignNodeSpec', - 'required' => false, - ], - ], - ], + 'name' => 'ResourceGroupID', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'PodStatus', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CreateInstanceWebTerminal' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/webterminals', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetResourceGroupTotal' => [ + 'path' => '/api/v1/resources/data/total', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'TrainingJobId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'InstanceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'ResourceGroupID', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CheckInstanceWebTerminal' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/webterminals/action/check', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetSpotPriceHistory' => [ + 'path' => '/api/v1/spots/{InstanceType}/pricehistory', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'TrainingJobId', + 'name' => 'InstanceType', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'InstanceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'SpotDuration', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'CheckInfo' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - ], - 'DeleteTrainingJob' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'TrainingJobId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], - ], - ], - 'DeleteTrainingJobLabels' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}/labels', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'TrainingJobId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Keys', + 'name' => 'Order', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'GetToken' => [ 'path' => '/api/v1/tokens', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TrainingJobId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'ExpireTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], ], ], 'GetTrainingJob' => [ 'path' => '/api/v1/trainingjobs/{TrainingJobId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TrainingJobId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'GetTrainingJobErrorInfo' => [ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/errorinfo', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TrainingJobId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'GetTrainingJobLatestMetrics' => [ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/latestmetrics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4818,1336 +2437,871 @@ [ 'name' => 'TrainingJobId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Names', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'ListTrainingJobs' => [ - 'path' => '/api/v1/trainingjobs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetUserViewMetrics' => [ + 'path' => '/api/v1/resources/{ResourceGroupID}/usermetrics', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => true, 'parameters' => [ [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ 'name' => 'WorkspaceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'minimum' => '1', - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SortBy', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'GmtModifiedTime', - 'GmtCreateTime', - 'TrainingJobName', - 'AlgorithmName', - 'Status', - ], - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Order', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'desc', - 'asc', - ], - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'TrainingJobName', + 'name' => 'UserId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Status', + 'name' => 'TimeStep', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'ListAlgorithmVersions' => [ + 'path' => '/api/v1/algorithms/{AlgorithmId}/versions', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'TrainingJobId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'Labels', + 'name' => 'PageSize', 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ - 'name' => 'StartTime', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ - 'name' => 'EndTime', + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'ListAlgorithms' => [ + 'path' => '/api/v1/algorithms', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ - 'name' => 'AlgorithmProvider', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ 'name' => 'AlgorithmName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'IsTempAlgo', + 'name' => 'AlgorithmId', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'AlgorithmProvider', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'ListTrainingJobEvents' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}/events', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListNodeTypes' => [ + 'path' => '/api/v1/nodetypes', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'TrainingJobId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'ResourceGroupIds', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'PageNumber', + 'name' => 'QuotaId', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'minimum' => '1', - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'PageSize', + 'name' => 'NodeTypes', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'minimum' => '1', - 'maximum' => '2000', - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'StartTime', + 'name' => 'AcceleratorType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'format' => 'iso8601', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'EndTime', + 'name' => 'GPUType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'format' => 'iso8601', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'ListTrainingJobInstanceEvents' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/events', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListNodes' => [ + 'path' => '/api/v1/nodes', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'TrainingJobId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'ResourceGroupIds', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'InstanceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'QuotaId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'NodeTypes', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'AcceleratorType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'GPUType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'NodeStatuses', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'OrderStatuses', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'minimum' => '1', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'minimum' => '1', - 'maximum' => '2000', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'StartTime', + 'name' => 'SortBy', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'format' => 'iso8601', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'EndTime', + 'name' => 'Order', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'format' => 'iso8601', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], - ], - ], - 'ListTrainingJobInstanceMetrics' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instancemetrics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], ], - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'TrainingJobId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'NodeNames', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'MetricType', + 'name' => 'HyperNode', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'TimeStep', + 'name' => 'CliqueID', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'InstanceId', + 'name' => 'FilterByQuotaId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'StartTime', + 'name' => 'FilterByResourceGroupIds', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'MachineGroupIds', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ReasonCodes', 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'HyperZone', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'AvailabilityZone', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'PaymentType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'OrderInstanceIds', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'HealthRate', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'format' => 'iso8601', - 'required' => false, + 'type' => 'object', + 'properties' => [ + 'operation' => ['type' => 'string'], + 'value' => ['type' => 'integer', 'format' => 'int32'], + ], ], ], [ - 'name' => 'EndTime', + 'name' => 'HealthCount', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'format' => 'iso8601', - 'required' => false, + 'type' => 'object', + 'properties' => [ + 'operation' => ['type' => 'string'], + 'value' => ['type' => 'integer', 'format' => 'int32'], + ], ], ], + [ + 'name' => 'LayoutMode', + 'in' => 'query', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'ResourceGroupName', + 'in' => 'query', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'DiskPL', + 'in' => 'query', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'WorkloadNum', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32'], + ], + [ + 'name' => 'PodNum', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32'], + ], ], ], - 'ListTrainingJobLogs' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}/logs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListQuotaActiveUserUsages' => [ + 'path' => '/api/v1/quotas/{QuotaId}/activeuserusages', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'TrainingJobId', + 'name' => 'QuotaId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'WorkerId', + 'name' => 'SelfOnly', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'minimum' => '1', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'minimum' => '1', - 'maximum' => '2000', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'StartTime', + 'name' => 'SortBy', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'format' => 'iso8601', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'EndTime', + 'name' => 'Order', 'in' => 'query', 'schema' => [ 'type' => 'string', - 'format' => 'iso8601', 'required' => false, + 'enum' => ['asc', 'desc'], ], ], [ - 'name' => 'InstanceId', + 'name' => 'UserId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Username', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'WorkloadCount', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32'], ], ], ], - 'ListTrainingJobMetrics' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}/metrics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListQuotaWorkloads' => [ + 'path' => '/api/v1/quotas/{QuotaId}/workloads', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'TrainingJobId', + 'name' => 'QuotaId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Name', + 'name' => 'WorkspaceIds', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'WorkloadType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'WorkloadIds', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'BeforeWorkloadId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'minimum' => '1', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'minimum' => '1', - 'maximum' => '100', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '100'], ], [ - 'name' => 'StartTime', + 'name' => 'SortBy', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'format' => 'iso8601', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'EndTime', + 'name' => 'Order', 'in' => 'query', 'schema' => [ 'type' => 'string', - 'format' => 'iso8601', 'required' => false, + 'enum' => ['asc', 'desc'], ], ], [ - 'name' => 'Order', + 'name' => 'Status', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], - ], - ], - 'ListTrainingJobOutputModels' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}/outputmodels', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'ShowOwn', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'TrainingJobId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'SubQuotaIds', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - ], - 'StopTrainingJob' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}/stop', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'UserIds', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'TrainingJobId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'NodeName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - ], - 'UpdateTrainingJobLabels' => [ - 'path' => '/api/v1/trainingjobs/{TrainingJobId}/labels', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'WorkloadCreatedTimeRange', + 'in' => 'query', + 'schema' => ['$ref' => '#/components/schemas/TimeRangeFilter', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Labels' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], - 'Value' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - ], - ], + 'name' => 'WorkloadStatuses', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'TrainingJobId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'GmtPositionModifiedTimeRange', + 'in' => 'query', + 'schema' => ['$ref' => '#/components/schemas/TimeRangeFilter', 'required' => false], ], - ], - ], - 'CreateQuota' => [ - 'path' => '/api/v1/quotas', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'GmtEnqueuedTimeRange', + 'in' => 'query', + 'schema' => ['$ref' => '#/components/schemas/TimeRangeFilter', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'QuotaName' => [ - 'type' => 'string', - 'required' => false, - ], - 'ResourceType' => [ - 'type' => 'string', - 'required' => false, - ], - 'ParentQuotaId' => [ - 'type' => 'string', - 'required' => false, - ], - 'ResourceGroupIds' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - 'AllocateStrategy' => [ - 'type' => 'string', - 'required' => false, - ], - 'Min' => [ - '$ref' => '#/components/schemas/ResourceSpec', - 'required' => false, - ], - 'Description' => [ - 'type' => 'string', - 'required' => false, - ], - 'Labels' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - '$ref' => '#/components/schemas/Label', - 'required' => false, - ], - ], - 'QuotaConfig' => [ - '$ref' => '#/components/schemas/QuotaConfig', - 'required' => false, - ], - 'QueueStrategy' => [ - 'type' => 'string', - 'required' => false, - ], - 'ClusterSpec' => [ - '$ref' => '#/components/schemas/ClusterSpec', - 'required' => false, - ], - ], - ], + 'name' => 'GmtDequeuedTimeRange', + 'in' => 'query', + 'schema' => ['$ref' => '#/components/schemas/TimeRangeFilter', 'required' => false], + ], + [ + 'name' => 'WithHistoricalData', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'WorkloadNames', + 'in' => 'query', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'Priority', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32'], + ], + [ + 'name' => 'Position', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32'], + ], + [ + 'name' => 'UseOversoldResource', + 'in' => 'query', + 'schema' => ['type' => 'boolean'], + ], + [ + 'name' => 'InstanceId', + 'in' => 'query', + 'schema' => ['type' => 'string'], ], ], ], 'ListQuotas' => [ 'path' => '/api/v1/quotas/', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'QuotaName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'LayoutMode', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ParentQuotaId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'QuotaIds', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'WorkspaceIds', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Statuses', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'SortBy', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Order', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Labels', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Verbose', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'WorkspaceName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'HasResource', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Versions', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ClusterType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'GetQuota' => [ - 'path' => '/api/v1/quotas/{QuotaId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'QuotaId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Verbose', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], - ], - [ - 'name' => 'WithNodeMeta', + 'name' => 'GPUType', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'string'], ], ], ], - 'UpdateQuota' => [ - 'path' => '/api/v1/quotas/{QuotaId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListResourceGroupMachineGroups' => [ + 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'QuotaId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Description' => [ - 'type' => 'string', - 'required' => false, - ], - 'Labels' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - '$ref' => '#/components/schemas/Label', - 'required' => false, - ], - ], - 'QueueStrategy' => [ - 'type' => 'string', - 'required' => false, - ], - 'QuotaConfig' => [ - '$ref' => '#/components/schemas/QuotaConfig', - 'required' => false, - ], - 'QuotaName' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - ], - 'ScaleQuota' => [ - 'path' => '/api/v1/quotas/{QuotaId}/action/scale', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'CreatorID', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'QuotaId', + 'name' => 'ResourceGroupID', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'ResourceGroupIds' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - 'Min' => [ - '$ref' => '#/components/schemas/ResourceSpec', - 'required' => false, - ], - ], - ], + 'name' => 'PaymentType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - ], - 'DeleteQuota' => [ - 'path' => '/api/v1/quotas/{QuotaId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'PaymentDurationUnit', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'QuotaId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'PaymentDuration', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - ], - 'ListQuotaWorkloads' => [ - 'path' => '/api/v1/quotas/{QuotaId}/workloads', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'EcsSpec', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'QuotaId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'WorkspaceIds', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'WorkloadType', + 'name' => 'Order', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'WorkloadIds', + 'name' => 'SortBy', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'BeforeWorkloadId', + 'name' => 'Status', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'PageNumber', + 'name' => 'OrderInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'PageSize', + 'name' => 'MachineGroupIDs', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '100', - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'SortBy', + 'name' => 'DiskPL', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string'], ], + ], + ], + 'ListResourceGroups' => [ + 'path' => '/api/v1/resources', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'Order', + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'asc', - 'desc', - ], - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Status', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ - 'name' => 'ShowOwn', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ - 'name' => 'SubQuotaIds', + 'name' => 'Order', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'UserIds', + 'name' => 'SortBy', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'NodeName', + 'name' => 'Status', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'WorkloadCreatedTimeRange', + 'name' => 'ShowAll', 'in' => 'query', - 'schema' => [ - '$ref' => '#/components/schemas/TimeRangeFilter', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ - 'name' => 'WorkloadStatuses', + 'name' => 'ComputingResourceProvider', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'GmtPositionModifiedTimeRange', + 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - '$ref' => '#/components/schemas/TimeRangeFilter', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'GmtEnqueuedTimeRange', + 'name' => 'ResourceGroupIDs', 'in' => 'query', - 'schema' => [ - '$ref' => '#/components/schemas/TimeRangeFilter', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'GmtDequeuedTimeRange', + 'name' => 'HasResource', 'in' => 'query', - 'schema' => [ - '$ref' => '#/components/schemas/TimeRangeFilter', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ - 'name' => 'WithHistoricalData', + 'name' => 'Versions', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'ListTagResources' => [ 'path' => '/api/v1/tags', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'ResourceId', @@ -6156,10 +3310,7 @@ 'schema' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], + 'items' => ['type' => 'string', 'required' => false], ], ], [ @@ -6173,14 +3324,8 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], - 'Value' => [ - 'type' => 'string', - 'required' => false, - ], + 'Key' => ['type' => 'string', 'required' => false], + 'Value' => ['type' => 'string', 'required' => false], ], ], ], @@ -6188,537 +3333,645 @@ [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'TagResources' => [ - 'path' => '/api/v1/tags', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListTrainingJobEvents' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/events', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'ResourceType' => [ - 'type' => 'string', - 'required' => false, - ], - 'RegionId' => [ - 'type' => 'string', - 'required' => false, - ], - 'ResourceId' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - 'Tag' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], - 'Value' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - ], - ], + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1', 'maximum' => '2000'], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => ['type' => 'string', 'format' => 'iso8601', 'required' => false], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['type' => 'string', 'format' => 'iso8601', 'required' => false], ], ], ], - 'UntagResources' => [ - 'path' => '/api/v1/tags', - 'methods' => [ - 'delete', + 'ListTrainingJobInstanceEvents' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/events', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1', 'maximum' => '2000'], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => ['type' => 'string', 'format' => 'iso8601', 'required' => false], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['type' => 'string', 'format' => 'iso8601', 'required' => false], + ], ], + ], + 'ListTrainingJobInstanceMetrics' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instancemetrics', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'RegionId', + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'MetricType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'ResourceType', + 'name' => 'TimeStep', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'ResourceId', + 'name' => 'InstanceId', 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'type' => 'array', - 'required' => true, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'TagKey', + 'name' => 'StartTime', 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], + 'schema' => ['type' => 'string', 'format' => 'iso8601', 'required' => false], ], [ - 'name' => 'All', + 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'format' => 'iso8601', 'required' => false], ], ], ], - 'ListNodes' => [ - 'path' => '/api/v1/nodes', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListTrainingJobLogs' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/logs', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceGroupIds', + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'WorkerId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'QuotaId', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1'], ], [ - 'name' => 'NodeTypes', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1', 'maximum' => '2000'], ], [ - 'name' => 'AcceleratorType', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'format' => 'iso8601', 'required' => false], ], [ - 'name' => 'GPUType', + 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'format' => 'iso8601', 'required' => false], ], [ - 'name' => 'NodeStatuses', + 'name' => 'InstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'ListTrainingJobMetrics' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/metrics', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'OrderStatuses', + 'AK' => [], + ], + ], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1'], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1', 'maximum' => '100'], ], [ - 'name' => 'SortBy', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'format' => 'iso8601', 'required' => false], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['type' => 'string', 'format' => 'iso8601', 'required' => false], ], [ 'name' => 'Order', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'ListTrainingJobOutputModels' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/outputmodels', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'Verbose', + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'ListTrainingJobs' => [ + 'path' => '/api/v1/trainingjobs', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'WorkspaceId', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'NodeNames', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1'], ], [ - 'name' => 'HyperNode', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ - 'name' => 'CliqueID', + 'name' => 'SortBy', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, + 'enum' => ['GmtModifiedTime', 'GmtCreateTime', 'TrainingJobName', 'AlgorithmName', 'Status'], ], ], [ - 'name' => 'FilterByQuotaId', + 'name' => 'Order', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, + 'enum' => ['desc', 'asc'], ], ], [ - 'name' => 'FilterByResourceGroupIds', + 'name' => 'TrainingJobName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'MachineGroupIds', + 'name' => 'Status', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'ReasonCodes', + 'name' => 'TrainingJobId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'HyperZone', + 'name' => 'Labels', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'style' => 'json', + 'schema' => ['type' => 'object', 'required' => false], ], [ - 'name' => 'AvailabilityZone', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'PaymentType', + 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'OrderInstanceIds', + 'name' => 'AlgorithmProvider', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'WorkspaceId', + 'name' => 'AlgorithmName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'HealthRate', + 'name' => 'IsTempAlgo', 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], + ], + ], + ], + 'OperateNode' => [ + 'path' => '/api/v1/nodes/{NodeId}', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'NodeId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ - 'operation' => [ + 'ResourceGroupId' => ['type' => 'string', 'required' => false], + 'Operation' => [ 'type' => 'string', - 'required' => false, - ], - 'value' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, + 'required' => true, + 'enum' => ['Cordon', 'Uncordon', 'Drain'], ], + 'OperationParameters' => ['$ref' => '#/components/schemas/NodeOperationParameters', 'required' => false], ], ], ], + ], + ], + 'ScaleQuota' => [ + 'path' => '/api/v1/quotas/{QuotaId}/action/scale', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'HealthCount', - 'in' => 'query', + 'name' => 'QuotaId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'body', + 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ - 'operation' => [ - 'type' => 'string', - 'required' => false, - ], - 'value' => [ - 'type' => 'integer', - 'format' => 'int32', + 'ResourceGroupIds' => [ + 'type' => 'array', 'required' => false, + 'items' => ['type' => 'string', 'required' => false], ], + 'Min' => ['$ref' => '#/components/schemas/ResourceSpec', 'required' => false], ], ], ], - [ - 'name' => 'LayoutMode', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], ], ], - 'GetSpotPriceHistory' => [ - 'path' => '/api/v1/spots/{InstanceType}/pricehistory', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'StopTrainingJob' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/stop', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'InstanceType', + 'name' => 'TrainingJobId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'TagResources' => [ + 'path' => '/api/v1/tags', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'SpotDuration', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'AK' => [], ], + ], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'StartTime', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'ResourceType' => ['type' => 'string', 'required' => false], + 'RegionId' => ['type' => 'string', 'required' => false], + 'ResourceId' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], + ], + 'Tag' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Key' => ['type' => 'string', 'required' => false], + 'Value' => ['type' => 'string', 'required' => false], + ], + ], + ], + ], ], ], + ], + ], + 'UntagResources' => [ + 'path' => '/api/v1/tags', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'EndTime', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'PageNumber', + 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'PageSize', + 'name' => 'ResourceId', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, + 'type' => 'array', + 'required' => true, + 'items' => ['type' => 'string', 'required' => false], ], ], [ - 'name' => 'SortBy', + 'name' => 'TagKey', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'array', 'required' => false, + 'items' => ['type' => 'string', 'required' => false], ], ], [ - 'name' => 'Order', + 'name' => 'All', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], ], ], - 'OperateNode' => [ - 'path' => '/api/v1/nodes/{NodeId}', - 'methods' => [ - 'post', + 'UpdateAlgorithm' => [ + 'path' => '/api/v1/algorithms/{AlgorithmId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'AlgorithmDescription', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'DisplayName', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], ], + ], + 'UpdateAlgorithmVersion' => [ + 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'AlgorithmId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'AlgorithmVersion', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'AlgorithmSpec', + 'in' => 'formData', + 'style' => 'json', + 'schema' => ['$ref' => '#/components/schemas/AlgorithmSpec', 'required' => false], + ], ], - 'produces' => [ - 'application/json', + ], + 'UpdateQuota' => [ + 'path' => '/api/v1/quotas/{QuotaId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'NodeId', + 'name' => 'QuotaId', 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Description' => ['type' => 'string', 'required' => false], + 'Labels' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['$ref' => '#/components/schemas/Label', 'required' => false], + ], + 'QueueStrategy' => ['type' => 'string', 'required' => false], + 'QuotaConfig' => ['$ref' => '#/components/schemas/QuotaConfig', 'required' => false], + 'QuotaName' => ['type' => 'string', 'required' => false], + 'PropagateDefaultGPUDriver' => ['type' => 'boolean'], + ], ], ], + ], + ], + 'UpdateResourceGroup' => [ + 'path' => '/api/v1/resources/{ResourceGroupID}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ 'name' => 'body', 'in' => 'body', @@ -6727,105 +3980,81 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'ResourceGroupId' => [ - 'type' => 'string', + 'UserVpc' => ['$ref' => '#/components/schemas/UserVpc', 'required' => false], + 'Unbind' => ['type' => 'boolean', 'required' => false], + 'Name' => ['type' => 'string', 'required' => false], + 'Description' => ['type' => 'string', 'required' => false], + ], + ], + ], + [ + 'name' => 'ResourceGroupID', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'UpdateTrainingJobLabels' => [ + 'path' => '/api/v1/trainingjobs/{TrainingJobId}/labels', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Labels' => [ + 'type' => 'array', 'required' => false, - ], - 'Operation' => [ - 'type' => 'string', - 'required' => true, - 'enum' => [ - 'Cordon', - 'Uncordon', - 'Drain', + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Key' => ['type' => 'string', 'required' => false], + 'Value' => ['type' => 'string', 'required' => false], + ], ], ], - 'OperationParameters' => [ - '$ref' => '#/components/schemas/NodeOperationParameters', - 'required' => false, - ], ], ], ], + [ + 'name' => 'TrainingJobId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'pai.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wulanchabu', - 'endpoint' => 'pai.cn-wulanchabu.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'pai.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'pai.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'pai.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'pai.cn-hongkong.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'pai.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'pai.ap-southeast-3.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-5', - 'endpoint' => 'pai.ap-southeast-5.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'pai.eu-central-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-guangzhou', - 'endpoint' => 'pai.cn-guangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'pai.ap-northeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'pai.us-east-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'pai.us-west-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-2', - 'endpoint' => 'pai.ap-northeast-2.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'pai.cn-shanghai-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-southeast-1', - 'endpoint' => 'pai.us-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-7', - 'endpoint' => 'pai.ap-southeast-7.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'endpoint' => 'pai.me-east-1.aliyuncs.com', - ], + ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'pai.cn-wulanchabu.aliyuncs.com', 'vpc' => 'pai-vpc.cn-wulanchabu.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.cn-beijing.aliyuncs.com', 'endpoint' => 'pai.cn-beijing.aliyuncs.com', 'vpc' => 'pai-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.cn-shanghai.aliyuncs.com', 'endpoint' => 'pai.cn-shanghai.aliyuncs.com', 'vpc' => 'pai-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.cn-hongkong.aliyuncs.com', 'endpoint' => 'pai.cn-hongkong.aliyuncs.com', 'vpc' => 'pai-vpc.cn-hongkong.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.cn-shenzhen.aliyuncs.com', 'endpoint' => 'pai.cn-shenzhen.aliyuncs.com', 'vpc' => 'pai-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'ap-northeast-2', 'regionName' => '韩国(首尔)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.ap-northeast-2.aliyuncs.com', 'endpoint' => 'pai.ap-northeast-2.aliyuncs.com', 'vpc' => 'pai-vpc.ap-northeast-2.aliyuncs.com'], + ['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.ap-northeast-1.aliyuncs.com', 'endpoint' => 'pai.ap-northeast-1.aliyuncs.com', 'vpc' => 'pai-vpc.ap-northeast-1.aliyuncs.com'], + ['regionId' => 'cn-guangzhou', 'regionName' => '华南3(广州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.cn-guangzhou.aliyuncs.com', 'endpoint' => 'pai.cn-guangzhou.aliyuncs.com', 'vpc' => 'pai-vpc.cn-guangzhou.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.ap-southeast-1.aliyuncs.com', 'endpoint' => 'pai.ap-southeast-1.aliyuncs.com', 'vpc' => 'pai-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.ap-southeast-3.aliyuncs.com', 'endpoint' => 'pai.ap-southeast-3.aliyuncs.com', 'vpc' => 'pai-vpc.ap-southeast-3.aliyuncs.com'], + ['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.ap-southeast-5.aliyuncs.com', 'endpoint' => 'pai.ap-southeast-5.aliyuncs.com', 'vpc' => 'pai-vpc.ap-southeast-5.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.cn-hangzhou.aliyuncs.com', 'endpoint' => 'pai.cn-hangzhou.aliyuncs.com', 'vpc' => 'pai-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'ap-southeast-8', 'regionName' => '马来西亚(柔佛州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai.ap-southeast-8.aliyuncs.com', 'endpoint' => 'pai.ap-southeast-8.aliyuncs.com', 'vpc' => 'pai-vpc.ap-southeast-8.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pai.us-east-1.aliyuncs.com', 'endpoint' => 'pai.us-east-1.aliyuncs.com', 'vpc' => 'pai-vpc.us-east-1.aliyuncs.com'], + ['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pai.us-west-1.aliyuncs.com', 'endpoint' => 'pai.us-west-1.aliyuncs.com', 'vpc' => 'pai-vpc.us-west-1.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pai.eu-central-1.aliyuncs.com', 'endpoint' => 'pai.eu-central-1.aliyuncs.com', 'vpc' => 'pai-vpc.eu-central-1.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'pai.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'pai.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'pai-vpc.cn-shanghai-finance-1.aliyuncs.com'], ], ]; |
