Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit 8a1946a

Browse files
wenzuochaoJacksonTian
authored andcommitted
update OpenAPI
1 parent 885cc99 commit 8a1946a

File tree

2 files changed

+95
-1
lines changed

2 files changed

+95
-1
lines changed

CloudAPI-2016-07-01/lib/client.js

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ class Client extends RPCClient {
147147
* @param {String} ResultBodyModel - apiResultBodyModel. optional.
148148
* @param {Boolean} ForceNonceCheck - forceNonceCheck. optional.
149149
* @param {Boolean} DisableInternet - disableInternet. optional.
150+
* @param {String} AppCodeAuthType - appCodeAuthType. optional.
150151
*/
151152
createApi(params = {}, options = {}) {
152153
if (!hasOwnProperty(params, 'GroupId')) {
@@ -177,6 +178,7 @@ class Client extends RPCClient {
177178
* @param {String} AccessKeyId - accessKeyId. optional.
178179
* @param {String} GroupName - groupName. required.
179180
* @param {String} Description - description. optional.
181+
* @param {String} InstanceId - instanceId. optional.
180182
*/
181183
createApiGroup(params = {}, options = {}) {
182184
if (!hasOwnProperty(params, 'GroupName')) {
@@ -374,6 +376,7 @@ class Client extends RPCClient {
374376
* @param {String} PluginType - pluginType. required.
375377
* @param {String} PluginData - pluginData. required.
376378
* @param {String} Description - description. optional.
379+
* @param {RepeatList} Tag - tags. optional.
377380
*/
378381
createPlugin(params = {}, options = {}) {
379382
if (!hasOwnProperty(params, 'PluginName')) {
@@ -595,6 +598,17 @@ class Client extends RPCClient {
595598
return this.request('DeleteDomainCertificate', params, options);
596599
}
597600

601+
/**
602+
* @param {String} InstanceId - instanceId. required.
603+
*/
604+
deleteInstance(params = {}, options = {}) {
605+
if (!hasOwnProperty(params, 'InstanceId')) {
606+
throw new TypeError('parameter "InstanceId" is required');
607+
}
608+
609+
return this.request('DeleteInstance', params, options);
610+
}
611+
598612
/**
599613
* @param {String} SecurityToken - securityToken. optional.
600614
* @param {String} AccessKeyId - accessKeyId. optional.
@@ -869,6 +883,9 @@ class Client extends RPCClient {
869883
* @param {String} GroupName - groupName. optional.
870884
* @param {Integer} PageNumber - pageNumber. optional.
871885
* @param {Integer} PageSize - pageSize. optional.
886+
* @param {Boolean} NotClassic - notClassic. optional.
887+
* @param {Boolean} EnableTagAuth - enableTagAuth. optional.
888+
* @param {RepeatList} Tag - tags. optional.
872889
*/
873890
describeApiGroups(params = {}, options = {}) {
874891
return this.request('DescribeApiGroups', params, options);
@@ -1164,6 +1181,8 @@ class Client extends RPCClient {
11641181
* @param {String} AppName - appName. optional.
11651182
* @param {Integer} PageNumber - pageNumber. optional. default: 1.
11661183
* @param {Integer} PageSize - pageSize. optional. default: 10.
1184+
* @param {Boolean} EnableTagAuth - enableTagAuth. optional.
1185+
* @param {RepeatList} Tag - tags. optional.
11671186
*/
11681187
describeApps(params = {}, options = {}) {
11691188
return this.request('DescribeApps', params, options);
@@ -1350,6 +1369,16 @@ class Client extends RPCClient {
13501369
return this.request('DescribeHistoryApis', params, options);
13511370
}
13521371

1372+
/**
1373+
* @param {String} SecurityToken - securityToken. optional.
1374+
* @param {String} AccessKeyId - accessKeyId. optional.
1375+
* @param {String} InstanceId - instanceId. optional.
1376+
* @param {String} Language - language. optional.
1377+
*/
1378+
describeInstances(params = {}, options = {}) {
1379+
return this.request('DescribeInstances', params, options);
1380+
}
1381+
13531382
/**
13541383
* @param {String} SecurityToken - securityToken. optional.
13551384
* @param {String} AccessKeyId - accessKeyId. optional.
@@ -1624,6 +1653,18 @@ class Client extends RPCClient {
16241653
return this.request('DetachPlugin', params, options);
16251654
}
16261655

1656+
/**
1657+
* @param {String} DataFormat - dataFormat. optional.
1658+
* @param {String} ApiUid - apiUid. required.
1659+
*/
1660+
exportSwagger(params = {}, options = {}) {
1661+
if (!hasOwnProperty(params, 'ApiUid')) {
1662+
throw new TypeError('parameter "ApiUid" is required');
1663+
}
1664+
1665+
return this.request('ExportSwagger', params, options);
1666+
}
1667+
16271668
/**
16281669
* @param {String} SecurityToken - securityToken. optional.
16291670
* @param {String} AccessKeyId - accessKeyId. optional.
@@ -1716,6 +1757,7 @@ class Client extends RPCClient {
17161757
* @param {String} ResultBodyModel - apiResultBodyModel. optional.
17171758
* @param {Boolean} ForceNonceCheck - forceNonceCheck. optional.
17181759
* @param {Boolean} DisableInternet - disableInternet. optional.
1760+
* @param {String} AppCodeAuthType - appCodeAuthType. optional.
17191761
*/
17201762
modifyApi(params = {}, options = {}) {
17211763
if (!hasOwnProperty(params, 'ApiName')) {
@@ -1762,6 +1804,8 @@ class Client extends RPCClient {
17621804
* @param {String} GroupId - groupId. required.
17631805
* @param {String} TargetInstanceId - targetInstanceId. required.
17641806
* @param {String} Remark - remark. optional.
1807+
* @param {Boolean} ReduceRpsLimit - reduceRpsLimit. optional.
1808+
* @param {Boolean} DryRun - dryRun. optional.
17651809
*/
17661810
modifyApiGroupInstance(params = {}, options = {}) {
17671811
if (!hasOwnProperty(params, 'GroupId')) {
@@ -1806,6 +1850,37 @@ class Client extends RPCClient {
18061850
return this.request('ModifyApp', params, options);
18071851
}
18081852

1853+
/**
1854+
* @param {String} InstanceId - instanceId. required.
1855+
* @param {String} InstanceName - instanceName. optional.
1856+
* @param {String} HttpsPolicy - httpPolicy. optional.
1857+
* @param {String} Token - token. optional.
1858+
*/
1859+
modifyInstanceAttribute(params = {}, options = {}) {
1860+
if (!hasOwnProperty(params, 'InstanceId')) {
1861+
throw new TypeError('parameter "InstanceId" is required');
1862+
}
1863+
1864+
return this.request('ModifyInstanceAttribute', params, options);
1865+
}
1866+
1867+
/**
1868+
* @param {String} InstanceId - instanceId. required.
1869+
* @param {String} VpcId - vpcId. required.
1870+
* @param {String} Token - token. optional.
1871+
*/
1872+
modifyInstanceVpcAttribute(params = {}, options = {}) {
1873+
if (!hasOwnProperty(params, 'InstanceId')) {
1874+
throw new TypeError('parameter "InstanceId" is required');
1875+
}
1876+
1877+
if (!hasOwnProperty(params, 'VpcId')) {
1878+
throw new TypeError('parameter "VpcId" is required');
1879+
}
1880+
1881+
return this.request('ModifyInstanceVpcAttribute', params, options);
1882+
}
1883+
18091884
/**
18101885
* @param {String} SecurityToken - securityToken. optional.
18111886
* @param {String} AccessKeyId - accessKeyId. optional.
@@ -2503,6 +2578,25 @@ class Client extends RPCClient {
25032578
return this.request('SetMockIntegration', params, options);
25042579
}
25052580

2581+
/**
2582+
* @param {String} SecurityToken - securityToken. optional.
2583+
* @param {String} AccessKeyId - accessKeyId. optional.
2584+
* @param {String} GroupId - groupId. required.
2585+
* @param {String} DomainName - domainName. required.
2586+
* @param {String} WildcardDomainPatterns - wildcardDomainPatternsParam. optional.
2587+
*/
2588+
setWildcardDomainPatterns(params = {}, options = {}) {
2589+
if (!hasOwnProperty(params, 'GroupId')) {
2590+
throw new TypeError('parameter "GroupId" is required');
2591+
}
2592+
2593+
if (!hasOwnProperty(params, 'DomainName')) {
2594+
throw new TypeError('parameter "DomainName" is required');
2595+
}
2596+
2597+
return this.request('SetWildcardDomainPatterns', params, options);
2598+
}
2599+
25062600
/**
25072601
* @param {String} SecurityToken - securityToken. optional.
25082602
* @param {String} AccessKeyId - accessKeyId. optional.

CloudAPI-2016-07-01/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/cloudapi-2016-07-01",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "CloudAPI 2016-07-01 Node.js SDK",
55
"main": "lib/client.js",
66
"scripts": {},

0 commit comments

Comments
 (0)