Class JobsResource.CancelRequest
Requests that a job be cancelled. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully. Cancelled jobs may still incur costs.
Inheritance
Inherited Members
Namespace: Google.Apis.Bigquery.v2
Assembly: Google.Apis.Bigquery.v2.dll
Syntax
public class JobsResource.CancelRequest : BigqueryBaseServiceRequest<JobCancelResponse>, IClientServiceRequest<JobCancelResponse>, IClientServiceRequest
Constructors
CancelRequest(IClientService, string, string)
Constructs a new Cancel request.
Declaration
public CancelRequest(IClientService service, string projectId, string jobId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | projectId | |
string | jobId |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
JobId
Required. Job ID of the job to cancel
Declaration
[RequestParameter("jobId", RequestParameterType.Path)]
public virtual string JobId { get; }
Property Value
Type | Description |
---|---|
string |
Location
The geographic location of the job. You must specify the location to run the job for the following
scenarios: * If the location to run a job is not in the us
or the eu
multi-regional location * If
the job's location is in a single region (for example, us-central1
) For more information, see
https://cloud.google.com/bigquery/docs/locations#specifying_your_location.
Declaration
[RequestParameter("location", RequestParameterType.Query)]
public virtual string Location { get; set; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ProjectId
Required. Project ID of the job to cancel
Declaration
[RequestParameter("projectId", RequestParameterType.Path)]
public virtual string ProjectId { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes Cancel parameter list.
Declaration
protected override void InitParameters()