Class ConfigServiceV2Client

public abstract class ConfigServiceV2Client

ConfigServiceV2 client wrapper, for convenient use.

Inheritance

Object > ConfigServiceV2Client

Namespace

Google.Cloud.Logging.V2

Assembly

Google.Cloud.Logging.V2.dll

Remarks

Service for configuring sinks used to route log entries.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the ConfigServiceV2 service, which is a host of "logging.googleapis.com" and a port of 443.

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ConfigServiceV2 scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

GrpcClient

public virtual ConfigServiceV2.ConfigServiceV2Client GrpcClient { get; }

The underlying gRPC ConfigServiceV2 client

Property Value
TypeDescription
ConfigServiceV2.ConfigServiceV2Client

Methods

Create()

public static ConfigServiceV2Client Create()

Synchronously creates a ConfigServiceV2Client using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ConfigServiceV2ClientBuilder.

Returns
TypeDescription
ConfigServiceV2Client

The created ConfigServiceV2Client.

CreateAsync(CancellationToken)

public static Task<ConfigServiceV2Client> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))

Asynchronously creates a ConfigServiceV2Client using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ConfigServiceV2ClientBuilder.

Parameter
TypeNameDescription
CancellationTokencancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<ConfigServiceV2Client>

The task representing the created ConfigServiceV2Client.

CreateBucket(CreateBucketRequest, CallSettings)

public virtual LogBucket CreateBucket(CreateBucketRequest request, CallSettings callSettings = null)

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

Parameters
TypeNameDescription
CreateBucketRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogBucket

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
CreateBucketRequest request = new CreateBucketRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BucketId = "",
    Bucket = new LogBucket(),
};
// Make the request
LogBucket response = configServiceV2Client.CreateBucket(request);

CreateBucketAsync(CreateBucketRequest, CallSettings)

public virtual Task<LogBucket> CreateBucketAsync(CreateBucketRequest request, CallSettings callSettings = null)

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

Parameters
TypeNameDescription
CreateBucketRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogBucket>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CreateBucketRequest request = new CreateBucketRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BucketId = "",
    Bucket = new LogBucket(),
};
// Make the request
LogBucket response = await configServiceV2Client.CreateBucketAsync(request);

CreateBucketAsync(CreateBucketRequest, CancellationToken)

public virtual Task<LogBucket> CreateBucketAsync(CreateBucketRequest request, CancellationToken cancellationToken)

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

Parameters
TypeNameDescription
CreateBucketRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogBucket>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CreateBucketRequest request = new CreateBucketRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BucketId = "",
    Bucket = new LogBucket(),
};
// Make the request
LogBucket response = await configServiceV2Client.CreateBucketAsync(request);

CreateExclusion(BillingAccountName, LogExclusion, CallSettings)

public virtual LogExclusion CreateExclusion(BillingAccountName parent, LogExclusion exclusion, CallSettings callSettings = null)

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
TypeNameDescription
BillingAccountNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = configServiceV2Client.CreateExclusion(parent, exclusion);

CreateExclusion(FolderName, LogExclusion, CallSettings)

public virtual LogExclusion CreateExclusion(FolderName parent, LogExclusion exclusion, CallSettings callSettings = null)

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
TypeNameDescription
FolderNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = configServiceV2Client.CreateExclusion(parent, exclusion);

CreateExclusion(OrganizationName, LogExclusion, CallSettings)

public virtual LogExclusion CreateExclusion(OrganizationName parent, LogExclusion exclusion, CallSettings callSettings = null)

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
TypeNameDescription
OrganizationNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = configServiceV2Client.CreateExclusion(parent, exclusion);

CreateExclusion(ProjectName, LogExclusion, CallSettings)

public virtual LogExclusion CreateExclusion(ProjectName parent, LogExclusion exclusion, CallSettings callSettings = null)

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
TypeNameDescription
ProjectNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = configServiceV2Client.CreateExclusion(parent, exclusion);

CreateExclusion(CreateExclusionRequest, CallSettings)

public virtual LogExclusion CreateExclusion(CreateExclusionRequest request, CallSettings callSettings = null)

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
TypeNameDescription
CreateExclusionRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
CreateExclusionRequest request = new CreateExclusionRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Exclusion = new LogExclusion(),
};
// Make the request
LogExclusion response = configServiceV2Client.CreateExclusion(request);

CreateExclusion(String, LogExclusion, CallSettings)

public virtual LogExclusion CreateExclusion(string parent, LogExclusion exclusion, CallSettings callSettings = null)

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
TypeNameDescription
Stringparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = configServiceV2Client.CreateExclusion(parent, exclusion);

CreateExclusionAsync(BillingAccountName, LogExclusion, CallSettings)

public virtual Task<LogExclusion> CreateExclusionAsync(BillingAccountName parent, LogExclusion exclusion, CallSettings callSettings = null)

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
TypeNameDescription
BillingAccountNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(parent, exclusion);

CreateExclusionAsync(BillingAccountName, LogExclusion, CancellationToken)

public virtual Task<LogExclusion> CreateExclusionAsync(BillingAccountName parent, LogExclusion exclusion, CancellationToken cancellationToken)

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
TypeNameDescription
BillingAccountNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(parent, exclusion);

CreateExclusionAsync(FolderName, LogExclusion, CallSettings)

public virtual Task<LogExclusion> CreateExclusionAsync(FolderName parent, LogExclusion exclusion, CallSettings callSettings = null)

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
TypeNameDescription
FolderNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(parent, exclusion);

