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

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

  • Object

Methods

#create_finding

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

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

#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_notification_config

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

def get_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1p1beta1::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::V1p1beta1::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::V1p1beta1::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:, credentials:) -> ServiceStub
Returns

#list_assets

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

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

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

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

#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)

#update_finding

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

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

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