@alicloud/sddp20190103 1.2.8 → 1.3.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/sddp20190103",
3
- "version": "1.2.8",
3
+ "version": "1.3.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -1631,6 +1631,7 @@ export class DescribeColumnsRequest extends $tea.Model {
1631
1631
  * 1
1632
1632
  */
1633
1633
  currentPage?: number;
1634
+ engineType?: string;
1634
1635
  /**
1635
1636
  * @remarks
1636
1637
  * The ID of the instance to which data in the column of the table belongs.
@@ -1660,6 +1661,7 @@ export class DescribeColumnsRequest extends $tea.Model {
1660
1661
  * zh_cn
1661
1662
  */
1662
1663
  lang?: string;
1664
+ modelTagId?: string;
1663
1665
  /**
1664
1666
  * @remarks
1665
1667
  * The search keyword. Fuzzy match is supported.
@@ -1686,6 +1688,7 @@ export class DescribeColumnsRequest extends $tea.Model {
1686
1688
  * MaxCompute
1687
1689
  */
1688
1690
  productCode?: string;
1691
+ productId?: string;
1689
1692
  /**
1690
1693
  * @remarks
1691
1694
  * The sensitivity level of the sensitive data that hits the sensitive data detection rule. Valid values:
@@ -1750,39 +1753,51 @@ export class DescribeColumnsRequest extends $tea.Model {
1750
1753
  * it_table
1751
1754
  */
1752
1755
  tableName?: string;
1756
+ templateId?: string;
1757
+ templateRuleId?: string;
1753
1758
  static names(): { [key: string]: string } {
1754
1759
  return {
1755
1760
  currentPage: 'CurrentPage',
1761
+ engineType: 'EngineType',
1756
1762
  instanceId: 'InstanceId',
1757
1763
  instanceName: 'InstanceName',
1758
1764
  lang: 'Lang',
1765
+ modelTagId: 'ModelTagId',
1759
1766
  name: 'Name',
1760
1767
  pageSize: 'PageSize',
1761
1768
  productCode: 'ProductCode',
1769
+ productId: 'ProductId',
1762
1770
  riskLevelId: 'RiskLevelId',
1763
1771
  ruleId: 'RuleId',
1764
1772
  ruleName: 'RuleName',
1765
1773
  sensLevelName: 'SensLevelName',
1766
1774
  tableId: 'TableId',
1767
1775
  tableName: 'TableName',
1776
+ templateId: 'TemplateId',
1777
+ templateRuleId: 'TemplateRuleId',
1768
1778
  };
1769
1779
  }
1770
1780
 
1771
1781
  static types(): { [key: string]: any } {
1772
1782
  return {
1773
1783
  currentPage: 'number',
1784
+ engineType: 'string',
1774
1785
  instanceId: 'number',
1775
1786
  instanceName: 'string',
1776
1787
  lang: 'string',
1788
+ modelTagId: 'string',
1777
1789
  name: 'string',
1778
1790
  pageSize: 'number',
1779
1791
  productCode: 'string',
1792
+ productId: 'string',
1780
1793
  riskLevelId: 'number',
1781
1794
  ruleId: 'number',
1782
1795
  ruleName: 'string',
1783
1796
  sensLevelName: 'string',
1784
1797
  tableId: 'number',
1785
1798
  tableName: 'string',
1799
+ templateId: 'string',
1800
+ templateRuleId: 'string',
1786
1801
  };
1787
1802
  }
1788
1803
 
@@ -4980,6 +4995,7 @@ export class DescribeOssObjectDetailResponse extends $tea.Model {
4980
4995
  }
4981
4996
 
