@alicloud/sddp20190103 1.2.9 → 1.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/sddp20190103",
3
- "version": "1.2.9",
3
+ "version": "1.4.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.9",
24
- "@alicloud/openapi-client": "^0.4.11",
24
+ "@alicloud/openapi-client": "^0.4.12",
25
25
  "@alicloud/openapi-util": "^0.3.2",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
27
27
  },
package/src/client.ts CHANGED
@@ -4427,6 +4427,90 @@ export class DescribeEventsResponse extends $tea.Model {
4427
4427
  }
4428
4428
  }
4429
4429
 
4430
+ export class DescribeIdentifyTaskStatusRequest extends $tea.Model {
4431
+ /**
4432
+ * @remarks
4433
+ * This parameter is required.
4434
+ *
4435
+ * @example
4436
+ * 268
4437
+ */
4438
+ id?: number;
4439
+ /**
4440
+ * @example
4441
+ * zh_cn
4442
+ */
4443
+ lang?: string;
4444
+ static names(): { [key: string]: string } {
4445
+ return {
4446
+ id: 'Id',
4447
+ lang: 'Lang',
4448
+ };
4449
+ }
4450
+
4451
+ static types(): { [key: string]: any } {
4452
+ return {
4453
+ id: 'number',
4454
+ lang: 'string',
4455
+ };
4456
+ }
4457
+
4458
+ constructor(map?: { [key: string]: any }) {
4459
+ super(map);
4460
+ }
4461
+ }
4462
+
4463
+ export class DescribeIdentifyTaskStatusResponseBody extends $tea.Model {
4464
+ content?: DescribeIdentifyTaskStatusResponseBodyContent;
4465
+ /**
4466
+ * @example
4467
+ * 71064826-726F-4ADA-B879-05D8055476FB
4468
+ */
4469
+ requestId?: string;
4470
+ static names(): { [key: string]: string } {
4471
+ return {
4472
+ content: 'Content',
4473
+ requestId: 'RequestId',
4474
+ };
4475
+ }
4476
+
4477
+ static types(): { [key: string]: any } {
4478
+ return {
4479
+ content: DescribeIdentifyTaskStatusResponseBodyContent,
4480
+ requestId: 'string',
4481
+ };
4482
+ }
4483
+
4484
+ constructor(map?: { [key: string]: any }) {
4485
+ super(map);
4486
+ }
4487
+ }
4488
+
4489
+ export class DescribeIdentifyTaskStatusResponse extends $tea.Model {
4490
+ headers?: { [key: string]: string };
4491
+ statusCode?: number;
4492
+ body?: DescribeIdentifyTaskStatusResponseBody;
4493
+ static names(): { [key: string]: string } {
4494
+ return {
4495
+ headers: 'headers',
4496
+ statusCode: 'statusCode',
4497
+ body: 'body',
4498
+ };
4499
+ }
4500
+
4501
+ static types(): { [key: string]: any } {
4502
+ return {
4503
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4504
+ statusCode: 'number',
4505
+ body: DescribeIdentifyTaskStatusResponseBody,
4506
+ };
4507
+ }
4508
+
4509
+ constructor(map?: { [key: string]: any }) {
4510
+ super(map);
4511
+ }
4512
+ }
4513
+
4430
4514
  export class DescribeInstanceSourcesRequest extends $tea.Model {
4431
4515
  /**
4432
4516
  * @remarks
@@ -7957,6 +8041,175 @@ export class ModifyRuleStatusResponse extends $tea.Model {
7957
8041
  }
7958
8042
  }
7959
8043
 
8044
+ export class ScanOssObjectV1Request extends $tea.Model {
8045
+ /**
8046
+ * @remarks
8047
+ * This parameter is required.
8048
+ *
8049
+ * @example
8050
+ * sddp-api-demo-bucket
8051
+ */
8052
+ bucketName?: string;
8053
+ /**
8054
+ * @example
8055
+ * zh
8056
+ */
8057
+ lang?: string;
8058
+ /**
8059
+ * @remarks
8060
+ * This parameter is required.
8061
+ */
8062
+ objectKeyList?: string[];
8063
+ /**
8064
+ * @remarks
8065
+ * This parameter is required.
8066
+ *
8067
+ * @example
8068
+ * cn-hangzhou
8069
+ */
8070
+ serviceRegionId?: string;
8071
+ /**
8072
+ * @example
8073
+ * 1
8074
+ */
8075
+ templateId?: number;
8076
+ static names(): { [key: string]: string } {
8077
+ return {
8078
+ bucketName: 'BucketName',
8079
+ lang: 'Lang',
8080
+ objectKeyList: 'ObjectKeyList',
8081
+ serviceRegionId: 'ServiceRegionId',
8082
+ templateId: 'TemplateId',
8083
+ };
8084
+ }
8085
+
8086
+ static types(): { [key: string]: any } {
8087
+ return {
8088
+ bucketName: 'string',
8089
+ lang: 'string',
8090
+ objectKeyList: { 'type': 'array', 'itemType': 'string' },
8091
+ serviceRegionId: 'string',
8092
+ templateId: 'number',
8093
+ };
8094
+ }
8095
+
8096
+ constructor(map?: { [key: string]: any }) {
8097
+ super(map);
8098
+ }
8099
+ }
8100
+
8101
+ export class ScanOssObjectV1ShrinkRequest extends $tea.Model {
8102
+ /**
8103
+ * @remarks
8104
+ * This parameter is required.
8105
+ *
8106
+ * @example
8107
+ * sddp-api-demo-bucket
8108
+ */
8109
+ bucketName?: string;
8110
+ /**
8111
+ * @example
8112
+ * zh
8113
+ */
8114
+ lang?: string;
8115
+ /**
8116
+ * @remarks
8117
+ * This parameter is required.
8118
+ */
8119
+ objectKeyListShrink?: string;
8120
+ /**
8121
+ * @remarks
8122
+ * This parameter is required.
8123
+ *
8124
+ * @example
8125
+ * cn-hangzhou
8126
+ */
8127
+ serviceRegionId?: string;
8128
+ /**
8129
+ * @example
8130
+ * 1
8131
+ */
8132
+ templateId?: number;
8133
+ static names(): { [key: string]: string } {
8134
+ return {
8135
+ bucketName: 'BucketName',
8136
+ lang: 'Lang',
8137
+ objectKeyListShrink: 'ObjectKeyList',
8138
+ serviceRegionId: 'ServiceRegionId',
8139
+ templateId: 'TemplateId',
8140
+ };
8141
+ }
8142
+
8143
+ static types(): { [key: string]: any } {
8144
+ return {
8145
+ bucketName: 'string',
8146
+ lang: 'string',
8147
+ objectKeyListShrink: 'string',
8148
+ serviceRegionId: 'string',
8149
+ templateId: 'number',
8150
+ };
8151
+ }
8152
+
8153
+ constructor(map?: { [key: string]: any }) {
8154
+ super(map);
8155
+ }
8156
+ }
8157
+
8158
+ export class ScanOssObjectV1ResponseBody extends $tea.Model {
8159
+ /**
8160
+ * @example
8161
+ * 268
8162
+ */
8163
+ id?: number;
8164
+ /**
8165
+ * @example
8166
+ * 7C3AC882-E5A8-4855-BE77-B6837B695EF1
8167
+ */
8168
+ requestId?: string;
8169
+ static names(): { [key: string]: string } {
8170
+ return {
8171
+ id: 'Id',
8172
+ requestId: 'RequestId',
8173
+ };
8174
+ }
8175
+
8176
+ static types(): { [key: string]: any } {
8177
+ return {
8178
+ id: 'number',
8179
+ requestId: 'string',
8180
+ };
8181
+ }
8182
+
8183
+ constructor(map?: { [key: string]: any }) {
8184
+ super(map);
8185
+ }
8186
+ }
8187
+
8188
+ export class ScanOssObjectV1Response extends $tea.Model {
8189
+ headers?: { [key: string]: string };
8190
+ statusCode?: number;
8191
+ body?: ScanOssObjectV1ResponseBody;
8192
+ static names(): { [key: string]: string } {
8193
+ return {
8194
+ headers: 'headers',
8195
+ statusCode: 'statusCode',
8196
+ body: 'body',
8197
+ };
8198
+ }
8199
+
8200
+ static types(): { [key: string]: any } {
8201
+ return {
8202
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
8203
+ statusCode: 'number',
8204
+ body: ScanOssObjectV1ResponseBody,
8205
+ };
8206
+ }
8207
+
8208
+ constructor(map?: { [key: string]: any }) {
8209
+ super(map);
8210
+ }
8211
+ }
8212
+
7960
8213
  export class StopMaskingProcessRequest extends $tea.Model {
7961
8214
  /**
7962
8215
  * @remarks
@@ -12004,6 +12257,25 @@ export class DescribeEventsResponseBodyItems extends $tea.Model {
12004
12257
  }
12005
12258
  }
12006
12259
 
12260
+ export class DescribeIdentifyTaskStatusResponseBodyContent extends $tea.Model {
12261
+ status?: number;
12262
+ static names(): { [key: string]: string } {
12263
+ return {
12264
+ status: 'Status',
12265
+ };
12266
+ }
12267
+
12268
+ static types(): { [key: string]: any } {
12269
+ return {
12270
+ status: 'number',
12271
+ };
12272
+ }
12273
+
12274
+ constructor(map?: { [key: string]: any }) {
12275
+ super(map);
12276
+ }
12277
+ }
12278
+
12007
12279
  export class DescribeInstanceSourcesResponseBodyItems extends $tea.Model {
12008
12280
  /**
12009
12281
  * @remarks
@@ -12390,6 +12662,7 @@ export class DescribeInstancesResponseBodyItems extends $tea.Model {
12390
12662
  * 1637622793000
12391
12663
  */
12392
12664
  lastFinishTime?: number;
12665
+ memberAliUid?: string;
12393
12666
  /**
12394
12667
  * @remarks
12395
12668
  * A list of tags.
@@ -12525,6 +12798,7 @@ export class DescribeInstancesResponseBodyItems extends $tea.Model {
12525
12798
  instanceDescription: 'InstanceDescription',
12526
12799
  labelsec: 'Labelsec',
12527
12800
  lastFinishTime: 'LastFinishTime',
12801
+ memberAliUid: 'MemberAliUid',
12528
12802
  modelTags: 'ModelTags',
12529
12803
  name: 'Name',
12530
12804
  odpsRiskLevelName: 'OdpsRiskLevelName',
@@ -12550,6 +12824,7 @@ export class DescribeInstancesResponseBodyItems extends $tea.Model {
12550
12824
  instanceDescription: 'string',
12551
12825
  labelsec: 'boolean',
12552
12826
  lastFinishTime: 'number',
12827
+ memberAliUid: 'string',
12553
12828
  modelTags: { 'type': 'array', 'itemType': DescribeInstancesResponseBodyItemsModelTags },
12554
12829
  name: 'string',
12555
12830
  odpsRiskLevelName: 'string',
@@ -12863,30 +13138,42 @@ export class DescribeOssObjectDetailV2ResponseBodyOssObjectDetail extends $tea.M
12863
13138
  * Excel file
12864
13139
  */
12865
13140
  categoryName?: string;
13141
+ fileCategoryName?: string;
13142
+ id?: string;
13143
+ modelTagIds?: string;
12866
13144
  /**
12867
13145
  * @example
12868
13146
  * obj_id
12869
13147
  */
12870
13148
  name?: string;
13149
+ objectAcl?: string;
12871
13150
  /**
12872
13151
  * @example
12873
13152
  * cn-zhangjiakou
12874
13153
  */
12875
13154
  regionId?: string;
13155
+ riskLevelId?: number;
12876
13156
  /**
12877
13157
  * @example
12878
13158
  * S1
12879
13159
  */
12880
13160
  riskLevelName?: string;
12881
13161
  ruleList?: DescribeOssObjectDetailV2ResponseBodyOssObjectDetailRuleList[];
13162
+ size?: number;
12882
13163
  static names(): { [key: string]: string } {
12883
13164
  return {
12884
13165
  bucketName: 'BucketName',
12885
13166
  categoryName: 'CategoryName',
13167
+ fileCategoryName: 'FileCategoryName',
13168
+ id: 'Id',
13169
+ modelTagIds: 'ModelTagIds',
12886
13170
  name: 'Name',
13171
+ objectAcl: 'ObjectAcl',
12887
13172
  regionId: 'RegionId',
13173
+ riskLevelId: 'RiskLevelId',
12888
13174
  riskLevelName: 'RiskLevelName',
12889
13175
  ruleList: 'RuleList',
13176
+ size: 'Size',
12890
13177
  };
12891
13178
  }
12892
13179
 
@@ -12894,10 +13181,16 @@ export class DescribeOssObjectDetailV2ResponseBodyOssObjectDetail extends $tea.M
12894
13181
  return {
12895
13182
  bucketName: 'string',
12896
13183
  categoryName: 'string',
13184
+ fileCategoryName: 'string',
13185
+ id: 'string',
13186
+ modelTagIds: 'string',
12897
13187
  name: 'string',
13188
+ objectAcl: 'string',
12898
13189
  regionId: 'string',
13190
+ riskLevelId: 'number',
12899
13191
  riskLevelName: 'string',
12900
13192
  ruleList: { 'type': 'array', 'itemType': DescribeOssObjectDetailV2ResponseBodyOssObjectDetailRuleList },
13193
+ size: 'number',
12901
13194
  };
12902
13195
  }
