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

Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::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

#batch_create_resource_value_configs

def batch_create_resource_value_configs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V2::BatchCreateResourceValueConfigsResponse

Baseline implementation for the batch_create_resource_value_configs REST call

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

#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::V2::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::V2::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::V2::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::V2::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_source

def create_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V2::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_resource_value_config

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

Baseline implementation for the delete_resource_value_config 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::V2::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_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::V2::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::V2::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_resource_value_config

def get_resource_value_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V2::ResourceValueConfig

Baseline implementation for the get_resource_value_config REST call

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

#get_simulation

def get_simulation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V2::Simulation

Baseline implementation for the get_simulation 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::V2::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)

#get_valued_resource

def get_valued_resource(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V2::ValuedResource

Baseline implementation for the get_valued_resource 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::V2::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_attack_paths

def list_attack_paths(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V2::ListAttackPathsResponse

Baseline implementation for the list_attack_paths 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::V2::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_findings

def list_findings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V2::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::V2::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::V2::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_resource_value_configs

def list_resource_value_configs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V2::ListResourceValueConfigsResponse

Baseline implementation for the list_resource_value_configs 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::V2::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)

#list_valued_resources

def list_valued_resources(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V2::ListValuedResourcesResponse

Baseline implementation for the list_valued_resources 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::V2::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::V2::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)

#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::V2::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::V2::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::V2::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::V2::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::V2::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_resource_value_config

def update_resource_value_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V2::ResourceValueConfig

Baseline implementation for the update_resource_value_config 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::V2::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::V2::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)