Class ProjectsResource.RegionsResource.JobsResource
The "jobs" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Dataproc.v1beta2
Assembly: Google.Apis.Dataproc.v1beta2.dll
Syntax
public class JobsResource
Constructors
JobsResource(IClientService)
Constructs a new resource.
Declaration
public JobsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
Google.Apis.Services.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/v1beta2/projects.regions.jobs/list) or regions/{region}/jobs.get (https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/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. |
System.String | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
System.String | region | Required. The Dataproc region in which to handle the request. |
System.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 |
---|---|---|
System.String | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
System.String | region | Required. The Dataproc region in which to handle the request. |
System.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 |
---|---|---|
System.String | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
System.String | region | Required. The Dataproc region in which to handle the request. |
System.String | jobId | Required. The job ID. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.GetRequest |
GetIamPolicy(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(string resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | resource | REQUIRED: The resource for which the policy is being requested. See the operation documentation 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 |
---|---|---|
System.String | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
System.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. |
System.String | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
System.String | region | Required. The Dataproc region in which to handle the request. |
System.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. |
System.String | resource | REQUIRED: The resource for which the policy is being specified. See the operation documentation 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. |
System.String | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
System.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. |
System.String | projectId | Required. The ID of the Google Cloud Platform project that the job belongs to. |
System.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. |
System.String | resource | REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.RegionsResource.JobsResource.TestIamPermissionsRequest |