class Google::Apis::SecuritycenterV1beta2::SecurityCommandCenterService

Security Command Center API

Security Command Center API provides access to temporal views of assets and

findings within an organization.

@example

require 'google/apis/securitycenter_v1beta2'

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

@see cloud.google.com/security-command-center

Attributes

key[RW]

@return [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.
quota_user[RW]

@return [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.

Public Class Methods

new() click to toggle source
Calls superclass method
# 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

Public Instance Methods

calculate_folder_container_threat_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 364
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, &block) click to toggle source

Calculates the effective EventThreatDetectionSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 397
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_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Calculates the effective SecurityHealthAnalyticsSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 431
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_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Calculates the effective WebSecurityScannerSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 464
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, &block) click to toggle source

Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 847
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, &block) click to toggle source

Calculates the effective EventThreatDetectionSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 880
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_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Calculates the effective SecurityHealthAnalyticsSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 914
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_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Calculates the effective WebSecurityScannerSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 947
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, &block) click to toggle source

Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1268
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, &block) click to toggle source

Calculates the effective EventThreatDetectionSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1301
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, &block) click to toggle source

Calculates the effective ContainerThreatDetectionSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1410
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_security_health_analytics_setting(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Calculates the effective SecurityHealthAnalyticsSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1444
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_web_security_scanner_setting(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Calculates the effective WebSecurityScannerSettings based on its level in the resource hierarchy and its settings. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1477
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, &block) click to toggle source

Get the ContainerThreatDetectionSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# 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, &block) click to toggle source

Get the EventThreatDetectionSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# 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_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Get the SecurityHealthAnalyticsSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 142
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_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Get the WebSecurityScannerSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 174
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, &block) click to toggle source

Get the ContainerThreatDetectionSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 498
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, &block) click to toggle source

Get the EventThreatDetectionSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 530
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_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Get the SecurityCenterSettings resource. @param [String] name

Required. The name of the SecurityCenterSettings to retrieve. Format:
organizations/`organization`/securityCenterSettings

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 561
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, &block) click to toggle source

Get the SecurityHealthAnalyticsSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 594
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, &block) click to toggle source

Get the Subscription resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::Subscription] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::Subscription]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 625
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_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Get the WebSecurityScannerSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 657
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, &block) click to toggle source

Get the ContainerThreatDetectionSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 981
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, &block) click to toggle source

Get the EventThreatDetectionSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1013
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, &block) click to toggle source

Get the ContainerThreatDetectionSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1335
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_security_health_analytics_settings(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Get the SecurityHealthAnalyticsSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1046
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_web_security_scanner_settings(name, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Get the WebSecurityScannerSettings resource. @param [String] name

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

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1078
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, &block) click to toggle source

Update the ContainerThreatDetectionSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 211
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, &block) click to toggle source

Update the EventThreatDetectionSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] event_threat_detection_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 249
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_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Update the SecurityHealthAnalyticsSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] security_health_analytics_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 288
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_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Update the WebSecurityScannerSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] web_security_scanner_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 326
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, &block) click to toggle source

Update the ContainerThreatDetectionSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 694
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, &block) click to toggle source

Update the EventThreatDetectionSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] event_threat_detection_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 732
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_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Update the SecurityHealthAnalyticsSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] security_health_analytics_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 771
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_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Update the WebSecurityScannerSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] web_security_scanner_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 809
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, &block) click to toggle source

Update the ContainerThreatDetectionSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1115
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, &block) click to toggle source

Update the EventThreatDetectionSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] event_threat_detection_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::EventThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1153
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, &block) click to toggle source

Update the ContainerThreatDetectionSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] container_threat_detection_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1372
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_security_health_analytics_settings(name, security_health_analytics_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Update the SecurityHealthAnalyticsSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] security_health_analytics_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::SecurityHealthAnalyticsSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1192
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_web_security_scanner_settings(name, web_security_scanner_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) click to toggle source

Update the WebSecurityScannerSettings resource. @param [String] name

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

@param [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] web_security_scanner_settings_object @param [String] update_mask

The list of fields to be updated.

@param [String] fields

Selector specifying which fields to include in a partial response.

@param [String] quota_user

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.

@param [Google::Apis::RequestOptions] options

Request-specific options

@yield [result, err] Result & error if block supplied @yieldparam result [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings] parsed result object @yieldparam err [StandardError] error object if request failed

@return [Google::Apis::SecuritycenterV1beta2::WebSecurityScannerSettings]

@raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification @raise [Google::Apis::AuthorizationError] Authorization is required

# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1230
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

Protected Instance Methods

apply_command_defaults(command) click to toggle source
# File lib/google/apis/securitycenter_v1beta2/service.rb, line 1489
def apply_command_defaults(command)
  command.query['key'] = key unless key.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
end