CreateExclusionAsync(FolderName, LogExclusion, CancellationToken)

public virtual Task<LogExclusion> CreateExclusionAsync(FolderName parent, LogExclusion exclusion, CancellationToken cancellationToken)

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
TypeNameDescription
FolderNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(parent, exclusion);

CreateExclusionAsync(OrganizationName, LogExclusion, CallSettings)

public virtual Task<LogExclusion> CreateExclusionAsync(OrganizationName parent, LogExclusion exclusion, CallSettings callSettings = null)

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
TypeNameDescription
OrganizationNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(parent, exclusion);

CreateExclusionAsync(OrganizationName, LogExclusion, CancellationToken)

public virtual Task<LogExclusion> CreateExclusionAsync(OrganizationName parent, LogExclusion exclusion, CancellationToken cancellationToken)

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
TypeNameDescription
OrganizationNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(parent, exclusion);

CreateExclusionAsync(ProjectName, LogExclusion, CallSettings)

public virtual Task<LogExclusion> CreateExclusionAsync(ProjectName parent, LogExclusion exclusion, CallSettings callSettings = null)

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
TypeNameDescription
ProjectNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(parent, exclusion);

CreateExclusionAsync(ProjectName, LogExclusion, CancellationToken)

public virtual Task<LogExclusion> CreateExclusionAsync(ProjectName parent, LogExclusion exclusion, CancellationToken cancellationToken)

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
TypeNameDescription
ProjectNameparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(parent, exclusion);

CreateExclusionAsync(CreateExclusionRequest, CallSettings)

public virtual Task<LogExclusion> CreateExclusionAsync(CreateExclusionRequest request, CallSettings callSettings = null)

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
TypeNameDescription
CreateExclusionRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CreateExclusionRequest request = new CreateExclusionRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Exclusion = new LogExclusion(),
};
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(request);

CreateExclusionAsync(CreateExclusionRequest, CancellationToken)

public virtual Task<LogExclusion> CreateExclusionAsync(CreateExclusionRequest request, CancellationToken cancellationToken)

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
TypeNameDescription
CreateExclusionRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CreateExclusionRequest request = new CreateExclusionRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Exclusion = new LogExclusion(),
};
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(request);

CreateExclusionAsync(String, LogExclusion, CallSettings)

public virtual Task<LogExclusion> CreateExclusionAsync(string parent, LogExclusion exclusion, CallSettings callSettings = null)

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
TypeNameDescription
Stringparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(parent, exclusion);

CreateExclusionAsync(String, LogExclusion, CancellationToken)

public virtual Task<LogExclusion> CreateExclusionAsync(string parent, LogExclusion exclusion, CancellationToken cancellationToken)

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
TypeNameDescription
Stringparent

Required. The parent resource in which to create the exclusion:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogExclusionexclusion

Required. The new exclusion, whose name parameter is an exclusion name that is not already used in the parent resource.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
LogExclusion exclusion = new LogExclusion();
// Make the request
LogExclusion response = await configServiceV2Client.CreateExclusionAsync(parent, exclusion);

CreateSink(BillingAccountName, LogSink, CallSettings)

public virtual LogSink CreateSink(BillingAccountName parent, LogSink sink, CallSettings callSettings = null)

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
TypeNameDescription
BillingAccountNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogSink

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
LogSink sink = new LogSink();
// Make the request
LogSink response = configServiceV2Client.CreateSink(parent, sink);

CreateSink(FolderName, LogSink, CallSettings)

public virtual LogSink CreateSink(FolderName parent, LogSink sink, CallSettings callSettings = null)

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
TypeNameDescription
FolderNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogSink

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
LogSink sink = new LogSink();
// Make the request
LogSink response = configServiceV2Client.CreateSink(parent, sink);

CreateSink(OrganizationName, LogSink, CallSettings)

public virtual LogSink CreateSink(OrganizationName parent, LogSink sink, CallSettings callSettings = null)

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
TypeNameDescription
OrganizationNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogSink

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
LogSink sink = new LogSink();
// Make the request
LogSink response = configServiceV2Client.CreateSink(parent, sink);

CreateSink(ProjectName, LogSink, CallSettings)

public virtual LogSink CreateSink(ProjectName parent, LogSink sink, CallSettings callSettings = null)

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
TypeNameDescription
ProjectNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogSink

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
LogSink sink = new LogSink();
// Make the request
LogSink response = configServiceV2Client.CreateSink(parent, sink);

CreateSink(CreateSinkRequest, CallSettings)

public virtual LogSink CreateSink(CreateSinkRequest request, CallSettings callSettings = null)

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
TypeNameDescription
CreateSinkRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogSink

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
CreateSinkRequest request = new CreateSinkRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Sink = new LogSink(),
    UniqueWriterIdentity = false,
};
// Make the request
LogSink response = configServiceV2Client.CreateSink(request);

CreateSink(String, LogSink, CallSettings)

public virtual LogSink CreateSink(string parent, LogSink sink, CallSettings callSettings = null)

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
TypeNameDescription
Stringparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogSink

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
LogSink sink = new LogSink();
// Make the request
LogSink response = configServiceV2Client.CreateSink(parent, sink);

CreateSinkAsync(BillingAccountName, LogSink, CallSettings)

public virtual Task<LogSink> CreateSinkAsync(BillingAccountName parent, LogSink sink, CallSettings callSettings = null)

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
TypeNameDescription
BillingAccountNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
LogSink sink = new LogSink();
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(parent, sink);

