Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.CustomJobsResource.CancelRequest

Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetCustomJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job with a CustomJob.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED, and CustomJob.state is set to CANCELLED.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleProtobufEmpty>
AiplatformBaseServiceRequest<GoogleProtobufEmpty>
ProjectsResource.LocationsResource.CustomJobsResource.CancelRequest
Implements
IClientServiceRequest<GoogleProtobufEmpty>
IClientServiceRequest
Inherited Members
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.Xgafv
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.AccessToken
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.Alt
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.Callback
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.Fields
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.Key
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.OauthToken
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.PrettyPrint
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.QuotaUser
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.UploadType
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.UploadProtocol
ClientServiceRequest<GoogleProtobufEmpty>.Execute()
ClientServiceRequest<GoogleProtobufEmpty>.ExecuteAsStream()
ClientServiceRequest<GoogleProtobufEmpty>.ExecuteAsync()
ClientServiceRequest<GoogleProtobufEmpty>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleProtobufEmpty>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleProtobufEmpty>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleProtobufEmpty>.CreateRequest(bool?)
ClientServiceRequest<GoogleProtobufEmpty>.GenerateRequestUri()
ClientServiceRequest<GoogleProtobufEmpty>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleProtobufEmpty>.ETagAction
ClientServiceRequest<GoogleProtobufEmpty>.ModifyRequest
ClientServiceRequest<GoogleProtobufEmpty>.ValidateParameters
ClientServiceRequest<GoogleProtobufEmpty>.ApiVersion
ClientServiceRequest<GoogleProtobufEmpty>.RequestParameters
ClientServiceRequest<GoogleProtobufEmpty>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Aiplatform.v1
Assembly: Google.Apis.Aiplatform.v1.dll
Syntax
public class ProjectsResource.LocationsResource.CustomJobsResource.CancelRequest : AiplatformBaseServiceRequest<GoogleProtobufEmpty>, IClientServiceRequest<GoogleProtobufEmpty>, IClientServiceRequest

Constructors

CancelRequest(IClientService, GoogleCloudAiplatformV1CancelCustomJobRequest, string)

Constructs a new Cancel request.

Declaration
public CancelRequest(IClientService service, GoogleCloudAiplatformV1CancelCustomJobRequest body, string name)
Parameters
Type Name Description
IClientService service
GoogleCloudAiplatformV1CancelCustomJobRequest body
string name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleProtobufEmpty>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleProtobufEmpty>.MethodName

Name

Required. The name of the CustomJob to cancel. Format: projects/{project}/locations/{location}/customJobs/{custom_job}

Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleProtobufEmpty>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<GoogleProtobufEmpty>.GetBody()

InitParameters()

Initializes Cancel parameter list.

Declaration
protected override void InitParameters()
Overrides
AiplatformBaseServiceRequest<GoogleProtobufEmpty>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX