Class SecurityCenterGrpc.SecurityCenterStub (2.59.0)

public static final class SecurityCenterGrpc.SecurityCenterStub extends AbstractAsyncStub<SecurityCenterGrpc.SecurityCenterStub>

A stub to allow clients to do asynchronous rpc calls to service SecurityCenter.

V2 APIs for Security Center service.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > SecurityCenterGrpc.SecurityCenterStub

Methods

batchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest request, StreamObserver<BatchCreateResourceValueConfigsResponse> responseObserver)

public void batchCreateResourceValueConfigs(BatchCreateResourceValueConfigsRequest request, StreamObserver<BatchCreateResourceValueConfigsResponse> responseObserver)

Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.

Parameters
Name Description
request BatchCreateResourceValueConfigsRequest
responseObserver io.grpc.stub.StreamObserver<BatchCreateResourceValueConfigsResponse>

build(Channel channel, CallOptions callOptions)

protected SecurityCenterGrpc.SecurityCenterStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
SecurityCenterGrpc.SecurityCenterStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

bulkMuteFindings(BulkMuteFindingsRequest request, StreamObserver<Operation> responseObserver)

public void bulkMuteFindings(BulkMuteFindingsRequest request, 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.

Parameters
Name Description
request BulkMuteFindingsRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createBigQueryExport(CreateBigQueryExportRequest request, StreamObserver<BigQueryExport> responseObserver)

public void createBigQueryExport(CreateBigQueryExportRequest request, StreamObserver<BigQueryExport> responseObserver)

Creates a BigQuery export.

Parameters
Name Description
request CreateBigQueryExportRequest
responseObserver io.grpc.stub.StreamObserver<BigQueryExport>

createFinding(CreateFindingRequest request, StreamObserver<Finding> responseObserver)

public void createFinding(CreateFindingRequest request, StreamObserver<Finding> responseObserver)

Creates a finding in a location. The corresponding source must exist for finding creation to succeed.

Parameters
Name Description
request CreateFindingRequest
responseObserver io.grpc.stub.StreamObserver<Finding>

createMuteConfig(CreateMuteConfigRequest request, StreamObserver<MuteConfig> responseObserver)

public void createMuteConfig(CreateMuteConfigRequest request, StreamObserver<MuteConfig> responseObserver)

Creates a mute config.

Parameters
Name Description
request CreateMuteConfigRequest
responseObserver io.grpc.stub.StreamObserver<MuteConfig>

createNotificationConfig(CreateNotificationConfigRequest request, StreamObserver<NotificationConfig> responseObserver)

public void createNotificationConfig(CreateNotificationConfigRequest request, StreamObserver<NotificationConfig> responseObserver)

Creates a notification config.

Parameters
Name Description
request CreateNotificationConfigRequest
responseObserver io.grpc.stub.StreamObserver<NotificationConfig>

createSource(CreateSourceRequest request, StreamObserver<Source> responseObserver)

public void createSource(CreateSourceRequest request, StreamObserver<Source> responseObserver)

Creates a source.

Parameters
Name Description
request CreateSourceRequest
responseObserver io.grpc.stub.StreamObserver<Source>

deleteBigQueryExport(DeleteBigQueryExportRequest request, StreamObserver<Empty> responseObserver)

public void deleteBigQueryExport(DeleteBigQueryExportRequest request, StreamObserver<Empty> responseObserver)

Deletes an existing BigQuery export.

Parameters
Name Description
request DeleteBigQueryExportRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteMuteConfig(DeleteMuteConfigRequest request, StreamObserver<Empty> responseObserver)

public void deleteMuteConfig(DeleteMuteConfigRequest request, StreamObserver<Empty> responseObserver)

Deletes an existing mute config. If no location is specified, default is global.

Parameters
Name Description
request DeleteMuteConfigRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteNotificationConfig(DeleteNotificationConfigRequest request, StreamObserver<Empty> responseObserver)

public void deleteNotificationConfig(DeleteNotificationConfigRequest request, StreamObserver<Empty> responseObserver)

Deletes a notification config.

Parameters
Name Description
request DeleteNotificationConfigRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteResourceValueConfig(DeleteResourceValueConfigRequest request, StreamObserver<Empty> responseObserver)

public void deleteResourceValueConfig(DeleteResourceValueConfigRequest request, StreamObserver<Empty> responseObserver)

Deletes a ResourceValueConfig.

Parameters
Name Description
request DeleteResourceValueConfigRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getBigQueryExport(GetBigQueryExportRequest request, StreamObserver<BigQueryExport> responseObserver)

public void getBigQueryExport(GetBigQueryExportRequest request, StreamObserver<BigQueryExport> responseObserver)

Gets a BigQuery export.

Parameters
Name Description
request GetBigQueryExportRequest
responseObserver io.grpc.stub.StreamObserver<BigQueryExport>

getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Gets the access control policy on the specified Source.

Parameters
Name Description
request com.google.iam.v1.GetIamPolicyRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

getMuteConfig(GetMuteConfigRequest request, StreamObserver<MuteConfig> responseObserver)

public void getMuteConfig(GetMuteConfigRequest request, StreamObserver<MuteConfig> responseObserver)

Gets a mute config. If no location is specified, default is global.

Parameters
Name Description
request GetMuteConfigRequest
responseObserver io.grpc.stub.StreamObserver<MuteConfig>

getNotificationConfig(GetNotificationConfigRequest request, StreamObserver<NotificationConfig> responseObserver)

public void getNotificationConfig(GetNotificationConfigRequest request, StreamObserver<NotificationConfig> responseObserver)

Gets a notification config.

Parameters
Name Description
request GetNotificationConfigRequest
responseObserver io.grpc.stub.StreamObserver<NotificationConfig>

getResourceValueConfig(GetResourceValueConfigRequest request, StreamObserver<ResourceValueConfig> responseObserver)

public void getResourceValueConfig(GetResourceValueConfigRequest request, StreamObserver<ResourceValueConfig> responseObserver)

Gets a ResourceValueConfig.

Parameters
Name Description
request GetResourceValueConfigRequest
responseObserver io.grpc.stub.StreamObserver<ResourceValueConfig>

getSimulation(GetSimulationRequest request, StreamObserver<Simulation> responseObserver)

public void getSimulation(GetSimulationRequest request, StreamObserver<Simulation> responseObserver)

Get the simulation by name or the latest simulation for the given organization.

Parameters
Name Description
request GetSimulationRequest
responseObserver io.grpc.stub.StreamObserver<Simulation>

getSource(GetSourceRequest request, StreamObserver<Source> responseObserver)

public void getSource(GetSourceRequest request, StreamObserver<Source> responseObserver)

Gets a source.

Parameters
Name Description
request GetSourceRequest
responseObserver io.grpc.stub.StreamObserver<Source>

getValuedResource(GetValuedResourceRequest request, StreamObserver<ValuedResource> responseObserver)

public void getValuedResource(GetValuedResourceRequest request, StreamObserver<ValuedResource> responseObserver)

Get the valued resource by name

Parameters
Name Description
request GetValuedResourceRequest
responseObserver io.grpc.stub.StreamObserver<ValuedResource>

groupFindings(GroupFindingsRequest request, StreamObserver<GroupFindingsResponse> responseObserver)

public void groupFindings(GroupFindingsRequest request, 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
Parameters
Name Description
request GroupFindingsRequest
responseObserver io.grpc.stub.StreamObserver<GroupFindingsResponse>

listAttackPaths(ListAttackPathsRequest request, StreamObserver<ListAttackPathsResponse> responseObserver)

public void listAttackPaths(ListAttackPathsRequest request, StreamObserver<ListAttackPathsResponse> responseObserver)

Lists the attack paths for a set of simulation results or valued resources and filter.

Parameters
Name Description
request ListAttackPathsRequest
responseObserver io.grpc.stub.StreamObserver<ListAttackPathsResponse>

listBigQueryExports(ListBigQueryExportsRequest request, StreamObserver<ListBigQueryExportsResponse> responseObserver)

public void listBigQueryExports(ListBigQueryExportsRequest request, 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.

Parameters
Name Description
request ListBigQueryExportsRequest
responseObserver io.grpc.stub.StreamObserver<ListBigQueryExportsResponse>

listFindings(ListFindingsRequest request, StreamObserver<ListFindingsResponse> responseObserver)

public void listFindings(ListFindingsRequest request, 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
Parameters
Name Description
request ListFindingsRequest
responseObserver io.grpc.stub.StreamObserver<ListFindingsResponse>

listMuteConfigs(ListMuteConfigsRequest request, StreamObserver<ListMuteConfigsResponse> responseObserver)

public void listMuteConfigs(ListMuteConfigsRequest request, StreamObserver<ListMuteConfigsResponse> responseObserver)

Lists mute configs. If no location is specified, default is global.

Parameters
Name Description
request ListMuteConfigsRequest
responseObserver io.grpc.stub.StreamObserver<ListMuteConfigsResponse>

listNotificationConfigs(ListNotificationConfigsRequest request, StreamObserver<ListNotificationConfigsResponse> responseObserver)

public void listNotificationConfigs(ListNotificationConfigsRequest request, StreamObserver<ListNotificationConfigsResponse> responseObserver)

Lists notification configs.

Parameters
Name Description
request ListNotificationConfigsRequest
responseObserver io.grpc.stub.StreamObserver<ListNotificationConfigsResponse>

listResourceValueConfigs(ListResourceValueConfigsRequest request, StreamObserver<ListResourceValueConfigsResponse> responseObserver)

public void listResourceValueConfigs(ListResourceValueConfigsRequest request, StreamObserver<ListResourceValueConfigsResponse> responseObserver)

Lists all ResourceValueConfigs.

Parameters
Name Description
request ListResourceValueConfigsRequest
responseObserver io.grpc.stub.StreamObserver<ListResourceValueConfigsResponse>

listSources(ListSourcesRequest request, StreamObserver<ListSourcesResponse> responseObserver)

public void listSources(ListSourcesRequest request, StreamObserver<ListSourcesResponse> responseObserver)

Lists all sources belonging to an organization.

Parameters
Name Description
request ListSourcesRequest
responseObserver io.grpc.stub.StreamObserver<ListSourcesResponse>

listValuedResources(ListValuedResourcesRequest request, StreamObserver<ListValuedResourcesResponse> responseObserver)

public void listValuedResources(ListValuedResourcesRequest request, StreamObserver<ListValuedResourcesResponse> responseObserver)

Lists the valued resources for a set of simulation results and filter.

Parameters
Name Description
request ListValuedResourcesRequest
responseObserver io.grpc.stub.StreamObserver<ListValuedResourcesResponse>

setFindingState(SetFindingStateRequest request, StreamObserver<Finding> responseObserver)

public void setFindingState(SetFindingStateRequest request, StreamObserver<Finding> responseObserver)

Updates the state of a finding. If no location is specified, finding is assumed to be in global

Parameters
Name Description
request SetFindingStateRequest
responseObserver io.grpc.stub.StreamObserver<Finding>

setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Sets the access control policy on the specified Source.

Parameters
Name Description
request com.google.iam.v1.SetIamPolicyRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

setMute(SetMuteRequest request, StreamObserver<Finding> responseObserver)

public void setMute(SetMuteRequest request, StreamObserver<Finding> responseObserver)

Updates the mute state of a finding. If no location is specified, finding is assumed to be in global

Parameters
Name Description
request SetMuteRequest
responseObserver io.grpc.stub.StreamObserver<Finding>

testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

public void testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

Returns the permissions that a caller has on the specified source.

Parameters
Name Description
request com.google.iam.v1.TestIamPermissionsRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>

updateBigQueryExport(UpdateBigQueryExportRequest request, StreamObserver<BigQueryExport> responseObserver)

public void updateBigQueryExport(UpdateBigQueryExportRequest request, StreamObserver<BigQueryExport> responseObserver)

Updates a BigQuery export.

Parameters
Name Description
request UpdateBigQueryExportRequest
responseObserver io.grpc.stub.StreamObserver<BigQueryExport>

updateExternalSystem(UpdateExternalSystemRequest request, StreamObserver<ExternalSystem> responseObserver)

public void updateExternalSystem(UpdateExternalSystemRequest request, StreamObserver<ExternalSystem> responseObserver)

Updates external system. This is for a given finding. If no location is specified, finding is assumed to be in global

Parameters
Name Description
request UpdateExternalSystemRequest
responseObserver io.grpc.stub.StreamObserver<ExternalSystem>

updateFinding(UpdateFindingRequest request, StreamObserver<Finding> responseObserver)

public void updateFinding(UpdateFindingRequest request, 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.

Parameters
Name Description
request UpdateFindingRequest
responseObserver io.grpc.stub.StreamObserver<Finding>

updateMuteConfig(UpdateMuteConfigRequest request, StreamObserver<MuteConfig> responseObserver)

public void updateMuteConfig(UpdateMuteConfigRequest request, StreamObserver<MuteConfig> responseObserver)

Updates a mute config. If no location is specified, default is global.

Parameters
Name Description
request UpdateMuteConfigRequest
responseObserver io.grpc.stub.StreamObserver<MuteConfig>

updateNotificationConfig(UpdateNotificationConfigRequest request, StreamObserver<NotificationConfig> responseObserver)

public void updateNotificationConfig(UpdateNotificationConfigRequest request, StreamObserver<NotificationConfig> responseObserver)

Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter

Parameters
Name Description
request UpdateNotificationConfigRequest
responseObserver io.grpc.stub.StreamObserver<NotificationConfig>

updateResourceValueConfig(UpdateResourceValueConfigRequest request, StreamObserver<ResourceValueConfig> responseObserver)

public void updateResourceValueConfig(UpdateResourceValueConfigRequest request, StreamObserver<ResourceValueConfig> responseObserver)

Updates an existing ResourceValueConfigs with new rules.

Parameters
Name Description
request UpdateResourceValueConfigRequest
responseObserver io.grpc.stub.StreamObserver<ResourceValueConfig>

updateSecurityMarks(UpdateSecurityMarksRequest request, StreamObserver<SecurityMarks> responseObserver)

public void updateSecurityMarks(UpdateSecurityMarksRequest request, 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.

Parameters
Name Description
request UpdateSecurityMarksRequest
responseObserver io.grpc.stub.StreamObserver<SecurityMarks>

updateSource(UpdateSourceRequest request, StreamObserver<Source> responseObserver)

public void updateSource(UpdateSourceRequest request, StreamObserver<Source> responseObserver)

Updates a source.

Parameters
Name Description
request UpdateSourceRequest
responseObserver io.grpc.stub.StreamObserver<Source>