Class SecurityCenterGrpc.SecurityCenterStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SecurityCenterGrpc.SecurityCenterStub>
com.google.cloud.securitycenter.v1p1beta1.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.
V1p1Beta1 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 TypeMethodDescriptionprotected SecurityCenterGrpc.SecurityCenterStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateFinding(CreateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Creates a finding.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.voiddeleteNotificationConfig(DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a notification config.voidgetIamPolicy(GetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver) Gets the access control policy on the specified Source.voidgetNotificationConfig(GetNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver) Gets a notification config.voidgetOrganizationSettings(GetOrganizationSettingsRequest request, io.grpc.stub.StreamObserver<OrganizationSettings> responseObserver) Gets the settings for an organization.voidgetSource(GetSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver) Gets a source.voidgroupAssets(GroupAssetsRequest request, io.grpc.stub.StreamObserver<GroupAssetsResponse> responseObserver) Filters an organization's assets and groups them by their specified properties.voidgroupFindings(GroupFindingsRequest request, io.grpc.stub.StreamObserver<GroupFindingsResponse> responseObserver) Filters an organization or source's findings and groups them by their specified properties.voidlistAssets(ListAssetsRequest request, io.grpc.stub.StreamObserver<ListAssetsResponse> responseObserver) Lists an organization's assets.voidlistFindings(ListFindingsRequest request, io.grpc.stub.StreamObserver<ListFindingsResponse> responseObserver) Lists an organization or source's findings.voidlistNotificationConfigs(ListNotificationConfigsRequest request, io.grpc.stub.StreamObserver<ListNotificationConfigsResponse> responseObserver) Lists notification configs.voidlistSources(ListSourcesRequest request, io.grpc.stub.StreamObserver<ListSourcesResponse> responseObserver) Lists all sources belonging to an organization.voidrunAssetDiscovery(RunAssetDiscoveryRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Runs asset discovery.voidsetFindingState(SetFindingStateRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Updates the state of a finding.voidsetIamPolicy(SetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver) Sets the access control policy on the specified Source.voidtestIamPermissions(TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<TestIamPermissionsResponse> responseObserver) Returns the permissions that a caller has on the specified source.voidupdateFinding(UpdateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Creates or updates a finding.voidupdateNotificationConfig(UpdateNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver) Updates a notification config.voidupdateOrganizationSettings(UpdateOrganizationSettingsRequest request, io.grpc.stub.StreamObserver<OrganizationSettings> responseObserver) Updates an organization's settings.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>
-
createSource
public void createSource(CreateSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver) Creates a source.
-
createFinding
public void createFinding(CreateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Creates a finding. The corresponding source must exist for finding creation to succeed.
-
createNotificationConfig
public void createNotificationConfig(CreateNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver) Creates a notification config.
-
deleteNotificationConfig
public void deleteNotificationConfig(DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a notification config.
-
getIamPolicy
public void getIamPolicy(GetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver) Gets the access control policy on the specified Source.
-
getNotificationConfig
public void getNotificationConfig(GetNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver) Gets a notification config.
-
getOrganizationSettings
public void getOrganizationSettings(GetOrganizationSettingsRequest request, io.grpc.stub.StreamObserver<OrganizationSettings> responseObserver) Gets the settings for an organization.
-
getSource
public void getSource(GetSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver) Gets a source.
-
groupAssets
public void groupAssets(GroupAssetsRequest request, io.grpc.stub.StreamObserver<GroupAssetsResponse> responseObserver) Filters an organization's assets and groups them by their specified properties.
-
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. 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 -
listAssets
public void listAssets(ListAssetsRequest request, io.grpc.stub.StreamObserver<ListAssetsResponse> responseObserver) Lists an organization's assets.
-
listFindings
public void listFindings(ListFindingsRequest request, io.grpc.stub.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 -
listNotificationConfigs
public void listNotificationConfigs(ListNotificationConfigsRequest request, io.grpc.stub.StreamObserver<ListNotificationConfigsResponse> responseObserver) Lists notification configs.
-
listSources
public void listSources(ListSourcesRequest request, io.grpc.stub.StreamObserver<ListSourcesResponse> responseObserver) Lists all sources belonging to an organization.
-
runAssetDiscovery
public void runAssetDiscovery(RunAssetDiscoveryRequest request, io.grpc.stub.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.
-
setFindingState
public void setFindingState(SetFindingStateRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Updates the state of a finding.
-
setIamPolicy
public void setIamPolicy(SetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver) Sets the access control policy on the specified Source.
-
testIamPermissions
public void testIamPermissions(TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<TestIamPermissionsResponse> responseObserver) Returns the permissions that a caller has on the specified source.
-
updateFinding
public void updateFinding(UpdateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver) Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.
-
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
-
updateOrganizationSettings
public void updateOrganizationSettings(UpdateOrganizationSettingsRequest request, io.grpc.stub.StreamObserver<OrganizationSettings> responseObserver) Updates an organization's settings.
-
updateSource
public void updateSource(UpdateSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver) Updates a source.
-
updateSecurityMarks
public void updateSecurityMarks(UpdateSecurityMarksRequest request, io.grpc.stub.StreamObserver<SecurityMarks> responseObserver) Updates security marks.
-