Package com.google.logging.v2
Class ConfigServiceV2Grpc.ConfigServiceV2Stub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<ConfigServiceV2Grpc.ConfigServiceV2Stub>
-
- com.google.logging.v2.ConfigServiceV2Grpc.ConfigServiceV2Stub
-
- Enclosing class:
- ConfigServiceV2Grpc
public static final class ConfigServiceV2Grpc.ConfigServiceV2Stub extends io.grpc.stub.AbstractAsyncStub<ConfigServiceV2Grpc.ConfigServiceV2Stub>
A stub to allow clients to do asynchronous rpc calls to service ConfigServiceV2.Service for configuring sinks used to route log entries.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigServiceV2Grpc.ConfigServiceV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voidcopyLogEntries(CopyLogEntriesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Copies a set of log entries from a log bucket to a Cloud Storage bucket.voidcreateBucket(CreateBucketRequest request, io.grpc.stub.StreamObserver<LogBucket> responseObserver)Creates a log bucket that can be used to store log entries.voidcreateBucketAsync(CreateBucketRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Creates a log bucket asynchronously that can be used to store log entries.voidcreateExclusion(CreateExclusionRequest request, io.grpc.stub.StreamObserver<LogExclusion> responseObserver)Creates a new exclusion in the _Default sink in a specified parent resource.voidcreateLink(CreateLinkRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket.voidcreateSink(CreateSinkRequest request, io.grpc.stub.StreamObserver<LogSink> responseObserver)Creates a sink that exports specified log entries to a destination.voidcreateView(CreateViewRequest request, io.grpc.stub.StreamObserver<LogView> responseObserver)Creates a view over log entries in a log bucket.voiddeleteBucket(DeleteBucketRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Deletes a log bucket.voiddeleteExclusion(DeleteExclusionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Deletes an exclusion in the _Default sink.voiddeleteLink(DeleteLinkRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Deletes a link.voiddeleteSink(DeleteSinkRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Deletes a sink.voiddeleteView(DeleteViewRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Deletes a view on a log bucket.voidgetBucket(GetBucketRequest request, io.grpc.stub.StreamObserver<LogBucket> responseObserver)Gets a log bucket.voidgetCmekSettings(GetCmekSettingsRequest request, io.grpc.stub.StreamObserver<CmekSettings> responseObserver)Gets the Logging CMEK settings for the given resource.voidgetExclusion(GetExclusionRequest request, io.grpc.stub.StreamObserver<LogExclusion> responseObserver)Gets the description of an exclusion in the _Default sink.voidgetLink(GetLinkRequest request, io.grpc.stub.StreamObserver<Link> responseObserver)Gets a link.voidgetSettings(GetSettingsRequest request, io.grpc.stub.StreamObserver<Settings> responseObserver)Gets the Log Router settings for the given resource.voidgetSink(GetSinkRequest request, io.grpc.stub.StreamObserver<LogSink> responseObserver)Gets a sink.voidgetView(GetViewRequest request, io.grpc.stub.StreamObserver<LogView> responseObserver)Gets a view on a log bucket..voidlistBuckets(ListBucketsRequest request, io.grpc.stub.StreamObserver<ListBucketsResponse> responseObserver)Lists log buckets.voidlistExclusions(ListExclusionsRequest request, io.grpc.stub.StreamObserver<ListExclusionsResponse> responseObserver)Lists all the exclusions on the _Default sink in a parent resource.voidlistLinks(ListLinksRequest request, io.grpc.stub.StreamObserver<ListLinksResponse> responseObserver)Lists links.voidlistSinks(ListSinksRequest request, io.grpc.stub.StreamObserver<ListSinksResponse> responseObserver)Lists sinks.voidlistViews(ListViewsRequest request, io.grpc.stub.StreamObserver<ListViewsResponse> responseObserver)Lists views on a log bucket.voidundeleteBucket(UndeleteBucketRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Undeletes a log bucket.voidupdateBucket(UpdateBucketRequest request, io.grpc.stub.StreamObserver<LogBucket> responseObserver)Updates a log bucket.voidupdateBucketAsync(UpdateBucketRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Updates a log bucket asynchronously.voidupdateCmekSettings(UpdateCmekSettingsRequest request, io.grpc.stub.StreamObserver<CmekSettings> responseObserver)Updates the Log Router CMEK settings for the given resource.voidupdateExclusion(UpdateExclusionRequest request, io.grpc.stub.StreamObserver<LogExclusion> responseObserver)Changes one or more properties of an existing exclusion in the _Default sink.voidupdateSettings(UpdateSettingsRequest request, io.grpc.stub.StreamObserver<Settings> responseObserver)Updates the Log Router settings for the given resource.voidupdateSink(UpdateSinkRequest request, io.grpc.stub.StreamObserver<LogSink> responseObserver)Updates a sink.voidupdateView(UpdateViewRequest request, io.grpc.stub.StreamObserver<LogView> responseObserver)Updates a view on a log bucket.
-
-
-
Method Detail
-
build
protected ConfigServiceV2Grpc.ConfigServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<ConfigServiceV2Grpc.ConfigServiceV2Stub>
-
listBuckets
public void listBuckets(ListBucketsRequest request, io.grpc.stub.StreamObserver<ListBucketsResponse> responseObserver)
Lists log buckets.
-
getBucket
public void getBucket(GetBucketRequest request, io.grpc.stub.StreamObserver<LogBucket> responseObserver)
Gets a log bucket.
-
createBucketAsync
public void createBucketAsync(CreateBucketRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
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.
-
updateBucketAsync
public void updateBucketAsync(UpdateBucketRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
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.
-
createBucket
public void createBucket(CreateBucketRequest request, io.grpc.stub.StreamObserver<LogBucket> responseObserver)
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.
-
updateBucket
public void updateBucket(UpdateBucketRequest request, io.grpc.stub.StreamObserver<LogBucket> responseObserver)
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.
-
deleteBucket
public void deleteBucket(DeleteBucketRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
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.
-
undeleteBucket
public void undeleteBucket(UndeleteBucketRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days.
-
listViews
public void listViews(ListViewsRequest request, io.grpc.stub.StreamObserver<ListViewsResponse> responseObserver)
Lists views on a log bucket.
-
getView
public void getView(GetViewRequest request, io.grpc.stub.StreamObserver<LogView> responseObserver)
Gets a view on a log bucket..
-
createView
public void createView(CreateViewRequest request, io.grpc.stub.StreamObserver<LogView> responseObserver)
Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.
-
updateView
public void updateView(UpdateViewRequest request, io.grpc.stub.StreamObserver<LogView> responseObserver)
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.
-
deleteView
public void deleteView(DeleteViewRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
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.
-
listSinks
public void listSinks(ListSinksRequest request, io.grpc.stub.StreamObserver<ListSinksResponse> responseObserver)
Lists sinks.
-
getSink
public void getSink(GetSinkRequest request, io.grpc.stub.StreamObserver<LogSink> responseObserver)
Gets a sink.
-
createSink
public void createSink(CreateSinkRequest request, io.grpc.stub.StreamObserver<LogSink> responseObserver)
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.
-
updateSink
public void updateSink(UpdateSinkRequest request, io.grpc.stub.StreamObserver<LogSink> responseObserver)
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.
-
deleteSink
public void deleteSink(DeleteSinkRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also deleted.
-
createLink
public void createLink(CreateLinkRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
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.
-
deleteLink
public void deleteLink(DeleteLinkRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Deletes a link. This will also delete the corresponding BigQuery linked dataset.
-
listLinks
public void listLinks(ListLinksRequest request, io.grpc.stub.StreamObserver<ListLinksResponse> responseObserver)
Lists links.
-
getLink
public void getLink(GetLinkRequest request, io.grpc.stub.StreamObserver<Link> responseObserver)
Gets a link.
-
listExclusions
public void listExclusions(ListExclusionsRequest request, io.grpc.stub.StreamObserver<ListExclusionsResponse> responseObserver)
Lists all the exclusions on the _Default sink in a parent resource.
-
getExclusion
public void getExclusion(GetExclusionRequest request, io.grpc.stub.StreamObserver<LogExclusion> responseObserver)
Gets the description of an exclusion in the _Default sink.
-
createExclusion
public void createExclusion(CreateExclusionRequest request, io.grpc.stub.StreamObserver<LogExclusion> responseObserver)
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.
-
updateExclusion
public void updateExclusion(UpdateExclusionRequest request, io.grpc.stub.StreamObserver<LogExclusion> responseObserver)
Changes one or more properties of an existing exclusion in the _Default sink.
-
deleteExclusion
public void deleteExclusion(DeleteExclusionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an exclusion in the _Default sink.
-
getCmekSettings
public void getCmekSettings(GetCmekSettingsRequest request, io.grpc.stub.StreamObserver<CmekSettings> responseObserver)
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.
-
updateCmekSettings
public void updateCmekSettings(UpdateCmekSettingsRequest request, io.grpc.stub.StreamObserver<CmekSettings> responseObserver)
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.
-
getSettings
public void getSettings(GetSettingsRequest request, io.grpc.stub.StreamObserver<Settings> responseObserver)
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.
-
updateSettings
public void updateSettings(UpdateSettingsRequest request, io.grpc.stub.StreamObserver<Settings> responseObserver)
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.
-
copyLogEntries
public void copyLogEntries(CopyLogEntriesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Copies a set of log entries from a log bucket to a Cloud Storage bucket.
-
-