google-apis-securitycenter_v1 0.70.0 → 0.71.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/securitycenter_v1/classes.rb +126 -1
- data/lib/google/apis/securitycenter_v1/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1/representations.rb +49 -0
- data/lib/google/apis/securitycenter_v1/service.rb +1312 -435
- metadata +3 -3
@@ -443,14 +443,13 @@ module Google
|
|
443
443
|
execute_or_queue_command(command, &block)
|
444
444
|
end
|
445
445
|
|
446
|
-
#
|
447
|
-
# parent can be either an organization, folder or project. The findings matched
|
448
|
-
# by the filter will be muted after the LRO is done.
|
446
|
+
# Validates the given Event Threat Detection custom module.
|
449
447
|
# @param [String] parent
|
450
|
-
# Required.
|
451
|
-
#
|
452
|
-
# ".
|
453
|
-
#
|
448
|
+
# Required. Resource name of the parent to validate the Custom Module under. Its
|
449
|
+
# format is: * "organizations/`organization`/eventThreatDetectionSettings". * "
|
450
|
+
# folders/`folder`/eventThreatDetectionSettings". * "projects/`project`/
|
451
|
+
# eventThreatDetectionSettings".
|
452
|
+
# @param [Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleRequest] validate_event_threat_detection_custom_module_request_object
|
454
453
|
# @param [String] fields
|
455
454
|
# Selector specifying which fields to include in a partial response.
|
456
455
|
# @param [String] quota_user
|
@@ -460,34 +459,72 @@ module Google
|
|
460
459
|
# Request-specific options
|
461
460
|
#
|
462
461
|
# @yield [result, err] Result & error if block supplied
|
463
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
462
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleResponse] parsed result object
|
464
463
|
# @yieldparam err [StandardError] error object if request failed
|
465
464
|
#
|
466
|
-
# @return [Google::Apis::SecuritycenterV1::
|
465
|
+
# @return [Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleResponse]
|
467
466
|
#
|
468
467
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
469
468
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
470
469
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
471
|
-
def
|
472
|
-
command = make_simple_command(:post, 'v1/{+parent}
|
473
|
-
command.request_representation = Google::Apis::SecuritycenterV1::
|
474
|
-
command.request_object =
|
475
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
476
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
470
|
+
def validate_folder_event_threat_detection_setting_custom_module(parent, validate_event_threat_detection_custom_module_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
471
|
+
command = make_simple_command(:post, 'v1/{+parent}:validateCustomModule', options)
|
472
|
+
command.request_representation = Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleRequest::Representation
|
473
|
+
command.request_object = validate_event_threat_detection_custom_module_request_object
|
474
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleResponse::Representation
|
475
|
+
command.response_class = Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleResponse
|
477
476
|
command.params['parent'] = parent unless parent.nil?
|
478
477
|
command.query['fields'] = fields unless fields.nil?
|
479
478
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
480
479
|
execute_or_queue_command(command, &block)
|
481
480
|
end
|
482
481
|
|
483
|
-
#
|
482
|
+
# Creates a resident Event Threat Detection custom module at the scope of the
|
483
|
+
# given Resource Manager parent, and also creates inherited custom modules for
|
484
|
+
# all descendants of the given parent. These modules are enabled by default.
|
485
|
+
# @param [String] parent
|
486
|
+
# Required. The new custom module's parent. Its format is: * "organizations/`
|
487
|
+
# organization`/eventThreatDetectionSettings". * "folders/`folder`/
|
488
|
+
# eventThreatDetectionSettings". * "projects/`project`/
|
489
|
+
# eventThreatDetectionSettings".
|
490
|
+
# @param [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule] event_threat_detection_custom_module_object
|
491
|
+
# @param [String] fields
|
492
|
+
# Selector specifying which fields to include in a partial response.
|
493
|
+
# @param [String] quota_user
|
494
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
495
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
496
|
+
# @param [Google::Apis::RequestOptions] options
|
497
|
+
# Request-specific options
|
498
|
+
#
|
499
|
+
# @yield [result, err] Result & error if block supplied
|
500
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule] parsed result object
|
501
|
+
# @yieldparam err [StandardError] error object if request failed
|
502
|
+
#
|
503
|
+
# @return [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule]
|
504
|
+
#
|
505
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
506
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
507
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
508
|
+
def create_folder_event_threat_detection_setting_custom_module(parent, event_threat_detection_custom_module_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
509
|
+
command = make_simple_command(:post, 'v1/{+parent}/customModules', options)
|
510
|
+
command.request_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
511
|
+
command.request_object = event_threat_detection_custom_module_object
|
512
|
+
command.response_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
513
|
+
command.response_class = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule
|
514
|
+
command.params['parent'] = parent unless parent.nil?
|
515
|
+
command.query['fields'] = fields unless fields.nil?
|
516
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
517
|
+
execute_or_queue_command(command, &block)
|
518
|
+
end
|
519
|
+
|
520
|
+
# Deletes the specified Event Threat Detection custom module and all of its
|
521
|
+
# descendants in the Resource Manager hierarchy. This method is only supported
|
522
|
+
# for resident custom modules.
|
484
523
|
# @param [String] name
|
485
|
-
# Required. Name of the
|
486
|
-
# organization`/
|
487
|
-
#
|
488
|
-
#
|
489
|
-
# muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
|
490
|
-
# config_id`.
|
524
|
+
# Required. Name of the custom module to delete. Its format is: * "organizations/
|
525
|
+
# `organization`/eventThreatDetectionSettings/customModules/`module`". * "
|
526
|
+
# folders/`folder`/eventThreatDetectionSettings/customModules/`module`". * "
|
527
|
+
# projects/`project`/eventThreatDetectionSettings/customModules/`module`".
|
491
528
|
# @param [String] fields
|
492
529
|
# Selector specifying which fields to include in a partial response.
|
493
530
|
# @param [String] quota_user
|
@@ -505,7 +542,7 @@ module Google
|
|
505
542
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
506
543
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
507
544
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
508
|
-
def
|
545
|
+
def delete_folder_event_threat_detection_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
509
546
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
510
547
|
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
511
548
|
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
@@ -515,14 +552,12 @@ module Google
|
|
515
552
|
execute_or_queue_command(command, &block)
|
516
553
|
end
|
517
554
|
|
518
|
-
# Gets
|
555
|
+
# Gets an Event Threat Detection custom module.
|
519
556
|
# @param [String] name
|
520
|
-
# Required. Name of the
|
521
|
-
# organization`/
|
522
|
-
#
|
523
|
-
#
|
524
|
-
# muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
|
525
|
-
# config_id`.
|
557
|
+
# Required. Name of the custom module to get. Its format is: * "organizations/`
|
558
|
+
# organization`/eventThreatDetectionSettings/customModules/`module`". * "folders/
|
559
|
+
# `folder`/eventThreatDetectionSettings/customModules/`module`". * "projects/`
|
560
|
+
# project`/eventThreatDetectionSettings/customModules/`module`".
|
526
561
|
# @param [String] fields
|
527
562
|
# Selector specifying which fields to include in a partial response.
|
528
563
|
# @param [String] quota_user
|
@@ -532,35 +567,41 @@ module Google
|
|
532
567
|
# Request-specific options
|
533
568
|
#
|
534
569
|
# @yield [result, err] Result & error if block supplied
|
535
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
570
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule] parsed result object
|
536
571
|
# @yieldparam err [StandardError] error object if request failed
|
537
572
|
#
|
538
|
-
# @return [Google::Apis::SecuritycenterV1::
|
573
|
+
# @return [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule]
|
539
574
|
#
|
540
575
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
541
576
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
542
577
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
543
|
-
def
|
578
|
+
def get_folder_event_threat_detection_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
544
579
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
545
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
546
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
580
|
+
command.response_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
581
|
+
command.response_class = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule
|
547
582
|
command.params['name'] = name unless name.nil?
|
548
583
|
command.query['fields'] = fields unless fields.nil?
|
549
584
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
550
585
|
execute_or_queue_command(command, &block)
|
551
586
|
end
|
552
587
|
|
553
|
-
#
|
554
|
-
#
|
555
|
-
#
|
556
|
-
#
|
557
|
-
#
|
558
|
-
# organizations/`organization`/
|
559
|
-
#
|
560
|
-
#
|
561
|
-
# @param [
|
562
|
-
#
|
563
|
-
#
|
588
|
+
# Lists all Event Threat Detection custom modules for the given Resource Manager
|
589
|
+
# parent. This includes resident modules defined at the scope of the parent
|
590
|
+
# along with modules inherited from ancestors.
|
591
|
+
# @param [String] parent
|
592
|
+
# Required. Name of the parent to list custom modules under. Its format is: * "
|
593
|
+
# organizations/`organization`/eventThreatDetectionSettings". * "folders/`folder`
|
594
|
+
# /eventThreatDetectionSettings". * "projects/`project`/
|
595
|
+
# eventThreatDetectionSettings".
|
596
|
+
# @param [Fixnum] page_size
|
597
|
+
# The maximum number of modules to return. The service may return fewer than
|
598
|
+
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
599
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
600
|
+
# @param [String] page_token
|
601
|
+
# A page token, received from a previous `ListEventThreatDetectionCustomModules`
|
602
|
+
# call. Provide this to retrieve the subsequent page. When paginating, all other
|
603
|
+
# parameters provided to `ListEventThreatDetectionCustomModules` must match the
|
604
|
+
# call that provided the page token.
|
564
605
|
# @param [String] fields
|
565
606
|
# Selector specifying which fields to include in a partial response.
|
566
607
|
# @param [String] quota_user
|
@@ -570,38 +611,43 @@ module Google
|
|
570
611
|
# Request-specific options
|
571
612
|
#
|
572
613
|
# @yield [result, err] Result & error if block supplied
|
573
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
614
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListEventThreatDetectionCustomModulesResponse] parsed result object
|
574
615
|
# @yieldparam err [StandardError] error object if request failed
|
575
616
|
#
|
576
|
-
# @return [Google::Apis::SecuritycenterV1::
|
617
|
+
# @return [Google::Apis::SecuritycenterV1::ListEventThreatDetectionCustomModulesResponse]
|
577
618
|
#
|
578
619
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
579
620
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
580
621
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
581
|
-
def
|
582
|
-
command = make_simple_command(:
|
583
|
-
command.
|
584
|
-
command.
|
585
|
-
command.
|
586
|
-
command.
|
587
|
-
command.
|
588
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
622
|
+
def list_folder_event_threat_detection_setting_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
623
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules', options)
|
624
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListEventThreatDetectionCustomModulesResponse::Representation
|
625
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListEventThreatDetectionCustomModulesResponse
|
626
|
+
command.params['parent'] = parent unless parent.nil?
|
627
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
628
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
589
629
|
command.query['fields'] = fields unless fields.nil?
|
590
630
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
591
631
|
execute_or_queue_command(command, &block)
|
592
632
|
end
|
593
633
|
|
594
|
-
#
|
634
|
+
# Lists all resident Event Threat Detection custom modules under the given
|
635
|
+
# Resource Manager parent and its descendants.
|
595
636
|
# @param [String] parent
|
596
|
-
# Required.
|
597
|
-
# organizations
|
598
|
-
#
|
599
|
-
#
|
600
|
-
# @param [
|
601
|
-
#
|
602
|
-
#
|
603
|
-
#
|
604
|
-
#
|
637
|
+
# Required. Name of the parent to list custom modules under. Its format is: * "
|
638
|
+
# organizations/`organization`/eventThreatDetectionSettings". * "folders/`folder`
|
639
|
+
# /eventThreatDetectionSettings". * "projects/`project`/
|
640
|
+
# eventThreatDetectionSettings".
|
641
|
+
# @param [Fixnum] page_size
|
642
|
+
# The maximum number of modules to return. The service may return fewer than
|
643
|
+
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
644
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
645
|
+
# @param [String] page_token
|
646
|
+
# A page token, received from a previous `
|
647
|
+
# ListDescendantEventThreatDetectionCustomModules` call. Provide this to
|
648
|
+
# retrieve the subsequent page. When paginating, all other parameters provided
|
649
|
+
# to `ListDescendantEventThreatDetectionCustomModules` must match the call that
|
650
|
+
# provided the page token.
|
605
651
|
# @param [String] fields
|
606
652
|
# Selector specifying which fields to include in a partial response.
|
607
653
|
# @param [String] quota_user
|
@@ -611,35 +657,41 @@ module Google
|
|
611
657
|
# Request-specific options
|
612
658
|
#
|
613
659
|
# @yield [result, err] Result & error if block supplied
|
614
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
660
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse] parsed result object
|
615
661
|
# @yieldparam err [StandardError] error object if request failed
|
616
662
|
#
|
617
|
-
# @return [Google::Apis::SecuritycenterV1::
|
663
|
+
# @return [Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse]
|
618
664
|
#
|
619
665
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
620
666
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
621
667
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
622
|
-
def
|
623
|
-
command = make_simple_command(:
|
624
|
-
command.
|
625
|
-
command.
|
626
|
-
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
627
|
-
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
|
668
|
+
def list_folder_event_threat_detection_setting_custom_module_descendant(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
669
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules:listDescendant', options)
|
670
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse::Representation
|
671
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse
|
628
672
|
command.params['parent'] = parent unless parent.nil?
|
629
|
-
command.query['
|
673
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
674
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
630
675
|
command.query['fields'] = fields unless fields.nil?
|
631
676
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
632
677
|
execute_or_queue_command(command, &block)
|
633
678
|
end
|
634
679
|
|
635
|
-
#
|
680
|
+
# Updates the Event Threat Detection custom module with the given name based on
|
681
|
+
# the given update mask. Updating the enablement state is supported for both
|
682
|
+
# resident and inherited modules (though resident modules cannot have an
|
683
|
+
# enablement state of "inherited"). Updating the display name or configuration
|
684
|
+
# of a module is supported for resident modules only. The type of a module
|
685
|
+
# cannot be changed.
|
636
686
|
# @param [String] name
|
637
|
-
#
|
638
|
-
#
|
639
|
-
#
|
640
|
-
#
|
641
|
-
#
|
642
|
-
#
|
687
|
+
# Immutable. The resource name of the Event Threat Detection custom module. Its
|
688
|
+
# format is: * "organizations/`organization`/eventThreatDetectionSettings/
|
689
|
+
# customModules/`module`". * "folders/`folder`/eventThreatDetectionSettings/
|
690
|
+
# customModules/`module`". * "projects/`project`/eventThreatDetectionSettings/
|
691
|
+
# customModules/`module`".
|
692
|
+
# @param [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule] event_threat_detection_custom_module_object
|
693
|
+
# @param [String] update_mask
|
694
|
+
# The list of fields to be updated. If empty all mutable fields will be updated.
|
643
695
|
# @param [String] fields
|
644
696
|
# Selector specifying which fields to include in a partial response.
|
645
697
|
# @param [String] quota_user
|
@@ -649,32 +701,35 @@ module Google
|
|
649
701
|
# Request-specific options
|
650
702
|
#
|
651
703
|
# @yield [result, err] Result & error if block supplied
|
652
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
704
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule] parsed result object
|
653
705
|
# @yieldparam err [StandardError] error object if request failed
|
654
706
|
#
|
655
|
-
# @return [Google::Apis::SecuritycenterV1::
|
707
|
+
# @return [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule]
|
656
708
|
#
|
657
709
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
658
710
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
659
711
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
660
|
-
def
|
661
|
-
command = make_simple_command(:
|
662
|
-
command.
|
663
|
-
command.
|
712
|
+
def patch_folder_event_threat_detection_setting_custom_module(name, event_threat_detection_custom_module_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
713
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
714
|
+
command.request_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
715
|
+
command.request_object = event_threat_detection_custom_module_object
|
716
|
+
command.response_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
717
|
+
command.response_class = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule
|
664
718
|
command.params['name'] = name unless name.nil?
|
719
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
665
720
|
command.query['fields'] = fields unless fields.nil?
|
666
721
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
667
722
|
execute_or_queue_command(command, &block)
|
668
723
|
end
|
669
724
|
|
670
|
-
# Gets
|
725
|
+
# Gets an effective Event Threat Detection custom module at the given level.
|
671
726
|
# @param [String] name
|
672
|
-
# Required.
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
676
|
-
#
|
677
|
-
#
|
727
|
+
# Required. The resource name of the effective Event Threat Detection custom
|
728
|
+
# module. Its format is: * "organizations/`organization`/
|
729
|
+
# eventThreatDetectionSettings/effectiveCustomModules/`module`". * "folders/`
|
730
|
+
# folder`/eventThreatDetectionSettings/effectiveCustomModules/`module`". * "
|
731
|
+
# projects/`project`/eventThreatDetectionSettings/effectiveCustomModules/`module`
|
732
|
+
# ".
|
678
733
|
# @param [String] fields
|
679
734
|
# Selector specifying which fields to include in a partial response.
|
680
735
|
# @param [String] quota_user
|
@@ -684,37 +739,42 @@ module Google
|
|
684
739
|
# Request-specific options
|
685
740
|
#
|
686
741
|
# @yield [result, err] Result & error if block supplied
|
687
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
742
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule] parsed result object
|
688
743
|
# @yieldparam err [StandardError] error object if request failed
|
689
744
|
#
|
690
|
-
# @return [Google::Apis::SecuritycenterV1::
|
745
|
+
# @return [Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule]
|
691
746
|
#
|
692
747
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
693
748
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
694
749
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
695
|
-
def
|
750
|
+
def get_folder_event_threat_detection_setting_effective_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
696
751
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
697
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
698
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
752
|
+
command.response_representation = Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule::Representation
|
753
|
+
command.response_class = Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule
|
699
754
|
command.params['name'] = name unless name.nil?
|
700
755
|
command.query['fields'] = fields unless fields.nil?
|
701
756
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
702
757
|
execute_or_queue_command(command, &block)
|
703
758
|
end
|
704
759
|
|
705
|
-
# Lists
|
760
|
+
# Lists all effective Event Threat Detection custom modules for the given parent.
|
761
|
+
# This includes resident modules defined at the scope of the parent along with
|
762
|
+
# modules inherited from its ancestors.
|
706
763
|
# @param [String] parent
|
707
|
-
# Required.
|
708
|
-
#
|
709
|
-
#
|
764
|
+
# Required. Name of the parent to list custom modules for. Its format is: * "
|
765
|
+
# organizations/`organization`/eventThreatDetectionSettings". * "folders/`folder`
|
766
|
+
# /eventThreatDetectionSettings". * "projects/`project`/
|
767
|
+
# eventThreatDetectionSettings".
|
710
768
|
# @param [Fixnum] page_size
|
711
|
-
# The maximum number of
|
769
|
+
# The maximum number of modules to return. The service may return fewer than
|
712
770
|
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
713
771
|
# value is 1000; values above 1000 will be coerced to 1000.
|
714
772
|
# @param [String] page_token
|
715
|
-
# A page token, received from a previous `
|
716
|
-
#
|
717
|
-
#
|
773
|
+
# A page token, received from a previous `
|
774
|
+
# ListEffectiveEventThreatDetectionCustomModules` call. Provide this to retrieve
|
775
|
+
# the subsequent page. When paginating, all other parameters provided to `
|
776
|
+
# ListEffectiveEventThreatDetectionCustomModules` must match the call that
|
777
|
+
# provided the page token.
|
718
778
|
# @param [String] fields
|
719
779
|
# Selector specifying which fields to include in a partial response.
|
720
780
|
# @param [String] quota_user
|
@@ -724,18 +784,18 @@ module Google
|
|
724
784
|
# Request-specific options
|
725
785
|
#
|
726
786
|
# @yield [result, err] Result & error if block supplied
|
727
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
787
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse] parsed result object
|
728
788
|
# @yieldparam err [StandardError] error object if request failed
|
729
789
|
#
|
730
|
-
# @return [Google::Apis::SecuritycenterV1::
|
790
|
+
# @return [Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse]
|
731
791
|
#
|
732
792
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
733
793
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
734
794
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
735
|
-
def
|
736
|
-
command = make_simple_command(:get, 'v1/{+parent}/
|
737
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
738
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
795
|
+
def list_folder_event_threat_detection_setting_effective_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
796
|
+
command = make_simple_command(:get, 'v1/{+parent}/effectiveCustomModules', options)
|
797
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse::Representation
|
798
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse
|
739
799
|
command.params['parent'] = parent unless parent.nil?
|
740
800
|
command.query['pageSize'] = page_size unless page_size.nil?
|
741
801
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -744,17 +804,14 @@ module Google
|
|
744
804
|
execute_or_queue_command(command, &block)
|
745
805
|
end
|
746
806
|
|
747
|
-
#
|
748
|
-
#
|
749
|
-
#
|
750
|
-
#
|
751
|
-
#
|
752
|
-
# organizations
|
753
|
-
#
|
754
|
-
#
|
755
|
-
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
|
756
|
-
# @param [String] update_mask
|
757
|
-
# The list of fields to be updated. If empty all mutable fields will be updated.
|
807
|
+
# Kicks off an LRO to bulk mute findings for a parent based on a filter. The
|
808
|
+
# parent can be either an organization, folder or project. The findings matched
|
809
|
+
# by the filter will be muted after the LRO is done.
|
810
|
+
# @param [String] parent
|
811
|
+
# Required. The parent, at which bulk action needs to be applied. Its format is "
|
812
|
+
# organizations/[organization_id]", "folders/[folder_id]", "projects/[project_id]
|
813
|
+
# ".
|
814
|
+
# @param [Google::Apis::SecuritycenterV1::BulkMuteFindingsRequest] bulk_mute_findings_request_object
|
758
815
|
# @param [String] fields
|
759
816
|
# Selector specifying which fields to include in a partial response.
|
760
817
|
# @param [String] quota_user
|
@@ -764,73 +821,34 @@ module Google
|
|
764
821
|
# Request-specific options
|
765
822
|
#
|
766
823
|
# @yield [result, err] Result & error if block supplied
|
767
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
824
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Operation] parsed result object
|
768
825
|
# @yieldparam err [StandardError] error object if request failed
|
769
826
|
#
|
770
|
-
# @return [Google::Apis::SecuritycenterV1::
|
827
|
+
# @return [Google::Apis::SecuritycenterV1::Operation]
|
771
828
|
#
|
772
829
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
773
830
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
774
831
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
775
|
-
def
|
776
|
-
command = make_simple_command(:
|
777
|
-
command.request_representation = Google::Apis::SecuritycenterV1::
|
778
|
-
command.request_object =
|
779
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
780
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
781
|
-
command.params['
|
782
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
832
|
+
def bulk_folder_finding_mute(parent, bulk_mute_findings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
833
|
+
command = make_simple_command(:post, 'v1/{+parent}/findings:bulkMute', options)
|
834
|
+
command.request_representation = Google::Apis::SecuritycenterV1::BulkMuteFindingsRequest::Representation
|
835
|
+
command.request_object = bulk_mute_findings_request_object
|
836
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Operation::Representation
|
837
|
+
command.response_class = Google::Apis::SecuritycenterV1::Operation
|
838
|
+
command.params['parent'] = parent unless parent.nil?
|
783
839
|
command.query['fields'] = fields unless fields.nil?
|
784
840
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
785
841
|
execute_or_queue_command(command, &block)
|
786
842
|
end
|
787
843
|
|
788
|
-
#
|
789
|
-
# @param [String] parent
|
790
|
-
# Required. Resource name of the new notification config's parent. Its format is
|
791
|
-
# "organizations/[organization_id]", "folders/[folder_id]", or "projects/[
|
792
|
-
# project_id]".
|
793
|
-
# @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
|
794
|
-
# @param [String] config_id
|
795
|
-
# Required. Unique identifier provided by the client within the parent scope. It
|
796
|
-
# must be between 1 and 128 characters and contain alphanumeric characters,
|
797
|
-
# underscores, or hyphens only.
|
798
|
-
# @param [String] fields
|
799
|
-
# Selector specifying which fields to include in a partial response.
|
800
|
-
# @param [String] quota_user
|
801
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
802
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
803
|
-
# @param [Google::Apis::RequestOptions] options
|
804
|
-
# Request-specific options
|
805
|
-
#
|
806
|
-
# @yield [result, err] Result & error if block supplied
|
807
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
|
808
|
-
# @yieldparam err [StandardError] error object if request failed
|
809
|
-
#
|
810
|
-
# @return [Google::Apis::SecuritycenterV1::NotificationConfig]
|
811
|
-
#
|
812
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
813
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
814
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
815
|
-
def create_folder_notification_config(parent, notification_config_object = nil, config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
816
|
-
command = make_simple_command(:post, 'v1/{+parent}/notificationConfigs', options)
|
817
|
-
command.request_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
|
818
|
-
command.request_object = notification_config_object
|
819
|
-
command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
|
820
|
-
command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
|
821
|
-
command.params['parent'] = parent unless parent.nil?
|
822
|
-
command.query['configId'] = config_id unless config_id.nil?
|
823
|
-
command.query['fields'] = fields unless fields.nil?
|
824
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
825
|
-
execute_or_queue_command(command, &block)
|
826
|
-
end
|
827
|
-
|
828
|
-
# Deletes a notification config.
|
844
|
+
# Deletes an existing mute config.
|
829
845
|
# @param [String] name
|
830
|
-
# Required. Name of the
|
831
|
-
#
|
832
|
-
#
|
833
|
-
#
|
846
|
+
# Required. Name of the mute config to delete. Its format is organizations/`
|
847
|
+
# organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
|
848
|
+
# , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
|
849
|
+
# locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
|
850
|
+
# muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
|
851
|
+
# config_id`.
|
834
852
|
# @param [String] fields
|
835
853
|
# Selector specifying which fields to include in a partial response.
|
836
854
|
# @param [String] quota_user
|
@@ -848,7 +866,7 @@ module Google
|
|
848
866
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
849
867
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
850
868
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
851
|
-
def
|
869
|
+
def delete_folder_location_mute_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
852
870
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
853
871
|
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
854
872
|
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
@@ -858,12 +876,14 @@ module Google
|
|
858
876
|
execute_or_queue_command(command, &block)
|
859
877
|
end
|
860
878
|
|
861
|
-
# Gets a
|
879
|
+
# Gets a mute config.
|
862
880
|
# @param [String] name
|
863
|
-
# Required. Name of the
|
864
|
-
#
|
865
|
-
#
|
866
|
-
#
|
881
|
+
# Required. Name of the mute config to retrieve. Its format is organizations/`
|
882
|
+
# organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
|
883
|
+
# , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
|
884
|
+
# locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
|
885
|
+
# muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
|
886
|
+
# config_id`.
|
867
887
|
# @param [String] fields
|
868
888
|
# Selector specifying which fields to include in a partial response.
|
869
889
|
# @param [String] quota_user
|
@@ -873,77 +893,35 @@ module Google
|
|
873
893
|
# Request-specific options
|
874
894
|
#
|
875
895
|
# @yield [result, err] Result & error if block supplied
|
876
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
896
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
|
877
897
|
# @yieldparam err [StandardError] error object if request failed
|
878
898
|
#
|
879
|
-
# @return [Google::Apis::SecuritycenterV1::
|
899
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
|
880
900
|
#
|
881
901
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
882
902
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
883
903
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
884
|
-
def
|
904
|
+
def get_folder_location_mute_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
885
905
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
886
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
887
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
906
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
907
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
|
888
908
|
command.params['name'] = name unless name.nil?
|
889
909
|
command.query['fields'] = fields unless fields.nil?
|
890
910
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
891
911
|
execute_or_queue_command(command, &block)
|
892
912
|
end
|
893
913
|
|
894
|
-
#
|
895
|
-
# @param [String] parent
|
896
|
-
# Required. The name of the parent in which to list the notification
|
897
|
-
# configurations. Its format is "organizations/[organization_id]", "folders/[
|
898
|
-
# folder_id]", or "projects/[project_id]".
|
899
|
-
# @param [Fixnum] page_size
|
900
|
-
# The maximum number of results to return in a single response. Default is 10,
|
901
|
-
# minimum is 1, maximum is 1000.
|
902
|
-
# @param [String] page_token
|
903
|
-
# The value returned by the last `ListNotificationConfigsResponse`; indicates
|
904
|
-
# that this is a continuation of a prior `ListNotificationConfigs` call, and
|
905
|
-
# that the system should return the next page of data.
|
906
|
-
# @param [String] fields
|
907
|
-
# Selector specifying which fields to include in a partial response.
|
908
|
-
# @param [String] quota_user
|
909
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
910
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
911
|
-
# @param [Google::Apis::RequestOptions] options
|
912
|
-
# Request-specific options
|
913
|
-
#
|
914
|
-
# @yield [result, err] Result & error if block supplied
|
915
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse] parsed result object
|
916
|
-
# @yieldparam err [StandardError] error object if request failed
|
917
|
-
#
|
918
|
-
# @return [Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse]
|
919
|
-
#
|
920
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
921
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
922
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
923
|
-
def list_folder_notification_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
924
|
-
command = make_simple_command(:get, 'v1/{+parent}/notificationConfigs', options)
|
925
|
-
command.response_representation = Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse::Representation
|
926
|
-
command.response_class = Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse
|
927
|
-
command.params['parent'] = parent unless parent.nil?
|
928
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
929
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
930
|
-
command.query['fields'] = fields unless fields.nil?
|
931
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
932
|
-
execute_or_queue_command(command, &block)
|
933
|
-
end
|
934
|
-
|
935
|
-
# Updates a notification config. The following update fields are allowed:
|
936
|
-
# description, pubsub_topic, streaming_config.filter
|
914
|
+
# Updates a mute config.
|
937
915
|
# @param [String] name
|
938
|
-
#
|
939
|
-
#
|
940
|
-
#
|
941
|
-
#
|
942
|
-
#
|
943
|
-
#
|
916
|
+
# This field will be ignored if provided on config creation. Format "
|
917
|
+
# organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/
|
918
|
+
# muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" "
|
919
|
+
# organizations/`organization`/locations/global/muteConfigs/`mute_config`" "
|
920
|
+
# folders/`folder`/locations/global/muteConfigs/`mute_config`" "projects/`
|
921
|
+
# project`/locations/global/muteConfigs/`mute_config`"
|
922
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
|
944
923
|
# @param [String] update_mask
|
945
|
-
# The
|
946
|
-
# mutable fields will be updated.
|
924
|
+
# The list of fields to be updated. If empty all mutable fields will be updated.
|
947
925
|
# @param [String] fields
|
948
926
|
# Selector specifying which fields to include in a partial response.
|
949
927
|
# @param [String] quota_user
|
@@ -953,20 +931,20 @@ module Google
|
|
953
931
|
# Request-specific options
|
954
932
|
#
|
955
933
|
# @yield [result, err] Result & error if block supplied
|
956
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
934
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
|
957
935
|
# @yieldparam err [StandardError] error object if request failed
|
958
936
|
#
|
959
|
-
# @return [Google::Apis::SecuritycenterV1::
|
937
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
|
960
938
|
#
|
961
939
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
962
940
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
963
941
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
964
|
-
def
|
942
|
+
def patch_folder_location_mute_config(name, google_cloud_securitycenter_v1_mute_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
965
943
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
966
|
-
command.request_representation = Google::Apis::SecuritycenterV1::
|
967
|
-
command.request_object =
|
968
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
969
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
944
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
945
|
+
command.request_object = google_cloud_securitycenter_v1_mute_config_object
|
946
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
947
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
|
970
948
|
command.params['name'] = name unless name.nil?
|
971
949
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
972
950
|
command.query['fields'] = fields unless fields.nil?
|
@@ -974,16 +952,17 @@ module Google
|
|
974
952
|
execute_or_queue_command(command, &block)
|
975
953
|
end
|
976
954
|
|
977
|
-
# Creates a
|
978
|
-
# given CRM parent, and also creates inherited
|
979
|
-
# SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
|
980
|
-
# parent. These modules are enabled by default.
|
955
|
+
# Creates a mute config.
|
981
956
|
# @param [String] parent
|
982
|
-
# Required. Resource name of the new
|
983
|
-
# organizations
|
984
|
-
#
|
985
|
-
#
|
986
|
-
# @param [
|
957
|
+
# Required. Resource name of the new mute configs's parent. Its format is "
|
958
|
+
# organizations/[organization_id]", "folders/[folder_id]", or "projects/[
|
959
|
+
# project_id]".
|
960
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
|
961
|
+
# @param [String] mute_config_id
|
962
|
+
# Required. Unique identifier provided by the client within the parent scope. It
|
963
|
+
# must consist of only lowercase letters, numbers, and hyphens, must start with
|
964
|
+
# a letter, must end with either a letter or a number, and must be 63 characters
|
965
|
+
# or less.
|
987
966
|
# @param [String] fields
|
988
967
|
# Selector specifying which fields to include in a partial response.
|
989
968
|
# @param [String] quota_user
|
@@ -993,35 +972,35 @@ module Google
|
|
993
972
|
# Request-specific options
|
994
973
|
#
|
995
974
|
# @yield [result, err] Result & error if block supplied
|
996
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
975
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
|
997
976
|
# @yieldparam err [StandardError] error object if request failed
|
998
977
|
#
|
999
|
-
# @return [Google::Apis::SecuritycenterV1::
|
978
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
|
1000
979
|
#
|
1001
980
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1002
981
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1003
982
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1004
|
-
def
|
1005
|
-
command = make_simple_command(:post, 'v1/{+parent}/
|
1006
|
-
command.request_representation = Google::Apis::SecuritycenterV1::
|
1007
|
-
command.request_object =
|
1008
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
1009
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
983
|
+
def create_folder_mute_config(parent, google_cloud_securitycenter_v1_mute_config_object = nil, mute_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
984
|
+
command = make_simple_command(:post, 'v1/{+parent}/muteConfigs', options)
|
985
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
986
|
+
command.request_object = google_cloud_securitycenter_v1_mute_config_object
|
987
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
988
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
|
1010
989
|
command.params['parent'] = parent unless parent.nil?
|
990
|
+
command.query['muteConfigId'] = mute_config_id unless mute_config_id.nil?
|
1011
991
|
command.query['fields'] = fields unless fields.nil?
|
1012
992
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1013
993
|
execute_or_queue_command(command, &block)
|
1014
994
|
end
|
1015
995
|
|
1016
|
-
# Deletes
|
1017
|
-
# descendants in the CRM hierarchy. This method is only supported for resident
|
1018
|
-
# custom modules.
|
996
|
+
# Deletes an existing mute config.
|
1019
997
|
# @param [String] name
|
1020
|
-
# Required. Name of the
|
1021
|
-
# organization`/
|
1022
|
-
#
|
1023
|
-
#
|
1024
|
-
#
|
998
|
+
# Required. Name of the mute config to delete. Its format is organizations/`
|
999
|
+
# organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
|
1000
|
+
# , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
|
1001
|
+
# locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
|
1002
|
+
# muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
|
1003
|
+
# config_id`.
|
1025
1004
|
# @param [String] fields
|
1026
1005
|
# Selector specifying which fields to include in a partial response.
|
1027
1006
|
# @param [String] quota_user
|
@@ -1039,7 +1018,7 @@ module Google
|
|
1039
1018
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1040
1019
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1041
1020
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1042
|
-
def
|
1021
|
+
def delete_folder_mute_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
1043
1022
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1044
1023
|
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
1045
1024
|
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
@@ -1049,13 +1028,14 @@ module Google
|
|
1049
1028
|
execute_or_queue_command(command, &block)
|
1050
1029
|
end
|
1051
1030
|
|
1052
|
-
#
|
1031
|
+
# Gets a mute config.
|
1053
1032
|
# @param [String] name
|
1054
|
-
# Required. Name of the
|
1055
|
-
# organization`/
|
1056
|
-
#
|
1057
|
-
#
|
1058
|
-
#
|
1033
|
+
# Required. Name of the mute config to retrieve. Its format is organizations/`
|
1034
|
+
# organization`/muteConfigs/`config_id`, folders/`folder`/muteConfigs/`config_id`
|
1035
|
+
# , projects/`project`/muteConfigs/`config_id`, organizations/`organization`/
|
1036
|
+
# locations/global/muteConfigs/`config_id`, folders/`folder`/locations/global/
|
1037
|
+
# muteConfigs/`config_id`, or projects/`project`/locations/global/muteConfigs/`
|
1038
|
+
# config_id`.
|
1059
1039
|
# @param [String] fields
|
1060
1040
|
# Selector specifying which fields to include in a partial response.
|
1061
1041
|
# @param [String] quota_user
|
@@ -1065,37 +1045,37 @@ module Google
|
|
1065
1045
|
# Request-specific options
|
1066
1046
|
#
|
1067
1047
|
# @yield [result, err] Result & error if block supplied
|
1068
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
1048
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
|
1069
1049
|
# @yieldparam err [StandardError] error object if request failed
|
1070
1050
|
#
|
1071
|
-
# @return [Google::Apis::SecuritycenterV1::
|
1051
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
|
1072
1052
|
#
|
1073
1053
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1074
1054
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1075
1055
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1076
|
-
def
|
1056
|
+
def get_folder_mute_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
1077
1057
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
1078
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
1079
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
1058
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
1059
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
|
1080
1060
|
command.params['name'] = name unless name.nil?
|
1081
1061
|
command.query['fields'] = fields unless fields.nil?
|
1082
1062
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1083
1063
|
execute_or_queue_command(command, &block)
|
1084
1064
|
end
|
1085
1065
|
|
1086
|
-
#
|
1087
|
-
# parent. This includes resident modules defined at the scope of the parent, and
|
1088
|
-
# inherited modules, inherited from CRM ancestors.
|
1066
|
+
# Lists mute configs.
|
1089
1067
|
# @param [String] parent
|
1090
|
-
# Required.
|
1091
|
-
#
|
1092
|
-
#
|
1093
|
-
# securityHealthAnalyticsSettings"
|
1068
|
+
# Required. The parent, which owns the collection of mute configs. Its format is
|
1069
|
+
# "organizations/[organization_id]", "folders/[folder_id]", "projects/[
|
1070
|
+
# project_id]".
|
1094
1071
|
# @param [Fixnum] page_size
|
1095
|
-
# The maximum number of
|
1096
|
-
#
|
1072
|
+
# The maximum number of configs to return. The service may return fewer than
|
1073
|
+
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
1074
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
1097
1075
|
# @param [String] page_token
|
1098
|
-
#
|
1076
|
+
# A page token, received from a previous `ListMuteConfigs` call. Provide this to
|
1077
|
+
# retrieve the subsequent page. When paginating, all other parameters provided
|
1078
|
+
# to `ListMuteConfigs` must match the call that provided the page token.
|
1099
1079
|
# @param [String] fields
|
1100
1080
|
# Selector specifying which fields to include in a partial response.
|
1101
1081
|
# @param [String] quota_user
|
@@ -1105,18 +1085,18 @@ module Google
|
|
1105
1085
|
# Request-specific options
|
1106
1086
|
#
|
1107
1087
|
# @yield [result, err] Result & error if block supplied
|
1108
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
1088
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse] parsed result object
|
1109
1089
|
# @yieldparam err [StandardError] error object if request failed
|
1110
1090
|
#
|
1111
|
-
# @return [Google::Apis::SecuritycenterV1::
|
1091
|
+
# @return [Google::Apis::SecuritycenterV1::ListMuteConfigsResponse]
|
1112
1092
|
#
|
1113
1093
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1114
1094
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1115
1095
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1116
|
-
def
|
1117
|
-
command = make_simple_command(:get, 'v1/{+parent}/
|
1118
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
1119
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
1096
|
+
def list_folder_mute_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1097
|
+
command = make_simple_command(:get, 'v1/{+parent}/muteConfigs', options)
|
1098
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse::Representation
|
1099
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListMuteConfigsResponse
|
1120
1100
|
command.params['parent'] = parent unless parent.nil?
|
1121
1101
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1122
1102
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -1125,11 +1105,392 @@ module Google
|
|
1125
1105
|
execute_or_queue_command(command, &block)
|
1126
1106
|
end
|
1127
1107
|
|
1128
|
-
#
|
1129
|
-
#
|
1130
|
-
#
|
1131
|
-
#
|
1132
|
-
#
|
1108
|
+
# Updates a mute config.
|
1109
|
+
# @param [String] name
|
1110
|
+
# This field will be ignored if provided on config creation. Format "
|
1111
|
+
# organizations/`organization`/muteConfigs/`mute_config`" "folders/`folder`/
|
1112
|
+
# muteConfigs/`mute_config`" "projects/`project`/muteConfigs/`mute_config`" "
|
1113
|
+
# organizations/`organization`/locations/global/muteConfigs/`mute_config`" "
|
1114
|
+
# folders/`folder`/locations/global/muteConfigs/`mute_config`" "projects/`
|
1115
|
+
# project`/locations/global/muteConfigs/`mute_config`"
|
1116
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] google_cloud_securitycenter_v1_mute_config_object
|
1117
|
+
# @param [String] update_mask
|
1118
|
+
# The list of fields to be updated. If empty all mutable fields will be updated.
|
1119
|
+
# @param [String] fields
|
1120
|
+
# Selector specifying which fields to include in a partial response.
|
1121
|
+
# @param [String] quota_user
|
1122
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1123
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1124
|
+
# @param [Google::Apis::RequestOptions] options
|
1125
|
+
# Request-specific options
|
1126
|
+
#
|
1127
|
+
# @yield [result, err] Result & error if block supplied
|
1128
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig] parsed result object
|
1129
|
+
# @yieldparam err [StandardError] error object if request failed
|
1130
|
+
#
|
1131
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig]
|
1132
|
+
#
|
1133
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1134
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1135
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1136
|
+
def patch_folder_mute_config(name, google_cloud_securitycenter_v1_mute_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1137
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1138
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
1139
|
+
command.request_object = google_cloud_securitycenter_v1_mute_config_object
|
1140
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig::Representation
|
1141
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1MuteConfig
|
1142
|
+
command.params['name'] = name unless name.nil?
|
1143
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1144
|
+
command.query['fields'] = fields unless fields.nil?
|
1145
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1146
|
+
execute_or_queue_command(command, &block)
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
# Creates a notification config.
|
1150
|
+
# @param [String] parent
|
1151
|
+
# Required. Resource name of the new notification config's parent. Its format is
|
1152
|
+
# "organizations/[organization_id]", "folders/[folder_id]", or "projects/[
|
1153
|
+
# project_id]".
|
1154
|
+
# @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
|
1155
|
+
# @param [String] config_id
|
1156
|
+
# Required. Unique identifier provided by the client within the parent scope. It
|
1157
|
+
# must be between 1 and 128 characters and contain alphanumeric characters,
|
1158
|
+
# underscores, or hyphens only.
|
1159
|
+
# @param [String] fields
|
1160
|
+
# Selector specifying which fields to include in a partial response.
|
1161
|
+
# @param [String] quota_user
|
1162
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1163
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1164
|
+
# @param [Google::Apis::RequestOptions] options
|
1165
|
+
# Request-specific options
|
1166
|
+
#
|
1167
|
+
# @yield [result, err] Result & error if block supplied
|
1168
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
|
1169
|
+
# @yieldparam err [StandardError] error object if request failed
|
1170
|
+
#
|
1171
|
+
# @return [Google::Apis::SecuritycenterV1::NotificationConfig]
|
1172
|
+
#
|
1173
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1174
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1175
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1176
|
+
def create_folder_notification_config(parent, notification_config_object = nil, config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1177
|
+
command = make_simple_command(:post, 'v1/{+parent}/notificationConfigs', options)
|
1178
|
+
command.request_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
|
1179
|
+
command.request_object = notification_config_object
|
1180
|
+
command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
|
1181
|
+
command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
|
1182
|
+
command.params['parent'] = parent unless parent.nil?
|
1183
|
+
command.query['configId'] = config_id unless config_id.nil?
|
1184
|
+
command.query['fields'] = fields unless fields.nil?
|
1185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1186
|
+
execute_or_queue_command(command, &block)
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
# Deletes a notification config.
|
1190
|
+
# @param [String] name
|
1191
|
+
# Required. Name of the notification config to delete. Its format is "
|
1192
|
+
# organizations/[organization_id]/notificationConfigs/[config_id]", "folders/[
|
1193
|
+
# folder_id]/notificationConfigs/[config_id]", or "projects/[project_id]/
|
1194
|
+
# notificationConfigs/[config_id]".
|
1195
|
+
# @param [String] fields
|
1196
|
+
# Selector specifying which fields to include in a partial response.
|
1197
|
+
# @param [String] quota_user
|
1198
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1199
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1200
|
+
# @param [Google::Apis::RequestOptions] options
|
1201
|
+
# Request-specific options
|
1202
|
+
#
|
1203
|
+
# @yield [result, err] Result & error if block supplied
|
1204
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
1205
|
+
# @yieldparam err [StandardError] error object if request failed
|
1206
|
+
#
|
1207
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
1208
|
+
#
|
1209
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1210
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1211
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1212
|
+
def delete_folder_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
1213
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1214
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
1215
|
+
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
1216
|
+
command.params['name'] = name unless name.nil?
|
1217
|
+
command.query['fields'] = fields unless fields.nil?
|
1218
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1219
|
+
execute_or_queue_command(command, &block)
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
# Gets a notification config.
|
1223
|
+
# @param [String] name
|
1224
|
+
# Required. Name of the notification config to get. Its format is "organizations/
|
1225
|
+
# [organization_id]/notificationConfigs/[config_id]", "folders/[folder_id]/
|
1226
|
+
# notificationConfigs/[config_id]", or "projects/[project_id]/
|
1227
|
+
# notificationConfigs/[config_id]".
|
1228
|
+
# @param [String] fields
|
1229
|
+
# Selector specifying which fields to include in a partial response.
|
1230
|
+
# @param [String] quota_user
|
1231
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1232
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1233
|
+
# @param [Google::Apis::RequestOptions] options
|
1234
|
+
# Request-specific options
|
1235
|
+
#
|
1236
|
+
# @yield [result, err] Result & error if block supplied
|
1237
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
|
1238
|
+
# @yieldparam err [StandardError] error object if request failed
|
1239
|
+
#
|
1240
|
+
# @return [Google::Apis::SecuritycenterV1::NotificationConfig]
|
1241
|
+
#
|
1242
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1243
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1244
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1245
|
+
def get_folder_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
1246
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1247
|
+
command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
|
1248
|
+
command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
|
1249
|
+
command.params['name'] = name unless name.nil?
|
1250
|
+
command.query['fields'] = fields unless fields.nil?
|
1251
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1252
|
+
execute_or_queue_command(command, &block)
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
# Lists notification configs.
|
1256
|
+
# @param [String] parent
|
1257
|
+
# Required. The name of the parent in which to list the notification
|
1258
|
+
# configurations. Its format is "organizations/[organization_id]", "folders/[
|
1259
|
+
# folder_id]", or "projects/[project_id]".
|
1260
|
+
# @param [Fixnum] page_size
|
1261
|
+
# The maximum number of results to return in a single response. Default is 10,
|
1262
|
+
# minimum is 1, maximum is 1000.
|
1263
|
+
# @param [String] page_token
|
1264
|
+
# The value returned by the last `ListNotificationConfigsResponse`; indicates
|
1265
|
+
# that this is a continuation of a prior `ListNotificationConfigs` call, and
|
1266
|
+
# that the system should return the next page of data.
|
1267
|
+
# @param [String] fields
|
1268
|
+
# Selector specifying which fields to include in a partial response.
|
1269
|
+
# @param [String] quota_user
|
1270
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1271
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1272
|
+
# @param [Google::Apis::RequestOptions] options
|
1273
|
+
# Request-specific options
|
1274
|
+
#
|
1275
|
+
# @yield [result, err] Result & error if block supplied
|
1276
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse] parsed result object
|
1277
|
+
# @yieldparam err [StandardError] error object if request failed
|
1278
|
+
#
|
1279
|
+
# @return [Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse]
|
1280
|
+
#
|
1281
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1282
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1283
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1284
|
+
def list_folder_notification_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1285
|
+
command = make_simple_command(:get, 'v1/{+parent}/notificationConfigs', options)
|
1286
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse::Representation
|
1287
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListNotificationConfigsResponse
|
1288
|
+
command.params['parent'] = parent unless parent.nil?
|
1289
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1290
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1291
|
+
command.query['fields'] = fields unless fields.nil?
|
1292
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1293
|
+
execute_or_queue_command(command, &block)
|
1294
|
+
end
|
1295
|
+
|
1296
|
+
# Updates a notification config. The following update fields are allowed:
|
1297
|
+
# description, pubsub_topic, streaming_config.filter
|
1298
|
+
# @param [String] name
|
1299
|
+
# The relative resource name of this notification config. See: https://cloud.
|
1300
|
+
# google.com/apis/design/resource_names#relative_resource_name Example: "
|
1301
|
+
# organizations/`organization_id`/notificationConfigs/notify_public_bucket", "
|
1302
|
+
# folders/`folder_id`/notificationConfigs/notify_public_bucket", or "projects/`
|
1303
|
+
# project_id`/notificationConfigs/notify_public_bucket".
|
1304
|
+
# @param [Google::Apis::SecuritycenterV1::NotificationConfig] notification_config_object
|
1305
|
+
# @param [String] update_mask
|
1306
|
+
# The FieldMask to use when updating the notification config. If empty all
|
1307
|
+
# mutable fields will be updated.
|
1308
|
+
# @param [String] fields
|
1309
|
+
# Selector specifying which fields to include in a partial response.
|
1310
|
+
# @param [String] quota_user
|
1311
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1312
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1313
|
+
# @param [Google::Apis::RequestOptions] options
|
1314
|
+
# Request-specific options
|
1315
|
+
#
|
1316
|
+
# @yield [result, err] Result & error if block supplied
|
1317
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::NotificationConfig] parsed result object
|
1318
|
+
# @yieldparam err [StandardError] error object if request failed
|
1319
|
+
#
|
1320
|
+
# @return [Google::Apis::SecuritycenterV1::NotificationConfig]
|
1321
|
+
#
|
1322
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1323
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1324
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1325
|
+
def patch_folder_notification_config(name, notification_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1326
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1327
|
+
command.request_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
|
1328
|
+
command.request_object = notification_config_object
|
1329
|
+
command.response_representation = Google::Apis::SecuritycenterV1::NotificationConfig::Representation
|
1330
|
+
command.response_class = Google::Apis::SecuritycenterV1::NotificationConfig
|
1331
|
+
command.params['name'] = name unless name.nil?
|
1332
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1333
|
+
command.query['fields'] = fields unless fields.nil?
|
1334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1335
|
+
execute_or_queue_command(command, &block)
|
1336
|
+
end
|
1337
|
+
|
1338
|
+
# Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
|
1339
|
+
# given CRM parent, and also creates inherited
|
1340
|
+
# SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
|
1341
|
+
# parent. These modules are enabled by default.
|
1342
|
+
# @param [String] parent
|
1343
|
+
# Required. Resource name of the new custom module's parent. Its format is "
|
1344
|
+
# organizations/`organization`/securityHealthAnalyticsSettings", "folders/`
|
1345
|
+
# folder`/securityHealthAnalyticsSettings", or "projects/`project`/
|
1346
|
+
# securityHealthAnalyticsSettings"
|
1347
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
1348
|
+
# @param [String] fields
|
1349
|
+
# Selector specifying which fields to include in a partial response.
|
1350
|
+
# @param [String] quota_user
|
1351
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1352
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1353
|
+
# @param [Google::Apis::RequestOptions] options
|
1354
|
+
# Request-specific options
|
1355
|
+
#
|
1356
|
+
# @yield [result, err] Result & error if block supplied
|
1357
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] parsed result object
|
1358
|
+
# @yieldparam err [StandardError] error object if request failed
|
1359
|
+
#
|
1360
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule]
|
1361
|
+
#
|
1362
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1363
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1364
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1365
|
+
def create_folder_security_health_analytics_setting_custom_module(parent, google_cloud_securitycenter_v1_security_health_analytics_custom_module_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1366
|
+
command = make_simple_command(:post, 'v1/{+parent}/customModules', options)
|
1367
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
1368
|
+
command.request_object = google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
1369
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
1370
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
|
1371
|
+
command.params['parent'] = parent unless parent.nil?
|
1372
|
+
command.query['fields'] = fields unless fields.nil?
|
1373
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1374
|
+
execute_or_queue_command(command, &block)
|
1375
|
+
end
|
1376
|
+
|
1377
|
+
# Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
|
1378
|
+
# descendants in the CRM hierarchy. This method is only supported for resident
|
1379
|
+
# custom modules.
|
1380
|
+
# @param [String] name
|
1381
|
+
# Required. Name of the custom module to delete. Its format is "organizations/`
|
1382
|
+
# organization`/securityHealthAnalyticsSettings/customModules/`customModule`", "
|
1383
|
+
# folders/`folder`/securityHealthAnalyticsSettings/customModules/`customModule`",
|
1384
|
+
# or "projects/`project`/securityHealthAnalyticsSettings/customModules/`
|
1385
|
+
# customModule`"
|
1386
|
+
# @param [String] fields
|
1387
|
+
# Selector specifying which fields to include in a partial response.
|
1388
|
+
# @param [String] quota_user
|
1389
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1390
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1391
|
+
# @param [Google::Apis::RequestOptions] options
|
1392
|
+
# Request-specific options
|
1393
|
+
#
|
1394
|
+
# @yield [result, err] Result & error if block supplied
|
1395
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
1396
|
+
# @yieldparam err [StandardError] error object if request failed
|
1397
|
+
#
|
1398
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
1399
|
+
#
|
1400
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1401
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1402
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1403
|
+
def delete_folder_security_health_analytics_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
1404
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1405
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
1406
|
+
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
1407
|
+
command.params['name'] = name unless name.nil?
|
1408
|
+
command.query['fields'] = fields unless fields.nil?
|
1409
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1410
|
+
execute_or_queue_command(command, &block)
|
1411
|
+
end
|
1412
|
+
|
1413
|
+
# Retrieves a SecurityHealthAnalyticsCustomModule.
|
1414
|
+
# @param [String] name
|
1415
|
+
# Required. Name of the custom module to get. Its format is "organizations/`
|
1416
|
+
# organization`/securityHealthAnalyticsSettings/customModules/`customModule`", "
|
1417
|
+
# folders/`folder`/securityHealthAnalyticsSettings/customModules/`customModule`",
|
1418
|
+
# or "projects/`project`/securityHealthAnalyticsSettings/customModules/`
|
1419
|
+
# customModule`"
|
1420
|
+
# @param [String] fields
|
1421
|
+
# Selector specifying which fields to include in a partial response.
|
1422
|
+
# @param [String] quota_user
|
1423
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1424
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1425
|
+
# @param [Google::Apis::RequestOptions] options
|
1426
|
+
# Request-specific options
|
1427
|
+
#
|
1428
|
+
# @yield [result, err] Result & error if block supplied
|
1429
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] parsed result object
|
1430
|
+
# @yieldparam err [StandardError] error object if request failed
|
1431
|
+
#
|
1432
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule]
|
1433
|
+
#
|
1434
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1435
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1436
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1437
|
+
def get_folder_security_health_analytics_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
1438
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1439
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule::Representation
|
1440
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule
|
1441
|
+
command.params['name'] = name unless name.nil?
|
1442
|
+
command.query['fields'] = fields unless fields.nil?
|
1443
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1444
|
+
execute_or_queue_command(command, &block)
|
1445
|
+
end
|
1446
|
+
|
1447
|
+
# Returns a list of all SecurityHealthAnalyticsCustomModules for the given
|
1448
|
+
# parent. This includes resident modules defined at the scope of the parent, and
|
1449
|
+
# inherited modules, inherited from CRM ancestors.
|
1450
|
+
# @param [String] parent
|
1451
|
+
# Required. Name of parent to list custom modules. Its format is "organizations/`
|
1452
|
+
# organization`/securityHealthAnalyticsSettings", "folders/`folder`/
|
1453
|
+
# securityHealthAnalyticsSettings", or "projects/`project`/
|
1454
|
+
# securityHealthAnalyticsSettings"
|
1455
|
+
# @param [Fixnum] page_size
|
1456
|
+
# The maximum number of results to return in a single response. Default is 10,
|
1457
|
+
# minimum is 1, maximum is 1000.
|
1458
|
+
# @param [String] page_token
|
1459
|
+
# The value returned by the last call indicating a continuation
|
1460
|
+
# @param [String] fields
|
1461
|
+
# Selector specifying which fields to include in a partial response.
|
1462
|
+
# @param [String] quota_user
|
1463
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1464
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1465
|
+
# @param [Google::Apis::RequestOptions] options
|
1466
|
+
# Request-specific options
|
1467
|
+
#
|
1468
|
+
# @yield [result, err] Result & error if block supplied
|
1469
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse] parsed result object
|
1470
|
+
# @yieldparam err [StandardError] error object if request failed
|
1471
|
+
#
|
1472
|
+
# @return [Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse]
|
1473
|
+
#
|
1474
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1475
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1476
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1477
|
+
def list_folder_security_health_analytics_setting_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1478
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules', options)
|
1479
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse::Representation
|
1480
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListSecurityHealthAnalyticsCustomModulesResponse
|
1481
|
+
command.params['parent'] = parent unless parent.nil?
|
1482
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1483
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1484
|
+
command.query['fields'] = fields unless fields.nil?
|
1485
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1486
|
+
execute_or_queue_command(command, &block)
|
1487
|
+
end
|
1488
|
+
|
1489
|
+
# Returns a list of all resident SecurityHealthAnalyticsCustomModules under the
|
1490
|
+
# given CRM parent and all of the parent’s CRM descendants.
|
1491
|
+
# @param [String] parent
|
1492
|
+
# Required. Name of parent to list descendant custom modules. Its format is "
|
1493
|
+
# organizations/`organization`/securityHealthAnalyticsSettings", "folders/`
|
1133
1494
|
# folder`/securityHealthAnalyticsSettings", or "projects/`project`/
|
1134
1495
|
# securityHealthAnalyticsSettings"
|
1135
1496
|
# @param [Fixnum] page_size
|
@@ -1181,7 +1542,9 @@ module Google
|
|
1181
1542
|
# numeric id containing 1-20 digits.
|
1182
1543
|
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
1183
1544
|
# @param [String] update_mask
|
1184
|
-
# The list of fields to
|
1545
|
+
# The list of fields to be updated. The only fields that can be updated are `
|
1546
|
+
# enablement_state` and `custom_config`. If empty or set to the wildcard value `*
|
1547
|
+
# `, both `enablement_state` and `custom_config` are updated.
|
1185
1548
|
# @param [String] fields
|
1186
1549
|
# Selector specifying which fields to include in a partial response.
|
1187
1550
|
# @param [String] quota_user
|
@@ -2229,7 +2592,9 @@ module Google
|
|
2229
2592
|
# Validates the given Event Threat Detection custom module.
|
2230
2593
|
# @param [String] parent
|
2231
2594
|
# Required. Resource name of the parent to validate the Custom Module under. Its
|
2232
|
-
# format is: * "organizations/`organization`/eventThreatDetectionSettings".
|
2595
|
+
# format is: * "organizations/`organization`/eventThreatDetectionSettings". * "
|
2596
|
+
# folders/`folder`/eventThreatDetectionSettings". * "projects/`project`/
|
2597
|
+
# eventThreatDetectionSettings".
|
2233
2598
|
# @param [Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleRequest] validate_event_threat_detection_custom_module_request_object
|
2234
2599
|
# @param [String] fields
|
2235
2600
|
# Selector specifying which fields to include in a partial response.
|
@@ -2260,10 +2625,14 @@ module Google
|
|
2260
2625
|
execute_or_queue_command(command, &block)
|
2261
2626
|
end
|
2262
2627
|
|
2263
|
-
# Creates
|
2628
|
+
# Creates a resident Event Threat Detection custom module at the scope of the
|
2629
|
+
# given Resource Manager parent, and also creates inherited custom modules for
|
2630
|
+
# all descendants of the given parent. These modules are enabled by default.
|
2264
2631
|
# @param [String] parent
|
2265
2632
|
# Required. The new custom module's parent. Its format is: * "organizations/`
|
2266
|
-
# organization`/eventThreatDetectionSettings".
|
2633
|
+
# organization`/eventThreatDetectionSettings". * "folders/`folder`/
|
2634
|
+
# eventThreatDetectionSettings". * "projects/`project`/
|
2635
|
+
# eventThreatDetectionSettings".
|
2267
2636
|
# @param [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule] event_threat_detection_custom_module_object
|
2268
2637
|
# @param [String] fields
|
2269
2638
|
# Selector specifying which fields to include in a partial response.
|
@@ -2294,10 +2663,14 @@ module Google
|
|
2294
2663
|
execute_or_queue_command(command, &block)
|
2295
2664
|
end
|
2296
2665
|
|
2297
|
-
# Deletes
|
2666
|
+
# Deletes the specified Event Threat Detection custom module and all of its
|
2667
|
+
# descendants in the Resource Manager hierarchy. This method is only supported
|
2668
|
+
# for resident custom modules.
|
2298
2669
|
# @param [String] name
|
2299
2670
|
# Required. Name of the custom module to delete. Its format is: * "organizations/
|
2300
|
-
# `organization`/eventThreatDetectionSettings/customModules/`module`".
|
2671
|
+
# `organization`/eventThreatDetectionSettings/customModules/`module`". * "
|
2672
|
+
# folders/`folder`/eventThreatDetectionSettings/customModules/`module`". * "
|
2673
|
+
# projects/`project`/eventThreatDetectionSettings/customModules/`module`".
|
2301
2674
|
# @param [String] fields
|
2302
2675
|
# Selector specifying which fields to include in a partial response.
|
2303
2676
|
# @param [String] quota_user
|
@@ -2328,7 +2701,9 @@ module Google
|
|
2328
2701
|
# Gets an Event Threat Detection custom module.
|
2329
2702
|
# @param [String] name
|
2330
2703
|
# Required. Name of the custom module to get. Its format is: * "organizations/`
|
2331
|
-
# organization`/eventThreatDetectionSettings/customModules/`module`".
|
2704
|
+
# organization`/eventThreatDetectionSettings/customModules/`module`". * "folders/
|
2705
|
+
# `folder`/eventThreatDetectionSettings/customModules/`module`". * "projects/`
|
2706
|
+
# project`/eventThreatDetectionSettings/customModules/`module`".
|
2332
2707
|
# @param [String] fields
|
2333
2708
|
# Selector specifying which fields to include in a partial response.
|
2334
2709
|
# @param [String] quota_user
|
@@ -2356,10 +2731,14 @@ module Google
|
|
2356
2731
|
execute_or_queue_command(command, &block)
|
2357
2732
|
end
|
2358
2733
|
|
2359
|
-
# Lists Event Threat Detection custom modules
|
2734
|
+
# Lists all Event Threat Detection custom modules for the given Resource Manager
|
2735
|
+
# parent. This includes resident modules defined at the scope of the parent
|
2736
|
+
# along with modules inherited from ancestors.
|
2360
2737
|
# @param [String] parent
|
2361
2738
|
# Required. Name of the parent to list custom modules under. Its format is: * "
|
2362
|
-
# organizations/`organization`/eventThreatDetectionSettings".
|
2739
|
+
# organizations/`organization`/eventThreatDetectionSettings". * "folders/`folder`
|
2740
|
+
# /eventThreatDetectionSettings". * "projects/`project`/
|
2741
|
+
# eventThreatDetectionSettings".
|
2363
2742
|
# @param [Fixnum] page_size
|
2364
2743
|
# The maximum number of modules to return. The service may return fewer than
|
2365
2744
|
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
@@ -2398,7 +2777,58 @@ module Google
|
|
2398
2777
|
execute_or_queue_command(command, &block)
|
2399
2778
|
end
|
2400
2779
|
|
2401
|
-
#
|
2780
|
+
# Lists all resident Event Threat Detection custom modules under the given
|
2781
|
+
# Resource Manager parent and its descendants.
|
2782
|
+
# @param [String] parent
|
2783
|
+
# Required. Name of the parent to list custom modules under. Its format is: * "
|
2784
|
+
# organizations/`organization`/eventThreatDetectionSettings". * "folders/`folder`
|
2785
|
+
# /eventThreatDetectionSettings". * "projects/`project`/
|
2786
|
+
# eventThreatDetectionSettings".
|
2787
|
+
# @param [Fixnum] page_size
|
2788
|
+
# The maximum number of modules to return. The service may return fewer than
|
2789
|
+
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
2790
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
2791
|
+
# @param [String] page_token
|
2792
|
+
# A page token, received from a previous `
|
2793
|
+
# ListDescendantEventThreatDetectionCustomModules` call. Provide this to
|
2794
|
+
# retrieve the subsequent page. When paginating, all other parameters provided
|
2795
|
+
# to `ListDescendantEventThreatDetectionCustomModules` must match the call that
|
2796
|
+
# provided the page token.
|
2797
|
+
# @param [String] fields
|
2798
|
+
# Selector specifying which fields to include in a partial response.
|
2799
|
+
# @param [String] quota_user
|
2800
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2801
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2802
|
+
# @param [Google::Apis::RequestOptions] options
|
2803
|
+
# Request-specific options
|
2804
|
+
#
|
2805
|
+
# @yield [result, err] Result & error if block supplied
|
2806
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse] parsed result object
|
2807
|
+
# @yieldparam err [StandardError] error object if request failed
|
2808
|
+
#
|
2809
|
+
# @return [Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse]
|
2810
|
+
#
|
2811
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2812
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2813
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2814
|
+
def list_organization_event_threat_detection_setting_custom_module_descendant(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2815
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules:listDescendant', options)
|
2816
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse::Representation
|
2817
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse
|
2818
|
+
command.params['parent'] = parent unless parent.nil?
|
2819
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2820
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2821
|
+
command.query['fields'] = fields unless fields.nil?
|
2822
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2823
|
+
execute_or_queue_command(command, &block)
|
2824
|
+
end
|
2825
|
+
|
2826
|
+
# Updates the Event Threat Detection custom module with the given name based on
|
2827
|
+
# the given update mask. Updating the enablement state is supported for both
|
2828
|
+
# resident and inherited modules (though resident modules cannot have an
|
2829
|
+
# enablement state of "inherited"). Updating the display name or configuration
|
2830
|
+
# of a module is supported for resident modules only. The type of a module
|
2831
|
+
# cannot be changed.
|
2402
2832
|
# @param [String] name
|
2403
2833
|
# Immutable. The resource name of the Event Threat Detection custom module. Its
|
2404
2834
|
# format is: * "organizations/`organization`/eventThreatDetectionSettings/
|
@@ -2425,14 +2855,96 @@ module Google
|
|
2425
2855
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2426
2856
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2427
2857
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2428
|
-
def patch_organization_event_threat_detection_setting_custom_module(name, event_threat_detection_custom_module_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2429
|
-
command = make_simple_command(:patch, 'v1/{+name}', options)
|
2430
|
-
command.request_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
2431
|
-
command.request_object = event_threat_detection_custom_module_object
|
2432
|
-
command.response_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
2433
|
-
command.response_class = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule
|
2434
|
-
command.params['name'] = name unless name.nil?
|
2435
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2858
|
+
def patch_organization_event_threat_detection_setting_custom_module(name, event_threat_detection_custom_module_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2859
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
2860
|
+
command.request_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
2861
|
+
command.request_object = event_threat_detection_custom_module_object
|
2862
|
+
command.response_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
2863
|
+
command.response_class = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule
|
2864
|
+
command.params['name'] = name unless name.nil?
|
2865
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2866
|
+
command.query['fields'] = fields unless fields.nil?
|
2867
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2868
|
+
execute_or_queue_command(command, &block)
|
2869
|
+
end
|
2870
|
+
|
2871
|
+
# Gets an effective Event Threat Detection custom module at the given level.
|
2872
|
+
# @param [String] name
|
2873
|
+
# Required. The resource name of the effective Event Threat Detection custom
|
2874
|
+
# module. Its format is: * "organizations/`organization`/
|
2875
|
+
# eventThreatDetectionSettings/effectiveCustomModules/`module`". * "folders/`
|
2876
|
+
# folder`/eventThreatDetectionSettings/effectiveCustomModules/`module`". * "
|
2877
|
+
# projects/`project`/eventThreatDetectionSettings/effectiveCustomModules/`module`
|
2878
|
+
# ".
|
2879
|
+
# @param [String] fields
|
2880
|
+
# Selector specifying which fields to include in a partial response.
|
2881
|
+
# @param [String] quota_user
|
2882
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2883
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2884
|
+
# @param [Google::Apis::RequestOptions] options
|
2885
|
+
# Request-specific options
|
2886
|
+
#
|
2887
|
+
# @yield [result, err] Result & error if block supplied
|
2888
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule] parsed result object
|
2889
|
+
# @yieldparam err [StandardError] error object if request failed
|
2890
|
+
#
|
2891
|
+
# @return [Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule]
|
2892
|
+
#
|
2893
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2894
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2895
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2896
|
+
def get_organization_event_threat_detection_setting_effective_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
2897
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2898
|
+
command.response_representation = Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule::Representation
|
2899
|
+
command.response_class = Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule
|
2900
|
+
command.params['name'] = name unless name.nil?
|
2901
|
+
command.query['fields'] = fields unless fields.nil?
|
2902
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2903
|
+
execute_or_queue_command(command, &block)
|
2904
|
+
end
|
2905
|
+
|
2906
|
+
# Lists all effective Event Threat Detection custom modules for the given parent.
|
2907
|
+
# This includes resident modules defined at the scope of the parent along with
|
2908
|
+
# modules inherited from its ancestors.
|
2909
|
+
# @param [String] parent
|
2910
|
+
# Required. Name of the parent to list custom modules for. Its format is: * "
|
2911
|
+
# organizations/`organization`/eventThreatDetectionSettings". * "folders/`folder`
|
2912
|
+
# /eventThreatDetectionSettings". * "projects/`project`/
|
2913
|
+
# eventThreatDetectionSettings".
|
2914
|
+
# @param [Fixnum] page_size
|
2915
|
+
# The maximum number of modules to return. The service may return fewer than
|
2916
|
+
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
2917
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
2918
|
+
# @param [String] page_token
|
2919
|
+
# A page token, received from a previous `
|
2920
|
+
# ListEffectiveEventThreatDetectionCustomModules` call. Provide this to retrieve
|
2921
|
+
# the subsequent page. When paginating, all other parameters provided to `
|
2922
|
+
# ListEffectiveEventThreatDetectionCustomModules` must match the call that
|
2923
|
+
# provided the page token.
|
2924
|
+
# @param [String] fields
|
2925
|
+
# Selector specifying which fields to include in a partial response.
|
2926
|
+
# @param [String] quota_user
|
2927
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2928
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2929
|
+
# @param [Google::Apis::RequestOptions] options
|
2930
|
+
# Request-specific options
|
2931
|
+
#
|
2932
|
+
# @yield [result, err] Result & error if block supplied
|
2933
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse] parsed result object
|
2934
|
+
# @yieldparam err [StandardError] error object if request failed
|
2935
|
+
#
|
2936
|
+
# @return [Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse]
|
2937
|
+
#
|
2938
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2939
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2940
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2941
|
+
def list_organization_event_threat_detection_setting_effective_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2942
|
+
command = make_simple_command(:get, 'v1/{+parent}/effectiveCustomModules', options)
|
2943
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse::Representation
|
2944
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse
|
2945
|
+
command.params['parent'] = parent unless parent.nil?
|
2946
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2947
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2436
2948
|
command.query['fields'] = fields unless fields.nil?
|
2437
2949
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2438
2950
|
execute_or_queue_command(command, &block)
|
@@ -3493,7 +4005,9 @@ module Google
|
|
3493
4005
|
# numeric id containing 1-20 digits.
|
3494
4006
|
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
3495
4007
|
# @param [String] update_mask
|
3496
|
-
# The list of fields to
|
4008
|
+
# The list of fields to be updated. The only fields that can be updated are `
|
4009
|
+
# enablement_state` and `custom_config`. If empty or set to the wildcard value `*
|
4010
|
+
# `, both `enablement_state` and `custom_config` are updated.
|
3497
4011
|
# @param [String] fields
|
3498
4012
|
# Selector specifying which fields to include in a partial response.
|
3499
4013
|
# @param [String] quota_user
|
@@ -4715,47 +5229,278 @@ module Google
|
|
4715
5229
|
# Request-specific options
|
4716
5230
|
#
|
4717
5231
|
# @yield [result, err] Result & error if block supplied
|
4718
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::ListAssetsResponse] parsed result object
|
5232
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListAssetsResponse] parsed result object
|
5233
|
+
# @yieldparam err [StandardError] error object if request failed
|
5234
|
+
#
|
5235
|
+
# @return [Google::Apis::SecuritycenterV1::ListAssetsResponse]
|
5236
|
+
#
|
5237
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5238
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5239
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5240
|
+
def list_project_assets(parent, compare_duration: nil, field_mask: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5241
|
+
command = make_simple_command(:get, 'v1/{+parent}/assets', options)
|
5242
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListAssetsResponse::Representation
|
5243
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListAssetsResponse
|
5244
|
+
command.params['parent'] = parent unless parent.nil?
|
5245
|
+
command.query['compareDuration'] = compare_duration unless compare_duration.nil?
|
5246
|
+
command.query['fieldMask'] = field_mask unless field_mask.nil?
|
5247
|
+
command.query['filter'] = filter unless filter.nil?
|
5248
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
5249
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5250
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5251
|
+
command.query['readTime'] = read_time unless read_time.nil?
|
5252
|
+
command.query['fields'] = fields unless fields.nil?
|
5253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5254
|
+
execute_or_queue_command(command, &block)
|
5255
|
+
end
|
5256
|
+
|
5257
|
+
# Updates security marks.
|
5258
|
+
# @param [String] name
|
5259
|
+
# The relative resource name of the SecurityMarks. See: https://cloud.google.com/
|
5260
|
+
# apis/design/resource_names#relative_resource_name Examples: "organizations/`
|
5261
|
+
# organization_id`/assets/`asset_id`/securityMarks" "organizations/`
|
5262
|
+
# organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
|
5263
|
+
# @param [Google::Apis::SecuritycenterV1::SecurityMarks] security_marks_object
|
5264
|
+
# @param [String] start_time
|
5265
|
+
# The time at which the updated SecurityMarks take effect. If not set uses
|
5266
|
+
# current server time. Updates will be applied to the SecurityMarks that are
|
5267
|
+
# active immediately preceding this time. Must be earlier or equal to the server
|
5268
|
+
# time.
|
5269
|
+
# @param [String] update_mask
|
5270
|
+
# The FieldMask to use when updating the security marks resource. The field mask
|
5271
|
+
# must not contain duplicate fields. If empty or set to "marks", all marks will
|
5272
|
+
# be replaced. Individual marks can be updated using "marks.".
|
5273
|
+
# @param [String] fields
|
5274
|
+
# Selector specifying which fields to include in a partial response.
|
5275
|
+
# @param [String] quota_user
|
5276
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5277
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5278
|
+
# @param [Google::Apis::RequestOptions] options
|
5279
|
+
# Request-specific options
|
5280
|
+
#
|
5281
|
+
# @yield [result, err] Result & error if block supplied
|
5282
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::SecurityMarks] parsed result object
|
5283
|
+
# @yieldparam err [StandardError] error object if request failed
|
5284
|
+
#
|
5285
|
+
# @return [Google::Apis::SecuritycenterV1::SecurityMarks]
|
5286
|
+
#
|
5287
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5288
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5289
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5290
|
+
def update_project_asset_security_marks(name, security_marks_object = nil, start_time: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5291
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
5292
|
+
command.request_representation = Google::Apis::SecuritycenterV1::SecurityMarks::Representation
|
5293
|
+
command.request_object = security_marks_object
|
5294
|
+
command.response_representation = Google::Apis::SecuritycenterV1::SecurityMarks::Representation
|
5295
|
+
command.response_class = Google::Apis::SecuritycenterV1::SecurityMarks
|
5296
|
+
command.params['name'] = name unless name.nil?
|
5297
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
5298
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
5299
|
+
command.query['fields'] = fields unless fields.nil?
|
5300
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5301
|
+
execute_or_queue_command(command, &block)
|
5302
|
+
end
|
5303
|
+
|
5304
|
+
# Creates a BigQuery export.
|
5305
|
+
# @param [String] parent
|
5306
|
+
# Required. The name of the parent resource of the new BigQuery export. Its
|
5307
|
+
# format is "organizations/[organization_id]", "folders/[folder_id]", or "
|
5308
|
+
# projects/[project_id]".
|
5309
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] google_cloud_securitycenter_v1_big_query_export_object
|
5310
|
+
# @param [String] big_query_export_id
|
5311
|
+
# Required. Unique identifier provided by the client within the parent scope. It
|
5312
|
+
# must consist of only lowercase letters, numbers, and hyphens, must start with
|
5313
|
+
# a letter, must end with either a letter or a number, and must be 63 characters
|
5314
|
+
# or less.
|
5315
|
+
# @param [String] fields
|
5316
|
+
# Selector specifying which fields to include in a partial response.
|
5317
|
+
# @param [String] quota_user
|
5318
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5319
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5320
|
+
# @param [Google::Apis::RequestOptions] options
|
5321
|
+
# Request-specific options
|
5322
|
+
#
|
5323
|
+
# @yield [result, err] Result & error if block supplied
|
5324
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
5325
|
+
# @yieldparam err [StandardError] error object if request failed
|
5326
|
+
#
|
5327
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
5328
|
+
#
|
5329
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5330
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5331
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5332
|
+
def create_project_big_query_export(parent, google_cloud_securitycenter_v1_big_query_export_object = nil, big_query_export_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5333
|
+
command = make_simple_command(:post, 'v1/{+parent}/bigQueryExports', options)
|
5334
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
5335
|
+
command.request_object = google_cloud_securitycenter_v1_big_query_export_object
|
5336
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
5337
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
5338
|
+
command.params['parent'] = parent unless parent.nil?
|
5339
|
+
command.query['bigQueryExportId'] = big_query_export_id unless big_query_export_id.nil?
|
5340
|
+
command.query['fields'] = fields unless fields.nil?
|
5341
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5342
|
+
execute_or_queue_command(command, &block)
|
5343
|
+
end
|
5344
|
+
|
5345
|
+
# Deletes an existing BigQuery export.
|
5346
|
+
# @param [String] name
|
5347
|
+
# Required. The name of the BigQuery export to delete. Its format is
|
5348
|
+
# organizations/`organization`/bigQueryExports/`export_id`, folders/`folder`/
|
5349
|
+
# bigQueryExports/`export_id`, or projects/`project`/bigQueryExports/`export_id`
|
5350
|
+
# @param [String] fields
|
5351
|
+
# Selector specifying which fields to include in a partial response.
|
5352
|
+
# @param [String] quota_user
|
5353
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5354
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5355
|
+
# @param [Google::Apis::RequestOptions] options
|
5356
|
+
# Request-specific options
|
5357
|
+
#
|
5358
|
+
# @yield [result, err] Result & error if block supplied
|
5359
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
5360
|
+
# @yieldparam err [StandardError] error object if request failed
|
5361
|
+
#
|
5362
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
5363
|
+
#
|
5364
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5365
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5366
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5367
|
+
def delete_project_big_query_export(name, fields: nil, quota_user: nil, options: nil, &block)
|
5368
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
5369
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
5370
|
+
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
5371
|
+
command.params['name'] = name unless name.nil?
|
5372
|
+
command.query['fields'] = fields unless fields.nil?
|
5373
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5374
|
+
execute_or_queue_command(command, &block)
|
5375
|
+
end
|
5376
|
+
|
5377
|
+
# Gets a BigQuery export.
|
5378
|
+
# @param [String] name
|
5379
|
+
# Required. Name of the BigQuery export to retrieve. Its format is organizations/
|
5380
|
+
# `organization`/bigQueryExports/`export_id`, folders/`folder`/bigQueryExports/`
|
5381
|
+
# export_id`, or projects/`project`/bigQueryExports/`export_id`
|
5382
|
+
# @param [String] fields
|
5383
|
+
# Selector specifying which fields to include in a partial response.
|
5384
|
+
# @param [String] quota_user
|
5385
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5386
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5387
|
+
# @param [Google::Apis::RequestOptions] options
|
5388
|
+
# Request-specific options
|
5389
|
+
#
|
5390
|
+
# @yield [result, err] Result & error if block supplied
|
5391
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
5392
|
+
# @yieldparam err [StandardError] error object if request failed
|
5393
|
+
#
|
5394
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
5395
|
+
#
|
5396
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5397
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5398
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5399
|
+
def get_project_big_query_export(name, fields: nil, quota_user: nil, options: nil, &block)
|
5400
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
5401
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
5402
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
5403
|
+
command.params['name'] = name unless name.nil?
|
5404
|
+
command.query['fields'] = fields unless fields.nil?
|
5405
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5406
|
+
execute_or_queue_command(command, &block)
|
5407
|
+
end
|
5408
|
+
|
5409
|
+
# Lists BigQuery exports. Note that when requesting BigQuery exports at a given
|
5410
|
+
# level all exports under that level are also returned e.g. if requesting
|
5411
|
+
# BigQuery exports under a folder, then all BigQuery exports immediately under
|
5412
|
+
# the folder plus the ones created under the projects within the folder are
|
5413
|
+
# returned.
|
5414
|
+
# @param [String] parent
|
5415
|
+
# Required. The parent, which owns the collection of BigQuery exports. Its
|
5416
|
+
# format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[
|
5417
|
+
# project_id]".
|
5418
|
+
# @param [Fixnum] page_size
|
5419
|
+
# The maximum number of configs to return. The service may return fewer than
|
5420
|
+
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
5421
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
5422
|
+
# @param [String] page_token
|
5423
|
+
# A page token, received from a previous `ListBigQueryExports` call. Provide
|
5424
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
5425
|
+
# provided to `ListBigQueryExports` must match the call that provided the page
|
5426
|
+
# token.
|
5427
|
+
# @param [String] fields
|
5428
|
+
# Selector specifying which fields to include in a partial response.
|
5429
|
+
# @param [String] quota_user
|
5430
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5431
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5432
|
+
# @param [Google::Apis::RequestOptions] options
|
5433
|
+
# Request-specific options
|
5434
|
+
#
|
5435
|
+
# @yield [result, err] Result & error if block supplied
|
5436
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse] parsed result object
|
5437
|
+
# @yieldparam err [StandardError] error object if request failed
|
5438
|
+
#
|
5439
|
+
# @return [Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse]
|
5440
|
+
#
|
5441
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5442
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5443
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5444
|
+
def list_project_big_query_exports(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5445
|
+
command = make_simple_command(:get, 'v1/{+parent}/bigQueryExports', options)
|
5446
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse::Representation
|
5447
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse
|
5448
|
+
command.params['parent'] = parent unless parent.nil?
|
5449
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5450
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5451
|
+
command.query['fields'] = fields unless fields.nil?
|
5452
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5453
|
+
execute_or_queue_command(command, &block)
|
5454
|
+
end
|
5455
|
+
|
5456
|
+
# Updates a BigQuery export.
|
5457
|
+
# @param [String] name
|
5458
|
+
# The relative resource name of this export. See: https://cloud.google.com/apis/
|
5459
|
+
# design/resource_names#relative_resource_name. Example format: "organizations/`
|
5460
|
+
# organization_id`/bigQueryExports/`export_id`" Example format: "folders/`
|
5461
|
+
# folder_id`/bigQueryExports/`export_id`" Example format: "projects/`project_id`/
|
5462
|
+
# bigQueryExports/`export_id`" This field is provided in responses, and is
|
5463
|
+
# ignored when provided in create requests.
|
5464
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] google_cloud_securitycenter_v1_big_query_export_object
|
5465
|
+
# @param [String] update_mask
|
5466
|
+
# The list of fields to be updated. If empty all mutable fields will be updated.
|
5467
|
+
# @param [String] fields
|
5468
|
+
# Selector specifying which fields to include in a partial response.
|
5469
|
+
# @param [String] quota_user
|
5470
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5471
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5472
|
+
# @param [Google::Apis::RequestOptions] options
|
5473
|
+
# Request-specific options
|
5474
|
+
#
|
5475
|
+
# @yield [result, err] Result & error if block supplied
|
5476
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
4719
5477
|
# @yieldparam err [StandardError] error object if request failed
|
4720
5478
|
#
|
4721
|
-
# @return [Google::Apis::SecuritycenterV1::
|
5479
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
4722
5480
|
#
|
4723
5481
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4724
5482
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4725
5483
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4726
|
-
def
|
4727
|
-
command = make_simple_command(:
|
4728
|
-
command.
|
4729
|
-
command.
|
4730
|
-
command.
|
4731
|
-
command.
|
4732
|
-
command.
|
4733
|
-
command.query['
|
4734
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
4735
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
4736
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
4737
|
-
command.query['readTime'] = read_time unless read_time.nil?
|
5484
|
+
def patch_project_big_query_export(name, google_cloud_securitycenter_v1_big_query_export_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5485
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
5486
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
5487
|
+
command.request_object = google_cloud_securitycenter_v1_big_query_export_object
|
5488
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
5489
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
5490
|
+
command.params['name'] = name unless name.nil?
|
5491
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
4738
5492
|
command.query['fields'] = fields unless fields.nil?
|
4739
5493
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4740
5494
|
execute_or_queue_command(command, &block)
|
4741
5495
|
end
|
4742
5496
|
|
4743
|
-
#
|
4744
|
-
# @param [String]
|
4745
|
-
#
|
4746
|
-
#
|
4747
|
-
#
|
4748
|
-
#
|
4749
|
-
# @param [Google::Apis::SecuritycenterV1::
|
4750
|
-
# @param [String] start_time
|
4751
|
-
# The time at which the updated SecurityMarks take effect. If not set uses
|
4752
|
-
# current server time. Updates will be applied to the SecurityMarks that are
|
4753
|
-
# active immediately preceding this time. Must be earlier or equal to the server
|
4754
|
-
# time.
|
4755
|
-
# @param [String] update_mask
|
4756
|
-
# The FieldMask to use when updating the security marks resource. The field mask
|
4757
|
-
# must not contain duplicate fields. If empty or set to "marks", all marks will
|
4758
|
-
# be replaced. Individual marks can be updated using "marks.".
|
5497
|
+
# Validates the given Event Threat Detection custom module.
|
5498
|
+
# @param [String] parent
|
5499
|
+
# Required. Resource name of the parent to validate the Custom Module under. Its
|
5500
|
+
# format is: * "organizations/`organization`/eventThreatDetectionSettings". * "
|
5501
|
+
# folders/`folder`/eventThreatDetectionSettings". * "projects/`project`/
|
5502
|
+
# eventThreatDetectionSettings".
|
5503
|
+
# @param [Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleRequest] validate_event_threat_detection_custom_module_request_object
|
4759
5504
|
# @param [String] fields
|
4760
5505
|
# Selector specifying which fields to include in a partial response.
|
4761
5506
|
# @param [String] quota_user
|
@@ -4765,39 +5510,35 @@ module Google
|
|
4765
5510
|
# Request-specific options
|
4766
5511
|
#
|
4767
5512
|
# @yield [result, err] Result & error if block supplied
|
4768
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
5513
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleResponse] parsed result object
|
4769
5514
|
# @yieldparam err [StandardError] error object if request failed
|
4770
5515
|
#
|
4771
|
-
# @return [Google::Apis::SecuritycenterV1::
|
5516
|
+
# @return [Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleResponse]
|
4772
5517
|
#
|
4773
5518
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4774
5519
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4775
5520
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4776
|
-
def
|
4777
|
-
command = make_simple_command(:
|
4778
|
-
command.request_representation = Google::Apis::SecuritycenterV1::
|
4779
|
-
command.request_object =
|
4780
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
4781
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
4782
|
-
command.params['
|
4783
|
-
command.query['startTime'] = start_time unless start_time.nil?
|
4784
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
5521
|
+
def validate_project_event_threat_detection_setting_custom_module(parent, validate_event_threat_detection_custom_module_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5522
|
+
command = make_simple_command(:post, 'v1/{+parent}:validateCustomModule', options)
|
5523
|
+
command.request_representation = Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleRequest::Representation
|
5524
|
+
command.request_object = validate_event_threat_detection_custom_module_request_object
|
5525
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleResponse::Representation
|
5526
|
+
command.response_class = Google::Apis::SecuritycenterV1::ValidateEventThreatDetectionCustomModuleResponse
|
5527
|
+
command.params['parent'] = parent unless parent.nil?
|
4785
5528
|
command.query['fields'] = fields unless fields.nil?
|
4786
5529
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4787
5530
|
execute_or_queue_command(command, &block)
|
4788
5531
|
end
|
4789
5532
|
|
4790
|
-
# Creates a
|
5533
|
+
# Creates a resident Event Threat Detection custom module at the scope of the
|
5534
|
+
# given Resource Manager parent, and also creates inherited custom modules for
|
5535
|
+
# all descendants of the given parent. These modules are enabled by default.
|
4791
5536
|
# @param [String] parent
|
4792
|
-
# Required. The
|
4793
|
-
#
|
4794
|
-
#
|
4795
|
-
#
|
4796
|
-
# @param [
|
4797
|
-
# Required. Unique identifier provided by the client within the parent scope. It
|
4798
|
-
# must consist of only lowercase letters, numbers, and hyphens, must start with
|
4799
|
-
# a letter, must end with either a letter or a number, and must be 63 characters
|
4800
|
-
# or less.
|
5537
|
+
# Required. The new custom module's parent. Its format is: * "organizations/`
|
5538
|
+
# organization`/eventThreatDetectionSettings". * "folders/`folder`/
|
5539
|
+
# eventThreatDetectionSettings". * "projects/`project`/
|
5540
|
+
# eventThreatDetectionSettings".
|
5541
|
+
# @param [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule] event_threat_detection_custom_module_object
|
4801
5542
|
# @param [String] fields
|
4802
5543
|
# Selector specifying which fields to include in a partial response.
|
4803
5544
|
# @param [String] quota_user
|
@@ -4807,32 +5548,34 @@ module Google
|
|
4807
5548
|
# Request-specific options
|
4808
5549
|
#
|
4809
5550
|
# @yield [result, err] Result & error if block supplied
|
4810
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
5551
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule] parsed result object
|
4811
5552
|
# @yieldparam err [StandardError] error object if request failed
|
4812
5553
|
#
|
4813
|
-
# @return [Google::Apis::SecuritycenterV1::
|
5554
|
+
# @return [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule]
|
4814
5555
|
#
|
4815
5556
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4816
5557
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4817
5558
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4818
|
-
def
|
4819
|
-
command = make_simple_command(:post, 'v1/{+parent}/
|
4820
|
-
command.request_representation = Google::Apis::SecuritycenterV1::
|
4821
|
-
command.request_object =
|
4822
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
4823
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
5559
|
+
def create_project_event_threat_detection_setting_custom_module(parent, event_threat_detection_custom_module_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5560
|
+
command = make_simple_command(:post, 'v1/{+parent}/customModules', options)
|
5561
|
+
command.request_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
5562
|
+
command.request_object = event_threat_detection_custom_module_object
|
5563
|
+
command.response_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
5564
|
+
command.response_class = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule
|
4824
5565
|
command.params['parent'] = parent unless parent.nil?
|
4825
|
-
command.query['bigQueryExportId'] = big_query_export_id unless big_query_export_id.nil?
|
4826
5566
|
command.query['fields'] = fields unless fields.nil?
|
4827
5567
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4828
5568
|
execute_or_queue_command(command, &block)
|
4829
5569
|
end
|
4830
5570
|
|
4831
|
-
# Deletes
|
5571
|
+
# Deletes the specified Event Threat Detection custom module and all of its
|
5572
|
+
# descendants in the Resource Manager hierarchy. This method is only supported
|
5573
|
+
# for resident custom modules.
|
4832
5574
|
# @param [String] name
|
4833
|
-
# Required.
|
4834
|
-
#
|
4835
|
-
#
|
5575
|
+
# Required. Name of the custom module to delete. Its format is: * "organizations/
|
5576
|
+
# `organization`/eventThreatDetectionSettings/customModules/`module`". * "
|
5577
|
+
# folders/`folder`/eventThreatDetectionSettings/customModules/`module`". * "
|
5578
|
+
# projects/`project`/eventThreatDetectionSettings/customModules/`module`".
|
4836
5579
|
# @param [String] fields
|
4837
5580
|
# Selector specifying which fields to include in a partial response.
|
4838
5581
|
# @param [String] quota_user
|
@@ -4850,7 +5593,7 @@ module Google
|
|
4850
5593
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4851
5594
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4852
5595
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4853
|
-
def
|
5596
|
+
def delete_project_event_threat_detection_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
4854
5597
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
4855
5598
|
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
4856
5599
|
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
@@ -4860,11 +5603,12 @@ module Google
|
|
4860
5603
|
execute_or_queue_command(command, &block)
|
4861
5604
|
end
|
4862
5605
|
|
4863
|
-
# Gets
|
5606
|
+
# Gets an Event Threat Detection custom module.
|
4864
5607
|
# @param [String] name
|
4865
|
-
# Required. Name of the
|
4866
|
-
#
|
4867
|
-
#
|
5608
|
+
# Required. Name of the custom module to get. Its format is: * "organizations/`
|
5609
|
+
# organization`/eventThreatDetectionSettings/customModules/`module`". * "folders/
|
5610
|
+
# `folder`/eventThreatDetectionSettings/customModules/`module`". * "projects/`
|
5611
|
+
# project`/eventThreatDetectionSettings/customModules/`module`".
|
4868
5612
|
# @param [String] fields
|
4869
5613
|
# Selector specifying which fields to include in a partial response.
|
4870
5614
|
# @param [String] quota_user
|
@@ -4874,42 +5618,41 @@ module Google
|
|
4874
5618
|
# Request-specific options
|
4875
5619
|
#
|
4876
5620
|
# @yield [result, err] Result & error if block supplied
|
4877
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
5621
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule] parsed result object
|
4878
5622
|
# @yieldparam err [StandardError] error object if request failed
|
4879
5623
|
#
|
4880
|
-
# @return [Google::Apis::SecuritycenterV1::
|
5624
|
+
# @return [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule]
|
4881
5625
|
#
|
4882
5626
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4883
5627
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4884
5628
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4885
|
-
def
|
5629
|
+
def get_project_event_threat_detection_setting_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
4886
5630
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
4887
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
4888
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
5631
|
+
command.response_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
5632
|
+
command.response_class = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule
|
4889
5633
|
command.params['name'] = name unless name.nil?
|
4890
5634
|
command.query['fields'] = fields unless fields.nil?
|
4891
5635
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4892
5636
|
execute_or_queue_command(command, &block)
|
4893
5637
|
end
|
4894
5638
|
|
4895
|
-
# Lists
|
4896
|
-
#
|
4897
|
-
#
|
4898
|
-
# the folder plus the ones created under the projects within the folder are
|
4899
|
-
# returned.
|
5639
|
+
# Lists all Event Threat Detection custom modules for the given Resource Manager
|
5640
|
+
# parent. This includes resident modules defined at the scope of the parent
|
5641
|
+
# along with modules inherited from ancestors.
|
4900
5642
|
# @param [String] parent
|
4901
|
-
# Required.
|
4902
|
-
#
|
4903
|
-
#
|
5643
|
+
# Required. Name of the parent to list custom modules under. Its format is: * "
|
5644
|
+
# organizations/`organization`/eventThreatDetectionSettings". * "folders/`folder`
|
5645
|
+
# /eventThreatDetectionSettings". * "projects/`project`/
|
5646
|
+
# eventThreatDetectionSettings".
|
4904
5647
|
# @param [Fixnum] page_size
|
4905
|
-
# The maximum number of
|
5648
|
+
# The maximum number of modules to return. The service may return fewer than
|
4906
5649
|
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
4907
5650
|
# value is 1000; values above 1000 will be coerced to 1000.
|
4908
5651
|
# @param [String] page_token
|
4909
|
-
# A page token, received from a previous `
|
4910
|
-
# this to retrieve the subsequent page. When paginating, all other
|
4911
|
-
# provided to `
|
4912
|
-
# token.
|
5652
|
+
# A page token, received from a previous `ListEventThreatDetectionCustomModules`
|
5653
|
+
# call. Provide this to retrieve the subsequent page. When paginating, all other
|
5654
|
+
# parameters provided to `ListEventThreatDetectionCustomModules` must match the
|
5655
|
+
# call that provided the page token.
|
4913
5656
|
# @param [String] fields
|
4914
5657
|
# Selector specifying which fields to include in a partial response.
|
4915
5658
|
# @param [String] quota_user
|
@@ -4919,18 +5662,18 @@ module Google
|
|
4919
5662
|
# Request-specific options
|
4920
5663
|
#
|
4921
5664
|
# @yield [result, err] Result & error if block supplied
|
4922
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
5665
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListEventThreatDetectionCustomModulesResponse] parsed result object
|
4923
5666
|
# @yieldparam err [StandardError] error object if request failed
|
4924
5667
|
#
|
4925
|
-
# @return [Google::Apis::SecuritycenterV1::
|
5668
|
+
# @return [Google::Apis::SecuritycenterV1::ListEventThreatDetectionCustomModulesResponse]
|
4926
5669
|
#
|
4927
5670
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4928
5671
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4929
5672
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4930
|
-
def
|
4931
|
-
command = make_simple_command(:get, 'v1/{+parent}/
|
4932
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
4933
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
5673
|
+
def list_project_event_threat_detection_setting_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5674
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules', options)
|
5675
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListEventThreatDetectionCustomModulesResponse::Representation
|
5676
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListEventThreatDetectionCustomModulesResponse
|
4934
5677
|
command.params['parent'] = parent unless parent.nil?
|
4935
5678
|
command.query['pageSize'] = page_size unless page_size.nil?
|
4936
5679
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -4939,15 +5682,65 @@ module Google
|
|
4939
5682
|
execute_or_queue_command(command, &block)
|
4940
5683
|
end
|
4941
5684
|
|
4942
|
-
#
|
5685
|
+
# Lists all resident Event Threat Detection custom modules under the given
|
5686
|
+
# Resource Manager parent and its descendants.
|
5687
|
+
# @param [String] parent
|
5688
|
+
# Required. Name of the parent to list custom modules under. Its format is: * "
|
5689
|
+
# organizations/`organization`/eventThreatDetectionSettings". * "folders/`folder`
|
5690
|
+
# /eventThreatDetectionSettings". * "projects/`project`/
|
5691
|
+
# eventThreatDetectionSettings".
|
5692
|
+
# @param [Fixnum] page_size
|
5693
|
+
# The maximum number of modules to return. The service may return fewer than
|
5694
|
+
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
5695
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
5696
|
+
# @param [String] page_token
|
5697
|
+
# A page token, received from a previous `
|
5698
|
+
# ListDescendantEventThreatDetectionCustomModules` call. Provide this to
|
5699
|
+
# retrieve the subsequent page. When paginating, all other parameters provided
|
5700
|
+
# to `ListDescendantEventThreatDetectionCustomModules` must match the call that
|
5701
|
+
# provided the page token.
|
5702
|
+
# @param [String] fields
|
5703
|
+
# Selector specifying which fields to include in a partial response.
|
5704
|
+
# @param [String] quota_user
|
5705
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5706
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5707
|
+
# @param [Google::Apis::RequestOptions] options
|
5708
|
+
# Request-specific options
|
5709
|
+
#
|
5710
|
+
# @yield [result, err] Result & error if block supplied
|
5711
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse] parsed result object
|
5712
|
+
# @yieldparam err [StandardError] error object if request failed
|
5713
|
+
#
|
5714
|
+
# @return [Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse]
|
5715
|
+
#
|
5716
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5717
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5718
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5719
|
+
def list_project_event_threat_detection_setting_custom_module_descendant(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5720
|
+
command = make_simple_command(:get, 'v1/{+parent}/customModules:listDescendant', options)
|
5721
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse::Representation
|
5722
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListDescendantEventThreatDetectionCustomModulesResponse
|
5723
|
+
command.params['parent'] = parent unless parent.nil?
|
5724
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5725
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5726
|
+
command.query['fields'] = fields unless fields.nil?
|
5727
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5728
|
+
execute_or_queue_command(command, &block)
|
5729
|
+
end
|
5730
|
+
|
5731
|
+
# Updates the Event Threat Detection custom module with the given name based on
|
5732
|
+
# the given update mask. Updating the enablement state is supported for both
|
5733
|
+
# resident and inherited modules (though resident modules cannot have an
|
5734
|
+
# enablement state of "inherited"). Updating the display name or configuration
|
5735
|
+
# of a module is supported for resident modules only. The type of a module
|
5736
|
+
# cannot be changed.
|
4943
5737
|
# @param [String] name
|
4944
|
-
# The
|
4945
|
-
#
|
4946
|
-
#
|
4947
|
-
#
|
4948
|
-
#
|
4949
|
-
#
|
4950
|
-
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] google_cloud_securitycenter_v1_big_query_export_object
|
5738
|
+
# Immutable. The resource name of the Event Threat Detection custom module. Its
|
5739
|
+
# format is: * "organizations/`organization`/eventThreatDetectionSettings/
|
5740
|
+
# customModules/`module`". * "folders/`folder`/eventThreatDetectionSettings/
|
5741
|
+
# customModules/`module`". * "projects/`project`/eventThreatDetectionSettings/
|
5742
|
+
# customModules/`module`".
|
5743
|
+
# @param [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule] event_threat_detection_custom_module_object
|
4951
5744
|
# @param [String] update_mask
|
4952
5745
|
# The list of fields to be updated. If empty all mutable fields will be updated.
|
4953
5746
|
# @param [String] fields
|
@@ -4959,20 +5752,20 @@ module Google
|
|
4959
5752
|
# Request-specific options
|
4960
5753
|
#
|
4961
5754
|
# @yield [result, err] Result & error if block supplied
|
4962
|
-
# @yieldparam result [Google::Apis::SecuritycenterV1::
|
5755
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule] parsed result object
|
4963
5756
|
# @yieldparam err [StandardError] error object if request failed
|
4964
5757
|
#
|
4965
|
-
# @return [Google::Apis::SecuritycenterV1::
|
5758
|
+
# @return [Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule]
|
4966
5759
|
#
|
4967
5760
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4968
5761
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4969
5762
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4970
|
-
def
|
5763
|
+
def patch_project_event_threat_detection_setting_custom_module(name, event_threat_detection_custom_module_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4971
5764
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
4972
|
-
command.request_representation = Google::Apis::SecuritycenterV1::
|
4973
|
-
command.request_object =
|
4974
|
-
command.response_representation = Google::Apis::SecuritycenterV1::
|
4975
|
-
command.response_class = Google::Apis::SecuritycenterV1::
|
5765
|
+
command.request_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
5766
|
+
command.request_object = event_threat_detection_custom_module_object
|
5767
|
+
command.response_representation = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule::Representation
|
5768
|
+
command.response_class = Google::Apis::SecuritycenterV1::EventThreatDetectionCustomModule
|
4976
5769
|
command.params['name'] = name unless name.nil?
|
4977
5770
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
4978
5771
|
command.query['fields'] = fields unless fields.nil?
|
@@ -4980,6 +5773,88 @@ module Google
|
|
4980
5773
|
execute_or_queue_command(command, &block)
|
4981
5774
|
end
|
4982
5775
|
|
5776
|
+
# Gets an effective Event Threat Detection custom module at the given level.
|
5777
|
+
# @param [String] name
|
5778
|
+
# Required. The resource name of the effective Event Threat Detection custom
|
5779
|
+
# module. Its format is: * "organizations/`organization`/
|
5780
|
+
# eventThreatDetectionSettings/effectiveCustomModules/`module`". * "folders/`
|
5781
|
+
# folder`/eventThreatDetectionSettings/effectiveCustomModules/`module`". * "
|
5782
|
+
# projects/`project`/eventThreatDetectionSettings/effectiveCustomModules/`module`
|
5783
|
+
# ".
|
5784
|
+
# @param [String] fields
|
5785
|
+
# Selector specifying which fields to include in a partial response.
|
5786
|
+
# @param [String] quota_user
|
5787
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5788
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5789
|
+
# @param [Google::Apis::RequestOptions] options
|
5790
|
+
# Request-specific options
|
5791
|
+
#
|
5792
|
+
# @yield [result, err] Result & error if block supplied
|
5793
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule] parsed result object
|
5794
|
+
# @yieldparam err [StandardError] error object if request failed
|
5795
|
+
#
|
5796
|
+
# @return [Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule]
|
5797
|
+
#
|
5798
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5799
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5800
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5801
|
+
def get_project_event_threat_detection_setting_effective_custom_module(name, fields: nil, quota_user: nil, options: nil, &block)
|
5802
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
5803
|
+
command.response_representation = Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule::Representation
|
5804
|
+
command.response_class = Google::Apis::SecuritycenterV1::EffectiveEventThreatDetectionCustomModule
|
5805
|
+
command.params['name'] = name unless name.nil?
|
5806
|
+
command.query['fields'] = fields unless fields.nil?
|
5807
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5808
|
+
execute_or_queue_command(command, &block)
|
5809
|
+
end
|
5810
|
+
|
5811
|
+
# Lists all effective Event Threat Detection custom modules for the given parent.
|
5812
|
+
# This includes resident modules defined at the scope of the parent along with
|
5813
|
+
# modules inherited from its ancestors.
|
5814
|
+
# @param [String] parent
|
5815
|
+
# Required. Name of the parent to list custom modules for. Its format is: * "
|
5816
|
+
# organizations/`organization`/eventThreatDetectionSettings". * "folders/`folder`
|
5817
|
+
# /eventThreatDetectionSettings". * "projects/`project`/
|
5818
|
+
# eventThreatDetectionSettings".
|
5819
|
+
# @param [Fixnum] page_size
|
5820
|
+
# The maximum number of modules to return. The service may return fewer than
|
5821
|
+
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
5822
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
5823
|
+
# @param [String] page_token
|
5824
|
+
# A page token, received from a previous `
|
5825
|
+
# ListEffectiveEventThreatDetectionCustomModules` call. Provide this to retrieve
|
5826
|
+
# the subsequent page. When paginating, all other parameters provided to `
|
5827
|
+
# ListEffectiveEventThreatDetectionCustomModules` must match the call that
|
5828
|
+
# provided the page token.
|
5829
|
+
# @param [String] fields
|
5830
|
+
# Selector specifying which fields to include in a partial response.
|
5831
|
+
# @param [String] quota_user
|
5832
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5833
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5834
|
+
# @param [Google::Apis::RequestOptions] options
|
5835
|
+
# Request-specific options
|
5836
|
+
#
|
5837
|
+
# @yield [result, err] Result & error if block supplied
|
5838
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse] parsed result object
|
5839
|
+
# @yieldparam err [StandardError] error object if request failed
|
5840
|
+
#
|
5841
|
+
# @return [Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse]
|
5842
|
+
#
|
5843
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5844
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5845
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5846
|
+
def list_project_event_threat_detection_setting_effective_custom_modules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5847
|
+
command = make_simple_command(:get, 'v1/{+parent}/effectiveCustomModules', options)
|
5848
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse::Representation
|
5849
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListEffectiveEventThreatDetectionCustomModulesResponse
|
5850
|
+
command.params['parent'] = parent unless parent.nil?
|
5851
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5852
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5853
|
+
command.query['fields'] = fields unless fields.nil?
|
5854
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5855
|
+
execute_or_queue_command(command, &block)
|
5856
|
+
end
|
5857
|
+
|
4983
5858
|
# Kicks off an LRO to bulk mute findings for a parent based on a filter. The
|
4984
5859
|
# parent can be either an organization, folder or project. The findings matched
|
4985
5860
|
# by the filter will be muted after the LRO is done.
|
@@ -5718,7 +6593,9 @@ module Google
|
|
5718
6593
|
# numeric id containing 1-20 digits.
|
5719
6594
|
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule] google_cloud_securitycenter_v1_security_health_analytics_custom_module_object
|
5720
6595
|
# @param [String] update_mask
|
5721
|
-
# The list of fields to
|
6596
|
+
# The list of fields to be updated. The only fields that can be updated are `
|
6597
|
+
# enablement_state` and `custom_config`. If empty or set to the wildcard value `*
|
6598
|
+
# `, both `enablement_state` and `custom_config` are updated.
|
5722
6599
|
# @param [String] fields
|
5723
6600
|
# Selector specifying which fields to include in a partial response.
|
5724
6601
|
# @param [String] quota_user
|