Compute Engine v1 API - Class BackendBucketsClient (3.2.0)

public abstract class BackendBucketsClient

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

BackendBuckets client wrapper, for convenient use.

Inheritance

object > BackendBucketsClient

Derived Types

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The BackendBuckets API.

Properties

AddSignedUrlKeyOperationsClient

public virtual OperationsClient AddSignedUrlKeyOperationsClient { get; }

The long-running operations client for AddSignedUrlKey.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the BackendBuckets 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 BackendBuckets 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

DeleteSignedUrlKeyOperationsClient

public virtual OperationsClient DeleteSignedUrlKeyOperationsClient { get; }

The long-running operations client for DeleteSignedUrlKey.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual BackendBuckets.BackendBucketsClient GrpcClient { get; }

The underlying gRPC BackendBuckets client

Property Value
Type Description
BackendBucketsBackendBucketsClient

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

SetEdgeSecurityPolicyOperationsClient

public virtual OperationsClient SetEdgeSecurityPolicyOperationsClient { get; }

The long-running operations client for SetEdgeSecurityPolicy.

Property Value
Type Description
OperationsClient

UpdateOperationsClient

public virtual OperationsClient UpdateOperationsClient { get; }

The long-running operations client for Update.

Property Value
Type Description
OperationsClient

Methods

AddSignedUrlKey(AddSignedUrlKeyBackendBucketRequest, CallSettings)

public virtual Operation<Operation, Operation> AddSignedUrlKey(AddSignedUrlKeyBackendBucketRequest request, CallSettings callSettings = null)

Adds a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
request AddSignedUrlKeyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
AddSignedUrlKeyBackendBucketRequest request = new AddSignedUrlKeyBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    SignedUrlKeyResource = new SignedUrlKey(),
};
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.AddSignedUrlKey(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 = backendBucketsClient.PollOnceAddSignedUrlKey(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;
}

AddSignedUrlKey(string, string, SignedUrlKey, CallSettings)

public virtual Operation<Operation, Operation> AddSignedUrlKey(string project, string backendBucket, SignedUrlKey signedUrlKeyResource, CallSettings callSettings = null)

Adds a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035.

signedUrlKeyResource SignedUrlKey

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
SignedUrlKey signedUrlKeyResource = new SignedUrlKey();
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.AddSignedUrlKey(project, backendBucket, signedUrlKeyResource);

// 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 = backendBucketsClient.PollOnceAddSignedUrlKey(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;
}

