Google Cloud Logging v2 API - Class ConfigServiceV2Client (4.1.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
TypeDescription
OperationsClient

CreateBucketLongRunningOperationsClient

public virtual OperationsClient CreateBucketLongRunningOperationsClient { get; }

The long-running operations client for CreateBucketLongRunning.

Property Value
TypeDescription
OperationsClient

CreateLinkOperationsClient

public virtual OperationsClient CreateLinkOperationsClient { get; }

The long-running operations client for CreateLink.

Property Value
TypeDescription
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
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ConfigServiceV2 scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

DeleteLinkOperationsClient

public virtual OperationsClient DeleteLinkOperationsClient { get; }

The long-running operations client for DeleteLink.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual ConfigServiceV2.ConfigServiceV2Client GrpcClient { get; }

The underlying gRPC ConfigServiceV2 client

Property Value
TypeDescription
ConfigServiceV2ConfigServiceV2Client

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

UpdateBucketLongRunningOperationsClient

public virtual OperationsClient UpdateBucketLongRunningOperationsClient { get; }

The long-running operations client for UpdateBucketLongRunning.

Property Value
TypeDescription
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
NameDescription
requestCopyLogEntriesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCopyLogEntriesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCopyLogEntriesRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
TypeDescription
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
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
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
NameDescription
requestCreateBucketRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogBucket

The RPC response.

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

CreateBucketAsync(CreateBucketRequest, CallSettings)

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

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

Parameters
NameDescription
requestCreateBucketRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateBucketRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreateBucketRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateBucketRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateBucketRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentBillingAccountName

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"

exclusionLogExclusion

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

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

CreateExclusion(FolderName, LogExclusion, CallSettings)

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

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

Parameters
NameDescription
parentFolderName

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"

exclusionLogExclusion

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

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

CreateExclusion(OrganizationName, LogExclusion, CallSettings)

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

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

Parameters
NameDescription
parentOrganizationName

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"

exclusionLogExclusion

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

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

CreateExclusion(ProjectName, LogExclusion, CallSettings)

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

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

Parameters
NameDescription
parentProjectName

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"

exclusionLogExclusion

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

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

CreateExclusion(CreateExclusionRequest, CallSettings)

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

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

Parameters
NameDescription
requestCreateExclusionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

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

CreateExclusion(string, LogExclusion, CallSettings)

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

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

Parameters
NameDescription
parentstring

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"

exclusionLogExclusion

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LogExclusion

The RPC response.

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

CreateExclusionAsync(BillingAccountName, LogExclusion, CallSettings)

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

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

Parameters
NameDescription
parentBillingAccountName

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"

exclusionLogExclusion

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentBillingAccountName

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"

exclusionLogExclusion

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentFolderName

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"

exclusionLogExclusion

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentFolderName

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"

exclusionLogExclusion

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentOrganizationName

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"

exclusionLogExclusion

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentOrganizationName

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"

exclusionLogExclusion

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentProjectName

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"

exclusionLogExclusion

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentProjectName

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"

exclusionLogExclusion

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreateExclusionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateExclusionRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

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"

exclusionLogExclusion

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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"

exclusionLogExclusion

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreateLinkRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLogBucketName

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

linkLink

Required. The new link.

linkIdstring

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

linkLink

Required. The new link.

linkIdstring

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateLinkRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateLinkRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentLogBucketName

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

linkLink

Required. The new link.

linkIdstring

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLogBucketName

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

linkLink

Required. The new link.

linkIdstring

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

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

linkLink

Required. The new link.

linkIdstring

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

linkLink

Required. The new link.

linkIdstring

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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