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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SecurityCenterGrpc.SecurityCenterStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
createFinding(CreateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver)
Creates a finding.void
createNotificationConfig(CreateNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver)
Creates a notification config.void
createSource(CreateSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver)
Creates a source.void
deleteNotificationConfig(DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a notification config.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.void
getNotificationConfig(GetNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver)
Gets a notification config.void
getOrganizationSettings(GetOrganizationSettingsRequest request, io.grpc.stub.StreamObserver<OrganizationSettings> responseObserver)
Gets the settings for an organization.void
getSource(GetSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver)
Gets a source.void
groupAssets(GroupAssetsRequest request, io.grpc.stub.StreamObserver<GroupAssetsResponse> responseObserver)
Filters an organization's assets and groups them by their specified properties.void
groupFindings(GroupFindingsRequest request, io.grpc.stub.StreamObserver<GroupFindingsResponse> responseObserver)
Filters an organization or source's findings and groups them by their specified properties.void
listAssets(ListAssetsRequest request, io.grpc.stub.StreamObserver<ListAssetsResponse> responseObserver)
Lists an organization's assets.void
listFindings(ListFindingsRequest request, io.grpc.stub.StreamObserver<ListFindingsResponse> responseObserver)
Lists an organization or source's findings.void
listNotificationConfigs(ListNotificationConfigsRequest request, io.grpc.stub.StreamObserver<ListNotificationConfigsResponse> responseObserver)
Lists notification configs.void
listSources(ListSourcesRequest request, io.grpc.stub.StreamObserver<ListSourcesResponse> responseObserver)
Lists all sources belonging to an organization.void
runAssetDiscovery(RunAssetDiscoveryRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Runs asset discovery.void
setFindingState(SetFindingStateRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver)
Updates the state of a finding.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.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.void
updateFinding(UpdateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver)
Creates or updates a finding.void
updateNotificationConfig(UpdateNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver)
Updates a notification config.void
updateOrganizationSettings(UpdateOrganizationSettingsRequest request, io.grpc.stub.StreamObserver<OrganizationSettings> responseObserver)
Updates an organization's settings.void
updateSecurityMarks(UpdateSecurityMarksRequest request, io.grpc.stub.StreamObserver<SecurityMarks> responseObserver)
Updates security marks.void
updateSource(UpdateSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver)
Updates a source.
-
-
-
Method Detail
-
build
protected SecurityCenterGrpc.SecurityCenterStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in 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(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.
-
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<com.google.longrunning.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(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.
-
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.
-
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.
-
-