CreateSinkAsync(BillingAccountName, LogSink, CancellationToken)

public virtual Task<LogSink> CreateSinkAsync(BillingAccountName parent, LogSink sink, CancellationToken cancellationToken)

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
TypeNameDescription
BillingAccountNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
LogSink sink = new LogSink();
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(parent, sink);

CreateSinkAsync(FolderName, LogSink, CallSettings)

public virtual Task<LogSink> CreateSinkAsync(FolderName parent, LogSink sink, CallSettings callSettings = null)

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
TypeNameDescription
FolderNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
LogSink sink = new LogSink();
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(parent, sink);

CreateSinkAsync(FolderName, LogSink, CancellationToken)

public virtual Task<LogSink> CreateSinkAsync(FolderName parent, LogSink sink, CancellationToken cancellationToken)

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
TypeNameDescription
FolderNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
LogSink sink = new LogSink();
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(parent, sink);

CreateSinkAsync(OrganizationName, LogSink, CallSettings)

public virtual Task<LogSink> CreateSinkAsync(OrganizationName parent, LogSink sink, CallSettings callSettings = null)

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
TypeNameDescription
OrganizationNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
LogSink sink = new LogSink();
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(parent, sink);

CreateSinkAsync(OrganizationName, LogSink, CancellationToken)

public virtual Task<LogSink> CreateSinkAsync(OrganizationName parent, LogSink sink, CancellationToken cancellationToken)

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
TypeNameDescription
OrganizationNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
LogSink sink = new LogSink();
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(parent, sink);

CreateSinkAsync(ProjectName, LogSink, CallSettings)

public virtual Task<LogSink> CreateSinkAsync(ProjectName parent, LogSink sink, CallSettings callSettings = null)

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
TypeNameDescription
ProjectNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
LogSink sink = new LogSink();
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(parent, sink);

CreateSinkAsync(ProjectName, LogSink, CancellationToken)

public virtual Task<LogSink> CreateSinkAsync(ProjectName parent, LogSink sink, CancellationToken cancellationToken)

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
TypeNameDescription
ProjectNameparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
LogSink sink = new LogSink();
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(parent, sink);

CreateSinkAsync(CreateSinkRequest, CallSettings)

public virtual Task<LogSink> CreateSinkAsync(CreateSinkRequest request, CallSettings callSettings = null)

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
TypeNameDescription
CreateSinkRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CreateSinkRequest request = new CreateSinkRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Sink = new LogSink(),
    UniqueWriterIdentity = false,
};
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(request);

CreateSinkAsync(CreateSinkRequest, CancellationToken)

public virtual Task<LogSink> CreateSinkAsync(CreateSinkRequest request, CancellationToken cancellationToken)

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
TypeNameDescription
CreateSinkRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CreateSinkRequest request = new CreateSinkRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Sink = new LogSink(),
    UniqueWriterIdentity = false,
};
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(request);

CreateSinkAsync(String, LogSink, CallSettings)

public virtual Task<LogSink> CreateSinkAsync(string parent, LogSink sink, CallSettings callSettings = null)

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
TypeNameDescription
Stringparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
LogSink sink = new LogSink();
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(parent, sink);

CreateSinkAsync(String, LogSink, CancellationToken)

public virtual Task<LogSink> CreateSinkAsync(string parent, LogSink sink, CancellationToken cancellationToken)

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
TypeNameDescription
Stringparent

Required. The resource in which to create the sink:

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"

Examples: &quot;projects/my-logging-project&quot;, &quot;organizations/123456789&quot;.

LogSinksink

Required. The new sink, whose name parameter is a sink identifier that is not already in use.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
LogSink sink = new LogSink();
// Make the request
LogSink response = await configServiceV2Client.CreateSinkAsync(parent, sink);

CreateView(CreateViewRequest, CallSettings)

public virtual LogView CreateView(CreateViewRequest request, CallSettings callSettings = null)

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

Parameters
TypeNameDescription
CreateViewRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogView

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
CreateViewRequest request = new CreateViewRequest
{
    Parent = "",
    ViewId = "",
    View = new LogView(),
};
// Make the request
LogView response = configServiceV2Client.CreateView(request);

CreateViewAsync(CreateViewRequest, CallSettings)

public virtual Task<LogView> CreateViewAsync(CreateViewRequest request, CallSettings callSettings = null)

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

Parameters
TypeNameDescription
CreateViewRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogView>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CreateViewRequest request = new CreateViewRequest
{
    Parent = "",
    ViewId = "",
    View = new LogView(),
};
// Make the request
LogView response = await configServiceV2Client.CreateViewAsync(request);

CreateViewAsync(CreateViewRequest, CancellationToken)

public virtual Task<LogView> CreateViewAsync(CreateViewRequest request, CancellationToken cancellationToken)

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

Parameters
TypeNameDescription
CreateViewRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogView>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CreateViewRequest request = new CreateViewRequest
{
    Parent = "",
    ViewId = "",
    View = new LogView(),
};
// Make the request
LogView response = await configServiceV2Client.CreateViewAsync(request);

DeleteBucket(DeleteBucketRequest, CallSettings)

public virtual void DeleteBucket(DeleteBucketRequest request, CallSettings callSettings = null)

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
TypeNameDescription
DeleteBucketRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
DeleteBucketRequest request = new DeleteBucketRequest
{
    LogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
};
// Make the request
configServiceV2Client.DeleteBucket(request);

DeleteBucketAsync(DeleteBucketRequest, CallSettings)

