Compute Engine v1 API - Class RegionBackendBucketsClient (3.27.0)

public abstract class RegionBackendBucketsClient

Reference documentation and code samples for the Compute Engine v1 API class RegionBackendBucketsClient.

RegionBackendBuckets client wrapper, for convenient use.

Inheritance

object > RegionBackendBucketsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The RegionBackendBuckets API.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default RegionBackendBuckets scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

DeleteOperationsClient

public virtual OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual RegionBackendBuckets.RegionBackendBucketsClient GrpcClient { get; }

The underlying gRPC RegionBackendBuckets client

Property Value
Type Description
RegionBackendBucketsRegionBackendBucketsClient

InsertOperationsClient

public virtual OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient

PatchOperationsClient

public virtual OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
Type Description
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

Methods

Create()

public static RegionBackendBucketsClient Create()

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

Returns
Type Description
RegionBackendBucketsClient

The created RegionBackendBucketsClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskRegionBackendBucketsClient

The task representing the created RegionBackendBucketsClient.

Delete(DeleteRegionBackendBucketRequest, CallSettings)

public virtual Operation<Operation, Operation> Delete(DeleteRegionBackendBucketRequest request, CallSettings callSettings = null)

Deletes the specified regional BackendBucket resource.

Parameters
Name Description
request DeleteRegionBackendBucketRequest

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
OperationOperationOperation

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
DeleteRegionBackendBucketRequest request = new DeleteRegionBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Region = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Delete(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

Delete(string, string, string, CallSettings)

public virtual Operation<Operation, Operation> Delete(string project, string region, string backendBucket, CallSettings callSettings = null)

Deletes the specified regional BackendBucket resource.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

backendBucket string

Name of the BackendBucket resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Delete(project, region, backendBucket);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteAsync(DeleteRegionBackendBucketRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionBackendBucketRequest request, CallSettings callSettings = null)

Deletes the specified regional BackendBucket resource.

Parameters
Name Description
request DeleteRegionBackendBucketRequest

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
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionBackendBucketRequest request = new DeleteRegionBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Region = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.DeleteAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteAsync(DeleteRegionBackendBucketRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionBackendBucketRequest request, CancellationToken cancellationToken)

Deletes the specified regional BackendBucket resource.

Parameters
Name Description
request DeleteRegionBackendBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionBackendBucketRequest request = new DeleteRegionBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Region = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.DeleteAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteAsync(string, string, string, CallSettings)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string region, string backendBucket, CallSettings callSettings = null)

Deletes the specified regional BackendBucket resource.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

backendBucket string

Name of the BackendBucket resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.DeleteAsync(project, region, backendBucket);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteAsync(string, string, string, CancellationToken)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string region, string backendBucket, CancellationToken cancellationToken)

Deletes the specified regional BackendBucket resource.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

backendBucket string

Name of the BackendBucket resource to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.DeleteAsync(project, region, backendBucket);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

Get(GetRegionBackendBucketRequest, CallSettings)

public virtual BackendBucket Get(GetRegionBackendBucketRequest request, CallSettings callSettings = null)

Returns the specified regional BackendBucket resource.

Parameters
Name Description
request GetRegionBackendBucketRequest

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
BackendBucket

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
GetRegionBackendBucketRequest request = new GetRegionBackendBucketRequest
{
    BackendBucket = "",
    Region = "",
    Project = "",
};
// Make the request
BackendBucket response = regionBackendBucketsClient.Get(request);

Get(string, string, string, CallSettings)

public virtual BackendBucket Get(string project, string region, string backendBucket, CallSettings callSettings = null)

Returns the specified regional BackendBucket resource.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

backendBucket string

Name of the BackendBucket resource to return.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BackendBucket

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
BackendBucket response = regionBackendBucketsClient.Get(project, region, backendBucket);

GetAsync(GetRegionBackendBucketRequest, CallSettings)

public virtual Task<BackendBucket> GetAsync(GetRegionBackendBucketRequest request, CallSettings callSettings = null)

Returns the specified regional BackendBucket resource.

