source: vendor/google/apiclient-services/src/CloudRetail.php

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

Upload project files

  • Property mode set to 100644
File size: 35.1 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 CloudRetail (v2).
24 *
25 * <p>
26 * Vertex AI Search for Retail API is made up of Retail Search, Browse and
27 * Recommendations. These discovery AI solutions help you implement personalized
28 * search, browse and recommendations, based on machine learning models, across
29 * your websites and mobile applications.</p>
30 *
31 * <p>
32 * For more information about this service, see the API
33 * <a href="https://cloud.google.com/recommendations" target="_blank">Documentation</a>
34 * </p>
35 *
36 * @author Google, Inc.
37 */
38class CloudRetail extends \Google\Service
39{
40 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
41 const CLOUD_PLATFORM =
42 "https://www.googleapis.com/auth/cloud-platform";
43
44 public $projects_locations_catalogs;
45 public $projects_locations_catalogs_attributesConfig;
46 public $projects_locations_catalogs_branches_operations;
47 public $projects_locations_catalogs_branches_products;
48 public $projects_locations_catalogs_completionData;
49 public $projects_locations_catalogs_controls;
50 public $projects_locations_catalogs_generativeQuestion;
51 public $projects_locations_catalogs_generativeQuestions;
52 public $projects_locations_catalogs_models;
53 public $projects_locations_catalogs_operations;
54 public $projects_locations_catalogs_placements;
55 public $projects_locations_catalogs_servingConfigs;
56 public $projects_locations_catalogs_userEvents;
57 public $projects_locations_operations;
58 public $projects_operations;
59 public $rootUrlTemplate;
60
61 /**
62 * Constructs the internal representation of the CloudRetail service.
63 *
64 * @param Client|array $clientOrConfig The client used to deliver requests, or a
65 * config array to pass to a new Client instance.
66 * @param string $rootUrl The root URL used for requests to the service.
67 */
68 public function __construct($clientOrConfig = [], $rootUrl = null)
69 {
70 parent::__construct($clientOrConfig);
71 $this->rootUrl = $rootUrl ?: 'https://retail.googleapis.com/';
72 $this->rootUrlTemplate = $rootUrl ?: 'https://retail.UNIVERSE_DOMAIN/';
73 $this->servicePath = '';
74 $this->batchPath = 'batch';
75 $this->version = 'v2';
76 $this->serviceName = 'retail';
77
78 $this->projects_locations_catalogs = new CloudRetail\Resource\ProjectsLocationsCatalogs(
79 $this,
80 $this->serviceName,
81 'catalogs',
82 [
83 'methods' => [
84 'completeQuery' => [
85 'path' => 'v2/{+catalog}:completeQuery',
86 'httpMethod' => 'GET',
87 'parameters' => [
88 'catalog' => [
89 'location' => 'path',
90 'type' => 'string',
91 'required' => true,
92 ],
93 'dataset' => [
94 'location' => 'query',
95 'type' => 'string',
96 ],
97 'deviceType' => [
98 'location' => 'query',
99 'type' => 'string',
100 ],
101 'enableAttributeSuggestions' => [
102 'location' => 'query',
103 'type' => 'boolean',
104 ],
105 'entity' => [
106 'location' => 'query',
107 'type' => 'string',
108 ],
109 'languageCodes' => [
110 'location' => 'query',
111 'type' => 'string',
112 'repeated' => true,
113 ],
114 'maxSuggestions' => [
115 'location' => 'query',
116 'type' => 'integer',
117 ],
118 'query' => [
119 'location' => 'query',
120 'type' => 'string',
121 ],
122 'visitorId' => [
123 'location' => 'query',
124 'type' => 'string',
125 ],
126 ],
127 ],'exportAnalyticsMetrics' => [
128 'path' => 'v2/{+catalog}:exportAnalyticsMetrics',
129 'httpMethod' => 'POST',
130 'parameters' => [
131 'catalog' => [
132 'location' => 'path',
133 'type' => 'string',
134 'required' => true,
135 ],
136 ],
137 ],'getAttributesConfig' => [
138 'path' => 'v2/{+name}',
139 'httpMethod' => 'GET',
140 'parameters' => [
141 'name' => [
142 'location' => 'path',
143 'type' => 'string',
144 'required' => true,
145 ],
146 ],
147 ],'getCompletionConfig' => [
148 'path' => 'v2/{+name}',
149 'httpMethod' => 'GET',
150 'parameters' => [
151 'name' => [
152 'location' => 'path',
153 'type' => 'string',
154 'required' => true,
155 ],
156 ],
157 ],'getDefaultBranch' => [
158 'path' => 'v2/{+catalog}:getDefaultBranch',
159 'httpMethod' => 'GET',
160 'parameters' => [
161 'catalog' => [
162 'location' => 'path',
163 'type' => 'string',
164 'required' => true,
165 ],
166 ],
167 ],'getGenerativeQuestionFeature' => [
168 'path' => 'v2/{+catalog}/generativeQuestionFeature',
169 'httpMethod' => 'GET',
170 'parameters' => [
171 'catalog' => [
172 'location' => 'path',
173 'type' => 'string',
174 'required' => true,
175 ],
176 ],
177 ],'list' => [
178 'path' => 'v2/{+parent}/catalogs',
179 'httpMethod' => 'GET',
180 'parameters' => [
181 'parent' => [
182 'location' => 'path',
183 'type' => 'string',
184 'required' => true,
185 ],
186 'pageSize' => [
187 'location' => 'query',
188 'type' => 'integer',
189 ],
190 'pageToken' => [
191 'location' => 'query',
192 'type' => 'string',
193 ],
194 ],
195 ],'patch' => [
196 'path' => 'v2/{+name}',
197 'httpMethod' => 'PATCH',
198 'parameters' => [
199 'name' => [
200 'location' => 'path',
201 'type' => 'string',
202 'required' => true,
203 ],
204 'updateMask' => [
205 'location' => 'query',
206 'type' => 'string',
207 ],
208 ],
209 ],'setDefaultBranch' => [
210 'path' => 'v2/{+catalog}:setDefaultBranch',
211 'httpMethod' => 'POST',
212 'parameters' => [
213 'catalog' => [
214 'location' => 'path',
215 'type' => 'string',
216 'required' => true,
217 ],
218 ],
219 ],'updateAttributesConfig' => [
220 'path' => 'v2/{+name}',
221 'httpMethod' => 'PATCH',
222 'parameters' => [
223 'name' => [
224 'location' => 'path',
225 'type' => 'string',
226 'required' => true,
227 ],
228 'updateMask' => [
229 'location' => 'query',
230 'type' => 'string',
231 ],
232 ],
233 ],'updateCompletionConfig' => [
234 'path' => 'v2/{+name}',
235 'httpMethod' => 'PATCH',
236 'parameters' => [
237 'name' => [
238 'location' => 'path',
239 'type' => 'string',
240 'required' => true,
241 ],
242 'updateMask' => [
243 'location' => 'query',
244 'type' => 'string',
245 ],
246 ],
247 ],'updateGenerativeQuestion' => [
248 'path' => 'v2/{+catalog}/generativeQuestion',
249 'httpMethod' => 'PATCH',
250 'parameters' => [
251 'catalog' => [
252 'location' => 'path',
253 'type' => 'string',
254 'required' => true,
255 ],
256 'updateMask' => [
257 'location' => 'query',
258 'type' => 'string',
259 ],
260 ],
261 ],'updateGenerativeQuestionFeature' => [
262 'path' => 'v2/{+catalog}/generativeQuestionFeature',
263 'httpMethod' => 'PATCH',
264 'parameters' => [
265 'catalog' => [
266 'location' => 'path',
267 'type' => 'string',
268 'required' => true,
269 ],
270 'updateMask' => [
271 'location' => 'query',
272 'type' => 'string',
273 ],
274 ],
275 ],
276 ]
277 ]
278 );
279 $this->projects_locations_catalogs_attributesConfig = new CloudRetail\Resource\ProjectsLocationsCatalogsAttributesConfig(
280 $this,
281 $this->serviceName,
282 'attributesConfig',
283 [
284 'methods' => [
285 'addCatalogAttribute' => [
286 'path' => 'v2/{+attributesConfig}:addCatalogAttribute',
287 'httpMethod' => 'POST',
288 'parameters' => [
289 'attributesConfig' => [
290 'location' => 'path',
291 'type' => 'string',
292 'required' => true,
293 ],
294 ],
295 ],'removeCatalogAttribute' => [
296 'path' => 'v2/{+attributesConfig}:removeCatalogAttribute',
297 'httpMethod' => 'POST',
298 'parameters' => [
299 'attributesConfig' => [
300 'location' => 'path',
301 'type' => 'string',
302 'required' => true,
303 ],
304 ],
305 ],'replaceCatalogAttribute' => [
306 'path' => 'v2/{+attributesConfig}:replaceCatalogAttribute',
307 'httpMethod' => 'POST',
308 'parameters' => [
309 'attributesConfig' => [
310 'location' => 'path',
311 'type' => 'string',
312 'required' => true,
313 ],
314 ],
315 ],
316 ]
317 ]
318 );
319 $this->projects_locations_catalogs_branches_operations = new CloudRetail\Resource\ProjectsLocationsCatalogsBranchesOperations(
320 $this,
321 $this->serviceName,
322 'operations',
323 [
324 'methods' => [
325 'get' => [
326 'path' => 'v2/{+name}',
327 'httpMethod' => 'GET',
328 'parameters' => [
329 'name' => [
330 'location' => 'path',
331 'type' => 'string',
332 'required' => true,
333 ],
334 ],
335 ],
336 ]
337 ]
338 );
339 $this->projects_locations_catalogs_branches_products = new CloudRetail\Resource\ProjectsLocationsCatalogsBranchesProducts(
340 $this,
341 $this->serviceName,
342 'products',
343 [
344 'methods' => [
345 'addFulfillmentPlaces' => [
346 'path' => 'v2/{+product}:addFulfillmentPlaces',
347 'httpMethod' => 'POST',
348 'parameters' => [
349 'product' => [
350 'location' => 'path',
351 'type' => 'string',
352 'required' => true,
353 ],
354 ],
355 ],'addLocalInventories' => [
356 'path' => 'v2/{+product}:addLocalInventories',
357 'httpMethod' => 'POST',
358 'parameters' => [
359 'product' => [
360 'location' => 'path',
361 'type' => 'string',
362 'required' => true,
363 ],
364 ],
365 ],'create' => [
366 'path' => 'v2/{+parent}/products',
367 'httpMethod' => 'POST',
368 'parameters' => [
369 'parent' => [
370 'location' => 'path',
371 'type' => 'string',
372 'required' => true,
373 ],
374 'productId' => [
375 'location' => 'query',
376 'type' => 'string',
377 ],
378 ],
379 ],'delete' => [
380 'path' => 'v2/{+name}',
381 'httpMethod' => 'DELETE',
382 'parameters' => [
383 'name' => [
384 'location' => 'path',
385 'type' => 'string',
386 'required' => true,
387 ],
388 ],
389 ],'get' => [
390 'path' => 'v2/{+name}',
391 'httpMethod' => 'GET',
392 'parameters' => [
393 'name' => [
394 'location' => 'path',
395 'type' => 'string',
396 'required' => true,
397 ],
398 ],
399 ],'import' => [
400 'path' => 'v2/{+parent}/products:import',
401 'httpMethod' => 'POST',
402 'parameters' => [
403 'parent' => [
404 'location' => 'path',
405 'type' => 'string',
406 'required' => true,
407 ],
408 ],
409 ],'list' => [
410 'path' => 'v2/{+parent}/products',
411 'httpMethod' => 'GET',
412 'parameters' => [
413 'parent' => [
414 'location' => 'path',
415 'type' => 'string',
416 'required' => true,
417 ],
418 'filter' => [
419 'location' => 'query',
420 'type' => 'string',
421 ],
422 'pageSize' => [
423 'location' => 'query',
424 'type' => 'integer',
425 ],
426 'pageToken' => [
427 'location' => 'query',
428 'type' => 'string',
429 ],
430 'readMask' => [
431 'location' => 'query',
432 'type' => 'string',
433 ],
434 ],
435 ],'patch' => [
436 'path' => 'v2/{+name}',
437 'httpMethod' => 'PATCH',
438 'parameters' => [
439 'name' => [
440 'location' => 'path',
441 'type' => 'string',
442 'required' => true,
443 ],
444 'allowMissing' => [
445 'location' => 'query',
446 'type' => 'boolean',
447 ],
448 'updateMask' => [
449 'location' => 'query',
450 'type' => 'string',
451 ],
452 ],
453 ],'purge' => [
454 'path' => 'v2/{+parent}/products:purge',
455 'httpMethod' => 'POST',
456 'parameters' => [
457 'parent' => [
458 'location' => 'path',
459 'type' => 'string',
460 'required' => true,
461 ],
462 ],
463 ],'removeFulfillmentPlaces' => [
464 'path' => 'v2/{+product}:removeFulfillmentPlaces',
465 'httpMethod' => 'POST',
466 'parameters' => [
467 'product' => [
468 'location' => 'path',
469 'type' => 'string',
470 'required' => true,
471 ],
472 ],
473 ],'removeLocalInventories' => [
474 'path' => 'v2/{+product}:removeLocalInventories',
475 'httpMethod' => 'POST',
476 'parameters' => [
477 'product' => [
478 'location' => 'path',
479 'type' => 'string',
480 'required' => true,
481 ],
482 ],
483 ],'setInventory' => [
484 'path' => 'v2/{+name}:setInventory',
485 'httpMethod' => 'POST',
486 'parameters' => [
487 'name' => [
488 'location' => 'path',
489 'type' => 'string',
490 'required' => true,
491 ],
492 ],
493 ],
494 ]
495 ]
496 );
497 $this->projects_locations_catalogs_completionData = new CloudRetail\Resource\ProjectsLocationsCatalogsCompletionData(
498 $this,
499 $this->serviceName,
500 'completionData',
501 [
502 'methods' => [
503 'import' => [
504 'path' => 'v2/{+parent}/completionData:import',
505 'httpMethod' => 'POST',
506 'parameters' => [
507 'parent' => [
508 'location' => 'path',
509 'type' => 'string',
510 'required' => true,
511 ],
512 ],
513 ],
514 ]
515 ]
516 );
517 $this->projects_locations_catalogs_controls = new CloudRetail\Resource\ProjectsLocationsCatalogsControls(
518 $this,
519 $this->serviceName,
520 'controls',
521 [
522 'methods' => [
523 'create' => [
524 'path' => 'v2/{+parent}/controls',
525 'httpMethod' => 'POST',
526 'parameters' => [
527 'parent' => [
528 'location' => 'path',
529 'type' => 'string',
530 'required' => true,
531 ],
532 'controlId' => [
533 'location' => 'query',
534 'type' => 'string',
535 ],
536 ],
537 ],'delete' => [
538 'path' => 'v2/{+name}',
539 'httpMethod' => 'DELETE',
540 'parameters' => [
541 'name' => [
542 'location' => 'path',
543 'type' => 'string',
544 'required' => true,
545 ],
546 ],
547 ],'get' => [
548 'path' => 'v2/{+name}',
549 'httpMethod' => 'GET',
550 'parameters' => [
551 'name' => [
552 'location' => 'path',
553 'type' => 'string',
554 'required' => true,
555 ],
556 ],
557 ],'list' => [
558 'path' => 'v2/{+parent}/controls',
559 'httpMethod' => 'GET',
560 'parameters' => [
561 'parent' => [
562 'location' => 'path',
563 'type' => 'string',
564 'required' => true,
565 ],
566 'filter' => [
567 'location' => 'query',
568 'type' => 'string',
569 ],
570 'pageSize' => [
571 'location' => 'query',
572 'type' => 'integer',
573 ],
574 'pageToken' => [
575 'location' => 'query',
576 'type' => 'string',
577 ],
578 ],
579 ],'patch' => [
580 'path' => 'v2/{+name}',
581 'httpMethod' => 'PATCH',
582 'parameters' => [
583 'name' => [
584 'location' => 'path',
585 'type' => 'string',
586 'required' => true,
587 ],
588 'updateMask' => [
589 'location' => 'query',
590 'type' => 'string',
591 ],
592 ],
593 ],
594 ]
595 ]
596 );
597 $this->projects_locations_catalogs_generativeQuestion = new CloudRetail\Resource\ProjectsLocationsCatalogsGenerativeQuestion(
598 $this,
599 $this->serviceName,
600 'generativeQuestion',
601 [
602 'methods' => [
603 'batchUpdate' => [
604 'path' => 'v2/{+parent}/generativeQuestion:batchUpdate',
605 'httpMethod' => 'POST',
606 'parameters' => [
607 'parent' => [
608 'location' => 'path',
609 'type' => 'string',
610 'required' => true,
611 ],
612 ],
613 ],
614 ]
615 ]
616 );
617 $this->projects_locations_catalogs_generativeQuestions = new CloudRetail\Resource\ProjectsLocationsCatalogsGenerativeQuestions(
618 $this,
619 $this->serviceName,
620 'generativeQuestions',
621 [
622 'methods' => [
623 'list' => [
624 'path' => 'v2/{+parent}/generativeQuestions',
625 'httpMethod' => 'GET',
626 'parameters' => [
627 'parent' => [
628 'location' => 'path',
629 'type' => 'string',
630 'required' => true,
631 ],
632 ],
633 ],
634 ]
635 ]
636 );
637 $this->projects_locations_catalogs_models = new CloudRetail\Resource\ProjectsLocationsCatalogsModels(
638 $this,
639 $this->serviceName,
640 'models',
641 [
642 'methods' => [
643 'create' => [
644 'path' => 'v2/{+parent}/models',
645 'httpMethod' => 'POST',
646 'parameters' => [
647 'parent' => [
648 'location' => 'path',
649 'type' => 'string',
650 'required' => true,
651 ],
652 'dryRun' => [
653 'location' => 'query',
654 'type' => 'boolean',
655 ],
656 ],
657 ],'delete' => [
658 'path' => 'v2/{+name}',
659 'httpMethod' => 'DELETE',
660 'parameters' => [
661 'name' => [
662 'location' => 'path',
663 'type' => 'string',
664 'required' => true,
665 ],
666 ],
667 ],'get' => [
668 'path' => 'v2/{+name}',
669 'httpMethod' => 'GET',
670 'parameters' => [
671 'name' => [
672 'location' => 'path',
673 'type' => 'string',
674 'required' => true,
675 ],
676 ],
677 ],'list' => [
678 'path' => 'v2/{+parent}/models',
679 'httpMethod' => 'GET',
680 'parameters' => [
681 'parent' => [
682 'location' => 'path',
683 'type' => 'string',
684 'required' => true,
685 ],
686 'pageSize' => [
687 'location' => 'query',
688 'type' => 'integer',
689 ],
690 'pageToken' => [
691 'location' => 'query',
692 'type' => 'string',
693 ],
694 ],
695 ],'patch' => [
696 'path' => 'v2/{+name}',
697 'httpMethod' => 'PATCH',
698 'parameters' => [
699 'name' => [
700 'location' => 'path',
701 'type' => 'string',
702 'required' => true,
703 ],
704 'updateMask' => [
705 'location' => 'query',
706 'type' => 'string',
707 ],
708 ],
709 ],'pause' => [
710 'path' => 'v2/{+name}:pause',
711 'httpMethod' => 'POST',
712 'parameters' => [
713 'name' => [
714 'location' => 'path',
715 'type' => 'string',
716 'required' => true,
717 ],
718 ],
719 ],'resume' => [
720 'path' => 'v2/{+name}:resume',
721 'httpMethod' => 'POST',
722 'parameters' => [
723 'name' => [
724 'location' => 'path',
725 'type' => 'string',
726 'required' => true,
727 ],
728 ],
729 ],'tune' => [
730 'path' => 'v2/{+name}:tune',
731 'httpMethod' => 'POST',
732 'parameters' => [
733 'name' => [
734 'location' => 'path',
735 'type' => 'string',
736 'required' => true,
737 ],
738 ],
739 ],
740 ]
741 ]
742 );
743 $this->projects_locations_catalogs_operations = new CloudRetail\Resource\ProjectsLocationsCatalogsOperations(
744 $this,
745 $this->serviceName,
746 'operations',
747 [
748 'methods' => [
749 'get' => [
750 'path' => 'v2/{+name}',
751 'httpMethod' => 'GET',
752 'parameters' => [
753 'name' => [
754 'location' => 'path',
755 'type' => 'string',
756 'required' => true,
757 ],
758 ],
759 ],'list' => [
760 'path' => 'v2/{+name}/operations',
761 'httpMethod' => 'GET',
762 'parameters' => [
763 'name' => [
764 'location' => 'path',
765 'type' => 'string',
766 'required' => true,
767 ],
768 'filter' => [
769 'location' => 'query',
770 'type' => 'string',
771 ],
772 'pageSize' => [
773 'location' => 'query',
774 'type' => 'integer',
775 ],
776 'pageToken' => [
777 'location' => 'query',
778 'type' => 'string',
779 ],
780 ],
781 ],
782 ]
783 ]
784 );
785 $this->projects_locations_catalogs_placements = new CloudRetail\Resource\ProjectsLocationsCatalogsPlacements(
786 $this,
787 $this->serviceName,
788 'placements',
789 [
790 'methods' => [
791 'predict' => [
792 'path' => 'v2/{+placement}:predict',
793 'httpMethod' => 'POST',
794 'parameters' => [
795 'placement' => [
796 'location' => 'path',
797 'type' => 'string',
798 'required' => true,
799 ],
800 ],
801 ],'search' => [
802 'path' => 'v2/{+placement}:search',
803 'httpMethod' => 'POST',
804 'parameters' => [
805 'placement' => [
806 'location' => 'path',
807 'type' => 'string',
808 'required' => true,
809 ],
810 ],
811 ],
812 ]
813 ]
814 );
815 $this->projects_locations_catalogs_servingConfigs = new CloudRetail\Resource\ProjectsLocationsCatalogsServingConfigs(
816 $this,
817 $this->serviceName,
818 'servingConfigs',
819 [
820 'methods' => [
821 'addControl' => [
822 'path' => 'v2/{+servingConfig}:addControl',
823 'httpMethod' => 'POST',
824 'parameters' => [
825 'servingConfig' => [
826 'location' => 'path',
827 'type' => 'string',
828 'required' => true,
829 ],
830 ],
831 ],'create' => [
832 'path' => 'v2/{+parent}/servingConfigs',
833 'httpMethod' => 'POST',
834 'parameters' => [
835 'parent' => [
836 'location' => 'path',
837 'type' => 'string',
838 'required' => true,
839 ],
840 'servingConfigId' => [
841 'location' => 'query',
842 'type' => 'string',
843 ],
844 ],
845 ],'delete' => [
846 'path' => 'v2/{+name}',
847 'httpMethod' => 'DELETE',
848 'parameters' => [
849 'name' => [
850 'location' => 'path',
851 'type' => 'string',
852 'required' => true,
853 ],
854 ],
855 ],'get' => [
856 'path' => 'v2/{+name}',
857 'httpMethod' => 'GET',
858 'parameters' => [
859 'name' => [
860 'location' => 'path',
861 'type' => 'string',
862 'required' => true,
863 ],
864 ],
865 ],'list' => [
866 'path' => 'v2/{+parent}/servingConfigs',
867 'httpMethod' => 'GET',
868 'parameters' => [
869 'parent' => [
870 'location' => 'path',
871 'type' => 'string',
872 'required' => true,
873 ],
874 'pageSize' => [
875 'location' => 'query',
876 'type' => 'integer',
877 ],
878 'pageToken' => [
879 'location' => 'query',
880 'type' => 'string',
881 ],
882 ],
883 ],'patch' => [
884 'path' => 'v2/{+name}',
885 'httpMethod' => 'PATCH',
886 'parameters' => [
887 'name' => [
888 'location' => 'path',
889 'type' => 'string',
890 'required' => true,
891 ],
892 'updateMask' => [
893 'location' => 'query',
894 'type' => 'string',
895 ],
896 ],
897 ],'predict' => [
898 'path' => 'v2/{+placement}:predict',
899 'httpMethod' => 'POST',
900 'parameters' => [
901 'placement' => [
902 'location' => 'path',
903 'type' => 'string',
904 'required' => true,
905 ],
906 ],
907 ],'removeControl' => [
908 'path' => 'v2/{+servingConfig}:removeControl',
909 'httpMethod' => 'POST',
910 'parameters' => [
911 'servingConfig' => [
912 'location' => 'path',
913 'type' => 'string',
914 'required' => true,
915 ],
916 ],
917 ],'search' => [
918 'path' => 'v2/{+placement}:search',
919 'httpMethod' => 'POST',
920 'parameters' => [
921 'placement' => [
922 'location' => 'path',
923 'type' => 'string',
924 'required' => true,
925 ],
926 ],
927 ],
928 ]
929 ]
930 );
931 $this->projects_locations_catalogs_userEvents = new CloudRetail\Resource\ProjectsLocationsCatalogsUserEvents(
932 $this,
933 $this->serviceName,
934 'userEvents',
935 [
936 'methods' => [
937 'collect' => [
938 'path' => 'v2/{+parent}/userEvents:collect',
939 'httpMethod' => 'GET',
940 'parameters' => [
941 'parent' => [
942 'location' => 'path',
943 'type' => 'string',
944 'required' => true,
945 ],
946 'ets' => [
947 'location' => 'query',
948 'type' => 'string',
949 ],
950 'prebuiltRule' => [
951 'location' => 'query',
952 'type' => 'string',
953 ],
954 'rawJson' => [
955 'location' => 'query',
956 'type' => 'string',
957 ],
958 'uri' => [
959 'location' => 'query',
960 'type' => 'string',
961 ],
962 'userEvent' => [
963 'location' => 'query',
964 'type' => 'string',
965 ],
966 ],
967 ],'import' => [
968 'path' => 'v2/{+parent}/userEvents:import',
969 'httpMethod' => 'POST',
970 'parameters' => [
971 'parent' => [
972 'location' => 'path',
973 'type' => 'string',
974 'required' => true,
975 ],
976 ],
977 ],'purge' => [
978 'path' => 'v2/{+parent}/userEvents:purge',
979 'httpMethod' => 'POST',
980 'parameters' => [
981 'parent' => [
982 'location' => 'path',
983 'type' => 'string',
984 'required' => true,
985 ],
986 ],
987 ],'rejoin' => [
988 'path' => 'v2/{+parent}/userEvents:rejoin',
989 'httpMethod' => 'POST',
990 'parameters' => [
991 'parent' => [
992 'location' => 'path',
993 'type' => 'string',
994 'required' => true,
995 ],
996 ],
997 ],'write' => [
998 'path' => 'v2/{+parent}/userEvents:write',
999 'httpMethod' => 'POST',
1000 'parameters' => [
1001 'parent' => [
1002 'location' => 'path',
1003 'type' => 'string',
1004 'required' => true,
1005 ],
1006 'writeAsync' => [
1007 'location' => 'query',
1008 'type' => 'boolean',
1009 ],
1010 ],
1011 ],
1012 ]
1013 ]
1014 );
1015 $this->projects_locations_operations = new CloudRetail\Resource\ProjectsLocationsOperations(
1016 $this,
1017 $this->serviceName,
1018 'operations',
1019 [
1020 'methods' => [
1021 'get' => [
1022 'path' => 'v2/{+name}',
1023 'httpMethod' => 'GET',
1024 'parameters' => [
1025 'name' => [
1026 'location' => 'path',
1027 'type' => 'string',
1028 'required' => true,
1029 ],
1030 ],
1031 ],'list' => [
1032 'path' => 'v2/{+name}/operations',
1033 'httpMethod' => 'GET',
1034 'parameters' => [
1035 'name' => [
1036 'location' => 'path',
1037 'type' => 'string',
1038 'required' => true,
1039 ],
1040 'filter' => [
1041 'location' => 'query',
1042 'type' => 'string',
1043 ],
1044 'pageSize' => [
1045 'location' => 'query',
1046 'type' => 'integer',
1047 ],
1048 'pageToken' => [
1049 'location' => 'query',
1050 'type' => 'string',
1051 ],
1052 ],
1053 ],
1054 ]
1055 ]
1056 );
1057 $this->projects_operations = new CloudRetail\Resource\ProjectsOperations(
1058 $this,
1059 $this->serviceName,
1060 'operations',
1061 [
1062 'methods' => [
1063 'get' => [
1064 'path' => 'v2/{+name}',
1065 'httpMethod' => 'GET',
1066 'parameters' => [
1067 'name' => [
1068 'location' => 'path',
1069 'type' => 'string',
1070 'required' => true,
1071 ],
1072 ],
1073 ],'list' => [
1074 'path' => 'v2/{+name}/operations',
1075 'httpMethod' => 'GET',
1076 'parameters' => [
1077 'name' => [
1078 'location' => 'path',
1079 'type' => 'string',
1080 'required' => true,
1081 ],
1082 'filter' => [
1083 'location' => 'query',
1084 'type' => 'string',
1085 ],
1086 'pageSize' => [
1087 'location' => 'query',
1088 'type' => 'integer',
1089 ],
1090 'pageToken' => [
1091 'location' => 'query',
1092 'type' => 'string',
1093 ],
1094 ],
1095 ],
1096 ]
1097 ]
1098 );
1099 }
1100}
1101
1102// Adding a class alias for backwards compatibility with the previous class name.
1103class_alias(CloudRetail::class, 'Google_Service_CloudRetail');
Note: See TracBrowser for help on using the repository browser.