Class: Google::Apis::SecuritycenterV1beta2::SecurityCommandCenterService

Inherits:
Core::BaseService
  • Object
show all
Defined in:
lib/google/apis/securitycenter_v1beta2/service.rb

Overview

Security Command Center API

Security Command Center API provides access to temporal views of assets and findings within an organization.

Examples:

require 'google/apis/securitycenter_v1beta2'

Securitycenter = Google::Apis::SecuritycenterV1beta2 # Alias the module
service = Securitycenter::SecurityCommandCenterService.new

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSecurityCommandCenterService

Returns a new instance of SecurityCommandCenterService.



46
47
48
49
50
51
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 46

def initialize
  super('https://securitycenter.googleapis.com/', '',
        client_name: 'google-apis-securitycenter_v1beta2',
        client_version: Google::Apis::SecuritycenterV1beta2::GEM_VERSION)
  @batch_path = 'batch'
end

Instance Attribute Details

#keyString

Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

Returns:

  • (String)

    API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.



39
40
41
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 39

def key
  @key
end

#quota_userString

Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

Returns:

  • (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.



44
45
46
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 44

def quota_user
  @quota_user
end

Instance Method Details

#calculate_folder_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the ContainerThreatDetectionSettings to calculate. Formats: * organizations/organization/containerThreatDetectionSettings * folders/folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



572
573
574
575
576
577
578
579
580
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 572

def calculate_folder_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_folder_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings

Calculates the effective EventThreatDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the EventThreatDetectionSettings to calculate. Formats: * organizations/organization/eventThreatDetectionSettings * folders/folder/ eventThreatDetectionSettings * projects/project/eventThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



605
606
607
608
609
610
611
612
613
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 605

def calculate_folder_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_folder_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings

Calculates the effective RapidVulnerabilityDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the RapidVulnerabilityDetectionSettings to calculate. Formats: * organizations/organization/rapidVulnerabilityDetectionSettings * folders/folder/rapidVulnerabilityDetectionSettings * projects/project/ rapidVulnerabilityDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



639
640
641
642
643
644
645
646
647
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 639

def calculate_folder_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_folder_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings

Calculates the effective SecurityHealthAnalyticsSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the SecurityHealthAnalyticsSettings to calculate. Formats: * organizations/organization/securityHealthAnalyticsSettings * folders/folder/securityHealthAnalyticsSettings * projects/project/ securityHealthAnalyticsSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



673
674
675
676
677
678
679
680
681
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 673

def calculate_folder_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_folder_virtual_machine_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings

Calculates the effective VirtualMachineThreatDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the VirtualMachineThreatDetectionSettings to calculate. Formats: * organizations/organization/virtualMachineThreatDetectionSettings * folders/folder/virtualMachineThreatDetectionSettings * projects/project/ virtualMachineThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



707
708
709
710
711
712
713
714
715
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 707

def calculate_folder_virtual_machine_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_folder_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings

Calculates the effective WebSecurityScannerSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the WebSecurityScannerSettings to calculate. Formats: * organizations/organization/webSecurityScannerSettings * folders/folder/ webSecurityScannerSettings * projects/project/webSecurityScannerSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



740
741
742
743
744
745
746
747
748
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 740

def calculate_folder_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_organization_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the ContainerThreatDetectionSettings to calculate. Formats: * organizations/organization/containerThreatDetectionSettings * folders/folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1300
1301
1302
1303
1304
1305
1306
1307
1308
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1300

def calculate_organization_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_organization_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings

Calculates the effective EventThreatDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the EventThreatDetectionSettings to calculate. Formats: * organizations/organization/eventThreatDetectionSettings * folders/folder/ eventThreatDetectionSettings * projects/project/eventThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1333
1334
1335
1336
1337
1338
1339
1340
1341
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1333

def calculate_organization_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_organization_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings

Calculates the effective RapidVulnerabilityDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the RapidVulnerabilityDetectionSettings to calculate. Formats: * organizations/organization/rapidVulnerabilityDetectionSettings * folders/folder/rapidVulnerabilityDetectionSettings * projects/project/ rapidVulnerabilityDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1367
1368
1369
1370
1371
1372
1373
1374
1375
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1367

def calculate_organization_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_organization_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings

Calculates the effective SecurityHealthAnalyticsSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the SecurityHealthAnalyticsSettings to calculate. Formats: * organizations/organization/securityHealthAnalyticsSettings * folders/folder/securityHealthAnalyticsSettings * projects/project/ securityHealthAnalyticsSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1401
1402
1403
1404
1405
1406
1407
1408
1409
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1401

def calculate_organization_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_organization_virtual_machine_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings

Calculates the effective VirtualMachineThreatDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the VirtualMachineThreatDetectionSettings to calculate. Formats: * organizations/organization/virtualMachineThreatDetectionSettings * folders/folder/virtualMachineThreatDetectionSettings * projects/project/ virtualMachineThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1435
1436
1437
1438
1439
1440
1441
1442
1443
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1435

def calculate_organization_virtual_machine_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_organization_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings

Calculates the effective WebSecurityScannerSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the WebSecurityScannerSettings to calculate. Formats: * organizations/organization/webSecurityScannerSettings * folders/folder/ webSecurityScannerSettings * projects/project/webSecurityScannerSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1468
1469
1470
1471
1472
1473
1474
1475
1476
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1468

def calculate_organization_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_project_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the ContainerThreatDetectionSettings to calculate. Formats: * organizations/organization/containerThreatDetectionSettings * folders/folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1997
1998
1999
2000
2001
2002
2003
2004
2005
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1997

def calculate_project_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_project_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings

Calculates the effective EventThreatDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the EventThreatDetectionSettings to calculate. Formats: * organizations/organization/eventThreatDetectionSettings * folders/folder/ eventThreatDetectionSettings * projects/project/eventThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2030
2031
2032
2033
2034
2035
2036
2037
2038
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 2030

def calculate_project_event_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_project_location_cluster_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the ContainerThreatDetectionSettings to calculate. Formats: * organizations/organization/containerThreatDetectionSettings * folders/folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2139
2140
2141
2142
2143
2144
2145
2146
2147
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 2139

def calculate_project_location_cluster_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_project_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings

Calculates the effective RapidVulnerabilityDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the RapidVulnerabilityDetectionSettings to calculate. Formats: * organizations/organization/rapidVulnerabilityDetectionSettings * folders/folder/rapidVulnerabilityDetectionSettings * projects/project/ rapidVulnerabilityDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2173
2174
2175
2176
2177
2178
2179
2180
2181
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 2173

def calculate_project_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_project_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings

Calculates the effective SecurityHealthAnalyticsSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the SecurityHealthAnalyticsSettings to calculate. Formats: * organizations/organization/securityHealthAnalyticsSettings * folders/folder/securityHealthAnalyticsSettings * projects/project/ securityHealthAnalyticsSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2207
2208
2209
2210
2211
2212
2213
2214
2215
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 2207

def calculate_project_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_project_virtual_machine_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings

Calculates the effective VirtualMachineThreatDetectionSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the VirtualMachineThreatDetectionSettings to calculate. Formats: * organizations/organization/virtualMachineThreatDetectionSettings * folders/folder/virtualMachineThreatDetectionSettings * projects/project/ virtualMachineThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2241
2242
2243
2244
2245
2246
2247
2248
2249
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 2241

def calculate_project_virtual_machine_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#calculate_project_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings

Calculates the effective WebSecurityScannerSettings based on its level in the resource hierarchy and its settings.

Parameters:

  • name (String)

    Required. The name of the WebSecurityScannerSettings to calculate. Formats: * organizations/organization/webSecurityScannerSettings * folders/folder/ webSecurityScannerSettings * projects/project/webSecurityScannerSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2274
2275
2276
2277
2278
2279
2280
2281
2282
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 2274

def calculate_project_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_folder_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Get the ContainerThreatDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the ContainerThreatDetectionSettings to retrieve. Formats: * organizations/organization/containerThreatDetectionSettings * folders/folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



77
78
79
80
81
82
83
84
85
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 77

def get_folder_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_folder_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings

Get the EventThreatDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the EventThreatDetectionSettings to retrieve. Formats: * organizations/organization/eventThreatDetectionSettings * folders/folder/ eventThreatDetectionSettings * projects/project/eventThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



109
110
111
112
113
114
115
116
117
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 109

def get_folder_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_folder_onboarding_state(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::OnboardingState

Retrieve the OnboardingState of a resource.

Parameters:

  • name (String)

    Required. The name of the OnboardingState to retrieve. Formats: * organizations/organization/onboardingState * folders/folder/ onboardingState * projects/project/onboardingState

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



141
142
143
144
145
146
147
148
149
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 141

def get_folder_onboarding_state(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::OnboardingState::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::OnboardingState
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_folder_rapid_vulnerability_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings

Get the RapidVulnerabilityDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the RapidVulnerabilityDetectionSettings to retrieve. Formats: * organizations/organization/rapidVulnerabilityDetectionSettings * folders/folder/rapidVulnerabilityDetectionSettings * projects/project/ rapidVulnerabilityDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



174
175
176
177
178
179
180
181
182
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 174

def get_folder_rapid_vulnerability_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_folder_security_center_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings

Get the SecurityCenterSettings resource.

Parameters:

  • name (String)

    Required. The name of the SecurityCenterSettings to retrieve. Format: organizations/organization/securityCenterSettings Format: folders/folder/ securityCenterSettings Format: projects/project/securityCenterSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



206
207
208
209
210
211
212
213
214
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 206

def get_folder_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_folder_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings

Get the SecurityHealthAnalyticsSettings resource.

Parameters:

  • name (String)

    Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:

    • organizations/organization/securityHealthAnalyticsSettings * folders/ folder/securityHealthAnalyticsSettings * projects/project/ securityHealthAnalyticsSettings
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



239
240
241
242
243
244
245
246
247
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 239

def get_folder_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_folder_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings

Get the VirtualMachineThreatDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the VirtualMachineThreatDetectionSettings to retrieve. Formats: * organizations/organization/virtualMachineThreatDetectionSettings * folders/folder/virtualMachineThreatDetectionSettings * projects/project/ virtualMachineThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



272
273
274
275
276
277
278
279
280
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 272

def get_folder_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_folder_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings

Get the WebSecurityScannerSettings resource.

Parameters:

  • name (String)

    Required. The name of the WebSecurityScannerSettings to retrieve. Formats: * organizations/organization/webSecurityScannerSettings * folders/folder/ webSecurityScannerSettings * projects/project/webSecurityScannerSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



304
305
306
307
308
309
310
311
312
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 304

def get_folder_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_organization_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Get the ContainerThreatDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the ContainerThreatDetectionSettings to retrieve. Formats: * organizations/organization/containerThreatDetectionSettings * folders/folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



774
775
776
777
778
779
780
781
782
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 774

def get_organization_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_organization_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings

Get the EventThreatDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the EventThreatDetectionSettings to retrieve. Formats: * organizations/organization/eventThreatDetectionSettings * folders/folder/ eventThreatDetectionSettings * projects/project/eventThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



806
807
808
809
810
811
812
813
814
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 806

def get_organization_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_organization_onboarding_state(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::OnboardingState

Retrieve the OnboardingState of a resource.

Parameters:

  • name (String)

    Required. The name of the OnboardingState to retrieve. Formats: * organizations/organization/onboardingState * folders/folder/ onboardingState * projects/project/onboardingState

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



838
839
840
841
842
843
844
845
846
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 838

def get_organization_onboarding_state(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::OnboardingState::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::OnboardingState
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_organization_rapid_vulnerability_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings

Get the RapidVulnerabilityDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the RapidVulnerabilityDetectionSettings to retrieve. Formats: * organizations/organization/rapidVulnerabilityDetectionSettings * folders/folder/rapidVulnerabilityDetectionSettings * projects/project/ rapidVulnerabilityDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



871
872
873
874
875
876
877
878
879
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 871

def get_organization_rapid_vulnerability_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_organization_security_center_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings

Get the SecurityCenterSettings resource.

Parameters:

  • name (String)

    Required. The name of the SecurityCenterSettings to retrieve. Format: organizations/organization/securityCenterSettings Format: folders/folder/ securityCenterSettings Format: projects/project/securityCenterSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



903
904
905
906
907
908
909
910
911
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 903

def get_organization_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_organization_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings

Get the SecurityHealthAnalyticsSettings resource.

Parameters:

  • name (String)

    Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:

    • organizations/organization/securityHealthAnalyticsSettings * folders/ folder/securityHealthAnalyticsSettings * projects/project/ securityHealthAnalyticsSettings
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



936
937
938
939
940
941
942
943
944
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 936

def get_organization_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_organization_subscription(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::Subscription

Get the Subscription resource.

Parameters:

  • name (String)

    Required. The name of the subscription to retrieve. Format: organizations/ organization/subscription

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



967
968
969
970
971
972
973
974
975
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 967

def get_organization_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::Subscription::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::Subscription
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_organization_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings

Get the VirtualMachineThreatDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the VirtualMachineThreatDetectionSettings to retrieve. Formats: * organizations/organization/virtualMachineThreatDetectionSettings * folders/folder/virtualMachineThreatDetectionSettings * projects/project/ virtualMachineThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1000
1001
1002
1003
1004
1005
1006
1007
1008
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1000

def get_organization_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_organization_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings

Get the WebSecurityScannerSettings resource.

Parameters:

  • name (String)

    Required. The name of the WebSecurityScannerSettings to retrieve. Formats: * organizations/organization/webSecurityScannerSettings * folders/folder/ webSecurityScannerSettings * projects/project/webSecurityScannerSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1032
1033
1034
1035
1036
1037
1038
1039
1040
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1032

def get_organization_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Get the ContainerThreatDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the ContainerThreatDetectionSettings to retrieve. Formats: * organizations/organization/containerThreatDetectionSettings * folders/folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1502
1503
1504
1505
1506
1507
1508
1509
1510
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1502

def get_project_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings

Get the EventThreatDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the EventThreatDetectionSettings to retrieve. Formats: * organizations/organization/eventThreatDetectionSettings * folders/folder/ eventThreatDetectionSettings * projects/project/eventThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1534
1535
1536
1537
1538
1539
1540
1541
1542
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1534

def get_project_event_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_location_cluster_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Get the ContainerThreatDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the ContainerThreatDetectionSettings to retrieve. Formats: * organizations/organization/containerThreatDetectionSettings * folders/folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2064
2065
2066
2067
2068
2069
2070
2071
2072
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 2064

def get_project_location_cluster_container_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_onboarding_state(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::OnboardingState

Retrieve the OnboardingState of a resource.

Parameters:

  • name (String)

    Required. The name of the OnboardingState to retrieve. Formats: * organizations/organization/onboardingState * folders/folder/ onboardingState * projects/project/onboardingState

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1566
1567
1568
1569
1570
1571
1572
1573
1574
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1566

def get_project_onboarding_state(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::OnboardingState::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::OnboardingState
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_rapid_vulnerability_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings

Get the RapidVulnerabilityDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the RapidVulnerabilityDetectionSettings to retrieve. Formats: * organizations/organization/rapidVulnerabilityDetectionSettings * folders/folder/rapidVulnerabilityDetectionSettings * projects/project/ rapidVulnerabilityDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1599
1600
1601
1602
1603
1604
1605
1606
1607
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1599

def get_project_rapid_vulnerability_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_security_center_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings

Get the SecurityCenterSettings resource.

Parameters:

  • name (String)

    Required. The name of the SecurityCenterSettings to retrieve. Format: organizations/organization/securityCenterSettings Format: folders/folder/ securityCenterSettings Format: projects/project/securityCenterSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1631
1632
1633
1634
1635
1636
1637
1638
1639
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1631

def get_project_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings

Get the SecurityHealthAnalyticsSettings resource.

Parameters:

  • name (String)

    Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats:

    • organizations/organization/securityHealthAnalyticsSettings * folders/ folder/securityHealthAnalyticsSettings * projects/project/ securityHealthAnalyticsSettings
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1664
1665
1666
1667
1668
1669
1670
1671
1672
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1664

def get_project_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings

Get the VirtualMachineThreatDetectionSettings resource.

Parameters:

  • name (String)

    Required. The name of the VirtualMachineThreatDetectionSettings to retrieve. Formats: * organizations/organization/virtualMachineThreatDetectionSettings * folders/folder/virtualMachineThreatDetectionSettings * projects/project/ virtualMachineThreatDetectionSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1697
1698
1699
1700
1701
1702
1703
1704
1705
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1697

def get_project_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings

Get the WebSecurityScannerSettings resource.

Parameters:

  • name (String)

    Required. The name of the WebSecurityScannerSettings to retrieve. Formats: * organizations/organization/webSecurityScannerSettings * folders/folder/ webSecurityScannerSettings * projects/project/webSecurityScannerSettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1729
1730
1731
1732
1733
1734
1735
1736
1737
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1729

def get_project_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
  command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_folder_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Update the ContainerThreatDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/organization/containerThreatDetectionSettings * folders/ folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • container_threat_detection_settings_object (Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



341
342
343
344
345
346
347
348
349
350
351
352
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 341

def update_folder_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.request_object = container_threat_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_folder_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings

Update the EventThreatDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the EventThreatDetectionSettings. Formats: * organizations/organization/eventThreatDetectionSettings * folders/folder/ eventThreatDetectionSettings * projects/project/eventThreatDetectionSettings

  • event_threat_detection_settings_object (Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



379
380
381
382
383
384
385
386
387
388
389
390
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 379

def update_folder_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.request_object = event_threat_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_folder_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings

Update the RapidVulnerabilityDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the RapidVulnerabilityDetectionSettings. Formats: * organizations/organization/rapidVulnerabilityDetectionSettings * folders/ folder/rapidVulnerabilityDetectionSettings * projects/project/ rapidVulnerabilityDetectionSettings

  • rapid_vulnerability_detection_settings_object (Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



418
419
420
421
422
423
424
425
426
427
428
429
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 418

def update_folder_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.request_object = rapid_vulnerability_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_folder_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings

Update the SecurityHealthAnalyticsSettings resource.

Parameters:

  • name (String)

    The resource name of the SecurityHealthAnalyticsSettings. Formats: * organizations/organization/securityHealthAnalyticsSettings * folders/folder /securityHealthAnalyticsSettings * projects/project/ securityHealthAnalyticsSettings

  • security_health_analytics_settings_object (Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



457
458
459
460
461
462
463
464
465
466
467
468
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 457

def update_folder_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.request_object = security_health_analytics_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_folder_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings

Update the VirtualMachineThreatDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the VirtualMachineThreatDetectionSettings. Formats: * organizations/organization/virtualMachineThreatDetectionSettings * folders/ folder/virtualMachineThreatDetectionSettings * projects/project/ virtualMachineThreatDetectionSettings

  • virtual_machine_threat_detection_settings_object (Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



496
497
498
499
500
501
502
503
504
505
506
507
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 496

def update_folder_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.request_object = virtual_machine_threat_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_folder_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings

Update the WebSecurityScannerSettings resource.

Parameters:

  • name (String)

    The resource name of the WebSecurityScannerSettings. Formats: * organizations/ organization/webSecurityScannerSettings * folders/folder/ webSecurityScannerSettings * projects/project/webSecurityScannerSettings

  • web_security_scanner_settings_object (Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



534
535
536
537
538
539
540
541
542
543
544
545
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 534

def update_folder_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.request_object = web_security_scanner_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_organization_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Update the ContainerThreatDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/organization/containerThreatDetectionSettings * folders/ folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • container_threat_detection_settings_object (Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1069

def update_organization_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.request_object = container_threat_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_organization_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings

Update the EventThreatDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the EventThreatDetectionSettings. Formats: * organizations/organization/eventThreatDetectionSettings * folders/folder/ eventThreatDetectionSettings * projects/project/eventThreatDetectionSettings

  • event_threat_detection_settings_object (Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1107

def update_organization_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.request_object = event_threat_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_organization_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings

Update the RapidVulnerabilityDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the RapidVulnerabilityDetectionSettings. Formats: * organizations/organization/rapidVulnerabilityDetectionSettings * folders/ folder/rapidVulnerabilityDetectionSettings * projects/project/ rapidVulnerabilityDetectionSettings

  • rapid_vulnerability_detection_settings_object (Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1146

def update_organization_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.request_object = rapid_vulnerability_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_organization_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings

Update the SecurityHealthAnalyticsSettings resource.

Parameters:

  • name (String)

    The resource name of the SecurityHealthAnalyticsSettings. Formats: * organizations/organization/securityHealthAnalyticsSettings * folders/folder /securityHealthAnalyticsSettings * projects/project/ securityHealthAnalyticsSettings

  • security_health_analytics_settings_object (Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1185

def update_organization_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.request_object = security_health_analytics_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_organization_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings

Update the VirtualMachineThreatDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the VirtualMachineThreatDetectionSettings. Formats: * organizations/organization/virtualMachineThreatDetectionSettings * folders/ folder/virtualMachineThreatDetectionSettings * projects/project/ virtualMachineThreatDetectionSettings

  • virtual_machine_threat_detection_settings_object (Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1224

def update_organization_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.request_object = virtual_machine_threat_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_organization_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings

Update the WebSecurityScannerSettings resource.

Parameters:

  • name (String)

    The resource name of the WebSecurityScannerSettings. Formats: * organizations/ organization/webSecurityScannerSettings * folders/folder/ webSecurityScannerSettings * projects/project/webSecurityScannerSettings

  • web_security_scanner_settings_object (Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1262

def update_organization_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.request_object = web_security_scanner_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_project_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Update the ContainerThreatDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/organization/containerThreatDetectionSettings * folders/ folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • container_threat_detection_settings_object (Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1766

def update_project_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.request_object = container_threat_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_project_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings

Update the EventThreatDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the EventThreatDetectionSettings. Formats: * organizations/organization/eventThreatDetectionSettings * folders/folder/ eventThreatDetectionSettings * projects/project/eventThreatDetectionSettings

  • event_threat_detection_settings_object (Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1804

def update_project_event_threat_detection_settings(name, event_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.request_object = event_threat_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_project_location_cluster_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings

Update the ContainerThreatDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/organization/containerThreatDetectionSettings * folders/ folder/containerThreatDetectionSettings * projects/project/ containerThreatDetectionSettings * projects/project/locations/location/ clusters/cluster/containerThreatDetectionSettings

  • container_threat_detection_settings_object (Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 2101

def update_project_location_cluster_container_threat_detection_settings(name, container_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.request_object = container_threat_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_project_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings

Update the RapidVulnerabilityDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the RapidVulnerabilityDetectionSettings. Formats: * organizations/organization/rapidVulnerabilityDetectionSettings * folders/ folder/rapidVulnerabilityDetectionSettings * projects/project/ rapidVulnerabilityDetectionSettings

  • rapid_vulnerability_detection_settings_object (Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1843

def update_project_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.request_object = rapid_vulnerability_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_project_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings

Update the SecurityHealthAnalyticsSettings resource.

Parameters:

  • name (String)

    The resource name of the SecurityHealthAnalyticsSettings. Formats: * organizations/organization/securityHealthAnalyticsSettings * folders/folder /securityHealthAnalyticsSettings * projects/project/ securityHealthAnalyticsSettings

  • security_health_analytics_settings_object (Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1882

def update_project_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.request_object = security_health_analytics_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_project_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings

Update the VirtualMachineThreatDetectionSettings resource.

Parameters:

  • name (String)

    The resource name of the VirtualMachineThreatDetectionSettings. Formats: * organizations/organization/virtualMachineThreatDetectionSettings * folders/ folder/virtualMachineThreatDetectionSettings * projects/project/ virtualMachineThreatDetectionSettings

  • virtual_machine_threat_detection_settings_object (Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1921

def update_project_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.request_object = virtual_machine_threat_detection_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#update_project_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings

Update the WebSecurityScannerSettings resource.

Parameters:

  • name (String)

    The resource name of the WebSecurityScannerSettings. Formats: * organizations/ organization/webSecurityScannerSettings * folders/folder/ webSecurityScannerSettings * projects/project/webSecurityScannerSettings

  • web_security_scanner_settings_object (Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    The list of fields to be updated.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
# File 'lib/google/apis/securitycenter_v1beta2/service.rb', line 1959

def update_project_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1beta2/{+name}', options)
  command.request_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.request_object = web_security_scanner_settings_object
  command.response_representation = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings::Representation
  command.response_class = Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end