Class OperationsResource.CancelRequest
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the
operation, but success is not guaranteed. If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation 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 Operation.error value
with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
Inheritance
System.Object
Google.Apis.Requests.ClientServiceRequest
Google.Apis.Requests.ClientServiceRequest<
Empty>
OperationsResource.CancelRequest
Implements
Google.Apis.Requests.IClientServiceRequest<
Empty>
Google.Apis.Requests.IClientServiceRequest
Inherited Members
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.ValidateParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.Service
Google.Apis.Requests.ClientServiceRequest._unsuccessfulResponseHandlers
Google.Apis.Requests.ClientServiceRequest._exceptionHandlers
Google.Apis.Requests.ClientServiceRequest._executeInterceptors
Google.Apis.Requests.ClientServiceRequest.AddUnsuccessfulResponseHandler(Google.Apis.Http.IHttpUnsuccessfulResponseHandler)
Google.Apis.Requests.ClientServiceRequest.AddExceptionHandler(Google.Apis.Http.IHttpExceptionHandler)
Google.Apis.Requests.ClientServiceRequest.AddExecuteInterceptor(Google.Apis.Http.IHttpExecuteInterceptor)
Google.Apis.Requests.ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Google.Apis.Baremetalsolution.v1.dll
public class CancelRequest : BaremetalsolutionBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
Constructs a new Cancel request.
Declaration
public CancelRequest(IClientService service, CancelOperationRequest body, string name)
Parameters
| Type |
Name |
Description |
| Google.Apis.Services.IClientService |
service |
|
| CancelOperationRequest |
body |
|
| System.String |
name |
|
Properties
Declaration
public override string HttpMethod { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.HttpMethod
Declaration
public override string MethodName { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.MethodName
The name of the operation resource to be cancelled.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
public override string RestPath { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type |
Description |
| System.Object |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.GetBody()
Initializes Cancel parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Baremetalsolution.v1.BaremetalsolutionBaseServiceRequest<Google.Apis.Baremetalsolution.v1.Data.Empty>.InitParameters()
Implements
Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest