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\Dialogflow\Resource;
19
20use Google\Service\Dialogflow\GoogleCloudDialogflowCxV3Changelog;
21use Google\Service\Dialogflow\GoogleCloudDialogflowCxV3ListChangelogsResponse;
22
23/**
24 * The "changelogs" collection of methods.
25 * Typical usage is:
26 *  <code>
27 *   $dialogflowService = new Google\Service\Dialogflow(...);
28 *   $changelogs = $dialogflowService->changelogs;
29 *  </code>
30 */
31class ProjectsLocationsAgentsChangelogs extends \Google\Service\Resource
32{
33  /**
34   * Retrieves the specified Changelog. (changelogs.get)
35   *
36   * @param string $name Required. The name of the changelog to get. Format:
37   * `projects//locations//agents//changelogs/`.
38   * @param array $optParams Optional parameters.
39   * @return GoogleCloudDialogflowCxV3Changelog
40   */
41  public function get($name, $optParams = [])
42  {
43    $params = ['name' => $name];
44    $params = array_merge($params, $optParams);
45    return $this->call('get', [$params], GoogleCloudDialogflowCxV3Changelog::class);
46  }
47  /**
48   * Returns the list of Changelogs.
49   * (changelogs.listProjectsLocationsAgentsChangelogs)
50   *
51   * @param string $parent Required. The agent containing the changelogs. Format:
52   * `projects//locations//agents/`.
53   * @param array $optParams Optional parameters.
54   *
55   * @opt_param string filter The filter string. Supports filter by user_email,
56   * resource, type and create_time. Some examples: 1. By user email: user_email =
57   * "someone@google.com" 2. By resource name: resource =
58   * "projects/123/locations/global/agents/456/flows/789" 3. By resource display
59   * name: display_name = "my agent" 4. By action: action = "Create" 5. By type:
60   * type = "flows" 6. By create time. Currently predicates on `create_time` and
61   * `create_time_epoch_seconds` are supported: create_time_epoch_seconds >
62   * 1551790877 AND create_time <= 2017-01-15T01:30:15.01Z 7. Combination of above
63   * filters: resource = "projects/123/locations/global/agents/456/flows/789" AND
64   * user_email = "someone@google.com" AND create_time <= 2017-01-15T01:30:15.01Z
65   * @opt_param int pageSize The maximum number of items to return in a single
66   * page. By default 100 and at most 1000.
67   * @opt_param string pageToken The next_page_token value returned from a
68   * previous list request.
69   * @return GoogleCloudDialogflowCxV3ListChangelogsResponse
70   */
71  public function listProjectsLocationsAgentsChangelogs($parent, $optParams = [])
72  {
73    $params = ['parent' => $parent];
74    $params = array_merge($params, $optParams);
75    return $this->call('list', [$params], GoogleCloudDialogflowCxV3ListChangelogsResponse::class);
76  }
77}
78
79// Adding a class alias for backwards compatibility with the previous class name.
80class_alias(ProjectsLocationsAgentsChangelogs::class, 'Google_Service_Dialogflow_Resource_ProjectsLocationsAgentsChangelogs');
81