@alicloud/cloudapi20160714 2.1.1 → 2.1.4

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.1.1",
3
+ "version": "2.1.4",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -833,12 +833,14 @@ export class CreateAppResponse extends $tea.Model {
833
833
  export class CreateBackendRequest extends $tea.Model {
834
834
  backendName?: string;
835
835
  backendType?: string;
836
+ createEventBridgeServiceLinkedRole?: boolean;
836
837
  description?: string;
837
838
  securityToken?: string;
838
839
  static names(): { [key: string]: string } {
839
840
  return {
840
841
  backendName: 'BackendName',
841
842
  backendType: 'BackendType',
843
+ createEventBridgeServiceLinkedRole: 'CreateEventBridgeServiceLinkedRole',
842
844
  description: 'Description',
843
845
  securityToken: 'SecurityToken',
844
846
  };
@@ -848,6 +850,7 @@ export class CreateBackendRequest extends $tea.Model {
848
850
  return {
849
851
  backendName: 'string',
850
852
  backendType: 'string',
853
+ createEventBridgeServiceLinkedRole: 'boolean',
851
854
  description: 'string',
852
855
  securityToken: 'string',
853
856
  };
@@ -7838,6 +7841,78 @@ export class DescribeZonesResponse extends $tea.Model {
7838
7841
  }
7839
7842
  }
7840
7843
 
7844
+ export class DetachPluginRequest extends $tea.Model {
7845
+ apiId?: string;
7846
+ groupId?: string;
7847
+ pluginId?: string;
7848
+ securityToken?: string;
7849
+ stageName?: string;
7850
+ static names(): { [key: string]: string } {
7851
+ return {
7852
+ apiId: 'ApiId',
7853
+ groupId: 'GroupId',
7854
+ pluginId: 'PluginId',
7855
+ securityToken: 'SecurityToken',
7856
+ stageName: 'StageName',
7857
+ };
7858
+ }
7859
+
7860
+ static types(): { [key: string]: any } {
7861
+ return {
7862
+ apiId: 'string',
7863
+ groupId: 'string',
7864
+ pluginId: 'string',
7865
+ securityToken: 'string',
7866
+ stageName: 'string',
7867
+ };
7868
+ }
7869
+
7870
+ constructor(map?: { [key: string]: any }) {
7871
+ super(map);
7872
+ }
7873
+ }
7874
+
7875
+ export class DetachPluginResponseBody extends $tea.Model {
7876
+ requestId?: string;
7877
+ static names(): { [key: string]: string } {
7878
+ return {
7879
+ requestId: 'RequestId',
7880
+ };
7881
+ }
7882
+
7883
+ static types(): { [key: string]: any } {
7884
+ return {
7885
+ requestId: 'string',
7886
+ };
7887
+ }
7888
+
7889
+ constructor(map?: { [key: string]: any }) {
7890
+ super(map);
7891
+ }
7892
+ }
7893
+
7894
+ export class DetachPluginResponse extends $tea.Model {
7895
+ headers: { [key: string]: string };
7896
+ body: DetachPluginResponseBody;
7897
+ static names(): { [key: string]: string } {
7898
+ return {
7899
+ headers: 'headers',
7900
+ body: 'body',
7901
+ };
7902
+ }
7903
+
7904
+ static types(): { [key: string]: any } {
7905
+ return {
7906
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
7907
+ body: DetachPluginResponseBody,
7908
+ };
7909
+ }
7910
+
7911
+ constructor(map?: { [key: string]: any }) {
7912
+ super(map);
7913
+ }
7914
+ }
7915
+
7841
7916
  export class DryRunSwaggerRequest extends $tea.Model {
7842
7917
  data?: string;
7843
7918
  dataFormat?: string;
@@ -10864,6 +10939,7 @@ export class SetVpcAccessRequest extends $tea.Model {
10864
10939
  port?: number;
10865
10940
  securityToken?: string;
10866
10941
  vpcId?: string;
10942
+ vpcTargetHostName?: string;
10867
10943
  static names(): { [key: string]: string } {
10868
10944
  return {
10869
10945
  description: 'Description',
@@ -10872,6 +10948,7 @@ export class SetVpcAccessRequest extends $tea.Model {
10872
10948
  port: 'Port',
10873
10949
  securityToken: 'SecurityToken',
10874
10950
  vpcId: 'VpcId',
10951
+ vpcTargetHostName: 'VpcTargetHostName',
10875
10952
  };
10876
10953
  }
10877
10954
 
@@ -10883,6 +10960,7 @@ export class SetVpcAccessRequest extends $tea.Model {
10883
10960
  port: 'number',
10884
10961
  securityToken: 'string',
10885
10962
  vpcId: 'string',
10963
+ vpcTargetHostName: 'string',
10886
10964
  };
10887
10965
  }
10888
10966
 
@@ -11922,6 +12000,34 @@ export class DescribeApiResponseBodyResultDescriptions extends $tea.Model {
11922
12000
  }
11923
12001
  }
11924
12002
 
12003
+ export class DescribeApiResponseBodyServiceConfigEventBridgeConfig extends $tea.Model {
12004
+ eventBridgeRegionId?: string;
12005
+ eventBus?: string;
12006
+ eventSource?: string;
12007
+ roleArn?: string;
12008
+ static names(): { [key: string]: string } {
12009
+ return {
12010
+ eventBridgeRegionId: 'EventBridgeRegionId',
12011
+ eventBus: 'EventBus',
12012
+ eventSource: 'EventSource',
12013
+ roleArn: 'RoleArn',
12014
+ };
12015
+ }
12016
+
12017
+ static types(): { [key: string]: any } {
12018
+ return {
12019
+ eventBridgeRegionId: 'string',
12020
+ eventBus: 'string',
12021
+ eventSource: 'string',
12022
+ roleArn: 'string',
12023
+ };
12024
+ }
12025
+
12026
+ constructor(map?: { [key: string]: any }) {
12027
+ super(map);
12028
+ }
12029
+ }
12030
+
11925
12031
  export class DescribeApiResponseBodyServiceConfigFunctionComputeConfig extends $tea.Model {
11926
12032
  contentTypeCatagory?: string;
11927
12033
  contentTypeValue?: string;
@@ -12078,6 +12184,7 @@ export class DescribeApiResponseBodyServiceConfig extends $tea.Model {
12078
12184
  aoneAppName?: string;
12079
12185
  contentTypeCatagory?: string;
12080
12186
  contentTypeValue?: string;
12187
+ eventBridgeConfig?: DescribeApiResponseBodyServiceConfigEventBridgeConfig;
12081
12188
  functionComputeConfig?: DescribeApiResponseBodyServiceConfigFunctionComputeConfig;
12082
12189
  mock?: string;
12083
12190
  mockHeaders?: DescribeApiResponseBodyServiceConfigMockHeaders;
@@ -12096,6 +12203,7 @@ export class DescribeApiResponseBodyServiceConfig extends $tea.Model {
12096
12203
  aoneAppName: 'AoneAppName',
12097
12204
  contentTypeCatagory: 'ContentTypeCatagory',
12098
12205
  contentTypeValue: 'ContentTypeValue',
12206
+ eventBridgeConfig: 'EventBridgeConfig',
12099
12207
  functionComputeConfig: 'FunctionComputeConfig',
12100
12208
  mock: 'Mock',
12101
12209
  mockHeaders: 'MockHeaders',
@@ -12117,6 +12225,7 @@ export class DescribeApiResponseBodyServiceConfig extends $tea.Model {
12117
12225
  aoneAppName: 'string',
12118
12226
  contentTypeCatagory: 'string',
12119
12227
  contentTypeValue: 'string',
12228
+ eventBridgeConfig: DescribeApiResponseBodyServiceConfigEventBridgeConfig,
12120
12229
  functionComputeConfig: DescribeApiResponseBodyServiceConfigFunctionComputeConfig,
12121
12230
  mock: 'string',
12122
12231
  mockHeaders: DescribeApiResponseBodyServiceConfigMockHeaders,
@@ -13214,6 +13323,34 @@ export class DescribeApiHistoryResponseBodyResultDescriptions extends $tea.Model
13214
13323
  }
13215
13324
  }
13216
13325
 
13326
+ export class DescribeApiHistoryResponseBodyServiceConfigEventBridgeConfig extends $tea.Model {
13327
+ eventBridgeRegionId?: string;
13328
+ eventBus?: string;
13329
+ eventSource?: string;
13330
+ roleArn?: string;
13331
+ static names(): { [key: string]: string } {
13332
+ return {
13333
+ eventBridgeRegionId: 'EventBridgeRegionId',
13334
+ eventBus: 'EventBus',
13335
+ eventSource: 'EventSource',
13336
+ roleArn: 'RoleArn',
13337
+ };
13338
+ }
13339
+
13340
+ static types(): { [key: string]: any } {
13341
+ return {
13342
+ eventBridgeRegionId: 'string',
13343
+ eventBus: 'string',
13344
+ eventSource: 'string',
13345
+ roleArn: 'string',
13346
+ };
13347
+ }
13348
+
13349
+ constructor(map?: { [key: string]: any }) {
13350
+ super(map);
13351
+ }
13352
+ }
13353
+
13217
13354
  export class DescribeApiHistoryResponseBodyServiceConfigFunctionComputeConfig extends $tea.Model {
13218
13355
  contentTypeCatagory?: string;
13219
13356
  contentTypeValue?: string;
@@ -13369,6 +13506,7 @@ export class DescribeApiHistoryResponseBodyServiceConfigVpcConfig extends $tea.M
13369
13506
  export class DescribeApiHistoryResponseBodyServiceConfig extends $tea.Model {
13370
13507
  contentTypeCatagory?: string;
13371
13508
  contentTypeValue?: string;
13509
+ eventBridgeConfig?: DescribeApiHistoryResponseBodyServiceConfigEventBridgeConfig;
13372
13510
  functionComputeConfig?: DescribeApiHistoryResponseBodyServiceConfigFunctionComputeConfig;
13373
13511
  mock?: string;
13374
13512
  mockHeaders?: DescribeApiHistoryResponseBodyServiceConfigMockHeaders;
@@ -13387,6 +13525,7 @@ export class DescribeApiHistoryResponseBodyServiceConfig extends $tea.Model {
13387
13525
  return {
13388
13526
  contentTypeCatagory: 'ContentTypeCatagory',
13389
13527
  contentTypeValue: 'ContentTypeValue',
13528
+ eventBridgeConfig: 'EventBridgeConfig',
13390
13529
  functionComputeConfig: 'FunctionComputeConfig',
13391
13530
  mock: 'Mock',
13392
13531
  mockHeaders: 'MockHeaders',
@@ -13408,6 +13547,7 @@ export class DescribeApiHistoryResponseBodyServiceConfig extends $tea.Model {
13408
13547
  return {
13409
13548
  contentTypeCatagory: 'string',
13410
13549
  contentTypeValue: 'string',
13550
+ eventBridgeConfig: DescribeApiHistoryResponseBodyServiceConfigEventBridgeConfig,
13411
13551
  functionComputeConfig: DescribeApiHistoryResponseBodyServiceConfigFunctionComputeConfig,
13412
13552
  mock: 'string',
13413
13553
  mockHeaders: DescribeApiHistoryResponseBodyServiceConfigMockHeaders,
@@ -14629,6 +14769,34 @@ export class DescribeAuthorizedAppsResponseBodyAuthorizedApps extends $tea.Model
14629
14769
  }
14630
14770
  }
14631
14771
 
14772
+ export class DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfigEventBridgeConfig extends $tea.Model {
14773
+ eventBridgeRegionId?: string;
14774
+ eventBus?: string;
14775
+ eventSource?: string;
14776
+ roleArn?: string;
14777
+ static names(): { [key: string]: string } {
14778
+ return {
14779
+ eventBridgeRegionId: 'EventBridgeRegionId',
14780
+ eventBus: 'EventBus',
14781
+ eventSource: 'EventSource',
14782
+ roleArn: 'RoleArn',
14783
+ };
14784
+ }
14785
+
14786
+ static types(): { [key: string]: any } {
14787
+ return {
14788
+ eventBridgeRegionId: 'string',
14789
+ eventBus: 'string',
14790
+ eventSource: 'string',
14791
+ roleArn: 'string',
14792
+ };
14793
+ }
14794
+
14795
+ constructor(map?: { [key: string]: any }) {
14796
+ super(map);
14797
+ }
14798
+ }
14799
+
14632
14800
  export class DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfigFunctionComputeConfig extends $tea.Model {
14633
14801
  fcBaseUrl?: string;
14634
14802
  fcRegionId?: string;
@@ -14726,6 +14894,7 @@ export class DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfi
14726
14894
  }
14727
14895
 
14728
14896
  export class DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfig extends $tea.Model {
14897
+ eventBridgeConfig?: DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfigEventBridgeConfig;
14729
14898
  functionComputeConfig?: DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfigFunctionComputeConfig;
14730
14899
  ossConfig?: DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfigOssConfig;
14731
14900
  serviceAddress?: string;
@@ -14733,6 +14902,7 @@ export class DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfi
14733
14902
  vpcConfig?: DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfigVpcConfig;
14734
14903
  static names(): { [key: string]: string } {
14735
14904
  return {
14905
+ eventBridgeConfig: 'EventBridgeConfig',
14736
14906
  functionComputeConfig: 'FunctionComputeConfig',
14737
14907
  ossConfig: 'OssConfig',
14738
14908
  serviceAddress: 'ServiceAddress',
@@ -14743,6 +14913,7 @@ export class DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfi
14743
14913
 
14744
14914
  static types(): { [key: string]: any } {
14745
14915
  return {
14916
+ eventBridgeConfig: DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfigEventBridgeConfig,
14746
14917
  functionComputeConfig: DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfigFunctionComputeConfig,
14747
14918
  ossConfig: DescribeBackendInfoResponseBodyBackendInfoBackendModelsBackendConfigOssConfig,
14748
14919
  serviceAddress: 'string',
@@ -16904,6 +17075,7 @@ export class DescribeVpcAccessesResponseBodyVpcAccessAttributesVpcAccessAttribut
16904
17075
  regionId?: string;
16905
17076
  vpcAccessId?: string;
16906
17077
  vpcId?: string;
17078
+ vpcTargetHostName?: string;
16907
17079
  static names(): { [key: string]: string } {
16908
17080
  return {
16909
17081
  createdTime: 'CreatedTime',
@@ -16914,6 +17086,7 @@ export class DescribeVpcAccessesResponseBodyVpcAccessAttributesVpcAccessAttribut
16914
17086
  regionId: 'RegionId',
16915
17087
  vpcAccessId: 'VpcAccessId',
16916
17088
  vpcId: 'VpcId',
17089
+ vpcTargetHostName: 'VpcTargetHostName',
16917
17090
  };
16918
17091
  }
16919
17092
 
@@ -16927,6 +17100,7 @@ export class DescribeVpcAccessesResponseBodyVpcAccessAttributesVpcAccessAttribut
16927
17100
  regionId: 'string',
16928
17101
  vpcAccessId: 'string',
16929
17102
  vpcId: 'string',
17103
+ vpcTargetHostName: 'string',
16930
17104
  };
16931
17105
  }
16932
17106
 
@@ -18153,6 +18327,10 @@ export default class Client extends OpenApi {
18153
18327
  query["BackendType"] = request.backendType;
18154
18328
  }
18155
18329
 
18330
+ if (!Util.isUnset(request.createEventBridgeServiceLinkedRole)) {
18331
+ query["CreateEventBridgeServiceLinkedRole"] = request.createEventBridgeServiceLinkedRole;
18332
+ }
18333
+
18156
18334
  if (!Util.isUnset(request.description)) {
18157
18335
  query["Description"] = request.description;
18158
18336
  }
@@ -21776,6 +21954,51 @@ export default class Client extends OpenApi {
21776
21954
  return await this.describeZonesWithOptions(request, runtime);
21777
21955
  }
21778
21956
 
21957
+ async detachPluginWithOptions(request: DetachPluginRequest, runtime: $Util.RuntimeOptions): Promise<DetachPluginResponse> {
21958
+ Util.validateModel(request);
21959
+ let query = { };
21960
+ if (!Util.isUnset(request.apiId)) {
21961
+ query["ApiId"] = request.apiId;
21962
+ }
21963
+
21964
+ if (!Util.isUnset(request.groupId)) {
21965
+ query["GroupId"] = request.groupId;
21966
+ }
21967
+
21968
+ if (!Util.isUnset(request.pluginId)) {
21969
+ query["PluginId"] = request.pluginId;
21970
+ }
21971
+
21972
+ if (!Util.isUnset(request.securityToken)) {
21973
+ query["SecurityToken"] = request.securityToken;
21974
+ }
21975
+
21976
+ if (!Util.isUnset(request.stageName)) {
21977
+ query["StageName"] = request.stageName;
21978
+ }
21979
+
21980
+ let req = new $OpenApi.OpenApiRequest({
21981
+ query: OpenApiUtil.query(query),
21982
+ });
21983
+ let params = new $OpenApi.Params({
21984
+ action: "DetachPlugin",
21985
+ version: "2016-07-14",
21986
+ protocol: "HTTPS",
21987
+ pathname: "/",
21988
+ method: "POST",
21989
+ authType: "AK",
21990
+ style: "RPC",
21991
+ reqBodyType: "formData",
21992
+ bodyType: "json",
21993
+ });
21994
+ return $tea.cast<DetachPluginResponse>(await this.callApi(params, req, runtime), new DetachPluginResponse({}));
21995
+ }
21996
+
21997
+ async detachPlugin(request: DetachPluginRequest): Promise<DetachPluginResponse> {
21998
+ let runtime = new $Util.RuntimeOptions({ });
21999
+ return await this.detachPluginWithOptions(request, runtime);
22000
+ }
22001
+
21779
22002
  async dryRunSwaggerWithOptions(tmpReq: DryRunSwaggerRequest, runtime: $Util.RuntimeOptions): Promise<DryRunSwaggerResponse> {
21780
22003
  Util.validateModel(tmpReq);
21781
22004
  let request = new DryRunSwaggerShrinkRequest({ });
@@ -23654,6 +23877,10 @@ export default class Client extends OpenApi {
23654
23877
  query["VpcId"] = request.vpcId;
23655
23878
  }
23656
23879
 
23880
+ if (!Util.isUnset(request.vpcTargetHostName)) {
23881
+ query["VpcTargetHostName"] = request.vpcTargetHostName;
23882
+ }
23883
+
23657
23884
  let req = new $OpenApi.OpenApiRequest({
23658
23885
  query: OpenApiUtil.query(query),
23659
23886
  });