Class SecurityCenterGrpc.SecurityCenterStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SecurityCenterGrpc.SecurityCenterStub>
com.google.cloud.securitycenter.v2.SecurityCenterGrpc.SecurityCenterStub
- Enclosing class:
- SecurityCenterGrpc
public static final class SecurityCenterGrpc.SecurityCenterStub
extends io.grpc.stub.AbstractAsyncStub<SecurityCenterGrpc.SecurityCenterStub>
A stub to allow clients to do asynchronous rpc calls to service SecurityCenter.
V2 APIs for Security Center service.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionvoidbatchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest request, io.grpc.stub.StreamObserver<BatchCreateResourceValueConfigsResponse> responseObserver) Creates a ResourceValueConfig for an organization.protected SecurityCenterGrpc.SecurityCenterStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidbulkMuteFindings(BulkMuteFindingsRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Kicks off an LRO to bulk mute findings for a parent based on a filter.voidcreateBigQueryExport(CreateBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver) Creates a BigQuery export.voidcreateFinding(CreateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Creates a finding in a location.voidcreateMuteConfig(CreateMuteConfigRequest request, io.grpc.stub.StreamObserver<MuteConfig> responseObserver) Creates a mute config.voidcreateNotificationConfig(CreateNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver) Creates a notification config.voidcreateSource(CreateSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver) Creates a source.voiddeleteBigQueryExport(DeleteBigQueryExportRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes an existing BigQuery export.voiddeleteMuteConfig(DeleteMuteConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes an existing mute config.voiddeleteNotificationConfig(DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a notification config.voiddeleteResourceValueConfig(DeleteResourceValueConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a ResourceValueConfig.voidgetBigQueryExport(GetBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver) Gets a BigQuery export.voidgetIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Gets the access control policy on the specified Source.voidgetMuteConfig(GetMuteConfigRequest request, io.grpc.stub.StreamObserver<MuteConfig> responseObserver) Gets a mute config.voidgetNotificationConfig(GetNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver) Gets a notification config.voidgetResourceValueConfig(GetResourceValueConfigRequest request, io.grpc.stub.StreamObserver<ResourceValueConfig> responseObserver) Gets a ResourceValueConfig.voidgetSimulation(GetSimulationRequest request, io.grpc.stub.StreamObserver<Simulation> responseObserver) Get the simulation by name or the latest simulation for the given organization.voidgetSource(GetSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver) Gets a source.voidgetValuedResource(GetValuedResourceRequest request, io.grpc.stub.StreamObserver<ValuedResource> responseObserver) Get the valued resource by namevoidgroupFindings(GroupFindingsRequest request, io.grpc.stub.StreamObserver<GroupFindingsResponse> responseObserver) Filters an organization or source's findings and groups them by their specified properties in a location.voidlistAttackPaths(ListAttackPathsRequest request, io.grpc.stub.StreamObserver<ListAttackPathsResponse> responseObserver) Lists the attack paths for a set of simulation results or valued resources and filter.voidlistBigQueryExports(ListBigQueryExportsRequest request, io.grpc.stub.StreamObserver<ListBigQueryExportsResponse> responseObserver) Lists BigQuery exports.voidlistFindings(ListFindingsRequest request, io.grpc.stub.StreamObserver<ListFindingsResponse> responseObserver) Lists an organization or source's findings.voidlistMuteConfigs(ListMuteConfigsRequest request, io.grpc.stub.StreamObserver<ListMuteConfigsResponse> responseObserver) Lists mute configs.voidlistNotificationConfigs(ListNotificationConfigsRequest request, io.grpc.stub.StreamObserver<ListNotificationConfigsResponse> responseObserver) Lists notification configs.voidlistResourceValueConfigs(ListResourceValueConfigsRequest request, io.grpc.stub.StreamObserver<ListResourceValueConfigsResponse> responseObserver) Lists all ResourceValueConfigs.voidlistSources(ListSourcesRequest request, io.grpc.stub.StreamObserver<ListSourcesResponse> responseObserver) Lists all sources belonging to an organization.voidlistValuedResources(ListValuedResourcesRequest request, io.grpc.stub.StreamObserver<ListValuedResourcesResponse> responseObserver) Lists the valued resources for a set of simulation results and filter.voidsetFindingState(SetFindingStateRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Updates the state of a finding.voidsetIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Sets the access control policy on the specified Source.voidsetMute(SetMuteRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Updates the mute state of a finding.voidtestIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) Returns the permissions that a caller has on the specified source.voidupdateBigQueryExport(UpdateBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver) Updates a BigQuery export.voidupdateExternalSystem(UpdateExternalSystemRequest request, io.grpc.stub.StreamObserver<ExternalSystem> responseObserver) Updates external system.voidupdateFinding(UpdateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Creates or updates a finding.voidupdateMuteConfig(UpdateMuteConfigRequest request, io.grpc.stub.StreamObserver<MuteConfig> responseObserver) Updates a mute config.voidupdateNotificationConfig(UpdateNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver) Updates a notification config.voidupdateResourceValueConfig(UpdateResourceValueConfigRequest request, io.grpc.stub.StreamObserver<ResourceValueConfig> responseObserver) Updates an existing ResourceValueConfigs with new rules.voidupdateSecurityMarks(UpdateSecurityMarksRequest request, io.grpc.stub.StreamObserver<SecurityMarks> responseObserver) Updates security marks.voidupdateSource(UpdateSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver) Updates a source.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected SecurityCenterGrpc.SecurityCenterStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SecurityCenterGrpc.SecurityCenterStub>
-
batchCreateResourceValueConfigs
public void batchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest request, io.grpc.stub.StreamObserver<BatchCreateResourceValueConfigsResponse> responseObserver) Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.
-
bulkMuteFindings
public void bulkMuteFindings(BulkMuteFindingsRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Kicks off an LRO to bulk mute findings for a parent based on a filter. If no location is specified, findings are muted in global. The parent can be either an organization, folder, or project. The findings matched by the filter will be muted after the LRO is done.
-
createBigQueryExport
public void createBigQueryExport(CreateBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver) Creates a BigQuery export.
-
createFinding
public void createFinding(CreateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Creates a finding in a location. The corresponding source must exist for finding creation to succeed.
-
createMuteConfig
public void createMuteConfig(CreateMuteConfigRequest request, io.grpc.stub.StreamObserver<MuteConfig> responseObserver) Creates a mute config.
-
createNotificationConfig
public void createNotificationConfig(CreateNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver) Creates a notification config.
-
createSource
public void createSource(CreateSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver) Creates a source.
-
deleteBigQueryExport
public void deleteBigQueryExport(DeleteBigQueryExportRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes an existing BigQuery export.
-
deleteMuteConfig
public void deleteMuteConfig(DeleteMuteConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes an existing mute config. If no location is specified, default is global.
-
deleteNotificationConfig
public void deleteNotificationConfig(DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a notification config.
-
deleteResourceValueConfig
public void deleteResourceValueConfig(DeleteResourceValueConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a ResourceValueConfig.
-
getBigQueryExport
public void getBigQueryExport(GetBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver) Gets a BigQuery export.
-
getSimulation
public void getSimulation(GetSimulationRequest request, io.grpc.stub.StreamObserver<Simulation> responseObserver) Get the simulation by name or the latest simulation for the given organization.
-
getValuedResource
public void getValuedResource(GetValuedResourceRequest request, io.grpc.stub.StreamObserver<ValuedResource> responseObserver) Get the valued resource by name
-
getIamPolicy
public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Gets the access control policy on the specified Source.
-
getMuteConfig
public void getMuteConfig(GetMuteConfigRequest request, io.grpc.stub.StreamObserver<MuteConfig> responseObserver) Gets a mute config. If no location is specified, default is global.
-
getNotificationConfig
public void getNotificationConfig(GetNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver) Gets a notification config.
-
getResourceValueConfig
public void getResourceValueConfig(GetResourceValueConfigRequest request, io.grpc.stub.StreamObserver<ResourceValueConfig> responseObserver) Gets a ResourceValueConfig.
-
getSource
public void getSource(GetSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver) Gets a source.
-
groupFindings
public void groupFindings(GroupFindingsRequest request, io.grpc.stub.StreamObserver<GroupFindingsResponse> responseObserver) Filters an organization or source's findings and groups them by their specified properties in a location. If no location is specified, findings are assumed to be in global To group across all sources provide a `-` as the source id. The following list shows some examples: + `/v2/organizations/{organization_id}/sources/-/findings` + `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings` + `/v2/folders/{folder_id}/sources/-/findings` + `/v2/folders/{folder_id}/sources/-/locations/{location_id}/findings` + `/v2/projects/{project_id}/sources/-/findings` + `/v2/projects/{project_id}/sources/-/locations/{location_id}/findings` -
listAttackPaths
public void listAttackPaths(ListAttackPathsRequest request, io.grpc.stub.StreamObserver<ListAttackPathsResponse> responseObserver) Lists the attack paths for a set of simulation results or valued resources and filter.
-
listBigQueryExports
public void listBigQueryExports(ListBigQueryExportsRequest request, io.grpc.stub.StreamObserver<ListBigQueryExportsResponse> responseObserver) Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
-
listFindings
public void listFindings(ListFindingsRequest request, io.grpc.stub.StreamObserver<ListFindingsResponse> responseObserver) Lists an organization or source's findings. To list across all sources for a given location provide a `-` as the source id. If no location is specified, finding are assumed to be in global. The following list shows some examples: + `/v2/organizations/{organization_id}/sources/-/findings` + `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings` -
listMuteConfigs
public void listMuteConfigs(ListMuteConfigsRequest request, io.grpc.stub.StreamObserver<ListMuteConfigsResponse> responseObserver) Lists mute configs. If no location is specified, default is global.
-
listNotificationConfigs
public void listNotificationConfigs(ListNotificationConfigsRequest request, io.grpc.stub.StreamObserver<ListNotificationConfigsResponse> responseObserver) Lists notification configs.
-
listResourceValueConfigs
public void listResourceValueConfigs(ListResourceValueConfigsRequest request, io.grpc.stub.StreamObserver<ListResourceValueConfigsResponse> responseObserver) Lists all ResourceValueConfigs.
-
listSources
public void listSources(ListSourcesRequest request, io.grpc.stub.StreamObserver<ListSourcesResponse> responseObserver) Lists all sources belonging to an organization.
-
listValuedResources
public void listValuedResources(ListValuedResourcesRequest request, io.grpc.stub.StreamObserver<ListValuedResourcesResponse> responseObserver) Lists the valued resources for a set of simulation results and filter.
-
setFindingState
public void setFindingState(SetFindingStateRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Updates the state of a finding. If no location is specified, finding is assumed to be in global
-
setIamPolicy
public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Sets the access control policy on the specified Source.
-
setMute
Updates the mute state of a finding. If no location is specified, finding is assumed to be in global
-
testIamPermissions
public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) Returns the permissions that a caller has on the specified source.
-
updateBigQueryExport
public void updateBigQueryExport(UpdateBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver) Updates a BigQuery export.
-
updateExternalSystem
public void updateExternalSystem(UpdateExternalSystemRequest request, io.grpc.stub.StreamObserver<ExternalSystem> responseObserver) Updates external system. This is for a given finding. If no location is specified, finding is assumed to be in global
-
updateFinding
public void updateFinding(UpdateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Creates or updates a finding. If no location is specified, finding is assumed to be in global. The corresponding source must exist for a finding creation to succeed.
-
updateMuteConfig
public void updateMuteConfig(UpdateMuteConfigRequest request, io.grpc.stub.StreamObserver<MuteConfig> responseObserver) Updates a mute config. If no location is specified, default is global.
-
updateNotificationConfig
public void updateNotificationConfig(UpdateNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver) Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter
-
updateResourceValueConfig
public void updateResourceValueConfig(UpdateResourceValueConfigRequest request, io.grpc.stub.StreamObserver<ResourceValueConfig> responseObserver) Updates an existing ResourceValueConfigs with new rules.
-
updateSecurityMarks
public void updateSecurityMarks(UpdateSecurityMarksRequest request, io.grpc.stub.StreamObserver<SecurityMarks> responseObserver) Updates security marks. For Finding Security marks, if no location is specified, finding is assumed to be in global. Assets Security Marks can only be accessed through global endpoint.
-
updateSource
public void updateSource(UpdateSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver) Updates a source.
-