Class ConfigServiceV2Grpc.ConfigServiceV2Stub (3.5.3)

public static final class ConfigServiceV2Grpc.ConfigServiceV2Stub extends AbstractAsyncStub<ConfigServiceV2Grpc.ConfigServiceV2Stub>

Service for configuring sinks used to route log entries.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > ConfigServiceV2Grpc.ConfigServiceV2Stub

Methods

build(Channel channel, CallOptions callOptions)

protected ConfigServiceV2Grpc.ConfigServiceV2Stub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
ConfigServiceV2Grpc.ConfigServiceV2Stub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createBucket(CreateBucketRequest request, StreamObserver<LogBucket> responseObserver)

public void createBucket(CreateBucketRequest request, StreamObserver<LogBucket> responseObserver)

Creates a bucket that can be used to store log entries. Once a bucket has been created, the region cannot be changed.

Parameters
NameDescription
requestCreateBucketRequest
responseObserverio.grpc.stub.StreamObserver<LogBucket>

createExclusion(CreateExclusionRequest request, StreamObserver<LogExclusion> responseObserver)

public void createExclusion(CreateExclusionRequest request, StreamObserver<LogExclusion> responseObserver)

Creates a new exclusion 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.

Parameters
NameDescription
requestCreateExclusionRequest
responseObserverio.grpc.stub.StreamObserver<LogExclusion>

createSink(CreateSinkRequest request, StreamObserver<LogSink> responseObserver)

