Google Cloud Logging v2 API - Class ConfigServiceV2Client (4.3.0)

public abstract class ConfigServiceV2Client

Reference documentation and code samples for the Google Cloud Logging v2 API 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

CopyLogEntriesOperationsClient

public virtual OperationsClient CopyLogEntriesOperationsClient { get; }

The long-running operations client for CopyLogEntries.

Property Value
Type Description
OperationsClient

CreateBucketLongRunningOperationsClient

public virtual OperationsClient CreateBucketLongRunningOperationsClient { get; }

The long-running operations client for CreateBucketLongRunning.

Property Value
Type Description
OperationsClient

CreateLinkOperationsClient

public virtual OperationsClient CreateLinkOperationsClient { get; }

The long-running operations client for CreateLink.

Property Value
Type Description
OperationsClient

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
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ConfigServiceV2 scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

DeleteLinkOperationsClient

public virtual OperationsClient DeleteLinkOperationsClient { get; }

The long-running operations client for DeleteLink.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual ConfigServiceV2.ConfigServiceV2Client GrpcClient { get; }

The underlying gRPC ConfigServiceV2 client

Property Value
Type Description
ConfigServiceV2ConfigServiceV2Client

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateBucketLongRunningOperationsClient

public virtual OperationsClient UpdateBucketLongRunningOperationsClient { get; }

The long-running operations client for UpdateBucketLongRunning.

Property Value
Type Description
OperationsClient

Methods

CopyLogEntries(CopyLogEntriesRequest, CallSettings)

public virtual Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata> CopyLogEntries(CopyLogEntriesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CopyLogEntriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationCopyLogEntriesResponseCopyLogEntriesMetadata

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
CopyLogEntriesRequest request = new CopyLogEntriesRequest
{
    Name = "",
    Filter = "",
    Destination = "",
};
// Make the request
Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata> response = configServiceV2Client.CopyLogEntries(request);

// Poll until the returned long-running operation is complete
Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CopyLogEntriesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata> retrievedResponse = configServiceV2Client.PollOnceCopyLogEntries(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CopyLogEntriesResponse retrievedResult = retrievedResponse.Result;
}

CopyLogEntriesAsync(CopyLogEntriesRequest, CallSettings)

public virtual Task<Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata>> CopyLogEntriesAsync(CopyLogEntriesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request CopyLogEntriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationCopyLogEntriesResponseCopyLogEntriesMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CopyLogEntriesRequest request = new CopyLogEntriesRequest
{
    Name = "",
    Filter = "",
    Destination = "",
};
// Make the request
Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata> response = await configServiceV2Client.CopyLogEntriesAsync(request);

// Poll until the returned long-running operation is complete
Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CopyLogEntriesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata> retrievedResponse = await configServiceV2Client.PollOnceCopyLogEntriesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CopyLogEntriesResponse retrievedResult = retrievedResponse.Result;
}

CopyLogEntriesAsync(CopyLogEntriesRequest, CancellationToken)

public virtual Task<Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata>> CopyLogEntriesAsync(CopyLogEntriesRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request CopyLogEntriesRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationCopyLogEntriesResponseCopyLogEntriesMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CopyLogEntriesRequest request = new CopyLogEntriesRequest
{
    Name = "",
    Filter = "",
    Destination = "",
};
// Make the request
Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata> response = await configServiceV2Client.CopyLogEntriesAsync(request);

// Poll until the returned long-running operation is complete
Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CopyLogEntriesResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata> retrievedResponse = await configServiceV2Client.PollOnceCopyLogEntriesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CopyLogEntriesResponse retrievedResult = retrievedResponse.Result;
}

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
Type Description
ConfigServiceV2Client

The created ConfigServiceV2Client.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskConfigServiceV2Client

The task representing the created ConfigServiceV2Client.

CreateBucket(CreateBucketRequest, CallSettings)

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

Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.

Parameters
Name Description
request CreateBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.

Parameters
Name Description
request CreateBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogBucket

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 log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.

Parameters
Name Description
request CreateBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogBucket

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);

CreateBucketLongRunning(CreateBucketRequest, CallSettings)

public virtual Operation<LogBucket, BucketMetadata> CreateBucketLongRunning(CreateBucketRequest request, CallSettings callSettings = null)

Creates a log bucket asynchronously that can be used to store log entries.

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

Parameters
Name Description
request CreateBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLogBucketBucketMetadata

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
Operation<LogBucket, BucketMetadata> response = configServiceV2Client.CreateBucketLongRunning(request);

// Poll until the returned long-running operation is complete
Operation<LogBucket, BucketMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
LogBucket result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LogBucket, BucketMetadata> retrievedResponse = configServiceV2Client.PollOnceCreateBucketLongRunning(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LogBucket retrievedResult = retrievedResponse.Result;
}

CreateBucketLongRunningAsync(CreateBucketRequest, CallSettings)

public virtual Task<Operation<LogBucket, BucketMetadata>> CreateBucketLongRunningAsync(CreateBucketRequest request, CallSettings callSettings = null)

Creates a log bucket asynchronously that can be used to store log entries.

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

Parameters
Name Description
request CreateBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLogBucketBucketMetadata

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
Operation<LogBucket, BucketMetadata> response = await configServiceV2Client.CreateBucketLongRunningAsync(request);

// Poll until the returned long-running operation is complete
Operation<LogBucket, BucketMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
LogBucket result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LogBucket, BucketMetadata> retrievedResponse = await configServiceV2Client.PollOnceCreateBucketLongRunningAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LogBucket retrievedResult = retrievedResponse.Result;
}

CreateBucketLongRunningAsync(CreateBucketRequest, CancellationToken)

public virtual Task<Operation<LogBucket, BucketMetadata>> CreateBucketLongRunningAsync(CreateBucketRequest request, CancellationToken cancellationToken)

Creates a log bucket asynchronously that can be used to store log entries.

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

Parameters
Name Description
request CreateBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLogBucketBucketMetadata

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
Operation<LogBucket, BucketMetadata> response = await configServiceV2Client.CreateBucketLongRunningAsync(request);

// Poll until the returned long-running operation is complete
Operation<LogBucket, BucketMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
LogBucket result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LogBucket, BucketMetadata> retrievedResponse = await configServiceV2Client.PollOnceCreateBucketLongRunningAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LogBucket retrievedResult = retrievedResponse.Result;
}

CreateExclusion(BillingAccountName, LogExclusion, CallSettings)

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

Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent BillingAccountName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent FolderName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent OrganizationName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent ProjectName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
request CreateExclusionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent string

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent BillingAccountName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent BillingAccountName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent FolderName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent FolderName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent OrganizationName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent OrganizationName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent ProjectName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent ProjectName

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
request CreateExclusionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
request CreateExclusionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent string

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

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 the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

Parameters
Name Description
parent string

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

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

For examples:

"projects/my-logging-project" "organizations/123456789"

exclusion LogExclusion

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

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);
public virtual Operation<Link, LinkMetadata> CreateLink(CreateLinkRequest request, CallSettings callSettings = null)

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.

Parameters
Name Description
request CreateLinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLinkLinkMetadata

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
CreateLinkRequest request = new CreateLinkRequest
{
    ParentAsLogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
    Link = new Link(),
    LinkId = "",
};
// Make the request
Operation<Link, LinkMetadata> response = configServiceV2Client.CreateLink(request);

// Poll until the returned long-running operation is complete
Operation<Link, LinkMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Link result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Link, LinkMetadata> retrievedResponse = configServiceV2Client.PollOnceCreateLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Link retrievedResult = retrievedResponse.Result;
}
public virtual Operation<Link, LinkMetadata> CreateLink(LogBucketName parent, Link link, string linkId, CallSettings callSettings = null)

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.

Parameters
Name Description
parent LogBucketName

Required. The full resource name of the bucket to create a link for.

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

link Link

Required. The new link.

linkId string

Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLinkLinkMetadata

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
LogBucketName parent = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]");
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, LinkMetadata> response = configServiceV2Client.CreateLink(parent, link, linkId);

