source: vendor/google/apiclient-services/src/CCAIPlatform.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 8.7 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;
19
20use Google\Client;
21
22/**
23 * Service definition for CCAIPlatform (v1alpha1).
24 *
25 * <p>
26</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/solutions/contact-center-ai-platform" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class CCAIPlatform extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40
41 public $projects_locations;
42 public $projects_locations_contactCenters;
43 public $projects_locations_operations;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the CCAIPlatform service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://contactcenteraiplatform.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://contactcenteraiplatform.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1alpha1';
61 $this->serviceName = 'contactcenteraiplatform';
62
63 $this->projects_locations = new CCAIPlatform\Resource\ProjectsLocations(
64 $this,
65 $this->serviceName,
66 'locations',
67 [
68 'methods' => [
69 'get' => [
70 'path' => 'v1alpha1/{+name}',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'name' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 ],
79 ],'list' => [
80 'path' => 'v1alpha1/{+name}/locations',
81 'httpMethod' => 'GET',
82 'parameters' => [
83 'name' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 'filter' => [
89 'location' => 'query',
90 'type' => 'string',
91 ],
92 'pageSize' => [
93 'location' => 'query',
94 'type' => 'integer',
95 ],
96 'pageToken' => [
97 'location' => 'query',
98 'type' => 'string',
99 ],
100 ],
101 ],'queryContactCenterQuota' => [
102 'path' => 'v1alpha1/{+parent}:queryContactCenterQuota',
103 'httpMethod' => 'GET',
104 'parameters' => [
105 'parent' => [
106 'location' => 'path',
107 'type' => 'string',
108 'required' => true,
109 ],
110 ],
111 ],
112 ]
113 ]
114 );
115 $this->projects_locations_contactCenters = new CCAIPlatform\Resource\ProjectsLocationsContactCenters(
116 $this,
117 $this->serviceName,
118 'contactCenters',
119 [
120 'methods' => [
121 'create' => [
122 'path' => 'v1alpha1/{+parent}/contactCenters',
123 'httpMethod' => 'POST',
124 'parameters' => [
125 'parent' => [
126 'location' => 'path',
127 'type' => 'string',
128 'required' => true,
129 ],
130 'contactCenterId' => [
131 'location' => 'query',
132 'type' => 'string',
133 ],
134 'requestId' => [
135 'location' => 'query',
136 'type' => 'string',
137 ],
138 ],
139 ],'delete' => [
140 'path' => 'v1alpha1/{+name}',
141 'httpMethod' => 'DELETE',
142 'parameters' => [
143 'name' => [
144 'location' => 'path',
145 'type' => 'string',
146 'required' => true,
147 ],
148 'requestId' => [
149 'location' => 'query',
150 'type' => 'string',
151 ],
152 ],
153 ],'get' => [
154 'path' => 'v1alpha1/{+name}',
155 'httpMethod' => 'GET',
156 'parameters' => [
157 'name' => [
158 'location' => 'path',
159 'type' => 'string',
160 'required' => true,
161 ],
162 ],
163 ],'list' => [
164 'path' => 'v1alpha1/{+parent}/contactCenters',
165 'httpMethod' => 'GET',
166 'parameters' => [
167 'parent' => [
168 'location' => 'path',
169 'type' => 'string',
170 'required' => true,
171 ],
172 'filter' => [
173 'location' => 'query',
174 'type' => 'string',
175 ],
176 'orderBy' => [
177 'location' => 'query',
178 'type' => 'string',
179 ],
180 'pageSize' => [
181 'location' => 'query',
182 'type' => 'integer',
183 ],
184 'pageToken' => [
185 'location' => 'query',
186 'type' => 'string',
187 ],
188 ],
189 ],'patch' => [
190 'path' => 'v1alpha1/{+name}',
191 'httpMethod' => 'PATCH',
192 'parameters' => [
193 'name' => [
194 'location' => 'path',
195 'type' => 'string',
196 'required' => true,
197 ],
198 'requestId' => [
199 'location' => 'query',
200 'type' => 'string',
201 ],
202 'updateMask' => [
203 'location' => 'query',
204 'type' => 'string',
205 ],
206 ],
207 ],
208 ]
209 ]
210 );
211 $this->projects_locations_operations = new CCAIPlatform\Resource\ProjectsLocationsOperations(
212 $this,
213 $this->serviceName,
214 'operations',
215 [
216 'methods' => [
217 'cancel' => [
218 'path' => 'v1alpha1/{+name}:cancel',
219 'httpMethod' => 'POST',
220 'parameters' => [
221 'name' => [
222 'location' => 'path',
223 'type' => 'string',
224 'required' => true,
225 ],
226 ],
227 ],'delete' => [
228 'path' => 'v1alpha1/{+name}',
229 'httpMethod' => 'DELETE',
230 'parameters' => [
231 'name' => [
232 'location' => 'path',
233 'type' => 'string',
234 'required' => true,
235 ],
236 ],
237 ],'get' => [
238 'path' => 'v1alpha1/{+name}',
239 'httpMethod' => 'GET',
240 'parameters' => [
241 'name' => [
242 'location' => 'path',
243 'type' => 'string',
244 'required' => true,
245 ],
246 ],
247 ],'list' => [
248 'path' => 'v1alpha1/{+name}/operations',
249 'httpMethod' => 'GET',
250 'parameters' => [
251 'name' => [
252 'location' => 'path',
253 'type' => 'string',
254 'required' => true,
255 ],
256 'filter' => [
257 'location' => 'query',
258 'type' => 'string',
259 ],
260 'pageSize' => [
261 'location' => 'query',
262 'type' => 'integer',
263 ],
264 'pageToken' => [
265 'location' => 'query',
266 'type' => 'string',
267 ],
268 ],
269 ],
270 ]
271 ]
272 );
273 }
274}
275
276// Adding a class alias for backwards compatibility with the previous class name.
277class_alias(CCAIPlatform::class, 'Google_Service_CCAIPlatform');
Note: See TracBrowser for help on using the repository browser.