@alicloud/sddp20190103 1.4.0 → 1.4.1

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/dist/client.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -35,6 +45,7 @@ exports.DescribeUserStatusResponseBodyUserStatus = exports.DescribeTemplateAllRu
35
45
  /**
36
46
  */
37
47
  const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
48
+ const gateway_pop_1 = __importDefault(require("@alicloud/gateway-pop"));
38
49
  const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
39
50
  const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
40
51
  const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
@@ -2478,6 +2489,7 @@ class DescribeRulesRequest extends $tea.Model {
2478
2489
  return {
2479
2490
  category: 'Category',
2480
2491
  contentCategory: 'ContentCategory',
2492
+ cooperationChannel: 'CooperationChannel',
2481
2493
  currentPage: 'CurrentPage',
2482
2494
  customType: 'CustomType',
2483
2495
  featureType: 'FeatureType',
@@ -2491,6 +2503,7 @@ class DescribeRulesRequest extends $tea.Model {
2491
2503
  productId: 'ProductId',
2492
2504
  riskLevelId: 'RiskLevelId',
2493
2505
  ruleType: 'RuleType',
2506
+ simplify: 'Simplify',
2494
2507
  status: 'Status',
2495
2508
  supportForm: 'SupportForm',
2496
2509
  warnLevel: 'WarnLevel',
@@ -2500,6 +2513,7 @@ class DescribeRulesRequest extends $tea.Model {
2500
2513
  return {
2501
2514
  category: 'number',
2502
2515
  contentCategory: 'number',
2516
+ cooperationChannel: 'string',
2503
2517
  currentPage: 'number',
2504
2518
  customType: 'number',
2505
2519
  featureType: 'number',
@@ -2513,6 +2527,7 @@ class DescribeRulesRequest extends $tea.Model {
2513
2527
  productId: 'number',
2514
2528
  riskLevelId: 'number',
2515
2529
  ruleType: 'number',
2530
+ simplify: 'boolean',
2516
2531
  status: 'number',
2517
2532
  supportForm: 'number',
2518
2533
  warnLevel: 'number',
@@ -5366,6 +5381,9 @@ exports.DescribeUserStatusResponseBodyUserStatus = DescribeUserStatusResponseBod
5366
5381
  class Client extends openapi_client_1.default {
5367
5382
  constructor(config) {
5368
5383
  super(config);
5384
+ this._productId = "Sddp";
5385
+ let gatewayClient = new gateway_pop_1.default();
5386
+ this._spi = gatewayClient;
5369
5387
  this._endpointRule = "regional";
5370
5388
  this._endpointMap = {
5371
5389
  'cn-hongkong': "sddp-api.cn-hongkong.aliyuncs.com",
@@ -5429,7 +5447,12 @@ class Client extends openapi_client_1.default {
5429
5447
  reqBodyType: "formData",
5430
5448
  bodyType: "json",
5431
5449
  });
5432
- return $tea.cast(await this.callApi(params, req, runtime), new CreateConfigResponse({}));
5450
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
5451
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateConfigResponse({}));
5452
+ }
5453
+ else {
5454
+ return $tea.cast(await this.execute(params, req, runtime), new CreateConfigResponse({}));
5455
+ }
5433
5456
  }
5434
5457
  /**
5435
5458
  * Modifies the configurations of a common configuration item for alerts.
@@ -5532,7 +5555,12 @@ class Client extends openapi_client_1.default {
5532
5555
  reqBodyType: "formData",
5533
5556
  bodyType: "json",
5534
5557
  });
5535
- return $tea.cast(await this.callApi(params, req, runtime), new CreateDataLimitResponse({}));
5558
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
5559
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateDataLimitResponse({}));
5560
+ }
5561
+ else {
5562
+ return $tea.cast(await this.execute(params, req, runtime), new CreateDataLimitResponse({}));
5563
+ }
5536
5564
  }
5537
5565
  /**
5538
5566
  * Authorizes Data Security Center (DSC) to scan data assets. The data assets can be a database, a project, or a bucket.
@@ -5624,7 +5652,12 @@ class Client extends openapi_client_1.default {
5624
5652
  reqBodyType: "formData",
5625
5653
  bodyType: "json",
5626
5654
  });
5627
- return $tea.cast(await this.callApi(params, req, runtime), new CreateRuleResponse({}));
5655
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
5656
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateRuleResponse({}));
5657
+ }
5658
+ else {
5659
+ return $tea.cast(await this.execute(params, req, runtime), new CreateRuleResponse({}));
5660
+ }
5628
5661
  }
5629
5662
  /**
5630
5663
  * Creates a custom sensitive data detection rule.
@@ -5704,7 +5737,12 @@ class Client extends openapi_client_1.default {
5704
5737
  reqBodyType: "formData",
5705
5738
  bodyType: "json",
5706
5739
  });
5707
- return $tea.cast(await this.callApi(params, req, runtime), new CreateScanTaskResponse({}));
5740
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
5741
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateScanTaskResponse({}));
5742
+ }
5743
+ else {
5744
+ return $tea.cast(await this.execute(params, req, runtime), new CreateScanTaskResponse({}));
5745
+ }
5708
5746
  }
5709
5747
  /**
5710
5748
  * Creates a custom scan task. The custom scan task is used to scan data assets on which Data Security Center (DSC) is granted the scan permissions for sensitive data.
@@ -5759,7 +5797,12 @@ class Client extends openapi_client_1.default {
5759
5797
  reqBodyType: "formData",
5760
5798
  bodyType: "json",
5761
5799
  });
5762
- return $tea.cast(await this.callApi(params, req, runtime), new CreateSlrRoleResponse({}));
5800
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
5801
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateSlrRoleResponse({}));
5802
+ }
5803
+ else {
5804
+ return $tea.cast(await this.execute(params, req, runtime), new CreateSlrRoleResponse({}));
5805
+ }
5763
5806
  }
5764
5807
  /**
5765
5808
  * Creates a service-linked role for Data Security Center (DSC) to grant DSC the permissions to access data assets in other services.
@@ -5817,7 +5860,12 @@ class Client extends openapi_client_1.default {
5817
5860
  reqBodyType: "formData",
5818
5861
  bodyType: "json",
5819
5862
  });
5820
- return $tea.cast(await this.callApi(params, req, runtime), new DeleteDataLimitResponse({}));
5863
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
5864
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteDataLimitResponse({}));
5865
+ }
5866
+ else {
5867
+ return $tea.cast(await this.execute(params, req, runtime), new DeleteDataLimitResponse({}));
5868
+ }
5821
5869
  }
5822
5870
  /**
5823
5871
  * Revokes the scan permissions on a data asset. The data asset can be a database, an instance, or a bucket.
@@ -5870,7 +5918,12 @@ class Client extends openapi_client_1.default {
5870
5918
  reqBodyType: "formData",
5871
5919
  bodyType: "json",
5872
5920
  });
5873
- return $tea.cast(await this.callApi(params, req, runtime), new DeleteRuleResponse({}));
5921
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
5922
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteRuleResponse({}));
5923
+ }
5924
+ else {
5925
+ return $tea.cast(await this.execute(params, req, runtime), new DeleteRuleResponse({}));
5926
+ }
5874
5927
  }
5875
5928
  /**
5876
5929
  * Deletes a custom sensitive data detection rule from Data Security Center (DSC).
@@ -5919,7 +5972,12 @@ class Client extends openapi_client_1.default {
5919
5972
  reqBodyType: "formData",
5920
5973
  bodyType: "json",
5921
5974
  });
5922
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeCategoryTemplateListResponse({}));
5975
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
5976
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeCategoryTemplateListResponse({}));
5977
+ }
5978
+ else {
5979
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeCategoryTemplateListResponse({}));
5980
+ }
5923
5981
  }
5924
5982
  /**
5925
5983
  * @param request - DescribeCategoryTemplateListRequest
@@ -5976,7 +6034,12 @@ class Client extends openapi_client_1.default {
5976
6034
  reqBodyType: "formData",
5977
6035
  bodyType: "json",
5978
6036
  });
5979
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeCategoryTemplateRuleListResponse({}));
6037
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6038
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeCategoryTemplateRuleListResponse({}));
6039
+ }
6040
+ else {
6041
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeCategoryTemplateRuleListResponse({}));
6042
+ }
5980
6043
  }
5981
6044
  /**
5982
6045
  * Queries rules in a classification template by page.
@@ -6078,7 +6141,12 @@ class Client extends openapi_client_1.default {
6078
6141
  reqBodyType: "formData",
6079
6142
  bodyType: "json",
6080
6143
  });
6081
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeColumnsResponse({}));
6144
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6145
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeColumnsResponse({}));
6146
+ }
6147
+ else {
6148
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeColumnsResponse({}));
6149
+ }
6082
6150
  }
6083
6151
  /**
6084
6152
  * Queries data in the columns of the tables that Data Security Center (DSC) is authorized to access. The tables include the tables of MaxCompute and ApsaraDB RDS.
@@ -6160,7 +6228,12 @@ class Client extends openapi_client_1.default {
6160
6228
  reqBodyType: "formData",
6161
6229
  bodyType: "json",
6162
6230
  });
6163
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeColumnsV2Response({}));
6231
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6232
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeColumnsV2Response({}));
6233
+ }
6234
+ else {
6235
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeColumnsV2Response({}));
6236
+ }
6164
6237
  }
6165
6238
  /**
6166
6239
  * Queries the columns of tables in instances, such as MaxCompute projects and ApsaraDB RDS instances, that you authorize Data Security Center (DSC) to access.
@@ -6199,7 +6272,12 @@ class Client extends openapi_client_1.default {
6199
6272
  reqBodyType: "formData",
6200
6273
  bodyType: "json",
6201
6274
  });
6202
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeConfigsResponse({}));
6275
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6276
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeConfigsResponse({}));
6277
+ }
6278
+ else {
6279
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeConfigsResponse({}));
6280
+ }
6203
6281
  }
6204
6282
  /**
6205
6283
  * Queries common configuration items for alerts.
@@ -6256,7 +6334,12 @@ class Client extends openapi_client_1.default {
6256
6334
  reqBodyType: "formData",
6257
6335
  bodyType: "json",
6258
6336
  });
6259
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataAssetsResponse({}));
6337
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6338
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataAssetsResponse({}));
6339
+ }
6340
+ else {
6341
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeDataAssetsResponse({}));
6342
+ }
6260
6343
  }
6261
6344
  /**
6262
6345
  * Queries the sensitive data detection results of data assets that Data Security Center (DSC) is authorized to access.
@@ -6304,7 +6387,12 @@ class Client extends openapi_client_1.default {
6304
6387
  reqBodyType: "formData",
6305
6388
  bodyType: "json",
6306
6389
  });
6307
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataLimitDetailResponse({}));
6390
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6391
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataLimitDetailResponse({}));
6392
+ }
6393
+ else {
6394
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeDataLimitDetailResponse({}));
6395
+ }
6308
6396
  }
6309
6397
  /**
6310
6398
  * Queries the details of a data asset, such as a MaxCompute project, an ApsaraDB RDS database, or an Object Storage Service (OSS) bucket, that you authorize Data Security Center (DSC) to access.
@@ -6357,7 +6445,12 @@ class Client extends openapi_client_1.default {
6357
6445
  reqBodyType: "formData",
6358
6446
  bodyType: "json",
6359
6447
  });
6360
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataLimitSetResponse({}));
6448
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6449
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataLimitSetResponse({}));
6450
+ }
6451
+ else {
6452
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeDataLimitSetResponse({}));
6453
+ }
6361
6454
  }
6362
6455
  /**
6363
6456
  * Queries data assets, such as instances, databases, and Object Storage Service (OSS) buckets, that you authorize Data Security Center (DSC) to scan in a service.
@@ -6443,7 +6536,12 @@ class Client extends openapi_client_1.default {
6443
6536
  reqBodyType: "formData",
6444
6537
  bodyType: "json",
6445
6538
  });
6446
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataLimitsResponse({}));
6539
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6540
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataLimitsResponse({}));
6541
+ }
6542
+ else {
6543
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeDataLimitsResponse({}));
6544
+ }
6447
6545
  }
6448
6546
  /**
6449
6547
  * Queries the data assets such as instances, databases, or buckets that Data Security Center (DSC) is authorized to access.
@@ -6517,7 +6615,12 @@ class Client extends openapi_client_1.default {
6517
6615
  reqBodyType: "formData",
6518
6616
  bodyType: "json",
6519
6617
  });
6520
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataMaskingRunHistoryResponse({}));
6618
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6619
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataMaskingRunHistoryResponse({}));
6620
+ }
6621
+ else {
6622
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeDataMaskingRunHistoryResponse({}));
6623
+ }
6521
6624
  }
6522
6625
  /**
6523
6626
  * Queries the execution information about a de-identification task.
@@ -6584,7 +6687,12 @@ class Client extends openapi_client_1.default {
6584
6687
  reqBodyType: "formData",
6585
6688
  bodyType: "json",
6586
6689
  });
6587
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataMaskingTasksResponse({}));
6690
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6691
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataMaskingTasksResponse({}));
6692
+ }
6693
+ else {
6694
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeDataMaskingTasksResponse({}));
6695
+ }
6588
6696
  }
6589
6697
  /**
6590
6698
  * Queries de-identification tasks.
@@ -6646,7 +6754,12 @@ class Client extends openapi_client_1.default {
6646
6754
  reqBodyType: "formData",
6647
6755
  bodyType: "json",
6648
6756
  });
6649
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataObjectColumnDetailResponse({}));
6757
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6758
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataObjectColumnDetailResponse({}));
6759
+ }
6760
+ else {
6761
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeDataObjectColumnDetailResponse({}));
6762
+ }
6650
6763
  }
6651
6764
  /**
6652
6765
  * 查看数据对象列详情
@@ -6703,7 +6816,12 @@ class Client extends openapi_client_1.default {
6703
6816
  reqBodyType: "formData",
6704
6817
  bodyType: "json",
6705
6818
  });
6706
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataObjectColumnDetailV2Response({}));
6819
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6820
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataObjectColumnDetailV2Response({}));
6821
+ }
6822
+ else {
6823
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeDataObjectColumnDetailV2Response({}));
6824
+ }
6707
6825
  }
6708
6826
  /**
6709
6827
  * 查看数据对象列详情V2
@@ -6790,7 +6908,12 @@ class Client extends openapi_client_1.default {
6790
6908
  reqBodyType: "formData",
6791
6909
  bodyType: "json",
6792
6910
  });
6793
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataObjectsResponse({}));
6911
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6912
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataObjectsResponse({}));
6913
+ }
6914
+ else {
6915
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeDataObjectsResponse({}));
6916
+ }
6794
6917
  }
6795
6918
  /**
6796
6919
  * 分页查询数据目录对象
@@ -6827,7 +6950,12 @@ class Client extends openapi_client_1.default {
6827
6950
  reqBodyType: "formData",
6828
6951
  bodyType: "json",
6829
6952
  });
6830
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeDocTypesResponse({}));
6953
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6954
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeDocTypesResponse({}));
6955
+ }
6956
+ else {
6957
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeDocTypesResponse({}));
6958
+ }
6831
6959
  }
6832
6960
  /**
6833
6961
  * @param request - DescribeDocTypesRequest
@@ -6867,7 +6995,12 @@ class Client extends openapi_client_1.default {
6867
6995
  reqBodyType: "formData",
6868
6996
  bodyType: "json",
6869
6997
  });
6870
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventDetailResponse({}));
6998
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6999
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventDetailResponse({}));
7000
+ }
7001
+ else {
7002
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeEventDetailResponse({}));
7003
+ }
6871
7004
  }
6872
7005
  /**
6873
7006
  * Queries the details of an anomalous event. The details include the time when the anomalous event occurred, and the description and handling status of the anomalous event.
@@ -6918,7 +7051,12 @@ class Client extends openapi_client_1.default {
6918
7051
  reqBodyType: "formData",
6919
7052
  bodyType: "json",
6920
7053
  });
6921
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventTypesResponse({}));
7054
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7055
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventTypesResponse({}));
7056
+ }
7057
+ else {
7058
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeEventTypesResponse({}));
7059
+ }
6922
7060
  }
6923
7061
  /**
6924
7062
  * Queries the types of anomalous events.
@@ -7007,7 +7145,12 @@ class Client extends openapi_client_1.default {
7007
7145
  reqBodyType: "formData",
7008
7146
  bodyType: "json",
7009
7147
  });
7010
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
7148
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7149
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
7150
+ }
7151
+ else {
7152
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeEventsResponse({}));
7153
+ }
7011
7154
  }
7012
7155
  /**
7013
7156
  * Queries anomalous events.
@@ -7048,7 +7191,12 @@ class Client extends openapi_client_1.default {
7048
7191
  reqBodyType: "formData",
7049
7192
  bodyType: "json",
7050
7193
  });
7051
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeIdentifyTaskStatusResponse({}));
7194
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7195
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeIdentifyTaskStatusResponse({}));
7196
+ }
7197
+ else {
7198
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeIdentifyTaskStatusResponse({}));
7199
+ }
7052
7200
  }
7053
7201
  /**
7054
7202
  * 查询识别任务状态
@@ -7129,7 +7277,12 @@ class Client extends openapi_client_1.default {
7129
7277
  reqBodyType: "formData",
7130
7278
  bodyType: "json",
7131
7279
  });
7132
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceSourcesResponse({}));
7280
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7281
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceSourcesResponse({}));
7282
+ }
7283
+ else {
7284
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeInstanceSourcesResponse({}));
7285
+ }
7133
7286
  }
7134
7287
  /**
7135
7288
  * Queries a list of data assets.
@@ -7206,7 +7359,12 @@ class Client extends openapi_client_1.default {
7206
7359
  reqBodyType: "formData",
7207
7360
  bodyType: "json",
7208
7361
  });
7209
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstancesResponse({}));
7362
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7363
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstancesResponse({}));
7364
+ }
7365
+ else {
7366
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeInstancesResponse({}));
7367
+ }
7210
7368
  }
7211
7369
  /**
7212
7370
  * Queries data assets such as MaxCompute, ApsaraDB RDS, and Object Storage Service (OSS) that you authorize Data Security Center (DSC) to access.
@@ -7260,7 +7418,12 @@ class Client extends openapi_client_1.default {
7260
7418
  reqBodyType: "formData",
7261
7419
  bodyType: "json",
7262
7420
  });
7263
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeOssObjectDetailResponse({}));
7421
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7422
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeOssObjectDetailResponse({}));
7423
+ }
7424
+ else {
7425
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeOssObjectDetailResponse({}));
7426
+ }
7264
7427
  }
7265
7428
  /**
7266
7429
  * Queries the details of an Object Storage Service (OSS) object that Data Security Center (DSC) is authorized to access.
@@ -7321,7 +7484,12 @@ class Client extends openapi_client_1.default {
7321
7484
  reqBodyType: "formData",
7322
7485
  bodyType: "json",
7323
7486
  });
7324
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeOssObjectDetailV2Response({}));
7487
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7488
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeOssObjectDetailV2Response({}));
7489
+ }
7490
+ else {
7491
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeOssObjectDetailV2Response({}));
7492
+ }
7325
7493
  }
7326
7494
  /**
7327
7495
  * 调用本接口查询数据安全中心连接授权的OSS的单个存储对象的详细信息
@@ -7396,7 +7564,12 @@ class Client extends openapi_client_1.default {
7396
7564
  reqBodyType: "formData",
7397
7565
  bodyType: "json",
7398
7566
  });
7399
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeOssObjectsResponse({}));
7567
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7568
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeOssObjectsResponse({}));
7569
+ }
7570
+ else {
7571
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeOssObjectsResponse({}));
7572
+ }
7400
7573
  }
7401
7574
  /**
7402
7575
  * Queries Object Storage Service (OSS) objects that you authorize Data Security Center (DSC) to access.
@@ -7461,7 +7634,12 @@ class Client extends openapi_client_1.default {
7461
7634
  reqBodyType: "formData",
7462
7635
  bodyType: "json",
7463
7636
  });
7464
- return $tea.cast(await this.callApi(params, req, runtime), new DescribePackagesResponse({}));
7637
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7638
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribePackagesResponse({}));
7639
+ }
7640
+ else {
7641
+ return $tea.cast(await this.execute(params, req, runtime), new DescribePackagesResponse({}));
7642
+ }
7465
7643
  }
7466
7644
  /**
7467
7645
  * Queries information about the MaxCompute packages that Data Security Center (DSC) is authorized to access. The information includes the names of MaxCompute packages, the accounts of MaxCompute package owners, and the sensitivity levels of MaxCompute packages.
@@ -7538,7 +7716,12 @@ class Client extends openapi_client_1.default {
7538
7716
  reqBodyType: "formData",
7539
7717
  bodyType: "json",
7540
7718
  });
7541
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeParentInstanceResponse({}));
7719
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7720
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeParentInstanceResponse({}));
7721
+ }
7722
+ else {
7723
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeParentInstanceResponse({}));
7724
+ }
7542
7725
  }
7543
7726
  /**
7544
7727
  * 获取一级授权列表
@@ -7588,7 +7771,12 @@ class Client extends openapi_client_1.default {
7588
7771
  reqBodyType: "formData",
7589
7772
  bodyType: "json",
7590
7773
  });
7591
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeRiskLevelsResponse({}));
7774
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7775
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeRiskLevelsResponse({}));
7776
+ }
7777
+ else {
7778
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeRiskLevelsResponse({}));
7779
+ }
7592
7780
  }
7593
7781
  /**
7594
7782
  * Queries the sensitivity levels that are defined in a rule template provided by Data Security Center (DSC).
@@ -7621,6 +7809,9 @@ class Client extends openapi_client_1.default {
7621
7809
  if (!tea_util_1.default.isUnset(request.contentCategory)) {
7622
7810
  query["ContentCategory"] = request.contentCategory;
7623
7811
  }
7812
+ if (!tea_util_1.default.isUnset(request.cooperationChannel)) {
7813
+ query["CooperationChannel"] = request.cooperationChannel;
7814
+ }
7624
7815
  if (!tea_util_1.default.isUnset(request.currentPage)) {
7625
7816
  query["CurrentPage"] = request.currentPage;
7626
7817
  }
@@ -7660,6 +7851,9 @@ class Client extends openapi_client_1.default {
7660
7851
  if (!tea_util_1.default.isUnset(request.ruleType)) {
7661
7852
  query["RuleType"] = request.ruleType;
7662
7853
  }
7854
+ if (!tea_util_1.default.isUnset(request.simplify)) {
7855
+ query["Simplify"] = request.simplify;
7856
+ }
7663
7857
  if (!tea_util_1.default.isUnset(request.status)) {
7664
7858
  query["Status"] = request.status;
7665
7859
  }
@@ -7683,7 +7877,12 @@ class Client extends openapi_client_1.default {
7683
7877
  reqBodyType: "formData",
7684
7878
  bodyType: "json",
7685
7879
  });
7686
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeRulesResponse({}));
7880
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7881
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeRulesResponse({}));
7882
+ }
7883
+ else {
7884
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeRulesResponse({}));
7885
+ }
7687
7886
  }
7688
7887
  /**
7689
7888
  * Queries sensitive data detection rules.
@@ -7760,7 +7959,12 @@ class Client extends openapi_client_1.default {
7760
7959
  reqBodyType: "formData",
7761
7960
  bodyType: "json",
7762
7961
  });
7763
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeTablesResponse({}));
7962
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7963
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeTablesResponse({}));
7964
+ }
7965
+ else {
7966
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeTablesResponse({}));
7967
+ }
7764
7968
  }
7765
7969
  /**
7766
7970
  * Queries tables in data assets, such as MaxCompute projects and ApsaraDB RDS instances, that you authorize Data Security Center (DSC) to access.
@@ -7808,7 +8012,12 @@ class Client extends openapi_client_1.default {
7808
8012
  reqBodyType: "formData",
7809
8013
  bodyType: "json",
7810
8014
  });
7811
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplateAllRulesResponse({}));
8015
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8016
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplateAllRulesResponse({}));
8017
+ }
8018
+ else {
8019
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeTemplateAllRulesResponse({}));
8020
+ }
7812
8021
  }
7813
8022
  /**
7814
8023
  * @param request - DescribeTemplateAllRulesRequest
@@ -7853,7 +8062,12 @@ class Client extends openapi_client_1.default {
7853
8062
  reqBodyType: "formData",
7854
8063
  bodyType: "json",
7855
8064
  });
7856
- return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserStatusResponse({}));
8065
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8066
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserStatusResponse({}));
8067
+ }
8068
+ else {
8069
+ return $tea.cast(await this.execute(params, req, runtime), new DescribeUserStatusResponse({}));
8070
+ }
7857
8071
  }
7858
8072
  /**
7859
8073
  * Queries the information about an account.
@@ -7908,7 +8122,12 @@ class Client extends openapi_client_1.default {
7908
8122
  reqBodyType: "formData",
7909
8123
  bodyType: "json",
7910
8124
  });
7911
- return $tea.cast(await this.callApi(params, req, runtime), new DisableUserConfigResponse({}));
8125
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8126
+ return $tea.cast(await this.callApi(params, req, runtime), new DisableUserConfigResponse({}));
8127
+ }
8128
+ else {
8129
+ return $tea.cast(await this.execute(params, req, runtime), new DisableUserConfigResponse({}));
8130
+ }
7912
8131
  }
7913
8132
  /**
7914
8133
  * Disables a configuration item. After you disable a configuration item, you can call the CreateConfig operation to enable the configuration item by specifying the code of the configuration item for the Code parameter in the request.
@@ -7961,7 +8180,12 @@ class Client extends openapi_client_1.default {
7961
8180
  reqBodyType: "formData",
7962
8181
  bodyType: "json",
7963
8182
  });
7964
- return $tea.cast(await this.callApi(params, req, runtime), new ExecDatamaskResponse({}));
8183
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8184
+ return $tea.cast(await this.callApi(params, req, runtime), new ExecDatamaskResponse({}));
8185
+ }
8186
+ else {
8187
+ return $tea.cast(await this.execute(params, req, runtime), new ExecDatamaskResponse({}));
8188
+ }
7965
8189
  }
7966
8190
  /**
7967
8191
  * Dynamically de-identifies sensitive data.
@@ -8003,7 +8227,12 @@ class Client extends openapi_client_1.default {
8003
8227
  reqBodyType: "formData",
8004
8228
  bodyType: "json",
8005
8229
  });
8006
- return $tea.cast(await this.callApi(params, req, runtime), new ManualTriggerMaskingProcessResponse({}));
8230
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8231
+ return $tea.cast(await this.callApi(params, req, runtime), new ManualTriggerMaskingProcessResponse({}));
8232
+ }
8233
+ else {
8234
+ return $tea.cast(await this.execute(params, req, runtime), new ManualTriggerMaskingProcessResponse({}));
8235
+ }
8007
8236
  }
8008
8237
  /**
8009
8238
  * Triggers a de-identification task.
@@ -8090,7 +8319,12 @@ class Client extends openapi_client_1.default {
8090
8319
  reqBodyType: "formData",
8091
8320
  bodyType: "json",
8092
8321
  });
8093
- return $tea.cast(await this.callApi(params, req, runtime), new ModifyDataLimitResponse({}));
8322
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8323
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyDataLimitResponse({}));
8324
+ }
8325
+ else {
8326
+ return $tea.cast(await this.execute(params, req, runtime), new ModifyDataLimitResponse({}));
8327
+ }
8094
8328
  }
8095
8329
  /**
8096
8330
  * Modifies configuration items for a data asset that you authorize Data Security Center (DSC) to access.
@@ -8140,7 +8374,12 @@ class Client extends openapi_client_1.default {
8140
8374
  reqBodyType: "formData",
8141
8375
  bodyType: "json",
8142
8376
  });
8143
- return $tea.cast(await this.callApi(params, req, runtime), new ModifyDefaultLevelResponse({}));
8377
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8378
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyDefaultLevelResponse({}));
8379
+ }
8380
+ else {
8381
+ return $tea.cast(await this.execute(params, req, runtime), new ModifyDefaultLevelResponse({}));
8382
+ }
8144
8383
  }
8145
8384
  /**
8146
8385
  * Changes the sensitivity levels of sensitive data. You can change the default sensitivity levels of data that cannot be classified as sensitive or insensitive, and the sensitivity levels of data that can be classified as sensitive.
@@ -8201,7 +8440,12 @@ class Client extends openapi_client_1.default {
8201
8440
  reqBodyType: "formData",
8202
8441
  bodyType: "json",
8203
8442
  });
8204
- return $tea.cast(await this.callApi(params, req, runtime), new ModifyEventStatusResponse({}));
8443
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8444
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyEventStatusResponse({}));
8445
+ }
8446
+ else {
8447
+ return $tea.cast(await this.execute(params, req, runtime), new ModifyEventStatusResponse({}));
8448
+ }
8205
8449
  }
8206
8450
  /**
8207
8451
  * Handles an anomalous event.
@@ -8251,7 +8495,12 @@ class Client extends openapi_client_1.default {
8251
8495
  reqBodyType: "formData",
8252
8496
  bodyType: "json",
8253
8497
  });
8254
- return $tea.cast(await this.callApi(params, req, runtime), new ModifyEventTypeStatusResponse({}));
8498
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8499
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyEventTypeStatusResponse({}));
8500
+ }
8501
+ else {
8502
+ return $tea.cast(await this.execute(params, req, runtime), new ModifyEventTypeStatusResponse({}));
8503
+ }
8255
8504
  }
8256
8505
  /**
8257
8506
  * Enables the detection of anomalous events of subtypes.
@@ -8301,7 +8550,12 @@ class Client extends openapi_client_1.default {
8301
8550
  reqBodyType: "formData",
8302
8551
  bodyType: "json",
8303
8552
  });
8304
- return $tea.cast(await this.callApi(params, req, runtime), new ModifyReportTaskStatusResponse({}));
8553
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8554
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyReportTaskStatusResponse({}));
8555
+ }
8556
+ else {
8557
+ return $tea.cast(await this.execute(params, req, runtime), new ModifyReportTaskStatusResponse({}));
8558
+ }
8305
8559
  }
8306
8560
  /**
8307
8561
  * Enables or disables the report task.
@@ -8383,7 +8637,12 @@ class Client extends openapi_client_1.default {
8383
8637
  reqBodyType: "formData",
8384
8638
  bodyType: "json",
8385
8639
  });
8386
- return $tea.cast(await this.callApi(params, req, runtime), new ModifyRuleResponse({}));
8640
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8641
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyRuleResponse({}));
8642
+ }
8643
+ else {
8644
+ return $tea.cast(await this.execute(params, req, runtime), new ModifyRuleResponse({}));
8645
+ }
8387
8646
  }
8388
8647
  /**
8389
8648
  * Modifies a custom sensitive data detection rule in Data Security Center (DSC).
@@ -8436,7 +8695,12 @@ class Client extends openapi_client_1.default {
8436
8695
  reqBodyType: "formData",
8437
8696
  bodyType: "json",
8438
8697
  });
8439
- return $tea.cast(await this.callApi(params, req, runtime), new ModifyRuleStatusResponse({}));
8698
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8699
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyRuleStatusResponse({}));
8700
+ }
8701
+ else {
8702
+ return $tea.cast(await this.execute(params, req, runtime), new ModifyRuleStatusResponse({}));
8703
+ }
8440
8704
  }
8441
8705
  /**
8442
8706
  * Enables or disables a sensitive data detection rule.
@@ -8492,7 +8756,12 @@ class Client extends openapi_client_1.default {
8492
8756
  reqBodyType: "formData",
8493
8757
  bodyType: "json",
8494
8758
  });
8495
- return $tea.cast(await this.callApi(params, req, runtime), new ScanOssObjectV1Response({}));
8759
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8760
+ return $tea.cast(await this.callApi(params, req, runtime), new ScanOssObjectV1Response({}));
8761
+ }
8762
+ else {
8763
+ return $tea.cast(await this.execute(params, req, runtime), new ScanOssObjectV1Response({}));
8764
+ }
8496
8765
  }
8497
8766
  /**
8498
8767
  * 创建文件扫描任务
@@ -8539,7 +8808,12 @@ class Client extends openapi_client_1.default {
8539
8808
  reqBodyType: "formData",
8540
8809
  bodyType: "json",
8541
8810
  });
8542
- return $tea.cast(await this.callApi(params, req, runtime), new StopMaskingProcessResponse({}));
8811
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8812
+ return $tea.cast(await this.callApi(params, req, runtime), new StopMaskingProcessResponse({}));
8813
+ }
8814
+ else {
8815
+ return $tea.cast(await this.execute(params, req, runtime), new StopMaskingProcessResponse({}));
8816
+ }
8543
8817
  }
8544
8818
  /**
8545
8819
  * Stops a de-identification task. After you stop a de-identification task, you can resume the task by calling the ManualTriggerMaskingProcess operation.