Table of Contents

Class OperationsManager

The class for accessing the google.longrunning API!

public class OperationsManager : Singleton<OperationsManager>
Inheritance
OperationsManager

Methods

Request(string, IOperationsDeleteRequest)

Computes a DELETE request on the google.longrunning API.

public Task Request(string accessToken, IOperationsDeleteRequest request)

Parameters

accessToken string

The OAuth Access Token to use for authentication.

request IOperationsDeleteRequest

The request object.

Returns

Task

Exceptions

OperationOAuthException

Thrown if the request could not be authenticated.

OperationRequestException

Thrown if the API request fails.

OperationResponseParsingException

Thrown if the response could not be parsed.

Request(string, IOperationsPostRequest)

Computes an empty POST request on the google.longrunning API.

public Task Request(string accessToken, IOperationsPostRequest request)

Parameters

accessToken string

The OAuth Access Token to use for authentication.

request IOperationsPostRequest

The request object.

Returns

Task

Exceptions

OperationOAuthException

Thrown if the request could not be authenticated.

OperationRequestException

Thrown if the API request fails.

OperationResponseParsingException

Thrown if the response could not be parsed.

Request<TResponse>(string, IOperationsGetRequest)

Computes a GET request on the google.longrunning API.

public Task<TResponse> Request<TResponse>(string accessToken, IOperationsGetRequest request)

Parameters

accessToken string

The OAuth Access Token to use for authentication.

request IOperationsGetRequest

The request object.

Returns

Task<TResponse>

The computed response.

Type Parameters

TResponse

The response type. For example, a request of type OperationsListRequest corresponds to a response type of OperationsListResponse or OperationsListResponse<TOperation>.

Exceptions

OperationOAuthException

Thrown if the request could not be authenticated.

OperationRequestException

Thrown if the API request fails.

OperationResponseParsingException

Thrown if the response could not be parsed.