@alicloud/cloud-siem20220616 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cloud-siem20220616",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -696,6 +696,81 @@ export class DescribeAggregateFunctionResponse extends $tea.Model {
696
696
  }
697
697
  }
698
698
 
699
+ export class DescribeAlertSceneRequest extends $tea.Model {
700
+ regionId?: string;
701
+ static names(): { [key: string]: string } {
702
+ return {
703
+ regionId: 'RegionId',
704
+ };
705
+ }
706
+
707
+ static types(): { [key: string]: any } {
708
+ return {
709
+ regionId: 'string',
710
+ };
711
+ }
712
+
713
+ constructor(map?: { [key: string]: any }) {
714
+ super(map);
715
+ }
716
+ }
717
+
718
+ export class DescribeAlertSceneResponseBody extends $tea.Model {
719
+ code?: number;
720
+ data?: DescribeAlertSceneResponseBodyData[];
721
+ message?: string;
722
+ requestId?: string;
723
+ success?: boolean;
724
+ static names(): { [key: string]: string } {
725
+ return {
726
+ code: 'Code',
727
+ data: 'Data',
728
+ message: 'Message',
729
+ requestId: 'RequestId',
730
+ success: 'Success',
731
+ };
732
+ }
733
+
734
+ static types(): { [key: string]: any } {
735
+ return {
736
+ code: 'number',
737
+ data: { 'type': 'array', 'itemType': DescribeAlertSceneResponseBodyData },
738
+ message: 'string',
739
+ requestId: 'string',
740
+ success: 'boolean',
741
+ };
742
+ }
743
+
744
+ constructor(map?: { [key: string]: any }) {
745
+ super(map);
746
+ }
747
+ }
748
+
749
+ export class DescribeAlertSceneResponse extends $tea.Model {
750
+ headers: { [key: string]: string };
751
+ statusCode: number;
752
+ body: DescribeAlertSceneResponseBody;
753
+ static names(): { [key: string]: string } {
754
+ return {
755
+ headers: 'headers',
756
+ statusCode: 'statusCode',
757
+ body: 'body',
758
+ };
759
+ }
760
+
761
+ static types(): { [key: string]: any } {
762
+ return {
763
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
764
+ statusCode: 'number',
765
+ body: DescribeAlertSceneResponseBody,
766
+ };
767
+ }
768
+
769
+ constructor(map?: { [key: string]: any }) {
770
+ super(map);
771
+ }
772
+ }
773
+
699
774
  export class DescribeAlertSceneByEventRequest extends $tea.Model {
700
775
  incidentUuid?: string;
701
776
  regionId?: string;
@@ -3495,6 +3570,96 @@ export class DescribeWafScopeResponse extends $tea.Model {
3495
3570
  }
3496
3571
  }
3497
3572
 
