@alicloud/cloud-siem20241212 1.0.1 → 2.0.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/dist/client.d.ts +45 -0
- package/dist/client.js +216 -3
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDataSourceRequest.d.ts +0 -3
- package/dist/models/CreateDataSourceRequest.js +0 -6
- package/dist/models/CreateDataSourceRequest.js.map +1 -1
- package/dist/models/CreateDataSourceShrinkRequest.d.ts +0 -3
- package/dist/models/CreateDataSourceShrinkRequest.js +0 -6
- package/dist/models/CreateDataSourceShrinkRequest.js.map +1 -1
- package/dist/models/CreateDetectionRuleRequest.d.ts +2 -0
- package/dist/models/CreateDetectionRuleRequest.js +4 -0
- package/dist/models/CreateDetectionRuleRequest.js.map +1 -1
- package/dist/models/CreateNormalizationRuleRequest.d.ts +5 -0
- package/dist/models/CreateNormalizationRuleRequest.js +2 -0
- package/dist/models/CreateNormalizationRuleRequest.js.map +1 -1
- package/dist/models/CreateNormalizationRuleShrinkRequest.d.ts +5 -0
- package/dist/models/CreateNormalizationRuleShrinkRequest.js +2 -0
- package/dist/models/CreateNormalizationRuleShrinkRequest.js.map +1 -1
- package/dist/models/CreateNormalizationSchemaRequest.d.ts +188 -0
- package/dist/models/CreateNormalizationSchemaRequest.js +152 -0
- package/dist/models/CreateNormalizationSchemaRequest.js.map +1 -0
- package/dist/models/CreateNormalizationSchemaResponse.d.ts +19 -0
- package/dist/models/CreateNormalizationSchemaResponse.js +69 -0
- package/dist/models/CreateNormalizationSchemaResponse.js.map +1 -0
- package/dist/models/CreateNormalizationSchemaResponseBody.d.ts +18 -0
- package/dist/models/CreateNormalizationSchemaResponseBody.js +58 -0
- package/dist/models/CreateNormalizationSchemaResponseBody.js.map +1 -0
- package/dist/models/GetIncidentResponseBody.d.ts +5 -0
- package/dist/models/GetIncidentResponseBody.js +2 -0
- package/dist/models/GetIncidentResponseBody.js.map +1 -1
- package/dist/models/GetNormalizationRuleResponseBody.d.ts +5 -0
- package/dist/models/GetNormalizationRuleResponseBody.js +2 -0
- package/dist/models/GetNormalizationRuleResponseBody.js.map +1 -1
- package/dist/models/GetNormalizationSchemaResponseBody.d.ts +109 -0
- package/dist/models/GetNormalizationSchemaResponseBody.js +83 -1
- package/dist/models/GetNormalizationSchemaResponseBody.js.map +1 -1
- package/dist/models/ListDataSourcesResponseBody.d.ts +5 -0
- package/dist/models/ListDataSourcesResponseBody.js +2 -0
- package/dist/models/ListDataSourcesResponseBody.js.map +1 -1
- package/dist/models/ListDetectionRulesResponseBody.d.ts +2 -0
- package/dist/models/ListDetectionRulesResponseBody.js +4 -0
- package/dist/models/ListDetectionRulesResponseBody.js.map +1 -1
- package/dist/models/ListIncidentsRequest.d.ts +1 -0
- package/dist/models/ListIncidentsRequest.js +5 -0
- package/dist/models/ListIncidentsRequest.js.map +1 -1
- package/dist/models/ListIncidentsResponseBody.d.ts +6 -0
- package/dist/models/ListIncidentsResponseBody.js +4 -0
- package/dist/models/ListIncidentsResponseBody.js.map +1 -1
- package/dist/models/ListIncidentsShrinkRequest.d.ts +1 -0
- package/dist/models/ListIncidentsShrinkRequest.js +5 -0
- package/dist/models/ListIncidentsShrinkRequest.js.map +1 -1
- package/dist/models/ListNormalizationFieldsResponseBody.d.ts +69 -0
- package/dist/models/ListNormalizationFieldsResponseBody.js +55 -1
- package/dist/models/ListNormalizationFieldsResponseBody.js.map +1 -1
- package/dist/models/ListNormalizationRulesResponseBody.d.ts +5 -0
- package/dist/models/ListNormalizationRulesResponseBody.js +2 -0
- package/dist/models/ListNormalizationRulesResponseBody.js.map +1 -1
- package/dist/models/ListNormalizationSchemasResponseBody.d.ts +30 -0
- package/dist/models/ListNormalizationSchemasResponseBody.js +12 -0
- package/dist/models/ListNormalizationSchemasResponseBody.js.map +1 -1
- package/dist/models/RefreshDataSourceRequest.d.ts +33 -0
- package/dist/models/RefreshDataSourceRequest.js +64 -0
- package/dist/models/RefreshDataSourceRequest.js.map +1 -0
- package/dist/models/RefreshDataSourceResponse.d.ts +19 -0
- package/dist/models/RefreshDataSourceResponse.js +69 -0
- package/dist/models/RefreshDataSourceResponse.js.map +1 -0
- package/dist/models/RefreshDataSourceResponseBody.d.ts +21 -0
- package/dist/models/RefreshDataSourceResponseBody.js +58 -0
- package/dist/models/RefreshDataSourceResponseBody.js.map +1 -0
- package/dist/models/UpdateDetectionRuleRequest.d.ts +2 -0
- package/dist/models/UpdateDetectionRuleRequest.js +4 -0
- package/dist/models/UpdateDetectionRuleRequest.js.map +1 -1
- package/dist/models/UpdateNormalizationRuleRequest.d.ts +10 -0
- package/dist/models/UpdateNormalizationRuleRequest.js +4 -0
- package/dist/models/UpdateNormalizationRuleRequest.js.map +1 -1
- package/dist/models/UpdateNormalizationRuleShrinkRequest.d.ts +10 -0
- package/dist/models/UpdateNormalizationRuleShrinkRequest.js +4 -0
- package/dist/models/UpdateNormalizationRuleShrinkRequest.js.map +1 -1
- package/dist/models/UpdateNormalizationSchemaRequest.d.ts +146 -0
- package/dist/models/UpdateNormalizationSchemaRequest.js +144 -0
- package/dist/models/UpdateNormalizationSchemaRequest.js.map +1 -0
- package/dist/models/UpdateNormalizationSchemaResponse.d.ts +19 -0
- package/dist/models/UpdateNormalizationSchemaResponse.js +69 -0
- package/dist/models/UpdateNormalizationSchemaResponse.js.map +1 -0
- package/dist/models/UpdateNormalizationSchemaResponseBody.d.ts +18 -0
- package/dist/models/UpdateNormalizationSchemaResponseBody.js +58 -0
- package/dist/models/UpdateNormalizationSchemaResponseBody.js.map +1 -0
- package/dist/models/ValidateNormalizationRuleRequest.d.ts +30 -0
- package/dist/models/ValidateNormalizationRuleRequest.js +12 -0
- package/dist/models/ValidateNormalizationRuleRequest.js.map +1 -1
- package/dist/models/ValidateNormalizationRuleResponseBody.d.ts +31 -0
- package/dist/models/ValidateNormalizationRuleResponseBody.js +14 -0
- package/dist/models/ValidateNormalizationRuleResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +16 -0
- package/dist/models/model.js +46 -13
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +258 -4
- package/src/models/CreateDataSourceRequest.ts +0 -9
- package/src/models/CreateDataSourceShrinkRequest.ts +0 -9
- package/src/models/CreateDetectionRuleRequest.ts +6 -0
- package/src/models/CreateNormalizationRuleRequest.ts +7 -0
- package/src/models/CreateNormalizationRuleShrinkRequest.ts +7 -0
- package/src/models/CreateNormalizationSchemaRequest.ts +277 -0
- package/src/models/CreateNormalizationSchemaResponse.ts +40 -0
- package/src/models/CreateNormalizationSchemaResponseBody.ts +31 -0
- package/src/models/GetIncidentResponseBody.ts +7 -0
- package/src/models/GetNormalizationRuleResponseBody.ts +7 -0
- package/src/models/GetNormalizationSchemaResponseBody.ts +173 -0
- package/src/models/ListDataSourcesResponseBody.ts +7 -0
- package/src/models/ListDetectionRulesResponseBody.ts +6 -0
- package/src/models/ListIncidentsRequest.ts +6 -0
- package/src/models/ListIncidentsResponseBody.ts +10 -0
- package/src/models/ListIncidentsShrinkRequest.ts +6 -0
- package/src/models/ListNormalizationFieldsResponseBody.ts +114 -0
- package/src/models/ListNormalizationRulesResponseBody.ts +7 -0
- package/src/models/ListNormalizationSchemasResponseBody.ts +42 -0
- package/src/models/RefreshDataSourceRequest.ts +52 -0
- package/src/models/RefreshDataSourceResponse.ts +40 -0
- package/src/models/RefreshDataSourceResponseBody.ts +34 -0
- package/src/models/UpdateDetectionRuleRequest.ts +6 -0
- package/src/models/UpdateNormalizationRuleRequest.ts +14 -0
- package/src/models/UpdateNormalizationRuleShrinkRequest.ts +14 -0
- package/src/models/UpdateNormalizationSchemaRequest.ts +227 -0
- package/src/models/UpdateNormalizationSchemaResponse.ts +40 -0
- package/src/models/UpdateNormalizationSchemaResponseBody.ts +31 -0
- package/src/models/ValidateNormalizationRuleRequest.ts +42 -0
- package/src/models/ValidateNormalizationRuleResponseBody.ts +45 -0
- package/src/models/model.ts +16 -0
package/dist/client.d.ts
CHANGED
|
@@ -128,6 +128,21 @@ export default class Client extends OpenApi {
|
|
|
128
128
|
* @returns CreateNormalizationRuleResponse
|
|
129
129
|
*/
|
|
130
130
|
createNormalizationRule(request: $_model.CreateNormalizationRuleRequest): Promise<$_model.CreateNormalizationRuleResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* 创建标准化结构
|
|
133
|
+
*
|
|
134
|
+
* @param request - CreateNormalizationSchemaRequest
|
|
135
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
136
|
+
* @returns CreateNormalizationSchemaResponse
|
|
137
|
+
*/
|
|
138
|
+
createNormalizationSchemaWithOptions(request: $_model.CreateNormalizationSchemaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateNormalizationSchemaResponse>;
|
|
139
|
+
/**
|
|
140
|
+
* 创建标准化结构
|
|
141
|
+
*
|
|
142
|
+
* @param request - CreateNormalizationSchemaRequest
|
|
143
|
+
* @returns CreateNormalizationSchemaResponse
|
|
144
|
+
*/
|
|
145
|
+
createNormalizationSchema(request: $_model.CreateNormalizationSchemaRequest): Promise<$_model.CreateNormalizationSchemaResponse>;
|
|
131
146
|
/**
|
|
132
147
|
* 创建产品
|
|
133
148
|
*
|
|
@@ -833,6 +848,21 @@ export default class Client extends OpenApi {
|
|
|
833
848
|
* @returns ListVendorsResponse
|
|
834
849
|
*/
|
|
835
850
|
listVendors(request: $_model.ListVendorsRequest): Promise<$_model.ListVendorsResponse>;
|
|
851
|
+
/**
|
|
852
|
+
* 刷新数据源
|
|
853
|
+
*
|
|
854
|
+
* @param request - RefreshDataSourceRequest
|
|
855
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
856
|
+
* @returns RefreshDataSourceResponse
|
|
857
|
+
*/
|
|
858
|
+
refreshDataSourceWithOptions(request: $_model.RefreshDataSourceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RefreshDataSourceResponse>;
|
|
859
|
+
/**
|
|
860
|
+
* 刷新数据源
|
|
861
|
+
*
|
|
862
|
+
* @param request - RefreshDataSourceRequest
|
|
863
|
+
* @returns RefreshDataSourceResponse
|
|
864
|
+
*/
|
|
865
|
+
refreshDataSource(request: $_model.RefreshDataSourceRequest): Promise<$_model.RefreshDataSourceResponse>;
|
|
836
866
|
/**
|
|
837
867
|
* 数据存储的清空操作,该动作会删除已有的数据,重新初始化物理存储。
|
|
838
868
|
*
|
|
@@ -1043,6 +1073,21 @@ export default class Client extends OpenApi {
|
|
|
1043
1073
|
* @returns UpdateNormalizationRuleResponse
|
|
1044
1074
|
*/
|
|
1045
1075
|
updateNormalizationRule(request: $_model.UpdateNormalizationRuleRequest): Promise<$_model.UpdateNormalizationRuleResponse>;
|
|
1076
|
+
/**
|
|
1077
|
+
* 更新标准化结构
|
|
1078
|
+
*
|
|
1079
|
+
* @param request - UpdateNormalizationSchemaRequest
|
|
1080
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1081
|
+
* @returns UpdateNormalizationSchemaResponse
|
|
1082
|
+
*/
|
|
1083
|
+
updateNormalizationSchemaWithOptions(request: $_model.UpdateNormalizationSchemaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateNormalizationSchemaResponse>;
|
|
1084
|
+
/**
|
|
1085
|
+
* 更新标准化结构
|
|
1086
|
+
*
|
|
1087
|
+
* @param request - UpdateNormalizationSchemaRequest
|
|
1088
|
+
* @returns UpdateNormalizationSchemaResponse
|
|
1089
|
+
*/
|
|
1090
|
+
updateNormalizationSchema(request: $_model.UpdateNormalizationSchemaRequest): Promise<$_model.UpdateNormalizationSchemaResponse>;
|
|
1046
1091
|
/**
|
|
1047
1092
|
* 更新产品品
|
|
1048
1093
|
*
|
package/dist/client.js
CHANGED
|
@@ -328,9 +328,6 @@ class Client extends openapi_core_1.default {
|
|
|
328
328
|
if (!$dara.isNull(request.roleFor)) {
|
|
329
329
|
body["RoleFor"] = request.roleFor;
|
|
330
330
|
}
|
|
331
|
-
if (!$dara.isNull(request.updateTime)) {
|
|
332
|
-
body["UpdateTime"] = request.updateTime;
|
|
333
|
-
}
|
|
334
331
|
body = Object.assign(Object.assign({}, body), openapi_core_2.OpenApiUtil.query(bodyFlat));
|
|
335
332
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
336
333
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
@@ -371,9 +368,15 @@ class Client extends openapi_core_1.default {
|
|
|
371
368
|
if (!$dara.isNull(request.alertAttCk)) {
|
|
372
369
|
body["AlertAttCk"] = request.alertAttCk;
|
|
373
370
|
}
|
|
371
|
+
if (!$dara.isNull(request.alertDescription)) {
|
|
372
|
+
body["AlertDescription"] = request.alertDescription;
|
|
373
|
+
}
|
|
374
374
|
if (!$dara.isNull(request.alertLevel)) {
|
|
375
375
|
body["AlertLevel"] = request.alertLevel;
|
|
376
376
|
}
|
|
377
|
+
if (!$dara.isNull(request.alertName)) {
|
|
378
|
+
body["AlertName"] = request.alertName;
|
|
379
|
+
}
|
|
377
380
|
if (!$dara.isNull(request.alertSchemaId)) {
|
|
378
381
|
body["AlertSchemaId"] = request.alertSchemaId;
|
|
379
382
|
}
|
|
@@ -616,6 +619,9 @@ class Client extends openapi_core_1.default {
|
|
|
616
619
|
if (!$dara.isNull(request.extendContentPacked)) {
|
|
617
620
|
body["ExtendContentPacked"] = request.extendContentPacked;
|
|
618
621
|
}
|
|
622
|
+
if (!$dara.isNull(request.extendFieldStoreMode)) {
|
|
623
|
+
body["ExtendFieldStoreMode"] = request.extendFieldStoreMode;
|
|
624
|
+
}
|
|
619
625
|
if (!$dara.isNull(request.lang)) {
|
|
620
626
|
body["Lang"] = request.lang;
|
|
621
627
|
}
|
|
@@ -690,6 +696,72 @@ class Client extends openapi_core_1.default {
|
|
|
690
696
|
let runtime = new $dara.RuntimeOptions({});
|
|
691
697
|
return await this.createNormalizationRuleWithOptions(request, runtime);
|
|
692
698
|
}
|
|
699
|
+
/**
|
|
700
|
+
* 创建标准化结构
|
|
701
|
+
*
|
|
702
|
+
* @param request - CreateNormalizationSchemaRequest
|
|
703
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
704
|
+
* @returns CreateNormalizationSchemaResponse
|
|
705
|
+
*/
|
|
706
|
+
async createNormalizationSchemaWithOptions(request, runtime) {
|
|
707
|
+
request.validate();
|
|
708
|
+
let body = {};
|
|
709
|
+
if (!$dara.isNull(request.lang)) {
|
|
710
|
+
body["Lang"] = request.lang;
|
|
711
|
+
}
|
|
712
|
+
if (!$dara.isNull(request.normalizationCategoryId)) {
|
|
713
|
+
body["NormalizationCategoryId"] = request.normalizationCategoryId;
|
|
714
|
+
}
|
|
715
|
+
if (!$dara.isNull(request.normalizationFields)) {
|
|
716
|
+
body["NormalizationFields"] = request.normalizationFields;
|
|
717
|
+
}
|
|
718
|
+
if (!$dara.isNull(request.normalizationSchemaDescription)) {
|
|
719
|
+
body["NormalizationSchemaDescription"] = request.normalizationSchemaDescription;
|
|
720
|
+
}
|
|
721
|
+
if (!$dara.isNull(request.normalizationSchemaId)) {
|
|
722
|
+
body["NormalizationSchemaId"] = request.normalizationSchemaId;
|
|
723
|
+
}
|
|
724
|
+
if (!$dara.isNull(request.normalizationSchemaName)) {
|
|
725
|
+
body["NormalizationSchemaName"] = request.normalizationSchemaName;
|
|
726
|
+
}
|
|
727
|
+
if (!$dara.isNull(request.normalizationSchemaType)) {
|
|
728
|
+
body["NormalizationSchemaType"] = request.normalizationSchemaType;
|
|
729
|
+
}
|
|
730
|
+
if (!$dara.isNull(request.regionId)) {
|
|
731
|
+
body["RegionId"] = request.regionId;
|
|
732
|
+
}
|
|
733
|
+
if (!$dara.isNull(request.roleFor)) {
|
|
734
|
+
body["RoleFor"] = request.roleFor;
|
|
735
|
+
}
|
|
736
|
+
if (!$dara.isNull(request.targetLogStore)) {
|
|
737
|
+
body["TargetLogStore"] = request.targetLogStore;
|
|
738
|
+
}
|
|
739
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
740
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
741
|
+
});
|
|
742
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
743
|
+
action: "CreateNormalizationSchema",
|
|
744
|
+
version: "2024-12-12",
|
|
745
|
+
protocol: "HTTPS",
|
|
746
|
+
pathname: "/",
|
|
747
|
+
method: "POST",
|
|
748
|
+
authType: "AK",
|
|
749
|
+
style: "RPC",
|
|
750
|
+
reqBodyType: "formData",
|
|
751
|
+
bodyType: "json",
|
|
752
|
+
});
|
|
753
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateNormalizationSchemaResponse({}));
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* 创建标准化结构
|
|
757
|
+
*
|
|
758
|
+
* @param request - CreateNormalizationSchemaRequest
|
|
759
|
+
* @returns CreateNormalizationSchemaResponse
|
|
760
|
+
*/
|
|
761
|
+
async createNormalizationSchema(request) {
|
|
762
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
763
|
+
return await this.createNormalizationSchemaWithOptions(request, runtime);
|
|
764
|
+
}
|
|
693
765
|
/**
|
|
694
766
|
* 创建产品
|
|
695
767
|
*
|
|
@@ -2567,6 +2639,9 @@ class Client extends openapi_core_1.default {
|
|
|
2567
2639
|
if (!$dara.isNull(request.orderFieldName)) {
|
|
2568
2640
|
body["OrderFieldName"] = request.orderFieldName;
|
|
2569
2641
|
}
|
|
2642
|
+
if (!$dara.isNull(request.owners)) {
|
|
2643
|
+
body["Owners"] = request.owners;
|
|
2644
|
+
}
|
|
2570
2645
|
if (!$dara.isNull(request.pageNumber)) {
|
|
2571
2646
|
body["PageNumber"] = request.pageNumber;
|
|
2572
2647
|
}
|
|
@@ -3402,6 +3477,54 @@ class Client extends openapi_core_1.default {
|
|
|
3402
3477
|
let runtime = new $dara.RuntimeOptions({});
|
|
3403
3478
|
return await this.listVendorsWithOptions(request, runtime);
|
|
3404
3479
|
}
|
|
3480
|
+
/**
|
|
3481
|
+
* 刷新数据源
|
|
3482
|
+
*
|
|
3483
|
+
* @param request - RefreshDataSourceRequest
|
|
3484
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3485
|
+
* @returns RefreshDataSourceResponse
|
|
3486
|
+
*/
|
|
3487
|
+
async refreshDataSourceWithOptions(request, runtime) {
|
|
3488
|
+
request.validate();
|
|
3489
|
+
let body = {};
|
|
3490
|
+
if (!$dara.isNull(request.dataSourceId)) {
|
|
3491
|
+
body["DataSourceId"] = request.dataSourceId;
|
|
3492
|
+
}
|
|
3493
|
+
if (!$dara.isNull(request.lang)) {
|
|
3494
|
+
body["Lang"] = request.lang;
|
|
3495
|
+
}
|
|
3496
|
+
if (!$dara.isNull(request.regionId)) {
|
|
3497
|
+
body["RegionId"] = request.regionId;
|
|
3498
|
+
}
|
|
3499
|
+
if (!$dara.isNull(request.roleFor)) {
|
|
3500
|
+
body["RoleFor"] = request.roleFor;
|
|
3501
|
+
}
|
|
3502
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3503
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
3504
|
+
});
|
|
3505
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3506
|
+
action: "RefreshDataSource",
|
|
3507
|
+
version: "2024-12-12",
|
|
3508
|
+
protocol: "HTTPS",
|
|
3509
|
+
pathname: "/",
|
|
3510
|
+
method: "POST",
|
|
3511
|
+
authType: "AK",
|
|
3512
|
+
style: "RPC",
|
|
3513
|
+
reqBodyType: "formData",
|
|
3514
|
+
bodyType: "json",
|
|
3515
|
+
});
|
|
3516
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RefreshDataSourceResponse({}));
|
|
3517
|
+
}
|
|
3518
|
+
/**
|
|
3519
|
+
* 刷新数据源
|
|
3520
|
+
*
|
|
3521
|
+
* @param request - RefreshDataSourceRequest
|
|
3522
|
+
* @returns RefreshDataSourceResponse
|
|
3523
|
+
*/
|
|
3524
|
+
async refreshDataSource(request) {
|
|
3525
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3526
|
+
return await this.refreshDataSourceWithOptions(request, runtime);
|
|
3527
|
+
}
|
|
3405
3528
|
/**
|
|
3406
3529
|
* 数据存储的清空操作,该动作会删除已有的数据,重新初始化物理存储。
|
|
3407
3530
|
*
|
|
@@ -4124,9 +4247,15 @@ class Client extends openapi_core_1.default {
|
|
|
4124
4247
|
if (!$dara.isNull(request.alertAttCk)) {
|
|
4125
4248
|
body["AlertAttCk"] = request.alertAttCk;
|
|
4126
4249
|
}
|
|
4250
|
+
if (!$dara.isNull(request.alertDescription)) {
|
|
4251
|
+
body["AlertDescription"] = request.alertDescription;
|
|
4252
|
+
}
|
|
4127
4253
|
if (!$dara.isNull(request.alertLevel)) {
|
|
4128
4254
|
body["AlertLevel"] = request.alertLevel;
|
|
4129
4255
|
}
|
|
4256
|
+
if (!$dara.isNull(request.alertName)) {
|
|
4257
|
+
body["AlertName"] = request.alertName;
|
|
4258
|
+
}
|
|
4130
4259
|
if (!$dara.isNull(request.alertSchemaId)) {
|
|
4131
4260
|
body["AlertSchemaId"] = request.alertSchemaId;
|
|
4132
4261
|
}
|
|
@@ -4255,9 +4384,15 @@ class Client extends openapi_core_1.default {
|
|
|
4255
4384
|
if (!$dara.isNull(request.extendContentPacked)) {
|
|
4256
4385
|
body["ExtendContentPacked"] = request.extendContentPacked;
|
|
4257
4386
|
}
|
|
4387
|
+
if (!$dara.isNull(request.extendFieldStoreMode)) {
|
|
4388
|
+
body["ExtendFieldStoreMode"] = request.extendFieldStoreMode;
|
|
4389
|
+
}
|
|
4258
4390
|
if (!$dara.isNull(request.lang)) {
|
|
4259
4391
|
body["Lang"] = request.lang;
|
|
4260
4392
|
}
|
|
4393
|
+
if (!$dara.isNull(request.normalizationCategoryId)) {
|
|
4394
|
+
body["NormalizationCategoryId"] = request.normalizationCategoryId;
|
|
4395
|
+
}
|
|
4261
4396
|
if (!$dara.isNull(request.normalizationRuleDescription)) {
|
|
4262
4397
|
body["NormalizationRuleDescription"] = request.normalizationRuleDescription;
|
|
4263
4398
|
}
|
|
@@ -4326,6 +4461,66 @@ class Client extends openapi_core_1.default {
|
|
|
4326
4461
|
let runtime = new $dara.RuntimeOptions({});
|
|
4327
4462
|
return await this.updateNormalizationRuleWithOptions(request, runtime);
|
|
4328
4463
|
}
|
|
4464
|
+
/**
|
|
4465
|
+
* 更新标准化结构
|
|
4466
|
+
*
|
|
4467
|
+
* @param request - UpdateNormalizationSchemaRequest
|
|
4468
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4469
|
+
* @returns UpdateNormalizationSchemaResponse
|
|
4470
|
+
*/
|
|
4471
|
+
async updateNormalizationSchemaWithOptions(request, runtime) {
|
|
4472
|
+
request.validate();
|
|
4473
|
+
let body = {};
|
|
4474
|
+
if (!$dara.isNull(request.lang)) {
|
|
4475
|
+
body["Lang"] = request.lang;
|
|
4476
|
+
}
|
|
4477
|
+
if (!$dara.isNull(request.normalizationFields)) {
|
|
4478
|
+
body["NormalizationFields"] = request.normalizationFields;
|
|
4479
|
+
}
|
|
4480
|
+
if (!$dara.isNull(request.normalizationSchemaDescription)) {
|
|
4481
|
+
body["NormalizationSchemaDescription"] = request.normalizationSchemaDescription;
|
|
4482
|
+
}
|
|
4483
|
+
if (!$dara.isNull(request.normalizationSchemaId)) {
|
|
4484
|
+
body["NormalizationSchemaId"] = request.normalizationSchemaId;
|
|
4485
|
+
}
|
|
4486
|
+
if (!$dara.isNull(request.normalizationSchemaName)) {
|
|
4487
|
+
body["NormalizationSchemaName"] = request.normalizationSchemaName;
|
|
4488
|
+
}
|
|
4489
|
+
if (!$dara.isNull(request.normalizationSchemaType)) {
|
|
4490
|
+
body["NormalizationSchemaType"] = request.normalizationSchemaType;
|
|
4491
|
+
}
|
|
4492
|
+
if (!$dara.isNull(request.regionId)) {
|
|
4493
|
+
body["RegionId"] = request.regionId;
|
|
4494
|
+
}
|
|
4495
|
+
if (!$dara.isNull(request.roleFor)) {
|
|
4496
|
+
body["RoleFor"] = request.roleFor;
|
|
4497
|
+
}
|
|
4498
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4499
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
4500
|
+
});
|
|
4501
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4502
|
+
action: "UpdateNormalizationSchema",
|
|
4503
|
+
version: "2024-12-12",
|
|
4504
|
+
protocol: "HTTPS",
|
|
4505
|
+
pathname: "/",
|
|
4506
|
+
method: "POST",
|
|
4507
|
+
authType: "AK",
|
|
4508
|
+
style: "RPC",
|
|
4509
|
+
reqBodyType: "formData",
|
|
4510
|
+
bodyType: "json",
|
|
4511
|
+
});
|
|
4512
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateNormalizationSchemaResponse({}));
|
|
4513
|
+
}
|
|
4514
|
+
/**
|
|
4515
|
+
* 更新标准化结构
|
|
4516
|
+
*
|
|
4517
|
+
* @param request - UpdateNormalizationSchemaRequest
|
|
4518
|
+
* @returns UpdateNormalizationSchemaResponse
|
|
4519
|
+
*/
|
|
4520
|
+
async updateNormalizationSchema(request) {
|
|
4521
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4522
|
+
return await this.updateNormalizationSchemaWithOptions(request, runtime);
|
|
4523
|
+
}
|
|
4329
4524
|
/**
|
|
4330
4525
|
* 更新产品品
|
|
4331
4526
|
*
|
|
@@ -4501,21 +4696,39 @@ class Client extends openapi_core_1.default {
|
|
|
4501
4696
|
if (!$dara.isNull(request.data)) {
|
|
4502
4697
|
body["Data"] = request.data;
|
|
4503
4698
|
}
|
|
4699
|
+
if (!$dara.isNull(request.extendFieldStoreMode)) {
|
|
4700
|
+
body["ExtendFieldStoreMode"] = request.extendFieldStoreMode;
|
|
4701
|
+
}
|
|
4504
4702
|
if (!$dara.isNull(request.lang)) {
|
|
4505
4703
|
body["Lang"] = request.lang;
|
|
4506
4704
|
}
|
|
4705
|
+
if (!$dara.isNull(request.logSample)) {
|
|
4706
|
+
body["LogSample"] = request.logSample;
|
|
4707
|
+
}
|
|
4507
4708
|
if (!$dara.isNull(request.normalizationCategoryId)) {
|
|
4508
4709
|
body["NormalizationCategoryId"] = request.normalizationCategoryId;
|
|
4509
4710
|
}
|
|
4711
|
+
if (!$dara.isNull(request.normalizationRuleExpression)) {
|
|
4712
|
+
body["NormalizationRuleExpression"] = request.normalizationRuleExpression;
|
|
4713
|
+
}
|
|
4714
|
+
if (!$dara.isNull(request.normalizationRuleMode)) {
|
|
4715
|
+
body["NormalizationRuleMode"] = request.normalizationRuleMode;
|
|
4716
|
+
}
|
|
4510
4717
|
if (!$dara.isNull(request.normalizationSchemaId)) {
|
|
4511
4718
|
body["NormalizationSchemaId"] = request.normalizationSchemaId;
|
|
4512
4719
|
}
|
|
4720
|
+
if (!$dara.isNull(request.productId)) {
|
|
4721
|
+
body["ProductId"] = request.productId;
|
|
4722
|
+
}
|
|
4513
4723
|
if (!$dara.isNull(request.regionId)) {
|
|
4514
4724
|
body["RegionId"] = request.regionId;
|
|
4515
4725
|
}
|
|
4516
4726
|
if (!$dara.isNull(request.roleFor)) {
|
|
4517
4727
|
body["RoleFor"] = request.roleFor;
|
|
4518
4728
|
}
|
|
4729
|
+
if (!$dara.isNull(request.vendorId)) {
|
|
4730
|
+
body["VendorId"] = request.vendorId;
|
|
4731
|
+
}
|
|
4519
4732
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4520
4733
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
4521
4734
|
});
|