class Jobs extends Resource (View source)

The "jobs" collection of methods.

Typical usage is:

 $youtubereportingService = new Google\Service\YouTubeReporting(...);
 $jobs = $youtubereportingService->jobs;

Methods

Job
create(Job $postBody, array $optParams = [])

Creates a job and returns it. (jobs.create)

delete(string $jobId, array $optParams = [])

Deletes a job. (jobs.delete)

Job
get(string $jobId, array $optParams = [])

Gets a job. (jobs.get)

listJobs(array $optParams = [])

Lists jobs. (jobs.listJobs)

Details

Job create(Job $postBody, array $optParams = [])

Creates a job and returns it. (jobs.create)

Parameters

Job $postBody
array $optParams

Optional parameters.

Return Value

Job

Exceptions

Exception

YoutubereportingEmpty delete(string $jobId, array $optParams = [])

Deletes a job. (jobs.delete)

Parameters

string $jobId

The ID of the job to delete.

array $optParams

Optional parameters.

Return Value

YoutubereportingEmpty

Exceptions

Exception

Job get(string $jobId, array $optParams = [])

Gets a job. (jobs.get)

Parameters

string $jobId

The ID of the job to retrieve.

array $optParams

Optional parameters.

Return Value

Job

Exceptions

Exception

ListJobsResponse listJobs(array $optParams = [])

Lists jobs. (jobs.listJobs)

Parameters

array $optParams

Optional parameters.

Return Value

ListJobsResponse

Exceptions

Exception