// Poll until the returned long-running operation is complete
Operation<Link, LinkMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Link result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Link, LinkMetadata> retrievedResponse = configServiceV2Client.PollOnceCreateLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Link retrievedResult = retrievedResponse.Result;
}
public virtual Operation<Link, LinkMetadata> CreateLink(string parent, Link link, string linkId, CallSettings callSettings = null)

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.

Parameters
Name Description
parent string

Required. The full resource name of the bucket to create a link for.

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

link Link

Required. The new link.

linkId string

Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLinkLinkMetadata

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]";
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, LinkMetadata> response = configServiceV2Client.CreateLink(parent, link, linkId);

// Poll until the returned long-running operation is complete
Operation<Link, LinkMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Link result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Link, LinkMetadata> retrievedResponse = configServiceV2Client.PollOnceCreateLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Link retrievedResult = retrievedResponse.Result;
}

CreateLinkAsync(CreateLinkRequest, CallSettings)

public virtual Task<Operation<Link, LinkMetadata>> CreateLinkAsync(CreateLinkRequest request, CallSettings callSettings = null)

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.

Parameters
Name Description
request CreateLinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLinkLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CreateLinkRequest request = new CreateLinkRequest
{
    ParentAsLogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
    Link = new Link(),
    LinkId = "",
};
// Make the request
Operation<Link, LinkMetadata> response = await configServiceV2Client.CreateLinkAsync(request);

// Poll until the returned long-running operation is complete
Operation<Link, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Link, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Link retrievedResult = retrievedResponse.Result;
}

CreateLinkAsync(CreateLinkRequest, CancellationToken)

public virtual Task<Operation<Link, LinkMetadata>> CreateLinkAsync(CreateLinkRequest request, CancellationToken cancellationToken)

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.

Parameters
Name Description
request CreateLinkRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLinkLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
CreateLinkRequest request = new CreateLinkRequest
{
    ParentAsLogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
    Link = new Link(),
    LinkId = "",
};
// Make the request
Operation<Link, LinkMetadata> response = await configServiceV2Client.CreateLinkAsync(request);

// Poll until the returned long-running operation is complete
Operation<Link, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Link, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Link retrievedResult = retrievedResponse.Result;
}
public virtual Task<Operation<Link, LinkMetadata>> CreateLinkAsync(LogBucketName parent, Link link, string linkId, CallSettings callSettings = null)

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.

Parameters
Name Description
parent LogBucketName

Required. The full resource name of the bucket to create a link for.

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

link Link

Required. The new link.

linkId string

Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLinkLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LogBucketName parent = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]");
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, LinkMetadata> response = await configServiceV2Client.CreateLinkAsync(parent, link, linkId);

// Poll until the returned long-running operation is complete
Operation<Link, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Link, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Link retrievedResult = retrievedResponse.Result;
}
public virtual Task<Operation<Link, LinkMetadata>> CreateLinkAsync(LogBucketName parent, Link link, string linkId, CancellationToken cancellationToken)

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.

Parameters
Name Description
parent LogBucketName

Required. The full resource name of the bucket to create a link for.

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

link Link

Required. The new link.

linkId string

Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLinkLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LogBucketName parent = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]");
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, LinkMetadata> response = await configServiceV2Client.CreateLinkAsync(parent, link, linkId);

// Poll until the returned long-running operation is complete
Operation<Link, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Link, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Link retrievedResult = retrievedResponse.Result;
}
public virtual Task<Operation<Link, LinkMetadata>> CreateLinkAsync(string parent, Link link, string linkId, CallSettings callSettings = null)

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.

Parameters
Name Description
parent string

Required. The full resource name of the bucket to create a link for.

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

link Link

Required. The new link.

linkId string

Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLinkLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]";
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, LinkMetadata> response = await configServiceV2Client.CreateLinkAsync(parent, link, linkId);

// Poll until the returned long-running operation is complete
Operation<Link, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Link, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Link retrievedResult = retrievedResponse.Result;
}
public virtual Task<Operation<Link, LinkMetadata>> CreateLinkAsync(string parent, Link link, string linkId, CancellationToken cancellationToken)

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.

Parameters
Name Description
parent string

Required. The full resource name of the bucket to create a link for.

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

link Link

Required. The new link.

linkId string

Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLinkLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]";
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, LinkMetadata> response = await configServiceV2Client.CreateLinkAsync(parent, link, linkId);

// Poll until the returned long-running operation is complete
Operation<Link, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Link, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Link retrievedResult = retrievedResponse.Result;
}

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
Name Description
parent BillingAccountName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
parent FolderName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
parent OrganizationName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
parent ProjectName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request CreateSinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
parent string

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
parent BillingAccountName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

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
Name Description
parent BillingAccountName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

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
Name Description
parent FolderName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

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
Name Description
parent FolderName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

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
Name Description
parent OrganizationName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

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
Name Description
parent OrganizationName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

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
Name Description
parent ProjectName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

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
Name Description
parent ProjectName

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

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
Name Description
request CreateSinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

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
Name Description
request CreateSinkRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

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
Name Description
parent string

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

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
Name Description
parent string

Required. The resource in which to create the sink:

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

For examples:

"projects/my-project" "organizations/123456789"

sink LogSink

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

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 log entries in a log bucket. A bucket may contain a maximum of 30 views.

Parameters
Name Description
request CreateViewRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 log entries in a log bucket. A bucket may contain a maximum of 30 views.

Parameters
Name Description
request CreateViewRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogView

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 log entries in a log bucket. A bucket may contain a maximum of 30 views.

Parameters
Name Description
request CreateViewRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogView

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 log bucket.

Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.

Parameters
Name Description
request DeleteBucketRequest

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

callSettings CallSettings

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 log bucket.

Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.

Parameters
Name Description
request DeleteBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 log bucket.

Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.

Parameters
Name Description
request DeleteBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
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 in the _Default sink.

Parameters
Name Description
request DeleteExclusionRequest

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

callSettings CallSettings

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 in the _Default sink.

Parameters
Name Description
name LogExclusionName

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

callSettings CallSettings

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 in the _Default sink.

Parameters
Name Description
name string

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

callSettings CallSettings

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 in the _Default sink.

Parameters
Name Description
request DeleteExclusionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 in the _Default sink.

Parameters
Name Description
request DeleteExclusionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
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 in the _Default sink.

Parameters
Name Description
name LogExclusionName

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 in the _Default sink.

Parameters
Name Description
name LogExclusionName

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
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 in the _Default sink.

Parameters
Name Description
name string

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 in the _Default sink.

Parameters
Name Description
name string

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
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);
public virtual Operation<Empty, LinkMetadata> DeleteLink(DeleteLinkRequest request, CallSettings callSettings = null)

Deletes a link. This will also delete the corresponding BigQuery linked dataset.

Parameters
Name Description
request DeleteLinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyLinkMetadata

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
DeleteLinkRequest request = new DeleteLinkRequest
{
    LinkName = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"),
};
// Make the request
Operation<Empty, LinkMetadata> response = configServiceV2Client.DeleteLink(request);

// Poll until the returned long-running operation is complete
Operation<Empty, LinkMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, LinkMetadata> retrievedResponse = configServiceV2Client.PollOnceDeleteLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
public virtual Operation<Empty, LinkMetadata> DeleteLink(LinkName name, CallSettings callSettings = null)

Deletes a link. This will also delete the corresponding BigQuery linked dataset.

Parameters
Name Description
name LinkName

Required. The full resource name of the link to delete.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyLinkMetadata

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]");
// Make the request
Operation<Empty, LinkMetadata> response = configServiceV2Client.DeleteLink(name);

// Poll until the returned long-running operation is complete
Operation<Empty, LinkMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, LinkMetadata> retrievedResponse = configServiceV2Client.PollOnceDeleteLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
public virtual Operation<Empty, LinkMetadata> DeleteLink(string name, CallSettings callSettings = null)

Deletes a link. This will also delete the corresponding BigQuery linked dataset.

Parameters
Name Description
name string

Required. The full resource name of the link to delete.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyLinkMetadata

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/links/[LINK]";
// Make the request
Operation<Empty, LinkMetadata> response = configServiceV2Client.DeleteLink(name);

