Class SecurityCenterGrpc.SecurityCenterBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<SecurityCenterGrpc.SecurityCenterBlockingV2Stub>
com.google.cloud.securitycenter.v1p1beta1.SecurityCenterGrpc.SecurityCenterBlockingV2Stub
Enclosing class:
SecurityCenterGrpc

public static final class SecurityCenterGrpc.SecurityCenterBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<SecurityCenterGrpc.SecurityCenterBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service SecurityCenter.
 V1p1Beta1 APIs for Security Center service.
 
  • Method Details

    • build

      protected SecurityCenterGrpc.SecurityCenterBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<SecurityCenterGrpc.SecurityCenterBlockingV2Stub>
    • createSource

      public Source createSource(CreateSourceRequest request) throws io.grpc.StatusException
       Creates a source.
       
      Throws:
      io.grpc.StatusException
    • createFinding

      public Finding createFinding(CreateFindingRequest request) throws io.grpc.StatusException
       Creates a finding. The corresponding source must exist for finding
       creation to succeed.
       
      Throws:
      io.grpc.StatusException
    • createNotificationConfig

      public NotificationConfig createNotificationConfig(CreateNotificationConfigRequest request) throws io.grpc.StatusException
       Creates a notification config.
       
      Throws:
      io.grpc.StatusException
    • deleteNotificationConfig

      public com.google.protobuf.Empty deleteNotificationConfig(DeleteNotificationConfigRequest request) throws io.grpc.StatusException
       Deletes a notification config.
       
      Throws:
      io.grpc.StatusException
    • getIamPolicy

      public Policy getIamPolicy(GetIamPolicyRequest request) throws io.grpc.StatusException
       Gets the access control policy on the specified Source.
       
      Throws:
      io.grpc.StatusException
    • getNotificationConfig

      public NotificationConfig getNotificationConfig(GetNotificationConfigRequest request) throws io.grpc.StatusException
       Gets a notification config.
       
      Throws:
      io.grpc.StatusException
    • getOrganizationSettings

      public OrganizationSettings getOrganizationSettings(GetOrganizationSettingsRequest request) throws io.grpc.StatusException
       Gets the settings for an organization.
       
      Throws:
      io.grpc.StatusException
    • getSource

      public Source getSource(GetSourceRequest request) throws io.grpc.StatusException
       Gets a source.
       
      Throws:
      io.grpc.StatusException
    • groupAssets

      public GroupAssetsResponse groupAssets(GroupAssetsRequest request) throws io.grpc.StatusException
       Filters an organization's assets and  groups them by their specified
       properties.
       
      Throws:
      io.grpc.StatusException
    • groupFindings

      public GroupFindingsResponse groupFindings(GroupFindingsRequest request) throws io.grpc.StatusException
       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
       
      Throws:
      io.grpc.StatusException
    • listAssets

      public ListAssetsResponse listAssets(ListAssetsRequest request) throws io.grpc.StatusException
       Lists an organization's assets.
       
      Throws:
      io.grpc.StatusException
    • listFindings

      public ListFindingsResponse listFindings(ListFindingsRequest request) throws io.grpc.StatusException
       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
       
      Throws:
      io.grpc.StatusException
    • listNotificationConfigs

      public ListNotificationConfigsResponse listNotificationConfigs(ListNotificationConfigsRequest request) throws io.grpc.StatusException
       Lists notification configs.
       
      Throws:
      io.grpc.StatusException
    • listSources

      public ListSourcesResponse listSources(ListSourcesRequest request) throws io.grpc.StatusException
       Lists all sources belonging to an organization.
       
      Throws:
      io.grpc.StatusException
    • runAssetDiscovery

      public Operation runAssetDiscovery(RunAssetDiscoveryRequest request) throws io.grpc.StatusException
       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.
       
      Throws:
      io.grpc.StatusException
    • setFindingState

      public Finding setFindingState(SetFindingStateRequest request) throws io.grpc.StatusException
       Updates the state of a finding.
       
      Throws:
      io.grpc.StatusException
    • setIamPolicy

      public Policy setIamPolicy(SetIamPolicyRequest request) throws io.grpc.StatusException
       Sets the access control policy on the specified Source.
       
      Throws:
      io.grpc.StatusException
    • testIamPermissions

      public TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) throws io.grpc.StatusException
       Returns the permissions that a caller has on the specified source.
       
      Throws:
      io.grpc.StatusException
    • updateFinding

      public Finding updateFinding(UpdateFindingRequest request) throws io.grpc.StatusException
       Creates or updates a finding. The corresponding source must exist for a
       finding creation to succeed.
       
      Throws:
      io.grpc.StatusException
    • updateNotificationConfig

      public NotificationConfig updateNotificationConfig(UpdateNotificationConfigRequest request) throws io.grpc.StatusException
       Updates a notification config. The following update
       fields are allowed: description, pubsub_topic, streaming_config.filter
       
      Throws:
      io.grpc.StatusException
    • updateOrganizationSettings

      public OrganizationSettings updateOrganizationSettings(UpdateOrganizationSettingsRequest request) throws io.grpc.StatusException
       Updates an organization's settings.
       
      Throws:
      io.grpc.StatusException
    • updateSource

      public Source updateSource(UpdateSourceRequest request) throws io.grpc.StatusException
       Updates a source.
       
      Throws:
      io.grpc.StatusException
    • updateSecurityMarks

      public SecurityMarks updateSecurityMarks(UpdateSecurityMarksRequest request) throws io.grpc.StatusException
       Updates security marks.
       
      Throws:
      io.grpc.StatusException