# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'

module Google
  module Apis
    module SecuritycenterV1beta2
      # 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 https://cloud.google.com/security-command-center
      class SecurityCommandCenterService < Google::Apis::Core::BaseService
        DEFAULT_ENDPOINT_TEMPLATE = "https://securitycenter.$UNIVERSE_DOMAIN$/"

        # @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.
        attr_accessor :key

        # @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.
        attr_accessor :quota_user

        def initialize
          super(DEFAULT_ENDPOINT_TEMPLATE, '',
                client_name: 'google-apis-securitycenter_v1beta2',
                client_version: Google::Apis::SecuritycenterV1beta2::GEM_VERSION)
          @batch_path = 'batch'
        end
        
        # Get the ContainerThreatDetectionSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetContainerThreatDetectionSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateContainerThreatDetectionSettings for this purpose.
        # @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
        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 the EventThreatDetectionSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetEventThreatDetectionSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateEventThreatDetectionSettings for this purpose.
        # @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
        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 the RapidVulnerabilityDetectionSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetRapidVulnerabilityDetectionSettings does not calculate the effective
        # service settings for the resource, which accounts for inherited settings and
        # defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this
        # purpose.
        # @param [String] name
        #   Required. The name of the RapidVulnerabilityDetectionSettings to retrieve.
        #   Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
        #   folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
        #   rapidVulnerabilityDetectionSettings
        # @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::RapidVulnerabilityDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
        #
        # @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
        def get_folder_rapid_vulnerability_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Get the SecurityCenterSettings resource.
        # @param [String] name
        #   Required. The name of the SecurityCenterSettings to retrieve. Format:
        #   organizations/`organization`/securityCenterSettings Format: folders/`folder`/
        #   securityCenterSettings Format: projects/`project`/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
        def get_folder_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Get the SecurityHealthAnalyticsSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetSecurityHealthAnalyticsSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateSecurityHealthAnalyticsSettings for this purpose.
        # @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
        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 the VirtualMachineThreatDetectionSettings resource. In the returned
        # settings response, a missing field only indicates that it was not explicitly
        # set, so no assumption should be made about these fields. In other words,
        # GetVirtualMachineThreatDetectionSettings does not calculate the effective
        # service settings for the resource, which accounts for inherited settings and
        # defaults. Instead, use CalculateVirtualMachineThreatDetectionSettings for this
        # purpose.
        # @param [String] name
        #   Required. The name of the VirtualMachineThreatDetectionSettings to retrieve.
        #   Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
        #   folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
        #   virtualMachineThreatDetectionSettings
        # @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::VirtualMachineThreatDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
        #
        # @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
        def get_folder_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Get the WebSecurityScannerSettings resource. In the returned settings response,
        # a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetWebSecurityScannerSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateWebSecurityScannerSettings for this purpose.
        # @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
        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
        
        # Update the ContainerThreatDetectionSettings resource.
        # @param [String] name
        #   Identifier. 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
        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 the EventThreatDetectionSettings resource.
        # @param [String] name
        #   Identifier. 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
        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 the RapidVulnerabilityDetectionSettings resource.
        # @param [String] name
        #   The resource name of the RapidVulnerabilityDetectionSettings. Formats: *
        #   organizations/`organization`/rapidVulnerabilityDetectionSettings * folders/`
        #   folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
        #   rapidVulnerabilityDetectionSettings
        # @param [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] rapid_vulnerability_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::RapidVulnerabilityDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
        #
        # @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
        def update_folder_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'v1beta2/{+name}', options)
          command.request_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.request_object = rapid_vulnerability_detection_settings_object
          command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['updateMask'] = update_mask unless update_mask.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Update the SecurityHealthAnalyticsSettings resource.
        # @param [String] name
        #   Identifier. 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
        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 the VirtualMachineThreatDetectionSettings resource.
        # @param [String] name
        #   Identifier. The resource name of the VirtualMachineThreatDetectionSettings.
        #   Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
        #   folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
        #   virtualMachineThreatDetectionSettings
        # @param [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] virtual_machine_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::VirtualMachineThreatDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
        #
        # @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
        def update_folder_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'v1beta2/{+name}', options)
          command.request_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.request_object = virtual_machine_threat_detection_settings_object
          command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['updateMask'] = update_mask unless update_mask.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Update the WebSecurityScannerSettings resource.
        # @param [String] name
        #   Identifier. 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
        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
        
        # Calculates the effective ContainerThreatDetectionSettings based on its level
        # in the resource hierarchy and its settings. Settings provided closer to the
        # target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @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 [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_folder_container_threat_detection_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective EventThreatDetectionSettings based on its level in
        # the resource hierarchy and its settings. Settings provided closer to the
        # target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the EventThreatDetectionSettings to calculate. Formats: *
        #   organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
        #   eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_folder_event_threat_detection_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective RapidVulnerabilityDetectionSettings based on its
        # level in the resource hierarchy and its settings. Settings provided closer to
        # the target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the RapidVulnerabilityDetectionSettings to calculate.
        #   Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
        #   folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
        #   rapidVulnerabilityDetectionSettings
        # @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::RapidVulnerabilityDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
        #
        # @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
        def calculate_folder_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective SecurityHealthAnalyticsSettings based on its level in
        # the resource hierarchy and its settings. Settings provided closer to the
        # target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the SecurityHealthAnalyticsSettings to calculate.
        #   Formats: * organizations/`organization`/securityHealthAnalyticsSettings *
        #   folders/`folder`/securityHealthAnalyticsSettings * projects/`project`/
        #   securityHealthAnalyticsSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_folder_security_health_analytics_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective VirtualMachineThreatDetectionSettings based on its
        # level in the resource hierarchy and its settings. Settings provided closer to
        # the target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the VirtualMachineThreatDetectionSettings to calculate.
        #   Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
        #   folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
        #   virtualMachineThreatDetectionSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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::VirtualMachineThreatDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
        #
        # @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
        def calculate_folder_virtual_machine_threat_detection_setting(name, show_eligible_modules_only: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective WebSecurityScannerSettings based on its level in the
        # resource hierarchy and its settings. Settings provided closer to the target
        # resource take precedence over those further away (e.g. folder will override
        # organization level settings). The default SCC setting for the detector service
        # defaults can be overridden at organization, folder and project levels. No
        # assumptions should be made about the SCC defaults as it is considered an
        # internal implementation detail.
        # @param [String] name
        #   Required. The name of the WebSecurityScannerSettings to calculate. Formats: *
        #   organizations/`organization`/webSecurityScannerSettings * folders/`folder`/
        #   webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_folder_web_security_scanner_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.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 the ContainerThreatDetectionSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetContainerThreatDetectionSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateContainerThreatDetectionSettings for this purpose.
        # @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
        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 the EventThreatDetectionSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetEventThreatDetectionSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateEventThreatDetectionSettings for this purpose.
        # @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
        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 the RapidVulnerabilityDetectionSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetRapidVulnerabilityDetectionSettings does not calculate the effective
        # service settings for the resource, which accounts for inherited settings and
        # defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this
        # purpose.
        # @param [String] name
        #   Required. The name of the RapidVulnerabilityDetectionSettings to retrieve.
        #   Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
        #   folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
        #   rapidVulnerabilityDetectionSettings
        # @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::RapidVulnerabilityDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
        #
        # @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
        def get_organization_rapid_vulnerability_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Get the SecurityCenterSettings resource.
        # @param [String] name
        #   Required. The name of the SecurityCenterSettings to retrieve. Format:
        #   organizations/`organization`/securityCenterSettings Format: folders/`folder`/
        #   securityCenterSettings Format: projects/`project`/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
        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 the SecurityHealthAnalyticsSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetSecurityHealthAnalyticsSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateSecurityHealthAnalyticsSettings for this purpose.
        # @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
        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 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
        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 the VirtualMachineThreatDetectionSettings resource. In the returned
        # settings response, a missing field only indicates that it was not explicitly
        # set, so no assumption should be made about these fields. In other words,
        # GetVirtualMachineThreatDetectionSettings does not calculate the effective
        # service settings for the resource, which accounts for inherited settings and
        # defaults. Instead, use CalculateVirtualMachineThreatDetectionSettings for this
        # purpose.
        # @param [String] name
        #   Required. The name of the VirtualMachineThreatDetectionSettings to retrieve.
        #   Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
        #   folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
        #   virtualMachineThreatDetectionSettings
        # @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::VirtualMachineThreatDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
        #
        # @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
        def get_organization_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Get the WebSecurityScannerSettings resource. In the returned settings response,
        # a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetWebSecurityScannerSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateWebSecurityScannerSettings for this purpose.
        # @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
        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
        
        # Update the ContainerThreatDetectionSettings resource.
        # @param [String] name
        #   Identifier. 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
        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 the EventThreatDetectionSettings resource.
        # @param [String] name
        #   Identifier. 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
        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 the RapidVulnerabilityDetectionSettings resource.
        # @param [String] name
        #   The resource name of the RapidVulnerabilityDetectionSettings. Formats: *
        #   organizations/`organization`/rapidVulnerabilityDetectionSettings * folders/`
        #   folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
        #   rapidVulnerabilityDetectionSettings
        # @param [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] rapid_vulnerability_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::RapidVulnerabilityDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
        #
        # @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
        def update_organization_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'v1beta2/{+name}', options)
          command.request_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.request_object = rapid_vulnerability_detection_settings_object
          command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['updateMask'] = update_mask unless update_mask.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Update the SecurityHealthAnalyticsSettings resource.
        # @param [String] name
        #   Identifier. 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
        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 the VirtualMachineThreatDetectionSettings resource.
        # @param [String] name
        #   Identifier. The resource name of the VirtualMachineThreatDetectionSettings.
        #   Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
        #   folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
        #   virtualMachineThreatDetectionSettings
        # @param [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] virtual_machine_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::VirtualMachineThreatDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
        #
        # @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
        def update_organization_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'v1beta2/{+name}', options)
          command.request_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.request_object = virtual_machine_threat_detection_settings_object
          command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['updateMask'] = update_mask unless update_mask.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Update the WebSecurityScannerSettings resource.
        # @param [String] name
        #   Identifier. 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
        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
        
        # Calculates the effective ContainerThreatDetectionSettings based on its level
        # in the resource hierarchy and its settings. Settings provided closer to the
        # target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @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 [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_organization_container_threat_detection_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective EventThreatDetectionSettings based on its level in
        # the resource hierarchy and its settings. Settings provided closer to the
        # target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the EventThreatDetectionSettings to calculate. Formats: *
        #   organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
        #   eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_organization_event_threat_detection_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective RapidVulnerabilityDetectionSettings based on its
        # level in the resource hierarchy and its settings. Settings provided closer to
        # the target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the RapidVulnerabilityDetectionSettings to calculate.
        #   Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
        #   folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
        #   rapidVulnerabilityDetectionSettings
        # @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::RapidVulnerabilityDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
        #
        # @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
        def calculate_organization_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective SecurityHealthAnalyticsSettings based on its level in
        # the resource hierarchy and its settings. Settings provided closer to the
        # target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the SecurityHealthAnalyticsSettings to calculate.
        #   Formats: * organizations/`organization`/securityHealthAnalyticsSettings *
        #   folders/`folder`/securityHealthAnalyticsSettings * projects/`project`/
        #   securityHealthAnalyticsSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_organization_security_health_analytics_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective VirtualMachineThreatDetectionSettings based on its
        # level in the resource hierarchy and its settings. Settings provided closer to
        # the target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the VirtualMachineThreatDetectionSettings to calculate.
        #   Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
        #   folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
        #   virtualMachineThreatDetectionSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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::VirtualMachineThreatDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
        #
        # @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
        def calculate_organization_virtual_machine_threat_detection_setting(name, show_eligible_modules_only: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective WebSecurityScannerSettings based on its level in the
        # resource hierarchy and its settings. Settings provided closer to the target
        # resource take precedence over those further away (e.g. folder will override
        # organization level settings). The default SCC setting for the detector service
        # defaults can be overridden at organization, folder and project levels. No
        # assumptions should be made about the SCC defaults as it is considered an
        # internal implementation detail.
        # @param [String] name
        #   Required. The name of the WebSecurityScannerSettings to calculate. Formats: *
        #   organizations/`organization`/webSecurityScannerSettings * folders/`folder`/
        #   webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_organization_web_security_scanner_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.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 the ContainerThreatDetectionSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetContainerThreatDetectionSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateContainerThreatDetectionSettings for this purpose.
        # @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
        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 the EventThreatDetectionSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetEventThreatDetectionSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateEventThreatDetectionSettings for this purpose.
        # @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
        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 the RapidVulnerabilityDetectionSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetRapidVulnerabilityDetectionSettings does not calculate the effective
        # service settings for the resource, which accounts for inherited settings and
        # defaults. Instead, use CalculateRapidVulnerabilityDetectionSettings for this
        # purpose.
        # @param [String] name
        #   Required. The name of the RapidVulnerabilityDetectionSettings to retrieve.
        #   Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
        #   folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
        #   rapidVulnerabilityDetectionSettings
        # @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::RapidVulnerabilityDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
        #
        # @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
        def get_project_rapid_vulnerability_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Get the SecurityCenterSettings resource.
        # @param [String] name
        #   Required. The name of the SecurityCenterSettings to retrieve. Format:
        #   organizations/`organization`/securityCenterSettings Format: folders/`folder`/
        #   securityCenterSettings Format: projects/`project`/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
        def get_project_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Get the SecurityHealthAnalyticsSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetSecurityHealthAnalyticsSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateSecurityHealthAnalyticsSettings for this purpose.
        # @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
        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 the VirtualMachineThreatDetectionSettings resource. In the returned
        # settings response, a missing field only indicates that it was not explicitly
        # set, so no assumption should be made about these fields. In other words,
        # GetVirtualMachineThreatDetectionSettings does not calculate the effective
        # service settings for the resource, which accounts for inherited settings and
        # defaults. Instead, use CalculateVirtualMachineThreatDetectionSettings for this
        # purpose.
        # @param [String] name
        #   Required. The name of the VirtualMachineThreatDetectionSettings to retrieve.
        #   Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
        #   folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
        #   virtualMachineThreatDetectionSettings
        # @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::VirtualMachineThreatDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
        #
        # @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
        def get_project_virtual_machine_threat_detection_settings(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Get the WebSecurityScannerSettings resource. In the returned settings response,
        # a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetWebSecurityScannerSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateWebSecurityScannerSettings for this purpose.
        # @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
        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 the ContainerThreatDetectionSettings resource.
        # @param [String] name
        #   Identifier. 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
        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 the EventThreatDetectionSettings resource.
        # @param [String] name
        #   Identifier. 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
        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 the RapidVulnerabilityDetectionSettings resource.
        # @param [String] name
        #   The resource name of the RapidVulnerabilityDetectionSettings. Formats: *
        #   organizations/`organization`/rapidVulnerabilityDetectionSettings * folders/`
        #   folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
        #   rapidVulnerabilityDetectionSettings
        # @param [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings] rapid_vulnerability_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::RapidVulnerabilityDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
        #
        # @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
        def update_project_rapid_vulnerability_detection_settings(name, rapid_vulnerability_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'v1beta2/{+name}', options)
          command.request_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.request_object = rapid_vulnerability_detection_settings_object
          command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['updateMask'] = update_mask unless update_mask.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Update the SecurityHealthAnalyticsSettings resource.
        # @param [String] name
        #   Identifier. 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
        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 the VirtualMachineThreatDetectionSettings resource.
        # @param [String] name
        #   Identifier. The resource name of the VirtualMachineThreatDetectionSettings.
        #   Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
        #   folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
        #   virtualMachineThreatDetectionSettings
        # @param [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings] virtual_machine_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::VirtualMachineThreatDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
        #
        # @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
        def update_project_virtual_machine_threat_detection_settings(name, virtual_machine_threat_detection_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'v1beta2/{+name}', options)
          command.request_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.request_object = virtual_machine_threat_detection_settings_object
          command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['updateMask'] = update_mask unless update_mask.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Update the WebSecurityScannerSettings resource.
        # @param [String] name
        #   Identifier. 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
        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
        
        # Calculates the effective ContainerThreatDetectionSettings based on its level
        # in the resource hierarchy and its settings. Settings provided closer to the
        # target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @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 [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_project_container_threat_detection_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective EventThreatDetectionSettings based on its level in
        # the resource hierarchy and its settings. Settings provided closer to the
        # target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the EventThreatDetectionSettings to calculate. Formats: *
        #   organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
        #   eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_project_event_threat_detection_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.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 the ContainerThreatDetectionSettings resource. In the returned settings
        # response, a missing field only indicates that it was not explicitly set, so no
        # assumption should be made about these fields. In other words,
        # GetContainerThreatDetectionSettings does not calculate the effective service
        # settings for the resource, which accounts for inherited settings and defaults.
        # Instead, use CalculateContainerThreatDetectionSettings for this purpose.
        # @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
        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
        
        # Update the ContainerThreatDetectionSettings resource.
        # @param [String] name
        #   Identifier. 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
        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
        
        # Calculates the effective ContainerThreatDetectionSettings based on its level
        # in the resource hierarchy and its settings. Settings provided closer to the
        # target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @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 [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_project_location_cluster_container_threat_detection_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective RapidVulnerabilityDetectionSettings based on its
        # level in the resource hierarchy and its settings. Settings provided closer to
        # the target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the RapidVulnerabilityDetectionSettings to calculate.
        #   Formats: * organizations/`organization`/rapidVulnerabilityDetectionSettings *
        #   folders/`folder`/rapidVulnerabilityDetectionSettings * projects/`project`/
        #   rapidVulnerabilityDetectionSettings
        # @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::RapidVulnerabilityDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings]
        #
        # @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
        def calculate_project_rapid_vulnerability_detection_setting(name, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::RapidVulnerabilityDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective SecurityHealthAnalyticsSettings based on its level in
        # the resource hierarchy and its settings. Settings provided closer to the
        # target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the SecurityHealthAnalyticsSettings to calculate.
        #   Formats: * organizations/`organization`/securityHealthAnalyticsSettings *
        #   folders/`folder`/securityHealthAnalyticsSettings * projects/`project`/
        #   securityHealthAnalyticsSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_project_security_health_analytics_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective VirtualMachineThreatDetectionSettings based on its
        # level in the resource hierarchy and its settings. Settings provided closer to
        # the target resource take precedence over those further away (e.g. folder will
        # override organization level settings). The default SCC setting for the
        # detector service defaults can be overridden at organization, folder and
        # project levels. No assumptions should be made about the SCC defaults as it is
        # considered an internal implementation detail.
        # @param [String] name
        #   Required. The name of the VirtualMachineThreatDetectionSettings to calculate.
        #   Formats: * organizations/`organization`/virtualMachineThreatDetectionSettings *
        #   folders/`folder`/virtualMachineThreatDetectionSettings * projects/`project`/
        #   virtualMachineThreatDetectionSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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::VirtualMachineThreatDetectionSettings] parsed result object
        # @yieldparam err [StandardError] error object if request failed
        #
        # @return [Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings]
        #
        # @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
        def calculate_project_virtual_machine_threat_detection_setting(name, show_eligible_modules_only: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
          command.response_representation = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings::Representation
          command.response_class = Google::Apis::SecuritycenterV1beta2::VirtualMachineThreatDetectionSettings
          command.params['name'] = name unless name.nil?
          command.query['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
        
        # Calculates the effective WebSecurityScannerSettings based on its level in the
        # resource hierarchy and its settings. Settings provided closer to the target
        # resource take precedence over those further away (e.g. folder will override
        # organization level settings). The default SCC setting for the detector service
        # defaults can be overridden at organization, folder and project levels. No
        # assumptions should be made about the SCC defaults as it is considered an
        # internal implementation detail.
        # @param [String] name
        #   Required. The name of the WebSecurityScannerSettings to calculate. Formats: *
        #   organizations/`organization`/webSecurityScannerSettings * folders/`folder`/
        #   webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
        # @param [Boolean] show_eligible_modules_only
        #   Optional. When set, will only retrieve the modules that are in scope. By
        #   default, all modules will be shown.
        # @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
        def calculate_project_web_security_scanner_setting(name, show_eligible_modules_only: nil, 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['showEligibleModulesOnly'] = show_eligible_modules_only unless show_eligible_modules_only.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

        def apply_command_defaults(command)
          command.query['key'] = key unless key.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
        end
      end
    end
  end
end