public void createSink(CreateSinkRequest request, 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.

Parameters
NameDescription
requestCreateSinkRequest
responseObserverio.grpc.stub.StreamObserver<LogSink>

createView(CreateViewRequest request, StreamObserver<LogView> responseObserver)

public void createView(CreateViewRequest request, StreamObserver<LogView> responseObserver)

Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.

Parameters
NameDescription
requestCreateViewRequest
responseObserverio.grpc.stub.StreamObserver<LogView>

deleteBucket(DeleteBucketRequest request, StreamObserver<Empty> responseObserver)

public void deleteBucket(DeleteBucketRequest request, StreamObserver<Empty> responseObserver)

Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all logs in the bucket will be permanently deleted.

Parameters
NameDescription
requestDeleteBucketRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteExclusion(DeleteExclusionRequest request, StreamObserver<Empty> responseObserver)

public void deleteExclusion(DeleteExclusionRequest request, StreamObserver<Empty> responseObserver)

Deletes an exclusion.

Parameters
NameDescription
requestDeleteExclusionRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteSink(DeleteSinkRequest request, StreamObserver<Empty> responseObserver)

public void deleteSink(DeleteSinkRequest request, StreamObserver<Empty> responseObserver)

Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.

Parameters
NameDescription
requestDeleteSinkRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteView(DeleteViewRequest request, StreamObserver<Empty> responseObserver)

public void deleteView(DeleteViewRequest request, StreamObserver<Empty> responseObserver)

Deletes a view from a bucket.

Parameters
NameDescription
requestDeleteViewRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getBucket(GetBucketRequest request, StreamObserver<LogBucket> responseObserver)

public void getBucket(GetBucketRequest request, StreamObserver<LogBucket> responseObserver)

Gets a bucket.

Parameters
NameDescription
requestGetBucketRequest
responseObserverio.grpc.stub.StreamObserver<LogBucket>

getCmekSettings(GetCmekSettingsRequest request, StreamObserver<CmekSettings> responseObserver)

public void getCmekSettings(GetCmekSettingsRequest request, StreamObserver<CmekSettings> responseObserver)

Gets the Logs Router CMEK settings for the given resource. Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization. See Enabling CMEK for Logs Router for more information.

Parameters
NameDescription
requestGetCmekSettingsRequest
responseObserverio.grpc.stub.StreamObserver<CmekSettings>

getExclusion(GetExclusionRequest request, StreamObserver<LogExclusion> responseObserver)

public void getExclusion(GetExclusionRequest request, StreamObserver<LogExclusion> responseObserver)

Gets the description of an exclusion.

Parameters
NameDescription
requestGetExclusionRequest
responseObserverio.grpc.stub.StreamObserver<LogExclusion>

getSink(GetSinkRequest request, StreamObserver<LogSink> responseObserver)

public void getSink(GetSinkRequest request, StreamObserver<LogSink> responseObserver)

Gets a sink.

Parameters
NameDescription
requestGetSinkRequest
responseObserverio.grpc.stub.StreamObserver<LogSink>

getView(GetViewRequest request, StreamObserver<LogView> responseObserver)

public void getView(GetViewRequest request, StreamObserver<LogView> responseObserver)

Gets a view.

Parameters
NameDescription
requestGetViewRequest
responseObserverio.grpc.stub.StreamObserver<LogView>

listBuckets(ListBucketsRequest request, StreamObserver<ListBucketsResponse> responseObserver)

public void listBuckets(ListBucketsRequest request, StreamObserver<ListBucketsResponse> responseObserver)

Lists buckets.

Parameters
NameDescription
requestListBucketsRequest
responseObserverio.grpc.stub.StreamObserver<ListBucketsResponse>

listExclusions(ListExclusionsRequest request, StreamObserver<ListExclusionsResponse> responseObserver)

public void listExclusions(ListExclusionsRequest request, StreamObserver<ListExclusionsResponse> responseObserver)

Lists all the exclusions in a parent resource.

Parameters
NameDescription
requestListExclusionsRequest
responseObserverio.grpc.stub.StreamObserver<ListExclusionsResponse>

listSinks(ListSinksRequest request, StreamObserver<ListSinksResponse> responseObserver)

public void listSinks(ListSinksRequest request, StreamObserver<ListSinksResponse> responseObserver)

Lists sinks.

Parameters
NameDescription
requestListSinksRequest
responseObserverio.grpc.stub.StreamObserver<ListSinksResponse>

listViews(ListViewsRequest request, StreamObserver<ListViewsResponse> responseObserver)

public void listViews(ListViewsRequest request, StreamObserver<ListViewsResponse> responseObserver)

Lists views on a bucket.

Parameters
NameDescription
requestListViewsRequest
responseObserverio.grpc.stub.StreamObserver<ListViewsResponse>

undeleteBucket(UndeleteBucketRequest request, StreamObserver<Empty> responseObserver)

public void undeleteBucket(UndeleteBucketRequest request, StreamObserver<Empty> responseObserver)

Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of 7 days.

Parameters
NameDescription
requestUndeleteBucketRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

updateBucket(UpdateBucketRequest request, StreamObserver<LogBucket> responseObserver)

public void updateBucket(UpdateBucketRequest request, StreamObserver<LogBucket> responseObserver)

Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_period If the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned. If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned. A buckets region may not be modified after it is created.

Parameters
NameDescription
requestUpdateBucketRequest
responseObserverio.grpc.stub.StreamObserver<LogBucket>

updateCmekSettings(UpdateCmekSettingsRequest request, StreamObserver<CmekSettings> responseObserver)

public void updateCmekSettings(UpdateCmekSettingsRequest request, StreamObserver<CmekSettings> responseObserver)

Updates the Logs Router CMEK settings for the given resource. Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once configured, it applies to all projects and folders in the GCP organization. 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 Logs Router for more information.

Parameters
NameDescription
requestUpdateCmekSettingsRequest
responseObserverio.grpc.stub.StreamObserver<CmekSettings>

updateExclusion(UpdateExclusionRequest request, StreamObserver<LogExclusion> responseObserver)

public void updateExclusion(UpdateExclusionRequest request, StreamObserver<LogExclusion> responseObserver)

Changes one or more properties of an existing exclusion.

Parameters
NameDescription
requestUpdateExclusionRequest
responseObserverio.grpc.stub.StreamObserver<LogExclusion>

updateSink(UpdateSinkRequest request, StreamObserver<LogSink> responseObserver)

public void updateSink(UpdateSinkRequest request, 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.

Parameters
NameDescription
requestUpdateSinkRequest
responseObserverio.grpc.stub.StreamObserver<LogSink>

updateView(UpdateViewRequest request, StreamObserver<LogView> responseObserver)

public void updateView(UpdateViewRequest request, StreamObserver<LogView> responseObserver)

Updates a view. This method replaces the following fields in the existing view with values from the new view: filter.

Parameters
NameDescription
requestUpdateViewRequest
responseObserverio.grpc.stub.StreamObserver<LogView>