public abstract class RegionBackendBucketsClientReference documentation and code samples for the Compute Engine v1 API class RegionBackendBucketsClient.
RegionBackendBuckets client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The RegionBackendBuckets API.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the RegionBackendBuckets service, which is a host of "compute.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default RegionBackendBuckets scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default RegionBackendBuckets scopes are:
DeleteOperationsClient
public virtual OperationsClient DeleteOperationsClient { get; }The long-running operations client for Delete.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual RegionBackendBuckets.RegionBackendBucketsClient GrpcClient { get; }The underlying gRPC RegionBackendBuckets client
| Property Value | |
|---|---|
| Type | Description |
RegionBackendBucketsRegionBackendBucketsClient |
|
InsertOperationsClient
public virtual OperationsClient InsertOperationsClient { get; }The long-running operations client for Insert.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
PatchOperationsClient
public virtual OperationsClient PatchOperationsClient { get; }The long-running operations client for Patch.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
Methods
Create()
public static RegionBackendBucketsClient Create()Synchronously creates a RegionBackendBucketsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegionBackendBucketsClientBuilder.
| Returns | |
|---|---|
| Type | Description |
RegionBackendBucketsClient |
The created RegionBackendBucketsClient. |
CreateAsync(CancellationToken)
public static Task<RegionBackendBucketsClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a RegionBackendBucketsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegionBackendBucketsClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskRegionBackendBucketsClient |
The task representing the created RegionBackendBucketsClient. |
Delete(DeleteRegionBackendBucketRequest, CallSettings)
public virtual Operation<Operation, Operation> Delete(DeleteRegionBackendBucketRequest request, CallSettings callSettings = null)Deletes the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
DeleteRegionBackendBucketRequest request = new DeleteRegionBackendBucketRequest
{
RequestId = "",
BackendBucket = "",
Region = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Delete(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Delete(string, string, string, CallSettings)
public virtual Operation<Operation, Operation> Delete(string project, string region, string backendBucket, CallSettings callSettings = null)Deletes the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
backendBucket |
stringName of the BackendBucket resource to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Delete(project, region, backendBucket);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(DeleteRegionBackendBucketRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionBackendBucketRequest request, CallSettings callSettings = null)Deletes the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionBackendBucketRequest request = new DeleteRegionBackendBucketRequest
{
RequestId = "",
BackendBucket = "",
Region = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.DeleteAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(DeleteRegionBackendBucketRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionBackendBucketRequest request, CancellationToken cancellationToken)Deletes the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionBackendBucketRequest request = new DeleteRegionBackendBucketRequest
{
RequestId = "",
BackendBucket = "",
Region = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.DeleteAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(string, string, string, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string region, string backendBucket, CallSettings callSettings = null)Deletes the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
backendBucket |
stringName of the BackendBucket resource to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.DeleteAsync(project, region, backendBucket);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(string, string, string, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string region, string backendBucket, CancellationToken cancellationToken)Deletes the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
backendBucket |
stringName of the BackendBucket resource to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.DeleteAsync(project, region, backendBucket);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Get(GetRegionBackendBucketRequest, CallSettings)
public virtual BackendBucket Get(GetRegionBackendBucketRequest request, CallSettings callSettings = null)Returns the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackendBucket |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
GetRegionBackendBucketRequest request = new GetRegionBackendBucketRequest
{
BackendBucket = "",
Region = "",
Project = "",
};
// Make the request
BackendBucket response = regionBackendBucketsClient.Get(request);
Get(string, string, string, CallSettings)
public virtual BackendBucket Get(string project, string region, string backendBucket, CallSettings callSettings = null)Returns the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
backendBucket |
stringName of the BackendBucket resource to return. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackendBucket |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
BackendBucket response = regionBackendBucketsClient.Get(project, region, backendBucket);
GetAsync(GetRegionBackendBucketRequest, CallSettings)
public virtual Task<BackendBucket> GetAsync(GetRegionBackendBucketRequest request, CallSettings callSettings = null)Returns the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackendBucket |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetRegionBackendBucketRequest request = new GetRegionBackendBucketRequest
{
BackendBucket = "",
Region = "",
Project = "",
};
// Make the request
BackendBucket response = await regionBackendBucketsClient.GetAsync(request);
GetAsync(GetRegionBackendBucketRequest, CancellationToken)
public virtual Task<BackendBucket> GetAsync(GetRegionBackendBucketRequest request, CancellationToken cancellationToken)Returns the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackendBucket |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetRegionBackendBucketRequest request = new GetRegionBackendBucketRequest
{
BackendBucket = "",
Region = "",
Project = "",
};
// Make the request
BackendBucket response = await regionBackendBucketsClient.GetAsync(request);
GetAsync(string, string, string, CallSettings)
public virtual Task<BackendBucket> GetAsync(string project, string region, string backendBucket, CallSettings callSettings = null)Returns the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
backendBucket |
stringName of the BackendBucket resource to return. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackendBucket |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
BackendBucket response = await regionBackendBucketsClient.GetAsync(project, region, backendBucket);
GetAsync(string, string, string, CancellationToken)
public virtual Task<BackendBucket> GetAsync(string project, string region, string backendBucket, CancellationToken cancellationToken)Returns the specified regional BackendBucket resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
backendBucket |
stringName of the BackendBucket resource to return. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackendBucket |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
// Make the request
BackendBucket response = await regionBackendBucketsClient.GetAsync(project, region, backendBucket);
GetIamPolicy(GetIamPolicyRegionBackendBucketRequest, CallSettings)
public virtual Policy GetIamPolicy(GetIamPolicyRegionBackendBucketRequest request, CallSettings callSettings = null)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
GetIamPolicyRegionBackendBucketRequest request = new GetIamPolicyRegionBackendBucketRequest
{
Region = "",
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = regionBackendBucketsClient.GetIamPolicy(request);
GetIamPolicy(string, string, string, CallSettings)
public virtual Policy GetIamPolicy(string project, string region, string resource, CallSettings callSettings = null)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
// Make the request
Policy response = regionBackendBucketsClient.GetIamPolicy(project, region, resource);
GetIamPolicyAsync(GetIamPolicyRegionBackendBucketRequest, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRegionBackendBucketRequest request, CallSettings callSettings = null)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRegionBackendBucketRequest request = new GetIamPolicyRegionBackendBucketRequest
{
Region = "",
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await regionBackendBucketsClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(GetIamPolicyRegionBackendBucketRequest, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRegionBackendBucketRequest request, CancellationToken cancellationToken)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRegionBackendBucketRequest request = new GetIamPolicyRegionBackendBucketRequest
{
Region = "",
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await regionBackendBucketsClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(string, string, string, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(string project, string region, string resource, CallSettings callSettings = null)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
// Make the request
Policy response = await regionBackendBucketsClient.GetIamPolicyAsync(project, region, resource);
GetIamPolicyAsync(string, string, string, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(string project, string region, string resource, CancellationToken cancellationToken)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
// Make the request
Policy response = await regionBackendBucketsClient.GetIamPolicyAsync(project, region, resource);
Insert(InsertRegionBackendBucketRequest, CallSettings)
public virtual Operation<Operation, Operation> Insert(InsertRegionBackendBucketRequest request, CallSettings callSettings = null)Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
InsertRegionBackendBucketRequest request = new InsertRegionBackendBucketRequest
{
RequestId = "",
Region = "",
Project = "",
BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Insert(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Insert(string, string, BackendBucket, CallSettings)
public virtual Operation<Operation, Operation> Insert(string project, string region, BackendBucket backendBucketResource, CallSettings callSettings = null)Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region of this request. |
backendBucketResource |
BackendBucketThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Insert(project, region, backendBucketResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(InsertRegionBackendBucketRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionBackendBucketRequest request, CallSettings callSettings = null)Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
InsertRegionBackendBucketRequest request = new InsertRegionBackendBucketRequest
{
RequestId = "",
Region = "",
Project = "",
BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.InsertAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(InsertRegionBackendBucketRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionBackendBucketRequest request, CancellationToken cancellationToken)Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
InsertRegionBackendBucketRequest request = new InsertRegionBackendBucketRequest
{
RequestId = "",
Region = "",
Project = "",
BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.InsertAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(string, string, BackendBucket, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, BackendBucket backendBucketResource, CallSettings callSettings = null)Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region of this request. |
backendBucketResource |
BackendBucketThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.InsertAsync(project, region, backendBucketResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(string, string, BackendBucket, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string region, BackendBucket backendBucketResource, CancellationToken cancellationToken)Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region of this request. |
backendBucketResource |
BackendBucketThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.InsertAsync(project, region, backendBucketResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
List(ListRegionBackendBucketsRequest, CallSettings)
public virtual PagedEnumerable<BackendBucketList, BackendBucket> List(ListRegionBackendBucketsRequest request, CallSettings callSettings = null)Retrieves the list of BackendBucket resources available to the specified project in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRegionBackendBucketsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableBackendBucketListBackendBucket |
A pageable sequence of BackendBucket resources. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
ListRegionBackendBucketsRequest request = new ListRegionBackendBucketsRequest
{
Region = "",
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<BackendBucketList, BackendBucket> response = regionBackendBucketsClient.List(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackendBucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (BackendBucketList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendBucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendBucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendBucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
List(string, string, string, int?, CallSettings)
public virtual PagedEnumerable<BackendBucketList, BackendBucket> List(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Retrieves the list of BackendBucket resources available to the specified project in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region of this request. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableBackendBucketListBackendBucket |
A pageable sequence of BackendBucket resources. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedEnumerable<BackendBucketList, BackendBucket> response = regionBackendBucketsClient.List(project, region);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackendBucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (BackendBucketList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendBucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendBucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendBucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAsync(ListRegionBackendBucketsRequest, CallSettings)
public virtual PagedAsyncEnumerable<BackendBucketList, BackendBucket> ListAsync(ListRegionBackendBucketsRequest request, CallSettings callSettings = null)Retrieves the list of BackendBucket resources available to the specified project in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRegionBackendBucketsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableBackendBucketListBackendBucket |
A pageable asynchronous sequence of BackendBucket resources. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
ListRegionBackendBucketsRequest request = new ListRegionBackendBucketsRequest
{
Region = "",
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<BackendBucketList, BackendBucket> response = regionBackendBucketsClient.ListAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (BackendBucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (BackendBucketList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendBucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendBucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendBucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAsync(string, string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<BackendBucketList, BackendBucket> ListAsync(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Retrieves the list of BackendBucket resources available to the specified project in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region of this request. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableBackendBucketListBackendBucket |
A pageable asynchronous sequence of BackendBucket resources. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedAsyncEnumerable<BackendBucketList, BackendBucket> response = regionBackendBucketsClient.ListAsync(project, region);
// Iterate over all response items, lazily performing RPCs as required
await foreach (BackendBucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (BackendBucketList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendBucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendBucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendBucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUsable(ListUsableRegionBackendBucketsRequest, CallSettings)
public virtual PagedEnumerable<BackendBucketListUsable, BackendBucket> ListUsable(ListUsableRegionBackendBucketsRequest request, CallSettings callSettings = null)Retrieves a list of all usable backend buckets in the specified project in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListUsableRegionBackendBucketsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableBackendBucketListUsableBackendBucket |
A pageable sequence of BackendBucket resources. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
ListUsableRegionBackendBucketsRequest request = new ListUsableRegionBackendBucketsRequest
{
Region = "",
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<BackendBucketListUsable, BackendBucket> response = regionBackendBucketsClient.ListUsable(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackendBucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (BackendBucketListUsable page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendBucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendBucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendBucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUsable(string, string, string, int?, CallSettings)
public virtual PagedEnumerable<BackendBucketListUsable, BackendBucket> ListUsable(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Retrieves a list of all usable backend buckets in the specified project in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. It must be a string that meets the requirements in RFC1035. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableBackendBucketListUsableBackendBucket |
A pageable sequence of BackendBucket resources. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedEnumerable<BackendBucketListUsable, BackendBucket> response = regionBackendBucketsClient.ListUsable(project, region);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackendBucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (BackendBucketListUsable page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendBucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendBucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendBucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUsableAsync(ListUsableRegionBackendBucketsRequest, CallSettings)
public virtual PagedAsyncEnumerable<BackendBucketListUsable, BackendBucket> ListUsableAsync(ListUsableRegionBackendBucketsRequest request, CallSettings callSettings = null)Retrieves a list of all usable backend buckets in the specified project in the given region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListUsableRegionBackendBucketsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableBackendBucketListUsableBackendBucket |
A pageable asynchronous sequence of BackendBucket resources. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
ListUsableRegionBackendBucketsRequest request = new ListUsableRegionBackendBucketsRequest
{
Region = "",
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<BackendBucketListUsable, BackendBucket> response = regionBackendBucketsClient.ListUsableAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (BackendBucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (BackendBucketListUsable page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendBucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendBucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendBucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUsableAsync(string, string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<BackendBucketListUsable, BackendBucket> ListUsableAsync(string project, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Retrieves a list of all usable backend buckets in the specified project in the given region.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. It must be a string that meets the requirements in RFC1035. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableBackendBucketListUsableBackendBucket |
A pageable asynchronous sequence of BackendBucket resources. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedAsyncEnumerable<BackendBucketListUsable, BackendBucket> response = regionBackendBucketsClient.ListUsableAsync(project, region);
// Iterate over all response items, lazily performing RPCs as required
await foreach (BackendBucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (BackendBucketListUsable page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendBucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendBucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendBucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
Patch(PatchRegionBackendBucketRequest, CallSettings)
public virtual Operation<Operation, Operation> Patch(PatchRegionBackendBucketRequest request, CallSettings callSettings = null)Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
PatchRegionBackendBucketRequest request = new PatchRegionBackendBucketRequest
{
RequestId = "",
BackendBucket = "",
Region = "",
Project = "",
BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Patch(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Patch(string, string, string, BackendBucket, CallSettings)
public virtual Operation<Operation, Operation> Patch(string project, string region, string backendBucket, BackendBucket backendBucketResource, CallSettings callSettings = null)Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
backendBucket |
stringName of the BackendBucket resource to patch. |
backendBucketResource |
BackendBucketThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = regionBackendBucketsClient.Patch(project, region, backendBucket, backendBucketResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = regionBackendBucketsClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(PatchRegionBackendBucketRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchRegionBackendBucketRequest request, CallSettings callSettings = null)Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
PatchRegionBackendBucketRequest request = new PatchRegionBackendBucketRequest
{
RequestId = "",
BackendBucket = "",
Region = "",
Project = "",
BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.PatchAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(PatchRegionBackendBucketRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchRegionBackendBucketRequest request, CancellationToken cancellationToken)Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
PatchRegionBackendBucketRequest request = new PatchRegionBackendBucketRequest
{
RequestId = "",
BackendBucket = "",
Region = "",
Project = "",
BackendBucketResource = new BackendBucket(),
};
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.PatchAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(string, string, string, BackendBucket, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string backendBucket, BackendBucket backendBucketResource, CallSettings callSettings = null)Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
backendBucket |
stringName of the BackendBucket resource to patch. |
backendBucketResource |
BackendBucketThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.PatchAsync(project, region, backendBucket, backendBucketResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PatchAsync(string, string, string, BackendBucket, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string region, string backendBucket, BackendBucket backendBucketResource, CancellationToken cancellationToken)Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringName of the region scoping this request. |
backendBucket |
stringName of the BackendBucket resource to patch. |
backendBucketResource |
BackendBucketThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string backendBucket = "";
BackendBucket backendBucketResource = new BackendBucket();
// Make the request
lro::Operation<Operation, Operation> response = await regionBackendBucketsClient.PatchAsync(project, region, backendBucket, backendBucketResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await regionBackendBucketsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
PollOnceDelete(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceDelete(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of Delete.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A task representing the result of polling the operation. |
SetIamPolicy(SetIamPolicyRegionBackendBucketRequest, CallSettings)
public virtual Policy SetIamPolicy(SetIamPolicyRegionBackendBucketRequest request, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
SetIamPolicyRegionBackendBucketRequest request = new SetIamPolicyRegionBackendBucketRequest
{
Region = "",
Resource = "",
Project = "",
RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = regionBackendBucketsClient.SetIamPolicy(request);
SetIamPolicy(string, string, string, RegionSetPolicyRequest, CallSettings)
public virtual Policy SetIamPolicy(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
regionSetPolicyRequestResource |
RegionSetPolicyRequestThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = regionBackendBucketsClient.SetIamPolicy(project, region, resource, regionSetPolicyRequestResource);
SetIamPolicyAsync(SetIamPolicyRegionBackendBucketRequest, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRegionBackendBucketRequest request, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRegionBackendBucketRequest request = new SetIamPolicyRegionBackendBucketRequest
{
Region = "",
Resource = "",
Project = "",
RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = await regionBackendBucketsClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(SetIamPolicyRegionBackendBucketRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRegionBackendBucketRequest request, CancellationToken cancellationToken)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRegionBackendBucketRequest request = new SetIamPolicyRegionBackendBucketRequest
{
Region = "",
Resource = "",
Project = "",
RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = await regionBackendBucketsClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
regionSetPolicyRequestResource |
RegionSetPolicyRequestThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = await regionBackendBucketsClient.SetIamPolicyAsync(project, region, resource, regionSetPolicyRequestResource);
SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CancellationToken cancellationToken)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
regionSetPolicyRequestResource |
RegionSetPolicyRequestThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = await regionBackendBucketsClient.SetIamPolicyAsync(project, region, resource, regionSetPolicyRequestResource);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
| Returns | |
|---|---|
| Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
TestIamPermissions(TestIamPermissionsRegionBackendBucketRequest, CallSettings)
public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsRegionBackendBucketRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestPermissionsResponse |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
TestIamPermissionsRegionBackendBucketRequest request = new TestIamPermissionsRegionBackendBucketRequest
{
Region = "",
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = regionBackendBucketsClient.TestIamPermissions(request);
TestIamPermissions(string, string, string, TestPermissionsRequest, CallSettings)
public virtual TestPermissionsResponse TestIamPermissions(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
testPermissionsRequestResource |
TestPermissionsRequestThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestPermissionsResponse |
The RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = RegionBackendBucketsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = regionBackendBucketsClient.TestIamPermissions(project, region, resource, testPermissionsRequestResource);
TestIamPermissionsAsync(TestIamPermissionsRegionBackendBucketRequest, CallSettings)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionBackendBucketRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionBackendBucketRequest request = new TestIamPermissionsRegionBackendBucketRequest
{
Region = "",
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionBackendBucketsClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(TestIamPermissionsRegionBackendBucketRequest, CancellationToken)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionBackendBucketRequest request, CancellationToken cancellationToken)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRegionBackendBucketRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionBackendBucketRequest request = new TestIamPermissionsRegionBackendBucketRequest
{
Region = "",
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionBackendBucketsClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CallSettings)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
testPermissionsRequestResource |
TestPermissionsRequestThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionBackendBucketsClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource);
TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CancellationToken)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CancellationToken cancellationToken)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
region |
stringThe name of the region for this request. |
resource |
stringName or id of the resource for this request. |
testPermissionsRequestResource |
TestPermissionsRequestThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
// Create client
RegionBackendBucketsClient regionBackendBucketsClient = await RegionBackendBucketsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionBackendBucketsClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource);