public abstract class BackendServicesClient
Reference documentation and code samples for the Compute Engine v1 API class BackendServicesClient.
BackendServices client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The BackendServices 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 BackendServices 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 BackendServices scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default BackendServices 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 BackendServices.BackendServicesClient GrpcClient { get; }
The underlying gRPC BackendServices client
Property Value | |
---|---|
Type | Description |
BackendServicesBackendServicesClient |
InsertOperationsClient
public virtual OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchOperationsClient
public virtual OperationsClient PatchOperationsClient { get; }
The long-running operations client for Patch
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
SetEdgeSecurityPolicyOperationsClient
public virtual OperationsClient SetEdgeSecurityPolicyOperationsClient { get; }
The long-running operations client for SetEdgeSecurityPolicy
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
SetSecurityPolicyOperationsClient
public virtual OperationsClient SetSecurityPolicyOperationsClient { get; }
The long-running operations client for SetSecurityPolicy
.
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(AddSignedUrlKeyBackendServiceRequest, CallSettings)
public virtual Operation<Operation, Operation> AddSignedUrlKey(AddSignedUrlKeyBackendServiceRequest request, CallSettings callSettings = null)
Adds a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
request | AddSignedUrlKeyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
AddSignedUrlKeyBackendServiceRequest request = new AddSignedUrlKeyBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
SignedUrlKeyResource = new SignedUrlKey(),
};
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.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 = backendServicesClient.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 backendService, SignedUrlKey signedUrlKeyResource, CallSettings callSettings = null)
Adds a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. |
signedUrlKeyResource | SignedUrlKey The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string backendService = "";
SignedUrlKey signedUrlKeyResource = new SignedUrlKey();
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.AddSignedUrlKey(project, backendService, 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 = backendServicesClient.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(AddSignedUrlKeyBackendServiceRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> AddSignedUrlKeyAsync(AddSignedUrlKeyBackendServiceRequest request, CallSettings callSettings = null)
Adds a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
request | AddSignedUrlKeyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
AddSignedUrlKeyBackendServiceRequest request = new AddSignedUrlKeyBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
SignedUrlKeyResource = new SignedUrlKey(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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(AddSignedUrlKeyBackendServiceRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> AddSignedUrlKeyAsync(AddSignedUrlKeyBackendServiceRequest request, CancellationToken cancellationToken)
Adds a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
request | AddSignedUrlKeyBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
AddSignedUrlKeyBackendServiceRequest request = new AddSignedUrlKeyBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
SignedUrlKeyResource = new SignedUrlKey(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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 backendService, SignedUrlKey signedUrlKeyResource, CallSettings callSettings = null)
Adds a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. |
signedUrlKeyResource | SignedUrlKey The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
SignedUrlKey signedUrlKeyResource = new SignedUrlKey();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.AddSignedUrlKeyAsync(project, backendService, 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 backendServicesClient.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 backendService, SignedUrlKey signedUrlKeyResource, CancellationToken cancellationToken)
Adds a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. |
signedUrlKeyResource | SignedUrlKey The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
SignedUrlKey signedUrlKeyResource = new SignedUrlKey();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.AddSignedUrlKeyAsync(project, backendService, 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 backendServicesClient.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;
}
AggregatedList(AggregatedListBackendServicesRequest, CallSettings)
public virtual PagedEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> AggregatedList(AggregatedListBackendServicesRequest request, CallSettings callSettings = null)
Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
request | AggregatedListBackendServicesRequest 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 |
PagedEnumerableBackendServiceAggregatedListKeyValuePairstringBackendServicesScopedList | A pageable sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
AggregatedListBackendServicesRequest request = new AggregatedListBackendServicesRequest
{
OrderBy = "",
Project = "",
ServiceProjectNumber = 0L,
Filter = "",
IncludeAllScopes = false,
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> response = backendServicesClient.AggregatedList(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, BackendServicesScopedList> 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 (BackendServiceAggregatedList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, BackendServicesScopedList> 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<KeyValuePair<string, BackendServicesScopedList>> 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 (KeyValuePair<string, BackendServicesScopedList> 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;
AggregatedList(string, string, int?, CallSettings)
public virtual PagedEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> AggregatedList(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
project | string Name of the project scoping this request. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int 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 |
PagedEnumerableBackendServiceAggregatedListKeyValuePairstringBackendServicesScopedList | A pageable sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> response = backendServicesClient.AggregatedList(project);
// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, BackendServicesScopedList> 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 (BackendServiceAggregatedList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, BackendServicesScopedList> 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<KeyValuePair<string, BackendServicesScopedList>> 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 (KeyValuePair<string, BackendServicesScopedList> 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;
AggregatedListAsync(AggregatedListBackendServicesRequest, CallSettings)
public virtual PagedAsyncEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> AggregatedListAsync(AggregatedListBackendServicesRequest request, CallSettings callSettings = null)
Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
request | AggregatedListBackendServicesRequest 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 |
PagedAsyncEnumerableBackendServiceAggregatedListKeyValuePairstringBackendServicesScopedList | A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
AggregatedListBackendServicesRequest request = new AggregatedListBackendServicesRequest
{
OrderBy = "",
Project = "",
ServiceProjectNumber = 0L,
Filter = "",
IncludeAllScopes = false,
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> response = backendServicesClient.AggregatedListAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((KeyValuePair<string, BackendServicesScopedList> 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((BackendServiceAggregatedList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, BackendServicesScopedList> 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<KeyValuePair<string, BackendServicesScopedList>> 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 (KeyValuePair<string, BackendServicesScopedList> 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;
AggregatedListAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> AggregatedListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
project | string Name of the project scoping this request. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int 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 |
PagedAsyncEnumerableBackendServiceAggregatedListKeyValuePairstringBackendServicesScopedList | A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> response = backendServicesClient.AggregatedListAsync(project);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((KeyValuePair<string, BackendServicesScopedList> 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((BackendServiceAggregatedList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyValuePair<string, BackendServicesScopedList> 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<KeyValuePair<string, BackendServicesScopedList>> 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 (KeyValuePair<string, BackendServicesScopedList> 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;
Create()
public static BackendServicesClient Create()
Synchronously creates a BackendServicesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use BackendServicesClientBuilder.
Returns | |
---|---|
Type | Description |
BackendServicesClient | The created BackendServicesClient. |
CreateAsync(CancellationToken)
public static Task<BackendServicesClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a BackendServicesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use BackendServicesClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskBackendServicesClient | The task representing the created BackendServicesClient. |
Delete(DeleteBackendServiceRequest, CallSettings)
public virtual Operation<Operation, Operation> Delete(DeleteBackendServiceRequest request, CallSettings callSettings = null)
Deletes the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
request | DeleteBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
DeleteBackendServiceRequest request = new DeleteBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
};
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.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 = backendServicesClient.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 backendService, CallSettings callSettings = null)
Deletes the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string backendService = "";
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.Delete(project, backendService);
// 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 = backendServicesClient.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(DeleteBackendServiceRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteBackendServiceRequest request, CallSettings callSettings = null)
Deletes the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
request | DeleteBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteBackendServiceRequest request = new DeleteBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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(DeleteBackendServiceRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteBackendServiceRequest request, CancellationToken cancellationToken)
Deletes the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
request | DeleteBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteBackendServiceRequest request = new DeleteBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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 backendService, CallSettings callSettings = null)
Deletes the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.DeleteAsync(project, backendService);
// 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 backendServicesClient.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 backendService, CancellationToken cancellationToken)
Deletes the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.DeleteAsync(project, backendService);
// 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 backendServicesClient.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(DeleteSignedUrlKeyBackendServiceRequest, CallSettings)
public virtual Operation<Operation, Operation> DeleteSignedUrlKey(DeleteSignedUrlKeyBackendServiceRequest request, CallSettings callSettings = null)
Deletes a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
request | DeleteSignedUrlKeyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
DeleteSignedUrlKeyBackendServiceRequest request = new DeleteSignedUrlKeyBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
KeyName = "",
};
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.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 = backendServicesClient.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 backendService, string keyName, CallSettings callSettings = null)
Deletes a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. |
keyName | string The name of the Signed URL Key to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string backendService = "";
string keyName = "";
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.DeleteSignedUrlKey(project, backendService, 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 = backendServicesClient.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(DeleteSignedUrlKeyBackendServiceRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteSignedUrlKeyAsync(DeleteSignedUrlKeyBackendServiceRequest request, CallSettings callSettings = null)
Deletes a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
request | DeleteSignedUrlKeyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteSignedUrlKeyBackendServiceRequest request = new DeleteSignedUrlKeyBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
KeyName = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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(DeleteSignedUrlKeyBackendServiceRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteSignedUrlKeyAsync(DeleteSignedUrlKeyBackendServiceRequest request, CancellationToken cancellationToken)
Deletes a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
request | DeleteSignedUrlKeyBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteSignedUrlKeyBackendServiceRequest request = new DeleteSignedUrlKeyBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
KeyName = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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 backendService, string keyName, CallSettings callSettings = null)
Deletes a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. |
keyName | string The name of the Signed URL Key to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
string keyName = "";
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.DeleteSignedUrlKeyAsync(project, backendService, 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 backendServicesClient.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 backendService, string keyName, CancellationToken cancellationToken)
Deletes a key for validating requests with signed URLs for this backend service.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. |
keyName | string The name of the Signed URL Key to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
string keyName = "";
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.DeleteSignedUrlKeyAsync(project, backendService, 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 backendServicesClient.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(GetBackendServiceRequest, CallSettings)
public virtual BackendService Get(GetBackendServiceRequest request, CallSettings callSettings = null)
Returns the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
request | GetBackendServiceRequest 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 |
BackendService | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
GetBackendServiceRequest request = new GetBackendServiceRequest
{
Project = "",
BackendService = "",
};
// Make the request
BackendService response = backendServicesClient.Get(request);
Get(string, string, CallSettings)
public virtual BackendService Get(string project, string backendService, CallSettings callSettings = null)
Returns the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to return. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BackendService | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string backendService = "";
// Make the request
BackendService response = backendServicesClient.Get(project, backendService);
GetAsync(GetBackendServiceRequest, CallSettings)
public virtual Task<BackendService> GetAsync(GetBackendServiceRequest request, CallSettings callSettings = null)
Returns the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
request | GetBackendServiceRequest 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 |
TaskBackendService | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
GetBackendServiceRequest request = new GetBackendServiceRequest
{
Project = "",
BackendService = "",
};
// Make the request
BackendService response = await backendServicesClient.GetAsync(request);
GetAsync(GetBackendServiceRequest, CancellationToken)
public virtual Task<BackendService> GetAsync(GetBackendServiceRequest request, CancellationToken cancellationToken)
Returns the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
request | GetBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBackendService | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
GetBackendServiceRequest request = new GetBackendServiceRequest
{
Project = "",
BackendService = "",
};
// Make the request
BackendService response = await backendServicesClient.GetAsync(request);
GetAsync(string, string, CallSettings)
public virtual Task<BackendService> GetAsync(string project, string backendService, CallSettings callSettings = null)
Returns the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to return. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBackendService | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
// Make the request
BackendService response = await backendServicesClient.GetAsync(project, backendService);
GetAsync(string, string, CancellationToken)
public virtual Task<BackendService> GetAsync(string project, string backendService, CancellationToken cancellationToken)
Returns the specified BackendService resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to return. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBackendService | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
// Make the request
BackendService response = await backendServicesClient.GetAsync(project, backendService);
GetHealth(GetHealthBackendServiceRequest, CallSettings)
public virtual BackendServiceGroupHealth GetHealth(GetHealthBackendServiceRequest request, CallSettings callSettings = null)
Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" }
Parameters | |
---|---|
Name | Description |
request | GetHealthBackendServiceRequest 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 |
BackendServiceGroupHealth | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
GetHealthBackendServiceRequest request = new GetHealthBackendServiceRequest
{
ResourceGroupReferenceResource = new ResourceGroupReference(),
Project = "",
BackendService = "",
};
// Make the request
BackendServiceGroupHealth response = backendServicesClient.GetHealth(request);
GetHealth(string, string, ResourceGroupReference, CallSettings)
public virtual BackendServiceGroupHealth GetHealth(string project, string backendService, ResourceGroupReference resourceGroupReferenceResource, CallSettings callSettings = null)
Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" }
Parameters | |
---|---|
Name | Description |
project | string |
backendService | string Name of the BackendService resource to which the queried instance belongs. |
resourceGroupReferenceResource | ResourceGroupReference The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
BackendServiceGroupHealth | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string backendService = "";
ResourceGroupReference resourceGroupReferenceResource = new ResourceGroupReference();
// Make the request
BackendServiceGroupHealth response = backendServicesClient.GetHealth(project, backendService, resourceGroupReferenceResource);
GetHealthAsync(GetHealthBackendServiceRequest, CallSettings)
public virtual Task<BackendServiceGroupHealth> GetHealthAsync(GetHealthBackendServiceRequest request, CallSettings callSettings = null)
Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" }
Parameters | |
---|---|
Name | Description |
request | GetHealthBackendServiceRequest 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 |
TaskBackendServiceGroupHealth | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
GetHealthBackendServiceRequest request = new GetHealthBackendServiceRequest
{
ResourceGroupReferenceResource = new ResourceGroupReference(),
Project = "",
BackendService = "",
};
// Make the request
BackendServiceGroupHealth response = await backendServicesClient.GetHealthAsync(request);
GetHealthAsync(GetHealthBackendServiceRequest, CancellationToken)
public virtual Task<BackendServiceGroupHealth> GetHealthAsync(GetHealthBackendServiceRequest request, CancellationToken cancellationToken)
Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" }
Parameters | |
---|---|
Name | Description |
request | GetHealthBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBackendServiceGroupHealth | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
GetHealthBackendServiceRequest request = new GetHealthBackendServiceRequest
{
ResourceGroupReferenceResource = new ResourceGroupReference(),
Project = "",
BackendService = "",
};
// Make the request
BackendServiceGroupHealth response = await backendServicesClient.GetHealthAsync(request);
GetHealthAsync(string, string, ResourceGroupReference, CallSettings)
public virtual Task<BackendServiceGroupHealth> GetHealthAsync(string project, string backendService, ResourceGroupReference resourceGroupReferenceResource, CallSettings callSettings = null)
Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" }
Parameters | |
---|---|
Name | Description |
project | string |
backendService | string Name of the BackendService resource to which the queried instance belongs. |
resourceGroupReferenceResource | ResourceGroupReference The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskBackendServiceGroupHealth | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
ResourceGroupReference resourceGroupReferenceResource = new ResourceGroupReference();
// Make the request
BackendServiceGroupHealth response = await backendServicesClient.GetHealthAsync(project, backendService, resourceGroupReferenceResource);
GetHealthAsync(string, string, ResourceGroupReference, CancellationToken)
public virtual Task<BackendServiceGroupHealth> GetHealthAsync(string project, string backendService, ResourceGroupReference resourceGroupReferenceResource, CancellationToken cancellationToken)
Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" }
Parameters | |
---|---|
Name | Description |
project | string |
backendService | string Name of the BackendService resource to which the queried instance belongs. |
resourceGroupReferenceResource | ResourceGroupReference The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskBackendServiceGroupHealth | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
ResourceGroupReference resourceGroupReferenceResource = new ResourceGroupReference();
// Make the request
BackendServiceGroupHealth response = await backendServicesClient.GetHealthAsync(project, backendService, resourceGroupReferenceResource);
GetIamPolicy(GetIamPolicyBackendServiceRequest, CallSettings)
public virtual Policy GetIamPolicy(GetIamPolicyBackendServiceRequest request, CallSettings callSettings = null)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
GetIamPolicyBackendServiceRequest request = new GetIamPolicyBackendServiceRequest
{
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = backendServicesClient.GetIamPolicy(request);
GetIamPolicy(string, string, CallSettings)
public virtual Policy GetIamPolicy(string project, string resource, CallSettings callSettings = null)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
resource | string Name or id of the resource for this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = backendServicesClient.GetIamPolicy(project, resource);
GetIamPolicyAsync(GetIamPolicyBackendServiceRequest, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyBackendServiceRequest request, CallSettings callSettings = null)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyBackendServiceRequest request = new GetIamPolicyBackendServiceRequest
{
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await backendServicesClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(GetIamPolicyBackendServiceRequest, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyBackendServiceRequest request, CancellationToken cancellationToken)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyBackendServiceRequest request = new GetIamPolicyBackendServiceRequest
{
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await backendServicesClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(string, string, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(string project, string resource, CallSettings callSettings = null)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
resource | string Name or id of the resource for this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = await backendServicesClient.GetIamPolicyAsync(project, resource);
GetIamPolicyAsync(string, string, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(string project, string resource, CancellationToken cancellationToken)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
resource | string Name or id of the resource for this request. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = await backendServicesClient.GetIamPolicyAsync(project, resource);
Insert(InsertBackendServiceRequest, CallSettings)
public virtual Operation<Operation, Operation> Insert(InsertBackendServiceRequest request, CallSettings callSettings = null)
Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .
Parameters | |
---|---|
Name | Description |
request | InsertBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
InsertBackendServiceRequest request = new InsertBackendServiceRequest
{
RequestId = "",
Project = "",
BackendServiceResource = new BackendService(),
};
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.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 = backendServicesClient.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, BackendService, CallSettings)
public virtual Operation<Operation, Operation> Insert(string project, BackendService backendServiceResource, CallSettings callSettings = null)
Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendServiceResource | BackendService The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
BackendService backendServiceResource = new BackendService();
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.Insert(project, backendServiceResource);
// 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 = backendServicesClient.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(InsertBackendServiceRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertBackendServiceRequest request, CallSettings callSettings = null)
Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .
Parameters | |
---|---|
Name | Description |
request | InsertBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
InsertBackendServiceRequest request = new InsertBackendServiceRequest
{
RequestId = "",
Project = "",
BackendServiceResource = new BackendService(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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(InsertBackendServiceRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertBackendServiceRequest request, CancellationToken cancellationToken)
Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .
Parameters | |
---|---|
Name | Description |
request | InsertBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
InsertBackendServiceRequest request = new InsertBackendServiceRequest
{
RequestId = "",
Project = "",
BackendServiceResource = new BackendService(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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, BackendService, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, BackendService backendServiceResource, CallSettings callSettings = null)
Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendServiceResource | BackendService The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
BackendService backendServiceResource = new BackendService();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.InsertAsync(project, backendServiceResource);
// 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 backendServicesClient.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, BackendService, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, BackendService backendServiceResource, CancellationToken cancellationToken)
Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendServiceResource | BackendService The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
BackendService backendServiceResource = new BackendService();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.InsertAsync(project, backendServiceResource);
// 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 backendServicesClient.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(ListBackendServicesRequest, CallSettings)
public virtual PagedEnumerable<BackendServiceList, BackendService> List(ListBackendServicesRequest request, CallSettings callSettings = null)
Retrieves the list of BackendService resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListBackendServicesRequest 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 |
PagedEnumerableBackendServiceListBackendService | A pageable sequence of BackendService resources. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
ListBackendServicesRequest request = new ListBackendServicesRequest
{
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<BackendServiceList, BackendService> response = backendServicesClient.List(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackendService 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 (BackendServiceList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendService 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<BackendService> 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 (BackendService item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
List(string, string, int?, CallSettings)
public virtual PagedEnumerable<BackendServiceList, BackendService> List(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves the list of BackendService 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 | int 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 |
PagedEnumerableBackendServiceListBackendService | A pageable sequence of BackendService resources. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<BackendServiceList, BackendService> response = backendServicesClient.List(project);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackendService 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 (BackendServiceList page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendService 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<BackendService> 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 (BackendService 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(ListBackendServicesRequest, CallSettings)
public virtual PagedAsyncEnumerable<BackendServiceList, BackendService> ListAsync(ListBackendServicesRequest request, CallSettings callSettings = null)
Retrieves the list of BackendService resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListBackendServicesRequest 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 |
PagedAsyncEnumerableBackendServiceListBackendService | A pageable asynchronous sequence of BackendService resources. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
ListBackendServicesRequest request = new ListBackendServicesRequest
{
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<BackendServiceList, BackendService> response = backendServicesClient.ListAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackendService 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((BackendServiceList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendService 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<BackendService> 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 (BackendService item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<BackendServiceList, BackendService> ListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves the list of BackendService 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 | int 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 |
PagedAsyncEnumerableBackendServiceListBackendService | A pageable asynchronous sequence of BackendService resources. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<BackendServiceList, BackendService> response = backendServicesClient.ListAsync(project);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackendService 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((BackendServiceList page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendService 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<BackendService> 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 (BackendService item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUsable(ListUsableBackendServicesRequest, CallSettings)
public virtual PagedEnumerable<BackendServiceListUsable, BackendService> ListUsable(ListUsableBackendServicesRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of all usable backend services in the specified project.
Parameters | |
---|---|
Name | Description |
request | ListUsableBackendServicesRequest 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 |
PagedEnumerableBackendServiceListUsableBackendService | A pageable sequence of BackendService resources. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
ListUsableBackendServicesRequest request = new ListUsableBackendServicesRequest
{
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<BackendServiceListUsable, BackendService> response = backendServicesClient.ListUsable(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackendService 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 (BackendServiceListUsable page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendService 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<BackendService> 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 (BackendService item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUsable(string, string, int?, CallSettings)
public virtual PagedEnumerable<BackendServiceListUsable, BackendService> ListUsable(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves an aggregated list of all usable backend services in 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 | int 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 |
PagedEnumerableBackendServiceListUsableBackendService | A pageable sequence of BackendService resources. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<BackendServiceListUsable, BackendService> response = backendServicesClient.ListUsable(project);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackendService 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 (BackendServiceListUsable page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendService 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<BackendService> 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 (BackendService item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUsableAsync(ListUsableBackendServicesRequest, CallSettings)
public virtual PagedAsyncEnumerable<BackendServiceListUsable, BackendService> ListUsableAsync(ListUsableBackendServicesRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of all usable backend services in the specified project.
Parameters | |
---|---|
Name | Description |
request | ListUsableBackendServicesRequest 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 |
PagedAsyncEnumerableBackendServiceListUsableBackendService | A pageable asynchronous sequence of BackendService resources. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
ListUsableBackendServicesRequest request = new ListUsableBackendServicesRequest
{
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<BackendServiceListUsable, BackendService> response = backendServicesClient.ListUsableAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackendService 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((BackendServiceListUsable page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendService 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<BackendService> 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 (BackendService item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUsableAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<BackendServiceListUsable, BackendService> ListUsableAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Retrieves an aggregated list of all usable backend services in 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 | int 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 |
PagedAsyncEnumerableBackendServiceListUsableBackendService | A pageable asynchronous sequence of BackendService resources. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<BackendServiceListUsable, BackendService> response = backendServicesClient.ListUsableAsync(project);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackendService 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((BackendServiceListUsable page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackendService 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<BackendService> 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 (BackendService 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(PatchBackendServiceRequest, CallSettings)
public virtual Operation<Operation, Operation> Patch(PatchBackendServiceRequest request, CallSettings callSettings = null)
Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
Parameters | |
---|---|
Name | Description |
request | PatchBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
PatchBackendServiceRequest request = new PatchBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
BackendServiceResource = new BackendService(),
};
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.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 = backendServicesClient.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, BackendService, CallSettings)
public virtual Operation<Operation, Operation> Patch(string project, string backendService, BackendService backendServiceResource, CallSettings callSettings = null)
Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. 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. |
backendService | string Name of the BackendService resource to patch. |
backendServiceResource | BackendService The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string backendService = "";
BackendService backendServiceResource = new BackendService();
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.Patch(project, backendService, backendServiceResource);
// 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 = backendServicesClient.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(PatchBackendServiceRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchBackendServiceRequest request, CallSettings callSettings = null)
Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
Parameters | |
---|---|
Name | Description |
request | PatchBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
PatchBackendServiceRequest request = new PatchBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
BackendServiceResource = new BackendService(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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(PatchBackendServiceRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchBackendServiceRequest request, CancellationToken cancellationToken)
Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
Parameters | |
---|---|
Name | Description |
request | PatchBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
PatchBackendServiceRequest request = new PatchBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
BackendServiceResource = new BackendService(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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, BackendService, CallSettings)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string backendService, BackendService backendServiceResource, CallSettings callSettings = null)
Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. 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. |
backendService | string Name of the BackendService resource to patch. |
backendServiceResource | BackendService The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
BackendService backendServiceResource = new BackendService();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.PatchAsync(project, backendService, backendServiceResource);
// 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 backendServicesClient.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, BackendService, CancellationToken)
public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string backendService, BackendService backendServiceResource, CancellationToken cancellationToken)
Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. 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. |
backendService | string Name of the BackendService resource to patch. |
backendServiceResource | BackendService The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
BackendService backendServiceResource = new BackendService();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.PatchAsync(project, backendService, backendServiceResource);
// 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 backendServicesClient.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 |
OperationOperationOperation | The result of polling the operation. |
PollOnceAddSignedUrlKeyAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceAddSignedUrlKeyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
AddSignedUrlKey
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOnceDelete(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceDelete(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Delete
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceDeleteAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceDeleteAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Delete
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOnceDeleteSignedUrlKey(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceDeleteSignedUrlKey(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteSignedUrlKey
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceDeleteSignedUrlKeyAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceDeleteSignedUrlKeyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteSignedUrlKey
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOnceInsert(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceInsert(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Insert
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceInsertAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceInsertAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Insert
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOncePatch(string, CallSettings)
public virtual Operation<Operation, Operation> PollOncePatch(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Patch
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOncePatchAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOncePatchAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Patch
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOnceSetEdgeSecurityPolicy(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceSetEdgeSecurityPolicy(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of SetEdgeSecurityPolicy
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceSetEdgeSecurityPolicyAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceSetEdgeSecurityPolicyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
SetEdgeSecurityPolicy
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOnceSetSecurityPolicy(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceSetSecurityPolicy(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of SetSecurityPolicy
.
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 |
OperationOperationOperation | The result of polling the operation. |
PollOnceSetSecurityPolicyAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceSetSecurityPolicyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
SetSecurityPolicy
.
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 |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
PollOnceUpdate(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceUpdate(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Update
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The result of polling the operation. |
PollOnceUpdateAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceUpdateAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Update
.
Parameters | |
---|---|
Name | Description |
operationName | string The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A task representing the result of polling the operation. |
SetEdgeSecurityPolicy(SetEdgeSecurityPolicyBackendServiceRequest, CallSettings)
public virtual Operation<Operation, Operation> SetEdgeSecurityPolicy(SetEdgeSecurityPolicyBackendServiceRequest request, CallSettings callSettings = null)
Sets the edge security policy for the specified backend service.
Parameters | |
---|---|
Name | Description |
request | SetEdgeSecurityPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
SetEdgeSecurityPolicyBackendServiceRequest request = new SetEdgeSecurityPolicyBackendServiceRequest
{
RequestId = "",
SecurityPolicyReferenceResource = new SecurityPolicyReference(),
Project = "",
BackendService = "",
};
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.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 = backendServicesClient.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 backendService, SecurityPolicyReference securityPolicyReferenceResource, CallSettings callSettings = null)
Sets the edge security policy for the specified backend service.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035. |
securityPolicyReferenceResource | SecurityPolicyReference The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string backendService = "";
SecurityPolicyReference securityPolicyReferenceResource = new SecurityPolicyReference();
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.SetEdgeSecurityPolicy(project, backendService, 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 = backendServicesClient.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(SetEdgeSecurityPolicyBackendServiceRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> SetEdgeSecurityPolicyAsync(SetEdgeSecurityPolicyBackendServiceRequest request, CallSettings callSettings = null)
Sets the edge security policy for the specified backend service.
Parameters | |
---|---|
Name | Description |
request | SetEdgeSecurityPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
SetEdgeSecurityPolicyBackendServiceRequest request = new SetEdgeSecurityPolicyBackendServiceRequest
{
RequestId = "",
SecurityPolicyReferenceResource = new SecurityPolicyReference(),
Project = "",
BackendService = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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(SetEdgeSecurityPolicyBackendServiceRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> SetEdgeSecurityPolicyAsync(SetEdgeSecurityPolicyBackendServiceRequest request, CancellationToken cancellationToken)
Sets the edge security policy for the specified backend service.
Parameters | |
---|---|
Name | Description |
request | SetEdgeSecurityPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
SetEdgeSecurityPolicyBackendServiceRequest request = new SetEdgeSecurityPolicyBackendServiceRequest
{
RequestId = "",
SecurityPolicyReferenceResource = new SecurityPolicyReference(),
Project = "",
BackendService = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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 backendService, SecurityPolicyReference securityPolicyReferenceResource, CallSettings callSettings = null)
Sets the edge security policy for the specified backend service.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035. |
securityPolicyReferenceResource | SecurityPolicyReference The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
SecurityPolicyReference securityPolicyReferenceResource = new SecurityPolicyReference();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.SetEdgeSecurityPolicyAsync(project, backendService, 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 backendServicesClient.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 backendService, SecurityPolicyReference securityPolicyReferenceResource, CancellationToken cancellationToken)
Sets the edge security policy for the specified backend service.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035. |
securityPolicyReferenceResource | SecurityPolicyReference The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
SecurityPolicyReference securityPolicyReferenceResource = new SecurityPolicyReference();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.SetEdgeSecurityPolicyAsync(project, backendService, 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 backendServicesClient.PollOnceSetEdgeSecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
SetIamPolicy(SetIamPolicyBackendServiceRequest, CallSettings)
public virtual Policy SetIamPolicy(SetIamPolicyBackendServiceRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
SetIamPolicyBackendServiceRequest request = new SetIamPolicyBackendServiceRequest
{
Resource = "",
Project = "",
GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = backendServicesClient.SetIamPolicy(request);
SetIamPolicy(string, string, GlobalSetPolicyRequest, CallSettings)
public virtual Policy SetIamPolicy(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
resource | string Name or id of the resource for this request. |
globalSetPolicyRequestResource | GlobalSetPolicyRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = backendServicesClient.SetIamPolicy(project, resource, globalSetPolicyRequestResource);
SetIamPolicyAsync(SetIamPolicyBackendServiceRequest, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyBackendServiceRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyBackendServiceRequest request = new SetIamPolicyBackendServiceRequest
{
Resource = "",
Project = "",
GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = await backendServicesClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(SetIamPolicyBackendServiceRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyBackendServiceRequest request, CancellationToken cancellationToken)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyBackendServiceRequest request = new SetIamPolicyBackendServiceRequest
{
Resource = "",
Project = "",
GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = await backendServicesClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(string, string, GlobalSetPolicyRequest, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
resource | string Name or id of the resource for this request. |
globalSetPolicyRequestResource | GlobalSetPolicyRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = await backendServicesClient.SetIamPolicyAsync(project, resource, globalSetPolicyRequestResource);
SetIamPolicyAsync(string, string, GlobalSetPolicyRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CancellationToken cancellationToken)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
resource | string Name or id of the resource for this request. |
globalSetPolicyRequestResource | GlobalSetPolicyRequest The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = await backendServicesClient.SetIamPolicyAsync(project, resource, globalSetPolicyRequestResource);
SetSecurityPolicy(SetSecurityPolicyBackendServiceRequest, CallSettings)
public virtual Operation<Operation, Operation> SetSecurityPolicy(SetSecurityPolicyBackendServiceRequest request, CallSettings callSettings = null)
Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
Parameters | |
---|---|
Name | Description |
request | SetSecurityPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
SetSecurityPolicyBackendServiceRequest request = new SetSecurityPolicyBackendServiceRequest
{
RequestId = "",
SecurityPolicyReferenceResource = new SecurityPolicyReference(),
Project = "",
BackendService = "",
};
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.SetSecurityPolicy(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 = backendServicesClient.PollOnceSetSecurityPolicy(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;
}
SetSecurityPolicy(string, string, SecurityPolicyReference, CallSettings)
public virtual Operation<Operation, Operation> SetSecurityPolicy(string project, string backendService, SecurityPolicyReference securityPolicyReferenceResource, CallSettings callSettings = null)
Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | 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 |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string backendService = "";
SecurityPolicyReference securityPolicyReferenceResource = new SecurityPolicyReference();
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.SetSecurityPolicy(project, backendService, 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 = backendServicesClient.PollOnceSetSecurityPolicy(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;
}
SetSecurityPolicyAsync(SetSecurityPolicyBackendServiceRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> SetSecurityPolicyAsync(SetSecurityPolicyBackendServiceRequest request, CallSettings callSettings = null)
Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
Parameters | |
---|---|
Name | Description |
request | SetSecurityPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
SetSecurityPolicyBackendServiceRequest request = new SetSecurityPolicyBackendServiceRequest
{
RequestId = "",
SecurityPolicyReferenceResource = new SecurityPolicyReference(),
Project = "",
BackendService = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.SetSecurityPolicyAsync(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 backendServicesClient.PollOnceSetSecurityPolicyAsync(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;
}
SetSecurityPolicyAsync(SetSecurityPolicyBackendServiceRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> SetSecurityPolicyAsync(SetSecurityPolicyBackendServiceRequest request, CancellationToken cancellationToken)
Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
Parameters | |
---|---|
Name | Description |
request | SetSecurityPolicyBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
SetSecurityPolicyBackendServiceRequest request = new SetSecurityPolicyBackendServiceRequest
{
RequestId = "",
SecurityPolicyReferenceResource = new SecurityPolicyReference(),
Project = "",
BackendService = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.SetSecurityPolicyAsync(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 backendServicesClient.PollOnceSetSecurityPolicyAsync(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;
}
SetSecurityPolicyAsync(string, string, SecurityPolicyReference, CallSettings)
public virtual Task<Operation<Operation, Operation>> SetSecurityPolicyAsync(string project, string backendService, SecurityPolicyReference securityPolicyReferenceResource, CallSettings callSettings = null)
Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
SecurityPolicyReference securityPolicyReferenceResource = new SecurityPolicyReference();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.SetSecurityPolicyAsync(project, backendService, 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 backendServicesClient.PollOnceSetSecurityPolicyAsync(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;
}
SetSecurityPolicyAsync(string, string, SecurityPolicyReference, CancellationToken)
public virtual Task<Operation<Operation, Operation>> SetSecurityPolicyAsync(string project, string backendService, SecurityPolicyReference securityPolicyReferenceResource, CancellationToken cancellationToken)
Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
SecurityPolicyReference securityPolicyReferenceResource = new SecurityPolicyReference();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.SetSecurityPolicyAsync(project, backendService, 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 backendServicesClient.PollOnceSetSecurityPolicyAsync(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.
TestIamPermissions(TestIamPermissionsBackendServiceRequest, CallSettings)
public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsBackendServiceRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
TestIamPermissionsBackendServiceRequest request = new TestIamPermissionsBackendServiceRequest
{
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = backendServicesClient.TestIamPermissions(request);
TestIamPermissions(string, string, TestPermissionsRequest, CallSettings)
public virtual TestPermissionsResponse TestIamPermissions(string project, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
resource | string Name or id of the resource for this request. |
testPermissionsRequestResource | TestPermissionsRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = backendServicesClient.TestIamPermissions(project, resource, testPermissionsRequestResource);
TestIamPermissionsAsync(TestIamPermissionsBackendServiceRequest, CallSettings)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsBackendServiceRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTestPermissionsResponse | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsBackendServiceRequest request = new TestIamPermissionsBackendServiceRequest
{
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await backendServicesClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(TestIamPermissionsBackendServiceRequest, CancellationToken)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsBackendServiceRequest request, CancellationToken cancellationToken)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTestPermissionsResponse | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsBackendServiceRequest request = new TestIamPermissionsBackendServiceRequest
{
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await backendServicesClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(string, string, TestPermissionsRequest, CallSettings)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
resource | string Name or id of the resource for this request. |
testPermissionsRequestResource | TestPermissionsRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTestPermissionsResponse | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await backendServicesClient.TestIamPermissionsAsync(project, resource, testPermissionsRequestResource);
TestIamPermissionsAsync(string, string, TestPermissionsRequest, CancellationToken)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string resource, TestPermissionsRequest testPermissionsRequestResource, CancellationToken cancellationToken)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
resource | string Name or id of the resource for this request. |
testPermissionsRequestResource | TestPermissionsRequest The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTestPermissionsResponse | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await backendServicesClient.TestIamPermissionsAsync(project, resource, testPermissionsRequestResource);
Update(UpdateBackendServiceRequest, CallSettings)
public virtual Operation<Operation, Operation> Update(UpdateBackendServiceRequest request, CallSettings callSettings = null)
Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.
Parameters | |
---|---|
Name | Description |
request | UpdateBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
UpdateBackendServiceRequest request = new UpdateBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
BackendServiceResource = new BackendService(),
};
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.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 = backendServicesClient.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, BackendService, CallSettings)
public virtual Operation<Operation, Operation> Update(string project, string backendService, BackendService backendServiceResource, CallSettings callSettings = null)
Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to update. |
backendServiceResource | BackendService The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationOperationOperation | The RPC response. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string backendService = "";
BackendService backendServiceResource = new BackendService();
// Make the request
lro::Operation<Operation, Operation> response = backendServicesClient.Update(project, backendService, backendServiceResource);
// 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 = backendServicesClient.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(UpdateBackendServiceRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> UpdateAsync(UpdateBackendServiceRequest request, CallSettings callSettings = null)
Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.
Parameters | |
---|---|
Name | Description |
request | UpdateBackendServiceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateBackendServiceRequest request = new UpdateBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
BackendServiceResource = new BackendService(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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(UpdateBackendServiceRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> UpdateAsync(UpdateBackendServiceRequest request, CancellationToken cancellationToken)
Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.
Parameters | |
---|---|
Name | Description |
request | UpdateBackendServiceRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateBackendServiceRequest request = new UpdateBackendServiceRequest
{
RequestId = "",
Project = "",
BackendService = "",
BackendServiceResource = new BackendService(),
};
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.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 backendServicesClient.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, BackendService, CallSettings)
public virtual Task<Operation<Operation, Operation>> UpdateAsync(string project, string backendService, BackendService backendServiceResource, CallSettings callSettings = null)
Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to update. |
backendServiceResource | BackendService The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
BackendService backendServiceResource = new BackendService();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.UpdateAsync(project, backendService, backendServiceResource);
// 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 backendServicesClient.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, BackendService, CancellationToken)
public virtual Task<Operation<Operation, Operation>> UpdateAsync(string project, string backendService, BackendService backendServiceResource, CancellationToken cancellationToken)
Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.
Parameters | |
---|---|
Name | Description |
project | string Project ID for this request. |
backendService | string Name of the BackendService resource to update. |
backendServiceResource | BackendService The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationOperationOperation | A Task containing the RPC response. |
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
BackendService backendServiceResource = new BackendService();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.UpdateAsync(project, backendService, backendServiceResource);
// 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 backendServicesClient.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;
}