// Poll until the returned long-running operation is complete
Operation<Empty, LinkMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, LinkMetadata> retrievedResponse = configServiceV2Client.PollOnceDeleteLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteLinkAsync(DeleteLinkRequest, CallSettings)

public virtual Task<Operation<Empty, LinkMetadata>> DeleteLinkAsync(DeleteLinkRequest request, CallSettings callSettings = null)

Deletes a link. This will also delete the corresponding BigQuery linked dataset.

Parameters
Name Description
request DeleteLinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
DeleteLinkRequest request = new DeleteLinkRequest
{
    LinkName = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"),
};
// Make the request
Operation<Empty, LinkMetadata> response = await configServiceV2Client.DeleteLinkAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceDeleteLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteLinkAsync(DeleteLinkRequest, CancellationToken)

public virtual Task<Operation<Empty, LinkMetadata>> DeleteLinkAsync(DeleteLinkRequest request, CancellationToken cancellationToken)

Deletes a link. This will also delete the corresponding BigQuery linked dataset.

Parameters
Name Description
request DeleteLinkRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
DeleteLinkRequest request = new DeleteLinkRequest
{
    LinkName = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"),
};
// Make the request
Operation<Empty, LinkMetadata> response = await configServiceV2Client.DeleteLinkAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceDeleteLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteLinkAsync(LinkName, CallSettings)

public virtual Task<Operation<Empty, LinkMetadata>> DeleteLinkAsync(LinkName name, CallSettings callSettings = null)

Deletes a link. This will also delete the corresponding BigQuery linked dataset.

Parameters
Name Description
name LinkName

Required. The full resource name of the link to delete.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]");
// Make the request
Operation<Empty, LinkMetadata> response = await configServiceV2Client.DeleteLinkAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceDeleteLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteLinkAsync(LinkName, CancellationToken)

public virtual Task<Operation<Empty, LinkMetadata>> DeleteLinkAsync(LinkName name, CancellationToken cancellationToken)

Deletes a link. This will also delete the corresponding BigQuery linked dataset.

Parameters
Name Description
name LinkName

Required. The full resource name of the link to delete.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]");
// Make the request
Operation<Empty, LinkMetadata> response = await configServiceV2Client.DeleteLinkAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceDeleteLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteLinkAsync(string, CallSettings)

public virtual Task<Operation<Empty, LinkMetadata>> DeleteLinkAsync(string name, CallSettings callSettings = null)

Deletes a link. This will also delete the corresponding BigQuery linked dataset.

Parameters
Name Description
name string

Required. The full resource name of the link to delete.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/links/[LINK]";
// Make the request
Operation<Empty, LinkMetadata> response = await configServiceV2Client.DeleteLinkAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceDeleteLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteLinkAsync(string, CancellationToken)

public virtual Task<Operation<Empty, LinkMetadata>> DeleteLinkAsync(string name, CancellationToken cancellationToken)

Deletes a link. This will also delete the corresponding BigQuery linked dataset.

Parameters
Name Description
name string

Required. The full resource name of the link to delete.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyLinkMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/links/[LINK]";
// Make the request
Operation<Empty, LinkMetadata> response = await configServiceV2Client.DeleteLinkAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, LinkMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, LinkMetadata> retrievedResponse = await configServiceV2Client.PollOnceDeleteLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

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
Name Description
request DeleteSinkRequest

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

callSettings CallSettings

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
Name Description
sinkName LogSinkName

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]"

For example:

"projects/my-project/sinks/my-sink"

callSettings CallSettings

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
Name Description
sinkName string

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]"

For example:

"projects/my-project/sinks/my-sink"

callSettings CallSettings

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
Name Description
request DeleteSinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request DeleteSinkRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
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
Name Description
sinkName LogSinkName

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]"

For example:

"projects/my-project/sinks/my-sink"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
sinkName LogSinkName

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]"

For example:

"projects/my-project/sinks/my-sink"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
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
Name Description
sinkName string

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]"

For example:

"projects/my-project/sinks/my-sink"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
sinkName string

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]"

For example:

"projects/my-project/sinks/my-sink"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
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 on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.

Parameters
Name Description
request DeleteViewRequest

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

callSettings CallSettings

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 on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.

Parameters
Name Description
request DeleteViewRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.

Parameters
Name Description
request DeleteViewRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
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 log bucket.

Parameters
Name Description
request GetBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 log bucket.

Parameters
Name Description
request GetBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogBucket

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 log bucket.

Parameters
Name Description
request GetBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogBucket

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 Logging CMEK settings for the given resource.

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request GetCmekSettingsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 Logging CMEK settings for the given resource.

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request GetCmekSettingsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCmekSettings

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 Logging CMEK settings for the given resource.

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request GetCmekSettingsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskCmekSettings

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 in the _Default sink.

Parameters
Name Description
request GetExclusionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 in the _Default sink.

Parameters
Name Description
name LogExclusionName

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 in the _Default sink.

Parameters
Name Description
name string

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 in the _Default sink.

Parameters
Name Description
request GetExclusionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

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 in the _Default sink.

Parameters
Name Description
request GetExclusionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

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 in the _Default sink.

Parameters
Name Description
name LogExclusionName

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

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 in the _Default sink.

Parameters
Name Description
name LogExclusionName

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

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 in the _Default sink.

Parameters
Name Description
name string

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

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 in the _Default sink.

Parameters
Name Description
name string

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]"

For example:

"projects/my-project/exclusions/my-exclusion"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

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);
public virtual Link GetLink(GetLinkRequest request, CallSettings callSettings = null)

Gets a link.

Parameters
Name Description
request GetLinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Link

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
GetLinkRequest request = new GetLinkRequest
{
    LinkName = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"),
};
// Make the request
Link response = configServiceV2Client.GetLink(request);
public virtual Link GetLink(LinkName name, CallSettings callSettings = null)

Gets a link.

Parameters
Name Description
name LinkName

Required. The resource name of the link:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Link

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]");
// Make the request
Link response = configServiceV2Client.GetLink(name);
public virtual Link GetLink(string name, CallSettings callSettings = null)

Gets a link.

Parameters
Name Description
name string

Required. The resource name of the link:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Link

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/links/[LINK]";
// Make the request
Link response = configServiceV2Client.GetLink(name);

GetLinkAsync(GetLinkRequest, CallSettings)

public virtual Task<Link> GetLinkAsync(GetLinkRequest request, CallSettings callSettings = null)

Gets a link.

Parameters
Name Description
request GetLinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLink

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetLinkRequest request = new GetLinkRequest
{
    LinkName = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"),
};
// Make the request
Link response = await configServiceV2Client.GetLinkAsync(request);

GetLinkAsync(GetLinkRequest, CancellationToken)

public virtual Task<Link> GetLinkAsync(GetLinkRequest request, CancellationToken cancellationToken)

Gets a link.

Parameters
Name Description
request GetLinkRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLink

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetLinkRequest request = new GetLinkRequest
{
    LinkName = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"),
};
// Make the request
Link response = await configServiceV2Client.GetLinkAsync(request);

GetLinkAsync(LinkName, CallSettings)

public virtual Task<Link> GetLinkAsync(LinkName name, CallSettings callSettings = null)

Gets a link.

Parameters
Name Description
name LinkName

Required. The resource name of the link:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLink

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]");
// Make the request
Link response = await configServiceV2Client.GetLinkAsync(name);

GetLinkAsync(LinkName, CancellationToken)

public virtual Task<Link> GetLinkAsync(LinkName name, CancellationToken cancellationToken)

Gets a link.

Parameters
Name Description
name LinkName

Required. The resource name of the link:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLink

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]");
// Make the request
Link response = await configServiceV2Client.GetLinkAsync(name);

GetLinkAsync(string, CallSettings)

public virtual Task<Link> GetLinkAsync(string name, CallSettings callSettings = null)

Gets a link.

Parameters
Name Description
name string

Required. The resource name of the link:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLink

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/links/[LINK]";
// Make the request
Link response = await configServiceV2Client.GetLinkAsync(name);

GetLinkAsync(string, CancellationToken)

public virtual Task<Link> GetLinkAsync(string name, CancellationToken cancellationToken)

