Class SecurityCenterGrpc.SecurityCenterStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<SecurityCenterGrpc.SecurityCenterStub>
-
- com.google.cloud.securitycenter.v1.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.V1 APIs for Security Center service.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected SecurityCenterGrpc.SecurityCenterStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
bulkMuteFindings(BulkMuteFindingsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Kicks off an LRO to bulk mute findings for a parent based on a filter.void
createBigQueryExport(CreateBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver)
Creates a BigQuery export.void
createFinding(CreateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver)
Creates a finding.void
createMuteConfig(CreateMuteConfigRequest request, io.grpc.stub.StreamObserver<MuteConfig> responseObserver)
Creates a mute config.void
createNotificationConfig(CreateNotificationConfigRequest request, io.grpc.stub.StreamObserver<NotificationConfig> responseObserver)
Creates a notification config.void
createSecurityHealthAnalyticsCustomModule(CreateSecurityHealthAnalyticsCustomModuleRequest request, io.grpc.stub.StreamObserver<SecurityHealthAnalyticsCustomModule> responseObserver)
Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent.void
createSource(CreateSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver)
Creates a source.void
deleteBigQueryExport(DeleteBigQueryExportRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing BigQuery export.void
deleteMuteConfig(DeleteMuteConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing mute config.void
deleteNotificationConfig(DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a notification config.void
deleteSecurityHealthAnalyticsCustomModule(DeleteSecurityHealthAnalyticsCustomModuleRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy.void
getBigQueryExport(GetBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver)
Gets a BigQuery export.void
getEffectiveSecurityHealthAnalyticsCustomModule(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, io.grpc.stub.StreamObserver<EffectiveSecurityHealthAnalyticsCustomModule> responseObserver)
Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.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
getMuteConfig(GetMuteConfigRequest request, io.grpc.stub.StreamObserver<MuteConfig> responseObserver)
Gets a mute config.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
getSecurityHealthAnalyticsCustomModule(GetSecurityHealthAnalyticsCustomModuleRequest request, io.grpc.stub.StreamObserver<SecurityHealthAnalyticsCustomModule> responseObserver)
Retrieves a SecurityHealthAnalyticsCustomModule.void
getSource(GetSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver)
Gets a source.void
groupAssets(GroupAssetsRequest request, io.grpc.stub.StreamObserver<GroupAssetsResponse> responseObserver)
Deprecated.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)
Deprecated.void
listBigQueryExports(ListBigQueryExportsRequest request, io.grpc.stub.StreamObserver<ListBigQueryExportsResponse> responseObserver)
Lists BigQuery exports.void
listDescendantSecurityHealthAnalyticsCustomModules(ListDescendantSecurityHealthAnalyticsCustomModulesRequest request, io.grpc.stub.StreamObserver<ListDescendantSecurityHealthAnalyticsCustomModulesResponse> responseObserver)
Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.void
listEffectiveSecurityHealthAnalyticsCustomModules(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request, io.grpc.stub.StreamObserver<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> responseObserver)
Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent.void
listFindings(ListFindingsRequest request, io.grpc.stub.StreamObserver<ListFindingsResponse> responseObserver)
Lists an organization or source's findings.void
listMuteConfigs(ListMuteConfigsRequest request, io.grpc.stub.StreamObserver<ListMuteConfigsResponse> responseObserver)
Lists mute configs.void
listNotificationConfigs(ListNotificationConfigsRequest request, io.grpc.stub.StreamObserver<ListNotificationConfigsResponse> responseObserver)
Lists notification configs.void
listSecurityHealthAnalyticsCustomModules(ListSecurityHealthAnalyticsCustomModulesRequest request, io.grpc.stub.StreamObserver<ListSecurityHealthAnalyticsCustomModulesResponse> responseObserver)
Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent.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)
Deprecated.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
setMute(SetMuteRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver)
Updates the mute state of a finding.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
updateBigQueryExport(UpdateBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver)
Updates a BigQuery export.void
updateExternalSystem(UpdateExternalSystemRequest request, io.grpc.stub.StreamObserver<ExternalSystem> responseObserver)
Updates external system.void
updateFinding(UpdateFindingRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver)
Creates or updates a finding.void
updateMuteConfig(UpdateMuteConfigRequest request, io.grpc.stub.StreamObserver<MuteConfig> responseObserver)
Updates a mute config.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
updateSecurityHealthAnalyticsCustomModule(UpdateSecurityHealthAnalyticsCustomModuleRequest request, io.grpc.stub.StreamObserver<SecurityHealthAnalyticsCustomModule> responseObserver)
Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask.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>
-
bulkMuteFindings
public void bulkMuteFindings(BulkMuteFindingsRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.
-
createSecurityHealthAnalyticsCustomModule
public void createSecurityHealthAnalyticsCustomModule(CreateSecurityHealthAnalyticsCustomModuleRequest request, io.grpc.stub.StreamObserver<SecurityHealthAnalyticsCustomModule> responseObserver)
Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
-
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.
-
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.
-
deleteMuteConfig
public void deleteMuteConfig(DeleteMuteConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing mute config.
-
deleteNotificationConfig
public void deleteNotificationConfig(DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a notification config.
-
deleteSecurityHealthAnalyticsCustomModule
public void deleteSecurityHealthAnalyticsCustomModule(DeleteSecurityHealthAnalyticsCustomModuleRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
-
getBigQueryExport
public void getBigQueryExport(GetBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver)
Gets a BigQuery export.
-
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.
-
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.
-
getEffectiveSecurityHealthAnalyticsCustomModule
public void getEffectiveSecurityHealthAnalyticsCustomModule(GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request, io.grpc.stub.StreamObserver<EffectiveSecurityHealthAnalyticsCustomModule> responseObserver)
Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
-
getSecurityHealthAnalyticsCustomModule
public void getSecurityHealthAnalyticsCustomModule(GetSecurityHealthAnalyticsCustomModuleRequest request, io.grpc.stub.StreamObserver<SecurityHealthAnalyticsCustomModule> responseObserver)
Retrieves a SecurityHealthAnalyticsCustomModule.
-
getSource
public void getSource(GetSourceRequest request, io.grpc.stub.StreamObserver<Source> responseObserver)
Gets a source.
-
groupAssets
@Deprecated public void groupAssets(GroupAssetsRequest request, io.grpc.stub.StreamObserver<GroupAssetsResponse> responseObserver)
Deprecated.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
@Deprecated public void listAssets(ListAssetsRequest request, io.grpc.stub.StreamObserver<ListAssetsResponse> responseObserver)
Deprecated.Lists an organization's assets.
-
listDescendantSecurityHealthAnalyticsCustomModules
public void listDescendantSecurityHealthAnalyticsCustomModules(ListDescendantSecurityHealthAnalyticsCustomModulesRequest request, io.grpc.stub.StreamObserver<ListDescendantSecurityHealthAnalyticsCustomModulesResponse> responseObserver)
Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.
-
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: /v1/organizations/{organization_id}/sources/-/findings
-
listMuteConfigs
public void listMuteConfigs(ListMuteConfigsRequest request, io.grpc.stub.StreamObserver<ListMuteConfigsResponse> responseObserver)
Lists mute configs.
-
listNotificationConfigs
public void listNotificationConfigs(ListNotificationConfigsRequest request, io.grpc.stub.StreamObserver<ListNotificationConfigsResponse> responseObserver)
Lists notification configs.
-
listEffectiveSecurityHealthAnalyticsCustomModules
public void listEffectiveSecurityHealthAnalyticsCustomModules(ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request, io.grpc.stub.StreamObserver<ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> responseObserver)
Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
-
listSecurityHealthAnalyticsCustomModules
public void listSecurityHealthAnalyticsCustomModules(ListSecurityHealthAnalyticsCustomModulesRequest request, io.grpc.stub.StreamObserver<ListSecurityHealthAnalyticsCustomModulesResponse> responseObserver)
Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
-
listSources
public void listSources(ListSourcesRequest request, io.grpc.stub.StreamObserver<ListSourcesResponse> responseObserver)
Lists all sources belonging to an organization.
-
runAssetDiscovery
@Deprecated public void runAssetDiscovery(RunAssetDiscoveryRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Deprecated.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.
-
setMute
public void setMute(SetMuteRequest request, io.grpc.stub.StreamObserver<Finding> responseObserver)
Updates the mute 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.
-
updateExternalSystem
public void updateExternalSystem(UpdateExternalSystemRequest request, io.grpc.stub.StreamObserver<ExternalSystem> responseObserver)
Updates external system. This is for a given finding.
-
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.
-
updateMuteConfig
public void updateMuteConfig(UpdateMuteConfigRequest request, io.grpc.stub.StreamObserver<MuteConfig> responseObserver)
Updates a mute config.
-
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.
-
updateSecurityHealthAnalyticsCustomModule
public void updateSecurityHealthAnalyticsCustomModule(UpdateSecurityHealthAnalyticsCustomModuleRequest request, io.grpc.stub.StreamObserver<SecurityHealthAnalyticsCustomModule> responseObserver)
Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name and custom config of a module is supported on resident modules only.
-
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.
-
createBigQueryExport
public void createBigQueryExport(CreateBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver)
Creates a BigQuery export.
-
deleteBigQueryExport
public void deleteBigQueryExport(DeleteBigQueryExportRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing BigQuery export.
-
updateBigQueryExport
public void updateBigQueryExport(UpdateBigQueryExportRequest request, io.grpc.stub.StreamObserver<BigQueryExport> responseObserver)
Updates a BigQuery export.
-
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.
-
-