Class ProjectsResource.RegionsResource.JobsResource
The "jobs" collection of methods.
Inherited Members
Namespace: Google.Apis.Dataproc.v1
Assembly: Google.Apis.Dataproc.v1.dll
Syntax
public class ProjectsResource.RegionsResource.JobsResource
Constructors
JobsResource(IClientService)
Constructs a new resource.
Declaration
public JobsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Cancel(CancelJobRequest, string, string, string)
Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) or regions/{region}/jobs.get (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
Declaration
public virtual ProjectsResource.RegionsResource.JobsResource.CancelRequest Cancel(CancelJobRequest body, string projectId, string region, string jobId)
Parameters
Type | Name | Description |
---|---|---|
CancelJobRequest | body | The body of the request. |
string | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
string | jobId | Required. The job ID. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.CancelRequest |
Delete(string, string, string)
Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION.
Declaration
public virtual ProjectsResource.RegionsResource.JobsResource.DeleteRequest Delete(string projectId, string region, string jobId)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
string | jobId | Required. The job ID. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.DeleteRequest |
Get(string, string, string)
Gets the resource representation for a job in a project.
Declaration
public virtual ProjectsResource.RegionsResource.JobsResource.GetRequest Get(string projectId, string region, string jobId)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
string | jobId | Required. The job ID. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.GetRequest |
GetIamPolicy(GetIamPolicyRequest, string)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Declaration
public virtual ProjectsResource.RegionsResource.JobsResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
GetIamPolicyRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.GetIamPolicyRequest |
List(string, string)
Lists regions/{region}/jobs in a project.
Declaration
public virtual ProjectsResource.RegionsResource.JobsResource.ListRequest List(string projectId, string region)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.ListRequest |
Patch(Job, string, string, string)
Updates a job in a project.
Declaration
public virtual ProjectsResource.RegionsResource.JobsResource.PatchRequest Patch(Job body, string projectId, string region, string jobId)
Parameters
Type | Name | Description |
---|---|---|
Job | body | The body of the request. |
string | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
string | jobId | Required. The job ID. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.PatchRequest |
SetIamPolicy(SetIamPolicyRequest, string)
Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Declaration
public virtual ProjectsResource.RegionsResource.JobsResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
SetIamPolicyRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.SetIamPolicyRequest |
Submit(SubmitJobRequest, string, string)
Submits a job to a cluster.
Declaration
public virtual ProjectsResource.RegionsResource.JobsResource.SubmitRequest Submit(SubmitJobRequest body, string projectId, string region)
Parameters
Type | Name | Description |
---|---|---|
SubmitJobRequest | body | The body of the request. |
string | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.SubmitRequest |
SubmitAsOperation(SubmitJobRequest, string, string)
Submits job to a cluster.
Declaration
public virtual ProjectsResource.RegionsResource.JobsResource.SubmitAsOperationRequest SubmitAsOperation(SubmitJobRequest body, string projectId, string region)
Parameters
Type | Name | Description |
---|---|---|
SubmitJobRequest | body | The body of the request. |
string | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
string | region | Required. The Dataproc region in which to handle the request. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.SubmitAsOperationRequest |
TestIamPermissions(TestIamPermissionsRequest, string)
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
Declaration
public virtual ProjectsResource.RegionsResource.JobsResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestIamPermissionsRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.TestIamPermissionsRequest |