diff options
Diffstat (limited to 'data/alimt')
| -rw-r--r-- | data/alimt/2018-08-07/api-docs.php | 334 | ||||
| -rw-r--r-- | data/alimt/2018-10-12/api-docs.php | 1333 | ||||
| -rw-r--r-- | data/alimt/2019-01-02/api-docs.php | 320 | ||||
| -rw-r--r-- | data/alimt/2019-01-07/api-docs.php | 346 |
4 files changed, 557 insertions, 1776 deletions
diff --git a/data/alimt/2018-08-07/api-docs.php b/data/alimt/2018-08-07/api-docs.php index 9423833..ef19e57 100644 --- a/data/alimt/2018-08-07/api-docs.php +++ b/data/alimt/2018-08-07/api-docs.php @@ -1,22 +1,13 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'alimt', - 'version' => '2018-08-07', - ], + 'info' => ['style' => 'RPC', 'product' => 'alimt', 'version' => '2018-08-07'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'MachineTranslateECommerce' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -26,45 +17,28 @@ [ 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'ContentFormat', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'MachineTranslateGeneral' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -74,254 +48,80 @@ [ 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'ContentFormat', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'me-central-1', - 'endpoint' => 'mt.me-central-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-2-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-south-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-2', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-gov-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-nu16-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-edge-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-fujian', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-haidian-cm12-c01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-bj-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-finance', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-prod-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-2', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-3', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-test-306', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong-finance-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-north-2-gov-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao-nebula', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et15-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et2-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-inner', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-internal-test-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-inner', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-st4-d01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-su18-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wuhan', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-yushanfang', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangbei-na61-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou-na62-a01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhengzhou-nebula-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1-oxs', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'endpoint' => 'alimt.me-east-1.aliyuncs.com', - ], - [ - 'regionId' => 'rus-west-1-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'mt.aliyuncs.com', - ], + ['regionId' => 'me-central-1', 'endpoint' => 'mt.me-central-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'ap-northeast-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-northeast-2-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-south-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-southeast-2', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-gov-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-nu16-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-edge-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-fujian', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-haidian-cm12-c01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-bj-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-finance', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-prod-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-2', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-3', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-test-306', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hongkong-finance-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-huhehaote', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-north-2-gov-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-qingdao', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-qingdao-nebula', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-et15-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-et2-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-inner', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-internal-test-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-finance-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-inner', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-st4-d01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-su18-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-wuhan', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-yushanfang', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhangbei-na61-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou-na62-a01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhengzhou-nebula-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'eu-west-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'eu-west-1-oxs', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'me-east-1', 'endpoint' => 'alimt.me-east-1.aliyuncs.com'], + ['regionId' => 'rus-west-1-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'us-east-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'us-west-1', 'endpoint' => 'mt.aliyuncs.com'], ], ]; diff --git a/data/alimt/2018-10-12/api-docs.php b/data/alimt/2018-10-12/api-docs.php index ffda896..d596d62 100644 --- a/data/alimt/2018-10-12/api-docs.php +++ b/data/alimt/2018-10-12/api-docs.php @@ -1,23 +1,13 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'alimt', - 'version' => '2018-10-12', - ], + 'info' => ['style' => 'RPC', 'product' => 'alimt', 'version' => '2018-10-12'], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'TranslateGeneral' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateAsyncTranslate' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -29,203 +19,136 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'FormatType', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Scene', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Context', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'FormatType', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'ApiType', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'Translate' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateDocTranslateTask' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], - [ - 'BearerToken' => [], - ], ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'FormatType', + 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'SourceLanguage', + 'name' => 'FileUrl', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'SourceText', + 'name' => 'Scene', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'maxLength' => 256000, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Scene', + 'name' => 'CallbackUrl', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Context', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'ClientToken', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'TranslateECommerce' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateImageTranslateTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], - [ - 'BearerToken' => [], - ], ], - 'deprecated' => true, + 'deprecated' => false, 'parameters' => [ [ - 'name' => 'FormatType', + 'name' => 'UrlList', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'TargetLanguage', + 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'SourceLanguage', + 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'SourceText', + 'name' => 'Extra', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Scene', + 'name' => 'ClientToken', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'GetAsyncTranslate' => [ + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'Context', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'AK' => [], + ], + ], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'JobId', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'GetBatchTranslate' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -236,128 +159,93 @@ [ 'name' => 'FormatType', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Scene', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'ApiType', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'CreateAsyncTranslate' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', - ], + 'GetDetectLanguage' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], - [ - 'BearerToken' => [], - ], ], - 'deprecated' => false, 'parameters' => [ [ - 'name' => 'SourceLanguage', + 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'GetDocTranslateTask' => [ + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'TargetLanguage', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'AK' => [], ], + ], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'SourceText', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'TaskId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'GetImageDiagnose' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'Scene', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'AK' => [], ], + ], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'FormatType', + 'name' => 'Url', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'ApiType', + 'name' => 'Extra', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'GetAsyncTranslate' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetImageTranslate' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -366,117 +254,84 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'JobId', + 'name' => 'Url', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'SourceLanguage', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'TargetLanguage', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'Extra', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'GetDetectLanguage' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetImageTranslateTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'deprecated' => false, 'parameters' => [ [ - 'name' => 'SourceText', + 'name' => 'TaskId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'TranslateImage' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetTitleDiagnose' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], - [ - 'BearerToken' => [], - ], ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ImageUrl', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'ImageBase64', + 'name' => 'Title', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'SourceLanguage', + 'name' => 'Language', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'TargetLanguage', + 'name' => 'Platform', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Field', + 'name' => 'CategoryId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Ext', + 'name' => 'Extra', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'TranslateImageBatch' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetTitleGenerate' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -485,89 +340,45 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ImageUrls', + 'name' => 'Title', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'SourceLanguage', + 'name' => 'Language', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'TargetLanguage', + 'name' => 'Platform', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Ext', + 'name' => 'CategoryId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'CustomTaskId', + 'name' => 'HotWords', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Field', + 'name' => 'Attributes', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'GetTranslateImageBatchResult' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + 'schema' => ['type' => 'string', 'required' => false], ], - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'TaskId', + 'name' => 'Extra', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CreateDocTranslateTask' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetTitleIntelligence' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -576,63 +387,35 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'SourceLanguage', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'TargetLanguage', + 'name' => 'Platform', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'FileUrl', + 'name' => 'Extra', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Scene', + 'name' => 'CatLevelThreeId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'minimum' => '0', 'maximum' => '99999999999'], ], [ - 'name' => 'CallbackUrl', + 'name' => 'CatLevelTwoId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'minimum' => '0', 'maximum' => '99999999999'], ], [ - 'name' => 'ClientToken', + 'name' => 'Keywords', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'GetDocTranslateTask' => [ - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetTranslateImageBatchResult' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -642,529 +425,333 @@ 'parameters' => [ [ 'name' => 'TaskId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'TranslateCertificate' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetTranslateReport' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], - [ - 'BearerToken' => [], - ], ], - 'deprecated' => false, 'parameters' => [ [ - 'name' => 'SourceLanguage', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'TargetLanguage', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'BeginTime', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'ImageUrl', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'CertificateType', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'ApiName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'ResultType', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'Group', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetImageTranslate' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'OpenAlimtService' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'Url', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'APP' => [], ], [ - 'name' => 'SourceLanguage', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'PrivateKey' => [], ], [ - 'name' => 'TargetLanguage', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'BearerToken' => [], ], + ], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'Extra', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'Type', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CreateImageTranslateTask' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'Translate' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], + [ + 'BearerToken' => [], + ], ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'UrlList', + 'name' => 'FormatType', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'SourceLanguage', + 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'TargetLanguage', + 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Extra', + 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true, 'maxLength' => 256000], ], [ - 'name' => 'ClientToken', + 'name' => 'Scene', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'Context', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'GetImageTranslateTask' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'TranslateCertificate' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], + [ + 'BearerToken' => [], + ], ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'TaskId', + 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], - ], - ], - 'GetImageDiagnose' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'TargetLanguage', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'Url', + 'name' => 'ImageUrl', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Extra', + 'name' => 'CertificateType', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'ResultType', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'GetTitleDiagnose' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'TranslateECommerce' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], + [ + 'BearerToken' => [], + ], ], - 'deprecated' => false, + 'deprecated' => true, 'parameters' => [ [ - 'name' => 'Title', + 'name' => 'FormatType', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Language', + 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Platform', + 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'CategoryId', + 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Extra', + 'name' => 'Scene', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'Context', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'GetTitleGenerate' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'TranslateGeneral' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], + [ + 'BearerToken' => [], + ], ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'Title', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'Language', + 'name' => 'FormatType', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Platform', + 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'CategoryId', + 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'HotWords', + 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Attributes', + 'name' => 'Scene', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Extra', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'Context', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'GetTitleIntelligence' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'TranslateImage' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], + [ + 'BearerToken' => [], + ], ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'Platform', + 'name' => 'ImageUrl', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Extra', + 'name' => 'ImageBase64', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'CatLevelThreeId', + 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'minimum' => '0', - 'maximum' => '99999999999', - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'CatLevelTwoId', + 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'minimum' => '0', - 'maximum' => '99999999999', - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Keywords', + 'name' => 'Field', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Ext', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'OpenAlimtService' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'TranslateImageBatch' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], - [ - 'APP' => [], - ], - [ - 'PrivateKey' => [], - ], - [ - 'BearerToken' => [], - ], ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'Type', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'ImageUrls', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], - ], - ], - 'GetTranslateReport' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'SourceLanguage', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], - ], - 'parameters' => [ [ - 'name' => 'BeginTime', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'TargetLanguage', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'EndTime', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'Ext', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'ApiName', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'CustomTaskId', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'Group', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'Field', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'TranslateSearch' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -1175,262 +762,56 @@ [ 'name' => 'FormatType', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Scene', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'me-central-1', - 'endpoint' => 'mt.me-central-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-2-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-south-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-2', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-gov-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-nu16-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-edge-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-fujian', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-haidian-cm12-c01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-bj-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-finance', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-prod-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-2', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-3', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-test-306', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong-finance-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-north-2-gov-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao-nebula', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et15-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et2-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-inner', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-internal-test-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-inner', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-st4-d01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-su18-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wuhan', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-yushanfang', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangbei-na61-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou-na62-a01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhengzhou-nebula-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1-oxs', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'endpoint' => 'alimt.me-east-1.aliyuncs.com', - ], - [ - 'regionId' => 'rus-west-1-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'mt.aliyuncs.com', - ], + ['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.ap-southeast-1.aliyuncs.com', 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com', 'vpc' => 'mt-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-2', 'regionName' => '澳大利亚(悉尼)已关停', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => 'mt-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.cn-hangzhou.aliyuncs.com', 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com', 'vpc' => 'mt-inner.vpc-proxy.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => 'mt-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => 'mt-inner.vpc-proxy.aliyuncs.com'], + ['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'me-east-1', 'regionName' => '阿联酋(迪拜)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'alimt.me-east-1.aliyuncs.com', 'endpoint' => 'alimt.me-east-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'me-central-1', 'regionName' => '沙特(利雅得)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'mt.me-central-1.aliyuncs.com', 'endpoint' => 'mt.me-central-1.aliyuncs.com', 'vpc' => 'mt-vpc.me-central-1.aliyuncs.com'], + ['regionId' => 'ap-south-1', 'regionName' => '印度(孟买)已关停', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shenzhen-finance-1', 'regionName' => '华南1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-north-2-gov-1', 'regionName' => '北京政务云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-beijing-finance-1', 'regionName' => '华北2 金融云(邀测)', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], ], ]; diff --git a/data/alimt/2019-01-02/api-docs.php b/data/alimt/2019-01-02/api-docs.php index 372f055..9a75c21 100644 --- a/data/alimt/2019-01-02/api-docs.php +++ b/data/alimt/2019-01-02/api-docs.php @@ -1,24 +1,14 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'alimt', - 'version' => '2019-01-02', - ], + 'info' => ['style' => 'ROA', 'product' => 'alimt', 'version' => '2019-01-02'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'TranslateECommerce' => [ 'path' => '/api/translate/web/ecommerce', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -28,14 +18,8 @@ ], 'TranslateGeneral' => [ 'path' => '/api/translate/web/general', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -45,14 +29,8 @@ ], 'GetResource' => [ 'path' => '/api/resource', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -63,13 +41,8 @@ ], 'ListMtConnector' => [ 'path' => '/api/alynx/listMtModels', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -80,230 +53,65 @@ [ 'name' => 'UserId', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'schema' => ['type' => 'integer', 'format' => 'int64'], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'me-central-1', - 'endpoint' => 'mt.me-central-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-2-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-south-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-2', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-gov-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-nu16-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-edge-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-fujian', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-haidian-cm12-c01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-bj-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-finance', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-prod-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-2', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-3', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-test-306', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong-finance-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-north-2-gov-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao-nebula', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et15-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et2-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-inner', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-internal-test-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-inner', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-st4-d01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-su18-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wuhan', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-yushanfang', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangbei-na61-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou-na62-a01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhengzhou-nebula-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1-oxs', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'endpoint' => 'alimt.me-east-1.aliyuncs.com', - ], - [ - 'regionId' => 'rus-west-1-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'mt.aliyuncs.com', - ], + ['regionId' => 'me-central-1', 'endpoint' => 'mt.me-central-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'ap-northeast-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-northeast-2-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-south-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-southeast-2', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-gov-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-nu16-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-edge-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-fujian', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-haidian-cm12-c01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-bj-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-finance', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-prod-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-2', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-3', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-test-306', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hongkong-finance-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-huhehaote', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-north-2-gov-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-qingdao', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-qingdao-nebula', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-et15-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-et2-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-inner', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-internal-test-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-finance-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-inner', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-st4-d01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-su18-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-wuhan', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-yushanfang', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhangbei-na61-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou-na62-a01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhengzhou-nebula-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'eu-west-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'eu-west-1-oxs', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'me-east-1', 'endpoint' => 'alimt.me-east-1.aliyuncs.com'], + ['regionId' => 'rus-west-1-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'us-east-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'us-west-1', 'endpoint' => 'mt.aliyuncs.com'], ], ]; diff --git a/data/alimt/2019-01-07/api-docs.php b/data/alimt/2019-01-07/api-docs.php index 36961c6..d66af8f 100644 --- a/data/alimt/2019-01-07/api-docs.php +++ b/data/alimt/2019-01-07/api-docs.php @@ -1,23 +1,13 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'alimt', - 'version' => '2019-01-07', - ], + 'info' => ['style' => 'RPC', 'product' => 'alimt', 'version' => '2019-01-07'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'TranslateECommerce' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -28,54 +18,33 @@ [ 'name' => 'FormatType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'TargetLanguage', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SourceLanguage', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SourceText', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Scene', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'TranslateGeneral' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -85,262 +54,85 @@ [ 'name' => 'FormatType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SourceLanguage', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'TargetLanguage', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SourceText', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Scene', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'me-central-1', - 'endpoint' => 'mt.me-central-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-2-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-south-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-2', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-gov-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-nu16-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-edge-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-fujian', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-haidian-cm12-c01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-bj-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-finance', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-prod-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-2', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-3', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-test-306', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong-finance-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-north-2-gov-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao-nebula', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et15-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et2-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-inner', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-internal-test-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-inner', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-st4-d01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-su18-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wuhan', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-yushanfang', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangbei-na61-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou-na62-a01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhengzhou-nebula-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1-oxs', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'endpoint' => 'alimt.me-east-1.aliyuncs.com', - ], - [ - 'regionId' => 'rus-west-1-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'mt.aliyuncs.com', - ], + ['regionId' => 'me-central-1', 'endpoint' => 'mt.me-central-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'ap-northeast-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-northeast-2-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-south-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-southeast-2', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-gov-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-beijing-nu16-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-edge-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-fujian', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-haidian-cm12-c01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-bj-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-finance', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-prod-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-2', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-internal-test-3', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-test-306', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-hongkong-finance-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-huhehaote', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-north-2-gov-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-qingdao', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-qingdao-nebula', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-et15-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-et2-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-inner', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shanghai-internal-test-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-finance-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-inner', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-st4-d01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-su18-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-wuhan', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-yushanfang', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhangbei-na61-b01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou-na62-a01', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'cn-zhengzhou-nebula-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'eu-west-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'eu-west-1-oxs', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'me-east-1', 'endpoint' => 'alimt.me-east-1.aliyuncs.com'], + ['regionId' => 'rus-west-1-pop', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'us-east-1', 'endpoint' => 'mt.aliyuncs.com'], + ['regionId' => 'us-west-1', 'endpoint' => 'mt.aliyuncs.com'], ], ]; |
