@alicloud/cloudapi20160714 2.2.4 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cloudapi20160714",
3
- "version": "2.2.4",
3
+ "version": "2.2.7",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  "typescript": "^3.7.5"
20
20
  },
21
21
  "dependencies": {
22
- "@alicloud/tea-typescript": "latest",
22
+ "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.4",
24
24
  "@alicloud/openapi-client": "^0.4.1",
25
25
  "@alicloud/openapi-util": "^0.2.9",
package/src/client.ts CHANGED
@@ -3829,6 +3829,7 @@ export class DescribeApiGroupResponseBody extends $tea.Model {
3829
3829
  basePath?: string;
3830
3830
  billingStatus?: string;
3831
3831
  classicVpcSubDomain?: string;
3832
+ cloudMarketCommodity?: boolean;
3832
3833
  cmsMonitorGroup?: string;
3833
3834
  compatibleFlags?: string;
3834
3835
  createdTime?: string;
@@ -3862,6 +3863,7 @@ export class DescribeApiGroupResponseBody extends $tea.Model {
3862
3863
  basePath: 'BasePath',
3863
3864
  billingStatus: 'BillingStatus',
3864
3865
  classicVpcSubDomain: 'ClassicVpcSubDomain',
3866
+ cloudMarketCommodity: 'CloudMarketCommodity',
3865
3867
  cmsMonitorGroup: 'CmsMonitorGroup',
3866
3868
  compatibleFlags: 'CompatibleFlags',
3867
3869
  createdTime: 'CreatedTime',
@@ -3898,6 +3900,7 @@ export class DescribeApiGroupResponseBody extends $tea.Model {
3898
3900
  basePath: 'string',
3899
3901
  billingStatus: 'string',
3900
3902
  classicVpcSubDomain: 'string',
3903
+ cloudMarketCommodity: 'boolean',
3901
3904
  cmsMonitorGroup: 'string',
3902
3905
  compatibleFlags: 'string',
3903
3906
  createdTime: 'string',
@@ -4996,7 +4999,9 @@ export class DescribeApiTrafficDataResponse extends $tea.Model {
4996
4999
 
4997
5000
  export class DescribeApisRequest extends $tea.Model {
4998
5001
  apiId?: string;
5002
+ apiMethod?: string;
4999
5003
  apiName?: string;
5004
+ apiPath?: string;
5000
5005
  catalogId?: string;
5001
5006
  enableTagAuth?: boolean;
5002
5007
  groupId?: string;
@@ -5004,11 +5009,14 @@ export class DescribeApisRequest extends $tea.Model {
5004
5009
  pageSize?: number;
5005
5010
  securityToken?: string;
5006
5011
  tag?: DescribeApisRequestTag[];
5012
+ unDeployed?: boolean;
5007
5013
  visibility?: string;
5008
5014
  static names(): { [key: string]: string } {
5009
5015
  return {
5010
5016
  apiId: 'ApiId',
5017
+ apiMethod: 'ApiMethod',
5011
5018
  apiName: 'ApiName',
5019
+ apiPath: 'ApiPath',
5012
5020
  catalogId: 'CatalogId',
5013
5021
  enableTagAuth: 'EnableTagAuth',
5014
5022
  groupId: 'GroupId',
@@ -5016,6 +5024,7 @@ export class DescribeApisRequest extends $tea.Model {
5016
5024
  pageSize: 'PageSize',
5017
5025
  securityToken: 'SecurityToken',
5018
5026
  tag: 'Tag',
5027
+ unDeployed: 'UnDeployed',
5019
5028
  visibility: 'Visibility',
5020
5029
  };
5021
5030
  }
@@ -5023,7 +5032,9 @@ export class DescribeApisRequest extends $tea.Model {
5023
5032
  static types(): { [key: string]: any } {
5024
5033
  return {
5025
5034
  apiId: 'string',
5035
+ apiMethod: 'string',
5026
5036
  apiName: 'string',
5037
+ apiPath: 'string',
5027
5038
  catalogId: 'string',
5028
5039
  enableTagAuth: 'boolean',
5029
5040
  groupId: 'string',
@@ -5031,6 +5042,7 @@ export class DescribeApisRequest extends $tea.Model {
5031
5042
  pageSize: 'number',
5032
5043
  securityToken: 'string',
5033
5044
  tag: { 'type': 'array', 'itemType': DescribeApisRequestTag },
5045
+ unDeployed: 'boolean',
5034
5046
  visibility: 'string',
5035
5047
  };
5036
5048
  }
@@ -6454,7 +6466,9 @@ export class DescribeDeployedApiResponse extends $tea.Model {
6454
6466
 
6455
6467
  export class DescribeDeployedApisRequest extends $tea.Model {
6456
6468
  apiId?: string;
6469
+ apiMethod?: string;
6457
6470
  apiName?: string;
6471
+ apiPath?: string;
6458
6472
  enableTagAuth?: boolean;
6459
6473
  groupId?: string;
6460
6474
  pageNumber?: number;
@@ -6465,7 +6479,9 @@ export class DescribeDeployedApisRequest extends $tea.Model {
6465
6479
  static names(): { [key: string]: string } {
6466
6480
  return {
6467
6481
  apiId: 'ApiId',
6482
+ apiMethod: 'ApiMethod',
6468
6483
  apiName: 'ApiName',
6484
+ apiPath: 'ApiPath',
6469
6485
  enableTagAuth: 'EnableTagAuth',
6470
6486
  groupId: 'GroupId',
6471
6487
  pageNumber: 'PageNumber',
@@ -6479,7 +6495,9 @@ export class DescribeDeployedApisRequest extends $tea.Model {
6479
6495
  static types(): { [key: string]: any } {
6480
6496
  return {
6481
6497
  apiId: 'string',
6498
+ apiMethod: 'string',
6482
6499
  apiName: 'string',
6500
+ apiPath: 'string',
6483
6501
  enableTagAuth: 'boolean',
6484
6502
  groupId: 'string',
6485
6503
  pageNumber: 'number',
@@ -9876,6 +9894,7 @@ export class ModifyInstanceSpecRequest extends $tea.Model {
9876
9894
  instanceId?: string;
9877
9895
  instanceSpec?: string;
9878
9896
  modifyAction?: string;
9897
+ skipWaitSwitch?: boolean;
9879
9898
  token?: string;
9880
9899
  static names(): { [key: string]: string } {
9881
9900
  return {
@@ -9883,6 +9902,7 @@ export class ModifyInstanceSpecRequest extends $tea.Model {
9883
9902
  instanceId: 'InstanceId',
9884
9903
  instanceSpec: 'InstanceSpec',
9885
9904
  modifyAction: 'ModifyAction',
9905
+ skipWaitSwitch: 'SkipWaitSwitch',
9886
9906
  token: 'Token',
9887
9907
  };
9888
9908
  }
@@ -9893,6 +9913,7 @@ export class ModifyInstanceSpecRequest extends $tea.Model {
9893
9913
  instanceId: 'string',
9894
9914
  instanceSpec: 'string',
9895
9915
  modifyAction: 'string',
9916
+ skipWaitSwitch: 'boolean',
9896
9917
  token: 'string',
9897
9918
  };
9898
9919
  }
@@ -10483,6 +10504,96 @@ export class ModifyTrafficControlResponse extends $tea.Model {
10483
10504
  }
10484
10505
  }
10485
10506
 
10507
+ export class ModifyVpcAccessAndUpdateApisRequest extends $tea.Model {
10508
+ instanceId?: string;
10509
+ name?: string;
10510
+ needBatchWork?: boolean;
10511
+ port?: number;
10512
+ refresh?: boolean;
10513
+ securityToken?: string;
10514
+ token?: string;
10515
+ vpcId?: string;
10516
+ vpcTargetHostName?: string;
10517
+ static names(): { [key: string]: string } {
10518
+ return {
10519
+ instanceId: 'InstanceId',
10520
+ name: 'Name',
10521
+ needBatchWork: 'NeedBatchWork',
10522
+ port: 'Port',
10523
+ refresh: 'Refresh',
10524
+ securityToken: 'SecurityToken',
10525
+ token: 'Token',
10526
+ vpcId: 'VpcId',
10527
+ vpcTargetHostName: 'VpcTargetHostName',
10528
+ };
10529
+ }
10530
+
10531
+ static types(): { [key: string]: any } {
10532
+ return {
10533
+ instanceId: 'string',
10534
+ name: 'string',
10535
+ needBatchWork: 'boolean',
10536
+ port: 'number',
10537
+ refresh: 'boolean',
10538
+ securityToken: 'string',
10539
+ token: 'string',
10540
+ vpcId: 'string',
10541
+ vpcTargetHostName: 'string',
10542
+ };
10543
+ }
10544
+
10545
+ constructor(map?: { [key: string]: any }) {
10546
+ super(map);
10547
+ }
10548
+ }
10549
+
10550
+ export class ModifyVpcAccessAndUpdateApisResponseBody extends $tea.Model {
10551
+ operationId?: string;
10552
+ requestId?: string;
10553
+ static names(): { [key: string]: string } {
10554
+ return {
10555
+ operationId: 'OperationId',
10556
+ requestId: 'RequestId',
10557
+ };
10558
+ }
10559
+
10560
+ static types(): { [key: string]: any } {
10561
+ return {
10562
+ operationId: 'string',
10563
+ requestId: 'string',
10564
+ };
10565
+ }
10566
+
10567
+ constructor(map?: { [key: string]: any }) {
10568
+ super(map);
10569
+ }
10570
+ }
10571
+
10572
+ export class ModifyVpcAccessAndUpdateApisResponse extends $tea.Model {
10573
+ headers: { [key: string]: string };
10574
+ statusCode: number;
10575
+ body: ModifyVpcAccessAndUpdateApisResponseBody;
10576
+ static names(): { [key: string]: string } {
10577
+ return {
10578
+ headers: 'headers',
10579
+ statusCode: 'statusCode',
10580
+ body: 'body',
10581
+ };
10582
+ }
10583
+
10584
+ static types(): { [key: string]: any } {
10585
+ return {
10586
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
10587
+ statusCode: 'number',
10588
+ body: ModifyVpcAccessAndUpdateApisResponseBody,
10589
+ };
10590
+ }
10591
+
10592
+ constructor(map?: { [key: string]: any }) {
10593
+ super(map);
10594
+ }
10595
+ }
10596
+
10486
10597
  export class OpenApiGatewayServiceResponseBody extends $tea.Model {
10487
10598
  orderId?: string;
10488
10599
  requestId?: string;
@@ -12718,11 +12829,13 @@ export class BatchAbolishApisRequestApi extends $tea.Model {
12718
12829
  apiUid?: string;
12719
12830
  groupId?: string;
12720
12831
  stageId?: string;
12832
+ stageName?: string;
12721
12833
  static names(): { [key: string]: string } {
12722
12834
  return {
12723
12835
  apiUid: 'ApiUid',
12724
12836
  groupId: 'GroupId',
12725
12837
  stageId: 'StageId',
12838
+ stageName: 'StageName',
12726
12839
  };
12727
12840
  }
12728
12841
 
@@ -12731,6 +12844,7 @@ export class BatchAbolishApisRequestApi extends $tea.Model {
12731
12844
  apiUid: 'string',
12732
12845
  groupId: 'string',
12733
12846
  stageId: 'string',
12847
+ stageName: 'string',
12734
12848
  };
12735
12849
  }
12736
12850
 
@@ -15588,7 +15702,9 @@ export class DescribeApisRequestTag extends $tea.Model {
15588
15702
 
15589
15703
  export class DescribeApisResponseBodyApiSummarysApiSummary extends $tea.Model {
15590
15704
  apiId?: string;
15705
+ apiMethod?: string;
15591
15706
  apiName?: string;
15707
+ apiPath?: string;
15592
15708
  createdTime?: string;
15593
15709
  description?: string;
15594
15710
  groupId?: string;
@@ -15599,7 +15715,9 @@ export class DescribeApisResponseBodyApiSummarysApiSummary extends $tea.Model {
15599
15715
  static names(): { [key: string]: string } {
15600
15716
  return {
15601
15717
  apiId: 'ApiId',
15718
+ apiMethod: 'ApiMethod',
15602
15719
  apiName: 'ApiName',
15720
+ apiPath: 'ApiPath',
15603
15721
  createdTime: 'CreatedTime',
15604
15722
  description: 'Description',
15605
15723
  groupId: 'GroupId',
@@ -15613,7 +15731,9 @@ export class DescribeApisResponseBodyApiSummarysApiSummary extends $tea.Model {
15613
15731
  static types(): { [key: string]: any } {
15614
15732
  return {
15615
15733
  apiId: 'string',
15734
+ apiMethod: 'string',
15616
15735
  apiName: 'string',
15736
+ apiPath: 'string',
15617
15737
  createdTime: 'string',
15618
15738
  description: 'string',
15619
15739
  groupId: 'string',
@@ -16370,6 +16490,7 @@ export class DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfi
16370
16490
  vpcAccessId?: string;
16371
16491
  vpcId?: string;
16372
16492
  vpcScheme?: string;
16493
+ vpcTargetHostName?: string;
16373
16494
  static names(): { [key: string]: string } {
16374
16495
  return {
16375
16496
  instanceId: 'InstanceId',
@@ -16378,6 +16499,7 @@ export class DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfi
16378
16499
  vpcAccessId: 'VpcAccessId',
16379
16500
  vpcId: 'VpcId',
16380
16501
  vpcScheme: 'VpcScheme',
16502
+ vpcTargetHostName: 'VpcTargetHostName',
16381
16503
  };
16382
16504
  }
16383
16505
 
@@ -16389,6 +16511,7 @@ export class DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfi
16389
16511
  vpcAccessId: 'string',
16390
16512
  vpcId: 'string',
16391
16513
  vpcScheme: 'string',
16514
+ vpcTargetHostName: 'string',
16392
16515
  };
16393
16516
  }
16394
16517
 
@@ -17275,7 +17398,9 @@ export class DescribeDeployedApisRequestTag extends $tea.Model {
17275
17398
 
17276
17399
  export class DescribeDeployedApisResponseBodyDeployedApisDeployedApiItem extends $tea.Model {
17277
17400
  apiId?: string;
17401
+ apiMethod?: string;
17278
17402
  apiName?: string;
17403
+ apiPath?: string;
17279
17404
  deployedTime?: string;
17280
17405
  description?: string;
17281
17406
  groupId?: string;
@@ -17286,7 +17411,9 @@ export class DescribeDeployedApisResponseBodyDeployedApisDeployedApiItem extends
17286
17411
  static names(): { [key: string]: string } {
17287
17412
  return {
17288
17413
  apiId: 'ApiId',
17414
+ apiMethod: 'ApiMethod',
17289
17415
  apiName: 'ApiName',
17416
+ apiPath: 'ApiPath',
17290
17417
  deployedTime: 'DeployedTime',
17291
17418
  description: 'Description',
17292
17419
  groupId: 'GroupId',
@@ -17300,7 +17427,9 @@ export class DescribeDeployedApisResponseBodyDeployedApisDeployedApiItem extends
17300
17427
  static types(): { [key: string]: any } {
17301
17428
  return {
17302
17429
  apiId: 'string',
17430
+ apiMethod: 'string',
17303
17431
  apiName: 'string',
17432
+ apiPath: 'string',
17304
17433
  deployedTime: 'string',
17305
17434
  description: 'string',
17306
17435
  groupId: 'string',
@@ -22066,10 +22195,18 @@ export default class Client extends OpenApi {
22066
22195
  query["ApiId"] = request.apiId;
22067
22196
  }
22068
22197
 
22198
+ if (!Util.isUnset(request.apiMethod)) {
22199
+ query["ApiMethod"] = request.apiMethod;
22200
+ }
22201
+
22069
22202
  if (!Util.isUnset(request.apiName)) {
22070
22203
  query["ApiName"] = request.apiName;
22071
22204
  }
22072
22205
 
22206
+ if (!Util.isUnset(request.apiPath)) {
22207
+ query["ApiPath"] = request.apiPath;
22208
+ }
22209
+
22073
22210
  if (!Util.isUnset(request.catalogId)) {
22074
22211
  query["CatalogId"] = request.catalogId;
22075
22212
  }
@@ -22098,6 +22235,10 @@ export default class Client extends OpenApi {
22098
22235
  query["Tag"] = request.tag;
22099
22236
  }
22100
22237
 
22238
+ if (!Util.isUnset(request.unDeployed)) {
22239
+ query["UnDeployed"] = request.unDeployed;
22240
+ }
22241
+
22101
22242
  if (!Util.isUnset(request.visibility)) {
22102
22243
  query["Visibility"] = request.visibility;
22103
22244
  }
@@ -22794,10 +22935,18 @@ export default class Client extends OpenApi {
22794
22935
  query["ApiId"] = request.apiId;
22795
22936
  }
22796
22937
 
22938
+ if (!Util.isUnset(request.apiMethod)) {
22939
+ query["ApiMethod"] = request.apiMethod;
22940
+ }
22941
+
22797
22942
  if (!Util.isUnset(request.apiName)) {
22798
22943
  query["ApiName"] = request.apiName;
22799
22944
  }
22800
22945
 
22946
+ if (!Util.isUnset(request.apiPath)) {
22947
+ query["ApiPath"] = request.apiPath;
22948
+ }
22949
+
22801
22950
  if (!Util.isUnset(request.enableTagAuth)) {
22802
22951
  query["EnableTagAuth"] = request.enableTagAuth;
22803
22952
  }
@@ -24745,6 +24894,10 @@ export default class Client extends OpenApi {
24745
24894
  query["ModifyAction"] = request.modifyAction;
24746
24895
  }
24747
24896
 
24897
+ if (!Util.isUnset(request.skipWaitSwitch)) {
24898
+ query["SkipWaitSwitch"] = request.skipWaitSwitch;
24899
+ }
24900
+
24748
24901
  if (!Util.isUnset(request.token)) {
24749
24902
  query["Token"] = request.token;
24750
24903
  }
@@ -25094,6 +25247,67 @@ export default class Client extends OpenApi {
25094
25247
  return await this.modifyTrafficControlWithOptions(request, runtime);
25095
25248
  }
25096
25249
 
25250
+ async modifyVpcAccessAndUpdateApisWithOptions(request: ModifyVpcAccessAndUpdateApisRequest, runtime: $Util.RuntimeOptions): Promise<ModifyVpcAccessAndUpdateApisResponse> {
25251
+ Util.validateModel(request);
25252
+ let query = { };
25253
+ if (!Util.isUnset(request.instanceId)) {
25254
+ query["InstanceId"] = request.instanceId;
25255
+ }
25256
+
25257
+ if (!Util.isUnset(request.name)) {
25258
+ query["Name"] = request.name;
25259
+ }
25260
+
25261
+ if (!Util.isUnset(request.needBatchWork)) {
25262
+ query["NeedBatchWork"] = request.needBatchWork;
25263
+ }
25264
+
25265
+ if (!Util.isUnset(request.port)) {
25266
+ query["Port"] = request.port;
25267
+ }
25268
+
25269
+ if (!Util.isUnset(request.refresh)) {
25270
+ query["Refresh"] = request.refresh;
25271
+ }
25272
+
25273
+ if (!Util.isUnset(request.securityToken)) {
25274
+ query["SecurityToken"] = request.securityToken;
25275
+ }
25276
+
25277
+ if (!Util.isUnset(request.token)) {
25278
+ query["Token"] = request.token;
25279
+ }
25280
+
25281
+ if (!Util.isUnset(request.vpcId)) {
25282
+ query["VpcId"] = request.vpcId;
25283
+ }
25284
+
25285
+ if (!Util.isUnset(request.vpcTargetHostName)) {
25286
+ query["VpcTargetHostName"] = request.vpcTargetHostName;
25287
+ }
25288
+
25289
+ let req = new $OpenApi.OpenApiRequest({
25290
+ query: OpenApiUtil.query(query),
25291
+ });
25292
+ let params = new $OpenApi.Params({
25293
+ action: "ModifyVpcAccessAndUpdateApis",
25294
+ version: "2016-07-14",
25295
+ protocol: "HTTPS",
25296
+ pathname: "/",
25297
+ method: "POST",
25298
+ authType: "AK",
25299
+ style: "RPC",
25300
+ reqBodyType: "formData",
25301
+ bodyType: "json",
25302
+ });
25303
+ return $tea.cast<ModifyVpcAccessAndUpdateApisResponse>(await this.callApi(params, req, runtime), new ModifyVpcAccessAndUpdateApisResponse({}));
25304
+ }
25305
+
25306
+ async modifyVpcAccessAndUpdateApis(request: ModifyVpcAccessAndUpdateApisRequest): Promise<ModifyVpcAccessAndUpdateApisResponse> {
25307
+ let runtime = new $Util.RuntimeOptions({ });
25308
+ return await this.modifyVpcAccessAndUpdateApisWithOptions(request, runtime);
25309
+ }
25310
+
25097
25311
  async openApiGatewayServiceWithOptions(runtime: $Util.RuntimeOptions): Promise<OpenApiGatewayServiceResponse> {
25098
25312
  let req = new $OpenApi.OpenApiRequest({ });
25099
25313
  let params = new $OpenApi.Params({