summaryrefslogtreecommitdiff
path: root/data/pai-dsw/2021-02-26/api-docs.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/pai-dsw/2021-02-26/api-docs.php')
-rw-r--r--data/pai-dsw/2021-02-26/api-docs.php837
1 files changed, 837 insertions, 0 deletions
diff --git a/data/pai-dsw/2021-02-26/api-docs.php b/data/pai-dsw/2021-02-26/api-docs.php
new file mode 100644
index 0000000..916490a
--- /dev/null
+++ b/data/pai-dsw/2021-02-26/api-docs.php
@@ -0,0 +1,837 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'ROA',
+ 'product' => 'pai-dsw',
+ 'version' => '2021-02-26',
+ ],
+ 'components' => [
+ 'schemas' => [
+ 'Cluster' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ClusterId' => [
+ 'type' => 'string',
+ ],
+ 'Owner' => [
+ 'type' => 'string',
+ ],
+ 'VpcId' => [
+ 'type' => 'string',
+ ],
+ 'VSwitchId' => [
+ 'type' => 'string',
+ ],
+ 'Name' => [
+ 'type' => 'string',
+ ],
+ 'ClusterType' => [
+ 'type' => 'string',
+ ],
+ 'State' => [
+ 'type' => 'string',
+ ],
+ 'Config' => [
+ 'type' => 'string',
+ ],
+ 'Nas' => [
+ 'type' => 'string',
+ ],
+ 'PrivateNasPath' => [
+ 'type' => 'string',
+ ],
+ 'PrivateContainerPath' => [
+ 'type' => 'string',
+ ],
+ 'PublicNasPath' => [
+ 'type' => 'string',
+ ],
+ 'PublicContainerPath' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Config' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'type' => 'string',
+ ],
+ 'Value' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Dataset' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetId' => [
+ 'type' => 'string',
+ ],
+ 'DefaultMountPath' => [
+ 'type' => 'string',
+ ],
+ 'Name' => [
+ 'type' => 'string',
+ ],
+ 'MountPath' => [
+ 'type' => 'string',
+ ],
+ 'NasPath' => [
+ 'type' => 'string',
+ ],
+ 'FileSystemId' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'EcsSpec' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceType' => [
+ 'type' => 'string',
+ ],
+ 'Cpu' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'Gpu' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'MemoryInGiB' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'SystemDiskCategory' => [
+ 'type' => 'string',
+ ],
+ 'SystemDiskSizeInGiB' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'GpuType' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Image' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ImageId' => [
+ 'type' => 'string',
+ ],
+ 'ImageName' => [
+ 'type' => 'string',
+ ],
+ 'InstanceId' => [
+ 'type' => 'string',
+ ],
+ 'AcceleratorType' => [
+ 'type' => 'string',
+ ],
+ 'Framework' => [
+ 'type' => 'string',
+ ],
+ 'FrameworkVersion' => [
+ 'type' => 'string',
+ ],
+ 'OS' => [
+ 'type' => 'string',
+ ],
+ 'OSVersion' => [
+ 'type' => 'string',
+ ],
+ 'CudaVersion' => [
+ 'type' => 'string',
+ ],
+ 'Type' => [
+ 'type' => 'string',
+ ],
+ 'WorkspaceImageId' => [
+ 'type' => 'string',
+ ],
+ 'Repository' => [
+ 'type' => 'string',
+ ],
+ 'Namespace' => [
+ 'type' => 'string',
+ ],
+ 'Tag' => [
+ 'type' => 'string',
+ ],
+ 'GmtCreateTime' => [
+ 'type' => 'string',
+ ],
+ 'GmtModifiedTime' => [
+ 'type' => 'string',
+ ],
+ 'Author' => [
+ 'type' => 'string',
+ ],
+ 'PythonVersion' => [
+ 'type' => 'string',
+ ],
+ 'Shared' => [
+ 'type' => 'boolean',
+ ],
+ 'ResourceType' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'RootImageId' => [
+ 'type' => 'string',
+ ],
+ 'Description' => [
+ 'type' => 'string',
+ ],
+ 'Stage' => [
+ 'type' => 'string',
+ ],
+ 'StageCode' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'FromImageId' => [
+ 'type' => 'string',
+ ],
+ 'FromImageName' => [
+ 'type' => 'string',
+ ],
+ 'SuggestedName' => [
+ 'type' => 'string',
+ ],
+ 'ImageUrl' => [
+ 'type' => 'string',
+ ],
+ 'Region' => [
+ 'type' => 'string',
+ ],
+ 'EcsImageKey' => [
+ 'type' => 'string',
+ ],
+ 'ShortImageUrl' => [
+ 'type' => 'string',
+ ],
+ 'RepositoryPage' => [
+ 'type' => 'string',
+ ],
+ 'ShortRepository' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'ImageNamespace' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => [
+ 'type' => 'string',
+ ],
+ 'NamespaceStatus' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'ImageRepository' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RegionId' => [
+ 'type' => 'string',
+ ],
+ 'RepoNamespace' => [
+ 'type' => 'string',
+ ],
+ 'RepoName' => [
+ 'type' => 'string',
+ ],
+ 'RepoStatus' => [
+ 'type' => 'string',
+ ],
+ 'Repository' => [
+ 'type' => 'string',
+ ],
+ 'GmtCreateTime' => [
+ 'type' => 'string',
+ ],
+ 'GmtModifiedTime' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Instance' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'type' => 'string',
+ ],
+ 'InstanceName' => [
+ 'type' => 'string',
+ ],
+ 'EcsSpec' => [
+ 'type' => 'string',
+ ],
+ 'InstanceStatus' => [
+ 'type' => 'string',
+ ],
+ 'JupyterlabUrl' => [
+ 'type' => 'string',
+ ],
+ 'WebIdeUrl' => [
+ 'type' => 'string',
+ ],
+ 'TerminalUrl' => [
+ 'type' => 'string',
+ ],
+ 'AccumulativeRunningTimeInMinutes' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'ImageId' => [
+ 'type' => 'string',
+ ],
+ 'ImageUrl' => [
+ 'type' => 'string',
+ ],
+ 'GmtCreateTime' => [
+ 'type' => 'string',
+ ],
+ 'GmtModifiedTime' => [
+ 'type' => 'string',
+ ],
+ 'UserId' => [
+ 'type' => 'string',
+ ],
+ 'NasFileSystemId' => [
+ 'type' => 'string',
+ ],
+ 'UserVpc' => [
+ '$ref' => '#/components/schemas/UserVpc',
+ ],
+ 'InstanceShutdownTimer' => [
+ '$ref' => '#/components/schemas/InstanceShutdownTimer',
+ ],
+ 'WorkspaceId' => [
+ 'type' => 'string',
+ ],
+ 'WorkspaceName' => [
+ 'type' => 'string',
+ ],
+ 'InstanceUrl' => [
+ 'type' => 'string',
+ ],
+ 'Message' => [
+ 'type' => 'string',
+ ],
+ 'ShutdownEnabled' => [
+ 'type' => 'boolean',
+ ],
+ 'AccumulativeRunningTimeInMillis' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'ImageName' => [
+ 'type' => 'string',
+ ],
+ 'CreateUser' => [
+ 'type' => 'string',
+ ],
+ 'ImageType' => [
+ 'type' => 'string',
+ ],
+ 'PayType' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'PayTypeName' => [
+ 'type' => 'string',
+ ],
+ 'InstanceVersion' => [
+ 'type' => 'string',
+ ],
+ 'IsPublic' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'Resource' => [
+ 'type' => 'string',
+ ],
+ 'ResourceType' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'UserImageList' => [
+ 'type' => 'array',
+ 'items' => [
+ '$ref' => '#/components/schemas/Image',
+ ],
+ ],
+ 'DatasetList' => [
+ 'type' => 'array',
+ 'items' => [
+ '$ref' => '#/components/schemas/Dataset',
+ ],
+ ],
+ ],
+ ],
+ 'InstanceShutdownTimer' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'type' => 'string',
+ ],
+ 'ScheduleTime' => [
+ 'type' => 'string',
+ ],
+ 'GmtModifiedTime' => [
+ 'type' => 'string',
+ ],
+ 'GmtCreateTime' => [
+ 'type' => 'string',
+ ],
+ 'TtlInMillis' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ ],
+ ],
+ 'InstanceSnapshot' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'type' => 'string',
+ ],
+ 'InstanceSnapshotId' => [
+ 'type' => 'string',
+ ],
+ 'InstanceSnapshotStatus' => [
+ 'type' => 'string',
+ ],
+ 'InstanceSnapshotName' => [
+ 'type' => 'string',
+ ],
+ 'InstanceSnapshotTag' => [
+ 'type' => 'string',
+ ],
+ 'InstanceSnapshotRepoUrl' => [
+ 'type' => 'string',
+ ],
+ 'GmtCreateTime' => [
+ 'type' => 'string',
+ ],
+ 'GmtModifiedTime' => [
+ 'type' => 'string',
+ ],
+ 'InstanceSnapshotDescription' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'InstanceStatus' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'type' => 'string',
+ ],
+ 'InstanceStatus' => [
+ 'type' => 'string',
+ ],
+ 'Msg' => [
+ 'type' => 'string',
+ ],
+ 'Type' => [
+ 'type' => 'string',
+ ],
+ 'AccumulativeRunningTimeInMinutes' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'InstanceShutdownTimer' => [
+ '$ref' => '#/components/schemas/InstanceShutdownTimer',
+ ],
+ 'ShutdownEnabled' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ 'InstanceType' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceTypeId' => [
+ 'type' => 'string',
+ ],
+ 'SystemDiskCategory' => [
+ 'type' => 'string',
+ ],
+ 'SystemDiskSize' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'PriceCNY' => [
+ 'type' => 'number',
+ 'format' => 'float',
+ ],
+ 'PriceUSD' => [
+ 'type' => 'number',
+ 'format' => 'float',
+ ],
+ 'DomesticPrice' => [
+ 'type' => 'number',
+ 'format' => 'float',
+ ],
+ 'Discount' => [
+ 'type' => 'number',
+ 'format' => 'float',
+ ],
+ 'ResourceType' => [
+ 'type' => 'string',
+ ],
+ 'International' => [
+ 'type' => 'boolean',
+ ],
+ 'CpuCoreCount' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'MemorySize' => [
+ 'type' => 'number',
+ 'format' => 'float',
+ ],
+ 'InstanceTypeFamily' => [
+ 'type' => 'string',
+ ],
+ 'LocalStorageCapacity' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'GPUAmount' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'GPUSpec' => [
+ 'type' => 'string',
+ ],
+ 'Price' => [
+ 'type' => 'number',
+ 'format' => 'float',
+ ],
+ 'InstanceBandwidthRx' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'InstanceBandwidthTx' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'InstancePpsRx' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'InstancePpsTx' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ ],
+ ],
+ 'Nas' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'FileSystemId' => [
+ 'type' => 'string',
+ ],
+ 'Status' => [
+ 'type' => 'string',
+ ],
+ 'Description' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Region' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RegionId' => [
+ 'type' => 'string',
+ ],
+ 'RegionName' => [
+ 'type' => 'string',
+ ],
+ 'RegionCity' => [
+ 'type' => 'string',
+ ],
+ 'RegionState' => [
+ 'type' => 'string',
+ ],
+ 'ServiceUrl' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'ResourceInfo' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'PayType' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'ResourceType' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'Name' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'SecurityGroup' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SecurityGroupId' => [
+ 'type' => 'string',
+ ],
+ 'VpcId' => [
+ 'type' => 'string',
+ ],
+ 'SecurityGroupName' => [
+ 'type' => 'string',
+ ],
+ 'Description' => [
+ 'type' => 'string',
+ ],
+ 'CreateTime' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Status' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'type' => 'string',
+ ],
+ 'InstanceStatus' => [
+ 'type' => 'string',
+ ],
+ 'Msg' => [
+ 'type' => 'string',
+ ],
+ 'Type' => [
+ 'type' => 'string',
+ ],
+ 'AccumulativeRunningTimeInMinutes' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'InstanceShutdownTimer' => [
+ '$ref' => '#/components/schemas/InstanceShutdownTimer',
+ ],
+ ],
+ ],
+ 'UserVpc' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => [
+ 'type' => 'string',
+ ],
+ 'VswitchId' => [
+ 'type' => 'string',
+ ],
+ 'RoleArn' => [
+ 'type' => 'string',
+ ],
+ 'SecurityGroupId' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'VSwitch' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'VSwitchId' => [
+ 'type' => 'string',
+ ],
+ 'VpcId' => [
+ 'type' => 'string',
+ ],
+ 'Status' => [
+ 'type' => 'string',
+ ],
+ 'CidrBlock' => [
+ 'type' => 'string',
+ ],
+ 'ZoneId' => [
+ 'type' => 'string',
+ ],
+ 'AvailableIpAddressCount' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'Description' => [
+ 'type' => 'string',
+ ],
+ 'VSwitchName' => [
+ 'type' => 'string',
+ ],
+ 'CreateTime' => [
+ 'type' => 'string',
+ ],
+ 'IsDefault' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ 'Vpc' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => [
+ 'type' => 'string',
+ ],
+ 'Status' => [
+ 'type' => 'string',
+ ],
+ 'VpcName' => [
+ 'type' => 'string',
+ ],
+ 'CreateTime' => [
+ 'type' => 'string',
+ ],
+ 'CidrBlock' => [
+ 'type' => 'string',
+ ],
+ 'VRouterId' => [
+ 'type' => 'string',
+ ],
+ 'Description' => [
+ 'type' => 'string',
+ ],
+ 'IsDefault' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'apis' => [
+ 'GetInstance' => [
+ 'path' => '/api/v1/instances/{InstanceId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'pai-dsw.us-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'pai-dsw.cn-hongkong.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'pai-dsw.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'pai-dsw.cn-shanghai.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'pai-dsw.cn-beijing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'pai-dsw.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'pai-dsw.cn-shanghai-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'pai-dsw.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-5',
+ 'endpoint' => 'pai-dsw.ap-southeast-5.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-guangzhou',
+ 'endpoint' => 'pai-dsw.cn-guangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2',
+ 'endpoint' => 'pai-dsw.ap-northeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-7',
+ 'endpoint' => 'pai-dsw.ap-southeast-7.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'pai-dsw.ap-southeast-3.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'pai-dsw.cn-chengdu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'pai-dsw.cn-shenzhen.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-south-1',
+ 'endpoint' => 'pai-dsw.ap-south-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-southeast-1',
+ 'endpoint' => 'pai-dsw.us-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-central-1',
+ 'endpoint' => 'pai-dsw.me-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'pai-dsw.eu-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'pai-dsw.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'pai-dsw.us-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wulanchabu',
+ 'endpoint' => 'pai-dsw.cn-wulanchabu.aliyuncs.com',
+ ],
+ ],
+];