3573
+ export class DescribeWhiteRuleListRequest extends $tea.Model {
3574
+ alertName?: string;
3575
+ alertType?: string;
3576
+ currentPage?: number;
3577
+ incidentUuid?: string;
3578
+ pageSize?: number;
3579
+ regionId?: string;
3580
+ static names(): { [key: string]: string } {
3581
+ return {
3582
+ alertName: 'AlertName',
3583
+ alertType: 'AlertType',
3584
+ currentPage: 'CurrentPage',
3585
+ incidentUuid: 'IncidentUuid',
3586
+ pageSize: 'PageSize',
3587
+ regionId: 'RegionId',
3588
+ };
3589
+ }
3590
+
3591
+ static types(): { [key: string]: any } {
3592
+ return {
3593
+ alertName: 'string',
3594
+ alertType: 'string',
3595
+ currentPage: 'number',
3596
+ incidentUuid: 'string',
3597
+ pageSize: 'number',
3598
+ regionId: 'string',
3599
+ };
3600
+ }
3601
+
3602
+ constructor(map?: { [key: string]: any }) {
3603
+ super(map);
3604
+ }
3605
+ }
3606
+
3607
+ export class DescribeWhiteRuleListResponseBody extends $tea.Model {
3608
+ code?: number;
3609
+ data?: DescribeWhiteRuleListResponseBodyData;
3610
+ message?: string;
3611
+ requestId?: string;
3612
+ success?: boolean;
3613
+ static names(): { [key: string]: string } {
3614
+ return {
3615
+ code: 'Code',
3616
+ data: 'Data',
3617
+ message: 'Message',
3618
+ requestId: 'RequestId',
3619
+ success: 'Success',
3620
+ };
3621
+ }
3622
+
3623
+ static types(): { [key: string]: any } {
3624
+ return {
3625
+ code: 'number',
3626
+ data: DescribeWhiteRuleListResponseBodyData,
3627
+ message: 'string',
3628
+ requestId: 'string',
3629
+ success: 'boolean',
3630
+ };
3631
+ }
3632
+
3633
+ constructor(map?: { [key: string]: any }) {
3634
+ super(map);
3635
+ }
3636
+ }
3637
+
3638
+ export class DescribeWhiteRuleListResponse extends $tea.Model {
3639
+ headers: { [key: string]: string };
3640
+ statusCode: number;
3641
+ body: DescribeWhiteRuleListResponseBody;
3642
+ static names(): { [key: string]: string } {
3643
+ return {
3644
+ headers: 'headers',
3645
+ statusCode: 'statusCode',
3646
+ body: 'body',
3647
+ };
3648
+ }
3649
+
3650
+ static types(): { [key: string]: any } {
3651
+ return {
3652
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3653
+ statusCode: 'number',
3654
+ body: DescribeWhiteRuleListResponseBody,
3655
+ };
3656
+ }
3657
+
3658
+ constructor(map?: { [key: string]: any }) {
3659
+ super(map);
3660
+ }
3661
+ }
3662
+
3498
3663
  export class DoQuickFieldRequest extends $tea.Model {
3499
3664
  from?: number;
3500
3665
  index?: string;
@@ -6406,6 +6571,71 @@ export class DescribeAggregateFunctionResponseBodyData extends $tea.Model {
6406
6571
  }
6407
6572
  }
6408
6573
 
6574
+ export class DescribeAlertSceneResponseBodyDataTargets extends $tea.Model {
6575
+ name?: string;
6576
+ type?: string;
6577
+ value?: string;
6578
+ values?: string[];
6579
+ static names(): { [key: string]: string } {
6580
+ return {
6581
+ name: 'Name',
6582
+ type: 'Type',
6583
+ value: 'Value',
6584
+ values: 'Values',
6585
+ };
6586
+ }
6587
+
6588
+ static types(): { [key: string]: any } {
6589
+ return {
6590
+ name: 'string',
6591
+ type: 'string',
6592
+ value: 'string',
6593
+ values: { 'type': 'array', 'itemType': 'string' },
6594
+ };
6595
+ }
6596
+
6597
+ constructor(map?: { [key: string]: any }) {
6598
+ super(map);
6599
+ }
6600
+ }
6601
+
6602
+ export class DescribeAlertSceneResponseBodyData extends $tea.Model {
6603
+ alertName?: string;
6604
+ alertNameId?: string;
6605
+ alertTile?: string;
6606
+ alertTileId?: string;
6607
+ alertType?: string;
6608
+ alertTypeId?: string;
6609
+ targets?: DescribeAlertSceneResponseBodyDataTargets[];
6610
+ static names(): { [key: string]: string } {
6611
+ return {
6612
+ alertName: 'AlertName',
6613
+ alertNameId: 'AlertNameId',
6614
+ alertTile: 'AlertTile',
6615
+ alertTileId: 'AlertTileId',
6616
+ alertType: 'AlertType',
6617
+ alertTypeId: 'AlertTypeId',
6618
+ targets: 'Targets',
6619
+ };
6620
+ }
6621
+
6622
+ static types(): { [key: string]: any } {
6623
+ return {
6624
+ alertName: 'string',
6625
+ alertNameId: 'string',
6626
+ alertTile: 'string',
6627
+ alertTileId: 'string',
6628
+ alertType: 'string',
6629
+ alertTypeId: 'string',
6630
+ targets: { 'type': 'array', 'itemType': DescribeAlertSceneResponseBodyDataTargets },
6631
+ };
6632
+ }
6633
+
6634
+ constructor(map?: { [key: string]: any }) {
6635
+ super(map);
6636
+ }
6637
+ }
6638
+
6409
6639
  export class DescribeAlertSceneByEventResponseBodyDataTargets extends $tea.Model {
6410
6640
  name?: string;
6411
6641
  type?: string;
@@ -8416,6 +8646,223 @@ export class DescribeWafScopeResponseBodyData extends $tea.Model {
8416
8646
  }
8417
8647
  }
