ProjectsRegionsJobs
class ProjectsRegionsJobs extends Resource (View source)
The "jobs" collection of methods.
Typical usage is:
$dataprocService = new Google\Service\Dataproc(...);
$jobs = $dataprocService->projects_regions_jobs;
Methods
Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list (https://cloud.google.com/datap roc/docs/reference/rest/v1/projects.regions.jobs/list) or regions/{region}/jobs.get (https://cloud.google.com/dataproc/docs/reference/r est/v1/projects.regions.jobs/get). (jobs.cancel)
Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION. (jobs.delete)
Gets the resource representation for a job in a project. (jobs.get)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (jobs.getIamPolicy)
Lists regions/{region}/jobs in a project. (jobs.listProjectsRegionsJobs)
Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (jobs.setIamPolicy)
Submits a job to a cluster. (jobs.submit)
Submits job to a cluster. (jobs.submitAsOperation)
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.
Details
Job
cancel(string $projectId, string $region, string $jobId, CancelJobRequest $postBody, array $optParams = [])
Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list (https://cloud.google.com/datap roc/docs/reference/rest/v1/projects.regions.jobs/list) or regions/{region}/jobs.get (https://cloud.google.com/dataproc/docs/reference/r est/v1/projects.regions.jobs/get). (jobs.cancel)
DataprocEmpty
delete(string $projectId, string $region, string $jobId, array $optParams = [])
Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION. (jobs.delete)
Job
get(string $projectId, string $region, string $jobId, array $optParams = [])
Gets the resource representation for a job in a project. (jobs.get)
Policy
getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (jobs.getIamPolicy)
ListJobsResponse
listProjectsRegionsJobs(string $projectId, string $region, array $optParams = [])
Lists regions/{region}/jobs in a project. (jobs.listProjectsRegionsJobs)
Job
patch(string $projectId, string $region, string $jobId, Job $postBody, array $optParams = [])
Updates a job in a project. (jobs.patch)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (jobs.setIamPolicy)
Job
submit(string $projectId, string $region, SubmitJobRequest $postBody, array $optParams = [])
Submits a job to a cluster. (jobs.submit)
Operation
submitAsOperation(string $projectId, string $region, SubmitJobRequest $postBody, array $optParams = [])
Submits job to a cluster. (jobs.submitAsOperation)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
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. (jobs.testIamPermissions)