Class ProjectsResource.LocationsResource.PipelineJobsResource.CancelRequest
Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. The server makes a best
effort to cancel the pipeline, but success is not guaranteed. Clients can use
PipelineService.GetPipelineJob or other methods to check whether the cancellation succeeded or
whether the pipeline completed despite cancellation. On successful cancellation, the PipelineJob is
not deleted; instead it becomes a pipeline with a PipelineJob.error value with a
google.rpc.Status.code of 1, corresponding to Code.CANCELLED
, and PipelineJob.state is set to
CANCELLED
.
Inheritance
Inherited Members
Namespace: Google.Apis.Aiplatform.v1
Assembly: Google.Apis.Aiplatform.v1.dll
Syntax
public class ProjectsResource.LocationsResource.PipelineJobsResource.CancelRequest : AiplatformBaseServiceRequest<GoogleProtobufEmpty>, IClientServiceRequest<GoogleProtobufEmpty>, IClientServiceRequest
Constructors
CancelRequest(IClientService, GoogleCloudAiplatformV1CancelPipelineJobRequest, string)
Constructs a new Cancel request.
Declaration
public CancelRequest(IClientService service, GoogleCloudAiplatformV1CancelPipelineJobRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudAiplatformV1CancelPipelineJobRequest | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. The name of the PipelineJob to cancel. Format:
projects/{project}/locations/{location}/pipelineJobs/{pipeline_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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Cancel parameter list.
Declaration
protected override void InitParameters()