public abstract 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 |
IReadOnlyList<String> |
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 |
BackendServices.BackendServicesClient |
InsertOperationsClient
public virtual OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchOperationsClient
public virtual OperationsClient PatchOperationsClient { get; }
The long-running operations client for Patch
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
SetEdgeSecurityPolicyOperationsClient
public virtual OperationsClient SetEdgeSecurityPolicyOperationsClient { get; }
The long-running operations client for SetEdgeSecurityPolicy
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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.
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 |
PagedEnumerable<BackendServiceAggregatedList, KeyValuePair<String, BackendServicesScopedList>> | A pageable sequence of KeyValuePair<TKey,TValue> resources. |
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
AggregatedListBackendServicesRequest request = new AggregatedListBackendServicesRequest
{
OrderBy = "",
Project = "",
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, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> AggregatedList(string project, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Retrieves the list of all BackendService resources, regional and global, available to the specified project.
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 | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<BackendServiceAggregatedList, KeyValuePair<String, BackendServicesScopedList>> | 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.
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 |
PagedAsyncEnumerable<BackendServiceAggregatedList, KeyValuePair<String, BackendServicesScopedList>> | 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 = "",
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, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> AggregatedListAsync(string project, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Retrieves the list of all BackendService resources, regional and global, available to the specified project.
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 | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<BackendServiceAggregatedList, KeyValuePair<String, BackendServicesScopedList>> | 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(CancellationToken))
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 |
Task<BackendServicesClient> | 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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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. Gets a list of available backend services.
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. Gets a list of available backend services.
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. Gets a list of available backend services.
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 |
Task<BackendService> | 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. Gets a list of available backend services.
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 |
Task<BackendService> | 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. Gets a list of available backend services.
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 |
Task<BackendService> | 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. Gets a list of available backend services.
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 |
Task<BackendService> | 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 |
Task<BackendServiceGroupHealth> | 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 |
Task<BackendServiceGroupHealth> | 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 |
Task<BackendServiceGroupHealth> | 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 |
Task<BackendServiceGroupHealth> | 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);
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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
PagedEnumerable<BackendServiceList, BackendService> | 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, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<BackendServiceList, BackendService> List(string project, string pageToken = null, int? pageSize = default(int? ), 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 | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<BackendServiceList, BackendService> | 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 |
PagedAsyncEnumerable<BackendServiceList, BackendService> | 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, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<BackendServiceList, BackendService> ListAsync(string project, string pageToken = null, int? pageSize = default(int? ), 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 | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<BackendServiceList, BackendService> | 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;
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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceAddSignedUrlKeyAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceAddSignedUrlKeyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
AddSignedUrlKey
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOnceDelete(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceDelete(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Delete
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceDeleteAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceDeleteAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Delete
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOnceDeleteSignedUrlKey(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceDeleteSignedUrlKey(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteSignedUrlKey
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceDeleteSignedUrlKeyAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceDeleteSignedUrlKeyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteSignedUrlKey
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOnceInsert(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceInsert(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Insert
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceInsertAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceInsertAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Insert
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOncePatch(String, CallSettings)
public virtual Operation<Operation, Operation> PollOncePatch(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Patch
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOncePatchAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOncePatchAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Patch
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOnceSetEdgeSecurityPolicy(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceSetEdgeSecurityPolicy(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of SetEdgeSecurityPolicy
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceSetEdgeSecurityPolicyAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceSetEdgeSecurityPolicyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
SetEdgeSecurityPolicy
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
PollOnceUpdate(String, CallSettings)
public virtual Operation<Operation, Operation> PollOnceUpdate(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of Update
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The result of polling the operation. |
PollOnceUpdateAsync(String, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceUpdateAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of Update
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A task representing the result of polling the operation. |
SetEdgeSecurityPolicy(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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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;
}
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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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.
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 |
Operation<Operation, Operation> | 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 |
Operation<Operation, Operation> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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 |
Task<Operation<Operation, Operation>> | 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;
}