Interface SecurityCenterGrpc.AsyncService (2.43.0)

public static interface SecurityCenterGrpc.AsyncService

V1p1Beta1 APIs for Security Center service.

Methods

createFinding(CreateFindingRequest request, StreamObserver<Finding> responseObserver)

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

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

Parameters
NameDescription
requestCreateFindingRequest
responseObserverio.grpc.stub.StreamObserver<Finding>

createNotificationConfig(CreateNotificationConfigRequest request, StreamObserver<NotificationConfig> responseObserver)

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

Creates a notification config.

Parameters
NameDescription
requestCreateNotificationConfigRequest
responseObserverio.grpc.stub.StreamObserver<NotificationConfig>

createSource(CreateSourceRequest request, StreamObserver<Source> responseObserver)

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

Creates a source.

Parameters
NameDescription
requestCreateSourceRequest
responseObserverio.grpc.stub.StreamObserver<Source>

deleteNotificationConfig(DeleteNotificationConfigRequest request, StreamObserver<Empty> responseObserver)

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

Deletes a notification config.

Parameters
NameDescription
requestDeleteNotificationConfigRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

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

Gets the access control policy on the specified Source.

Parameters
NameDescription
requestcom.google.iam.v1.GetIamPolicyRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

getNotificationConfig(GetNotificationConfigRequest request, StreamObserver<NotificationConfig> responseObserver)

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

Gets a notification config.

Parameters
NameDescription
requestGetNotificationConfigRequest
responseObserverio.grpc.stub.StreamObserver<NotificationConfig>

getOrganizationSettings(GetOrganizationSettingsRequest request, StreamObserver<OrganizationSettings> responseObserver)

public default void getOrganizationSettings(GetOrganizationSettingsRequest request, StreamObserver<OrganizationSettings> responseObserver)

Gets the settings for an organization.

Parameters
NameDescription
requestGetOrganizationSettingsRequest
responseObserverio.grpc.stub.StreamObserver<OrganizationSettings>

getSource(GetSourceRequest request, StreamObserver<Source> responseObserver)

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

Gets a source.

Parameters
NameDescription
requestGetSourceRequest
responseObserverio.grpc.stub.StreamObserver<Source>

groupAssets(GroupAssetsRequest request, StreamObserver<GroupAssetsResponse> responseObserver)

public default void groupAssets(GroupAssetsRequest request, StreamObserver<GroupAssetsResponse> responseObserver)

Filters an organization's assets and groups them by their specified properties.

Parameters
NameDescription
requestGroupAssetsRequest
responseObserverio.grpc.stub.StreamObserver<GroupAssetsResponse>

groupFindings(GroupFindingsRequest request, StreamObserver<GroupFindingsResponse> responseObserver)

public default void groupFindings(GroupFindingsRequest request, StreamObserver<GroupFindingsResponse> responseObserver)

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, /v1/folders/{folder_id}/sources/-/findings, /v1/projects/{project_id}/sources/-/findings

Parameters
NameDescription
requestGroupFindingsRequest
responseObserverio.grpc.stub.StreamObserver<GroupFindingsResponse>

listAssets(ListAssetsRequest request, StreamObserver<ListAssetsResponse> responseObserver)

public default void listAssets(ListAssetsRequest request, StreamObserver<ListAssetsResponse> responseObserver)

Lists an organization's assets.

Parameters
NameDescription
requestListAssetsRequest
responseObserverio.grpc.stub.StreamObserver<ListAssetsResponse>

listFindings(ListFindingsRequest request, StreamObserver<ListFindingsResponse> responseObserver)

public default void listFindings(ListFindingsRequest request, StreamObserver<ListFindingsResponse> responseObserver)

Lists an organization or source's findings. To list across all sources provide a - as the source id. Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings

Parameters
NameDescription
requestListFindingsRequest
responseObserverio.grpc.stub.StreamObserver<ListFindingsResponse>

listNotificationConfigs(ListNotificationConfigsRequest request, StreamObserver<ListNotificationConfigsResponse> responseObserver)

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

Lists notification configs.

Parameters
NameDescription
requestListNotificationConfigsRequest
responseObserverio.grpc.stub.StreamObserver<ListNotificationConfigsResponse>

listSources(ListSourcesRequest request, StreamObserver<ListSourcesResponse> responseObserver)

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

Lists all sources belonging to an organization.

Parameters
NameDescription
requestListSourcesRequest
responseObserverio.grpc.stub.StreamObserver<ListSourcesResponse>

runAssetDiscovery(RunAssetDiscoveryRequest request, StreamObserver<Operation> responseObserver)

public default void runAssetDiscovery(RunAssetDiscoveryRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestRunAssetDiscoveryRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

setFindingState(SetFindingStateRequest request, StreamObserver<Finding> responseObserver)

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

Updates the state of a finding.

Parameters
NameDescription
requestSetFindingStateRequest
responseObserverio.grpc.stub.StreamObserver<Finding>

setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

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

Sets the access control policy on the specified Source.

Parameters
NameDescription
requestcom.google.iam.v1.SetIamPolicyRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

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

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

Parameters
NameDescription
requestcom.google.iam.v1.TestIamPermissionsRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>

updateFinding(UpdateFindingRequest request, StreamObserver<Finding> responseObserver)

public default void updateFinding(UpdateFindingRequest request, StreamObserver<Finding> responseObserver)

Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.

Parameters
NameDescription
requestUpdateFindingRequest
responseObserverio.grpc.stub.StreamObserver<Finding>

updateNotificationConfig(UpdateNotificationConfigRequest request, StreamObserver<NotificationConfig> responseObserver)

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

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

Parameters
NameDescription
requestUpdateNotificationConfigRequest
responseObserverio.grpc.stub.StreamObserver<NotificationConfig>

updateOrganizationSettings(UpdateOrganizationSettingsRequest request, StreamObserver<OrganizationSettings> responseObserver)

public default void updateOrganizationSettings(UpdateOrganizationSettingsRequest request, StreamObserver<OrganizationSettings> responseObserver)

Updates an organization's settings.

Parameters
NameDescription
requestUpdateOrganizationSettingsRequest
responseObserverio.grpc.stub.StreamObserver<OrganizationSettings>

updateSecurityMarks(UpdateSecurityMarksRequest request, StreamObserver<SecurityMarks> responseObserver)

public default void updateSecurityMarks(UpdateSecurityMarksRequest request, StreamObserver<SecurityMarks> responseObserver)

Updates security marks.

Parameters
NameDescription
requestUpdateSecurityMarksRequest
responseObserverio.grpc.stub.StreamObserver<SecurityMarks>

updateSource(UpdateSourceRequest request, StreamObserver<Source> responseObserver)

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

Updates a source.

Parameters
NameDescription
requestUpdateSourceRequest
responseObserverio.grpc.stub.StreamObserver<Source>