AddSignedUrlKeyAsync(AddSignedUrlKeyBackendBucketRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> AddSignedUrlKeyAsync(AddSignedUrlKeyBackendBucketRequest request, CallSettings callSettings = null)

Adds a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
request AddSignedUrlKeyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
AddSignedUrlKeyBackendBucketRequest request = new AddSignedUrlKeyBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    SignedUrlKeyResource = new SignedUrlKey(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.AddSignedUrlKeyAsync(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 backendBucketsClient.PollOnceAddSignedUrlKeyAsync(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;
}

AddSignedUrlKeyAsync(AddSignedUrlKeyBackendBucketRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> AddSignedUrlKeyAsync(AddSignedUrlKeyBackendBucketRequest request, CancellationToken cancellationToken)

Adds a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
request AddSignedUrlKeyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
AddSignedUrlKeyBackendBucketRequest request = new AddSignedUrlKeyBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    SignedUrlKeyResource = new SignedUrlKey(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.AddSignedUrlKeyAsync(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 backendBucketsClient.PollOnceAddSignedUrlKeyAsync(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;
}

AddSignedUrlKeyAsync(string, string, SignedUrlKey, CallSettings)

public virtual Task<Operation<Operation, Operation>> AddSignedUrlKeyAsync(string project, string backendBucket, SignedUrlKey signedUrlKeyResource, CallSettings callSettings = null)

Adds a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035.

signedUrlKeyResource SignedUrlKey

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
SignedUrlKey signedUrlKeyResource = new SignedUrlKey();
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.AddSignedUrlKeyAsync(project, backendBucket, signedUrlKeyResource);

// 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 backendBucketsClient.PollOnceAddSignedUrlKeyAsync(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;
}

AddSignedUrlKeyAsync(string, string, SignedUrlKey, CancellationToken)

public virtual Task<Operation<Operation, Operation>> AddSignedUrlKeyAsync(string project, string backendBucket, SignedUrlKey signedUrlKeyResource, CancellationToken cancellationToken)

Adds a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035.

signedUrlKeyResource SignedUrlKey

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
SignedUrlKey signedUrlKeyResource = new SignedUrlKey();
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.AddSignedUrlKeyAsync(project, backendBucket, signedUrlKeyResource);

// 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 backendBucketsClient.PollOnceAddSignedUrlKeyAsync(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;
}

Create()

public static BackendBucketsClient Create()

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

Returns
Type Description
BackendBucketsClient

The created BackendBucketsClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskBackendBucketsClient

The task representing the created BackendBucketsClient.

Delete(DeleteBackendBucketRequest, CallSettings)

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

Deletes the specified BackendBucket resource.

Parameters
Name Description
request DeleteBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
DeleteBackendBucketRequest request = new DeleteBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.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 = backendBucketsClient.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, CallSettings)

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

Deletes the specified BackendBucket resource.

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.Delete(project, 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 = backendBucketsClient.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(DeleteBackendBucketRequest, CallSettings)

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

Deletes the specified BackendBucket resource.

Parameters
Name Description
request DeleteBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
DeleteBackendBucketRequest request = new DeleteBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.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 backendBucketsClient.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(DeleteBackendBucketRequest, CancellationToken)

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

Deletes the specified BackendBucket resource.

Parameters
Name Description
request DeleteBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
DeleteBackendBucketRequest request = new DeleteBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.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 backendBucketsClient.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, CallSettings)

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

Deletes the specified BackendBucket resource.

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.DeleteAsync(project, 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 backendBucketsClient.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, CancellationToken)

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

Deletes the specified BackendBucket resource.

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.DeleteAsync(project, 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 backendBucketsClient.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;
}

DeleteSignedUrlKey(DeleteSignedUrlKeyBackendBucketRequest, CallSettings)

public virtual Operation<Operation, Operation> DeleteSignedUrlKey(DeleteSignedUrlKeyBackendBucketRequest request, CallSettings callSettings = null)

Deletes a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
request DeleteSignedUrlKeyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
DeleteSignedUrlKeyBackendBucketRequest request = new DeleteSignedUrlKeyBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    KeyName = "",
};
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.DeleteSignedUrlKey(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 = backendBucketsClient.PollOnceDeleteSignedUrlKey(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;
}

DeleteSignedUrlKey(string, string, string, CallSettings)

public virtual Operation<Operation, Operation> DeleteSignedUrlKey(string project, string backendBucket, string keyName, CallSettings callSettings = null)

Deletes a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035.

keyName string

The name of the Signed URL Key to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
string keyName = "";
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.DeleteSignedUrlKey(project, backendBucket, keyName);

// 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 = backendBucketsClient.PollOnceDeleteSignedUrlKey(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;
}

DeleteSignedUrlKeyAsync(DeleteSignedUrlKeyBackendBucketRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> DeleteSignedUrlKeyAsync(DeleteSignedUrlKeyBackendBucketRequest request, CallSettings callSettings = null)

Deletes a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
request DeleteSignedUrlKeyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
DeleteSignedUrlKeyBackendBucketRequest request = new DeleteSignedUrlKeyBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    KeyName = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.DeleteSignedUrlKeyAsync(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 backendBucketsClient.PollOnceDeleteSignedUrlKeyAsync(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;
}

DeleteSignedUrlKeyAsync(DeleteSignedUrlKeyBackendBucketRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> DeleteSignedUrlKeyAsync(DeleteSignedUrlKeyBackendBucketRequest request, CancellationToken cancellationToken)

Deletes a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
request DeleteSignedUrlKeyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
DeleteSignedUrlKeyBackendBucketRequest request = new DeleteSignedUrlKeyBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    KeyName = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.DeleteSignedUrlKeyAsync(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 backendBucketsClient.PollOnceDeleteSignedUrlKeyAsync(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;
}

DeleteSignedUrlKeyAsync(string, string, string, CallSettings)

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

Deletes a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035.

keyName string

The name of the Signed URL Key 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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
string keyName = "";
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.DeleteSignedUrlKeyAsync(project, backendBucket, keyName);

// 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 backendBucketsClient.PollOnceDeleteSignedUrlKeyAsync(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;
}

DeleteSignedUrlKeyAsync(string, string, string, CancellationToken)

public virtual Task<Operation<Operation, Operation>> DeleteSignedUrlKeyAsync(string project, string backendBucket, string keyName, CancellationToken cancellationToken)

Deletes a key for validating requests with signed URLs for this backend bucket.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035.

keyName string

The name of the Signed URL Key to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
string keyName = "";
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.DeleteSignedUrlKeyAsync(project, backendBucket, keyName);

// 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 backendBucketsClient.PollOnceDeleteSignedUrlKeyAsync(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(GetBackendBucketRequest, CallSettings)

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

Returns the specified BackendBucket resource.

Parameters
Name Description
request GetBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
GetBackendBucketRequest request = new GetBackendBucketRequest
{
    BackendBucket = "",
    Project = "",
};
// Make the request
BackendBucket response = backendBucketsClient.Get(request);

Get(string, string, CallSettings)

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

Returns the specified BackendBucket resource.

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
// Make the request
BackendBucket response = backendBucketsClient.Get(project, backendBucket);

GetAsync(GetBackendBucketRequest, CallSettings)

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

Returns the specified BackendBucket resource.

Parameters
Name Description
request GetBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetBackendBucketRequest request = new GetBackendBucketRequest
{
    BackendBucket = "",
    Project = "",
};
// Make the request
BackendBucket response = await backendBucketsClient.GetAsync(request);

GetAsync(GetBackendBucketRequest, CancellationToken)

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

Returns the specified BackendBucket resource.

Parameters
Name Description
request GetBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetBackendBucketRequest request = new GetBackendBucketRequest
{
    BackendBucket = "",
    Project = "",
};
// Make the request
BackendBucket response = await backendBucketsClient.GetAsync(request);

GetAsync(string, string, CallSettings)

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

Returns the specified BackendBucket resource.

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
// Make the request
BackendBucket response = await backendBucketsClient.GetAsync(project, backendBucket);

GetAsync(string, string, CancellationToken)

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

Returns the specified BackendBucket resource.

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
// Make the request
BackendBucket response = await backendBucketsClient.GetAsync(project, backendBucket);

GetIamPolicy(GetIamPolicyBackendBucketRequest, CallSettings)

public virtual Policy GetIamPolicy(GetIamPolicyBackendBucketRequest 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 GetIamPolicyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
GetIamPolicyBackendBucketRequest request = new GetIamPolicyBackendBucketRequest
{
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = backendBucketsClient.GetIamPolicy(request);

GetIamPolicy(string, string, CallSettings)

public virtual Policy GetIamPolicy(string project, 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.

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = backendBucketsClient.GetIamPolicy(project, resource);

GetIamPolicyAsync(GetIamPolicyBackendBucketRequest, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyBackendBucketRequest 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 GetIamPolicyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyBackendBucketRequest request = new GetIamPolicyBackendBucketRequest
{
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await backendBucketsClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(GetIamPolicyBackendBucketRequest, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyBackendBucketRequest 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 GetIamPolicyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyBackendBucketRequest request = new GetIamPolicyBackendBucketRequest
{
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await backendBucketsClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(string, string, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(string project, 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.

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = await backendBucketsClient.GetIamPolicyAsync(project, resource);

GetIamPolicyAsync(string, string, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(string project, 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.

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = await backendBucketsClient.GetIamPolicyAsync(project, resource);

Insert(InsertBackendBucketRequest, CallSettings)

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

Creates a BackendBucket resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
InsertBackendBucketRequest request = new InsertBackendBucketRequest
{
    RequestId = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.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 = backendBucketsClient.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, BackendBucket, CallSettings)

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

Creates a BackendBucket resource in the specified project using the data included in the request.

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.Insert(project, 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 = backendBucketsClient.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(InsertBackendBucketRequest, CallSettings)

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

Creates a BackendBucket resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
InsertBackendBucketRequest request = new InsertBackendBucketRequest
{
    RequestId = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.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 backendBucketsClient.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(InsertBackendBucketRequest, CancellationToken)

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

Creates a BackendBucket resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
InsertBackendBucketRequest request = new InsertBackendBucketRequest
{
    RequestId = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.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 backendBucketsClient.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, BackendBucket, CallSettings)

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

Creates a BackendBucket resource in the specified project using the data included in the request.

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.InsertAsync(project, 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 backendBucketsClient.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, BackendBucket, CancellationToken)

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

Creates a BackendBucket resource in the specified project using the data included in the request.

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.InsertAsync(project, 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 backendBucketsClient.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(ListBackendBucketsRequest, CallSettings)

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

Retrieves the list of BackendBucket resources available to the specified project.

Parameters
Name Description
request ListBackendBucketsRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
ListBackendBucketsRequest request = new ListBackendBucketsRequest
{
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<BackendBucketList, BackendBucket> response = backendBucketsClient.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, int?, CallSettings)

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

Retrieves the list of BackendBucket resources available to the specified project.

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<BackendBucketList, BackendBucket> response = backendBucketsClient.List(project);

// 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(ListBackendBucketsRequest, CallSettings)

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

Retrieves the list of BackendBucket resources available to the specified project.

Parameters
Name Description
request ListBackendBucketsRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
ListBackendBucketsRequest request = new ListBackendBucketsRequest
{
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<BackendBucketList, BackendBucket> response = backendBucketsClient.ListAsync(request);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((BackendBucketList page) =>
{
    // 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, int?, CallSettings)

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

Retrieves the list of BackendBucket resources available to the specified project.

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<BackendBucketList, BackendBucket> response = backendBucketsClient.ListAsync(project);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((BackendBucketList page) =>
{
    // 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(PatchBackendBucketRequest, CallSettings)

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

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

Parameters
Name Description
request PatchBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
PatchBackendBucketRequest request = new PatchBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.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 = backendBucketsClient.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, BackendBucket, CallSettings)

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

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

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.Patch(project, 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 = backendBucketsClient.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(PatchBackendBucketRequest, CallSettings)

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

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

Parameters
Name Description
request PatchBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
PatchBackendBucketRequest request = new PatchBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.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 backendBucketsClient.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(PatchBackendBucketRequest, CancellationToken)

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

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

Parameters
Name Description
request PatchBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
PatchBackendBucketRequest request = new PatchBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.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 backendBucketsClient.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, BackendBucket, CallSettings)

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

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

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.PatchAsync(project, 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 backendBucketsClient.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, BackendBucket, CancellationToken)

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

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

Parameters
Name Description
project string

Project ID for 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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.PatchAsync(project, 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 backendBucketsClient.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;
}

PollOnceAddSignedUrlKey(string, CallSettings)

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

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

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.

PollOnceAddSignedUrlKeyAsync(string, CallSettings)

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

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

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.

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.

PollOnceDeleteSignedUrlKey(string, CallSettings)

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

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

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.

PollOnceDeleteSignedUrlKeyAsync(string, CallSettings)

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

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

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.

PollOnceSetEdgeSecurityPolicy(string, CallSettings)

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

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

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.

PollOnceSetEdgeSecurityPolicyAsync(string, CallSettings)

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

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

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.

PollOnceUpdate(string, CallSettings)

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

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

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.

PollOnceUpdateAsync(string, CallSettings)

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

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

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.

SetEdgeSecurityPolicy(SetEdgeSecurityPolicyBackendBucketRequest, CallSettings)

public virtual Operation<Operation, Operation> SetEdgeSecurityPolicy(SetEdgeSecurityPolicyBackendBucketRequest request, CallSettings callSettings = null)

Sets the edge security policy for the specified backend bucket.

Parameters
Name Description
request SetEdgeSecurityPolicyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
SetEdgeSecurityPolicyBackendBucketRequest request = new SetEdgeSecurityPolicyBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    SecurityPolicyReferenceResource = new SecurityPolicyReference(),
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.SetEdgeSecurityPolicy(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 = backendBucketsClient.PollOnceSetEdgeSecurityPolicy(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;
}

SetEdgeSecurityPolicy(string, string, SecurityPolicyReference, CallSettings)

public virtual Operation<Operation, Operation> SetEdgeSecurityPolicy(string project, string backendBucket, SecurityPolicyReference securityPolicyReferenceResource, CallSettings callSettings = null)

Sets the edge security policy for the specified backend bucket.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035.

securityPolicyReferenceResource SecurityPolicyReference

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
SecurityPolicyReference securityPolicyReferenceResource = new SecurityPolicyReference();
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.SetEdgeSecurityPolicy(project, backendBucket, securityPolicyReferenceResource);

// 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 = backendBucketsClient.PollOnceSetEdgeSecurityPolicy(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;
}

SetEdgeSecurityPolicyAsync(SetEdgeSecurityPolicyBackendBucketRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> SetEdgeSecurityPolicyAsync(SetEdgeSecurityPolicyBackendBucketRequest request, CallSettings callSettings = null)

Sets the edge security policy for the specified backend bucket.

Parameters
Name Description
request SetEdgeSecurityPolicyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
SetEdgeSecurityPolicyBackendBucketRequest request = new SetEdgeSecurityPolicyBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    SecurityPolicyReferenceResource = new SecurityPolicyReference(),
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.SetEdgeSecurityPolicyAsync(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 backendBucketsClient.PollOnceSetEdgeSecurityPolicyAsync(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;
}

SetEdgeSecurityPolicyAsync(SetEdgeSecurityPolicyBackendBucketRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> SetEdgeSecurityPolicyAsync(SetEdgeSecurityPolicyBackendBucketRequest request, CancellationToken cancellationToken)

Sets the edge security policy for the specified backend bucket.

Parameters
Name Description
request SetEdgeSecurityPolicyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
SetEdgeSecurityPolicyBackendBucketRequest request = new SetEdgeSecurityPolicyBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    SecurityPolicyReferenceResource = new SecurityPolicyReference(),
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.SetEdgeSecurityPolicyAsync(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 backendBucketsClient.PollOnceSetEdgeSecurityPolicyAsync(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;
}

SetEdgeSecurityPolicyAsync(string, string, SecurityPolicyReference, CallSettings)

public virtual Task<Operation<Operation, Operation>> SetEdgeSecurityPolicyAsync(string project, string backendBucket, SecurityPolicyReference securityPolicyReferenceResource, CallSettings callSettings = null)

Sets the edge security policy for the specified backend bucket.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035.

securityPolicyReferenceResource SecurityPolicyReference

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
SecurityPolicyReference securityPolicyReferenceResource = new SecurityPolicyReference();
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.SetEdgeSecurityPolicyAsync(project, backendBucket, securityPolicyReferenceResource);

// 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 backendBucketsClient.PollOnceSetEdgeSecurityPolicyAsync(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;
}

SetEdgeSecurityPolicyAsync(string, string, SecurityPolicyReference, CancellationToken)

public virtual Task<Operation<Operation, Operation>> SetEdgeSecurityPolicyAsync(string project, string backendBucket, SecurityPolicyReference securityPolicyReferenceResource, CancellationToken cancellationToken)

Sets the edge security policy for the specified backend bucket.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035.

securityPolicyReferenceResource SecurityPolicyReference

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
SecurityPolicyReference securityPolicyReferenceResource = new SecurityPolicyReference();
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.SetEdgeSecurityPolicyAsync(project, backendBucket, securityPolicyReferenceResource);

// 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 backendBucketsClient.PollOnceSetEdgeSecurityPolicyAsync(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;
}

SetIamPolicy(SetIamPolicyBackendBucketRequest, CallSettings)

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

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

Parameters
Name Description
request SetIamPolicyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
SetIamPolicyBackendBucketRequest request = new SetIamPolicyBackendBucketRequest
{
    Resource = "",
    Project = "",
    GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = backendBucketsClient.SetIamPolicy(request);

SetIamPolicy(string, string, GlobalSetPolicyRequest, CallSettings)

public virtual Policy SetIamPolicy(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, 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.

resource string

Name or id of the resource for this request.

globalSetPolicyRequestResource GlobalSetPolicyRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = backendBucketsClient.SetIamPolicy(project, resource, globalSetPolicyRequestResource);

SetIamPolicyAsync(SetIamPolicyBackendBucketRequest, CallSettings)

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

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

Parameters
Name Description
request SetIamPolicyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyBackendBucketRequest request = new SetIamPolicyBackendBucketRequest
{
    Resource = "",
    Project = "",
    GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = await backendBucketsClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(SetIamPolicyBackendBucketRequest, CancellationToken)

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

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

Parameters
Name Description
request SetIamPolicyBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyBackendBucketRequest request = new SetIamPolicyBackendBucketRequest
{
    Resource = "",
    Project = "",
    GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = await backendBucketsClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(string, string, GlobalSetPolicyRequest, CallSettings)

public virtual Task<Policy> SetIamPolicyAsync(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, 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.

resource string

Name or id of the resource for this request.

globalSetPolicyRequestResource GlobalSetPolicyRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = await backendBucketsClient.SetIamPolicyAsync(project, resource, globalSetPolicyRequestResource);

SetIamPolicyAsync(string, string, GlobalSetPolicyRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, 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.

resource string

Name or id of the resource for this request.

globalSetPolicyRequestResource GlobalSetPolicyRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = await backendBucketsClient.SetIamPolicyAsync(project, resource, globalSetPolicyRequestResource);

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(TestIamPermissionsBackendBucketRequest, CallSettings)

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

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
TestIamPermissionsBackendBucketRequest request = new TestIamPermissionsBackendBucketRequest
{
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = backendBucketsClient.TestIamPermissions(request);

TestIamPermissions(string, string, TestPermissionsRequest, CallSettings)

public virtual TestPermissionsResponse TestIamPermissions(string project, 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.

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = backendBucketsClient.TestIamPermissions(project, resource, testPermissionsRequestResource);

TestIamPermissionsAsync(TestIamPermissionsBackendBucketRequest, CallSettings)

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

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsBackendBucketRequest request = new TestIamPermissionsBackendBucketRequest
{
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await backendBucketsClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(TestIamPermissionsBackendBucketRequest, CancellationToken)

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

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsBackendBucketRequest request = new TestIamPermissionsBackendBucketRequest
{
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await backendBucketsClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(string, string, TestPermissionsRequest, CallSettings)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, 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.

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await backendBucketsClient.TestIamPermissionsAsync(project, resource, testPermissionsRequestResource);

TestIamPermissionsAsync(string, string, TestPermissionsRequest, CancellationToken)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, 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.

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await backendBucketsClient.TestIamPermissionsAsync(project, resource, testPermissionsRequestResource);

Update(UpdateBackendBucketRequest, CallSettings)

public virtual Operation<Operation, Operation> Update(UpdateBackendBucketRequest request, CallSettings callSettings = null)

Updates the specified BackendBucket resource with the data included in the request.

Parameters
Name Description
request UpdateBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
UpdateBackendBucketRequest request = new UpdateBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.Update(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 = backendBucketsClient.PollOnceUpdate(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;
}

Update(string, string, BackendBucket, CallSettings)

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

Updates the specified BackendBucket resource with the data included in the request.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to update.

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
BackendBucketsClient backendBucketsClient = BackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = backendBucketsClient.Update(project, 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 = backendBucketsClient.PollOnceUpdate(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;
}

UpdateAsync(UpdateBackendBucketRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> UpdateAsync(UpdateBackendBucketRequest request, CallSettings callSettings = null)

Updates the specified BackendBucket resource with the data included in the request.

Parameters
Name Description
request UpdateBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
UpdateBackendBucketRequest request = new UpdateBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.UpdateAsync(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 backendBucketsClient.PollOnceUpdateAsync(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;
}

UpdateAsync(UpdateBackendBucketRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> UpdateAsync(UpdateBackendBucketRequest request, CancellationToken cancellationToken)

Updates the specified BackendBucket resource with the data included in the request.

Parameters
Name Description
request UpdateBackendBucketRequest

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
UpdateBackendBucketRequest request = new UpdateBackendBucketRequest
{
    RequestId = "",
    BackendBucket = "",
    Project = "",
    BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.UpdateAsync(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 backendBucketsClient.PollOnceUpdateAsync(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;
}

UpdateAsync(string, string, BackendBucket, CallSettings)

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

Updates the specified BackendBucket resource with the data included in the request.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to update.

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.UpdateAsync(project, 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 backendBucketsClient.PollOnceUpdateAsync(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;
}

UpdateAsync(string, string, BackendBucket, CancellationToken)

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

Updates the specified BackendBucket resource with the data included in the request.

Parameters
Name Description
project string

Project ID for this request.

backendBucket string

Name of the BackendBucket resource to update.

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
BackendBucketsClient backendBucketsClient = await BackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await backendBucketsClient.UpdateAsync(project, 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 backendBucketsClient.PollOnceUpdateAsync(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;
}