1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Datapipelines\Resource;
19
20use Google\Service\Datapipelines\GoogleCloudDatapipelinesV1ListJobsResponse;
21
22/**
23 * The "jobs" collection of methods.
24 * Typical usage is:
25 *  <code>
26 *   $datapipelinesService = new Google\Service\Datapipelines(...);
27 *   $jobs = $datapipelinesService->jobs;
28 *  </code>
29 */
30class ProjectsLocationsPipelinesJobs extends \Google\Service\Resource
31{
32  /**
33   * Lists jobs for a given pipeline. Throws a "FORBIDDEN" error if the caller
34   * doesn't have permission to access it.
35   * (jobs.listProjectsLocationsPipelinesJobs)
36   *
37   * @param string $parent Required. The pipeline name. For example:
38   * `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`.
39   * @param array $optParams Optional parameters.
40   *
41   * @opt_param int pageSize The maximum number of entities to return. The service
42   * may return fewer than this value, even if there are additional pages. If
43   * unspecified, the max limit will be determined by the backend implementation.
44   * @opt_param string pageToken A page token, received from a previous `ListJobs`
45   * call. Provide this to retrieve the subsequent page. When paginating, all
46   * other parameters provided to `ListJobs` must match the call that provided the
47   * page token.
48   * @return GoogleCloudDatapipelinesV1ListJobsResponse
49   */
50  public function listProjectsLocationsPipelinesJobs($parent, $optParams = [])
51  {
52    $params = ['parent' => $parent];
53    $params = array_merge($params, $optParams);
54    return $this->call('list', [$params], GoogleCloudDatapipelinesV1ListJobsResponse::class);
55  }
56}
57
58// Adding a class alias for backwards compatibility with the previous class name.
59class_alias(ProjectsLocationsPipelinesJobs::class, 'Google_Service_Datapipelines_Resource_ProjectsLocationsPipelinesJobs');
60