'1.0', 'info' => [ 'style' => 'RPC', 'product' => 'ecd', 'version' => '2023-06-27', ], 'directories' => [ 'DescribeBenefits', 'GetRedeemCodes', 'GetRequestToken', ], 'components' => [ 'schemas' => [], ], 'apis' => [ 'DescribeBenefits' => [ 'summary' => '查询权益', 'methods' => [ 'get', ], 'schemes' => [ 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', ], 'parameters' => [ [ 'name' => 'ChannelId', 'in' => 'query', 'schema' => [ 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'wuying****', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => '', 'type' => 'object', 'properties' => [ 'RequestId' => [ 'title' => 'Id of the request', 'description' => '', 'type' => 'string', 'example' => '25BB1CE-6B47-12DC-9FE6-03726****'."\n", ], 'Benefits' => [ 'description' => '', 'type' => 'array', 'items' => [ 'description' => '', 'type' => 'object', 'properties' => [ 'BenefitId' => [ 'description' => '', 'type' => 'string', 'example' => '6a79****', ], 'BenefitType' => [ 'description' => '', 'type' => 'string', 'enumValueTitles' => [ 'Desktop.TimePack' => '', ], 'example' => 'Desktop.TimePack', ], 'TotalAmount' => [ 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '100', ], 'AvailableAmount' => [ 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '80', ], 'SpecInfo' => [ 'description' => '', 'type' => 'object', 'properties' => [ 'CpuCore' => [ 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '4', ], 'AvailableHours' => [ 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '800', ], 'MemorySize' => [ 'description' => '', 'type' => 'integer', 'format' => 'int32', 'example' => '8192', ], ], ], ], ], ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"25BB1CE-6B47-12DC-9FE6-03726****\\",\\n \\"Benefits\\": [\\n {\\n \\"BenefitId\\": \\"6a79****\\",\\n \\"BenefitType\\": \\"Desktop.TimePack\\",\\n \\"TotalAmount\\": 100,\\n \\"AvailableAmount\\": 80,\\n \\"SpecInfo\\": {\\n \\"CpuCore\\": 4,\\n \\"AvailableHours\\": 800,\\n \\"MemorySize\\": 8192\\n }\\n }\\n ]\\n}","type":"json"}]', ], 'GetRedeemCodes' => [ 'summary' => '获取渠道兑换码', 'methods' => [ 'get', ], 'schemes' => [ 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', ], 'parameters' => [ [ 'name' => 'CodeQuantity', 'in' => 'query', 'schema' => [ 'description' => '', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1', ], ], [ 'name' => 'BenefitId', 'in' => 'query', 'schema' => [ 'description' => '', 'type' => 'string', 'required' => true, 'example' => '6a79****'."\n", ], ], [ 'name' => 'RequestToken', 'in' => 'query', 'schema' => [ 'description' => '', 'type' => 'string', 'required' => true, 'example' => '8789d7271c36979****'."\n", ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => '', 'type' => 'object', 'properties' => [ 'RequestId' => [ 'title' => 'Id of the request', 'description' => '', 'type' => 'string', 'example' => '25BB1CE-6B47-12DC-9FE6-03726****'."\n", ], 'RedeemCodes' => [ 'description' => '', 'type' => 'array', 'items' => [ 'description' => '', 'type' => 'string', 'example' => '068c8-55a1a-*****', ], ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"25BB1CE-6B47-12DC-9FE6-03726****\\",\\n \\"RedeemCodes\\": [\\n \\"068c8-55a1a-*****\\"\\n ]\\n}","type":"json"}]', ], 'GetRequestToken' => [ 'summary' => '获取渠道接口操作凭证', 'methods' => [ 'get', ], 'schemes' => [ 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', ], 'parameters' => [ [ 'name' => 'ChannelId', 'in' => 'query', 'schema' => [ 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'wuying****', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => '', 'type' => 'object', 'properties' => [ 'RequestId' => [ 'title' => 'Id of the request', 'description' => '', 'type' => 'string', 'example' => '25BB1CE-6B47-12DC-9FE6-03726****', ], 'RequestToken' => [ 'description' => '', 'type' => 'string', 'example' => '8789d7271c36979****', ], ], ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"25BB1CE-6B47-12DC-9FE6-03726****\\",\\n \\"RequestToken\\": \\"8789d7271c36979****\\"\\n}","type":"json"}]', ], ], 'endpoints' => [ [ 'regionId' => 'ap-northeast-1', 'endpoint' => 'ecd.ap-northeast-1.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-1', 'endpoint' => 'ecd.ap-southeast-1.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-5', 'endpoint' => 'ecd.ap-southeast-5.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-6', 'endpoint' => 'ecd.ap-southeast-6.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-7', 'endpoint' => 'ecd.ap-southeast-7.aliyuncs.com', ], [ 'regionId' => 'cn-beijing', 'endpoint' => 'ecd.cn-beijing.aliyuncs.com', ], [ 'regionId' => 'cn-chengdu', 'endpoint' => 'ecd.cn-chengdu.aliyuncs.com', ], [ 'regionId' => 'cn-guangzhou', 'endpoint' => 'ecd.cn-guangzhou.aliyuncs.com', ], [ 'regionId' => 'cn-hangzhou', 'endpoint' => 'ecd.cn-hangzhou.aliyuncs.com', ], [ 'regionId' => 'cn-hongkong', 'endpoint' => 'ecd.cn-hongkong.aliyuncs.com', ], [ 'regionId' => 'cn-nanjing', 'endpoint' => 'ecd.cn-nanjing.aliyuncs.com', ], [ 'regionId' => 'cn-qingdao', 'endpoint' => 'ecd.cn-qingdao.aliyuncs.com', ], [ 'regionId' => 'cn-shanghai', 'endpoint' => 'ecd.cn-shanghai.aliyuncs.com', ], [ 'regionId' => 'cn-shenzhen', 'endpoint' => 'ecd.cn-shenzhen.aliyuncs.com', ], [ 'regionId' => 'cn-wulanchabu', 'endpoint' => 'ecd.cn-wulanchabu.aliyuncs.com', ], [ 'regionId' => 'cn-zhangjiakou', 'endpoint' => 'ecd.cn-zhangjiakou.aliyuncs.com', ], [ 'regionId' => 'us-west-1', 'endpoint' => 'ecd.us-west-1.aliyuncs.com', ], [ 'regionId' => 'eu-west-1', 'endpoint' => 'ecd.eu-west-1.aliyuncs.com', ], [ 'regionId' => 'eu-central-1', 'endpoint' => 'ecd.eu-central-1.aliyuncs.com', ], [ 'regionId' => 'me-central-1', 'endpoint' => 'ecd.me-central-1.aliyuncs.com', ], [ 'regionId' => 'cn-shanghai-finance-1', 'endpoint' => 'ecd.cn-shanghai-finance-1.aliyuncs.com', ], [ 'regionId' => 'cn-hangzhou-finance', 'endpoint' => 'ecd.cn-hangzhou-finance.aliyuncs.com', ], [ 'regionId' => 'me-east-1', 'endpoint' => 'ecd.me-east-1.aliyuncs.com', ], ], ];