Class OperationCancelRequest
- Namespace
- Uralstech.UCloud.Operations
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.
public class OperationCancelRequest : IOperationsPostRequest, IOperationsRequest
- Inheritance
-
OperationCancelRequest
- Implements
Remarks
Clients can use OperationGetRequest or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Error value with
a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
Constructors
OperationCancelRequest(string)
Creates a new OperationCancelRequest.
public OperationCancelRequest(string operationName)
Parameters
operationName
stringThe resource name of the operation to cancel.
Fields
OperationName
The resource name of the operation to cancel.
public string OperationName
Field Value
Properties
BaseServiceUri
The base endpoint URI for the request.
public string BaseServiceUri { get; set; }
Property Value
Remarks
This may be a specific service endpoint which contains the operations.
Methods
GetEndpointUri()
Gets the URI to the API endpoint.
public string GetEndpointUri()
Returns
- string
The URI.