public virtual Task DeleteBucketAsync(DeleteBucketRequest request, CallSettings callSettings = null)

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
TypeNameDescription
DeleteBucketRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
DeleteBucketRequest request = new DeleteBucketRequest
{
    LogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
};
// Make the request
await configServiceV2Client.DeleteBucketAsync(request);

DeleteBucketAsync(DeleteBucketRequest, CancellationToken)

public virtual Task DeleteBucketAsync(DeleteBucketRequest request, CancellationToken cancellationToken)

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
TypeNameDescription
DeleteBucketRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
DeleteBucketRequest request = new DeleteBucketRequest
{
    LogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
};
// Make the request
await configServiceV2Client.DeleteBucketAsync(request);

DeleteExclusion(DeleteExclusionRequest, CallSettings)

public virtual void DeleteExclusion(DeleteExclusionRequest request, CallSettings callSettings = null)

Deletes an exclusion.

Parameters
TypeNameDescription
DeleteExclusionRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
DeleteExclusionRequest request = new DeleteExclusionRequest
{
    LogExclusionName = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]"),
};
// Make the request
configServiceV2Client.DeleteExclusion(request);

DeleteExclusion(LogExclusionName, CallSettings)

public virtual void DeleteExclusion(LogExclusionName name, CallSettings callSettings = null)

Deletes an exclusion.

Parameters
TypeNameDescription
LogExclusionNamename

Required. The resource name of an existing exclusion to delete:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
LogExclusionName name = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]");
// Make the request
configServiceV2Client.DeleteExclusion(name);

DeleteExclusion(String, CallSettings)

public virtual void DeleteExclusion(string name, CallSettings callSettings = null)

Deletes an exclusion.

Parameters
TypeNameDescription
Stringname

Required. The resource name of an existing exclusion to delete:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/exclusions/[EXCLUSION]";
// Make the request
configServiceV2Client.DeleteExclusion(name);

DeleteExclusionAsync(DeleteExclusionRequest, CallSettings)

public virtual Task DeleteExclusionAsync(DeleteExclusionRequest request, CallSettings callSettings = null)

Deletes an exclusion.

Parameters
TypeNameDescription
DeleteExclusionRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
DeleteExclusionRequest request = new DeleteExclusionRequest
{
    LogExclusionName = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]"),
};
// Make the request
await configServiceV2Client.DeleteExclusionAsync(request);

DeleteExclusionAsync(DeleteExclusionRequest, CancellationToken)

public virtual Task DeleteExclusionAsync(DeleteExclusionRequest request, CancellationToken cancellationToken)

Deletes an exclusion.

Parameters
TypeNameDescription
DeleteExclusionRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
DeleteExclusionRequest request = new DeleteExclusionRequest
{
    LogExclusionName = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]"),
};
// Make the request
await configServiceV2Client.DeleteExclusionAsync(request);

DeleteExclusionAsync(LogExclusionName, CallSettings)

public virtual Task DeleteExclusionAsync(LogExclusionName name, CallSettings callSettings = null)

Deletes an exclusion.

Parameters
TypeNameDescription
LogExclusionNamename

Required. The resource name of an existing exclusion to delete:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LogExclusionName name = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]");
// Make the request
await configServiceV2Client.DeleteExclusionAsync(name);

DeleteExclusionAsync(LogExclusionName, CancellationToken)

public virtual Task DeleteExclusionAsync(LogExclusionName name, CancellationToken cancellationToken)

Deletes an exclusion.

Parameters
TypeNameDescription
LogExclusionNamename

Required. The resource name of an existing exclusion to delete:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LogExclusionName name = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]");
// Make the request
await configServiceV2Client.DeleteExclusionAsync(name);

DeleteExclusionAsync(String, CallSettings)

public virtual Task DeleteExclusionAsync(string name, CallSettings callSettings = null)

Deletes an exclusion.

Parameters
TypeNameDescription
Stringname

Required. The resource name of an existing exclusion to delete:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/exclusions/[EXCLUSION]";
// Make the request
await configServiceV2Client.DeleteExclusionAsync(name);

DeleteExclusionAsync(String, CancellationToken)

public virtual Task DeleteExclusionAsync(string name, CancellationToken cancellationToken)

Deletes an exclusion.

Parameters
TypeNameDescription
Stringname

Required. The resource name of an existing exclusion to delete:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/exclusions/[EXCLUSION]";
// Make the request
await configServiceV2Client.DeleteExclusionAsync(name);

DeleteSink(DeleteSinkRequest, CallSettings)

public virtual void DeleteSink(DeleteSinkRequest request, CallSettings callSettings = null)

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

Parameters
TypeNameDescription
DeleteSinkRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
DeleteSinkRequest request = new DeleteSinkRequest
{
    SinkNameAsLogSinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]"),
};
// Make the request
configServiceV2Client.DeleteSink(request);

DeleteSink(LogSinkName, CallSettings)

public virtual void DeleteSink(LogSinkName sinkName, CallSettings callSettings = null)

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

Parameters
TypeNameDescription
LogSinkNamesinkName

Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
LogSinkName sinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]");
// Make the request
configServiceV2Client.DeleteSink(sinkName);

DeleteSink(String, CallSettings)

public virtual void DeleteSink(string sinkName, CallSettings callSettings = null)

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

Parameters
TypeNameDescription
StringsinkName

Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string sinkName = "projects/[PROJECT]/sinks/[SINK]";
// Make the request
configServiceV2Client.DeleteSink(sinkName);

DeleteSinkAsync(DeleteSinkRequest, CallSettings)