4982
4997
  export class DescribeOssObjectDetailV2Request extends $tea.Model {
4998
+ bucketName?: string;
4983
4999
  /**
4984
5000
  * @example
4985
5001
  * 12300
@@ -4990,17 +5006,28 @@ export class DescribeOssObjectDetailV2Request extends $tea.Model {
4990
5006
  * zh_cn
4991
5007
  */
4992
5008
  lang?: string;
5009
+ objectKey?: string;
5010
+ serviceRegionId?: string;
5011
+ templateId?: number;
4993
5012
  static names(): { [key: string]: string } {
4994
5013
  return {
5014
+ bucketName: 'BucketName',
4995
5015
  id: 'Id',
4996
5016
  lang: 'Lang',
5017
+ objectKey: 'ObjectKey',
5018
+ serviceRegionId: 'ServiceRegionId',
5019
+ templateId: 'TemplateId',
4997
5020
  };
4998
5021
  }
4999
5022
 
5000
5023
  static types(): { [key: string]: any } {
5001
5024
  return {
5025
+ bucketName: 'string',
5002
5026
  id: 'string',
5003
5027
  lang: 'string',
5028
+ objectKey: 'string',
5029
+ serviceRegionId: 'string',
5030
+ templateId: 'number',
5004
5031
  };
5005
5032
  }
5006
5033
 
@@ -7930,6 +7957,175 @@ export class ModifyRuleStatusResponse extends $tea.Model {
7930
7957
  }
7931
7958
  }
7932
7959
 
