source: vendor/google/apiclient-services/src/RecommendationsAI.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: 14.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 RecommendationsAI (v1beta1).
24 *
25 * <p>
26 * Note that we now highly recommend new customers to use Retail API, which
27 * incorporates the GA version of the Recommendations AI funtionalities. To
28 * enable Retail API, please visit
29 * https://console.cloud.google.com/apis/library/retail.googleapis.com. The
30 * Recommendations AI service enables customers to build end-to-end personalized
31 * recommendation systems without requiring a high level of expertise in machine
32 * learning, recommendation system, or Google Cloud.</p>
33 *
34 * <p>
35 * For more information about this service, see the API
36 * <a href="https://cloud.google.com/recommendations-ai/docs" target="_blank">Documentation</a>
37 * </p>
38 *
39 * @author Google, Inc.
40 */
41class RecommendationsAI extends \Google\Service
42{
43 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
44 const CLOUD_PLATFORM =
45 "https://www.googleapis.com/auth/cloud-platform";
46
47 public $projects_locations_catalogs;
48 public $projects_locations_catalogs_catalogItems;
49 public $projects_locations_catalogs_eventStores_operations;
50 public $projects_locations_catalogs_eventStores_placements;
51 public $projects_locations_catalogs_eventStores_predictionApiKeyRegistrations;
52 public $projects_locations_catalogs_eventStores_userEvents;
53 public $projects_locations_catalogs_operations;
54 public $rootUrlTemplate;
55
56 /**
57 * Constructs the internal representation of the RecommendationsAI service.
58 *
59 * @param Client|array $clientOrConfig The client used to deliver requests, or a
60 * config array to pass to a new Client instance.
61 * @param string $rootUrl The root URL used for requests to the service.
62 */
63 public function __construct($clientOrConfig = [], $rootUrl = null)
64 {
65 parent::__construct($clientOrConfig);
66 $this->rootUrl = $rootUrl ?: 'https://recommendationengine.googleapis.com/';
67 $this->rootUrlTemplate = $rootUrl ?: 'https://recommendationengine.UNIVERSE_DOMAIN/';
68 $this->servicePath = '';
69 $this->batchPath = 'batch';
70 $this->version = 'v1beta1';
71 $this->serviceName = 'recommendationengine';
72
73 $this->projects_locations_catalogs = new RecommendationsAI\Resource\ProjectsLocationsCatalogs(
74 $this,
75 $this->serviceName,
76 'catalogs',
77 [
78 'methods' => [
79 'list' => [
80 'path' => 'v1beta1/{+parent}/catalogs',
81 'httpMethod' => 'GET',
82 'parameters' => [
83 'parent' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 'pageSize' => [
89 'location' => 'query',
90 'type' => 'integer',
91 ],
92 'pageToken' => [
93 'location' => 'query',
94 'type' => 'string',
95 ],
96 ],
97 ],'patch' => [
98 'path' => 'v1beta1/{+name}',
99 'httpMethod' => 'PATCH',
100 'parameters' => [
101 'name' => [
102 'location' => 'path',
103 'type' => 'string',
104 'required' => true,
105 ],
106 'updateMask' => [
107 'location' => 'query',
108 'type' => 'string',
109 ],
110 ],
111 ],
112 ]
113 ]
114 );
115 $this->projects_locations_catalogs_catalogItems = new RecommendationsAI\Resource\ProjectsLocationsCatalogsCatalogItems(
116 $this,
117 $this->serviceName,
118 'catalogItems',
119 [
120 'methods' => [
121 'create' => [
122 'path' => 'v1beta1/{+parent}/catalogItems',
123 'httpMethod' => 'POST',
124 'parameters' => [
125 'parent' => [
126 'location' => 'path',
127 'type' => 'string',
128 'required' => true,
129 ],
130 ],
131 ],'delete' => [
132 'path' => 'v1beta1/{+name}',
133 'httpMethod' => 'DELETE',
134 'parameters' => [
135 'name' => [
136 'location' => 'path',
137 'type' => 'string',
138 'required' => true,
139 ],
140 ],
141 ],'get' => [
142 'path' => 'v1beta1/{+name}',
143 'httpMethod' => 'GET',
144 'parameters' => [
145 'name' => [
146 'location' => 'path',
147 'type' => 'string',
148 'required' => true,
149 ],
150 ],
151 ],'import' => [
152 'path' => 'v1beta1/{+parent}/catalogItems:import',
153 'httpMethod' => 'POST',
154 'parameters' => [
155 'parent' => [
156 'location' => 'path',
157 'type' => 'string',
158 'required' => true,
159 ],
160 ],
161 ],'list' => [
162 'path' => 'v1beta1/{+parent}/catalogItems',
163 'httpMethod' => 'GET',
164 'parameters' => [
165 'parent' => [
166 'location' => 'path',
167 'type' => 'string',
168 'required' => true,
169 ],
170 'filter' => [
171 'location' => 'query',
172 'type' => 'string',
173 ],
174 'pageSize' => [
175 'location' => 'query',
176 'type' => 'integer',
177 ],
178 'pageToken' => [
179 'location' => 'query',
180 'type' => 'string',
181 ],
182 ],
183 ],'patch' => [
184 'path' => 'v1beta1/{+name}',
185 'httpMethod' => 'PATCH',
186 'parameters' => [
187 'name' => [
188 'location' => 'path',
189 'type' => 'string',
190 'required' => true,
191 ],
192 'updateMask' => [
193 'location' => 'query',
194 'type' => 'string',
195 ],
196 ],
197 ],
198 ]
199 ]
200 );
201 $this->projects_locations_catalogs_eventStores_operations = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresOperations(
202 $this,
203 $this->serviceName,
204 'operations',
205 [
206 'methods' => [
207 'get' => [
208 'path' => 'v1beta1/{+name}',
209 'httpMethod' => 'GET',
210 'parameters' => [
211 'name' => [
212 'location' => 'path',
213 'type' => 'string',
214 'required' => true,
215 ],
216 ],
217 ],'list' => [
218 'path' => 'v1beta1/{+name}/operations',
219 'httpMethod' => 'GET',
220 'parameters' => [
221 'name' => [
222 'location' => 'path',
223 'type' => 'string',
224 'required' => true,
225 ],
226 'filter' => [
227 'location' => 'query',
228 'type' => 'string',
229 ],
230 'pageSize' => [
231 'location' => 'query',
232 'type' => 'integer',
233 ],
234 'pageToken' => [
235 'location' => 'query',
236 'type' => 'string',
237 ],
238 ],
239 ],
240 ]
241 ]
242 );
243 $this->projects_locations_catalogs_eventStores_placements = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresPlacements(
244 $this,
245 $this->serviceName,
246 'placements',
247 [
248 'methods' => [
249 'predict' => [
250 'path' => 'v1beta1/{+name}:predict',
251 'httpMethod' => 'POST',
252 'parameters' => [
253 'name' => [
254 'location' => 'path',
255 'type' => 'string',
256 'required' => true,
257 ],
258 ],
259 ],
260 ]
261 ]
262 );
263 $this->projects_locations_catalogs_eventStores_predictionApiKeyRegistrations = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations(
264 $this,
265 $this->serviceName,
266 'predictionApiKeyRegistrations',
267 [
268 'methods' => [
269 'create' => [
270 'path' => 'v1beta1/{+parent}/predictionApiKeyRegistrations',
271 'httpMethod' => 'POST',
272 'parameters' => [
273 'parent' => [
274 'location' => 'path',
275 'type' => 'string',
276 'required' => true,
277 ],
278 ],
279 ],'delete' => [
280 'path' => 'v1beta1/{+name}',
281 'httpMethod' => 'DELETE',
282 'parameters' => [
283 'name' => [
284 'location' => 'path',
285 'type' => 'string',
286 'required' => true,
287 ],
288 ],
289 ],'list' => [
290 'path' => 'v1beta1/{+parent}/predictionApiKeyRegistrations',
291 'httpMethod' => 'GET',
292 'parameters' => [
293 'parent' => [
294 'location' => 'path',
295 'type' => 'string',
296 'required' => true,
297 ],
298 'pageSize' => [
299 'location' => 'query',
300 'type' => 'integer',
301 ],
302 'pageToken' => [
303 'location' => 'query',
304 'type' => 'string',
305 ],
306 ],
307 ],
308 ]
309 ]
310 );
311 $this->projects_locations_catalogs_eventStores_userEvents = new RecommendationsAI\Resource\ProjectsLocationsCatalogsEventStoresUserEvents(
312 $this,
313 $this->serviceName,
314 'userEvents',
315 [
316 'methods' => [
317 'collect' => [
318 'path' => 'v1beta1/{+parent}/userEvents:collect',
319 'httpMethod' => 'GET',
320 'parameters' => [
321 'parent' => [
322 'location' => 'path',
323 'type' => 'string',
324 'required' => true,
325 ],
326 'ets' => [
327 'location' => 'query',
328 'type' => 'string',
329 ],
330 'uri' => [
331 'location' => 'query',
332 'type' => 'string',
333 ],
334 'userEvent' => [
335 'location' => 'query',
336 'type' => 'string',
337 ],
338 ],
339 ],'import' => [
340 'path' => 'v1beta1/{+parent}/userEvents:import',
341 'httpMethod' => 'POST',
342 'parameters' => [
343 'parent' => [
344 'location' => 'path',
345 'type' => 'string',
346 'required' => true,
347 ],
348 ],
349 ],'list' => [
350 'path' => 'v1beta1/{+parent}/userEvents',
351 'httpMethod' => 'GET',
352 'parameters' => [
353 'parent' => [
354 'location' => 'path',
355 'type' => 'string',
356 'required' => true,
357 ],
358 'filter' => [
359 'location' => 'query',
360 'type' => 'string',
361 ],
362 'pageSize' => [
363 'location' => 'query',
364 'type' => 'integer',
365 ],
366 'pageToken' => [
367 'location' => 'query',
368 'type' => 'string',
369 ],
370 ],
371 ],'purge' => [
372 'path' => 'v1beta1/{+parent}/userEvents:purge',
373 'httpMethod' => 'POST',
374 'parameters' => [
375 'parent' => [
376 'location' => 'path',
377 'type' => 'string',
378 'required' => true,
379 ],
380 ],
381 ],'rejoin' => [
382 'path' => 'v1beta1/{+parent}/userEvents:rejoin',
383 'httpMethod' => 'POST',
384 'parameters' => [
385 'parent' => [
386 'location' => 'path',
387 'type' => 'string',
388 'required' => true,
389 ],
390 ],
391 ],'write' => [
392 'path' => 'v1beta1/{+parent}/userEvents:write',
393 'httpMethod' => 'POST',
394 'parameters' => [
395 'parent' => [
396 'location' => 'path',
397 'type' => 'string',
398 'required' => true,
399 ],
400 ],
401 ],
402 ]
403 ]
404 );
405 $this->projects_locations_catalogs_operations = new RecommendationsAI\Resource\ProjectsLocationsCatalogsOperations(
406 $this,
407 $this->serviceName,
408 'operations',
409 [
410 'methods' => [
411 'get' => [
412 'path' => 'v1beta1/{+name}',
413 'httpMethod' => 'GET',
414 'parameters' => [
415 'name' => [
416 'location' => 'path',
417 'type' => 'string',
418 'required' => true,
419 ],
420 ],
421 ],'list' => [
422 'path' => 'v1beta1/{+name}/operations',
423 'httpMethod' => 'GET',
424 'parameters' => [
425 'name' => [
426 'location' => 'path',
427 'type' => 'string',
428 'required' => true,
429 ],
430 'filter' => [
431 'location' => 'query',
432 'type' => 'string',
433 ],
434 'pageSize' => [
435 'location' => 'query',
436 'type' => 'integer',
437 ],
438 'pageToken' => [
439 'location' => 'query',
440 'type' => 'string',
441 ],
442 ],
443 ],
444 ]
445 ]
446 );
447 }
448}
449
450// Adding a class alias for backwards compatibility with the previous class name.
451class_alias(RecommendationsAI::class, 'Google_Service_RecommendationsAI');
Note: See TracBrowser for help on using the repository browser.