@alicloud/sddp20190103 1.0.4 → 1.0.5
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.d.ts +87 -1
- package/dist/client.js +1404 -76
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +1692 -93
package/dist/client.js
CHANGED
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
*/
|
|
17
17
|
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
|
|
18
18
|
const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
|
|
19
|
+
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
19
20
|
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
20
21
|
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
21
22
|
class CreateConfigRequest extends $tea.Model {
|
|
@@ -238,6 +239,7 @@ class CreateScanTaskRequest extends $tea.Model {
|
|
|
238
239
|
return {
|
|
239
240
|
dataLimitId: 'DataLimitId',
|
|
240
241
|
intervalDay: 'IntervalDay',
|
|
242
|
+
lang: 'Lang',
|
|
241
243
|
ossScanPath: 'OssScanPath',
|
|
242
244
|
resourceType: 'ResourceType',
|
|
243
245
|
runHour: 'RunHour',
|
|
@@ -252,6 +254,7 @@ class CreateScanTaskRequest extends $tea.Model {
|
|
|
252
254
|
return {
|
|
253
255
|
dataLimitId: 'number',
|
|
254
256
|
intervalDay: 'number',
|
|
257
|
+
lang: 'string',
|
|
255
258
|
ossScanPath: 'string',
|
|
256
259
|
resourceType: 'number',
|
|
257
260
|
runHour: 'number',
|
|
@@ -300,6 +303,58 @@ class CreateScanTaskResponse extends $tea.Model {
|
|
|
300
303
|
}
|
|
301
304
|
}
|
|
302
305
|
exports.CreateScanTaskResponse = CreateScanTaskResponse;
|
|
306
|
+
class CreateSlrRoleRequest extends $tea.Model {
|
|
307
|
+
constructor(map) {
|
|
308
|
+
super(map);
|
|
309
|
+
}
|
|
310
|
+
static names() {
|
|
311
|
+
return {
|
|
312
|
+
lang: 'Lang',
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
static types() {
|
|
316
|
+
return {
|
|
317
|
+
lang: 'string',
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
exports.CreateSlrRoleRequest = CreateSlrRoleRequest;
|
|
322
|
+
class CreateSlrRoleResponseBody extends $tea.Model {
|
|
323
|
+
constructor(map) {
|
|
324
|
+
super(map);
|
|
325
|
+
}
|
|
326
|
+
static names() {
|
|
327
|
+
return {
|
|
328
|
+
hasPermission: 'HasPermission',
|
|
329
|
+
requestId: 'RequestId',
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
static types() {
|
|
333
|
+
return {
|
|
334
|
+
hasPermission: 'boolean',
|
|
335
|
+
requestId: 'string',
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
exports.CreateSlrRoleResponseBody = CreateSlrRoleResponseBody;
|
|
340
|
+
class CreateSlrRoleResponse extends $tea.Model {
|
|
341
|
+
constructor(map) {
|
|
342
|
+
super(map);
|
|
343
|
+
}
|
|
344
|
+
static names() {
|
|
345
|
+
return {
|
|
346
|
+
headers: 'headers',
|
|
347
|
+
body: 'body',
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
static types() {
|
|
351
|
+
return {
|
|
352
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
353
|
+
body: CreateSlrRoleResponseBody,
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
exports.CreateSlrRoleResponse = CreateSlrRoleResponse;
|
|
303
358
|
class DeleteDataLimitRequest extends $tea.Model {
|
|
304
359
|
constructor(map) {
|
|
305
360
|
super(map);
|
|
@@ -1889,12 +1944,14 @@ class ExecDatamaskRequest extends $tea.Model {
|
|
|
1889
1944
|
static names() {
|
|
1890
1945
|
return {
|
|
1891
1946
|
data: 'Data',
|
|
1947
|
+
lang: 'Lang',
|
|
1892
1948
|
templateId: 'TemplateId',
|
|
1893
1949
|
};
|
|
1894
1950
|
}
|
|
1895
1951
|
static types() {
|
|
1896
1952
|
return {
|
|
1897
1953
|
data: 'string',
|
|
1954
|
+
lang: 'string',
|
|
1898
1955
|
templateId: 'number',
|
|
1899
1956
|
};
|
|
1900
1957
|
}
|
|
@@ -2224,6 +2281,58 @@ class ModifyEventTypeStatusResponse extends $tea.Model {
|
|
|
2224
2281
|
}
|
|
2225
2282
|
}
|
|
2226
2283
|
exports.ModifyEventTypeStatusResponse = ModifyEventTypeStatusResponse;
|
|
2284
|
+
class ModifyReportTaskStatusRequest extends $tea.Model {
|
|
2285
|
+
constructor(map) {
|
|
2286
|
+
super(map);
|
|
2287
|
+
}
|
|
2288
|
+
static names() {
|
|
2289
|
+
return {
|
|
2290
|
+
lang: 'Lang',
|
|
2291
|
+
reportTaskStatus: 'ReportTaskStatus',
|
|
2292
|
+
};
|
|
2293
|
+
}
|
|
2294
|
+
static types() {
|
|
2295
|
+
return {
|
|
2296
|
+
lang: 'string',
|
|
2297
|
+
reportTaskStatus: 'number',
|
|
2298
|
+
};
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
exports.ModifyReportTaskStatusRequest = ModifyReportTaskStatusRequest;
|
|
2302
|
+
class ModifyReportTaskStatusResponseBody extends $tea.Model {
|
|
2303
|
+
constructor(map) {
|
|
2304
|
+
super(map);
|
|
2305
|
+
}
|
|
2306
|
+
static names() {
|
|
2307
|
+
return {
|
|
2308
|
+
requestId: 'RequestId',
|
|
2309
|
+
};
|
|
2310
|
+
}
|
|
2311
|
+
static types() {
|
|
2312
|
+
return {
|
|
2313
|
+
requestId: 'string',
|
|
2314
|
+
};
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
exports.ModifyReportTaskStatusResponseBody = ModifyReportTaskStatusResponseBody;
|
|
2318
|
+
class ModifyReportTaskStatusResponse extends $tea.Model {
|
|
2319
|
+
constructor(map) {
|
|
2320
|
+
super(map);
|
|
2321
|
+
}
|
|
2322
|
+
static names() {
|
|
2323
|
+
return {
|
|
2324
|
+
headers: 'headers',
|
|
2325
|
+
body: 'body',
|
|
2326
|
+
};
|
|
2327
|
+
}
|
|
2328
|
+
static types() {
|
|
2329
|
+
return {
|
|
2330
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2331
|
+
body: ModifyReportTaskStatusResponseBody,
|
|
2332
|
+
};
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
exports.ModifyReportTaskStatusResponse = ModifyReportTaskStatusResponse;
|
|
2227
2336
|
class ModifyRuleRequest extends $tea.Model {
|
|
2228
2337
|
constructor(map) {
|
|
2229
2338
|
super(map);
|
|
@@ -3592,11 +3701,11 @@ class DescribeUserStatusResponseBodyUserStatus extends $tea.Model {
|
|
|
3592
3701
|
return {
|
|
3593
3702
|
accessKeyId: 'AccessKeyId',
|
|
3594
3703
|
authed: 'Authed',
|
|
3595
|
-
buyed: 'Buyed',
|
|
3596
3704
|
chargeType: 'ChargeType',
|
|
3597
3705
|
instanceId: 'InstanceId',
|
|
3598
3706
|
instanceNum: 'InstanceNum',
|
|
3599
3707
|
labStatus: 'LabStatus',
|
|
3708
|
+
purchased: 'Purchased',
|
|
3600
3709
|
remainDays: 'RemainDays',
|
|
3601
3710
|
trail: 'Trail',
|
|
3602
3711
|
useInstanceNum: 'UseInstanceNum',
|
|
@@ -3607,11 +3716,11 @@ class DescribeUserStatusResponseBodyUserStatus extends $tea.Model {
|
|
|
3607
3716
|
return {
|
|
3608
3717
|
accessKeyId: 'string',
|
|
3609
3718
|
authed: 'boolean',
|
|
3610
|
-
buyed: 'boolean',
|
|
3611
3719
|
chargeType: 'string',
|
|
3612
3720
|
instanceId: 'string',
|
|
3613
3721
|
instanceNum: 'number',
|
|
3614
3722
|
labStatus: 'number',
|
|
3723
|
+
purchased: 'boolean',
|
|
3615
3724
|
remainDays: 'number',
|
|
3616
3725
|
trail: 'boolean',
|
|
3617
3726
|
useInstanceNum: 'number',
|
|
@@ -3641,10 +3750,34 @@ class Client extends openapi_client_1.default {
|
|
|
3641
3750
|
}
|
|
3642
3751
|
async createConfigWithOptions(request, runtime) {
|
|
3643
3752
|
tea_util_1.default.validateModel(request);
|
|
3753
|
+
let query = {};
|
|
3754
|
+
if (!tea_util_1.default.isUnset(request.code)) {
|
|
3755
|
+
query["Code"] = request.code;
|
|
3756
|
+
}
|
|
3757
|
+
if (!tea_util_1.default.isUnset(request.description)) {
|
|
3758
|
+
query["Description"] = request.description;
|
|
3759
|
+
}
|
|
3760
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
3761
|
+
query["Lang"] = request.lang;
|
|
3762
|
+
}
|
|
3763
|
+
if (!tea_util_1.default.isUnset(request.value)) {
|
|
3764
|
+
query["Value"] = request.value;
|
|
3765
|
+
}
|
|
3644
3766
|
let req = new $OpenApi.OpenApiRequest({
|
|
3645
|
-
|
|
3767
|
+
query: openapi_util_1.default.query(query),
|
|
3768
|
+
});
|
|
3769
|
+
let params = new $OpenApi.Params({
|
|
3770
|
+
action: "CreateConfig",
|
|
3771
|
+
version: "2019-01-03",
|
|
3772
|
+
protocol: "HTTPS",
|
|
3773
|
+
pathname: "/",
|
|
3774
|
+
method: "POST",
|
|
3775
|
+
authType: "AK",
|
|
3776
|
+
style: "RPC",
|
|
3777
|
+
reqBodyType: "formData",
|
|
3778
|
+
bodyType: "json",
|
|
3646
3779
|
});
|
|
3647
|
-
return $tea.cast(await this.
|
|
3780
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateConfigResponse({}));
|
|
3648
3781
|
}
|
|
3649
3782
|
async createConfig(request) {
|
|
3650
3783
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3652,10 +3785,61 @@ class Client extends openapi_client_1.default {
|
|
|
3652
3785
|
}
|
|
3653
3786
|
async createDataLimitWithOptions(request, runtime) {
|
|
3654
3787
|
tea_util_1.default.validateModel(request);
|
|
3788
|
+
let query = {};
|
|
3789
|
+
if (!tea_util_1.default.isUnset(request.auditStatus)) {
|
|
3790
|
+
query["AuditStatus"] = request.auditStatus;
|
|
3791
|
+
}
|
|
3792
|
+
if (!tea_util_1.default.isUnset(request.autoScan)) {
|
|
3793
|
+
query["AutoScan"] = request.autoScan;
|
|
3794
|
+
}
|
|
3795
|
+
if (!tea_util_1.default.isUnset(request.engineType)) {
|
|
3796
|
+
query["EngineType"] = request.engineType;
|
|
3797
|
+
}
|
|
3798
|
+
if (!tea_util_1.default.isUnset(request.eventStatus)) {
|
|
3799
|
+
query["EventStatus"] = request.eventStatus;
|
|
3800
|
+
}
|
|
3801
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
3802
|
+
query["Lang"] = request.lang;
|
|
3803
|
+
}
|
|
3804
|
+
if (!tea_util_1.default.isUnset(request.logStoreDay)) {
|
|
3805
|
+
query["LogStoreDay"] = request.logStoreDay;
|
|
3806
|
+
}
|
|
3807
|
+
if (!tea_util_1.default.isUnset(request.ocrStatus)) {
|
|
3808
|
+
query["OcrStatus"] = request.ocrStatus;
|
|
3809
|
+
}
|
|
3810
|
+
if (!tea_util_1.default.isUnset(request.parentId)) {
|
|
3811
|
+
query["ParentId"] = request.parentId;
|
|
3812
|
+
}
|
|
3813
|
+
if (!tea_util_1.default.isUnset(request.password)) {
|
|
3814
|
+
query["Password"] = request.password;
|
|
3815
|
+
}
|
|
3816
|
+
if (!tea_util_1.default.isUnset(request.port)) {
|
|
3817
|
+
query["Port"] = request.port;
|
|
3818
|
+
}
|
|
3819
|
+
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
3820
|
+
query["ResourceType"] = request.resourceType;
|
|
3821
|
+
}
|
|
3822
|
+
if (!tea_util_1.default.isUnset(request.serviceRegionId)) {
|
|
3823
|
+
query["ServiceRegionId"] = request.serviceRegionId;
|
|
3824
|
+
}
|
|
3825
|
+
if (!tea_util_1.default.isUnset(request.userName)) {
|
|
3826
|
+
query["UserName"] = request.userName;
|
|
3827
|
+
}
|
|
3655
3828
|
let req = new $OpenApi.OpenApiRequest({
|
|
3656
|
-
|
|
3829
|
+
query: openapi_util_1.default.query(query),
|
|
3657
3830
|
});
|
|
3658
|
-
|
|
3831
|
+
let params = new $OpenApi.Params({
|
|
3832
|
+
action: "CreateDataLimit",
|
|
3833
|
+
version: "2019-01-03",
|
|
3834
|
+
protocol: "HTTPS",
|
|
3835
|
+
pathname: "/",
|
|
3836
|
+
method: "POST",
|
|
3837
|
+
authType: "AK",
|
|
3838
|
+
style: "RPC",
|
|
3839
|
+
reqBodyType: "formData",
|
|
3840
|
+
bodyType: "json",
|
|
3841
|
+
});
|
|
3842
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateDataLimitResponse({}));
|
|
3659
3843
|
}
|
|
3660
3844
|
async createDataLimit(request) {
|
|
3661
3845
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3663,10 +3847,64 @@ class Client extends openapi_client_1.default {
|
|
|
3663
3847
|
}
|
|
3664
3848
|
async createRuleWithOptions(request, runtime) {
|
|
3665
3849
|
tea_util_1.default.validateModel(request);
|
|
3850
|
+
let query = {};
|
|
3851
|
+
if (!tea_util_1.default.isUnset(request.category)) {
|
|
3852
|
+
query["Category"] = request.category;
|
|
3853
|
+
}
|
|
3854
|
+
if (!tea_util_1.default.isUnset(request.content)) {
|
|
3855
|
+
query["Content"] = request.content;
|
|
3856
|
+
}
|
|
3857
|
+
if (!tea_util_1.default.isUnset(request.contentCategory)) {
|
|
3858
|
+
query["ContentCategory"] = request.contentCategory;
|
|
3859
|
+
}
|
|
3860
|
+
if (!tea_util_1.default.isUnset(request.description)) {
|
|
3861
|
+
query["Description"] = request.description;
|
|
3862
|
+
}
|
|
3863
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
3864
|
+
query["Lang"] = request.lang;
|
|
3865
|
+
}
|
|
3866
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
3867
|
+
query["Name"] = request.name;
|
|
3868
|
+
}
|
|
3869
|
+
if (!tea_util_1.default.isUnset(request.productCode)) {
|
|
3870
|
+
query["ProductCode"] = request.productCode;
|
|
3871
|
+
}
|
|
3872
|
+
if (!tea_util_1.default.isUnset(request.productId)) {
|
|
3873
|
+
query["ProductId"] = request.productId;
|
|
3874
|
+
}
|
|
3875
|
+
if (!tea_util_1.default.isUnset(request.riskLevelId)) {
|
|
3876
|
+
query["RiskLevelId"] = request.riskLevelId;
|
|
3877
|
+
}
|
|
3878
|
+
if (!tea_util_1.default.isUnset(request.ruleType)) {
|
|
3879
|
+
query["RuleType"] = request.ruleType;
|
|
3880
|
+
}
|
|
3881
|
+
if (!tea_util_1.default.isUnset(request.statExpress)) {
|
|
3882
|
+
query["StatExpress"] = request.statExpress;
|
|
3883
|
+
}
|
|
3884
|
+
if (!tea_util_1.default.isUnset(request.status)) {
|
|
3885
|
+
query["Status"] = request.status;
|
|
3886
|
+
}
|
|
3887
|
+
if (!tea_util_1.default.isUnset(request.target)) {
|
|
3888
|
+
query["Target"] = request.target;
|
|
3889
|
+
}
|
|
3890
|
+
if (!tea_util_1.default.isUnset(request.warnLevel)) {
|
|
3891
|
+
query["WarnLevel"] = request.warnLevel;
|
|
3892
|
+
}
|
|
3666
3893
|
let req = new $OpenApi.OpenApiRequest({
|
|
3667
|
-
|
|
3894
|
+
query: openapi_util_1.default.query(query),
|
|
3668
3895
|
});
|
|
3669
|
-
|
|
3896
|
+
let params = new $OpenApi.Params({
|
|
3897
|
+
action: "CreateRule",
|
|
3898
|
+
version: "2019-01-03",
|
|
3899
|
+
protocol: "HTTPS",
|
|
3900
|
+
pathname: "/",
|
|
3901
|
+
method: "POST",
|
|
3902
|
+
authType: "AK",
|
|
3903
|
+
style: "RPC",
|
|
3904
|
+
reqBodyType: "formData",
|
|
3905
|
+
bodyType: "json",
|
|
3906
|
+
});
|
|
3907
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateRuleResponse({}));
|
|
3670
3908
|
}
|
|
3671
3909
|
async createRule(request) {
|
|
3672
3910
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3674,21 +3912,110 @@ class Client extends openapi_client_1.default {
|
|
|
3674
3912
|
}
|
|
3675
3913
|
async createScanTaskWithOptions(request, runtime) {
|
|
3676
3914
|
tea_util_1.default.validateModel(request);
|
|
3915
|
+
let query = {};
|
|
3916
|
+
if (!tea_util_1.default.isUnset(request.dataLimitId)) {
|
|
3917
|
+
query["DataLimitId"] = request.dataLimitId;
|
|
3918
|
+
}
|
|
3919
|
+
if (!tea_util_1.default.isUnset(request.intervalDay)) {
|
|
3920
|
+
query["IntervalDay"] = request.intervalDay;
|
|
3921
|
+
}
|
|
3922
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
3923
|
+
query["Lang"] = request.lang;
|
|
3924
|
+
}
|
|
3925
|
+
if (!tea_util_1.default.isUnset(request.ossScanPath)) {
|
|
3926
|
+
query["OssScanPath"] = request.ossScanPath;
|
|
3927
|
+
}
|
|
3928
|
+
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
3929
|
+
query["ResourceType"] = request.resourceType;
|
|
3930
|
+
}
|
|
3931
|
+
if (!tea_util_1.default.isUnset(request.runHour)) {
|
|
3932
|
+
query["RunHour"] = request.runHour;
|
|
3933
|
+
}
|
|
3934
|
+
if (!tea_util_1.default.isUnset(request.runMinute)) {
|
|
3935
|
+
query["RunMinute"] = request.runMinute;
|
|
3936
|
+
}
|
|
3937
|
+
if (!tea_util_1.default.isUnset(request.scanRange)) {
|
|
3938
|
+
query["ScanRange"] = request.scanRange;
|
|
3939
|
+
}
|
|
3940
|
+
if (!tea_util_1.default.isUnset(request.scanRangeContent)) {
|
|
3941
|
+
query["ScanRangeContent"] = request.scanRangeContent;
|
|
3942
|
+
}
|
|
3943
|
+
if (!tea_util_1.default.isUnset(request.taskName)) {
|
|
3944
|
+
query["TaskName"] = request.taskName;
|
|
3945
|
+
}
|
|
3946
|
+
if (!tea_util_1.default.isUnset(request.taskUserName)) {
|
|
3947
|
+
query["TaskUserName"] = request.taskUserName;
|
|
3948
|
+
}
|
|
3677
3949
|
let req = new $OpenApi.OpenApiRequest({
|
|
3678
|
-
|
|
3950
|
+
query: openapi_util_1.default.query(query),
|
|
3679
3951
|
});
|
|
3680
|
-
|
|
3952
|
+
let params = new $OpenApi.Params({
|
|
3953
|
+
action: "CreateScanTask",
|
|
3954
|
+
version: "2019-01-03",
|
|
3955
|
+
protocol: "HTTPS",
|
|
3956
|
+
pathname: "/",
|
|
3957
|
+
method: "POST",
|
|
3958
|
+
authType: "AK",
|
|
3959
|
+
style: "RPC",
|
|
3960
|
+
reqBodyType: "formData",
|
|
3961
|
+
bodyType: "json",
|
|
3962
|
+
});
|
|
3963
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateScanTaskResponse({}));
|
|
3681
3964
|
}
|
|
3682
3965
|
async createScanTask(request) {
|
|
3683
3966
|
let runtime = new $Util.RuntimeOptions({});
|
|
3684
3967
|
return await this.createScanTaskWithOptions(request, runtime);
|
|
3685
3968
|
}
|
|
3969
|
+
async createSlrRoleWithOptions(request, runtime) {
|
|
3970
|
+
tea_util_1.default.validateModel(request);
|
|
3971
|
+
let query = {};
|
|
3972
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
3973
|
+
query["Lang"] = request.lang;
|
|
3974
|
+
}
|
|
3975
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3976
|
+
query: openapi_util_1.default.query(query),
|
|
3977
|
+
});
|
|
3978
|
+
let params = new $OpenApi.Params({
|
|
3979
|
+
action: "CreateSlrRole",
|
|
3980
|
+
version: "2019-01-03",
|
|
3981
|
+
protocol: "HTTPS",
|
|
3982
|
+
pathname: "/",
|
|
3983
|
+
method: "POST",
|
|
3984
|
+
authType: "AK",
|
|
3985
|
+
style: "RPC",
|
|
3986
|
+
reqBodyType: "formData",
|
|
3987
|
+
bodyType: "json",
|
|
3988
|
+
});
|
|
3989
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateSlrRoleResponse({}));
|
|
3990
|
+
}
|
|
3991
|
+
async createSlrRole(request) {
|
|
3992
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3993
|
+
return await this.createSlrRoleWithOptions(request, runtime);
|
|
3994
|
+
}
|
|
3686
3995
|
async deleteDataLimitWithOptions(request, runtime) {
|
|
3687
3996
|
tea_util_1.default.validateModel(request);
|
|
3997
|
+
let query = {};
|
|
3998
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
3999
|
+
query["Id"] = request.id;
|
|
4000
|
+
}
|
|
4001
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4002
|
+
query["Lang"] = request.lang;
|
|
4003
|
+
}
|
|
3688
4004
|
let req = new $OpenApi.OpenApiRequest({
|
|
3689
|
-
|
|
4005
|
+
query: openapi_util_1.default.query(query),
|
|
4006
|
+
});
|
|
4007
|
+
let params = new $OpenApi.Params({
|
|
4008
|
+
action: "DeleteDataLimit",
|
|
4009
|
+
version: "2019-01-03",
|
|
4010
|
+
protocol: "HTTPS",
|
|
4011
|
+
pathname: "/",
|
|
4012
|
+
method: "POST",
|
|
4013
|
+
authType: "AK",
|
|
4014
|
+
style: "RPC",
|
|
4015
|
+
reqBodyType: "formData",
|
|
4016
|
+
bodyType: "json",
|
|
3690
4017
|
});
|
|
3691
|
-
return $tea.cast(await this.
|
|
4018
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteDataLimitResponse({}));
|
|
3692
4019
|
}
|
|
3693
4020
|
async deleteDataLimit(request) {
|
|
3694
4021
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3696,10 +4023,28 @@ class Client extends openapi_client_1.default {
|
|
|
3696
4023
|
}
|
|
3697
4024
|
async deleteRuleWithOptions(request, runtime) {
|
|
3698
4025
|
tea_util_1.default.validateModel(request);
|
|
4026
|
+
let query = {};
|
|
4027
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
4028
|
+
query["Id"] = request.id;
|
|
4029
|
+
}
|
|
4030
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4031
|
+
query["Lang"] = request.lang;
|
|
4032
|
+
}
|
|
3699
4033
|
let req = new $OpenApi.OpenApiRequest({
|
|
3700
|
-
|
|
4034
|
+
query: openapi_util_1.default.query(query),
|
|
4035
|
+
});
|
|
4036
|
+
let params = new $OpenApi.Params({
|
|
4037
|
+
action: "DeleteRule",
|
|
4038
|
+
version: "2019-01-03",
|
|
4039
|
+
protocol: "HTTPS",
|
|
4040
|
+
pathname: "/",
|
|
4041
|
+
method: "POST",
|
|
4042
|
+
authType: "AK",
|
|
4043
|
+
style: "RPC",
|
|
4044
|
+
reqBodyType: "formData",
|
|
4045
|
+
bodyType: "json",
|
|
3701
4046
|
});
|
|
3702
|
-
return $tea.cast(await this.
|
|
4047
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteRuleResponse({}));
|
|
3703
4048
|
}
|
|
3704
4049
|
async deleteRule(request) {
|
|
3705
4050
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3707,10 +4052,37 @@ class Client extends openapi_client_1.default {
|
|
|
3707
4052
|
}
|
|
3708
4053
|
async describeCategoryTemplateRuleListWithOptions(request, runtime) {
|
|
3709
4054
|
tea_util_1.default.validateModel(request);
|
|
4055
|
+
let query = {};
|
|
4056
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4057
|
+
query["CurrentPage"] = request.currentPage;
|
|
4058
|
+
}
|
|
4059
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4060
|
+
query["Lang"] = request.lang;
|
|
4061
|
+
}
|
|
4062
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4063
|
+
query["PageSize"] = request.pageSize;
|
|
4064
|
+
}
|
|
4065
|
+
if (!tea_util_1.default.isUnset(request.riskLevelId)) {
|
|
4066
|
+
query["RiskLevelId"] = request.riskLevelId;
|
|
4067
|
+
}
|
|
4068
|
+
if (!tea_util_1.default.isUnset(request.status)) {
|
|
4069
|
+
query["Status"] = request.status;
|
|
4070
|
+
}
|
|
3710
4071
|
let req = new $OpenApi.OpenApiRequest({
|
|
3711
|
-
|
|
4072
|
+
query: openapi_util_1.default.query(query),
|
|
4073
|
+
});
|
|
4074
|
+
let params = new $OpenApi.Params({
|
|
4075
|
+
action: "DescribeCategoryTemplateRuleList",
|
|
4076
|
+
version: "2019-01-03",
|
|
4077
|
+
protocol: "HTTPS",
|
|
4078
|
+
pathname: "/",
|
|
4079
|
+
method: "POST",
|
|
4080
|
+
authType: "AK",
|
|
4081
|
+
style: "RPC",
|
|
4082
|
+
reqBodyType: "formData",
|
|
4083
|
+
bodyType: "json",
|
|
3712
4084
|
});
|
|
3713
|
-
return $tea.cast(await this.
|
|
4085
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeCategoryTemplateRuleListResponse({}));
|
|
3714
4086
|
}
|
|
3715
4087
|
async describeCategoryTemplateRuleList(request) {
|
|
3716
4088
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3718,10 +4090,61 @@ class Client extends openapi_client_1.default {
|
|
|
3718
4090
|
}
|
|
3719
4091
|
async describeColumnsWithOptions(request, runtime) {
|
|
3720
4092
|
tea_util_1.default.validateModel(request);
|
|
4093
|
+
let query = {};
|
|
4094
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4095
|
+
query["CurrentPage"] = request.currentPage;
|
|
4096
|
+
}
|
|
4097
|
+
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
4098
|
+
query["InstanceId"] = request.instanceId;
|
|
4099
|
+
}
|
|
4100
|
+
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
4101
|
+
query["InstanceName"] = request.instanceName;
|
|
4102
|
+
}
|
|
4103
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4104
|
+
query["Lang"] = request.lang;
|
|
4105
|
+
}
|
|
4106
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
4107
|
+
query["Name"] = request.name;
|
|
4108
|
+
}
|
|
4109
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4110
|
+
query["PageSize"] = request.pageSize;
|
|
4111
|
+
}
|
|
4112
|
+
if (!tea_util_1.default.isUnset(request.productCode)) {
|
|
4113
|
+
query["ProductCode"] = request.productCode;
|
|
4114
|
+
}
|
|
4115
|
+
if (!tea_util_1.default.isUnset(request.riskLevelId)) {
|
|
4116
|
+
query["RiskLevelId"] = request.riskLevelId;
|
|
4117
|
+
}
|
|
4118
|
+
if (!tea_util_1.default.isUnset(request.ruleId)) {
|
|
4119
|
+
query["RuleId"] = request.ruleId;
|
|
4120
|
+
}
|
|
4121
|
+
if (!tea_util_1.default.isUnset(request.ruleName)) {
|
|
4122
|
+
query["RuleName"] = request.ruleName;
|
|
4123
|
+
}
|
|
4124
|
+
if (!tea_util_1.default.isUnset(request.sensLevelName)) {
|
|
4125
|
+
query["SensLevelName"] = request.sensLevelName;
|
|
4126
|
+
}
|
|
4127
|
+
if (!tea_util_1.default.isUnset(request.tableId)) {
|
|
4128
|
+
query["TableId"] = request.tableId;
|
|
4129
|
+
}
|
|
4130
|
+
if (!tea_util_1.default.isUnset(request.tableName)) {
|
|
4131
|
+
query["TableName"] = request.tableName;
|
|
4132
|
+
}
|
|
3721
4133
|
let req = new $OpenApi.OpenApiRequest({
|
|
3722
|
-
|
|
4134
|
+
query: openapi_util_1.default.query(query),
|
|
4135
|
+
});
|
|
4136
|
+
let params = new $OpenApi.Params({
|
|
4137
|
+
action: "DescribeColumns",
|
|
4138
|
+
version: "2019-01-03",
|
|
4139
|
+
protocol: "HTTPS",
|
|
4140
|
+
pathname: "/",
|
|
4141
|
+
method: "POST",
|
|
4142
|
+
authType: "AK",
|
|
4143
|
+
style: "RPC",
|
|
4144
|
+
reqBodyType: "formData",
|
|
4145
|
+
bodyType: "json",
|
|
3723
4146
|
});
|
|
3724
|
-
return $tea.cast(await this.
|
|
4147
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeColumnsResponse({}));
|
|
3725
4148
|
}
|
|
3726
4149
|
async describeColumns(request) {
|
|
3727
4150
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3729,10 +4152,25 @@ class Client extends openapi_client_1.default {
|
|
|
3729
4152
|
}
|
|
3730
4153
|
async describeConfigsWithOptions(request, runtime) {
|
|
3731
4154
|
tea_util_1.default.validateModel(request);
|
|
4155
|
+
let query = {};
|
|
4156
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4157
|
+
query["Lang"] = request.lang;
|
|
4158
|
+
}
|
|
3732
4159
|
let req = new $OpenApi.OpenApiRequest({
|
|
3733
|
-
|
|
4160
|
+
query: openapi_util_1.default.query(query),
|
|
3734
4161
|
});
|
|
3735
|
-
|
|
4162
|
+
let params = new $OpenApi.Params({
|
|
4163
|
+
action: "DescribeConfigs",
|
|
4164
|
+
version: "2019-01-03",
|
|
4165
|
+
protocol: "HTTPS",
|
|
4166
|
+
pathname: "/",
|
|
4167
|
+
method: "POST",
|
|
4168
|
+
authType: "AK",
|
|
4169
|
+
style: "RPC",
|
|
4170
|
+
reqBodyType: "formData",
|
|
4171
|
+
bodyType: "json",
|
|
4172
|
+
});
|
|
4173
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeConfigsResponse({}));
|
|
3736
4174
|
}
|
|
3737
4175
|
async describeConfigs(request) {
|
|
3738
4176
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3740,10 +4178,43 @@ class Client extends openapi_client_1.default {
|
|
|
3740
4178
|
}
|
|
3741
4179
|
async describeDataAssetsWithOptions(request, runtime) {
|
|
3742
4180
|
tea_util_1.default.validateModel(request);
|
|
4181
|
+
let query = {};
|
|
4182
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4183
|
+
query["CurrentPage"] = request.currentPage;
|
|
4184
|
+
}
|
|
4185
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4186
|
+
query["Lang"] = request.lang;
|
|
4187
|
+
}
|
|
4188
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
4189
|
+
query["Name"] = request.name;
|
|
4190
|
+
}
|
|
4191
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4192
|
+
query["PageSize"] = request.pageSize;
|
|
4193
|
+
}
|
|
4194
|
+
if (!tea_util_1.default.isUnset(request.rangeId)) {
|
|
4195
|
+
query["RangeId"] = request.rangeId;
|
|
4196
|
+
}
|
|
4197
|
+
if (!tea_util_1.default.isUnset(request.riskLevels)) {
|
|
4198
|
+
query["RiskLevels"] = request.riskLevels;
|
|
4199
|
+
}
|
|
4200
|
+
if (!tea_util_1.default.isUnset(request.ruleId)) {
|
|
4201
|
+
query["RuleId"] = request.ruleId;
|
|
4202
|
+
}
|
|
3743
4203
|
let req = new $OpenApi.OpenApiRequest({
|
|
3744
|
-
|
|
4204
|
+
query: openapi_util_1.default.query(query),
|
|
4205
|
+
});
|
|
4206
|
+
let params = new $OpenApi.Params({
|
|
4207
|
+
action: "DescribeDataAssets",
|
|
4208
|
+
version: "2019-01-03",
|
|
4209
|
+
protocol: "HTTPS",
|
|
4210
|
+
pathname: "/",
|
|
4211
|
+
method: "POST",
|
|
4212
|
+
authType: "AK",
|
|
4213
|
+
style: "RPC",
|
|
4214
|
+
reqBodyType: "formData",
|
|
4215
|
+
bodyType: "json",
|
|
3745
4216
|
});
|
|
3746
|
-
return $tea.cast(await this.
|
|
4217
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataAssetsResponse({}));
|
|
3747
4218
|
}
|
|
3748
4219
|
async describeDataAssets(request) {
|
|
3749
4220
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3751,10 +4222,31 @@ class Client extends openapi_client_1.default {
|
|
|
3751
4222
|
}
|
|
3752
4223
|
async describeDataLimitDetailWithOptions(request, runtime) {
|
|
3753
4224
|
tea_util_1.default.validateModel(request);
|
|
4225
|
+
let query = {};
|
|
4226
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
4227
|
+
query["Id"] = request.id;
|
|
4228
|
+
}
|
|
4229
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4230
|
+
query["Lang"] = request.lang;
|
|
4231
|
+
}
|
|
4232
|
+
if (!tea_util_1.default.isUnset(request.networkType)) {
|
|
4233
|
+
query["NetworkType"] = request.networkType;
|
|
4234
|
+
}
|
|
3754
4235
|
let req = new $OpenApi.OpenApiRequest({
|
|
3755
|
-
|
|
4236
|
+
query: openapi_util_1.default.query(query),
|
|
3756
4237
|
});
|
|
3757
|
-
|
|
4238
|
+
let params = new $OpenApi.Params({
|
|
4239
|
+
action: "DescribeDataLimitDetail",
|
|
4240
|
+
version: "2019-01-03",
|
|
4241
|
+
protocol: "HTTPS",
|
|
4242
|
+
pathname: "/",
|
|
4243
|
+
method: "POST",
|
|
4244
|
+
authType: "AK",
|
|
4245
|
+
style: "RPC",
|
|
4246
|
+
reqBodyType: "formData",
|
|
4247
|
+
bodyType: "json",
|
|
4248
|
+
});
|
|
4249
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataLimitDetailResponse({}));
|
|
3758
4250
|
}
|
|
3759
4251
|
async describeDataLimitDetail(request) {
|
|
3760
4252
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3762,10 +4254,31 @@ class Client extends openapi_client_1.default {
|
|
|
3762
4254
|
}
|
|
3763
4255
|
async describeDataLimitSetWithOptions(request, runtime) {
|
|
3764
4256
|
tea_util_1.default.validateModel(request);
|
|
4257
|
+
let query = {};
|
|
4258
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4259
|
+
query["Lang"] = request.lang;
|
|
4260
|
+
}
|
|
4261
|
+
if (!tea_util_1.default.isUnset(request.parentId)) {
|
|
4262
|
+
query["ParentId"] = request.parentId;
|
|
4263
|
+
}
|
|
4264
|
+
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
4265
|
+
query["ResourceType"] = request.resourceType;
|
|
4266
|
+
}
|
|
3765
4267
|
let req = new $OpenApi.OpenApiRequest({
|
|
3766
|
-
|
|
4268
|
+
query: openapi_util_1.default.query(query),
|
|
4269
|
+
});
|
|
4270
|
+
let params = new $OpenApi.Params({
|
|
4271
|
+
action: "DescribeDataLimitSet",
|
|
4272
|
+
version: "2019-01-03",
|
|
4273
|
+
protocol: "HTTPS",
|
|
4274
|
+
pathname: "/",
|
|
4275
|
+
method: "POST",
|
|
4276
|
+
authType: "AK",
|
|
4277
|
+
style: "RPC",
|
|
4278
|
+
reqBodyType: "formData",
|
|
4279
|
+
bodyType: "json",
|
|
3767
4280
|
});
|
|
3768
|
-
return $tea.cast(await this.
|
|
4281
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataLimitSetResponse({}));
|
|
3769
4282
|
}
|
|
3770
4283
|
async describeDataLimitSet(request) {
|
|
3771
4284
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3773,10 +4286,61 @@ class Client extends openapi_client_1.default {
|
|
|
3773
4286
|
}
|
|
3774
4287
|
async describeDataLimitsWithOptions(request, runtime) {
|
|
3775
4288
|
tea_util_1.default.validateModel(request);
|
|
4289
|
+
let query = {};
|
|
4290
|
+
if (!tea_util_1.default.isUnset(request.auditStatus)) {
|
|
4291
|
+
query["AuditStatus"] = request.auditStatus;
|
|
4292
|
+
}
|
|
4293
|
+
if (!tea_util_1.default.isUnset(request.checkStatus)) {
|
|
4294
|
+
query["CheckStatus"] = request.checkStatus;
|
|
4295
|
+
}
|
|
4296
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4297
|
+
query["CurrentPage"] = request.currentPage;
|
|
4298
|
+
}
|
|
4299
|
+
if (!tea_util_1.default.isUnset(request.datamaskStatus)) {
|
|
4300
|
+
query["DatamaskStatus"] = request.datamaskStatus;
|
|
4301
|
+
}
|
|
4302
|
+
if (!tea_util_1.default.isUnset(request.enable)) {
|
|
4303
|
+
query["Enable"] = request.enable;
|
|
4304
|
+
}
|
|
4305
|
+
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
4306
|
+
query["EndTime"] = request.endTime;
|
|
4307
|
+
}
|
|
4308
|
+
if (!tea_util_1.default.isUnset(request.engineType)) {
|
|
4309
|
+
query["EngineType"] = request.engineType;
|
|
4310
|
+
}
|
|
4311
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4312
|
+
query["Lang"] = request.lang;
|
|
4313
|
+
}
|
|
4314
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4315
|
+
query["PageSize"] = request.pageSize;
|
|
4316
|
+
}
|
|
4317
|
+
if (!tea_util_1.default.isUnset(request.parentId)) {
|
|
4318
|
+
query["ParentId"] = request.parentId;
|
|
4319
|
+
}
|
|
4320
|
+
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
4321
|
+
query["ResourceType"] = request.resourceType;
|
|
4322
|
+
}
|
|
4323
|
+
if (!tea_util_1.default.isUnset(request.serviceRegionId)) {
|
|
4324
|
+
query["ServiceRegionId"] = request.serviceRegionId;
|
|
4325
|
+
}
|
|
4326
|
+
if (!tea_util_1.default.isUnset(request.startTime)) {
|
|
4327
|
+
query["StartTime"] = request.startTime;
|
|
4328
|
+
}
|
|
3776
4329
|
let req = new $OpenApi.OpenApiRequest({
|
|
3777
|
-
|
|
4330
|
+
query: openapi_util_1.default.query(query),
|
|
3778
4331
|
});
|
|
3779
|
-
|
|
4332
|
+
let params = new $OpenApi.Params({
|
|
4333
|
+
action: "DescribeDataLimits",
|
|
4334
|
+
version: "2019-01-03",
|
|
4335
|
+
protocol: "HTTPS",
|
|
4336
|
+
pathname: "/",
|
|
4337
|
+
method: "POST",
|
|
4338
|
+
authType: "AK",
|
|
4339
|
+
style: "RPC",
|
|
4340
|
+
reqBodyType: "formData",
|
|
4341
|
+
bodyType: "json",
|
|
4342
|
+
});
|
|
4343
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataLimitsResponse({}));
|
|
3780
4344
|
}
|
|
3781
4345
|
async describeDataLimits(request) {
|
|
3782
4346
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3784,10 +4348,55 @@ class Client extends openapi_client_1.default {
|
|
|
3784
4348
|
}
|
|
3785
4349
|
async describeDataMaskingRunHistoryWithOptions(request, runtime) {
|
|
3786
4350
|
tea_util_1.default.validateModel(request);
|
|
4351
|
+
let query = {};
|
|
4352
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4353
|
+
query["CurrentPage"] = request.currentPage;
|
|
4354
|
+
}
|
|
4355
|
+
if (!tea_util_1.default.isUnset(request.dstType)) {
|
|
4356
|
+
query["DstType"] = request.dstType;
|
|
4357
|
+
}
|
|
4358
|
+
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
4359
|
+
query["EndTime"] = request.endTime;
|
|
4360
|
+
}
|
|
4361
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4362
|
+
query["Lang"] = request.lang;
|
|
4363
|
+
}
|
|
4364
|
+
if (!tea_util_1.default.isUnset(request.mainProcessId)) {
|
|
4365
|
+
query["MainProcessId"] = request.mainProcessId;
|
|
4366
|
+
}
|
|
4367
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4368
|
+
query["PageSize"] = request.pageSize;
|
|
4369
|
+
}
|
|
4370
|
+
if (!tea_util_1.default.isUnset(request.srcTableName)) {
|
|
4371
|
+
query["SrcTableName"] = request.srcTableName;
|
|
4372
|
+
}
|
|
4373
|
+
if (!tea_util_1.default.isUnset(request.srcType)) {
|
|
4374
|
+
query["SrcType"] = request.srcType;
|
|
4375
|
+
}
|
|
4376
|
+
if (!tea_util_1.default.isUnset(request.startTime)) {
|
|
4377
|
+
query["StartTime"] = request.startTime;
|
|
4378
|
+
}
|
|
4379
|
+
if (!tea_util_1.default.isUnset(request.status)) {
|
|
4380
|
+
query["Status"] = request.status;
|
|
4381
|
+
}
|
|
4382
|
+
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
4383
|
+
query["TaskId"] = request.taskId;
|
|
4384
|
+
}
|
|
3787
4385
|
let req = new $OpenApi.OpenApiRequest({
|
|
3788
|
-
|
|
4386
|
+
query: openapi_util_1.default.query(query),
|
|
3789
4387
|
});
|
|
3790
|
-
|
|
4388
|
+
let params = new $OpenApi.Params({
|
|
4389
|
+
action: "DescribeDataMaskingRunHistory",
|
|
4390
|
+
version: "2019-01-03",
|
|
4391
|
+
protocol: "HTTPS",
|
|
4392
|
+
pathname: "/",
|
|
4393
|
+
method: "POST",
|
|
4394
|
+
authType: "AK",
|
|
4395
|
+
style: "RPC",
|
|
4396
|
+
reqBodyType: "formData",
|
|
4397
|
+
bodyType: "json",
|
|
4398
|
+
});
|
|
4399
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataMaskingRunHistoryResponse({}));
|
|
3791
4400
|
}
|
|
3792
4401
|
async describeDataMaskingRunHistory(request) {
|
|
3793
4402
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3795,10 +4404,43 @@ class Client extends openapi_client_1.default {
|
|
|
3795
4404
|
}
|
|
3796
4405
|
async describeDataMaskingTasksWithOptions(request, runtime) {
|
|
3797
4406
|
tea_util_1.default.validateModel(request);
|
|
4407
|
+
let query = {};
|
|
4408
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4409
|
+
query["CurrentPage"] = request.currentPage;
|
|
4410
|
+
}
|
|
4411
|
+
if (!tea_util_1.default.isUnset(request.dstType)) {
|
|
4412
|
+
query["DstType"] = request.dstType;
|
|
4413
|
+
}
|
|
4414
|
+
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
4415
|
+
query["EndTime"] = request.endTime;
|
|
4416
|
+
}
|
|
4417
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4418
|
+
query["Lang"] = request.lang;
|
|
4419
|
+
}
|
|
4420
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4421
|
+
query["PageSize"] = request.pageSize;
|
|
4422
|
+
}
|
|
4423
|
+
if (!tea_util_1.default.isUnset(request.searchKey)) {
|
|
4424
|
+
query["SearchKey"] = request.searchKey;
|
|
4425
|
+
}
|
|
4426
|
+
if (!tea_util_1.default.isUnset(request.startTime)) {
|
|
4427
|
+
query["StartTime"] = request.startTime;
|
|
4428
|
+
}
|
|
3798
4429
|
let req = new $OpenApi.OpenApiRequest({
|
|
3799
|
-
|
|
4430
|
+
query: openapi_util_1.default.query(query),
|
|
4431
|
+
});
|
|
4432
|
+
let params = new $OpenApi.Params({
|
|
4433
|
+
action: "DescribeDataMaskingTasks",
|
|
4434
|
+
version: "2019-01-03",
|
|
4435
|
+
protocol: "HTTPS",
|
|
4436
|
+
pathname: "/",
|
|
4437
|
+
method: "POST",
|
|
4438
|
+
authType: "AK",
|
|
4439
|
+
style: "RPC",
|
|
4440
|
+
reqBodyType: "formData",
|
|
4441
|
+
bodyType: "json",
|
|
3800
4442
|
});
|
|
3801
|
-
return $tea.cast(await this.
|
|
4443
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeDataMaskingTasksResponse({}));
|
|
3802
4444
|
}
|
|
3803
4445
|
async describeDataMaskingTasks(request) {
|
|
3804
4446
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3806,10 +4448,28 @@ class Client extends openapi_client_1.default {
|
|
|
3806
4448
|
}
|
|
3807
4449
|
async describeEventDetailWithOptions(request, runtime) {
|
|
3808
4450
|
tea_util_1.default.validateModel(request);
|
|
4451
|
+
let query = {};
|
|
4452
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
4453
|
+
query["Id"] = request.id;
|
|
4454
|
+
}
|
|
4455
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4456
|
+
query["Lang"] = request.lang;
|
|
4457
|
+
}
|
|
3809
4458
|
let req = new $OpenApi.OpenApiRequest({
|
|
3810
|
-
|
|
4459
|
+
query: openapi_util_1.default.query(query),
|
|
4460
|
+
});
|
|
4461
|
+
let params = new $OpenApi.Params({
|
|
4462
|
+
action: "DescribeEventDetail",
|
|
4463
|
+
version: "2019-01-03",
|
|
4464
|
+
protocol: "HTTPS",
|
|
4465
|
+
pathname: "/",
|
|
4466
|
+
method: "POST",
|
|
4467
|
+
authType: "AK",
|
|
4468
|
+
style: "RPC",
|
|
4469
|
+
reqBodyType: "formData",
|
|
4470
|
+
bodyType: "json",
|
|
3811
4471
|
});
|
|
3812
|
-
return $tea.cast(await this.
|
|
4472
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventDetailResponse({}));
|
|
3813
4473
|
}
|
|
3814
4474
|
async describeEventDetail(request) {
|
|
3815
4475
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3817,10 +4477,34 @@ class Client extends openapi_client_1.default {
|
|
|
3817
4477
|
}
|
|
3818
4478
|
async describeEventTypesWithOptions(request, runtime) {
|
|
3819
4479
|
tea_util_1.default.validateModel(request);
|
|
4480
|
+
let query = {};
|
|
4481
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4482
|
+
query["Lang"] = request.lang;
|
|
4483
|
+
}
|
|
4484
|
+
if (!tea_util_1.default.isUnset(request.parentTypeId)) {
|
|
4485
|
+
query["ParentTypeId"] = request.parentTypeId;
|
|
4486
|
+
}
|
|
4487
|
+
if (!tea_util_1.default.isUnset(request.resourceId)) {
|
|
4488
|
+
query["ResourceId"] = request.resourceId;
|
|
4489
|
+
}
|
|
4490
|
+
if (!tea_util_1.default.isUnset(request.status)) {
|
|
4491
|
+
query["Status"] = request.status;
|
|
4492
|
+
}
|
|
3820
4493
|
let req = new $OpenApi.OpenApiRequest({
|
|
3821
|
-
|
|
4494
|
+
query: openapi_util_1.default.query(query),
|
|
4495
|
+
});
|
|
4496
|
+
let params = new $OpenApi.Params({
|
|
4497
|
+
action: "DescribeEventTypes",
|
|
4498
|
+
version: "2019-01-03",
|
|
4499
|
+
protocol: "HTTPS",
|
|
4500
|
+
pathname: "/",
|
|
4501
|
+
method: "POST",
|
|
4502
|
+
authType: "AK",
|
|
4503
|
+
style: "RPC",
|
|
4504
|
+
reqBodyType: "formData",
|
|
4505
|
+
bodyType: "json",
|
|
3822
4506
|
});
|
|
3823
|
-
return $tea.cast(await this.
|
|
4507
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventTypesResponse({}));
|
|
3824
4508
|
}
|
|
3825
4509
|
async describeEventTypes(request) {
|
|
3826
4510
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3828,10 +4512,67 @@ class Client extends openapi_client_1.default {
|
|
|
3828
4512
|
}
|
|
3829
4513
|
async describeEventsWithOptions(request, runtime) {
|
|
3830
4514
|
tea_util_1.default.validateModel(request);
|
|
4515
|
+
let query = {};
|
|
4516
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4517
|
+
query["CurrentPage"] = request.currentPage;
|
|
4518
|
+
}
|
|
4519
|
+
if (!tea_util_1.default.isUnset(request.dealUserId)) {
|
|
4520
|
+
query["DealUserId"] = request.dealUserId;
|
|
4521
|
+
}
|
|
4522
|
+
if (!tea_util_1.default.isUnset(request.endTime)) {
|
|
4523
|
+
query["EndTime"] = request.endTime;
|
|
4524
|
+
}
|
|
4525
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
4526
|
+
query["Id"] = request.id;
|
|
4527
|
+
}
|
|
4528
|
+
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
4529
|
+
query["InstanceName"] = request.instanceName;
|
|
4530
|
+
}
|
|
4531
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4532
|
+
query["Lang"] = request.lang;
|
|
4533
|
+
}
|
|
4534
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4535
|
+
query["PageSize"] = request.pageSize;
|
|
4536
|
+
}
|
|
4537
|
+
if (!tea_util_1.default.isUnset(request.productCode)) {
|
|
4538
|
+
query["ProductCode"] = request.productCode;
|
|
4539
|
+
}
|
|
4540
|
+
if (!tea_util_1.default.isUnset(request.startTime)) {
|
|
4541
|
+
query["StartTime"] = request.startTime;
|
|
4542
|
+
}
|
|
4543
|
+
if (!tea_util_1.default.isUnset(request.status)) {
|
|
4544
|
+
query["Status"] = request.status;
|
|
4545
|
+
}
|
|
4546
|
+
if (!tea_util_1.default.isUnset(request.subTypeCode)) {
|
|
4547
|
+
query["SubTypeCode"] = request.subTypeCode;
|
|
4548
|
+
}
|
|
4549
|
+
if (!tea_util_1.default.isUnset(request.targetProductCode)) {
|
|
4550
|
+
query["TargetProductCode"] = request.targetProductCode;
|
|
4551
|
+
}
|
|
4552
|
+
if (!tea_util_1.default.isUnset(request.typeCode)) {
|
|
4553
|
+
query["TypeCode"] = request.typeCode;
|
|
4554
|
+
}
|
|
4555
|
+
if (!tea_util_1.default.isUnset(request.userId)) {
|
|
4556
|
+
query["UserId"] = request.userId;
|
|
4557
|
+
}
|
|
4558
|
+
if (!tea_util_1.default.isUnset(request.userName)) {
|
|
4559
|
+
query["UserName"] = request.userName;
|
|
4560
|
+
}
|
|
3831
4561
|
let req = new $OpenApi.OpenApiRequest({
|
|
3832
|
-
|
|
4562
|
+
query: openapi_util_1.default.query(query),
|
|
4563
|
+
});
|
|
4564
|
+
let params = new $OpenApi.Params({
|
|
4565
|
+
action: "DescribeEvents",
|
|
4566
|
+
version: "2019-01-03",
|
|
4567
|
+
protocol: "HTTPS",
|
|
4568
|
+
pathname: "/",
|
|
4569
|
+
method: "POST",
|
|
4570
|
+
authType: "AK",
|
|
4571
|
+
style: "RPC",
|
|
4572
|
+
reqBodyType: "formData",
|
|
4573
|
+
bodyType: "json",
|
|
3833
4574
|
});
|
|
3834
|
-
return $tea.cast(await this.
|
|
4575
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
|
|
3835
4576
|
}
|
|
3836
4577
|
async describeEvents(request) {
|
|
3837
4578
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3839,10 +4580,43 @@ class Client extends openapi_client_1.default {
|
|
|
3839
4580
|
}
|
|
3840
4581
|
async describeInstanceSourcesWithOptions(request, runtime) {
|
|
3841
4582
|
tea_util_1.default.validateModel(request);
|
|
4583
|
+
let query = {};
|
|
4584
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4585
|
+
query["CurrentPage"] = request.currentPage;
|
|
4586
|
+
}
|
|
4587
|
+
if (!tea_util_1.default.isUnset(request.engineType)) {
|
|
4588
|
+
query["EngineType"] = request.engineType;
|
|
4589
|
+
}
|
|
4590
|
+
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
4591
|
+
query["InstanceId"] = request.instanceId;
|
|
4592
|
+
}
|
|
4593
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4594
|
+
query["Lang"] = request.lang;
|
|
4595
|
+
}
|
|
4596
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4597
|
+
query["PageSize"] = request.pageSize;
|
|
4598
|
+
}
|
|
4599
|
+
if (!tea_util_1.default.isUnset(request.productId)) {
|
|
4600
|
+
query["ProductId"] = request.productId;
|
|
4601
|
+
}
|
|
4602
|
+
if (!tea_util_1.default.isUnset(request.serviceRegionId)) {
|
|
4603
|
+
query["ServiceRegionId"] = request.serviceRegionId;
|
|
4604
|
+
}
|
|
3842
4605
|
let req = new $OpenApi.OpenApiRequest({
|
|
3843
|
-
|
|
4606
|
+
query: openapi_util_1.default.query(query),
|
|
4607
|
+
});
|
|
4608
|
+
let params = new $OpenApi.Params({
|
|
4609
|
+
action: "DescribeInstanceSources",
|
|
4610
|
+
version: "2019-01-03",
|
|
4611
|
+
protocol: "HTTPS",
|
|
4612
|
+
pathname: "/",
|
|
4613
|
+
method: "POST",
|
|
4614
|
+
authType: "AK",
|
|
4615
|
+
style: "RPC",
|
|
4616
|
+
reqBodyType: "formData",
|
|
4617
|
+
bodyType: "json",
|
|
3844
4618
|
});
|
|
3845
|
-
return $tea.cast(await this.
|
|
4619
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstanceSourcesResponse({}));
|
|
3846
4620
|
}
|
|
3847
4621
|
async describeInstanceSources(request) {
|
|
3848
4622
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3850,10 +4624,52 @@ class Client extends openapi_client_1.default {
|
|
|
3850
4624
|
}
|
|
3851
4625
|
async describeInstancesWithOptions(request, runtime) {
|
|
3852
4626
|
tea_util_1.default.validateModel(request);
|
|
4627
|
+
let query = {};
|
|
4628
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4629
|
+
query["CurrentPage"] = request.currentPage;
|
|
4630
|
+
}
|
|
4631
|
+
if (!tea_util_1.default.isUnset(request.featureType)) {
|
|
4632
|
+
query["FeatureType"] = request.featureType;
|
|
4633
|
+
}
|
|
4634
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4635
|
+
query["Lang"] = request.lang;
|
|
4636
|
+
}
|
|
4637
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
4638
|
+
query["Name"] = request.name;
|
|
4639
|
+
}
|
|
4640
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4641
|
+
query["PageSize"] = request.pageSize;
|
|
4642
|
+
}
|
|
4643
|
+
if (!tea_util_1.default.isUnset(request.productCode)) {
|
|
4644
|
+
query["ProductCode"] = request.productCode;
|
|
4645
|
+
}
|
|
4646
|
+
if (!tea_util_1.default.isUnset(request.productId)) {
|
|
4647
|
+
query["ProductId"] = request.productId;
|
|
4648
|
+
}
|
|
4649
|
+
if (!tea_util_1.default.isUnset(request.riskLevelId)) {
|
|
4650
|
+
query["RiskLevelId"] = request.riskLevelId;
|
|
4651
|
+
}
|
|
4652
|
+
if (!tea_util_1.default.isUnset(request.ruleId)) {
|
|
4653
|
+
query["RuleId"] = request.ruleId;
|
|
4654
|
+
}
|
|
4655
|
+
if (!tea_util_1.default.isUnset(request.serviceRegionId)) {
|
|
4656
|
+
query["ServiceRegionId"] = request.serviceRegionId;
|
|
4657
|
+
}
|
|
3853
4658
|
let req = new $OpenApi.OpenApiRequest({
|
|
3854
|
-
|
|
4659
|
+
query: openapi_util_1.default.query(query),
|
|
3855
4660
|
});
|
|
3856
|
-
|
|
4661
|
+
let params = new $OpenApi.Params({
|
|
4662
|
+
action: "DescribeInstances",
|
|
4663
|
+
version: "2019-01-03",
|
|
4664
|
+
protocol: "HTTPS",
|
|
4665
|
+
pathname: "/",
|
|
4666
|
+
method: "POST",
|
|
4667
|
+
authType: "AK",
|
|
4668
|
+
style: "RPC",
|
|
4669
|
+
reqBodyType: "formData",
|
|
4670
|
+
bodyType: "json",
|
|
4671
|
+
});
|
|
4672
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeInstancesResponse({}));
|
|
3857
4673
|
}
|
|
3858
4674
|
async describeInstances(request) {
|
|
3859
4675
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3861,10 +4677,28 @@ class Client extends openapi_client_1.default {
|
|
|
3861
4677
|
}
|
|
3862
4678
|
async describeOssObjectDetailWithOptions(request, runtime) {
|
|
3863
4679
|
tea_util_1.default.validateModel(request);
|
|
4680
|
+
let query = {};
|
|
4681
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
4682
|
+
query["Id"] = request.id;
|
|
4683
|
+
}
|
|
4684
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4685
|
+
query["Lang"] = request.lang;
|
|
4686
|
+
}
|
|
3864
4687
|
let req = new $OpenApi.OpenApiRequest({
|
|
3865
|
-
|
|
4688
|
+
query: openapi_util_1.default.query(query),
|
|
3866
4689
|
});
|
|
3867
|
-
|
|
4690
|
+
let params = new $OpenApi.Params({
|
|
4691
|
+
action: "DescribeOssObjectDetail",
|
|
4692
|
+
version: "2019-01-03",
|
|
4693
|
+
protocol: "HTTPS",
|
|
4694
|
+
pathname: "/",
|
|
4695
|
+
method: "POST",
|
|
4696
|
+
authType: "AK",
|
|
4697
|
+
style: "RPC",
|
|
4698
|
+
reqBodyType: "formData",
|
|
4699
|
+
bodyType: "json",
|
|
4700
|
+
});
|
|
4701
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeOssObjectDetailResponse({}));
|
|
3868
4702
|
}
|
|
3869
4703
|
async describeOssObjectDetail(request) {
|
|
3870
4704
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3872,10 +4706,52 @@ class Client extends openapi_client_1.default {
|
|
|
3872
4706
|
}
|
|
3873
4707
|
async describeOssObjectsWithOptions(request, runtime) {
|
|
3874
4708
|
tea_util_1.default.validateModel(request);
|
|
4709
|
+
let query = {};
|
|
4710
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4711
|
+
query["CurrentPage"] = request.currentPage;
|
|
4712
|
+
}
|
|
4713
|
+
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
4714
|
+
query["InstanceId"] = request.instanceId;
|
|
4715
|
+
}
|
|
4716
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4717
|
+
query["Lang"] = request.lang;
|
|
4718
|
+
}
|
|
4719
|
+
if (!tea_util_1.default.isUnset(request.lastScanTimeEnd)) {
|
|
4720
|
+
query["LastScanTimeEnd"] = request.lastScanTimeEnd;
|
|
4721
|
+
}
|
|
4722
|
+
if (!tea_util_1.default.isUnset(request.lastScanTimeStart)) {
|
|
4723
|
+
query["LastScanTimeStart"] = request.lastScanTimeStart;
|
|
4724
|
+
}
|
|
4725
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
4726
|
+
query["Name"] = request.name;
|
|
4727
|
+
}
|
|
4728
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4729
|
+
query["PageSize"] = request.pageSize;
|
|
4730
|
+
}
|
|
4731
|
+
if (!tea_util_1.default.isUnset(request.riskLevelId)) {
|
|
4732
|
+
query["RiskLevelId"] = request.riskLevelId;
|
|
4733
|
+
}
|
|
4734
|
+
if (!tea_util_1.default.isUnset(request.ruleId)) {
|
|
4735
|
+
query["RuleId"] = request.ruleId;
|
|
4736
|
+
}
|
|
4737
|
+
if (!tea_util_1.default.isUnset(request.serviceRegionId)) {
|
|
4738
|
+
query["ServiceRegionId"] = request.serviceRegionId;
|
|
4739
|
+
}
|
|
3875
4740
|
let req = new $OpenApi.OpenApiRequest({
|
|
3876
|
-
|
|
4741
|
+
query: openapi_util_1.default.query(query),
|
|
4742
|
+
});
|
|
4743
|
+
let params = new $OpenApi.Params({
|
|
4744
|
+
action: "DescribeOssObjects",
|
|
4745
|
+
version: "2019-01-03",
|
|
4746
|
+
protocol: "HTTPS",
|
|
4747
|
+
pathname: "/",
|
|
4748
|
+
method: "POST",
|
|
4749
|
+
authType: "AK",
|
|
4750
|
+
style: "RPC",
|
|
4751
|
+
reqBodyType: "formData",
|
|
4752
|
+
bodyType: "json",
|
|
3877
4753
|
});
|
|
3878
|
-
return $tea.cast(await this.
|
|
4754
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeOssObjectsResponse({}));
|
|
3879
4755
|
}
|
|
3880
4756
|
async describeOssObjects(request) {
|
|
3881
4757
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3883,10 +4759,46 @@ class Client extends openapi_client_1.default {
|
|
|
3883
4759
|
}
|
|
3884
4760
|
async describePackagesWithOptions(request, runtime) {
|
|
3885
4761
|
tea_util_1.default.validateModel(request);
|
|
4762
|
+
let query = {};
|
|
4763
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4764
|
+
query["CurrentPage"] = request.currentPage;
|
|
4765
|
+
}
|
|
4766
|
+
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
4767
|
+
query["InstanceId"] = request.instanceId;
|
|
4768
|
+
}
|
|
4769
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4770
|
+
query["Lang"] = request.lang;
|
|
4771
|
+
}
|
|
4772
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
4773
|
+
query["Name"] = request.name;
|
|
4774
|
+
}
|
|
4775
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4776
|
+
query["PageSize"] = request.pageSize;
|
|
4777
|
+
}
|
|
4778
|
+
if (!tea_util_1.default.isUnset(request.productId)) {
|
|
4779
|
+
query["ProductId"] = request.productId;
|
|
4780
|
+
}
|
|
4781
|
+
if (!tea_util_1.default.isUnset(request.riskLevelId)) {
|
|
4782
|
+
query["RiskLevelId"] = request.riskLevelId;
|
|
4783
|
+
}
|
|
4784
|
+
if (!tea_util_1.default.isUnset(request.ruleId)) {
|
|
4785
|
+
query["RuleId"] = request.ruleId;
|
|
4786
|
+
}
|
|
3886
4787
|
let req = new $OpenApi.OpenApiRequest({
|
|
3887
|
-
|
|
4788
|
+
query: openapi_util_1.default.query(query),
|
|
4789
|
+
});
|
|
4790
|
+
let params = new $OpenApi.Params({
|
|
4791
|
+
action: "DescribePackages",
|
|
4792
|
+
version: "2019-01-03",
|
|
4793
|
+
protocol: "HTTPS",
|
|
4794
|
+
pathname: "/",
|
|
4795
|
+
method: "POST",
|
|
4796
|
+
authType: "AK",
|
|
4797
|
+
style: "RPC",
|
|
4798
|
+
reqBodyType: "formData",
|
|
4799
|
+
bodyType: "json",
|
|
3888
4800
|
});
|
|
3889
|
-
return $tea.cast(await this.
|
|
4801
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePackagesResponse({}));
|
|
3890
4802
|
}
|
|
3891
4803
|
async describePackages(request) {
|
|
3892
4804
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3894,10 +4806,25 @@ class Client extends openapi_client_1.default {
|
|
|
3894
4806
|
}
|
|
3895
4807
|
async describeRiskLevelsWithOptions(request, runtime) {
|
|
3896
4808
|
tea_util_1.default.validateModel(request);
|
|
4809
|
+
let query = {};
|
|
4810
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4811
|
+
query["Lang"] = request.lang;
|
|
4812
|
+
}
|
|
3897
4813
|
let req = new $OpenApi.OpenApiRequest({
|
|
3898
|
-
|
|
4814
|
+
query: openapi_util_1.default.query(query),
|
|
4815
|
+
});
|
|
4816
|
+
let params = new $OpenApi.Params({
|
|
4817
|
+
action: "DescribeRiskLevels",
|
|
4818
|
+
version: "2019-01-03",
|
|
4819
|
+
protocol: "HTTPS",
|
|
4820
|
+
pathname: "/",
|
|
4821
|
+
method: "POST",
|
|
4822
|
+
authType: "AK",
|
|
4823
|
+
style: "RPC",
|
|
4824
|
+
reqBodyType: "formData",
|
|
4825
|
+
bodyType: "json",
|
|
3899
4826
|
});
|
|
3900
|
-
return $tea.cast(await this.
|
|
4827
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeRiskLevelsResponse({}));
|
|
3901
4828
|
}
|
|
3902
4829
|
async describeRiskLevels(request) {
|
|
3903
4830
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3905,10 +4832,67 @@ class Client extends openapi_client_1.default {
|
|
|
3905
4832
|
}
|
|
3906
4833
|
async describeRulesWithOptions(request, runtime) {
|
|
3907
4834
|
tea_util_1.default.validateModel(request);
|
|
4835
|
+
let query = {};
|
|
4836
|
+
if (!tea_util_1.default.isUnset(request.category)) {
|
|
4837
|
+
query["Category"] = request.category;
|
|
4838
|
+
}
|
|
4839
|
+
if (!tea_util_1.default.isUnset(request.contentCategory)) {
|
|
4840
|
+
query["ContentCategory"] = request.contentCategory;
|
|
4841
|
+
}
|
|
4842
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4843
|
+
query["CurrentPage"] = request.currentPage;
|
|
4844
|
+
}
|
|
4845
|
+
if (!tea_util_1.default.isUnset(request.customType)) {
|
|
4846
|
+
query["CustomType"] = request.customType;
|
|
4847
|
+
}
|
|
4848
|
+
if (!tea_util_1.default.isUnset(request.groupId)) {
|
|
4849
|
+
query["GroupId"] = request.groupId;
|
|
4850
|
+
}
|
|
4851
|
+
if (!tea_util_1.default.isUnset(request.keywordCompatible)) {
|
|
4852
|
+
query["KeywordCompatible"] = request.keywordCompatible;
|
|
4853
|
+
}
|
|
4854
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4855
|
+
query["Lang"] = request.lang;
|
|
4856
|
+
}
|
|
4857
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
4858
|
+
query["Name"] = request.name;
|
|
4859
|
+
}
|
|
4860
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4861
|
+
query["PageSize"] = request.pageSize;
|
|
4862
|
+
}
|
|
4863
|
+
if (!tea_util_1.default.isUnset(request.productCode)) {
|
|
4864
|
+
query["ProductCode"] = request.productCode;
|
|
4865
|
+
}
|
|
4866
|
+
if (!tea_util_1.default.isUnset(request.productId)) {
|
|
4867
|
+
query["ProductId"] = request.productId;
|
|
4868
|
+
}
|
|
4869
|
+
if (!tea_util_1.default.isUnset(request.riskLevelId)) {
|
|
4870
|
+
query["RiskLevelId"] = request.riskLevelId;
|
|
4871
|
+
}
|
|
4872
|
+
if (!tea_util_1.default.isUnset(request.ruleType)) {
|
|
4873
|
+
query["RuleType"] = request.ruleType;
|
|
4874
|
+
}
|
|
4875
|
+
if (!tea_util_1.default.isUnset(request.status)) {
|
|
4876
|
+
query["Status"] = request.status;
|
|
4877
|
+
}
|
|
4878
|
+
if (!tea_util_1.default.isUnset(request.warnLevel)) {
|
|
4879
|
+
query["WarnLevel"] = request.warnLevel;
|
|
4880
|
+
}
|
|
3908
4881
|
let req = new $OpenApi.OpenApiRequest({
|
|
3909
|
-
|
|
4882
|
+
query: openapi_util_1.default.query(query),
|
|
4883
|
+
});
|
|
4884
|
+
let params = new $OpenApi.Params({
|
|
4885
|
+
action: "DescribeRules",
|
|
4886
|
+
version: "2019-01-03",
|
|
4887
|
+
protocol: "HTTPS",
|
|
4888
|
+
pathname: "/",
|
|
4889
|
+
method: "POST",
|
|
4890
|
+
authType: "AK",
|
|
4891
|
+
style: "RPC",
|
|
4892
|
+
reqBodyType: "formData",
|
|
4893
|
+
bodyType: "json",
|
|
3910
4894
|
});
|
|
3911
|
-
return $tea.cast(await this.
|
|
4895
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeRulesResponse({}));
|
|
3912
4896
|
}
|
|
3913
4897
|
async describeRules(request) {
|
|
3914
4898
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3916,10 +4900,55 @@ class Client extends openapi_client_1.default {
|
|
|
3916
4900
|
}
|
|
3917
4901
|
async describeTablesWithOptions(request, runtime) {
|
|
3918
4902
|
tea_util_1.default.validateModel(request);
|
|
4903
|
+
let query = {};
|
|
4904
|
+
if (!tea_util_1.default.isUnset(request.currentPage)) {
|
|
4905
|
+
query["CurrentPage"] = request.currentPage;
|
|
4906
|
+
}
|
|
4907
|
+
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
4908
|
+
query["InstanceId"] = request.instanceId;
|
|
4909
|
+
}
|
|
4910
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4911
|
+
query["Lang"] = request.lang;
|
|
4912
|
+
}
|
|
4913
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
4914
|
+
query["Name"] = request.name;
|
|
4915
|
+
}
|
|
4916
|
+
if (!tea_util_1.default.isUnset(request.packageId)) {
|
|
4917
|
+
query["PackageId"] = request.packageId;
|
|
4918
|
+
}
|
|
4919
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
4920
|
+
query["PageSize"] = request.pageSize;
|
|
4921
|
+
}
|
|
4922
|
+
if (!tea_util_1.default.isUnset(request.productCode)) {
|
|
4923
|
+
query["ProductCode"] = request.productCode;
|
|
4924
|
+
}
|
|
4925
|
+
if (!tea_util_1.default.isUnset(request.productId)) {
|
|
4926
|
+
query["ProductId"] = request.productId;
|
|
4927
|
+
}
|
|
4928
|
+
if (!tea_util_1.default.isUnset(request.riskLevelId)) {
|
|
4929
|
+
query["RiskLevelId"] = request.riskLevelId;
|
|
4930
|
+
}
|
|
4931
|
+
if (!tea_util_1.default.isUnset(request.ruleId)) {
|
|
4932
|
+
query["RuleId"] = request.ruleId;
|
|
4933
|
+
}
|
|
4934
|
+
if (!tea_util_1.default.isUnset(request.serviceRegionId)) {
|
|
4935
|
+
query["ServiceRegionId"] = request.serviceRegionId;
|
|
4936
|
+
}
|
|
3919
4937
|
let req = new $OpenApi.OpenApiRequest({
|
|
3920
|
-
|
|
4938
|
+
query: openapi_util_1.default.query(query),
|
|
4939
|
+
});
|
|
4940
|
+
let params = new $OpenApi.Params({
|
|
4941
|
+
action: "DescribeTables",
|
|
4942
|
+
version: "2019-01-03",
|
|
4943
|
+
protocol: "HTTPS",
|
|
4944
|
+
pathname: "/",
|
|
4945
|
+
method: "POST",
|
|
4946
|
+
authType: "AK",
|
|
4947
|
+
style: "RPC",
|
|
4948
|
+
reqBodyType: "formData",
|
|
4949
|
+
bodyType: "json",
|
|
3921
4950
|
});
|
|
3922
|
-
return $tea.cast(await this.
|
|
4951
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeTablesResponse({}));
|
|
3923
4952
|
}
|
|
3924
4953
|
async describeTables(request) {
|
|
3925
4954
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3927,10 +4956,25 @@ class Client extends openapi_client_1.default {
|
|
|
3927
4956
|
}
|
|
3928
4957
|
async describeUserStatusWithOptions(request, runtime) {
|
|
3929
4958
|
tea_util_1.default.validateModel(request);
|
|
4959
|
+
let query = {};
|
|
4960
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4961
|
+
query["Lang"] = request.lang;
|
|
4962
|
+
}
|
|
3930
4963
|
let req = new $OpenApi.OpenApiRequest({
|
|
3931
|
-
|
|
4964
|
+
query: openapi_util_1.default.query(query),
|
|
4965
|
+
});
|
|
4966
|
+
let params = new $OpenApi.Params({
|
|
4967
|
+
action: "DescribeUserStatus",
|
|
4968
|
+
version: "2019-01-03",
|
|
4969
|
+
protocol: "HTTPS",
|
|
4970
|
+
pathname: "/",
|
|
4971
|
+
method: "POST",
|
|
4972
|
+
authType: "AK",
|
|
4973
|
+
style: "RPC",
|
|
4974
|
+
reqBodyType: "formData",
|
|
4975
|
+
bodyType: "json",
|
|
3932
4976
|
});
|
|
3933
|
-
return $tea.cast(await this.
|
|
4977
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserStatusResponse({}));
|
|
3934
4978
|
}
|
|
3935
4979
|
async describeUserStatus(request) {
|
|
3936
4980
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3938,10 +4982,28 @@ class Client extends openapi_client_1.default {
|
|
|
3938
4982
|
}
|
|
3939
4983
|
async disableUserConfigWithOptions(request, runtime) {
|
|
3940
4984
|
tea_util_1.default.validateModel(request);
|
|
4985
|
+
let query = {};
|
|
4986
|
+
if (!tea_util_1.default.isUnset(request.code)) {
|
|
4987
|
+
query["Code"] = request.code;
|
|
4988
|
+
}
|
|
4989
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
4990
|
+
query["Lang"] = request.lang;
|
|
4991
|
+
}
|
|
3941
4992
|
let req = new $OpenApi.OpenApiRequest({
|
|
3942
|
-
|
|
4993
|
+
query: openapi_util_1.default.query(query),
|
|
4994
|
+
});
|
|
4995
|
+
let params = new $OpenApi.Params({
|
|
4996
|
+
action: "DisableUserConfig",
|
|
4997
|
+
version: "2019-01-03",
|
|
4998
|
+
protocol: "HTTPS",
|
|
4999
|
+
pathname: "/",
|
|
5000
|
+
method: "POST",
|
|
5001
|
+
authType: "AK",
|
|
5002
|
+
style: "RPC",
|
|
5003
|
+
reqBodyType: "formData",
|
|
5004
|
+
bodyType: "json",
|
|
3943
5005
|
});
|
|
3944
|
-
return $tea.cast(await this.
|
|
5006
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DisableUserConfigResponse({}));
|
|
3945
5007
|
}
|
|
3946
5008
|
async disableUserConfig(request) {
|
|
3947
5009
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3949,10 +5011,31 @@ class Client extends openapi_client_1.default {
|
|
|
3949
5011
|
}
|
|
3950
5012
|
async execDatamaskWithOptions(request, runtime) {
|
|
3951
5013
|
tea_util_1.default.validateModel(request);
|
|
5014
|
+
let query = {};
|
|
5015
|
+
if (!tea_util_1.default.isUnset(request.data)) {
|
|
5016
|
+
query["Data"] = request.data;
|
|
5017
|
+
}
|
|
5018
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
5019
|
+
query["Lang"] = request.lang;
|
|
5020
|
+
}
|
|
5021
|
+
if (!tea_util_1.default.isUnset(request.templateId)) {
|
|
5022
|
+
query["TemplateId"] = request.templateId;
|
|
5023
|
+
}
|
|
3952
5024
|
let req = new $OpenApi.OpenApiRequest({
|
|
3953
|
-
|
|
5025
|
+
query: openapi_util_1.default.query(query),
|
|
5026
|
+
});
|
|
5027
|
+
let params = new $OpenApi.Params({
|
|
5028
|
+
action: "ExecDatamask",
|
|
5029
|
+
version: "2019-01-03",
|
|
5030
|
+
protocol: "HTTPS",
|
|
5031
|
+
pathname: "/",
|
|
5032
|
+
method: "POST",
|
|
5033
|
+
authType: "AK",
|
|
5034
|
+
style: "RPC",
|
|
5035
|
+
reqBodyType: "formData",
|
|
5036
|
+
bodyType: "json",
|
|
3954
5037
|
});
|
|
3955
|
-
return $tea.cast(await this.
|
|
5038
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ExecDatamaskResponse({}));
|
|
3956
5039
|
}
|
|
3957
5040
|
async execDatamask(request) {
|
|
3958
5041
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3960,10 +5043,28 @@ class Client extends openapi_client_1.default {
|
|
|
3960
5043
|
}
|
|
3961
5044
|
async manualTriggerMaskingProcessWithOptions(request, runtime) {
|
|
3962
5045
|
tea_util_1.default.validateModel(request);
|
|
5046
|
+
let query = {};
|
|
5047
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
5048
|
+
query["Id"] = request.id;
|
|
5049
|
+
}
|
|
5050
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
5051
|
+
query["Lang"] = request.lang;
|
|
5052
|
+
}
|
|
3963
5053
|
let req = new $OpenApi.OpenApiRequest({
|
|
3964
|
-
|
|
5054
|
+
query: openapi_util_1.default.query(query),
|
|
5055
|
+
});
|
|
5056
|
+
let params = new $OpenApi.Params({
|
|
5057
|
+
action: "ManualTriggerMaskingProcess",
|
|
5058
|
+
version: "2019-01-03",
|
|
5059
|
+
protocol: "HTTPS",
|
|
5060
|
+
pathname: "/",
|
|
5061
|
+
method: "POST",
|
|
5062
|
+
authType: "AK",
|
|
5063
|
+
style: "RPC",
|
|
5064
|
+
reqBodyType: "formData",
|
|
5065
|
+
bodyType: "json",
|
|
3965
5066
|
});
|
|
3966
|
-
return $tea.cast(await this.
|
|
5067
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ManualTriggerMaskingProcessResponse({}));
|
|
3967
5068
|
}
|
|
3968
5069
|
async manualTriggerMaskingProcess(request) {
|
|
3969
5070
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3971,10 +5072,58 @@ class Client extends openapi_client_1.default {
|
|
|
3971
5072
|
}
|
|
3972
5073
|
async modifyDataLimitWithOptions(request, runtime) {
|
|
3973
5074
|
tea_util_1.default.validateModel(request);
|
|
5075
|
+
let query = {};
|
|
5076
|
+
if (!tea_util_1.default.isUnset(request.auditStatus)) {
|
|
5077
|
+
query["AuditStatus"] = request.auditStatus;
|
|
5078
|
+
}
|
|
5079
|
+
if (!tea_util_1.default.isUnset(request.autoScan)) {
|
|
5080
|
+
query["AutoScan"] = request.autoScan;
|
|
5081
|
+
}
|
|
5082
|
+
if (!tea_util_1.default.isUnset(request.engineType)) {
|
|
5083
|
+
query["EngineType"] = request.engineType;
|
|
5084
|
+
}
|
|
5085
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
5086
|
+
query["Id"] = request.id;
|
|
5087
|
+
}
|
|
5088
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
5089
|
+
query["Lang"] = request.lang;
|
|
5090
|
+
}
|
|
5091
|
+
if (!tea_util_1.default.isUnset(request.logStoreDay)) {
|
|
5092
|
+
query["LogStoreDay"] = request.logStoreDay;
|
|
5093
|
+
}
|
|
5094
|
+
if (!tea_util_1.default.isUnset(request.modifyPassword)) {
|
|
5095
|
+
query["ModifyPassword"] = request.modifyPassword;
|
|
5096
|
+
}
|
|
5097
|
+
if (!tea_util_1.default.isUnset(request.password)) {
|
|
5098
|
+
query["Password"] = request.password;
|
|
5099
|
+
}
|
|
5100
|
+
if (!tea_util_1.default.isUnset(request.port)) {
|
|
5101
|
+
query["Port"] = request.port;
|
|
5102
|
+
}
|
|
5103
|
+
if (!tea_util_1.default.isUnset(request.resourceType)) {
|
|
5104
|
+
query["ResourceType"] = request.resourceType;
|
|
5105
|
+
}
|
|
5106
|
+
if (!tea_util_1.default.isUnset(request.serviceRegionId)) {
|
|
5107
|
+
query["ServiceRegionId"] = request.serviceRegionId;
|
|
5108
|
+
}
|
|
5109
|
+
if (!tea_util_1.default.isUnset(request.userName)) {
|
|
5110
|
+
query["UserName"] = request.userName;
|
|
5111
|
+
}
|
|
3974
5112
|
let req = new $OpenApi.OpenApiRequest({
|
|
3975
|
-
|
|
5113
|
+
query: openapi_util_1.default.query(query),
|
|
3976
5114
|
});
|
|
3977
|
-
|
|
5115
|
+
let params = new $OpenApi.Params({
|
|
5116
|
+
action: "ModifyDataLimit",
|
|
5117
|
+
version: "2019-01-03",
|
|
5118
|
+
protocol: "HTTPS",
|
|
5119
|
+
pathname: "/",
|
|
5120
|
+
method: "POST",
|
|
5121
|
+
authType: "AK",
|
|
5122
|
+
style: "RPC",
|
|
5123
|
+
reqBodyType: "formData",
|
|
5124
|
+
bodyType: "json",
|
|
5125
|
+
});
|
|
5126
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDataLimitResponse({}));
|
|
3978
5127
|
}
|
|
3979
5128
|
async modifyDataLimit(request) {
|
|
3980
5129
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3982,10 +5131,31 @@ class Client extends openapi_client_1.default {
|
|
|
3982
5131
|
}
|
|
3983
5132
|
async modifyDefaultLevelWithOptions(request, runtime) {
|
|
3984
5133
|
tea_util_1.default.validateModel(request);
|
|
5134
|
+
let query = {};
|
|
5135
|
+
if (!tea_util_1.default.isUnset(request.defaultId)) {
|
|
5136
|
+
query["DefaultId"] = request.defaultId;
|
|
5137
|
+
}
|
|
5138
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
5139
|
+
query["Lang"] = request.lang;
|
|
5140
|
+
}
|
|
5141
|
+
if (!tea_util_1.default.isUnset(request.sensitiveIds)) {
|
|
5142
|
+
query["SensitiveIds"] = request.sensitiveIds;
|
|
5143
|
+
}
|
|
3985
5144
|
let req = new $OpenApi.OpenApiRequest({
|
|
3986
|
-
|
|
5145
|
+
query: openapi_util_1.default.query(query),
|
|
5146
|
+
});
|
|
5147
|
+
let params = new $OpenApi.Params({
|
|
5148
|
+
action: "ModifyDefaultLevel",
|
|
5149
|
+
version: "2019-01-03",
|
|
5150
|
+
protocol: "HTTPS",
|
|
5151
|
+
pathname: "/",
|
|
5152
|
+
method: "POST",
|
|
5153
|
+
authType: "AK",
|
|
5154
|
+
style: "RPC",
|
|
5155
|
+
reqBodyType: "formData",
|
|
5156
|
+
bodyType: "json",
|
|
3987
5157
|
});
|
|
3988
|
-
return $tea.cast(await this.
|
|
5158
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDefaultLevelResponse({}));
|
|
3989
5159
|
}
|
|
3990
5160
|
async modifyDefaultLevel(request) {
|
|
3991
5161
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -3993,10 +5163,37 @@ class Client extends openapi_client_1.default {
|
|
|
3993
5163
|
}
|
|
3994
5164
|
async modifyEventStatusWithOptions(request, runtime) {
|
|
3995
5165
|
tea_util_1.default.validateModel(request);
|
|
5166
|
+
let query = {};
|
|
5167
|
+
if (!tea_util_1.default.isUnset(request.backed)) {
|
|
5168
|
+
query["Backed"] = request.backed;
|
|
5169
|
+
}
|
|
5170
|
+
if (!tea_util_1.default.isUnset(request.dealReason)) {
|
|
5171
|
+
query["DealReason"] = request.dealReason;
|
|
5172
|
+
}
|
|
5173
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
5174
|
+
query["Id"] = request.id;
|
|
5175
|
+
}
|
|
5176
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
5177
|
+
query["Lang"] = request.lang;
|
|
5178
|
+
}
|
|
5179
|
+
if (!tea_util_1.default.isUnset(request.status)) {
|
|
5180
|
+
query["Status"] = request.status;
|
|
5181
|
+
}
|
|
3996
5182
|
let req = new $OpenApi.OpenApiRequest({
|
|
3997
|
-
|
|
5183
|
+
query: openapi_util_1.default.query(query),
|
|
5184
|
+
});
|
|
5185
|
+
let params = new $OpenApi.Params({
|
|
5186
|
+
action: "ModifyEventStatus",
|
|
5187
|
+
version: "2019-01-03",
|
|
5188
|
+
protocol: "HTTPS",
|
|
5189
|
+
pathname: "/",
|
|
5190
|
+
method: "POST",
|
|
5191
|
+
authType: "AK",
|
|
5192
|
+
style: "RPC",
|
|
5193
|
+
reqBodyType: "formData",
|
|
5194
|
+
bodyType: "json",
|
|
3998
5195
|
});
|
|
3999
|
-
return $tea.cast(await this.
|
|
5196
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyEventStatusResponse({}));
|
|
4000
5197
|
}
|
|
4001
5198
|
async modifyEventStatus(request) {
|
|
4002
5199
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -4004,21 +5201,110 @@ class Client extends openapi_client_1.default {
|
|
|
4004
5201
|
}
|
|
4005
5202
|
async modifyEventTypeStatusWithOptions(request, runtime) {
|
|
4006
5203
|
tea_util_1.default.validateModel(request);
|
|
5204
|
+
let query = {};
|
|
5205
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
5206
|
+
query["Lang"] = request.lang;
|
|
5207
|
+
}
|
|
5208
|
+
if (!tea_util_1.default.isUnset(request.subTypeIds)) {
|
|
5209
|
+
query["SubTypeIds"] = request.subTypeIds;
|
|
5210
|
+
}
|
|
4007
5211
|
let req = new $OpenApi.OpenApiRequest({
|
|
4008
|
-
|
|
5212
|
+
query: openapi_util_1.default.query(query),
|
|
5213
|
+
});
|
|
5214
|
+
let params = new $OpenApi.Params({
|
|
5215
|
+
action: "ModifyEventTypeStatus",
|
|
5216
|
+
version: "2019-01-03",
|
|
5217
|
+
protocol: "HTTPS",
|
|
5218
|
+
pathname: "/",
|
|
5219
|
+
method: "POST",
|
|
5220
|
+
authType: "AK",
|
|
5221
|
+
style: "RPC",
|
|
5222
|
+
reqBodyType: "formData",
|
|
5223
|
+
bodyType: "json",
|
|
4009
5224
|
});
|
|
4010
|
-
return $tea.cast(await this.
|
|
5225
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyEventTypeStatusResponse({}));
|
|
4011
5226
|
}
|
|
4012
5227
|
async modifyEventTypeStatus(request) {
|
|
4013
5228
|
let runtime = new $Util.RuntimeOptions({});
|
|
4014
5229
|
return await this.modifyEventTypeStatusWithOptions(request, runtime);
|
|
4015
5230
|
}
|
|
5231
|
+
async modifyReportTaskStatusWithOptions(request, runtime) {
|
|
5232
|
+
tea_util_1.default.validateModel(request);
|
|
5233
|
+
let query = {};
|
|
5234
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
5235
|
+
query["Lang"] = request.lang;
|
|
5236
|
+
}
|
|
5237
|
+
if (!tea_util_1.default.isUnset(request.reportTaskStatus)) {
|
|
5238
|
+
query["ReportTaskStatus"] = request.reportTaskStatus;
|
|
5239
|
+
}
|
|
5240
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5241
|
+
query: openapi_util_1.default.query(query),
|
|
5242
|
+
});
|
|
5243
|
+
let params = new $OpenApi.Params({
|
|
5244
|
+
action: "ModifyReportTaskStatus",
|
|
5245
|
+
version: "2019-01-03",
|
|
5246
|
+
protocol: "HTTPS",
|
|
5247
|
+
pathname: "/",
|
|
5248
|
+
method: "POST",
|
|
5249
|
+
authType: "AK",
|
|
5250
|
+
style: "RPC",
|
|
5251
|
+
reqBodyType: "formData",
|
|
5252
|
+
bodyType: "json",
|
|
5253
|
+
});
|
|
5254
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyReportTaskStatusResponse({}));
|
|
5255
|
+
}
|
|
5256
|
+
async modifyReportTaskStatus(request) {
|
|
5257
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5258
|
+
return await this.modifyReportTaskStatusWithOptions(request, runtime);
|
|
5259
|
+
}
|
|
4016
5260
|
async modifyRuleWithOptions(request, runtime) {
|
|
4017
5261
|
tea_util_1.default.validateModel(request);
|
|
5262
|
+
let query = {};
|
|
5263
|
+
if (!tea_util_1.default.isUnset(request.category)) {
|
|
5264
|
+
query["Category"] = request.category;
|
|
5265
|
+
}
|
|
5266
|
+
if (!tea_util_1.default.isUnset(request.content)) {
|
|
5267
|
+
query["Content"] = request.content;
|
|
5268
|
+
}
|
|
5269
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
5270
|
+
query["Id"] = request.id;
|
|
5271
|
+
}
|
|
5272
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
5273
|
+
query["Lang"] = request.lang;
|
|
5274
|
+
}
|
|
5275
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
5276
|
+
query["Name"] = request.name;
|
|
5277
|
+
}
|
|
5278
|
+
if (!tea_util_1.default.isUnset(request.productCode)) {
|
|
5279
|
+
query["ProductCode"] = request.productCode;
|
|
5280
|
+
}
|
|
5281
|
+
if (!tea_util_1.default.isUnset(request.productId)) {
|
|
5282
|
+
query["ProductId"] = request.productId;
|
|
5283
|
+
}
|
|
5284
|
+
if (!tea_util_1.default.isUnset(request.riskLevelId)) {
|
|
5285
|
+
query["RiskLevelId"] = request.riskLevelId;
|
|
5286
|
+
}
|
|
5287
|
+
if (!tea_util_1.default.isUnset(request.ruleType)) {
|
|
5288
|
+
query["RuleType"] = request.ruleType;
|
|
5289
|
+
}
|
|
5290
|
+
if (!tea_util_1.default.isUnset(request.warnLevel)) {
|
|
5291
|
+
query["WarnLevel"] = request.warnLevel;
|
|
5292
|
+
}
|
|
4018
5293
|
let req = new $OpenApi.OpenApiRequest({
|
|
4019
|
-
|
|
5294
|
+
query: openapi_util_1.default.query(query),
|
|
4020
5295
|
});
|
|
4021
|
-
|
|
5296
|
+
let params = new $OpenApi.Params({
|
|
5297
|
+
action: "ModifyRule",
|
|
5298
|
+
version: "2019-01-03",
|
|
5299
|
+
protocol: "HTTPS",
|
|
5300
|
+
pathname: "/",
|
|
5301
|
+
method: "POST",
|
|
5302
|
+
authType: "AK",
|
|
5303
|
+
style: "RPC",
|
|
5304
|
+
reqBodyType: "formData",
|
|
5305
|
+
bodyType: "json",
|
|
5306
|
+
});
|
|
5307
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyRuleResponse({}));
|
|
4022
5308
|
}
|
|
4023
5309
|
async modifyRule(request) {
|
|
4024
5310
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -4026,10 +5312,34 @@ class Client extends openapi_client_1.default {
|
|
|
4026
5312
|
}
|
|
4027
5313
|
async modifyRuleStatusWithOptions(request, runtime) {
|
|
4028
5314
|
tea_util_1.default.validateModel(request);
|
|
5315
|
+
let query = {};
|
|
5316
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
5317
|
+
query["Id"] = request.id;
|
|
5318
|
+
}
|
|
5319
|
+
if (!tea_util_1.default.isUnset(request.ids)) {
|
|
5320
|
+
query["Ids"] = request.ids;
|
|
5321
|
+
}
|
|
5322
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
5323
|
+
query["Lang"] = request.lang;
|
|
5324
|
+
}
|
|
5325
|
+
if (!tea_util_1.default.isUnset(request.status)) {
|
|
5326
|
+
query["Status"] = request.status;
|
|
5327
|
+
}
|
|
4029
5328
|
let req = new $OpenApi.OpenApiRequest({
|
|
4030
|
-
|
|
5329
|
+
query: openapi_util_1.default.query(query),
|
|
5330
|
+
});
|
|
5331
|
+
let params = new $OpenApi.Params({
|
|
5332
|
+
action: "ModifyRuleStatus",
|
|
5333
|
+
version: "2019-01-03",
|
|
5334
|
+
protocol: "HTTPS",
|
|
5335
|
+
pathname: "/",
|
|
5336
|
+
method: "POST",
|
|
5337
|
+
authType: "AK",
|
|
5338
|
+
style: "RPC",
|
|
5339
|
+
reqBodyType: "formData",
|
|
5340
|
+
bodyType: "json",
|
|
4031
5341
|
});
|
|
4032
|
-
return $tea.cast(await this.
|
|
5342
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyRuleStatusResponse({}));
|
|
4033
5343
|
}
|
|
4034
5344
|
async modifyRuleStatus(request) {
|
|
4035
5345
|
let runtime = new $Util.RuntimeOptions({});
|
|
@@ -4037,10 +5347,28 @@ class Client extends openapi_client_1.default {
|
|
|
4037
5347
|
}
|
|
4038
5348
|
async stopMaskingProcessWithOptions(request, runtime) {
|
|
4039
5349
|
tea_util_1.default.validateModel(request);
|
|
5350
|
+
let query = {};
|
|
5351
|
+
if (!tea_util_1.default.isUnset(request.id)) {
|
|
5352
|
+
query["Id"] = request.id;
|
|
5353
|
+
}
|
|
5354
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
5355
|
+
query["Lang"] = request.lang;
|
|
5356
|
+
}
|
|
4040
5357
|
let req = new $OpenApi.OpenApiRequest({
|
|
4041
|
-
|
|
5358
|
+
query: openapi_util_1.default.query(query),
|
|
5359
|
+
});
|
|
5360
|
+
let params = new $OpenApi.Params({
|
|
5361
|
+
action: "StopMaskingProcess",
|
|
5362
|
+
version: "2019-01-03",
|
|
5363
|
+
protocol: "HTTPS",
|
|
5364
|
+
pathname: "/",
|
|
5365
|
+
method: "POST",
|
|
5366
|
+
authType: "AK",
|
|
5367
|
+
style: "RPC",
|
|
5368
|
+
reqBodyType: "formData",
|
|
5369
|
+
bodyType: "json",
|
|
4042
5370
|
});
|
|
4043
|
-
return $tea.cast(await this.
|
|
5371
|
+
return $tea.cast(await this.callApi(params, req, runtime), new StopMaskingProcessResponse({}));
|
|
4044
5372
|
}
|
|
4045
5373
|
async stopMaskingProcess(request) {
|
|
4046
5374
|
let runtime = new $Util.RuntimeOptions({});
|