Class OperationsManager
- Namespace
- Uralstech.UCloud.Operations
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
stringThe OAuth Access Token to use for authentication.
request
IOperationsDeleteRequestThe request object.
Returns
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
stringThe OAuth Access Token to use for authentication.
request
IOperationsPostRequestThe request object.
Returns
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
stringThe OAuth Access Token to use for authentication.
request
IOperationsGetRequestThe 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.