12903
13196
 
@@ -16263,6 +16556,44 @@ export default class Client extends OpenApi {
16263
16556
  return await this.describeEventsWithOptions(request, runtime);
16264
16557
  }
16265
16558
 
16559
+ /**
16560
+ * 查询识别任务状态
16561
+ *
16562
+ * @param request - DescribeIdentifyTaskStatusRequest
16563
+ * @param runtime - runtime options for this request RuntimeOptions
16564
+ * @returns DescribeIdentifyTaskStatusResponse
16565
+ */
16566
+ async describeIdentifyTaskStatusWithOptions(request: DescribeIdentifyTaskStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribeIdentifyTaskStatusResponse> {
16567
+ Util.validateModel(request);
16568
+ let query = OpenApiUtil.query(Util.toMap(request));
16569
+ let req = new $OpenApi.OpenApiRequest({
16570
+ query: OpenApiUtil.query(query),
16571
+ });
16572
+ let params = new $OpenApi.Params({
16573
+ action: "DescribeIdentifyTaskStatus",
16574
+ version: "2019-01-03",
16575
+ protocol: "HTTPS",
16576
+ pathname: "/",
16577
+ method: "GET",
16578
+ authType: "AK",
16579
+ style: "RPC",
16580
+ reqBodyType: "formData",
16581
+ bodyType: "json",
16582
+ });
16583
+ return $tea.cast<DescribeIdentifyTaskStatusResponse>(await this.callApi(params, req, runtime), new DescribeIdentifyTaskStatusResponse({}));
16584
+ }
16585
+
16586
+ /**
16587
+ * 查询识别任务状态
16588
+ *
16589
+ * @param request - DescribeIdentifyTaskStatusRequest
16590
+ * @returns DescribeIdentifyTaskStatusResponse
16591
+ */
16592
+ async describeIdentifyTaskStatus(request: DescribeIdentifyTaskStatusRequest): Promise<DescribeIdentifyTaskStatusResponse> {
16593
+ let runtime = new $Util.RuntimeOptions({ });
16594
+ return await this.describeIdentifyTaskStatusWithOptions(request, runtime);
16595
+ }
16596
+
16266
16597
  /**
16267
16598
  * Queries a list of data assets.
16268
16599
  *
@@ -17853,6 +18184,70 @@ export default class Client extends OpenApi {
17853
18184
  return await this.modifyRuleStatusWithOptions(request, runtime);
17854
18185
  }
17855
18186
 
18187
+ /**
18188
+ * 创建文件扫描任务
18189
+ *
18190
+ * @param tmpReq - ScanOssObjectV1Request
18191
+ * @param runtime - runtime options for this request RuntimeOptions
18192
+ * @returns ScanOssObjectV1Response
18193
+ */
18194
+ async scanOssObjectV1WithOptions(tmpReq: ScanOssObjectV1Request, runtime: $Util.RuntimeOptions): Promise<ScanOssObjectV1Response> {
18195
+ Util.validateModel(tmpReq);
18196
+ let request = new ScanOssObjectV1ShrinkRequest({ });
18197
+ OpenApiUtil.convert(tmpReq, request);
18198
+ if (!Util.isUnset(tmpReq.objectKeyList)) {
18199
+ request.objectKeyListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectKeyList, "ObjectKeyList", "json");
18200
+ }
18201
+
18202
+ let query = { };
18203
+ if (!Util.isUnset(request.bucketName)) {
18204
+ query["BucketName"] = request.bucketName;
18205
+ }
18206
+
18207
+ if (!Util.isUnset(request.lang)) {
18208
+ query["Lang"] = request.lang;
18209
+ }
18210
+
18211
+ if (!Util.isUnset(request.objectKeyListShrink)) {
18212
+ query["ObjectKeyList"] = request.objectKeyListShrink;
18213
+ }
18214
+
18215
+ if (!Util.isUnset(request.serviceRegionId)) {
18216
+ query["ServiceRegionId"] = request.serviceRegionId;
18217
+ }
18218
+
18219
+ if (!Util.isUnset(request.templateId)) {
18220
+ query["TemplateId"] = request.templateId;
18221
+ }
18222
+
18223
+ let req = new $OpenApi.OpenApiRequest({
18224
+ query: OpenApiUtil.query(query),
18225
+ });
18226
+ let params = new $OpenApi.Params({
18227
+ action: "ScanOssObjectV1",
18228
+ version: "2019-01-03",
18229
+ protocol: "HTTPS",
18230
+ pathname: "/",
18231
+ method: "POST",
18232
+ authType: "AK",
18233
+ style: "RPC",
18234
+ reqBodyType: "formData",
18235
+ bodyType: "json",
18236
+ });
18237
+ return $tea.cast<ScanOssObjectV1Response>(await this.callApi(params, req, runtime), new ScanOssObjectV1Response({}));
18238
+ }
18239
+
18240
+ /**
18241
+ * 创建文件扫描任务
18242
+ *
18243
+ * @param request - ScanOssObjectV1Request
18244
+ * @returns ScanOssObjectV1Response
18245
+ */
18246
+ async scanOssObjectV1(request: ScanOssObjectV1Request): Promise<ScanOssObjectV1Response> {
18247
+ let runtime = new $Util.RuntimeOptions({ });
18248
+ return await this.scanOssObjectV1WithOptions(request, runtime);
18249
+ }
18250
+
17856
18251
  /**
17857
18252
  * Stops a de-identification task. After you stop a de-identification task, you can resume the task by calling the ManualTriggerMaskingProcess operation.
17858
18253
  *