lib/google/apis/securitycenter_v1beta2/service.rb in google-apis-securitycenter_v1beta2-0.71.0 vs lib/google/apis/securitycenter_v1beta2/service.rb in google-apis-securitycenter_v1beta2-0.72.0

- old
+ new

@@ -557,10 +557,13 @@ # 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. @@ -574,15 +577,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -595,10 +599,13 @@ # 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. @@ -612,15 +619,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -673,10 +681,13 @@ # @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. @@ -690,15 +701,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -712,10 +724,13 @@ # @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. @@ -729,15 +744,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -750,10 +766,13 @@ # 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. @@ -767,15 +786,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -1315,10 +1335,13 @@ # 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. @@ -1332,15 +1355,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -1353,10 +1377,13 @@ # 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. @@ -1370,15 +1397,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -1431,10 +1459,13 @@ # @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. @@ -1448,15 +1479,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -1470,10 +1502,13 @@ # @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. @@ -1487,15 +1522,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -1508,10 +1544,13 @@ # 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. @@ -1525,15 +1564,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -2042,10 +2082,13 @@ # 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. @@ -2059,15 +2102,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -2080,10 +2124,13 @@ # 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. @@ -2097,15 +2144,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -2199,10 +2247,13 @@ # 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. @@ -2216,15 +2267,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -2277,10 +2329,13 @@ # @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. @@ -2294,15 +2349,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -2316,10 +2372,13 @@ # @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. @@ -2333,15 +2392,16 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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 @@ -2354,10 +2414,13 @@ # 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. @@ -2371,14 +2434,15 @@ # @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, fields: nil, quota_user: nil, options: nil, &block) + 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