public virtual Task DeleteSinkAsync(DeleteSinkRequest request, CallSettings callSettings = null)

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

Parameters
TypeNameDescription
DeleteSinkRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
DeleteSinkRequest request = new DeleteSinkRequest
{
    SinkNameAsLogSinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]"),
};
// Make the request
await configServiceV2Client.DeleteSinkAsync(request);

DeleteSinkAsync(DeleteSinkRequest, CancellationToken)

public virtual Task DeleteSinkAsync(DeleteSinkRequest request, CancellationToken cancellationToken)

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

Parameters
TypeNameDescription
DeleteSinkRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
DeleteSinkRequest request = new DeleteSinkRequest
{
    SinkNameAsLogSinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]"),
};
// Make the request
await configServiceV2Client.DeleteSinkAsync(request);

DeleteSinkAsync(LogSinkName, CallSettings)

public virtual Task DeleteSinkAsync(LogSinkName sinkName, CallSettings callSettings = null)

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

Parameters
TypeNameDescription
LogSinkNamesinkName

Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LogSinkName sinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]");
// Make the request
await configServiceV2Client.DeleteSinkAsync(sinkName);

DeleteSinkAsync(LogSinkName, CancellationToken)

public virtual Task DeleteSinkAsync(LogSinkName sinkName, CancellationToken cancellationToken)

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

Parameters
TypeNameDescription
LogSinkNamesinkName

Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LogSinkName sinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]");
// Make the request
await configServiceV2Client.DeleteSinkAsync(sinkName);

DeleteSinkAsync(String, CallSettings)

public virtual Task DeleteSinkAsync(string sinkName, CallSettings callSettings = null)

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

Parameters
TypeNameDescription
StringsinkName

Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string sinkName = "projects/[PROJECT]/sinks/[SINK]";
// Make the request
await configServiceV2Client.DeleteSinkAsync(sinkName);

DeleteSinkAsync(String, CancellationToken)

public virtual Task DeleteSinkAsync(string sinkName, CancellationToken cancellationToken)

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

Parameters
TypeNameDescription
StringsinkName

Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string sinkName = "projects/[PROJECT]/sinks/[SINK]";
// Make the request
await configServiceV2Client.DeleteSinkAsync(sinkName);

DeleteView(DeleteViewRequest, CallSettings)

public virtual void DeleteView(DeleteViewRequest request, CallSettings callSettings = null)

Deletes a view from a bucket.

Parameters
TypeNameDescription
DeleteViewRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
DeleteViewRequest request = new DeleteViewRequest
{
    LogViewName = LogViewName.FromProjectLocationBucketView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]"),
};
// Make the request
configServiceV2Client.DeleteView(request);

DeleteViewAsync(DeleteViewRequest, CallSettings)

public virtual Task DeleteViewAsync(DeleteViewRequest request, CallSettings callSettings = null)

Deletes a view from a bucket.

Parameters
TypeNameDescription
DeleteViewRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
DeleteViewRequest request = new DeleteViewRequest
{
    LogViewName = LogViewName.FromProjectLocationBucketView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]"),
};
// Make the request
await configServiceV2Client.DeleteViewAsync(request);

DeleteViewAsync(DeleteViewRequest, CancellationToken)

public virtual Task DeleteViewAsync(DeleteViewRequest request, CancellationToken cancellationToken)

Deletes a view from a bucket.

Parameters
TypeNameDescription
DeleteViewRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
DeleteViewRequest request = new DeleteViewRequest
{
    LogViewName = LogViewName.FromProjectLocationBucketView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]"),
};
// Make the request
await configServiceV2Client.DeleteViewAsync(request);

GetBucket(GetBucketRequest, CallSettings)

public virtual LogBucket GetBucket(GetBucketRequest request, CallSettings callSettings = null)

Gets a bucket.

Parameters
TypeNameDescription
GetBucketRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogBucket

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
GetBucketRequest request = new GetBucketRequest
{
    LogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
};
// Make the request
LogBucket response = configServiceV2Client.GetBucket(request);

GetBucketAsync(GetBucketRequest, CallSettings)

public virtual Task<LogBucket> GetBucketAsync(GetBucketRequest request, CallSettings callSettings = null)

Gets a bucket.

Parameters
TypeNameDescription
GetBucketRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogBucket>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetBucketRequest request = new GetBucketRequest
{
    LogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
};
// Make the request
LogBucket response = await configServiceV2Client.GetBucketAsync(request);

GetBucketAsync(GetBucketRequest, CancellationToken)

public virtual Task<LogBucket> GetBucketAsync(GetBucketRequest request, CancellationToken cancellationToken)

Gets a bucket.

Parameters
TypeNameDescription
GetBucketRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogBucket>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetBucketRequest request = new GetBucketRequest
{
    LogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
};
// Make the request
LogBucket response = await configServiceV2Client.GetBucketAsync(request);

GetCmekSettings(GetCmekSettingsRequest, CallSettings)

public virtual CmekSettings GetCmekSettings(GetCmekSettingsRequest request, CallSettings callSettings = null)

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
TypeNameDescription
GetCmekSettingsRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
CmekSettings

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
GetCmekSettingsRequest request = new GetCmekSettingsRequest
{
    CmekSettingsName = CmekSettingsName.FromProject("[PROJECT]"),
};
// Make the request
CmekSettings response = configServiceV2Client.GetCmekSettings(request);

GetCmekSettingsAsync(GetCmekSettingsRequest, CallSettings)