Gets a link.

Parameters
Name Description
name string

Required. The resource name of the link:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLink

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/links/[LINK]";
// Make the request
Link response = await configServiceV2Client.GetLinkAsync(name);

GetSettings(GetSettingsRequest, CallSettings)

public virtual Settings GetSettings(GetSettingsRequest request, CallSettings callSettings = null)

Gets the Log Router settings for the given resource.

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request GetSettingsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Settings

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
    SettingsName = SettingsName.FromProject("[PROJECT]"),
};
// Make the request
Settings response = configServiceV2Client.GetSettings(request);

GetSettings(SettingsName, CallSettings)

public virtual Settings GetSettings(SettingsName name, CallSettings callSettings = null)

Gets the Log Router settings for the given resource.

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
name SettingsName

Required. The resource for which to retrieve settings.

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

For example:

"organizations/12345/settings"

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Settings

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProject("[PROJECT]");
// Make the request
Settings response = configServiceV2Client.GetSettings(name);

GetSettings(string, CallSettings)

public virtual Settings GetSettings(string name, CallSettings callSettings = null)

Gets the Log Router settings for the given resource.

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
name string

Required. The resource for which to retrieve settings.

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

For example:

"organizations/12345/settings"

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Settings

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/settings";
// Make the request
Settings response = configServiceV2Client.GetSettings(name);

GetSettingsAsync(GetSettingsRequest, CallSettings)

public virtual Task<Settings> GetSettingsAsync(GetSettingsRequest request, CallSettings callSettings = null)

Gets the Log Router settings for the given resource.

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request GetSettingsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
    SettingsName = SettingsName.FromProject("[PROJECT]"),
};
// Make the request
Settings response = await configServiceV2Client.GetSettingsAsync(request);

GetSettingsAsync(GetSettingsRequest, CancellationToken)

public virtual Task<Settings> GetSettingsAsync(GetSettingsRequest request, CancellationToken cancellationToken)

Gets the Log Router settings for the given resource.

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request GetSettingsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
    SettingsName = SettingsName.FromProject("[PROJECT]"),
};
// Make the request
Settings response = await configServiceV2Client.GetSettingsAsync(request);

GetSettingsAsync(SettingsName, CallSettings)

public virtual Task<Settings> GetSettingsAsync(SettingsName name, CallSettings callSettings = null)

Gets the Log Router settings for the given resource.

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
name SettingsName

Required. The resource for which to retrieve settings.

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

For example:

"organizations/12345/settings"

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProject("[PROJECT]");
// Make the request
Settings response = await configServiceV2Client.GetSettingsAsync(name);

GetSettingsAsync(SettingsName, CancellationToken)

public virtual Task<Settings> GetSettingsAsync(SettingsName name, CancellationToken cancellationToken)

Gets the Log Router settings for the given resource.

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
name SettingsName

Required. The resource for which to retrieve settings.

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

For example:

"organizations/12345/settings"

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProject("[PROJECT]");
// Make the request
Settings response = await configServiceV2Client.GetSettingsAsync(name);

GetSettingsAsync(string, CallSettings)

public virtual Task<Settings> GetSettingsAsync(string name, CallSettings callSettings = null)

Gets the Log Router settings for the given resource.

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
name string

Required. The resource for which to retrieve settings.

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

For example:

"organizations/12345/settings"

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/settings";
// Make the request
Settings response = await configServiceV2Client.GetSettingsAsync(name);

GetSettingsAsync(string, CancellationToken)

public virtual Task<Settings> GetSettingsAsync(string name, CancellationToken cancellationToken)

Gets the Log Router settings for the given resource.

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
name string

Required. The resource for which to retrieve settings.

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

For example:

"organizations/12345/settings"

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/settings";
// Make the request
Settings response = await configServiceV2Client.GetSettingsAsync(name);

GetSink(GetSinkRequest, CallSettings)

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

Gets a sink.

Parameters
Name Description
request GetSinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
sinkName LogSinkName

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]"

For example:

"projects/my-project/sinks/my-sink"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
sinkName string

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]"

For example:

"projects/my-project/sinks/my-sink"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request GetSinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

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
Name Description
request GetSinkRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

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
Name Description
sinkName LogSinkName

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]"

For example:

"projects/my-project/sinks/my-sink"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

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
Name Description
sinkName LogSinkName

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]"

For example:

"projects/my-project/sinks/my-sink"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

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
Name Description
sinkName string

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]"

For example:

"projects/my-project/sinks/my-sink"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

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
Name Description
sinkName string

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]"

For example:

"projects/my-project/sinks/my-sink"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

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 on a log bucket..

Parameters
Name Description
request GetViewRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 on a log bucket..

Parameters
Name Description
request GetViewRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogView

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 on a log bucket..

Parameters
Name Description
request GetViewRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogView

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, int?, CallSettings)

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

Lists log buckets.

Parameters
Name Description
parent LocationName

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.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBucketsResponseLogBucket

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, int?, CallSettings)

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

Lists log buckets.

Parameters
Name Description
parent BillingAccountLocationName

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.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBucketsResponseLogBucket

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, int?, CallSettings)

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

Lists log buckets.

Parameters
Name Description
parent FolderLocationName

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.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBucketsResponseLogBucket

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 log buckets.

Parameters
Name Description
request ListBucketsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBucketsResponseLogBucket

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, int?, CallSettings)

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

Lists log buckets.

Parameters
Name Description
parent OrganizationLocationName

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.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBucketsResponseLogBucket

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, int?, CallSettings)

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

Lists log buckets.

Parameters
Name Description
parent string

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.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBucketsResponseLogBucket

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, int?, CallSettings)

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

Lists log buckets.

Parameters
Name Description
parent LocationName

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.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBucketsResponseLogBucket

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, int?, CallSettings)

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

Lists log buckets.

Parameters
Name Description
parent BillingAccountLocationName

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.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBucketsResponseLogBucket

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, int?, CallSettings)

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

Lists log buckets.

Parameters
Name Description
parent FolderLocationName

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.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBucketsResponseLogBucket

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 log buckets.

Parameters
Name Description
request ListBucketsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBucketsResponseLogBucket

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, int?, CallSettings)

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

Lists log buckets.

Parameters
Name Description
parent OrganizationLocationName

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.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBucketsResponseLogBucket

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, int?, CallSettings)

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

Lists log buckets.

Parameters
Name Description
parent string

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.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBucketsResponseLogBucket

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 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;

ListExclusions(BillingAccountName, string, int?, CallSettings)

