@alicloud/waf-openapi20211001 3.3.0 → 3.4.0

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/waf-openapi20211001",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -2298,6 +2298,7 @@ export class DescribeCloudResourcesRequest extends $tea.Model {
2298
2298
  resourceDomain?: string;
2299
2299
  resourceFunction?: string;
2300
2300
  resourceInstanceId?: string;
2301
+ resourceInstanceName?: string;
2301
2302
  resourceManagerResourceGroupId?: string;
2302
2303
  resourceName?: string;
2303
2304
  resourceProduct?: string;
@@ -2313,6 +2314,7 @@ export class DescribeCloudResourcesRequest extends $tea.Model {
2313
2314
  resourceDomain: 'ResourceDomain',
2314
2315
  resourceFunction: 'ResourceFunction',
2315
2316
  resourceInstanceId: 'ResourceInstanceId',
2317
+ resourceInstanceName: 'ResourceInstanceName',
2316
2318
  resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
2317
2319
  resourceName: 'ResourceName',
2318
2320
  resourceProduct: 'ResourceProduct',
@@ -2331,6 +2333,7 @@ export class DescribeCloudResourcesRequest extends $tea.Model {
2331
2333
  resourceDomain: 'string',
2332
2334
  resourceFunction: 'string',
2333
2335
  resourceInstanceId: 'string',
2336
+ resourceInstanceName: 'string',
2334
2337
  resourceManagerResourceGroupId: 'string',
2335
2338
  resourceName: 'string',
2336
2339
  resourceProduct: 'string',
@@ -2394,6 +2397,78 @@ export class DescribeCloudResourcesResponse extends $tea.Model {
2394
2397
  }
2395
2398
  }
2396
2399
 
2400
+ export class DescribeCnameCountRequest extends $tea.Model {
2401
+ instanceId?: string;
2402
+ regionId?: string;
2403
+ resourceManagerResourceGroupId?: string;
2404
+ static names(): { [key: string]: string } {
2405
+ return {
2406
+ instanceId: 'InstanceId',
2407
+ regionId: 'RegionId',
2408
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
2409
+ };
2410
+ }
2411
+
2412
+ static types(): { [key: string]: any } {
2413
+ return {
2414
+ instanceId: 'string',
2415
+ regionId: 'string',
2416
+ resourceManagerResourceGroupId: 'string',
2417
+ };
2418
+ }
2419
+
2420
+ constructor(map?: { [key: string]: any }) {
2421
+ super(map);
2422
+ }
2423
+ }
2424
+
2425
+ export class DescribeCnameCountResponseBody extends $tea.Model {
2426
+ cnameCount?: DescribeCnameCountResponseBodyCnameCount;
2427
+ requestId?: string;
2428
+ static names(): { [key: string]: string } {
2429
+ return {
2430
+ cnameCount: 'CnameCount',
2431
+ requestId: 'RequestId',
2432
+ };
2433
+ }
2434
+
2435
+ static types(): { [key: string]: any } {
2436
+ return {
2437
+ cnameCount: DescribeCnameCountResponseBodyCnameCount,
2438
+ requestId: 'string',
2439
+ };
2440
+ }
2441
+
2442
+ constructor(map?: { [key: string]: any }) {
2443
+ super(map);
2444
+ }
2445
+ }
2446
+
2447
+ export class DescribeCnameCountResponse extends $tea.Model {
2448
+ headers?: { [key: string]: string };
2449
+ statusCode?: number;
2450
+ body?: DescribeCnameCountResponseBody;
2451
+ static names(): { [key: string]: string } {
2452
+ return {
2453
+ headers: 'headers',
2454
+ statusCode: 'statusCode',
2455
+ body: 'body',
2456
+ };
2457
+ }
2458
+
2459
+ static types(): { [key: string]: any } {
2460
+ return {
2461
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2462
+ statusCode: 'number',
2463
+ body: DescribeCnameCountResponseBody,
2464
+ };
2465
+ }
2466
+
2467
+ constructor(map?: { [key: string]: any }) {
2468
+ super(map);
2469
+ }
2470
+ }
2471
+
2397
2472
  export class DescribeDDoSStatusRequest extends $tea.Model {
2398
2473
  instanceId?: string;
2399
2474
  regionId?: string;
@@ -4654,6 +4729,8 @@ export class DescribeProductInstancesRequest extends $tea.Model {
4654
4729
  pageSize?: number;
4655
4730
  regionId?: string;
4656
4731
  resourceInstanceId?: string;
4732
+ resourceInstanceIp?: string;
4733
+ resourceInstanceName?: string;
4657
4734
  resourceIp?: string;
4658
4735
  resourceManagerResourceGroupId?: string;
4659
4736
  resourceName?: string;
@@ -4667,6 +4744,8 @@ export class DescribeProductInstancesRequest extends $tea.Model {
4667
4744
  pageSize: 'PageSize',
4668
4745
  regionId: 'RegionId',
4669
4746
  resourceInstanceId: 'ResourceInstanceId',
4747
+ resourceInstanceIp: 'ResourceInstanceIp',
4748
+ resourceInstanceName: 'ResourceInstanceName',
4670
4749
  resourceIp: 'ResourceIp',
4671
4750
  resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
4672
4751
  resourceName: 'ResourceName',
@@ -4683,6 +4762,8 @@ export class DescribeProductInstancesRequest extends $tea.Model {
4683
4762
  pageSize: 'number',
4684
4763
  regionId: 'string',
4685
4764
  resourceInstanceId: 'string',
4765
+ resourceInstanceIp: 'string',
4766
+ resourceInstanceName: 'string',
4686
4767
  resourceIp: 'string',
4687
4768
  resourceManagerResourceGroupId: 'string',
4688
4769
  resourceName: 'string',
@@ -8914,10 +8995,15 @@ export class DescribeCertsResponseBodyCerts extends $tea.Model {
8914
8995
  }
8915
8996
 
8916
8997
  export class DescribeCloudResourcesResponseBodyCloudResources extends $tea.Model {
8998
+ httpPortCount?: number;
8999
+ httpsPortCount?: number;
8917
9000
  ownerUserId?: string;
8918
9001
  resourceDomain?: string;
8919
9002
  resourceFunction?: string;
8920
9003
  resourceInstance?: string;
9004
+ resourceInstanceId?: string;
9005
+ resourceInstanceIp?: string;
9006
+ resourceInstanceName?: string;
8921
9007
  resourceName?: string;
8922
9008
  resourceProduct?: string;
8923
9009
  resourceRegionId?: string;
@@ -8925,10 +9011,15 @@ export class DescribeCloudResourcesResponseBodyCloudResources extends $tea.Model
8925
9011
  resourceService?: string;
8926
9012
  static names(): { [key: string]: string } {
8927
9013
  return {
9014
+ httpPortCount: 'HttpPortCount',
9015
+ httpsPortCount: 'HttpsPortCount',
8928
9016
  ownerUserId: 'OwnerUserId',
8929
9017
  resourceDomain: 'ResourceDomain',
8930
9018
  resourceFunction: 'ResourceFunction',
8931
9019
  resourceInstance: 'ResourceInstance',
9020
+ resourceInstanceId: 'ResourceInstanceId',
9021
+ resourceInstanceIp: 'ResourceInstanceIp',
9022
+ resourceInstanceName: 'ResourceInstanceName',
8932
9023
  resourceName: 'ResourceName',
8933
9024
  resourceProduct: 'ResourceProduct',
8934
9025
  resourceRegionId: 'ResourceRegionId',
@@ -8939,10 +9030,15 @@ export class DescribeCloudResourcesResponseBodyCloudResources extends $tea.Model
8939
9030
 
8940
9031
  static types(): { [key: string]: any } {
8941
9032
  return {
9033
+ httpPortCount: 'number',
9034
+ httpsPortCount: 'number',
8942
9035
  ownerUserId: 'string',
8943
9036
  resourceDomain: 'string',
8944
9037
  resourceFunction: 'string',
8945
9038
  resourceInstance: 'string',
9039
+ resourceInstanceId: 'string',
9040
+ resourceInstanceIp: 'string',
9041
+ resourceInstanceName: 'string',
8946
9042
  resourceName: 'string',
8947
9043
  resourceProduct: 'string',
8948
9044
  resourceRegionId: 'string',
@@ -8956,6 +9052,31 @@ export class DescribeCloudResourcesResponseBodyCloudResources extends $tea.Model
8956
9052
  }
8957
9053
  }
8958
9054
 
9055
+ export class DescribeCnameCountResponseBodyCnameCount extends $tea.Model {
9056
+ cname?: number;
9057
+ hybridCloudCname?: number;
9058
+ total?: number;
9059
+ static names(): { [key: string]: string } {
9060
+ return {
9061
+ cname: 'Cname',
9062
+ hybridCloudCname: 'HybridCloudCname',
9063
+ total: 'Total',
9064
+ };
9065
+ }
9066
+
9067
+ static types(): { [key: string]: any } {
9068
+ return {
9069
+ cname: 'number',
9070
+ hybridCloudCname: 'number',
9071
+ total: 'number',
9072
+ };
9073
+ }
9074
+
9075
+ constructor(map?: { [key: string]: any }) {
9076
+ super(map);
9077
+ }
9078
+ }
9079
+
8959
9080
  export class DescribeDDoSStatusResponseBodyDDoSStatus extends $tea.Model {
8960
9081
  eventType?: string;
8961
9082
  status?: string;
@@ -10473,6 +10594,8 @@ export class DescribeProductInstancesResponseBodyProductInstancesResourcePorts e
10473
10594
  export class DescribeProductInstancesResponseBodyProductInstances extends $tea.Model {
10474
10595
  ownerUserId?: string;
10475
10596
  resourceInstanceId?: string;
10597
+ resourceInstanceIp?: string;
10598
+ resourceInstanceName?: string;
10476
10599
  resourceIp?: string;
10477
10600
  resourceName?: string;
10478
10601
  resourcePorts?: DescribeProductInstancesResponseBodyProductInstancesResourcePorts[];
@@ -10482,6 +10605,8 @@ export class DescribeProductInstancesResponseBodyProductInstances extends $tea.M
10482
10605
  return {
10483
10606
  ownerUserId: 'OwnerUserId',
10484
10607
  resourceInstanceId: 'ResourceInstanceId',
10608
+ resourceInstanceIp: 'ResourceInstanceIp',
10609
+ resourceInstanceName: 'ResourceInstanceName',
10485
10610
  resourceIp: 'ResourceIp',
10486
10611
  resourceName: 'ResourceName',
10487
10612
  resourcePorts: 'ResourcePorts',
@@ -10494,6 +10619,8 @@ export class DescribeProductInstancesResponseBodyProductInstances extends $tea.M
10494
10619
  return {
10495
10620
  ownerUserId: 'string',
10496
10621
  resourceInstanceId: 'string',
10622
+ resourceInstanceIp: 'string',
10623
+ resourceInstanceName: 'string',
10497
10624
  resourceIp: 'string',
10498
10625
  resourceName: 'string',
10499
10626
  resourcePorts: { 'type': 'array', 'itemType': DescribeProductInstancesResponseBodyProductInstancesResourcePorts },
@@ -12967,6 +13094,10 @@ export default class Client extends OpenApi {
12967
13094
  query["ResourceInstanceId"] = request.resourceInstanceId;
12968
13095
  }
12969
13096
 
13097
+ if (!Util.isUnset(request.resourceInstanceName)) {
13098
+ query["ResourceInstanceName"] = request.resourceInstanceName;
13099
+ }
13100
+
12970
13101
  if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
12971
13102
  query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
12972
13103
  }
@@ -13015,6 +13146,56 @@ export default class Client extends OpenApi {
13015
13146
  return await this.describeCloudResourcesWithOptions(request, runtime);
13016
13147
  }
13017
13148
 
13149
+ /**
13150
+ * @summary 查询Cname接入的数量
13151
+ *
13152
+ * @param request DescribeCnameCountRequest
13153
+ * @param runtime runtime options for this request RuntimeOptions
13154
+ * @return DescribeCnameCountResponse
13155
+ */
13156
+ async describeCnameCountWithOptions(request: DescribeCnameCountRequest, runtime: $Util.RuntimeOptions): Promise<DescribeCnameCountResponse> {
13157
+ Util.validateModel(request);
13158
+ let query = { };
13159
+ if (!Util.isUnset(request.instanceId)) {
13160
+ query["InstanceId"] = request.instanceId;
13161
+ }
13162
+
13163
+ if (!Util.isUnset(request.regionId)) {
13164
+ query["RegionId"] = request.regionId;
13165
+ }
13166
+
13167
+ if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
13168
+ query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
13169
+ }
13170
+
13171
+ let req = new $OpenApi.OpenApiRequest({
13172
+ query: OpenApiUtil.query(query),
13173
+ });
13174
+ let params = new $OpenApi.Params({
13175
+ action: "DescribeCnameCount",
13176
+ version: "2021-10-01",
13177
+ protocol: "HTTPS",
13178
+ pathname: "/",
13179
+ method: "POST",
13180
+ authType: "AK",
13181
+ style: "RPC",
13182
+ reqBodyType: "formData",
13183
+ bodyType: "json",
13184
+ });
13185
+ return $tea.cast<DescribeCnameCountResponse>(await this.callApi(params, req, runtime), new DescribeCnameCountResponse({}));
13186
+ }
13187
+
13188
+ /**
13189
+ * @summary 查询Cname接入的数量
13190
+ *
13191
+ * @param request DescribeCnameCountRequest
13192
+ * @return DescribeCnameCountResponse
13193
+ */
13194
+ async describeCnameCount(request: DescribeCnameCountRequest): Promise<DescribeCnameCountResponse> {
13195
+ let runtime = new $Util.RuntimeOptions({ });
13196
+ return await this.describeCnameCountWithOptions(request, runtime);
13197
+ }
13198
+
13018
13199
  /**
13019
13200
  * @summary Checks whether DDoS attacks occur on specific domain names protected by a Web Application Firewall (WAF) instance.
13020
13201
  *
@@ -14707,6 +14888,14 @@ export default class Client extends OpenApi {
14707
14888
  query["ResourceInstanceId"] = request.resourceInstanceId;
14708
14889
  }
14709
14890
 
14891
+ if (!Util.isUnset(request.resourceInstanceIp)) {
14892
+ query["ResourceInstanceIp"] = request.resourceInstanceIp;
14893
+ }
14894
+
14895
+ if (!Util.isUnset(request.resourceInstanceName)) {
14896
+ query["ResourceInstanceName"] = request.resourceInstanceName;
14897
+ }
14898
+
14710
14899
  if (!Util.isUnset(request.resourceIp)) {
14711
14900
  query["ResourceIp"] = request.resourceIp;
14712
14901
  }
@@ -17354,7 +17543,7 @@ export default class Client extends OpenApi {
17354
17543
  }
17355
17544
 
17356
17545
  /**
17357
- * @summary 释放实例
17546
+ * @summary Releases a Web Application Firewall (WAF) 3.0 instance.
17358
17547
  *
17359
17548
  * @param request ReleaseInstanceRequest
17360
17549
  * @param runtime runtime options for this request RuntimeOptions
@@ -17393,7 +17582,7 @@ export default class Client extends OpenApi {
17393
17582
  }
17394
17583
 
17395
17584
  /**
17396
- * @summary 释放实例
17585
+ * @summary Releases a Web Application Firewall (WAF) 3.0 instance.
17397
17586
  *
17398
17587
  * @param request ReleaseInstanceRequest
17399
17588
  * @return ReleaseInstanceResponse