public abstract class BackendBucketsClient
BackendBuckets client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Compute.V1Assembly
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 |
IReadOnlyList<String> |
The default BackendBuckets scopes are:
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 |
BackendBuckets.BackendBucketsClient |
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 |
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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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(CancellationToken))
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 |
Task<BackendBucketsClient> | 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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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. Gets a list of available backend buckets by making a list() request.
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. |
// 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. Gets a list of available backend buckets by making a list() request.
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. |
// 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. Gets a list of available backend buckets by making a list() request.
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 |
Task<BackendBucket> | A Task containing the RPC response. |
// 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. Gets a list of available backend buckets by making a list() request.
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 |
Task<BackendBucket> | A Task containing the RPC response. |
// 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. Gets a list of available backend buckets by making a list() request.
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 |
Task<BackendBucket> | A Task containing the RPC response. |
// 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. Gets a list of available backend buckets by making a list() request.
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 |
Task<BackendBucket> | A Task containing the RPC response. |
// 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);
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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
PagedEnumerable<BackendBucketList, BackendBucket> | A pageable sequence of BackendBucket resources. |
// 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, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<BackendBucketList, BackendBucket> List(string project, string pageToken = null, int? pageSize = default(int? ), 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<BackendBucketList, BackendBucket> | A pageable sequence of BackendBucket resources. |
// 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 |
PagedAsyncEnumerable<BackendBucketList, BackendBucket> | A pageable asynchronous sequence of BackendBucket resources. |
// 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, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<BackendBucketList, BackendBucket> ListAsync(string project, string pageToken = null, int? pageSize = default(int? ), 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<BackendBucketList, BackendBucket> | A pageable asynchronous sequence of BackendBucket resources. |
// 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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | 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 |
Operation<Operation, Operation> | The RPC response. |
// 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 BackendService 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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 BackendService 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 BackendService 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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;
}
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.
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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Operation<Operation, Operation> | The RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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;
}