public virtual PagedEnumerable<ListExclusionsResponse, LogExclusion> ListExclusions(BillingAccountName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
Name Description
parent BillingAccountName

Required. The parent resource whose exclusions are to be listed.

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListExclusionsResponseLogExclusion

A pageable sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
// Make the request
PagedEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusions(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogExclusion 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 (ListExclusionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;

ListExclusions(FolderName, string, int?, CallSettings)

public virtual PagedEnumerable<ListExclusionsResponse, LogExclusion> ListExclusions(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
Name Description
parent FolderName

Required. The parent resource whose exclusions are to be listed.

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListExclusionsResponseLogExclusion

A pageable sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusions(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogExclusion 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 (ListExclusionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;

ListExclusions(OrganizationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListExclusionsResponse, LogExclusion> ListExclusions(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
Name Description
parent OrganizationName

Required. The parent resource whose exclusions are to be listed.

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListExclusionsResponseLogExclusion

A pageable sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusions(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogExclusion 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 (ListExclusionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;

ListExclusions(ProjectName, string, int?, CallSettings)

public virtual PagedEnumerable<ListExclusionsResponse, LogExclusion> ListExclusions(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
Name Description
parent ProjectName

Required. The parent resource whose exclusions are to be listed.

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListExclusionsResponseLogExclusion

A pageable sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusions(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogExclusion 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 (ListExclusionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;

ListExclusions(ListExclusionsRequest, CallSettings)

public virtual PagedEnumerable<ListExclusionsResponse, LogExclusion> ListExclusions(ListExclusionsRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListExclusionsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListExclusionsResponseLogExclusion

A pageable sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
ListExclusionsRequest request = new ListExclusionsRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusions(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogExclusion 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 (ListExclusionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;

ListExclusions(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListExclusionsResponse, LogExclusion> ListExclusions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
Name Description
parent string

Required. The parent resource whose exclusions are to be listed.

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListExclusionsResponseLogExclusion

A pageable sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusions(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogExclusion 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 (ListExclusionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;

ListExclusionsAsync(BillingAccountName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> ListExclusionsAsync(BillingAccountName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
Name Description
parent BillingAccountName

Required. The parent resource whose exclusions are to be listed.

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListExclusionsResponseLogExclusion

A pageable asynchronous sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
// Make the request
PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogExclusion 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((ListExclusionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;

ListExclusionsAsync(FolderName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> ListExclusionsAsync(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
Name Description
parent FolderName

Required. The parent resource whose exclusions are to be listed.

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListExclusionsResponseLogExclusion

A pageable asynchronous sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogExclusion 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((ListExclusionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;

ListExclusionsAsync(OrganizationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> ListExclusionsAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
Name Description
parent OrganizationName

Required. The parent resource whose exclusions are to be listed.

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListExclusionsResponseLogExclusion

A pageable asynchronous sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogExclusion 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((ListExclusionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;

ListExclusionsAsync(ProjectName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> ListExclusionsAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
Name Description
parent ProjectName

Required. The parent resource whose exclusions are to be listed.

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListExclusionsResponseLogExclusion

A pageable asynchronous sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogExclusion 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((ListExclusionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;

ListExclusionsAsync(ListExclusionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> ListExclusionsAsync(ListExclusionsRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListExclusionsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListExclusionsResponseLogExclusion

A pageable asynchronous sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
ListExclusionsRequest request = new ListExclusionsRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusionsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogExclusion 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((ListExclusionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;

ListExclusionsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> ListExclusionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

Parameters
Name Description
parent string

Required. The parent resource whose exclusions are to be listed.

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListExclusionsResponseLogExclusion

A pageable asynchronous sequence of LogExclusion resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListExclusionsResponse, LogExclusion> response = configServiceV2Client.ListExclusionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogExclusion 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((ListExclusionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogExclusion 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<LogExclusion> 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 (LogExclusion 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;
public virtual PagedEnumerable<ListLinksResponse, Link> ListLinks(ListLinksRequest request, CallSettings callSettings = null)

Lists links.

Parameters
Name Description
request ListLinksRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListLinksResponseLink

A pageable sequence of Link resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
ListLinksRequest request = new ListLinksRequest
{
    ParentAsLogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
};
// Make the request
PagedEnumerable<ListLinksResponse, Link> response = configServiceV2Client.ListLinks(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Link 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 (ListLinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Link 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<Link> 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 (Link 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;
public virtual PagedEnumerable<ListLinksResponse, Link> ListLinks(LogBucketName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists links.

Parameters
Name Description
parent LogBucketName

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListLinksResponseLink

A pageable sequence of Link resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
LogBucketName parent = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]");
// Make the request
PagedEnumerable<ListLinksResponse, Link> response = configServiceV2Client.ListLinks(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Link 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 (ListLinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Link 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<Link> 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 (Link 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;
public virtual PagedEnumerable<ListLinksResponse, Link> ListLinks(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists links.

Parameters
Name Description
parent string

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListLinksResponseLink

A pageable sequence of Link resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]";
// Make the request
PagedEnumerable<ListLinksResponse, Link> response = configServiceV2Client.ListLinks(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Link 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 (ListLinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Link 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<Link> 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 (Link 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;

ListLinksAsync(ListLinksRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListLinksResponse, Link> ListLinksAsync(ListLinksRequest request, CallSettings callSettings = null)

Lists links.

Parameters
Name Description
request ListLinksRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListLinksResponseLink

A pageable asynchronous sequence of Link resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
ListLinksRequest request = new ListLinksRequest
{
    ParentAsLogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
};
// Make the request
PagedAsyncEnumerable<ListLinksResponse, Link> response = configServiceV2Client.ListLinksAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Link 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((ListLinksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Link 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<Link> 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 (Link 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;

ListLinksAsync(LogBucketName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListLinksResponse, Link> ListLinksAsync(LogBucketName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists links.

Parameters
Name Description
parent LogBucketName

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListLinksResponseLink

A pageable asynchronous sequence of Link resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
LogBucketName parent = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]");
// Make the request
PagedAsyncEnumerable<ListLinksResponse, Link> response = configServiceV2Client.ListLinksAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Link 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((ListLinksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Link 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<Link> 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 (Link 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;

ListLinksAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListLinksResponse, Link> ListLinksAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists links.

Parameters
Name Description
parent string

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListLinksResponseLink

A pageable asynchronous sequence of Link resources.

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

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Link 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((ListLinksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Link 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<Link> 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 (Link 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;

ListSinks(BillingAccountName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSinksResponse, LogSink> ListSinks(BillingAccountName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
parent BillingAccountName

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSinksResponseLogSink

A pageable sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
// Make the request
PagedEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinks(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogSink 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 (ListSinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListSinks(FolderName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSinksResponse, LogSink> ListSinks(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
parent FolderName

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSinksResponseLogSink

A pageable sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinks(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogSink 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 (ListSinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListSinks(OrganizationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSinksResponse, LogSink> ListSinks(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
parent OrganizationName

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSinksResponseLogSink

A pageable sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinks(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogSink 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 (ListSinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListSinks(ProjectName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSinksResponse, LogSink> ListSinks(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
parent ProjectName

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSinksResponseLogSink

A pageable sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinks(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogSink 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 (ListSinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListSinks(ListSinksRequest, CallSettings)

public virtual PagedEnumerable<ListSinksResponse, LogSink> ListSinks(ListSinksRequest request, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
request ListSinksRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSinksResponseLogSink

A pageable sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
ListSinksRequest request = new ListSinksRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinks(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogSink 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 (ListSinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListSinks(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSinksResponse, LogSink> ListSinks(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
parent string

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSinksResponseLogSink

A pageable sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinks(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogSink 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 (ListSinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListSinksAsync(BillingAccountName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSinksResponse, LogSink> ListSinksAsync(BillingAccountName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
parent BillingAccountName

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSinksResponseLogSink

A pageable asynchronous sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
BillingAccountName parent = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
// Make the request
PagedAsyncEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinksAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogSink 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((ListSinksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListSinksAsync(FolderName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSinksResponse, LogSink> ListSinksAsync(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
parent FolderName

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSinksResponseLogSink

A pageable asynchronous sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
FolderName parent = FolderName.FromFolder("[FOLDER]");
// Make the request
PagedAsyncEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinksAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogSink 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((ListSinksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListSinksAsync(OrganizationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSinksResponse, LogSink> ListSinksAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
parent OrganizationName

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSinksResponseLogSink

A pageable asynchronous sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinksAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogSink 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((ListSinksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListSinksAsync(ProjectName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSinksResponse, LogSink> ListSinksAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
parent ProjectName

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSinksResponseLogSink

A pageable asynchronous sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinksAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogSink 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((ListSinksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListSinksAsync(ListSinksRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSinksResponse, LogSink> ListSinksAsync(ListSinksRequest request, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
request ListSinksRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSinksResponseLogSink

A pageable asynchronous sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
ListSinksRequest request = new ListSinksRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedAsyncEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinksAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogSink 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((ListSinksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListSinksAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSinksResponse, LogSink> ListSinksAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists sinks.

Parameters
Name Description
parent string

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

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

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSinksResponseLogSink

A pageable asynchronous sequence of LogSink resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListSinksResponse, LogSink> response = configServiceV2Client.ListSinksAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogSink 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((ListSinksResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogSink 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<LogSink> 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 (LogSink 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;

ListViews(ListViewsRequest, CallSettings)

public virtual PagedEnumerable<ListViewsResponse, LogView> ListViews(ListViewsRequest request, CallSettings callSettings = null)

Lists views on a log bucket.

Parameters
Name Description
request ListViewsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListViewsResponseLogView

A pageable sequence of LogView resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
ListViewsRequest request = new ListViewsRequest { Parent = "", };
// Make the request
PagedEnumerable<ListViewsResponse, LogView> response = configServiceV2Client.ListViews(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogView 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 (ListViewsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogView 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<LogView> 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 (LogView 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;

ListViews(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListViewsResponse, LogView> ListViews(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists views on a log bucket.

Parameters
Name Description
parent string

Required. The bucket whose views are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListViewsResponseLogView

A pageable sequence of LogView resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
string parent = "";
// Make the request
PagedEnumerable<ListViewsResponse, LogView> response = configServiceV2Client.ListViews(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LogView 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 (ListViewsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogView 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<LogView> 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 (LogView 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;

ListViewsAsync(ListViewsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListViewsResponse, LogView> ListViewsAsync(ListViewsRequest request, CallSettings callSettings = null)

Lists views on a log bucket.

Parameters
Name Description
request ListViewsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListViewsResponseLogView

A pageable asynchronous sequence of LogView resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
ListViewsRequest request = new ListViewsRequest { Parent = "", };
// Make the request
PagedAsyncEnumerable<ListViewsResponse, LogView> response = configServiceV2Client.ListViewsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogView 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((ListViewsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogView 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<LogView> 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 (LogView 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;

ListViewsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListViewsResponse, LogView> ListViewsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists views on a log bucket.

Parameters
Name Description
parent string

Required. The bucket whose views are to be listed:

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListViewsResponseLogView

A pageable asynchronous sequence of LogView resources.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
string parent = "";
// Make the request
PagedAsyncEnumerable<ListViewsResponse, LogView> response = configServiceV2Client.ListViewsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LogView 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((ListViewsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LogView 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<LogView> 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 (LogView 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;

PollOnceCopyLogEntries(string, CallSettings)

public virtual Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata> PollOnceCopyLogEntries(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CopyLogEntries.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationCopyLogEntriesResponseCopyLogEntriesMetadata

The result of polling the operation.

PollOnceCopyLogEntriesAsync(string, CallSettings)

public virtual Task<Operation<CopyLogEntriesResponse, CopyLogEntriesMetadata>> PollOnceCopyLogEntriesAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CopyLogEntries.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationCopyLogEntriesResponseCopyLogEntriesMetadata

A task representing the result of polling the operation.

PollOnceCreateBucketLongRunning(string, CallSettings)

public virtual Operation<LogBucket, BucketMetadata> PollOnceCreateBucketLongRunning(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateBucketLongRunning.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLogBucketBucketMetadata

The result of polling the operation.

PollOnceCreateBucketLongRunningAsync(string, CallSettings)

public virtual Task<Operation<LogBucket, BucketMetadata>> PollOnceCreateBucketLongRunningAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateBucketLongRunning.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLogBucketBucketMetadata

A task representing the result of polling the operation.

public virtual Operation<Link, LinkMetadata> PollOnceCreateLink(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateLink.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLinkLinkMetadata

The result of polling the operation.

PollOnceCreateLinkAsync(string, CallSettings)

public virtual Task<Operation<Link, LinkMetadata>> PollOnceCreateLinkAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateLink.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLinkLinkMetadata

A task representing the result of polling the operation.

public virtual Operation<Empty, LinkMetadata> PollOnceDeleteLink(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteLink.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyLinkMetadata

The result of polling the operation.

PollOnceDeleteLinkAsync(string, CallSettings)

public virtual Task<Operation<Empty, LinkMetadata>> PollOnceDeleteLinkAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteLink.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyLinkMetadata

A task representing the result of polling the operation.

PollOnceUpdateBucketLongRunning(string, CallSettings)

public virtual Operation<LogBucket, BucketMetadata> PollOnceUpdateBucketLongRunning(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateBucketLongRunning.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLogBucketBucketMetadata

The result of polling the operation.

PollOnceUpdateBucketLongRunningAsync(string, CallSettings)

public virtual Task<Operation<LogBucket, BucketMetadata>> PollOnceUpdateBucketLongRunningAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateBucketLongRunning.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLogBucketBucketMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UndeleteBucket(UndeleteBucketRequest, CallSettings)

public virtual void UndeleteBucket(UndeleteBucketRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request UndeleteBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

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

UndeleteBucketAsync(UndeleteBucketRequest, CallSettings)

public virtual Task UndeleteBucketAsync(UndeleteBucketRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request UndeleteBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

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

UndeleteBucketAsync(UndeleteBucketRequest, CancellationToken)

public virtual Task UndeleteBucketAsync(UndeleteBucketRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request UndeleteBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

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

UpdateBucket(UpdateBucketRequest, CallSettings)

public virtual LogBucket UpdateBucket(UpdateBucketRequest request, CallSettings callSettings = null)

Updates a log bucket.

If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.

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

Parameters
Name Description
request UpdateBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogBucket

The RPC response.

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

UpdateBucketAsync(UpdateBucketRequest, CallSettings)

public virtual Task<LogBucket> UpdateBucketAsync(UpdateBucketRequest request, CallSettings callSettings = null)

Updates a log bucket.

If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.

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

Parameters
Name Description
request UpdateBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogBucket

A Task containing the RPC response.

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

UpdateBucketAsync(UpdateBucketRequest, CancellationToken)

public virtual Task<LogBucket> UpdateBucketAsync(UpdateBucketRequest request, CancellationToken cancellationToken)

Updates a log bucket.

If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.

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

Parameters
Name Description
request UpdateBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogBucket

A Task containing the RPC response.

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

UpdateBucketLongRunning(UpdateBucketRequest, CallSettings)

public virtual Operation<LogBucket, BucketMetadata> UpdateBucketLongRunning(UpdateBucketRequest request, CallSettings callSettings = null)

Updates a log bucket asynchronously.

If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.

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

Parameters
Name Description
request UpdateBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLogBucketBucketMetadata

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
UpdateBucketRequest request = new UpdateBucketRequest
{
    LogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
    Bucket = new LogBucket(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<LogBucket, BucketMetadata> response = configServiceV2Client.UpdateBucketLongRunning(request);

// Poll until the returned long-running operation is complete
Operation<LogBucket, BucketMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
LogBucket result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LogBucket, BucketMetadata> retrievedResponse = configServiceV2Client.PollOnceUpdateBucketLongRunning(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LogBucket retrievedResult = retrievedResponse.Result;
}

UpdateBucketLongRunningAsync(UpdateBucketRequest, CallSettings)

public virtual Task<Operation<LogBucket, BucketMetadata>> UpdateBucketLongRunningAsync(UpdateBucketRequest request, CallSettings callSettings = null)

Updates a log bucket asynchronously.

If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.

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

Parameters
Name Description
request UpdateBucketRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLogBucketBucketMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
UpdateBucketRequest request = new UpdateBucketRequest
{
    LogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
    Bucket = new LogBucket(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<LogBucket, BucketMetadata> response = await configServiceV2Client.UpdateBucketLongRunningAsync(request);

// Poll until the returned long-running operation is complete
Operation<LogBucket, BucketMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
LogBucket result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LogBucket, BucketMetadata> retrievedResponse = await configServiceV2Client.PollOnceUpdateBucketLongRunningAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LogBucket retrievedResult = retrievedResponse.Result;
}

UpdateBucketLongRunningAsync(UpdateBucketRequest, CancellationToken)

public virtual Task<Operation<LogBucket, BucketMetadata>> UpdateBucketLongRunningAsync(UpdateBucketRequest request, CancellationToken cancellationToken)

Updates a log bucket asynchronously.

If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.

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

Parameters
Name Description
request UpdateBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLogBucketBucketMetadata

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
UpdateBucketRequest request = new UpdateBucketRequest
{
    LogBucketName = LogBucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
    Bucket = new LogBucket(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<LogBucket, BucketMetadata> response = await configServiceV2Client.UpdateBucketLongRunningAsync(request);

// Poll until the returned long-running operation is complete
Operation<LogBucket, BucketMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
LogBucket result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<LogBucket, BucketMetadata> retrievedResponse = await configServiceV2Client.PollOnceUpdateBucketLongRunningAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    LogBucket retrievedResult = retrievedResponse.Result;
}

UpdateCmekSettings(UpdateCmekSettingsRequest, CallSettings)

public virtual CmekSettings UpdateCmekSettings(UpdateCmekSettingsRequest request, CallSettings callSettings = null)

Updates the Log Router CMEK settings for the given resource.

Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.

[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request UpdateCmekSettingsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CmekSettings

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
UpdateCmekSettingsRequest request = new UpdateCmekSettingsRequest
{
    Name = "",
    CmekSettings = new CmekSettings(),
    UpdateMask = new FieldMask(),
};
// Make the request
CmekSettings response = configServiceV2Client.UpdateCmekSettings(request);

UpdateCmekSettingsAsync(UpdateCmekSettingsRequest, CallSettings)

public virtual Task<CmekSettings> UpdateCmekSettingsAsync(UpdateCmekSettingsRequest request, CallSettings callSettings = null)

Updates the Log Router CMEK settings for the given resource.

Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.

[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request UpdateCmekSettingsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskCmekSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
UpdateCmekSettingsRequest request = new UpdateCmekSettingsRequest
{
    Name = "",
    CmekSettings = new CmekSettings(),
    UpdateMask = new FieldMask(),
};
// Make the request
CmekSettings response = await configServiceV2Client.UpdateCmekSettingsAsync(request);

UpdateCmekSettingsAsync(UpdateCmekSettingsRequest, CancellationToken)

public virtual Task<CmekSettings> UpdateCmekSettingsAsync(UpdateCmekSettingsRequest request, CancellationToken cancellationToken)

Updates the Log Router CMEK settings for the given resource.

Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.

[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request UpdateCmekSettingsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskCmekSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
UpdateCmekSettingsRequest request = new UpdateCmekSettingsRequest
{
    Name = "",
    CmekSettings = new CmekSettings(),
    UpdateMask = new FieldMask(),
};
// Make the request
CmekSettings response = await configServiceV2Client.UpdateCmekSettingsAsync(request);

UpdateExclusion(LogExclusionName, LogExclusion, FieldMask, CallSettings)

public virtual LogExclusion UpdateExclusion(LogExclusionName name, LogExclusion exclusion, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
Name Description
name LogExclusionName

Required. The resource name of the exclusion to update:

"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]"

For example:

"projects/my-project/exclusions/my-exclusion"

exclusion LogExclusion

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

updateMask FieldMask

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogExclusion

The RPC response.

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

UpdateExclusion(UpdateExclusionRequest, CallSettings)

public virtual LogExclusion UpdateExclusion(UpdateExclusionRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request UpdateExclusionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogExclusion

The RPC response.

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

UpdateExclusion(string, LogExclusion, FieldMask, CallSettings)

public virtual LogExclusion UpdateExclusion(string name, LogExclusion exclusion, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
Name Description
name string

Required. The resource name of the exclusion to update:

"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]"

For example:

"projects/my-project/exclusions/my-exclusion"

exclusion LogExclusion

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

updateMask FieldMask

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogExclusion

The RPC response.

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

UpdateExclusionAsync(LogExclusionName, LogExclusion, FieldMask, CallSettings)

public virtual Task<LogExclusion> UpdateExclusionAsync(LogExclusionName name, LogExclusion exclusion, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
Name Description
name LogExclusionName

Required. The resource name of the exclusion to update:

"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]"

For example:

"projects/my-project/exclusions/my-exclusion"

exclusion LogExclusion

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

updateMask FieldMask

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

A Task containing the RPC response.

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

UpdateExclusionAsync(LogExclusionName, LogExclusion, FieldMask, CancellationToken)

public virtual Task<LogExclusion> UpdateExclusionAsync(LogExclusionName name, LogExclusion exclusion, FieldMask updateMask, CancellationToken cancellationToken)

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

Parameters
Name Description
name LogExclusionName

Required. The resource name of the exclusion to update:

"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]"

For example:

"projects/my-project/exclusions/my-exclusion"

exclusion LogExclusion

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

updateMask FieldMask

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

A Task containing the RPC response.

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

UpdateExclusionAsync(UpdateExclusionRequest, CallSettings)

public virtual Task<LogExclusion> UpdateExclusionAsync(UpdateExclusionRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request UpdateExclusionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

A Task containing the RPC response.

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

UpdateExclusionAsync(UpdateExclusionRequest, CancellationToken)

public virtual Task<LogExclusion> UpdateExclusionAsync(UpdateExclusionRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request UpdateExclusionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

A Task containing the RPC response.

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

UpdateExclusionAsync(string, LogExclusion, FieldMask, CallSettings)

public virtual Task<LogExclusion> UpdateExclusionAsync(string name, LogExclusion exclusion, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
Name Description
name string

Required. The resource name of the exclusion to update:

"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]"

For example:

"projects/my-project/exclusions/my-exclusion"

exclusion LogExclusion

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

updateMask FieldMask

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogExclusion

A Task containing the RPC response.

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

UpdateExclusionAsync(string, LogExclusion, FieldMask, CancellationToken)

public virtual Task<LogExclusion> UpdateExclusionAsync(string name, LogExclusion exclusion, FieldMask updateMask, CancellationToken cancellationToken)

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

Parameters
Name Description
name string

Required. The resource name of the exclusion to update:

"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]"

For example:

"projects/my-project/exclusions/my-exclusion"

exclusion LogExclusion

Required. New values for the existing exclusion. Only the fields specified in update_mask are relevant.

updateMask FieldMask

Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.

For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogExclusion

A Task containing the RPC response.

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

UpdateSettings(Settings, FieldMask, CallSettings)

public virtual Settings UpdateSettings(Settings settings, FieldMask updateMask, CallSettings callSettings = null)

Updates the Log Router settings for the given resource.

Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled. 4) location_id is not supported by Logging. 5) location_id violate OrgPolicy.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
settings Settings

Required. The settings to update.

See Enabling CMEK for Log Router for more information.

updateMask FieldMask

Optional. Field mask identifying which fields from settings should be updated. A field will be overwritten if and only if it is in the update mask. Output only fields cannot be updated.

See [FieldMask][google.protobuf.FieldMask] for more information.

For example: "updateMask=kmsKeyName"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Settings

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Settings response = configServiceV2Client.UpdateSettings(settings, updateMask);

UpdateSettings(UpdateSettingsRequest, CallSettings)

public virtual Settings UpdateSettings(UpdateSettingsRequest request, CallSettings callSettings = null)

Updates the Log Router settings for the given resource.

Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled. 4) location_id is not supported by Logging. 5) location_id violate OrgPolicy.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request UpdateSettingsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Settings

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
    Name = "",
    Settings = new Settings(),
    UpdateMask = new FieldMask(),
};
// Make the request
Settings response = configServiceV2Client.UpdateSettings(request);

UpdateSettingsAsync(Settings, FieldMask, CallSettings)

public virtual Task<Settings> UpdateSettingsAsync(Settings settings, FieldMask updateMask, CallSettings callSettings = null)

Updates the Log Router settings for the given resource.

Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled. 4) location_id is not supported by Logging. 5) location_id violate OrgPolicy.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
settings Settings

Required. The settings to update.

See Enabling CMEK for Log Router for more information.

updateMask FieldMask

Optional. Field mask identifying which fields from settings should be updated. A field will be overwritten if and only if it is in the update mask. Output only fields cannot be updated.

See [FieldMask][google.protobuf.FieldMask] for more information.

For example: "updateMask=kmsKeyName"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Settings response = await configServiceV2Client.UpdateSettingsAsync(settings, updateMask);

UpdateSettingsAsync(Settings, FieldMask, CancellationToken)

public virtual Task<Settings> UpdateSettingsAsync(Settings settings, FieldMask updateMask, CancellationToken cancellationToken)

Updates the Log Router settings for the given resource.

Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled. 4) location_id is not supported by Logging. 5) location_id violate OrgPolicy.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
settings Settings

Required. The settings to update.

See Enabling CMEK for Log Router for more information.

updateMask FieldMask

Optional. Field mask identifying which fields from settings should be updated. A field will be overwritten if and only if it is in the update mask. Output only fields cannot be updated.

See [FieldMask][google.protobuf.FieldMask] for more information.

For example: "updateMask=kmsKeyName"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Settings response = await configServiceV2Client.UpdateSettingsAsync(settings, updateMask);

UpdateSettingsAsync(UpdateSettingsRequest, CallSettings)

public virtual Task<Settings> UpdateSettingsAsync(UpdateSettingsRequest request, CallSettings callSettings = null)

Updates the Log Router settings for the given resource.

Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled. 4) location_id is not supported by Logging. 5) location_id violate OrgPolicy.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request UpdateSettingsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
    Name = "",
    Settings = new Settings(),
    UpdateMask = new FieldMask(),
};
// Make the request
Settings response = await configServiceV2Client.UpdateSettingsAsync(request);

UpdateSettingsAsync(UpdateSettingsRequest, CancellationToken)

public virtual Task<Settings> UpdateSettingsAsync(UpdateSettingsRequest request, CancellationToken cancellationToken)

Updates the Log Router settings for the given resource.

Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization.

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) kms_key_name is invalid, or 2) the associated service account does not have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key is disabled. 4) location_id is not supported by Logging. 5) location_id violate OrgPolicy.

See Enabling CMEK for Log Router for more information.

Parameters
Name Description
request UpdateSettingsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
    Name = "",
    Settings = new Settings(),
    UpdateMask = new FieldMask(),
};
// Make the request
Settings response = await configServiceV2Client.UpdateSettingsAsync(request);

UpdateSink(LogSinkName, LogSink, CallSettings)

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

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName LogSinkName

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogSink

The RPC response.

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

UpdateSink(LogSinkName, LogSink, FieldMask, CallSettings)

public virtual LogSink UpdateSink(LogSinkName sinkName, LogSink sink, FieldMask updateMask, CallSettings callSettings = null)

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName LogSinkName

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

updateMask FieldMask

Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:

destination,filter,includeChildren

At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.

For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=filter

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogSink

The RPC response.

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

UpdateSink(UpdateSinkRequest, CallSettings)

public virtual LogSink UpdateSink(UpdateSinkRequest request, CallSettings callSettings = null)

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
request UpdateSinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogSink

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
UpdateSinkRequest request = new UpdateSinkRequest
{
    SinkNameAsLogSinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]"),
    Sink = new LogSink(),
    UniqueWriterIdentity = false,
    UpdateMask = new FieldMask(),
};
// Make the request
LogSink response = configServiceV2Client.UpdateSink(request);

UpdateSink(string, LogSink, CallSettings)

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

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName string

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogSink

The RPC response.

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

UpdateSink(string, LogSink, FieldMask, CallSettings)

public virtual LogSink UpdateSink(string sinkName, LogSink sink, FieldMask updateMask, CallSettings callSettings = null)

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName string

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

updateMask FieldMask

Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:

destination,filter,includeChildren

At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.

For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=filter

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogSink

The RPC response.

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

UpdateSinkAsync(LogSinkName, LogSink, CallSettings)

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

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName LogSinkName

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

A Task containing the RPC response.

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

UpdateSinkAsync(LogSinkName, LogSink, FieldMask, CallSettings)

public virtual Task<LogSink> UpdateSinkAsync(LogSinkName sinkName, LogSink sink, FieldMask updateMask, CallSettings callSettings = null)

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName LogSinkName

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

updateMask FieldMask

Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:

destination,filter,includeChildren

At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.

For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=filter

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

A Task containing the RPC response.

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

UpdateSinkAsync(LogSinkName, LogSink, FieldMask, CancellationToken)

public virtual Task<LogSink> UpdateSinkAsync(LogSinkName sinkName, LogSink sink, FieldMask updateMask, CancellationToken cancellationToken)

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName LogSinkName

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

updateMask FieldMask

Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:

destination,filter,includeChildren

At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.

For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=filter

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

A Task containing the RPC response.

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

UpdateSinkAsync(LogSinkName, LogSink, CancellationToken)

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

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName LogSinkName

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

A Task containing the RPC response.

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

UpdateSinkAsync(UpdateSinkRequest, CallSettings)

public virtual Task<LogSink> UpdateSinkAsync(UpdateSinkRequest request, CallSettings callSettings = null)

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
request UpdateSinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
UpdateSinkRequest request = new UpdateSinkRequest
{
    SinkNameAsLogSinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]"),
    Sink = new LogSink(),
    UniqueWriterIdentity = false,
    UpdateMask = new FieldMask(),
};
// Make the request
LogSink response = await configServiceV2Client.UpdateSinkAsync(request);

UpdateSinkAsync(UpdateSinkRequest, CancellationToken)

public virtual Task<LogSink> UpdateSinkAsync(UpdateSinkRequest request, CancellationToken cancellationToken)

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
request UpdateSinkRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
UpdateSinkRequest request = new UpdateSinkRequest
{
    SinkNameAsLogSinkName = LogSinkName.FromProjectSink("[PROJECT]", "[SINK]"),
    Sink = new LogSink(),
    UniqueWriterIdentity = false,
    UpdateMask = new FieldMask(),
};
// Make the request
LogSink response = await configServiceV2Client.UpdateSinkAsync(request);

UpdateSinkAsync(string, LogSink, CallSettings)

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

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName string

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

A Task containing the RPC response.

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

UpdateSinkAsync(string, LogSink, FieldMask, CallSettings)

public virtual Task<LogSink> UpdateSinkAsync(string sinkName, LogSink sink, FieldMask updateMask, CallSettings callSettings = null)

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName string

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

updateMask FieldMask

Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:

destination,filter,includeChildren

At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.

For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=filter

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogSink

A Task containing the RPC response.

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

UpdateSinkAsync(string, LogSink, FieldMask, CancellationToken)

public virtual Task<LogSink> UpdateSinkAsync(string sinkName, LogSink sink, FieldMask updateMask, CancellationToken cancellationToken)

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName string

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

updateMask FieldMask

Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:

destination,filter,includeChildren

At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.

For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=filter

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

A Task containing the RPC response.

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

UpdateSinkAsync(string, LogSink, CancellationToken)

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

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.

The updated sink might also have a new writer_identity; see the unique_writer_identity field.

Parameters
Name Description
sinkName string

Required. The full resource name of the sink to update, 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]"

For example:

"projects/my-project/sinks/my-sink"

sink LogSink

Required. The updated sink, whose name is the same identifier that appears as part of sink_name.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogSink

A Task containing the RPC response.

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

UpdateView(UpdateViewRequest, CallSettings)

public virtual LogView UpdateView(UpdateViewRequest request, CallSettings callSettings = null)

Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: filter. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.

Parameters
Name Description
request UpdateViewRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LogView

The RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
// Initialize request argument(s)
UpdateViewRequest request = new UpdateViewRequest
{
    Name = "",
    View = new LogView(),
    UpdateMask = new FieldMask(),
};
// Make the request
LogView response = configServiceV2Client.UpdateView(request);

UpdateViewAsync(UpdateViewRequest, CallSettings)

public virtual Task<LogView> UpdateViewAsync(UpdateViewRequest request, CallSettings callSettings = null)

Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: filter. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.

Parameters
Name Description
request UpdateViewRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLogView

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
UpdateViewRequest request = new UpdateViewRequest
{
    Name = "",
    View = new LogView(),
    UpdateMask = new FieldMask(),
};
// Make the request
LogView response = await configServiceV2Client.UpdateViewAsync(request);

UpdateViewAsync(UpdateViewRequest, CancellationToken)

public virtual Task<LogView> UpdateViewAsync(UpdateViewRequest request, CancellationToken cancellationToken)

Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: filter. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.

Parameters
Name Description
request UpdateViewRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLogView

A Task containing the RPC response.

Example
// Create client
ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync();
// Initialize request argument(s)
UpdateViewRequest request = new UpdateViewRequest
{
    Name = "",
    View = new LogView(),
    UpdateMask = new FieldMask(),
};
// Make the request
LogView response = await configServiceV2Client.UpdateViewAsync(request);