Class ConfigServiceV2Grpc.ConfigServiceV2BlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<ConfigServiceV2Grpc.ConfigServiceV2BlockingV2Stub>
com.google.logging.v2.ConfigServiceV2Grpc.ConfigServiceV2BlockingV2Stub
Enclosing class:
ConfigServiceV2Grpc

public static final class ConfigServiceV2Grpc.ConfigServiceV2BlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<ConfigServiceV2Grpc.ConfigServiceV2BlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service ConfigServiceV2.
 Service for configuring sinks used to route log entries.
 
  • Method Details

    • build

      protected ConfigServiceV2Grpc.ConfigServiceV2BlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<ConfigServiceV2Grpc.ConfigServiceV2BlockingV2Stub>
    • listBuckets

      public ListBucketsResponse listBuckets(ListBucketsRequest request) throws io.grpc.StatusException
       Lists log buckets.
       
      Throws:
      io.grpc.StatusException
    • getBucket

      public LogBucket getBucket(GetBucketRequest request) throws io.grpc.StatusException
       Gets a log bucket.
       
      Throws:
      io.grpc.StatusException
    • createBucketAsync

      public Operation createBucketAsync(CreateBucketRequest request) throws io.grpc.StatusException
       Creates a log bucket asynchronously that can be used to store log entries.
       After a bucket has been created, the bucket's location cannot be changed.
       
      Throws:
      io.grpc.StatusException
    • updateBucketAsync

      public Operation updateBucketAsync(UpdateBucketRequest request) throws io.grpc.StatusException
       Updates a log bucket asynchronously.
       If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
       `FAILED_PRECONDITION` will be returned.
       After a bucket has been created, the bucket's location cannot be changed.
       
      Throws:
      io.grpc.StatusException
    • createBucket

      public LogBucket createBucket(CreateBucketRequest request) throws io.grpc.StatusException
       Creates a log bucket that can be used to store log entries. After a bucket
       has been created, the bucket's location cannot be changed.
       
      Throws:
      io.grpc.StatusException
    • updateBucket

      public LogBucket updateBucket(UpdateBucketRequest request) throws io.grpc.StatusException
       Updates a log bucket.
       If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
       `FAILED_PRECONDITION` will be returned.
       After a bucket has been created, the bucket's location cannot be changed.
       
      Throws:
      io.grpc.StatusException
    • deleteBucket

      public com.google.protobuf.Empty deleteBucket(DeleteBucketRequest request) throws io.grpc.StatusException
       Deletes a log bucket.
       Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
       After 7 days, the bucket will be purged and all log entries in the bucket
       will be permanently deleted.
       
      Throws:
      io.grpc.StatusException
    • undeleteBucket

      public com.google.protobuf.Empty undeleteBucket(UndeleteBucketRequest request) throws io.grpc.StatusException
       Undeletes a log bucket. A bucket that has been deleted can be undeleted
       within the grace period of 7 days.
       
      Throws:
      io.grpc.StatusException
    • listViews

      public ListViewsResponse listViews(ListViewsRequest request) throws io.grpc.StatusException
       Lists views on a log bucket.
       
      Throws:
      io.grpc.StatusException
    • getView

      public LogView getView(GetViewRequest request) throws io.grpc.StatusException
       Gets a view on a log bucket..
       
      Throws:
      io.grpc.StatusException
    • createView

      public LogView createView(CreateViewRequest request) throws io.grpc.StatusException
       Creates a view over log entries in a log bucket. A bucket may contain a
       maximum of 30 views.
       
      Throws:
      io.grpc.StatusException
    • updateView

      public LogView updateView(UpdateViewRequest request) throws io.grpc.StatusException
       Updates a view on a log bucket. This method replaces the following fields
       in the existing view with values from the new view: `filter`.
       If an `UNAVAILABLE` error is returned, this indicates that system is not in
       a state where it can update the view. If this occurs, please try again in a
       few minutes.
       
      Throws:
      io.grpc.StatusException
    • deleteView

      public com.google.protobuf.Empty deleteView(DeleteViewRequest request) throws io.grpc.StatusException
       Deletes a view on a log bucket.
       If an `UNAVAILABLE` error is returned, this indicates that system is not in
       a state where it can delete the view. If this occurs, please try again in a
       few minutes.
       
      Throws:
      io.grpc.StatusException
    • listSinks

      public ListSinksResponse listSinks(ListSinksRequest request) throws io.grpc.StatusException
       Lists sinks.
       
      Throws:
      io.grpc.StatusException
    • getSink

      public LogSink getSink(GetSinkRequest request) throws io.grpc.StatusException
       Gets a sink.
       
      Throws:
      io.grpc.StatusException
    • createSink

      public LogSink createSink(CreateSinkRequest request) throws io.grpc.StatusException
       Creates a sink that exports specified log entries to a destination. The
       export of newly-ingested log entries begins immediately, unless the sink's
       `writer_identity` is not permitted to write to the destination. A sink can
       export log entries only from the resource owning the sink.
       
      Throws:
      io.grpc.StatusException
    • updateSink

      public LogSink updateSink(UpdateSinkRequest request) throws io.grpc.StatusException
       Updates a sink. This method replaces the following fields in the existing
       sink with values from the new sink: `destination`, and `filter`.
       The updated sink might also have a new `writer_identity`; see the
       `unique_writer_identity` field.
       
      Throws:
      io.grpc.StatusException
    • deleteSink

      public com.google.protobuf.Empty deleteSink(DeleteSinkRequest request) throws io.grpc.StatusException
       Deletes a sink. If the sink has a unique `writer_identity`, then that
       service account is also deleted.
       
      Throws:
      io.grpc.StatusException
    • createLink

      public Operation createLink(CreateLinkRequest request) throws io.grpc.StatusException
       Asynchronously creates a linked dataset in BigQuery which makes it possible
       to use BigQuery to read the logs stored in the log bucket. A log bucket may
       currently only contain one link.
       
      Throws:
      io.grpc.StatusException
    • deleteLink

      public Operation deleteLink(DeleteLinkRequest request) throws io.grpc.StatusException
       Deletes a link. This will also delete the corresponding BigQuery linked
       dataset.
       
      Throws:
      io.grpc.StatusException
    • listLinks

      public ListLinksResponse listLinks(ListLinksRequest request) throws io.grpc.StatusException
       Lists links.
       
      Throws:
      io.grpc.StatusException
    • getLink

      public Link getLink(GetLinkRequest request) throws io.grpc.StatusException
       Gets a link.
       
      Throws:
      io.grpc.StatusException
    • listExclusions

      public ListExclusionsResponse listExclusions(ListExclusionsRequest request) throws io.grpc.StatusException
       Lists all the exclusions on the _Default sink in a parent resource.
       
      Throws:
      io.grpc.StatusException
    • getExclusion

      public LogExclusion getExclusion(GetExclusionRequest request) throws io.grpc.StatusException
       Gets the description of an exclusion in the _Default sink.
       
      Throws:
      io.grpc.StatusException
    • createExclusion

      public LogExclusion createExclusion(CreateExclusionRequest request) throws io.grpc.StatusException
       Creates a new exclusion in the _Default sink in a specified parent
       resource. Only log entries belonging to that resource can be excluded. You
       can have up to 10 exclusions in a resource.
       
      Throws:
      io.grpc.StatusException
    • updateExclusion

      public LogExclusion updateExclusion(UpdateExclusionRequest request) throws io.grpc.StatusException
       Changes one or more properties of an existing exclusion in the _Default
       sink.
       
      Throws:
      io.grpc.StatusException
    • deleteExclusion

      public com.google.protobuf.Empty deleteExclusion(DeleteExclusionRequest request) throws io.grpc.StatusException
       Deletes an exclusion in the _Default sink.
       
      Throws:
      io.grpc.StatusException
    • getCmekSettings

      public CmekSettings getCmekSettings(GetCmekSettingsRequest request) throws io.grpc.StatusException
       Gets the Logging CMEK settings for the given resource.
       Note: CMEK for the Log Router can be configured for Google Cloud projects,
       folders, organizations and billing accounts. Once configured for an
       organization, it applies to all projects and folders in the Google Cloud
       organization.
       See [Enabling CMEK for Log
       Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
       for more information.
       
      Throws:
      io.grpc.StatusException
    • updateCmekSettings

      public CmekSettings updateCmekSettings(UpdateCmekSettingsRequest request) throws io.grpc.StatusException
       Updates the Log Router CMEK settings for the given resource.
       Note: CMEK for the Log Router can currently only be configured for Google
       Cloud organizations. Once configured, it applies to all projects and
       folders in the Google Cloud organization.
       [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
       will fail if 1) `kms_key_name` is invalid, or 2) the associated service
       account does not have the required
       `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
       3) access to the key is disabled.
       See [Enabling CMEK for Log
       Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
       for more information.
       
      Throws:
      io.grpc.StatusException
    • getSettings

      public Settings getSettings(GetSettingsRequest request) throws io.grpc.StatusException
       Gets the Log Router settings for the given resource.
       Note: Settings for the Log Router can be get for Google Cloud projects,
       folders, organizations and billing accounts. Currently it can only be
       configured for organizations. Once configured for an organization, it
       applies to all projects and folders in the Google Cloud organization.
       See [Enabling CMEK for Log
       Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
       for more information.
       
      Throws:
      io.grpc.StatusException
    • updateSettings

      public Settings updateSettings(UpdateSettingsRequest request) throws io.grpc.StatusException
       Updates the Log Router settings for the given resource.
       Note: Settings for the Log Router can currently only be configured for
       Google Cloud organizations. Once configured, it applies to all projects and
       folders in the Google Cloud organization.
       [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]
       will fail if 1) `kms_key_name` is invalid, or 2) the associated service
       account does not have the required
       `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
       3) access to the key is disabled. 4) `location_id` is not supported by
       Logging. 5) `location_id` violate OrgPolicy.
       See [Enabling CMEK for Log
       Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
       for more information.
       
      Throws:
      io.grpc.StatusException
    • copyLogEntries

      public Operation copyLogEntries(CopyLogEntriesRequest request) throws io.grpc.StatusException
       Copies a set of log entries from a log bucket to a Cloud Storage bucket.
       
      Throws:
      io.grpc.StatusException