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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::Finding)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::Finding) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::Source)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::Source) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::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
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::Source)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::Source) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_assets
def list_assets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse
Baseline implementation for the list_assets REST call
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::Finding)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::Finding) — A result object deserialized from the server's reply
- (::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
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::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
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::TestIamPermissionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::TestIamPermissionsResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::Finding)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::Finding) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecurityCenter::V1p1beta1::Source)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecurityCenter::V1p1beta1::Source) — A result object deserialized from the server's reply
- (::ArgumentError)