source: vendor/google/apiclient-services/src/Contactcenterinsights/Resource/ProjectsLocationsViews.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 4.8 KB
Line 
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\Contactcenterinsights\Resource;
19
20use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1ListViewsResponse;
21use Google\Service\Contactcenterinsights\GoogleCloudContactcenterinsightsV1View;
22use Google\Service\Contactcenterinsights\GoogleProtobufEmpty;
23
24/**
25 * The "views" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $contactcenterinsightsService = new Google\Service\Contactcenterinsights(...);
29 * $views = $contactcenterinsightsService->projects_locations_views;
30 * </code>
31 */
32class ProjectsLocationsViews extends \Google\Service\Resource
33{
34 /**
35 * Creates a view. (views.create)
36 *
37 * @param string $parent Required. The parent resource of the view. Required.
38 * The location to create a view for. Format: `projects//locations/` or
39 * `projects//locations/`
40 * @param GoogleCloudContactcenterinsightsV1View $postBody
41 * @param array $optParams Optional parameters.
42 * @return GoogleCloudContactcenterinsightsV1View
43 * @throws \Google\Service\Exception
44 */
45 public function create($parent, GoogleCloudContactcenterinsightsV1View $postBody, $optParams = [])
46 {
47 $params = ['parent' => $parent, 'postBody' => $postBody];
48 $params = array_merge($params, $optParams);
49 return $this->call('create', [$params], GoogleCloudContactcenterinsightsV1View::class);
50 }
51 /**
52 * Deletes a view. (views.delete)
53 *
54 * @param string $name Required. The name of the view to delete.
55 * @param array $optParams Optional parameters.
56 * @return GoogleProtobufEmpty
57 * @throws \Google\Service\Exception
58 */
59 public function delete($name, $optParams = [])
60 {
61 $params = ['name' => $name];
62 $params = array_merge($params, $optParams);
63 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
64 }
65 /**
66 * Gets a view. (views.get)
67 *
68 * @param string $name Required. The name of the view to get.
69 * @param array $optParams Optional parameters.
70 * @return GoogleCloudContactcenterinsightsV1View
71 * @throws \Google\Service\Exception
72 */
73 public function get($name, $optParams = [])
74 {
75 $params = ['name' => $name];
76 $params = array_merge($params, $optParams);
77 return $this->call('get', [$params], GoogleCloudContactcenterinsightsV1View::class);
78 }
79 /**
80 * Lists views. (views.listProjectsLocationsViews)
81 *
82 * @param string $parent Required. The parent resource of the views.
83 * @param array $optParams Optional parameters.
84 *
85 * @opt_param int pageSize The maximum number of views to return in the
86 * response. If this value is zero, the service will select a default size. A
87 * call may return fewer objects than requested. A non-empty `next_page_token`
88 * in the response indicates that more data is available.
89 * @opt_param string pageToken The value returned by the last
90 * `ListViewsResponse`; indicates that this is a continuation of a prior
91 * `ListViews` call and the system should return the next page of data.
92 * @return GoogleCloudContactcenterinsightsV1ListViewsResponse
93 * @throws \Google\Service\Exception
94 */
95 public function listProjectsLocationsViews($parent, $optParams = [])
96 {
97 $params = ['parent' => $parent];
98 $params = array_merge($params, $optParams);
99 return $this->call('list', [$params], GoogleCloudContactcenterinsightsV1ListViewsResponse::class);
100 }
101 /**
102 * Updates a view. (views.patch)
103 *
104 * @param string $name Immutable. The resource name of the view. Format:
105 * projects/{project}/locations/{location}/views/{view}
106 * @param GoogleCloudContactcenterinsightsV1View $postBody
107 * @param array $optParams Optional parameters.
108 *
109 * @opt_param string updateMask The list of fields to be updated.
110 * @return GoogleCloudContactcenterinsightsV1View
111 * @throws \Google\Service\Exception
112 */
113 public function patch($name, GoogleCloudContactcenterinsightsV1View $postBody, $optParams = [])
114 {
115 $params = ['name' => $name, 'postBody' => $postBody];
116 $params = array_merge($params, $optParams);
117 return $this->call('patch', [$params], GoogleCloudContactcenterinsightsV1View::class);
118 }
119}
120
121// Adding a class alias for backwards compatibility with the previous class name.
122class_alias(ProjectsLocationsViews::class, 'Google_Service_Contactcenterinsights_Resource_ProjectsLocationsViews');
Note: See TracBrowser for help on using the repository browser.