lib/google/apis/securitycenter_v1beta2/service.rb in google-apis-securitycenter_v1beta2-0.26.0 vs lib/google/apis/securitycenter_v1beta2/service.rb in google-apis-securitycenter_v1beta2-0.27.0
- old
+ new
@@ -146,10 +146,43 @@
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.
+ # @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
@@ -354,10 +387,49 @@
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
# The resource name of the SecurityHealthAnalyticsSettings. Formats: *
# organizations/`organization`/securityHealthAnalyticsSettings * folders/`folder`
# /securityHealthAnalyticsSettings * projects/`project`/
@@ -538,10 +610,44 @@
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.
+ # @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.
# @param [String] name
# Required. The name of the SecurityHealthAnalyticsSettings to calculate.
# Formats: * organizations/`organization`/securityHealthAnalyticsSettings *
@@ -737,10 +843,43 @@
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.
+ # @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
@@ -976,10 +1115,49 @@
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
# The resource name of the SecurityHealthAnalyticsSettings. Formats: *
# organizations/`organization`/securityHealthAnalyticsSettings * folders/`folder`
# /securityHealthAnalyticsSettings * projects/`project`/
@@ -1160,10 +1338,44 @@
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.
+ # @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.
# @param [String] name
# Required. The name of the SecurityHealthAnalyticsSettings to calculate.
# Formats: * organizations/`organization`/securityHealthAnalyticsSettings *
@@ -1359,10 +1571,43 @@
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.
+ # @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
@@ -1567,10 +1812,49 @@
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
# The resource name of the SecurityHealthAnalyticsSettings. Formats: *
# organizations/`organization`/securityHealthAnalyticsSettings * folders/`folder`
# /securityHealthAnalyticsSettings * projects/`project`/
@@ -1854,9 +2138,43 @@
# @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)
command = make_simple_command(:get, 'v1beta2/{+name}:calculate', options)
command.response_representation = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings::Representation
command.response_class = Google::Apis::SecuritycenterV1beta2::ContainerThreatDetectionSettings
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Calculates the effective RapidVulnerabilityDetectionSettings based on its
+ # level in the resource hierarchy and its settings.
+ # @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