public virtual Task<CmekSettings> GetCmekSettingsAsync(GetCmekSettingsRequest request, CallSettings callSettings = null)

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
TypeNameDescription
GetCmekSettingsRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<CmekSettings>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetCmekSettingsRequest request = new GetCmekSettingsRequest
{
    CmekSettingsName = CmekSettingsName.FromProject("[PROJECT]"),
};
// Make the request
CmekSettings response = await configServiceV2Client.GetCmekSettingsAsync(request);

GetCmekSettingsAsync(GetCmekSettingsRequest, CancellationToken)

public virtual Task<CmekSettings> GetCmekSettingsAsync(GetCmekSettingsRequest request, CancellationToken cancellationToken)

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
TypeNameDescription
GetCmekSettingsRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<CmekSettings>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetCmekSettingsRequest request = new GetCmekSettingsRequest
{
    CmekSettingsName = CmekSettingsName.FromProject("[PROJECT]"),
};
// Make the request
CmekSettings response = await configServiceV2Client.GetCmekSettingsAsync(request);

GetExclusion(GetExclusionRequest, CallSettings)

public virtual LogExclusion GetExclusion(GetExclusionRequest request, CallSettings callSettings = null)

Gets the description of an exclusion.

Parameters
TypeNameDescription
GetExclusionRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
GetExclusionRequest request = new GetExclusionRequest
{
    LogExclusionName = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]"),
};
// Make the request
LogExclusion response = configServiceV2Client.GetExclusion(request);

GetExclusion(LogExclusionName, CallSettings)

public virtual LogExclusion GetExclusion(LogExclusionName name, CallSettings callSettings = null)

Gets the description of an exclusion.

Parameters
TypeNameDescription
LogExclusionNamename

Required. The resource name of an existing exclusion:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
LogExclusionName name = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]");
// Make the request
LogExclusion response = configServiceV2Client.GetExclusion(name);

GetExclusion(String, CallSettings)

public virtual LogExclusion GetExclusion(string name, CallSettings callSettings = null)

Gets the description of an exclusion.

Parameters
TypeNameDescription
Stringname

Required. The resource name of an existing exclusion:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/exclusions/[EXCLUSION]";
// Make the request
LogExclusion response = configServiceV2Client.GetExclusion(name);

GetExclusionAsync(GetExclusionRequest, CallSettings)

public virtual Task<LogExclusion> GetExclusionAsync(GetExclusionRequest request, CallSettings callSettings = null)

Gets the description of an exclusion.

Parameters
TypeNameDescription
GetExclusionRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetExclusionRequest request = new GetExclusionRequest
{
    LogExclusionName = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]"),
};
// Make the request
LogExclusion response = await configServiceV2Client.GetExclusionAsync(request);

GetExclusionAsync(GetExclusionRequest, CancellationToken)

public virtual Task<LogExclusion> GetExclusionAsync(GetExclusionRequest request, CancellationToken cancellationToken)

Gets the description of an exclusion.

Parameters
TypeNameDescription
GetExclusionRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetExclusionRequest request = new GetExclusionRequest
{
    LogExclusionName = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]"),
};
// Make the request
LogExclusion response = await configServiceV2Client.GetExclusionAsync(request);

GetExclusionAsync(LogExclusionName, CallSettings)

public virtual Task<LogExclusion> GetExclusionAsync(LogExclusionName name, CallSettings callSettings = null)

Gets the description of an exclusion.

Parameters
TypeNameDescription
LogExclusionNamename

Required. The resource name of an existing exclusion:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LogExclusionName name = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]");
// Make the request
LogExclusion response = await configServiceV2Client.GetExclusionAsync(name);

GetExclusionAsync(LogExclusionName, CancellationToken)

public virtual Task<LogExclusion> GetExclusionAsync(LogExclusionName name, CancellationToken cancellationToken)

Gets the description of an exclusion.

Parameters
TypeNameDescription
LogExclusionNamename

Required. The resource name of an existing exclusion:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LogExclusionName name = LogExclusionName.FromProjectExclusion("[PROJECT]", "[EXCLUSION]");
// Make the request
LogExclusion response = await configServiceV2Client.GetExclusionAsync(name);

GetExclusionAsync(String, CallSettings)

public virtual Task<LogExclusion> GetExclusionAsync(string name, CallSettings callSettings = null)

Gets the description of an exclusion.

Parameters
TypeNameDescription
Stringname

Required. The resource name of an existing exclusion:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/exclusions/[EXCLUSION]";
// Make the request
LogExclusion response = await configServiceV2Client.GetExclusionAsync(name);

GetExclusionAsync(String, CancellationToken)

public virtual Task<LogExclusion> GetExclusionAsync(string name, CancellationToken cancellationToken)

Gets the description of an exclusion.

Parameters
TypeNameDescription
Stringname

Required. The resource name of an existing exclusion:

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"

Example: &quot;projects/my-project-id/exclusions/my-exclusion-id&quot;.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogExclusion>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/exclusions/[EXCLUSION]";
// Make the request
LogExclusion response = await configServiceV2Client.GetExclusionAsync(name);

GetSink(GetSinkRequest, CallSettings)

public virtual LogSink GetSink(GetSinkRequest request, CallSettings callSettings = null)

Gets a sink.

Parameters
TypeNameDescription
GetSinkRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogSink

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
GetSinkRequest request = new GetSinkRequest
{
    SinkNameAsLogSinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]"),
};
// Make the request
LogSink response = configServiceV2Client.GetSink(request);

GetSink(LogSinkName, CallSettings)

