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\BigQueryDataTransfer\Resource;
19
20use Google\Service\BigQueryDataTransfer\ListTransferLogsResponse;
21
22/**
23 * The "transferLogs" collection of methods.
24 * Typical usage is:
25 *  <code>
26 *   $bigquerydatatransferService = new Google\Service\BigQueryDataTransfer(...);
27 *   $transferLogs = $bigquerydatatransferService->transferLogs;
28 *  </code>
29 */
30class ProjectsLocationsTransferConfigsRunsTransferLogs extends \Google\Service\Resource
31{
32  /**
33   * Returns log messages for the transfer run.
34   * (transferLogs.listProjectsLocationsTransferConfigsRunsTransferLogs)
35   *
36   * @param string $parent Required. Transfer run name in the form:
37   * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` or `project
38   * s/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_
39   * id}`
40   * @param array $optParams Optional parameters.
41   *
42   * @opt_param string messageTypes Message types to return. If not populated -
43   * INFO, WARNING and ERROR messages are returned.
44   * @opt_param int pageSize Page size. The default page size is the maximum value
45   * of 1000 results.
46   * @opt_param string pageToken Pagination token, which can be used to request a
47   * specific page of `ListTransferLogsRequest` list results. For multiple-page
48   * results, `ListTransferLogsResponse` outputs a `next_page` token, which can be
49   * used as the `page_token` value to request the next page of list results.
50   * @return ListTransferLogsResponse
51   */
52  public function listProjectsLocationsTransferConfigsRunsTransferLogs($parent, $optParams = [])
53  {
54    $params = ['parent' => $parent];
55    $params = array_merge($params, $optParams);
56    return $this->call('list', [$params], ListTransferLogsResponse::class);
57  }
58}
59
60// Adding a class alias for backwards compatibility with the previous class name.
61class_alias(ProjectsLocationsTransferConfigsRunsTransferLogs::class, 'Google_Service_BigQueryDataTransfer_Resource_ProjectsLocationsTransferConfigsRunsTransferLogs');
62