Cloud Security Command Center V1 API - Class Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::ServiceStub (v0.39.0)

Reference documentation and code samples for the Cloud Security Command Center V1 API class Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::ServiceStub.

REST service stub for the SecurityCenter service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

Methods

#bulk_mute_findings

def bulk_mute_findings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the bulk_mute_findings REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_big_query_export

def create_big_query_export(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::BigQueryExport

Baseline implementation for the create_big_query_export REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_finding

def create_finding(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::Finding

Baseline implementation for the create_finding REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_mute_config

def create_mute_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::MuteConfig

Baseline implementation for the create_mute_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_notification_config

def create_notification_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::NotificationConfig

Baseline implementation for the create_notification_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_security_health_analytics_custom_module

def create_security_health_analytics_custom_module(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule

Baseline implementation for the create_security_health_analytics_custom_module REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_source

def create_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::Source

Baseline implementation for the create_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_big_query_export

def delete_big_query_export(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_big_query_export REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_mute_config

def delete_mute_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_mute_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_notification_config

def delete_notification_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_notification_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_security_health_analytics_custom_module

def delete_security_health_analytics_custom_module(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_security_health_analytics_custom_module REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_big_query_export

def get_big_query_export(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::BigQueryExport

Baseline implementation for the get_big_query_export REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_effective_security_health_analytics_custom_module

def get_effective_security_health_analytics_custom_module(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule

Baseline implementation for the get_effective_security_health_analytics_custom_module REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_iam_policy

def get_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy

Baseline implementation for the get_iam_policy REST call

Parameters
  • request_pb (::Google::Iam::V1::GetIamPolicyRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_mute_config

def get_mute_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::MuteConfig

Baseline implementation for the get_mute_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_notification_config

def get_notification_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::NotificationConfig

Baseline implementation for the get_notification_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_organization_settings

def get_organization_settings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::OrganizationSettings

Baseline implementation for the get_organization_settings REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_security_health_analytics_custom_module

def get_security_health_analytics_custom_module(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule

Baseline implementation for the get_security_health_analytics_custom_module REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_source

def get_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::Source

Baseline implementation for the get_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#group_assets

def group_assets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::GroupAssetsResponse

Baseline implementation for the group_assets REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#group_findings

def group_findings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::GroupFindingsResponse

Baseline implementation for the group_findings REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#list_assets

def list_assets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::ListAssetsResponse

Baseline implementation for the list_assets REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_big_query_exports

def list_big_query_exports(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::ListBigQueryExportsResponse

Baseline implementation for the list_big_query_exports REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_descendant_security_health_analytics_custom_modules

def list_descendant_security_health_analytics_custom_modules(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesResponse

Baseline implementation for the list_descendant_security_health_analytics_custom_modules REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_effective_security_health_analytics_custom_modules

def list_effective_security_health_analytics_custom_modules(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesResponse

Baseline implementation for the list_effective_security_health_analytics_custom_modules REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_findings

def list_findings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::ListFindingsResponse

Baseline implementation for the list_findings REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_mute_configs

def list_mute_configs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::ListMuteConfigsResponse

Baseline implementation for the list_mute_configs REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_notification_configs

def list_notification_configs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::ListNotificationConfigsResponse

Baseline implementation for the list_notification_configs REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_security_health_analytics_custom_modules

def list_security_health_analytics_custom_modules(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesResponse

Baseline implementation for the list_security_health_analytics_custom_modules REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_sources

def list_sources(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::ListSourcesResponse

Baseline implementation for the list_sources REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#run_asset_discovery

def run_asset_discovery(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the run_asset_discovery REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#set_finding_state

def set_finding_state(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::Finding

Baseline implementation for the set_finding_state REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#set_iam_policy

def set_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy

Baseline implementation for the set_iam_policy REST call

Parameters
  • request_pb (::Google::Iam::V1::SetIamPolicyRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#set_mute

def set_mute(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::Finding

Baseline implementation for the set_mute REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#simulate_security_health_analytics_custom_module

def simulate_security_health_analytics_custom_module(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse

Baseline implementation for the simulate_security_health_analytics_custom_module REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#test_iam_permissions

def test_iam_permissions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::TestIamPermissionsResponse

Baseline implementation for the test_iam_permissions REST call

Parameters
  • request_pb (::Google::Iam::V1::TestIamPermissionsRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_big_query_export

def update_big_query_export(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::BigQueryExport

Baseline implementation for the update_big_query_export REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_external_system

def update_external_system(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::ExternalSystem

Baseline implementation for the update_external_system REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_finding

def update_finding(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::Finding

Baseline implementation for the update_finding REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_mute_config

def update_mute_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::MuteConfig

Baseline implementation for the update_mute_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_notification_config

def update_notification_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::NotificationConfig

Baseline implementation for the update_notification_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_organization_settings

def update_organization_settings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::OrganizationSettings

Baseline implementation for the update_organization_settings REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_security_health_analytics_custom_module

def update_security_health_analytics_custom_module(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule

Baseline implementation for the update_security_health_analytics_custom_module REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_security_marks

def update_security_marks(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::SecurityMarks

Baseline implementation for the update_security_marks REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_source

def update_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1::Source

Baseline implementation for the update_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)