8418
8648
 
8649
+ export class DescribeWhiteRuleListResponseBodyDataPageInfo extends $tea.Model {
8650
+ currentPage?: number;
8651
+ pageSize?: number;
8652
+ totalCount?: number;
8653
+ static names(): { [key: string]: string } {
8654
+ return {
8655
+ currentPage: 'CurrentPage',
8656
+ pageSize: 'PageSize',
8657
+ totalCount: 'TotalCount',
8658
+ };
8659
+ }
8660
+
8661
+ static types(): { [key: string]: any } {
8662
+ return {
8663
+ currentPage: 'number',
8664
+ pageSize: 'number',
8665
+ totalCount: 'number',
8666
+ };
8667
+ }
8668
+
8669
+ constructor(map?: { [key: string]: any }) {
8670
+ super(map);
8671
+ }
8672
+ }
8673
+
8674
+ export class DescribeWhiteRuleListResponseBodyDataResponseDataExpressionConditionsLeft extends $tea.Model {
8675
+ isVar?: boolean;
8676
+ modifier?: string;
8677
+ modifierParam?: { [key: string]: any };
8678
+ type?: string;
8679
+ value?: string;
8680
+ static names(): { [key: string]: string } {
8681
+ return {
8682
+ isVar: 'IsVar',
8683
+ modifier: 'Modifier',
8684
+ modifierParam: 'ModifierParam',
8685
+ type: 'Type',
8686
+ value: 'Value',
8687
+ };
8688
+ }
8689
+
8690
+ static types(): { [key: string]: any } {
8691
+ return {
8692
+ isVar: 'boolean',
8693
+ modifier: 'string',
8694
+ modifierParam: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
8695
+ type: 'string',
8696
+ value: 'string',
8697
+ };
8698
+ }
8699
+
8700
+ constructor(map?: { [key: string]: any }) {
8701
+ super(map);
8702
+ }
8703
+ }
8704
+
8705
+ export class DescribeWhiteRuleListResponseBodyDataResponseDataExpressionConditionsRight extends $tea.Model {
8706
+ isVar?: boolean;
8707
+ modifier?: string;
8708
+ modifierParam?: { [key: string]: any };
8709
+ type?: string;
8710
+ value?: string;
8711
+ static names(): { [key: string]: string } {
8712
+ return {
8713
+ isVar: 'IsVar',
8714
+ modifier: 'Modifier',
8715
+ modifierParam: 'ModifierParam',
8716
+ type: 'Type',
8717
+ value: 'Value',
8718
+ };
8719
+ }
8720
+
8721
+ static types(): { [key: string]: any } {
8722
+ return {
8723
+ isVar: 'boolean',
8724
+ modifier: 'string',
8725
+ modifierParam: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
8726
+ type: 'string',
8727
+ value: 'string',
8728
+ };
8729
+ }
8730
+
8731
+ constructor(map?: { [key: string]: any }) {
8732
+ super(map);
8733
+ }
8734
+ }
8735
+
8736
+ export class DescribeWhiteRuleListResponseBodyDataResponseDataExpressionConditions extends $tea.Model {
8737
+ isNot?: boolean;
8738
+ itemId?: number;
8739
+ left?: DescribeWhiteRuleListResponseBodyDataResponseDataExpressionConditionsLeft;
8740
+ operator?: string;
8741
+ right?: DescribeWhiteRuleListResponseBodyDataResponseDataExpressionConditionsRight;
8742
+ static names(): { [key: string]: string } {
8743
+ return {
8744
+ isNot: 'IsNot',
8745
+ itemId: 'ItemId',
8746
+ left: 'Left',
8747
+ operator: 'Operator',
8748
+ right: 'Right',
8749
+ };
8750
+ }
8751
+
8752
+ static types(): { [key: string]: any } {
8753
+ return {
8754
+ isNot: 'boolean',
8755
+ itemId: 'number',
8756
+ left: DescribeWhiteRuleListResponseBodyDataResponseDataExpressionConditionsLeft,
8757
+ operator: 'string',
8758
+ right: DescribeWhiteRuleListResponseBodyDataResponseDataExpressionConditionsRight,
8759
+ };
8760
+ }
8761
+
8762
+ constructor(map?: { [key: string]: any }) {
8763
+ super(map);
8764
+ }
8765
+ }
8766
+
8767
+ export class DescribeWhiteRuleListResponseBodyDataResponseDataExpression extends $tea.Model {
8768
+ conditions?: DescribeWhiteRuleListResponseBodyDataResponseDataExpressionConditions[];
8769
+ logic?: string;
8770
+ static names(): { [key: string]: string } {
8771
+ return {
8772
+ conditions: 'Conditions',
8773
+ logic: 'Logic',
8774
+ };
8775
+ }
8776
+
8777
+ static types(): { [key: string]: any } {
8778
+ return {
8779
+ conditions: { 'type': 'array', 'itemType': DescribeWhiteRuleListResponseBodyDataResponseDataExpressionConditions },
8780
+ logic: 'string',
8781
+ };
8782
+ }
8783
+
8784
+ constructor(map?: { [key: string]: any }) {
8785
+ super(map);
8786
+ }
8787
+ }
8788
+
8789
+ export class DescribeWhiteRuleListResponseBodyDataResponseData extends $tea.Model {
8790
+ alertName?: string;
8791
+ alertNameId?: string;
8792
+ alertType?: string;
8793
+ alertTypeId?: string;
8794
+ alertUuid?: string;
8795
+ aliuid?: number;
8796
+ expression?: DescribeWhiteRuleListResponseBodyDataResponseDataExpression;
8797
+ gmtCreate?: string;
8798
+ gmtModified?: string;
8799
+ id?: number;
8800
+ incidentUuid?: string;
8801
+ status?: number;
8802
+ subAliuid?: number;
8803
+ static names(): { [key: string]: string } {
8804
+ return {
8805
+ alertName: 'AlertName',
8806
+ alertNameId: 'AlertNameId',
8807
+ alertType: 'AlertType',
8808
+ alertTypeId: 'AlertTypeId',
8809
+ alertUuid: 'AlertUuid',
8810
+ aliuid: 'Aliuid',
8811
+ expression: 'Expression',
8812
+ gmtCreate: 'GmtCreate',
8813
+ gmtModified: 'GmtModified',
8814
+ id: 'Id',
8815
+ incidentUuid: 'IncidentUuid',
8816
+ status: 'Status',
8817
+ subAliuid: 'SubAliuid',
8818
+ };
8819
+ }
8820
+
8821
+ static types(): { [key: string]: any } {
8822
+ return {
8823
+ alertName: 'string',
8824
+ alertNameId: 'string',
8825
+ alertType: 'string',
8826
+ alertTypeId: 'string',
8827
+ alertUuid: 'string',
8828
+ aliuid: 'number',
8829
+ expression: DescribeWhiteRuleListResponseBodyDataResponseDataExpression,
8830
+ gmtCreate: 'string',
8831
+ gmtModified: 'string',
8832
+ id: 'number',
8833
+ incidentUuid: 'string',
8834
+ status: 'number',
8835
+ subAliuid: 'number',
8836
+ };
8837
+ }
8838
+
8839
+ constructor(map?: { [key: string]: any }) {
8840
+ super(map);
8841
+ }
8842
+ }
8843
+
8844
+ export class DescribeWhiteRuleListResponseBodyData extends $tea.Model {
8845
+ pageInfo?: DescribeWhiteRuleListResponseBodyDataPageInfo;
8846
+ responseData?: DescribeWhiteRuleListResponseBodyDataResponseData[];
8847
+ static names(): { [key: string]: string } {
8848
+ return {
8849
+ pageInfo: 'PageInfo',
8850
+ responseData: 'ResponseData',
8851
+ };
8852
+ }
8853
+
8854
+ static types(): { [key: string]: any } {
8855
+ return {
8856
+ pageInfo: DescribeWhiteRuleListResponseBodyDataPageInfo,
8857
+ responseData: { 'type': 'array', 'itemType': DescribeWhiteRuleListResponseBodyDataResponseData },
8858
+ };
8859
+ }
8860
+
8861
+ constructor(map?: { [key: string]: any }) {
8862
+ super(map);
8863
+ }
8864
+ }
8865
+
8419
8866
  export class DoQuickFieldResponseBodyData extends $tea.Model {
8420
8867
  aggQueryd?: string;
8421
8868
  completeOrNot?: boolean;
@@ -9788,6 +10235,35 @@ export default class Client extends OpenApi {
9788
10235
  return await this.describeAggregateFunctionWithOptions(request, runtime);
9789
10236
  }
9790
10237
 
10238
+ async describeAlertSceneWithOptions(request: DescribeAlertSceneRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAlertSceneResponse> {
10239
+ Util.validateModel(request);
10240
+ let body : {[key: string ]: any} = { };
10241
+ if (!Util.isUnset(request.regionId)) {
10242
+ body["RegionId"] = request.regionId;
10243
+ }
10244
+
10245
+ let req = new $OpenApi.OpenApiRequest({
10246
+ body: OpenApiUtil.parseToMap(body),
10247
+ });
10248
+ let params = new $OpenApi.Params({
10249
+ action: "DescribeAlertScene",
10250
+ version: "2022-06-16",
10251
+ protocol: "HTTPS",
10252
+ pathname: "/",
10253
+ method: "POST",
10254
+ authType: "AK",
10255
+ style: "RPC",
10256
+ reqBodyType: "formData",
10257
+ bodyType: "json",
10258
+ });
10259
+ return $tea.cast<DescribeAlertSceneResponse>(await this.callApi(params, req, runtime), new DescribeAlertSceneResponse({}));
10260
+ }
10261
+
10262
+ async describeAlertScene(request: DescribeAlertSceneRequest): Promise<DescribeAlertSceneResponse> {
10263
+ let runtime = new $Util.RuntimeOptions({ });
10264
+ return await this.describeAlertSceneWithOptions(request, runtime);
10265
+ }
10266
+
9791
10267
  async describeAlertSceneByEventWithOptions(request: DescribeAlertSceneByEventRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAlertSceneByEventResponse> {
9792
10268
  Util.validateModel(request);
9793
10269
  let body : {[key: string ]: any} = { };
@@ -11078,6 +11554,55 @@ export default class Client extends OpenApi {
11078
11554
  return await this.describeWafScopeWithOptions(request, runtime);
11079
11555
  }
11080
11556
 
11557
+ async describeWhiteRuleListWithOptions(request: DescribeWhiteRuleListRequest, runtime: $Util.RuntimeOptions): Promise<DescribeWhiteRuleListResponse> {
11558
+ Util.validateModel(request);
11559
+ let body : {[key: string ]: any} = { };
11560
+ if (!Util.isUnset(request.alertName)) {
11561
+ body["AlertName"] = request.alertName;
11562
+ }
11563
+
11564
+ if (!Util.isUnset(request.alertType)) {
11565
+ body["AlertType"] = request.alertType;
11566
+ }
11567
+
11568
+ if (!Util.isUnset(request.currentPage)) {
11569
+ body["CurrentPage"] = request.currentPage;
11570
+ }
11571
+
11572
+ if (!Util.isUnset(request.incidentUuid)) {
11573
+ body["IncidentUuid"] = request.incidentUuid;
11574
+ }
11575
+
11576
+ if (!Util.isUnset(request.pageSize)) {
11577
+ body["PageSize"] = request.pageSize;
11578
+ }
11579
+
11580
+ if (!Util.isUnset(request.regionId)) {
11581
+ body["RegionId"] = request.regionId;
11582
+ }
11583
+
11584
+ let req = new $OpenApi.OpenApiRequest({
11585
+ body: OpenApiUtil.parseToMap(body),
11586
+ });
11587
+ let params = new $OpenApi.Params({
11588
+ action: "DescribeWhiteRuleList",
11589
+ version: "2022-06-16",
11590
+ protocol: "HTTPS",
11591
+ pathname: "/",
11592
+ method: "POST",
11593
+ authType: "AK",
11594
+ style: "RPC",
11595
+ reqBodyType: "formData",
11596
+ bodyType: "json",
11597
+ });
11598
+ return $tea.cast<DescribeWhiteRuleListResponse>(await this.callApi(params, req, runtime), new DescribeWhiteRuleListResponse({}));
11599
+ }
11600
+
11601
+ async describeWhiteRuleList(request: DescribeWhiteRuleListRequest): Promise<DescribeWhiteRuleListResponse> {
11602
+ let runtime = new $Util.RuntimeOptions({ });
11603
+ return await this.describeWhiteRuleListWithOptions(request, runtime);
11604
+ }
11605
+
11081
11606
  async doQuickFieldWithOptions(request: DoQuickFieldRequest, runtime: $Util.RuntimeOptions): Promise<DoQuickFieldResponse> {
11082
11607
  Util.validateModel(request);
11083
11608
  let body : {[key: string ]: any} = { };