# Generated by the protocol buffer compiler. DO NOT EDIT! # Source: google/cloud/security_center/v1/securitycenter_service.proto for package 'Google::Cloud::SecurityCenter::V1' # Original file comments: # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # require 'grpc' require 'google/cloud/security_center/v1/securitycenter_service_pb' module Google::Cloud::SecurityCenter::V1 module SecurityCenter # V1 APIs for Security Center service. class Service include GRPC::GenericService self.marshal_class_method = :encode self.unmarshal_class_method = :decode self.service_name = 'google.cloud.securitycenter.v1.SecurityCenter' # Creates a source. rpc :CreateSource, CreateSourceRequest, Source # Creates a finding. The corresponding source must exist for finding creation # to succeed. rpc :CreateFinding, CreateFindingRequest, Finding # Creates a notification config. rpc :CreateNotificationConfig, CreateNotificationConfigRequest, NotificationConfig # Deletes a notification config. rpc :DeleteNotificationConfig, DeleteNotificationConfigRequest, Google::Protobuf::Empty # Gets the access control policy on the specified Source. rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy # Gets a notification config. rpc :GetNotificationConfig, GetNotificationConfigRequest, NotificationConfig # Gets the settings for an organization. rpc :GetOrganizationSettings, GetOrganizationSettingsRequest, OrganizationSettings # Gets a source. rpc :GetSource, GetSourceRequest, Source # Filters an organization's assets and groups them by their specified # properties. rpc :GroupAssets, GroupAssetsRequest, GroupAssetsResponse # Filters an organization or source's findings and groups them by their # specified properties. # # To group across all sources provide a `-` as the source id. # Example: /v1/organizations/{organization_id}/sources/-/findings rpc :GroupFindings, GroupFindingsRequest, GroupFindingsResponse # Lists an organization's assets. rpc :ListAssets, ListAssetsRequest, ListAssetsResponse # Lists an organization or source's findings. # # To list across all sources provide a `-` as the source id. # Example: /v1/organizations/{organization_id}/sources/-/findings rpc :ListFindings, ListFindingsRequest, ListFindingsResponse # Lists notification configs. rpc :ListNotificationConfigs, ListNotificationConfigsRequest, ListNotificationConfigsResponse # Lists all sources belonging to an organization. rpc :ListSources, ListSourcesRequest, ListSourcesResponse # Runs asset discovery. The discovery is tracked with a long-running # operation. # # This API can only be called with limited frequency for an organization. If # it is called too frequently the caller will receive a TOO_MANY_REQUESTS # error. rpc :RunAssetDiscovery, RunAssetDiscoveryRequest, Google::Longrunning::Operation # Updates the state of a finding. rpc :SetFindingState, SetFindingStateRequest, Finding # Sets the access control policy on the specified Source. rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy # Returns the permissions that a caller has on the specified source. rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse # Creates or updates a finding. The corresponding source must exist for a # finding creation to succeed. rpc :UpdateFinding, UpdateFindingRequest, Finding # # Updates a notification config. rpc :UpdateNotificationConfig, UpdateNotificationConfigRequest, NotificationConfig # Updates an organization's settings. rpc :UpdateOrganizationSettings, UpdateOrganizationSettingsRequest, OrganizationSettings # Updates a source. rpc :UpdateSource, UpdateSourceRequest, Source # Updates security marks. rpc :UpdateSecurityMarks, UpdateSecurityMarksRequest, SecurityMarks end Stub = Service.rpc_stub_class end end