7960
+ export class ScanOssObjectV1Request extends $tea.Model {
7961
+ /**
7962
+ * @remarks
7963
+ * This parameter is required.
7964
+ *
7965
+ * @example
7966
+ * sddp-api-demo-bucket
7967
+ */
7968
+ bucketName?: string;
7969
+ /**
7970
+ * @example
7971
+ * zh
7972
+ */
7973
+ lang?: string;
7974
+ /**
7975
+ * @remarks
7976
+ * This parameter is required.
7977
+ */
7978
+ objectKeyList?: string[];
7979
+ /**
7980
+ * @remarks
7981
+ * This parameter is required.
7982
+ *
7983
+ * @example
7984
+ * cn-hangzhou
7985
+ */
7986
+ serviceRegionId?: string;
7987
+ /**
7988
+ * @example
7989
+ * 1
7990
+ */
7991
+ templateId?: number;
7992
+ static names(): { [key: string]: string } {
7993
+ return {
7994
+ bucketName: 'BucketName',
7995
+ lang: 'Lang',
7996
+ objectKeyList: 'ObjectKeyList',
7997
+ serviceRegionId: 'ServiceRegionId',
7998
+ templateId: 'TemplateId',
7999
+ };
8000
+ }
8001
+
8002
+ static types(): { [key: string]: any } {
8003
+ return {
8004
+ bucketName: 'string',
8005
+ lang: 'string',
8006
+ objectKeyList: { 'type': 'array', 'itemType': 'string' },
8007
+ serviceRegionId: 'string',
8008
+ templateId: 'number',
8009
+ };
8010
+ }
8011
+
8012
+ constructor(map?: { [key: string]: any }) {
8013
+ super(map);
8014
+ }
8015
+ }
8016
+
8017
+ export class ScanOssObjectV1ShrinkRequest extends $tea.Model {
8018
+ /**
8019
+ * @remarks
8020
+ * This parameter is required.
8021
+ *
8022
+ * @example
8023
+ * sddp-api-demo-bucket
8024
+ */
8025
+ bucketName?: string;
8026
+ /**
8027
+ * @example
8028
+ * zh
8029
+ */
8030
+ lang?: string;
8031
+ /**
8032
+ * @remarks
8033
+ * This parameter is required.
8034
+ */
8035
+ objectKeyListShrink?: string;
8036
+ /**
8037
+ * @remarks
8038
+ * This parameter is required.
8039
+ *
8040
+ * @example
8041
+ * cn-hangzhou
8042
+ */
8043
+ serviceRegionId?: string;
8044
+ /**
8045
+ * @example
8046
+ * 1
8047
+ */
8048
+ templateId?: number;
8049
+ static names(): { [key: string]: string } {
8050
+ return {
8051
+ bucketName: 'BucketName',
8052
+ lang: 'Lang',
8053
+ objectKeyListShrink: 'ObjectKeyList',
8054
+ serviceRegionId: 'ServiceRegionId',
8055
+ templateId: 'TemplateId',
8056
+ };
8057
+ }
8058
+
8059
+ static types(): { [key: string]: any } {
8060
+ return {
8061
+ bucketName: 'string',
8062
+ lang: 'string',
8063
+ objectKeyListShrink: 'string',
8064
+ serviceRegionId: 'string',
8065
+ templateId: 'number',
8066
+ };
8067
+ }
8068
+
8069
+ constructor(map?: { [key: string]: any }) {
8070
+ super(map);
8071
+ }
8072
+ }
8073
+
8074
+ export class ScanOssObjectV1ResponseBody extends $tea.Model {
8075
+ /**
8076
+ * @example
8077
+ * 268
8078
+ */
8079
+ id?: number;
8080
+ /**
8081
+ * @example
8082
+ * 7C3AC882-E5A8-4855-BE77-B6837B695EF1
8083
+ */
8084
+ requestId?: string;
8085
+ static names(): { [key: string]: string } {
8086
+ return {
8087
+ id: 'Id',
8088
+ requestId: 'RequestId',
8089
+ };
8090
+ }
8091
+
8092
+ static types(): { [key: string]: any } {
8093
+ return {
8094
+ id: 'number',
8095
+ requestId: 'string',
8096
+ };
8097
+ }
8098
+
8099
+ constructor(map?: { [key: string]: any }) {
8100
+ super(map);
8101
+ }
8102
+ }
8103
+
8104
+ export class ScanOssObjectV1Response extends $tea.Model {
8105
+ headers?: { [key: string]: string };
8106
+ statusCode?: number;
8107
+ body?: ScanOssObjectV1ResponseBody;
8108
+ static names(): { [key: string]: string } {
8109
+ return {
8110
+ headers: 'headers',
8111
+ statusCode: 'statusCode',
8112
+ body: 'body',
8113
+ };
8114
+ }
8115
+
8116
+ static types(): { [key: string]: any } {
8117
+ return {
8118
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
8119
+ statusCode: 'number',
8120
+ body: ScanOssObjectV1ResponseBody,
8121
+ };
8122
+ }
8123
+
8124
+ constructor(map?: { [key: string]: any }) {
8125
+ super(map);
8126
+ }
8127
+ }
8128
+
7933
8129
  export class StopMaskingProcessRequest extends $tea.Model {
7934
8130
  /**
7935
8131
  * @remarks
@@ -8360,6 +8556,7 @@ export class DescribeColumnsResponseBodyItems extends $tea.Model {
8360
8556
  * MaxCompute
8361
8557
  */
8362
8558
  productCode?: string;
8559
+ regionId?: string;
8363
8560
  /**
8364
8561
  * @remarks
8365
8562
  * The ID of the revision record.
@@ -8476,6 +8673,7 @@ export class DescribeColumnsResponseBodyItems extends $tea.Model {
8476
8673
  odpsRiskLevelName: 'OdpsRiskLevelName',
8477
8674
  odpsRiskLevelValue: 'OdpsRiskLevelValue',
8478
8675
  productCode: 'ProductCode',
8676
+ regionId: 'RegionId',
8479
8677
  revisionId: 'RevisionId',
8480
8678
  revisionStatus: 'RevisionStatus',
8481
8679
  riskLevelId: 'RiskLevelId',
@@ -8501,6 +8699,7 @@ export class DescribeColumnsResponseBodyItems extends $tea.Model {
8501
8699
  odpsRiskLevelName: 'string',
8502
8700
  odpsRiskLevelValue: 'number',
8503
8701
  productCode: 'string',
8702
+ regionId: 'string',
8504
8703
  revisionId: 'number',
8505
8704
  revisionStatus: 'number',
8506
8705
  riskLevelId: 'number',
@@ -13300,6 +13499,7 @@ export class DescribeParentInstanceResponseBodyItems extends $tea.Model {
13300
13499
  * rm-uf6b9897shxxx.test
13301
13500
  */
13302
13501
  parentId?: string;
13502
+ regionId?: string;
13303
13503
  /**
13304
13504
  * @example
13305
13505
  * RDS
@@ -13345,6 +13545,7 @@ export class DescribeParentInstanceResponseBodyItems extends $tea.Model {
13345
13545
  localName: 'LocalName',
13346
13546
  memberAccount: 'MemberAccount',
13347
13547
  parentId: 'ParentId',
13548
+ regionId: 'RegionId',
13348
13549
  resourceType: 'ResourceType',
13349
13550
  supportConnectNodes: 'SupportConnectNodes',
13350
13551
  tenantId: 'TenantId',
@@ -13369,6 +13570,7 @@ export class DescribeParentInstanceResponseBodyItems extends $tea.Model {
13369
13570
  localName: 'string',
13370
13571
  memberAccount: 'number',
13371
13572
  parentId: 'string',
13573
+ regionId: 'string',
13372
13574
  resourceType: 'string',
13373
13575
  supportConnectNodes: 'string',
13374
13576
  tenantId: 'string',
@@ -15053,6 +15255,10 @@ export default class Client extends OpenApi {
15053
15255
  query["CurrentPage"] = request.currentPage;
15054
15256
  }
15055
15257
 
15258
+ if (!Util.isUnset(request.engineType)) {
15259
+ query["EngineType"] = request.engineType;
15260
+ }
15261
+
15056
15262
  if (!Util.isUnset(request.instanceId)) {
15057
15263
  query["InstanceId"] = request.instanceId;
15058
15264
  }
@@ -15065,6 +15271,10 @@ export default class Client extends OpenApi {
15065
15271
  query["Lang"] = request.lang;
15066
15272
  }
15067
15273
 
15274
+ if (!Util.isUnset(request.modelTagId)) {
15275
+ query["ModelTagId"] = request.modelTagId;
15276
+ }
15277
+
15068
15278
  if (!Util.isUnset(request.name)) {
15069
15279
  query["Name"] = request.name;
15070
15280
  }
@@ -15077,6 +15287,10 @@ export default class Client extends OpenApi {
15077
15287
  query["ProductCode"] = request.productCode;
15078
15288
  }
15079
15289
 
15290
+ if (!Util.isUnset(request.productId)) {
15291
+ query["ProductId"] = request.productId;
15292
+ }
15293
+
15080
15294
  if (!Util.isUnset(request.riskLevelId)) {
15081
15295
  query["RiskLevelId"] = request.riskLevelId;
15082
15296
  }
@@ -15101,6 +15315,14 @@ export default class Client extends OpenApi {
15101
15315
  query["TableName"] = request.tableName;
15102
15316
  }
15103
15317
 
15318
+ if (!Util.isUnset(request.templateId)) {
15319
+ query["TemplateId"] = request.templateId;
15320
+ }
15321
+
15322
+ if (!Util.isUnset(request.templateRuleId)) {
15323
+ query["TemplateRuleId"] = request.templateRuleId;
15324
+ }
15325
+
15104
15326
  let req = new $OpenApi.OpenApiRequest({
15105
15327
  query: OpenApiUtil.query(query),
15106
15328
  });
@@ -16470,6 +16692,10 @@ export default class Client extends OpenApi {
16470
16692
  async describeOssObjectDetailV2WithOptions(request: DescribeOssObjectDetailV2Request, runtime: $Util.RuntimeOptions): Promise<DescribeOssObjectDetailV2Response> {
16471
16693
  Util.validateModel(request);
16472
16694
  let query = { };
16695
+ if (!Util.isUnset(request.bucketName)) {
16696
+ query["BucketName"] = request.bucketName;
16697
+ }
16698
+
16473
16699
  if (!Util.isUnset(request.id)) {
16474
16700
  query["Id"] = request.id;
16475
16701
  }
@@ -16478,6 +16704,18 @@ export default class Client extends OpenApi {
16478
16704
  query["Lang"] = request.lang;
16479
16705
  }
16480
16706
 
16707
+ if (!Util.isUnset(request.objectKey)) {
16708
+ query["ObjectKey"] = request.objectKey;
16709
+ }
16710
+
16711
+ if (!Util.isUnset(request.serviceRegionId)) {
16712
+ query["ServiceRegionId"] = request.serviceRegionId;
16713
+ }
16714
+
16715
+ if (!Util.isUnset(request.templateId)) {
16716
+ query["TemplateId"] = request.templateId;
16717
+ }
16718
+
16481
16719
  let req = new $OpenApi.OpenApiRequest({
16482
16720
  query: OpenApiUtil.query(query),
16483
16721
  });
@@ -17784,6 +18022,70 @@ export default class Client extends OpenApi {
17784
18022
  return await this.modifyRuleStatusWithOptions(request, runtime);
17785
18023
  }
17786
18024
 
18025
+ /**
18026
+ * 创建文件扫描任务
18027
+ *
18028
+ * @param tmpReq - ScanOssObjectV1Request
18029
+ * @param runtime - runtime options for this request RuntimeOptions
18030
+ * @returns ScanOssObjectV1Response
18031
+ */
18032
+ async scanOssObjectV1WithOptions(tmpReq: ScanOssObjectV1Request, runtime: $Util.RuntimeOptions): Promise<ScanOssObjectV1Response> {
18033
+ Util.validateModel(tmpReq);
18034
+ let request = new ScanOssObjectV1ShrinkRequest({ });
18035
+ OpenApiUtil.convert(tmpReq, request);
18036
+ if (!Util.isUnset(tmpReq.objectKeyList)) {
18037
+ request.objectKeyListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectKeyList, "ObjectKeyList", "json");
18038
+ }
18039
+
18040
+ let query = { };
18041
+ if (!Util.isUnset(request.bucketName)) {
18042
+ query["BucketName"] = request.bucketName;
18043
+ }
18044
+
18045
+ if (!Util.isUnset(request.lang)) {
18046
+ query["Lang"] = request.lang;
18047
+ }
18048
+
18049
+ if (!Util.isUnset(request.objectKeyListShrink)) {
18050
+ query["ObjectKeyList"] = request.objectKeyListShrink;
18051
+ }
18052
+
18053
+ if (!Util.isUnset(request.serviceRegionId)) {
18054
+ query["ServiceRegionId"] = request.serviceRegionId;
18055
+ }
18056
+
18057
+ if (!Util.isUnset(request.templateId)) {
18058
+ query["TemplateId"] = request.templateId;
18059
+ }
18060
+
18061
+ let req = new $OpenApi.OpenApiRequest({
18062
+ query: OpenApiUtil.query(query),
18063
+ });
18064
+ let params = new $OpenApi.Params({
18065
+ action: "ScanOssObjectV1",
18066
+ version: "2019-01-03",
18067
+ protocol: "HTTPS",
18068
+ pathname: "/",
18069
+ method: "POST",
18070
+ authType: "AK",
18071
+ style: "RPC",
18072
+ reqBodyType: "formData",
18073
+ bodyType: "json",
18074
+ });
18075
+ return $tea.cast<ScanOssObjectV1Response>(await this.callApi(params, req, runtime), new ScanOssObjectV1Response({}));
18076
+ }
18077
+
18078
+ /**
18079
+ * 创建文件扫描任务
18080
+ *
18081
+ * @param request - ScanOssObjectV1Request
18082
+ * @returns ScanOssObjectV1Response
18083
+ */
18084
+ async scanOssObjectV1(request: ScanOssObjectV1Request): Promise<ScanOssObjectV1Response> {
18085
+ let runtime = new $Util.RuntimeOptions({ });
18086
+ return await this.scanOssObjectV1WithOptions(request, runtime);
18087
+ }
18088
+
17787
18089
  /**
17788
18090
  * Stops a de-identification task. After you stop a de-identification task, you can resume the task by calling the ManualTriggerMaskingProcess operation.
17789
18091
  *