public virtual LogSink GetSink(LogSinkName sinkName, CallSettings callSettings = null)

Gets a sink.

Parameters
TypeNameDescription
LogSinkNamesinkName

Required. The resource name of the sink:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogSink

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
LogSinkName sinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]");
// Make the request
LogSink response = configServiceV2Client.GetSink(sinkName);

GetSink(String, CallSettings)

public virtual LogSink GetSink(string sinkName, CallSettings callSettings = null)

Gets a sink.

Parameters
TypeNameDescription
StringsinkName

Required. The resource name of the sink:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogSink

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string sinkName = "projects/[PROJECT]/sinks/[SINK]";
// Make the request
LogSink response = configServiceV2Client.GetSink(sinkName);

GetSinkAsync(GetSinkRequest, CallSettings)

public virtual Task<LogSink> GetSinkAsync(GetSinkRequest request, CallSettings callSettings = null)

Gets a sink.

Parameters
TypeNameDescription
GetSinkRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetSinkRequest request = new GetSinkRequest
{
    SinkNameAsLogSinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]"),
};
// Make the request
LogSink response = await configServiceV2Client.GetSinkAsync(request);

GetSinkAsync(GetSinkRequest, CancellationToken)

public virtual Task<LogSink> GetSinkAsync(GetSinkRequest request, CancellationToken cancellationToken)

Gets a sink.

Parameters
TypeNameDescription
GetSinkRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetSinkRequest request = new GetSinkRequest
{
    SinkNameAsLogSinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]"),
};
// Make the request
LogSink response = await configServiceV2Client.GetSinkAsync(request);

GetSinkAsync(LogSinkName, CallSettings)

public virtual Task<LogSink> GetSinkAsync(LogSinkName sinkName, CallSettings callSettings = null)

Gets a sink.

Parameters
TypeNameDescription
LogSinkNamesinkName

Required. The resource name of the sink:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LogSinkName sinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]");
// Make the request
LogSink response = await configServiceV2Client.GetSinkAsync(sinkName);

GetSinkAsync(LogSinkName, CancellationToken)

public virtual Task<LogSink> GetSinkAsync(LogSinkName sinkName, CancellationToken cancellationToken)

Gets a sink.

Parameters
TypeNameDescription
LogSinkNamesinkName

Required. The resource name of the sink:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LogSinkName sinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]");
// Make the request
LogSink response = await configServiceV2Client.GetSinkAsync(sinkName);

GetSinkAsync(String, CallSettings)

public virtual Task<LogSink> GetSinkAsync(string sinkName, CallSettings callSettings = null)

Gets a sink.

Parameters
TypeNameDescription
StringsinkName

Required. The resource name of the sink:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string sinkName = "projects/[PROJECT]/sinks/[SINK]";
// Make the request
LogSink response = await configServiceV2Client.GetSinkAsync(sinkName);

GetSinkAsync(String, CancellationToken)

public virtual Task<LogSink> GetSinkAsync(string sinkName, CancellationToken cancellationToken)

Gets a sink.

Parameters
TypeNameDescription
StringsinkName

Required. The resource name of the sink:

"projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"

Example: &quot;projects/my-project-id/sinks/my-sink-id&quot;.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogSink>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string sinkName = "projects/[PROJECT]/sinks/[SINK]";
// Make the request
LogSink response = await configServiceV2Client.GetSinkAsync(sinkName);

GetView(GetViewRequest, CallSettings)

public virtual LogView GetView(GetViewRequest request, CallSettings callSettings = null)

Gets a view.

Parameters
TypeNameDescription
GetViewRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogView

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
GetViewRequest request = new GetViewRequest
{
    LogViewName = LogViewName.FromProjectLocationBucketView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]"),
};
// Make the request
LogView response = configServiceV2Client.GetView(request);

GetViewAsync(GetViewRequest, CallSettings)

public virtual Task<LogView> GetViewAsync(GetViewRequest request, CallSettings callSettings = null)

Gets a view.

Parameters
TypeNameDescription
GetViewRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LogView>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetViewRequest request = new GetViewRequest
{
    LogViewName = LogViewName.FromProjectLocationBucketView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]"),
};
// Make the request
LogView response = await configServiceV2Client.GetViewAsync(request);

GetViewAsync(GetViewRequest, CancellationToken)

public virtual Task<LogView> GetViewAsync(GetViewRequest request, CancellationToken cancellationToken)

Gets a view.

Parameters
TypeNameDescription
GetViewRequestrequest

The request object containing all of the parameters for the API call.

CancellationTokencancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LogView>

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetViewRequest request = new GetViewRequest
{
    LogViewName = LogViewName.FromProjectLocationBucketView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]"),
};
// Make the request
LogView response = await configServiceV2Client.GetViewAsync(request);

