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