Parameters
Name Description
request GetRegionBackendBucketRequest

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
TaskBackendBucket

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetRegionBackendBucketRequest request = new GetRegionBackendBucketRequest
{
    BackendBucket = "",
    Region = "",
    Project = "",
};
// Make the request
BackendBucket response = await regionBackendBucketsClient.GetAsync(request);

GetAsync(GetRegionBackendBucketRequest, CancellationToken)

public virtual Task<BackendBucket> GetAsync(GetRegionBackendBucketRequest request, CancellationToken cancellationToken)

Returns the specified regional BackendBucket resource.

Parameters
Name Description
request GetRegionBackendBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackendBucket

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetRegionBackendBucketRequest request = new GetRegionBackendBucketRequest
{
    BackendBucket = "",
    Region = "",
    Project = "",
};
// Make the request
BackendBucket response = await regionBackendBucketsClient.GetAsync(request);

GetAsync(string, string, string, CallSettings)

public virtual Task<BackendBucket> GetAsync(string project, string region, string backendBucket, CallSettings callSettings = null)

Returns the specified regional BackendBucket resource.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

backendBucket string

Name of the BackendBucket resource to return.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackendBucket

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
BackendBucket response = await regionBackendBucketsClient.GetAsync(project, region, backendBucket);

GetAsync(string, string, string, CancellationToken)

public virtual Task<BackendBucket> GetAsync(string project, string region, string backendBucket, CancellationToken cancellationToken)

Returns the specified regional BackendBucket resource.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

backendBucket string

Name of the BackendBucket resource to return.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackendBucket

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
BackendBucket response = await regionBackendBucketsClient.GetAsync(project, region, backendBucket);

GetIamPolicy(GetIamPolicyRegionBackendBucketRequest, CallSettings)

