Class ConfigServiceV2.ConfigServiceV2Base (3.5.0)

[BindServiceMethod(typeof(ConfigServiceV2), "BindService")]
public abstract class ConfigServiceV2Base

Base class for server-side implementations of ConfigServiceV2

Inheritance

Object > ConfigServiceV2.ConfigServiceV2Base

Namespace

Google.Cloud.Logging.V2

Assembly

Google.Cloud.Logging.V2.dll

Methods

CopyLogEntries(CopyLogEntriesRequest, ServerCallContext)

public virtual Task<Operation> CopyLogEntries(CopyLogEntriesRequest request, ServerCallContext context)

Copies a set of log entries from a log bucket to a Cloud Storage bucket.

Parameters
NameDescription
requestCopyLogEntriesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateBucket(CreateBucketRequest, ServerCallContext)

public virtual Task<LogBucket> CreateBucket(CreateBucketRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestCreateBucketRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogBucket>

The response to send back to the client (wrapped by a task).

CreateExclusion(CreateExclusionRequest, ServerCallContext)

public virtual Task<LogExclusion> CreateExclusion(CreateExclusionRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestCreateExclusionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogExclusion>

The response to send back to the client (wrapped by a task).

CreateSink(CreateSinkRequest, ServerCallContext)

public virtual Task<LogSink> CreateSink(CreateSinkRequest request, ServerCallContext context)

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogSink>

The response to send back to the client (wrapped by a task).

CreateView(CreateViewRequest, ServerCallContext)

public virtual Task<LogView> CreateView(CreateViewRequest request, ServerCallContext context)

Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.

Parameters
NameDescription
requestCreateViewRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogView>

The response to send back to the client (wrapped by a task).

DeleteBucket(DeleteBucketRequest, ServerCallContext)

public virtual Task<Empty> DeleteBucket(DeleteBucketRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestDeleteBucketRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteExclusion(DeleteExclusionRequest, ServerCallContext)

public virtual Task<Empty> DeleteExclusion(DeleteExclusionRequest request, ServerCallContext context)

Deletes an exclusion in the _Default sink.

Parameters
NameDescription
requestDeleteExclusionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteSink(DeleteSinkRequest, ServerCallContext)

public virtual Task<Empty> DeleteSink(DeleteSinkRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestDeleteSinkRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteView(DeleteViewRequest, ServerCallContext)

public virtual Task<Empty> DeleteView(DeleteViewRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestDeleteViewRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetBucket(GetBucketRequest, ServerCallContext)

public virtual Task<LogBucket> GetBucket(GetBucketRequest request, ServerCallContext context)

Gets a log bucket.

Parameters
NameDescription
requestGetBucketRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogBucket>

The response to send back to the client (wrapped by a task).

GetCmekSettings(GetCmekSettingsRequest, ServerCallContext)

public virtual Task<CmekSettings> GetCmekSettings(GetCmekSettingsRequest request, ServerCallContext context)

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 for more information.

Parameters
NameDescription
requestGetCmekSettingsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<CmekSettings>

The response to send back to the client (wrapped by a task).

GetExclusion(GetExclusionRequest, ServerCallContext)

public virtual Task<LogExclusion> GetExclusion(GetExclusionRequest request, ServerCallContext context)

Gets the description of an exclusion in the _Default sink.

Parameters
NameDescription
requestGetExclusionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogExclusion>

The response to send back to the client (wrapped by a task).

GetSettings(GetSettingsRequest, ServerCallContext)

public virtual Task<Settings> GetSettings(GetSettingsRequest request, ServerCallContext context)

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 for more information.

Parameters
NameDescription
requestGetSettingsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Settings>

The response to send back to the client (wrapped by a task).

GetSink(GetSinkRequest, ServerCallContext)

public virtual Task<LogSink> GetSink(GetSinkRequest request, ServerCallContext context)

Gets a sink.

Parameters
NameDescription
requestGetSinkRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogSink>

The response to send back to the client (wrapped by a task).

GetView(GetViewRequest, ServerCallContext)

public virtual Task<LogView> GetView(GetViewRequest request, ServerCallContext context)

Gets a view on a log bucket..

Parameters
NameDescription
requestGetViewRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogView>

The response to send back to the client (wrapped by a task).

ListBuckets(ListBucketsRequest, ServerCallContext)

public virtual Task<ListBucketsResponse> ListBuckets(ListBucketsRequest request, ServerCallContext context)

Lists log buckets.

Parameters
NameDescription
requestListBucketsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListBucketsResponse>

The response to send back to the client (wrapped by a task).

ListExclusions(ListExclusionsRequest, ServerCallContext)

public virtual Task<ListExclusionsResponse> ListExclusions(ListExclusionsRequest request, ServerCallContext context)

Lists all the exclusions on the _Default sink in a parent resource.

Parameters
NameDescription
requestListExclusionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListExclusionsResponse>

The response to send back to the client (wrapped by a task).

ListSinks(ListSinksRequest, ServerCallContext)

public virtual Task<ListSinksResponse> ListSinks(ListSinksRequest request, ServerCallContext context)

Lists sinks.

Parameters
NameDescription
requestListSinksRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListSinksResponse>

The response to send back to the client (wrapped by a task).

ListViews(ListViewsRequest, ServerCallContext)

public virtual Task<ListViewsResponse> ListViews(ListViewsRequest request, ServerCallContext context)

Lists views on a log bucket.

Parameters
NameDescription
requestListViewsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListViewsResponse>

The response to send back to the client (wrapped by a task).

UndeleteBucket(UndeleteBucketRequest, ServerCallContext)

public virtual Task<Empty> UndeleteBucket(UndeleteBucketRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestUndeleteBucketRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

UpdateBucket(UpdateBucketRequest, ServerCallContext)

public virtual Task<LogBucket> UpdateBucket(UpdateBucketRequest request, ServerCallContext context)

Updates a log 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 lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.

After a bucket has been created, the bucket's location cannot be changed.

Parameters
NameDescription
requestUpdateBucketRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogBucket>

The response to send back to the client (wrapped by a task).

UpdateCmekSettings(UpdateCmekSettingsRequest, ServerCallContext)

public virtual Task<CmekSettings> UpdateCmekSettings(UpdateCmekSettingsRequest request, ServerCallContext context)

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 for more information.

Parameters
NameDescription
requestUpdateCmekSettingsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<CmekSettings>

The response to send back to the client (wrapped by a task).

UpdateExclusion(UpdateExclusionRequest, ServerCallContext)

public virtual Task<LogExclusion> UpdateExclusion(UpdateExclusionRequest request, ServerCallContext context)

Changes one or more properties of an existing exclusion in the _Default sink.

Parameters
NameDescription
requestUpdateExclusionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogExclusion>

The response to send back to the client (wrapped by a task).

UpdateSettings(UpdateSettingsRequest, ServerCallContext)

public virtual Task<Settings> UpdateSettings(UpdateSettingsRequest request, ServerCallContext context)

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 for more information.

Parameters
NameDescription
requestUpdateSettingsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Settings>

The response to send back to the client (wrapped by a task).

UpdateSink(UpdateSinkRequest, ServerCallContext)

public virtual Task<LogSink> UpdateSink(UpdateSinkRequest request, ServerCallContext context)

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogSink>

The response to send back to the client (wrapped by a task).

UpdateView(UpdateViewRequest, ServerCallContext)

public virtual Task<LogView> UpdateView(UpdateViewRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestUpdateViewRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LogView>

The response to send back to the client (wrapped by a task).