ListBuckets(LocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListBucketsResponse, LogBucket> ListBuckets(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
LocationNameparent

Required. The parent resource whose buckets are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]"

Note: The locations portion of the resource must be specified, but supplying the character - in place of [LOCATION_ID] will return all buckets.

StringpageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

Nullable<Int32>pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListBucketsResponse, LogBucket>

A pageable sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBuckets(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogBucket item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBucketsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogBucket item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogBucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogBucket item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBuckets(BillingAccountLocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListBucketsResponse, LogBucket> ListBuckets(BillingAccountLocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
BillingAccountLocationNameparent

Required. The parent resource whose buckets are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]"

Note: The locations portion of the resource must be specified, but supplying the character - in place of [LOCATION_ID] will return all buckets.

StringpageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

Nullable<Int32>pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListBucketsResponse, LogBucket>

A pageable sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
BillingAccountLocationName parent = BillingAccountLocationName.FromBillingAccountLocation("[BILLING_ACCOUNT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBuckets(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogBucket item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBucketsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogBucket item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogBucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogBucket item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBuckets(FolderLocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListBucketsResponse, LogBucket> ListBuckets(FolderLocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
FolderLocationNameparent

Required. The parent resource whose buckets are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]"

Note: The locations portion of the resource must be specified, but supplying the character - in place of [LOCATION_ID] will return all buckets.

StringpageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

Nullable<Int32>pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListBucketsResponse, LogBucket>

A pageable sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
// Make the request
PagedEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBuckets(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogBucket item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBucketsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogBucket item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogBucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogBucket item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBuckets(ListBucketsRequest, CallSettings)

public virtual PagedEnumerable<ListBucketsResponse, LogBucket> ListBuckets(ListBucketsRequest request, CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
ListBucketsRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListBucketsResponse, LogBucket>

A pageable sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
ListBucketsRequest request = new ListBucketsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBuckets(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogBucket item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBucketsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogBucket item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogBucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogBucket item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBuckets(OrganizationLocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListBucketsResponse, LogBucket> ListBuckets(OrganizationLocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
OrganizationLocationNameparent

Required. The parent resource whose buckets are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]"

Note: The locations portion of the resource must be specified, but supplying the character - in place of [LOCATION_ID] will return all buckets.

StringpageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

Nullable<Int32>pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListBucketsResponse, LogBucket>

A pageable sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBuckets(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogBucket item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBucketsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogBucket item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogBucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogBucket item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBuckets(String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListBucketsResponse, LogBucket> ListBuckets(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
Stringparent

Required. The parent resource whose buckets are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]"

Note: The locations portion of the resource must be specified, but supplying the character - in place of [LOCATION_ID] will return all buckets.

StringpageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

Nullable<Int32>pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListBucketsResponse, LogBucket>

A pageable sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBuckets(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogBucket item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBucketsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogBucket item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogBucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogBucket item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBucketsAsync(LocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListBucketsResponse, LogBucket> ListBucketsAsync(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
LocationNameparent

Required. The parent resource whose buckets are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]"

Note: The locations portion of the resource must be specified, but supplying the character - in place of [LOCATION_ID] will return all buckets.

StringpageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

Nullable<Int32>pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListBucketsResponse, LogBucket>

A pageable asynchronous sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBucketsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogBucket item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBucketsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogBucket item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogBucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogBucket item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBucketsAsync(BillingAccountLocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListBucketsResponse, LogBucket> ListBucketsAsync(BillingAccountLocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
BillingAccountLocationNameparent

Required. The parent resource whose buckets are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]"

Note: The locations portion of the resource must be specified, but supplying the character - in place of [LOCATION_ID] will return all buckets.

StringpageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

Nullable<Int32>pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListBucketsResponse, LogBucket>

A pageable asynchronous sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
BillingAccountLocationName parent = BillingAccountLocationName.FromBillingAccountLocation("[BILLING_ACCOUNT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBucketsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogBucket item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBucketsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogBucket item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogBucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogBucket item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBucketsAsync(FolderLocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListBucketsResponse, LogBucket> ListBucketsAsync(FolderLocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
FolderLocationNameparent

Required. The parent resource whose buckets are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]"

Note: The locations portion of the resource must be specified, but supplying the character - in place of [LOCATION_ID] will return all buckets.

StringpageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

Nullable<Int32>pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListBucketsResponse, LogBucket>

A pageable asynchronous sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
FolderLocationName parent = FolderLocationName.FromFolderLocation("[FOLDER]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBucketsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogBucket item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBucketsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogBucket item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogBucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogBucket item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBucketsAsync(ListBucketsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListBucketsResponse, LogBucket> ListBucketsAsync(ListBucketsRequest request, CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
ListBucketsRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListBucketsResponse, LogBucket>

A pageable asynchronous sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
ListBucketsRequest request = new ListBucketsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBucketsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogBucket item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBucketsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogBucket item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogBucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogBucket item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBucketsAsync(OrganizationLocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListBucketsResponse, LogBucket> ListBucketsAsync(OrganizationLocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
OrganizationLocationNameparent

Required. The parent resource whose buckets are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]"

Note: The locations portion of the resource must be specified, but supplying the character - in place of [LOCATION_ID] will return all buckets.

StringpageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

Nullable<Int32>pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListBucketsResponse, LogBucket>

A pageable asynchronous sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBucketsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogBucket item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBucketsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogBucket item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogBucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogBucket item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBucketsAsync(String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListBucketsResponse, LogBucket> ListBucketsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists buckets.

Parameters
TypeNameDescription
Stringparent

Required. The parent resource whose buckets are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]"

Note: The locations portion of the resource must be specified, but supplying the character - in place of [LOCATION_ID] will return all buckets.

StringpageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

Nullable<Int32>pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListBucketsResponse, LogBucket>

A pageable asynchronous sequence of LogBucket resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListBucketsResponse, LogBucket> response = configServiceV2Client.ListBucketsAsync(parent);

// Iterate over all response items, lazily performing RPCs as require