public virtual Policy GetIamPolicy(GetIamPolicyRegionBackendBucketRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
request GetIamPolicyRegionBackendBucketRequest

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
Policy

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
GetIamPolicyRegionBackendBucketRequest request = new GetIamPolicyRegionBackendBucketRequest
{
    Region = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = regionBackendBucketsClient.GetIamPolicy(request);

GetIamPolicy(string, string, string, CallSettings)

public virtual Policy GetIamPolicy(string project, string region, string resource, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
// Make the request
Policy response = regionBackendBucketsClient.GetIamPolicy(project, region, resource);

GetIamPolicyAsync(GetIamPolicyRegionBackendBucketRequest, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRegionBackendBucketRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
request GetIamPolicyRegionBackendBucketRequest

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
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRegionBackendBucketRequest request = new GetIamPolicyRegionBackendBucketRequest
{
    Region = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await regionBackendBucketsClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(GetIamPolicyRegionBackendBucketRequest, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRegionBackendBucketRequest request, CancellationToken cancellationToken)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
request GetIamPolicyRegionBackendBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRegionBackendBucketRequest request = new GetIamPolicyRegionBackendBucketRequest
{
    Region = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await regionBackendBucketsClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(string, string, string, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(string project, string region, string resource, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
// Make the request
Policy response = await regionBackendBucketsClient.GetIamPolicyAsync(project, region, resource);

GetIamPolicyAsync(string, string, string, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(string project, string region, string resource, CancellationToken cancellationToken)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
// Make the request
Policy response = await regionBackendBucketsClient.GetIamPolicyAsync(project, region, resource);

Insert(InsertRegionBackendBucketRequest, CallSettings)

public virtual Operation<Operation, Operation> Insert(InsertRegionBackendBucketRequest request, CallSettings callSettings = null)

Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.

Parameters
Name Description
request InsertRegionBackendBucketRequest

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
OperationOperationOperation

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
InsertRegionBackendBucketRequest request = new InsertRegionBackendBucketRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Insert(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

Insert(string, string, BackendBucket, CallSettings)

public virtual Operation<Operation, Operation> Insert(string project, string region, BackendBucket backendBucketResource, CallSettings callSettings = null)

Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region of this request.

backendBucketResource BackendBucket

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Insert(project, region, backendBucketResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

InsertAsync(InsertRegionBackendBucketRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionBackendBucketRequest request, CallSettings callSettings = null)

Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.

Parameters
Name Description
request InsertRegionBackendBucketRequest

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
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
InsertRegionBackendBucketRequest request = new InsertRegionBackendBucketRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.InsertAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

InsertAsync(InsertRegionBackendBucketRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionBackendBucketRequest request, CancellationToken cancellationToken)

Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.

Parameters
Name Description
request InsertRegionBackendBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
InsertRegionBackendBucketRequest request = new InsertRegionBackendBucketRequest
{
    RequestId = "",
    Region = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.InsertAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

InsertAsync(string, string, BackendBucket, CallSettings)

public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, BackendBucket backendBucketResource, CallSettings callSettings = null)

Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region of this request.

backendBucketResource BackendBucket

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.InsertAsync(project, region, backendBucketResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

InsertAsync(string, string, BackendBucket, CancellationToken)

public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, BackendBucket backendBucketResource, CancellationToken cancellationToken)

Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region of this request.

backendBucketResource BackendBucket

The body resource for this request

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.InsertAsync(project, region, backendBucketResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

List(ListRegionBackendBucketsRequest, CallSettings)

public virtual PagedEnumerable<BackendBucketList, BackendBucket> List(ListRegionBackendBucketsRequest request, CallSettings callSettings = null)

Retrieves the list of BackendBucket resources available to the specified project in the given region.

Parameters
Name Description
request ListRegionBackendBucketsRequest

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
PagedEnumerableBackendBucketListBackendBucket

A pageable sequence of BackendBucket resources.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
ListRegionBackendBucketsRequest request = new ListRegionBackendBucketsRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<BackendBucketList, BackendBucket> response = regionBackendBucketsClient.List(request);

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

List(string, string, string, int?, CallSettings)

public virtual PagedEnumerable<BackendBucketList, BackendBucket> List(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of BackendBucket resources available to the specified project in the given region.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region of this request.

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
PagedEnumerableBackendBucketListBackendBucket

A pageable sequence of BackendBucket resources.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedEnumerable<BackendBucketList, BackendBucket> response = regionBackendBucketsClient.List(project, region);

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

ListAsync(ListRegionBackendBucketsRequest, CallSettings)

public virtual PagedAsyncEnumerable<BackendBucketList, BackendBucket> ListAsync(ListRegionBackendBucketsRequest request, CallSettings callSettings = null)

Retrieves the list of BackendBucket resources available to the specified project in the given region.

Parameters
Name Description
request ListRegionBackendBucketsRequest

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
PagedAsyncEnumerableBackendBucketListBackendBucket

A pageable asynchronous sequence of BackendBucket resources.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
ListRegionBackendBucketsRequest request = new ListRegionBackendBucketsRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<BackendBucketList, BackendBucket> response = regionBackendBucketsClient.ListAsync(request);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (BackendBucketList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendBucket 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<BackendBucket> 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 (BackendBucket 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;

ListAsync(string, string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<BackendBucketList, BackendBucket> ListAsync(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of BackendBucket resources available to the specified project in the given region.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region of this request.

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
PagedAsyncEnumerableBackendBucketListBackendBucket

A pageable asynchronous sequence of BackendBucket resources.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedAsyncEnumerable<BackendBucketList, BackendBucket> response = regionBackendBucketsClient.ListAsync(project, region);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (BackendBucketList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendBucket 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<BackendBucket> 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 (BackendBucket 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;

ListUsable(ListUsableRegionBackendBucketsRequest, CallSettings)

public virtual PagedEnumerable<BackendBucketListUsable, BackendBucket> ListUsable(ListUsableRegionBackendBucketsRequest request, CallSettings callSettings = null)

Retrieves a list of all usable backend buckets in the specified project in the given region.

Parameters
Name Description
request ListUsableRegionBackendBucketsRequest

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
PagedEnumerableBackendBucketListUsableBackendBucket

A pageable sequence of BackendBucket resources.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
ListUsableRegionBackendBucketsRequest request = new ListUsableRegionBackendBucketsRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<BackendBucketListUsable, BackendBucket> response = regionBackendBucketsClient.ListUsable(request);

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

ListUsable(string, string, string, int?, CallSettings)

public virtual PagedEnumerable<BackendBucketListUsable, BackendBucket> ListUsable(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves a list of all usable backend buckets in the specified project in the given region.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request. It must be a string that meets the requirements in RFC1035.

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
PagedEnumerableBackendBucketListUsableBackendBucket

A pageable sequence of BackendBucket resources.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedEnumerable<BackendBucketListUsable, BackendBucket> response = regionBackendBucketsClient.ListUsable(project, region);

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

ListUsableAsync(ListUsableRegionBackendBucketsRequest, CallSettings)

public virtual PagedAsyncEnumerable<BackendBucketListUsable, BackendBucket> ListUsableAsync(ListUsableRegionBackendBucketsRequest request, CallSettings callSettings = null)

Retrieves a list of all usable backend buckets in the specified project in the given region.

Parameters
Name Description
request ListUsableRegionBackendBucketsRequest

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
PagedAsyncEnumerableBackendBucketListUsableBackendBucket

A pageable asynchronous sequence of BackendBucket resources.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
ListUsableRegionBackendBucketsRequest request = new ListUsableRegionBackendBucketsRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<BackendBucketListUsable, BackendBucket> response = regionBackendBucketsClient.ListUsableAsync(request);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (BackendBucketListUsable page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendBucket 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<BackendBucket> 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 (BackendBucket 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;

ListUsableAsync(string, string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<BackendBucketListUsable, BackendBucket> ListUsableAsync(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves a list of all usable backend buckets in the specified project in the given region.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request. It must be a string that meets the requirements in RFC1035.

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
PagedAsyncEnumerableBackendBucketListUsableBackendBucket

A pageable asynchronous sequence of BackendBucket resources.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedAsyncEnumerable<BackendBucketListUsable, BackendBucket> response = regionBackendBucketsClient.ListUsableAsync(project, region);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (BackendBucketListUsable page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendBucket 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<BackendBucket> 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 (BackendBucket 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;

Patch(PatchRegionBackendBucketRequest, CallSettings)

public virtual Operation<Operation, Operation> Patch(PatchRegionBackendBucketRequest request, CallSettings callSettings = null)

Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.

Parameters
Name Description
request PatchRegionBackendBucketRequest

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
OperationOperationOperation

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
PatchRegionBackendBucketRequest request = new PatchRegionBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Region = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Patch(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

Patch(string, string, string, BackendBucket, CallSettings)

public virtual Operation<Operation, Operation> Patch(string project, string region, string backendBucket, BackendBucket backendBucketResource, CallSettings callSettings = null)

Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

backendBucket string

Name of the BackendBucket resource to patch.

backendBucketResource BackendBucket

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Patch(project, region, backendBucket, backendBucketResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

PatchAsync(PatchRegionBackendBucketRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchRegionBackendBucketRequest request, CallSettings callSettings = null)

Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.

Parameters
Name Description
request PatchRegionBackendBucketRequest

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
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
PatchRegionBackendBucketRequest request = new PatchRegionBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Region = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.PatchAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

PatchAsync(PatchRegionBackendBucketRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchRegionBackendBucketRequest request, CancellationToken cancellationToken)

Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.

Parameters
Name Description
request PatchRegionBackendBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
PatchRegionBackendBucketRequest request = new PatchRegionBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Region = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.PatchAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

PatchAsync(string, string, string, BackendBucket, CallSettings)

public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string backendBucket, BackendBucket backendBucketResource, CallSettings callSettings = null)

Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

backendBucket string

Name of the BackendBucket resource to patch.

backendBucketResource BackendBucket

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.PatchAsync(project, region, backendBucket, backendBucketResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

PatchAsync(string, string, string, BackendBucket, CancellationToken)

public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string backendBucket, BackendBucket backendBucketResource, CancellationToken cancellationToken)

Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region scoping this request.

backendBucket string

Name of the BackendBucket resource to patch.

backendBucketResource BackendBucket

The body resource for this request

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.PatchAsync(project, region, backendBucket, backendBucketResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation 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
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

PollOnceDelete(string, CallSettings)

public virtual Operation<Operation, Operation> PollOnceDelete(string operationName, CallSettings callSettings = null)

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

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
OperationOperationOperation

The result of polling the operation.

PollOnceDeleteAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOnceDeleteAsync(string operationName, CallSettings callSettings = null)

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

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
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceInsert(string, CallSettings)

public virtual Operation<Operation, Operation> PollOnceInsert(string operationName, CallSettings callSettings = null)

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

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
OperationOperationOperation

The result of polling the operation.

PollOnceInsertAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOnceInsertAsync(string operationName, CallSettings callSettings = null)

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

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
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOncePatch(string, CallSettings)

public virtual Operation<Operation, Operation> PollOncePatch(string operationName, CallSettings callSettings = null)

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

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
OperationOperationOperation

The result of polling the operation.

PollOncePatchAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOncePatchAsync(string operationName, CallSettings callSettings = null)

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

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
TaskOperationOperationOperation

A task representing the result of polling the operation.

SetIamPolicy(SetIamPolicyRegionBackendBucketRequest, CallSettings)

public virtual Policy SetIamPolicy(SetIamPolicyRegionBackendBucketRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
request SetIamPolicyRegionBackendBucketRequest

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
Policy

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
SetIamPolicyRegionBackendBucketRequest request = new SetIamPolicyRegionBackendBucketRequest
{
    Region = "",
    Resource = "",
    Project = "",
    RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = regionBackendBucketsClient.SetIamPolicy(request);

SetIamPolicy(string, string, string, RegionSetPolicyRequest, CallSettings)

public virtual Policy SetIamPolicy(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

regionSetPolicyRequestResource RegionSetPolicyRequest

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = regionBackendBucketsClient.SetIamPolicy(project, region, resource, regionSetPolicyRequestResource);

SetIamPolicyAsync(SetIamPolicyRegionBackendBucketRequest, CallSettings)

public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRegionBackendBucketRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
request SetIamPolicyRegionBackendBucketRequest

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
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRegionBackendBucketRequest request = new SetIamPolicyRegionBackendBucketRequest
{
    Region = "",
    Resource = "",
    Project = "",
    RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = await regionBackendBucketsClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(SetIamPolicyRegionBackendBucketRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRegionBackendBucketRequest request, CancellationToken cancellationToken)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
request SetIamPolicyRegionBackendBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRegionBackendBucketRequest request = new SetIamPolicyRegionBackendBucketRequest
{
    Region = "",
    Resource = "",
    Project = "",
    RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = await regionBackendBucketsClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CallSettings)

public virtual Task<Policy> SetIamPolicyAsync(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

regionSetPolicyRequestResource RegionSetPolicyRequest

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = await regionBackendBucketsClient.SetIamPolicyAsync(project, region, resource, regionSetPolicyRequestResource);

SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CancellationToken cancellationToken)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

regionSetPolicyRequestResource RegionSetPolicyRequest

The body resource for this request

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = await regionBackendBucketsClient.SetIamPolicyAsync(project, region, resource, regionSetPolicyRequestResource);

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.

TestIamPermissions(TestIamPermissionsRegionBackendBucketRequest, CallSettings)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsRegionBackendBucketRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionBackendBucketRequest

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
TestPermissionsResponse

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
TestIamPermissionsRegionBackendBucketRequest request = new TestIamPermissionsRegionBackendBucketRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = regionBackendBucketsClient.TestIamPermissions(request);

TestIamPermissions(string, string, string, TestPermissionsRequest, CallSettings)

public virtual TestPermissionsResponse TestIamPermissions(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

testPermissionsRequestResource TestPermissionsRequest

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestPermissionsResponse

The RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = regionBackendBucketsClient.TestIamPermissions(project, region, resource, testPermissionsRequestResource);

TestIamPermissionsAsync(TestIamPermissionsRegionBackendBucketRequest, CallSettings)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionBackendBucketRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionBackendBucketRequest

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
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionBackendBucketRequest request = new TestIamPermissionsRegionBackendBucketRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionBackendBucketsClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(TestIamPermissionsRegionBackendBucketRequest, CancellationToken)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionBackendBucketRequest request, CancellationToken cancellationToken)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionBackendBucketRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionBackendBucketRequest request = new TestIamPermissionsRegionBackendBucketRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionBackendBucketsClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CallSettings)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

testPermissionsRequestResource TestPermissionsRequest

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionBackendBucketsClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource);

TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CancellationToken)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CancellationToken cancellationToken)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

testPermissionsRequestResource TestPermissionsRequest

The body resource for this request

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionBackendBucketsClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource);