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\ToolResults\Resource;
19
20use Google\Service\ToolResults\ListStepThumbnailsResponse;
21
22/**
23 * The "thumbnails" collection of methods.
24 * Typical usage is:
25 *  <code>
26 *   $toolresultsService = new Google\Service\ToolResults(...);
27 *   $thumbnails = $toolresultsService->thumbnails;
28 *  </code>
29 */
30class ProjectsHistoriesExecutionsStepsThumbnails extends \Google\Service\Resource
31{
32  /**
33   * Lists thumbnails of images attached to a step. May return any of the
34   * following canonical error codes: - PERMISSION_DENIED - if the user is not
35   * authorized to read from the project, or from any of the images -
36   * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the step does
37   * not exist, or if any of the images do not exist
38   * (thumbnails.listProjectsHistoriesExecutionsStepsThumbnails)
39   *
40   * @param string $projectId A Project id. Required.
41   * @param string $historyId A History id. Required.
42   * @param string $executionId An Execution id. Required.
43   * @param string $stepId A Step id. Required.
44   * @param array $optParams Optional parameters.
45   *
46   * @opt_param int pageSize The maximum number of thumbnails to fetch. Default
47   * value: 50. The server will use this default if the field is not set or has a
48   * value of 0. Optional.
49   * @opt_param string pageToken A continuation token to resume the query at the
50   * next item. Optional.
51   * @return ListStepThumbnailsResponse
52   */
53  public function listProjectsHistoriesExecutionsStepsThumbnails($projectId, $historyId, $executionId, $stepId, $optParams = [])
54  {
55    $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId];
56    $params = array_merge($params, $optParams);
57    return $this->call('list', [$params], ListStepThumbnailsResponse::class);
58  }
59}
60
61// Adding a class alias for backwards compatibility with the previous class name.
62class_alias(ProjectsHistoriesExecutionsStepsThumbnails::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsThumbnails');
63