Compute Engine v1 API - Class BackendServicesClient (2.11.0)

public abstract class BackendServicesClient

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

BackendServices client wrapper, for convenient use.

Inheritance

object > BackendServicesClient

Namespace

Google.Cloud.Compute.V1

Assembly

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
TypeDescription
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
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default BackendServices scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

DeleteOperationsClient

public virtual OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient

DeleteSignedUrlKeyOperationsClient

public virtual OperationsClient DeleteSignedUrlKeyOperationsClient { get; }

The long-running operations client for DeleteSignedUrlKey.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual BackendServices.BackendServicesClient GrpcClient { get; }

The underlying gRPC BackendServices client

Property Value
TypeDescription
BackendServicesBackendServicesClient

InsertOperationsClient

public virtual OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient

PatchOperationsClient

public virtual OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

SetEdgeSecurityPolicyOperationsClient

public virtual OperationsClient SetEdgeSecurityPolicyOperationsClient { get; }

The long-running operations client for SetEdgeSecurityPolicy.

Property Value
TypeDescription
OperationsClient

SetSecurityPolicyOperationsClient

public virtual OperationsClient SetSecurityPolicyOperationsClient { get; }

The long-running operations client for SetSecurityPolicy.

Property Value
TypeDescription
OperationsClient

UpdateOperationsClient

public virtual OperationsClient UpdateOperationsClient { get; }

The long-running operations client for Update.

Property Value
TypeDescription
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
NameDescription
requestAddSignedUrlKeyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

signedUrlKeyResourceSignedUrlKey

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
requestAddSignedUrlKeyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
requestAddSignedUrlKeyBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

signedUrlKeyResourceSignedUrlKey

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

signedUrlKeyResourceSignedUrlKey

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
requestAggregatedListBackendServicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableBackendServiceAggregatedListKeyValuePairstringBackendServicesScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Example
// 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, int?, CallSettings)

public virtual PagedEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> AggregatedList(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of all BackendService resources, regional and global, available to the specified project.

Parameters
NameDescription
projectstring

Name of the project scoping this request.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableBackendServiceAggregatedListKeyValuePairstringBackendServicesScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Example
// 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
NameDescription
requestAggregatedListBackendServicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableBackendServiceAggregatedListKeyValuePairstringBackendServicesScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Example
// 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, int?, CallSettings)

public virtual PagedAsyncEnumerable<BackendServiceAggregatedList, KeyValuePair<string, BackendServicesScopedList>> AggregatedListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves the list of all BackendService resources, regional and global, available to the specified project.

Parameters
NameDescription
projectstring

Name of the project scoping this request.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableBackendServiceAggregatedListKeyValuePairstringBackendServicesScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Example
// 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
TypeDescription
BackendServicesClient

The created BackendServicesClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskBackendServicesClient

The task representing the created BackendServicesClient.

Delete(DeleteBackendServiceRequest, CallSettings)

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

Deletes the specified BackendService resource.

Parameters
NameDescription
requestDeleteBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
requestDeleteBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
requestDeleteBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
requestDeleteSignedUrlKeyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

keyNamestring

The name of the Signed URL Key to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
requestDeleteSignedUrlKeyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
requestDeleteSignedUrlKeyBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

keyNamestring

The name of the Signed URL Key to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

keyNamestring

The name of the Signed URL Key to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await backendServicesClient.PollOnceDeleteSignedUrlKeyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

Get(GetBackendServiceRequest, CallSettings)

public virtual BackendService Get(GetBackendServiceRequest request, CallSettings callSettings = null)

Returns the specified BackendService resource.

Parameters
NameDescription
requestGetBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BackendService

The RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
GetBackendServiceRequest request = new GetBackendServiceRequest
{
    Project = "",
    BackendService = "",
};
// Make the request
BackendService response = backendServicesClient.Get(request);

Get(string, string, CallSettings)

public virtual BackendService Get(string project, string backendService, CallSettings callSettings = null)

Returns the specified BackendService resource.

Parameters
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to return.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BackendService

The RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string backendService = "";
// Make the request
BackendService response = backendServicesClient.Get(project, backendService);

GetAsync(GetBackendServiceRequest, CallSettings)

public virtual Task<BackendService> GetAsync(GetBackendServiceRequest request, CallSettings callSettings = null)

Returns the specified BackendService resource.

Parameters
NameDescription
requestGetBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBackendService

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
GetBackendServiceRequest request = new GetBackendServiceRequest
{
    Project = "",
    BackendService = "",
};
// Make the request
BackendService response = await backendServicesClient.GetAsync(request);

GetAsync(GetBackendServiceRequest, CancellationToken)

public virtual Task<BackendService> GetAsync(GetBackendServiceRequest request, CancellationToken cancellationToken)

Returns the specified BackendService resource.

Parameters
NameDescription
requestGetBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBackendService

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
GetBackendServiceRequest request = new GetBackendServiceRequest
{
    Project = "",
    BackendService = "",
};
// Make the request
BackendService response = await backendServicesClient.GetAsync(request);

GetAsync(string, string, CallSettings)

public virtual Task<BackendService> GetAsync(string project, string backendService, CallSettings callSettings = null)

Returns the specified BackendService resource.

Parameters
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to return.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBackendService

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
// Make the request
BackendService response = await backendServicesClient.GetAsync(project, backendService);

GetAsync(string, string, CancellationToken)

public virtual Task<BackendService> GetAsync(string project, string backendService, CancellationToken cancellationToken)

Returns the specified BackendService resource.

Parameters
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to return.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBackendService

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetHealthBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BackendServiceGroupHealth

The RPC response.

Example
// 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
NameDescription
projectstring
backendServicestring

Name of the BackendService resource to which the queried instance belongs.

resourceGroupReferenceResourceResourceGroupReference

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BackendServiceGroupHealth

The RPC response.

Example
// 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
NameDescription
requestGetHealthBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBackendServiceGroupHealth

A Task containing the RPC response.

Example
// 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
NameDescription
requestGetHealthBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBackendServiceGroupHealth

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring
backendServicestring

Name of the BackendService resource to which the queried instance belongs.

resourceGroupReferenceResourceResourceGroupReference

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBackendServiceGroupHealth

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring
backendServicestring

Name of the BackendService resource to which the queried instance belongs.

resourceGroupReferenceResourceResourceGroupReference

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBackendServiceGroupHealth

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
ResourceGroupReference resourceGroupReferenceResource = new ResourceGroupReference();
// Make the request
BackendServiceGroupHealth response = await backendServicesClient.GetHealthAsync(project, backendService, resourceGroupReferenceResource);

GetIamPolicy(GetIamPolicyBackendServiceRequest, CallSettings)

public virtual Policy GetIamPolicy(GetIamPolicyBackendServiceRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
GetIamPolicyBackendServiceRequest request = new GetIamPolicyBackendServiceRequest
{
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = backendServicesClient.GetIamPolicy(request);

GetIamPolicy(string, string, CallSettings)

public virtual Policy GetIamPolicy(string project, string resource, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
projectstring

Project ID for this request.

resourcestring

Name or id of the resource for this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = backendServicesClient.GetIamPolicy(project, resource);

GetIamPolicyAsync(GetIamPolicyBackendServiceRequest, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyBackendServiceRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyBackendServiceRequest request = new GetIamPolicyBackendServiceRequest
{
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await backendServicesClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(GetIamPolicyBackendServiceRequest, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyBackendServiceRequest request, CancellationToken cancellationToken)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyBackendServiceRequest request = new GetIamPolicyBackendServiceRequest
{
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await backendServicesClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(string, string, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(string project, string resource, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
projectstring

Project ID for this request.

resourcestring

Name or id of the resource for this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = await backendServicesClient.GetIamPolicyAsync(project, resource);

GetIamPolicyAsync(string, string, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(string project, string resource, CancellationToken cancellationToken)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
projectstring

Project ID for this request.

resourcestring

Name or id of the resource for this request.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
// Make the request
Policy response = await backendServicesClient.GetIamPolicyAsync(project, resource);

Insert(InsertBackendServiceRequest, CallSettings)

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

Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview .

Parameters
NameDescription
requestInsertBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServiceResourceBackendService

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
requestInsertBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
requestInsertBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServiceResourceBackendService

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServiceResourceBackendService

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
requestListBackendServicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableBackendServiceListBackendService

A pageable sequence of BackendService resources.

Example
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
ListBackendServicesRequest request = new ListBackendServicesRequest
{
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<BackendServiceList, BackendService> response = backendServicesClient.List(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (BackendService item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (BackendServiceList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendService item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendService> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendService item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

List(string, string, int?, CallSettings)

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

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

Parameters
NameDescription
projectstring

Project ID for this request.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableBackendServiceListBackendService

A pageable sequence of BackendService resources.

Example
// 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
NameDescription
requestListBackendServicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableBackendServiceListBackendService

A pageable asynchronous sequence of BackendService resources.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
ListBackendServicesRequest request = new ListBackendServicesRequest
{
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<BackendServiceList, BackendService> response = backendServicesClient.ListAsync(request);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((BackendServiceList page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendService item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendService> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendService item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAsync(string, string, int?, CallSettings)

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

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

Parameters
NameDescription
projectstring

Project ID for this request.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableBackendServiceListBackendService

A pageable asynchronous sequence of BackendService resources.

Example
// 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
NameDescription
requestPatchBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to patch.

backendServiceResourceBackendService

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
requestPatchBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
requestPatchBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to patch.

backendServiceResourceBackendService

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to patch.

backendServiceResourceBackendService

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceAddSignedUrlKeyAsync(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceDelete(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceDeleteAsync(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceDeleteSignedUrlKey(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceDeleteSignedUrlKeyAsync(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceInsert(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceInsertAsync(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOncePatch(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOncePatchAsync(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceSetEdgeSecurityPolicy(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceSetEdgeSecurityPolicyAsync(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceSetSecurityPolicy(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceSetSecurityPolicyAsync(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceUpdate(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceUpdateAsync(string, CallSettings)

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

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

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

SetEdgeSecurityPolicy(SetEdgeSecurityPolicyBackendServiceRequest, CallSettings)

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

Sets the edge security policy for the specified backend service.

Parameters
NameDescription
requestSetEdgeSecurityPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

securityPolicyReferenceResourceSecurityPolicyReference

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
requestSetEdgeSecurityPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
requestSetEdgeSecurityPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

securityPolicyReferenceResourceSecurityPolicyReference

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

securityPolicyReferenceResourceSecurityPolicyReference

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string backendService = "";
SecurityPolicyReference securityPolicyReferenceResource = new SecurityPolicyReference();
// Make the request
lro::Operation<Operation, Operation> response = await backendServicesClient.SetEdgeSecurityPolicyAsync(project, backendService, securityPolicyReferenceResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await backendServicesClient.PollOnceSetEdgeSecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

SetIamPolicy(SetIamPolicyBackendServiceRequest, CallSettings)

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

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

Parameters
NameDescription
requestSetIamPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
SetIamPolicyBackendServiceRequest request = new SetIamPolicyBackendServiceRequest
{
    Resource = "",
    Project = "",
    GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = backendServicesClient.SetIamPolicy(request);

SetIamPolicy(string, string, GlobalSetPolicyRequest, CallSettings)

public virtual Policy SetIamPolicy(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CallSettings callSettings = null)

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

Parameters
NameDescription
projectstring

Project ID for this request.

resourcestring

Name or id of the resource for this request.

globalSetPolicyRequestResourceGlobalSetPolicyRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = BackendServicesClient.Create();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = backendServicesClient.SetIamPolicy(project, resource, globalSetPolicyRequestResource);

SetIamPolicyAsync(SetIamPolicyBackendServiceRequest, CallSettings)

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

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

Parameters
NameDescription
requestSetIamPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyBackendServiceRequest request = new SetIamPolicyBackendServiceRequest
{
    Resource = "",
    Project = "",
    GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = await backendServicesClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(SetIamPolicyBackendServiceRequest, CancellationToken)

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

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

Parameters
NameDescription
requestSetIamPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyBackendServiceRequest request = new SetIamPolicyBackendServiceRequest
{
    Resource = "",
    Project = "",
    GlobalSetPolicyRequestResource = new GlobalSetPolicyRequest(),
};
// Make the request
Policy response = await backendServicesClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(string, string, GlobalSetPolicyRequest, CallSettings)

public virtual Task<Policy> SetIamPolicyAsync(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CallSettings callSettings = null)

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

Parameters
NameDescription
projectstring

Project ID for this request.

resourcestring

Name or id of the resource for this request.

globalSetPolicyRequestResourceGlobalSetPolicyRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = await backendServicesClient.SetIamPolicyAsync(project, resource, globalSetPolicyRequestResource);

SetIamPolicyAsync(string, string, GlobalSetPolicyRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(string project, string resource, GlobalSetPolicyRequest globalSetPolicyRequestResource, CancellationToken cancellationToken)

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

Parameters
NameDescription
projectstring

Project ID for this request.

resourcestring

Name or id of the resource for this request.

globalSetPolicyRequestResourceGlobalSetPolicyRequest

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
BackendServicesClient backendServicesClient = await BackendServicesClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string resource = "";
GlobalSetPolicyRequest globalSetPolicyRequestResource = new GlobalSetPolicyRequest();
// Make the request
Policy response = await backendServicesClient.SetIamPolicyAsync(project, resource, globalSetPolicyRequestResource);

SetSecurityPolicy(SetSecurityPolicyBackendServiceRequest, CallSettings)

public virtual Operation<Operation, Operation> SetSecurityPolicy(SetSecurityPolicyBackendServiceRequest request, CallSettings callSettings = null)

Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview

Parameters
NameDescription
requestSetSecurityPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

securityPolicyReferenceResourceSecurityPolicyReference

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
requestSetSecurityPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
requestSetSecurityPolicyBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

securityPolicyReferenceResourceSecurityPolicyReference

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

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

securityPolicyReferenceResourceSecurityPolicyReference

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

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
NameDescription
requestUpdateBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to update.

backendServiceResourceBackendService

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// 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
NameDescription
requestUpdateBackendServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
requestUpdateBackendServiceRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to update.

backendServiceResourceBackendService

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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
NameDescription
projectstring

Project ID for this request.

backendServicestring

Name of the BackendService resource to update.

backendServiceResourceBackendService

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// 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;
}