source: vendor/google/apiclient-services/src/Recommender.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: 26.3 KB
RevLine 
[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
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for Recommender (v1).
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/recommender/docs/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Recommender 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 $billingAccounts_locations_insightTypes;
42 public $billingAccounts_locations_insightTypes_insights;
43 public $billingAccounts_locations_recommenders;
44 public $billingAccounts_locations_recommenders_recommendations;
45 public $folders_locations_insightTypes_insights;
46 public $folders_locations_recommenders_recommendations;
47 public $organizations_locations_insightTypes;
48 public $organizations_locations_insightTypes_insights;
49 public $organizations_locations_recommenders;
50 public $organizations_locations_recommenders_recommendations;
51 public $projects_locations_insightTypes;
52 public $projects_locations_insightTypes_insights;
53 public $projects_locations_recommenders;
54 public $projects_locations_recommenders_recommendations;
55 public $rootUrlTemplate;
56
57 /**
58 * Constructs the internal representation of the Recommender service.
59 *
60 * @param Client|array $clientOrConfig The client used to deliver requests, or a
61 * config array to pass to a new Client instance.
62 * @param string $rootUrl The root URL used for requests to the service.
63 */
64 public function __construct($clientOrConfig = [], $rootUrl = null)
65 {
66 parent::__construct($clientOrConfig);
67 $this->rootUrl = $rootUrl ?: 'https://recommender.googleapis.com/';
68 $this->rootUrlTemplate = $rootUrl ?: 'https://recommender.UNIVERSE_DOMAIN/';
69 $this->servicePath = '';
70 $this->batchPath = 'batch';
71 $this->version = 'v1';
72 $this->serviceName = 'recommender';
73
74 $this->billingAccounts_locations_insightTypes = new Recommender\Resource\BillingAccountsLocationsInsightTypes(
75 $this,
76 $this->serviceName,
77 'insightTypes',
78 [
79 'methods' => [
80 'getConfig' => [
81 'path' => 'v1/{+name}',
82 'httpMethod' => 'GET',
83 'parameters' => [
84 'name' => [
85 'location' => 'path',
86 'type' => 'string',
87 'required' => true,
88 ],
89 ],
90 ],'updateConfig' => [
91 'path' => 'v1/{+name}',
92 'httpMethod' => 'PATCH',
93 'parameters' => [
94 'name' => [
95 'location' => 'path',
96 'type' => 'string',
97 'required' => true,
98 ],
99 'updateMask' => [
100 'location' => 'query',
101 'type' => 'string',
102 ],
103 'validateOnly' => [
104 'location' => 'query',
105 'type' => 'boolean',
106 ],
107 ],
108 ],
109 ]
110 ]
111 );
112 $this->billingAccounts_locations_insightTypes_insights = new Recommender\Resource\BillingAccountsLocationsInsightTypesInsights(
113 $this,
114 $this->serviceName,
115 'insights',
116 [
117 'methods' => [
118 'get' => [
119 'path' => 'v1/{+name}',
120 'httpMethod' => 'GET',
121 'parameters' => [
122 'name' => [
123 'location' => 'path',
124 'type' => 'string',
125 'required' => true,
126 ],
127 ],
128 ],'list' => [
129 'path' => 'v1/{+parent}/insights',
130 'httpMethod' => 'GET',
131 'parameters' => [
132 'parent' => [
133 'location' => 'path',
134 'type' => 'string',
135 'required' => true,
136 ],
137 'filter' => [
138 'location' => 'query',
139 'type' => 'string',
140 ],
141 'pageSize' => [
142 'location' => 'query',
143 'type' => 'integer',
144 ],
145 'pageToken' => [
146 'location' => 'query',
147 'type' => 'string',
148 ],
149 ],
150 ],'markAccepted' => [
151 'path' => 'v1/{+name}:markAccepted',
152 'httpMethod' => 'POST',
153 'parameters' => [
154 'name' => [
155 'location' => 'path',
156 'type' => 'string',
157 'required' => true,
158 ],
159 ],
160 ],
161 ]
162 ]
163 );
164 $this->billingAccounts_locations_recommenders = new Recommender\Resource\BillingAccountsLocationsRecommenders(
165 $this,
166 $this->serviceName,
167 'recommenders',
168 [
169 'methods' => [
170 'getConfig' => [
171 'path' => 'v1/{+name}',
172 'httpMethod' => 'GET',
173 'parameters' => [
174 'name' => [
175 'location' => 'path',
176 'type' => 'string',
177 'required' => true,
178 ],
179 ],
180 ],'updateConfig' => [
181 'path' => 'v1/{+name}',
182 'httpMethod' => 'PATCH',
183 'parameters' => [
184 'name' => [
185 'location' => 'path',
186 'type' => 'string',
187 'required' => true,
188 ],
189 'updateMask' => [
190 'location' => 'query',
191 'type' => 'string',
192 ],
193 'validateOnly' => [
194 'location' => 'query',
195 'type' => 'boolean',
196 ],
197 ],
198 ],
199 ]
200 ]
201 );
202 $this->billingAccounts_locations_recommenders_recommendations = new Recommender\Resource\BillingAccountsLocationsRecommendersRecommendations(
203 $this,
204 $this->serviceName,
205 'recommendations',
206 [
207 'methods' => [
208 'get' => [
209 'path' => 'v1/{+name}',
210 'httpMethod' => 'GET',
211 'parameters' => [
212 'name' => [
213 'location' => 'path',
214 'type' => 'string',
215 'required' => true,
216 ],
217 ],
218 ],'list' => [
219 'path' => 'v1/{+parent}/recommendations',
220 'httpMethod' => 'GET',
221 'parameters' => [
222 'parent' => [
223 'location' => 'path',
224 'type' => 'string',
225 'required' => true,
226 ],
227 'filter' => [
228 'location' => 'query',
229 'type' => 'string',
230 ],
231 'pageSize' => [
232 'location' => 'query',
233 'type' => 'integer',
234 ],
235 'pageToken' => [
236 'location' => 'query',
237 'type' => 'string',
238 ],
239 ],
240 ],'markClaimed' => [
241 'path' => 'v1/{+name}:markClaimed',
242 'httpMethod' => 'POST',
243 'parameters' => [
244 'name' => [
245 'location' => 'path',
246 'type' => 'string',
247 'required' => true,
248 ],
249 ],
250 ],'markDismissed' => [
251 'path' => 'v1/{+name}:markDismissed',
252 'httpMethod' => 'POST',
253 'parameters' => [
254 'name' => [
255 'location' => 'path',
256 'type' => 'string',
257 'required' => true,
258 ],
259 ],
260 ],'markFailed' => [
261 'path' => 'v1/{+name}:markFailed',
262 'httpMethod' => 'POST',
263 'parameters' => [
264 'name' => [
265 'location' => 'path',
266 'type' => 'string',
267 'required' => true,
268 ],
269 ],
270 ],'markSucceeded' => [
271 'path' => 'v1/{+name}:markSucceeded',
272 'httpMethod' => 'POST',
273 'parameters' => [
274 'name' => [
275 'location' => 'path',
276 'type' => 'string',
277 'required' => true,
278 ],
279 ],
280 ],
281 ]
282 ]
283 );
284 $this->folders_locations_insightTypes_insights = new Recommender\Resource\FoldersLocationsInsightTypesInsights(
285 $this,
286 $this->serviceName,
287 'insights',
288 [
289 'methods' => [
290 'get' => [
291 'path' => 'v1/{+name}',
292 'httpMethod' => 'GET',
293 'parameters' => [
294 'name' => [
295 'location' => 'path',
296 'type' => 'string',
297 'required' => true,
298 ],
299 ],
300 ],'list' => [
301 'path' => 'v1/{+parent}/insights',
302 'httpMethod' => 'GET',
303 'parameters' => [
304 'parent' => [
305 'location' => 'path',
306 'type' => 'string',
307 'required' => true,
308 ],
309 'filter' => [
310 'location' => 'query',
311 'type' => 'string',
312 ],
313 'pageSize' => [
314 'location' => 'query',
315 'type' => 'integer',
316 ],
317 'pageToken' => [
318 'location' => 'query',
319 'type' => 'string',
320 ],
321 ],
322 ],'markAccepted' => [
323 'path' => 'v1/{+name}:markAccepted',
324 'httpMethod' => 'POST',
325 'parameters' => [
326 'name' => [
327 'location' => 'path',
328 'type' => 'string',
329 'required' => true,
330 ],
331 ],
332 ],
333 ]
334 ]
335 );
336 $this->folders_locations_recommenders_recommendations = new Recommender\Resource\FoldersLocationsRecommendersRecommendations(
337 $this,
338 $this->serviceName,
339 'recommendations',
340 [
341 'methods' => [
342 'get' => [
343 'path' => 'v1/{+name}',
344 'httpMethod' => 'GET',
345 'parameters' => [
346 'name' => [
347 'location' => 'path',
348 'type' => 'string',
349 'required' => true,
350 ],
351 ],
352 ],'list' => [
353 'path' => 'v1/{+parent}/recommendations',
354 'httpMethod' => 'GET',
355 'parameters' => [
356 'parent' => [
357 'location' => 'path',
358 'type' => 'string',
359 'required' => true,
360 ],
361 'filter' => [
362 'location' => 'query',
363 'type' => 'string',
364 ],
365 'pageSize' => [
366 'location' => 'query',
367 'type' => 'integer',
368 ],
369 'pageToken' => [
370 'location' => 'query',
371 'type' => 'string',
372 ],
373 ],
374 ],'markClaimed' => [
375 'path' => 'v1/{+name}:markClaimed',
376 'httpMethod' => 'POST',
377 'parameters' => [
378 'name' => [
379 'location' => 'path',
380 'type' => 'string',
381 'required' => true,
382 ],
383 ],
384 ],'markDismissed' => [
385 'path' => 'v1/{+name}:markDismissed',
386 'httpMethod' => 'POST',
387 'parameters' => [
388 'name' => [
389 'location' => 'path',
390 'type' => 'string',
391 'required' => true,
392 ],
393 ],
394 ],'markFailed' => [
395 'path' => 'v1/{+name}:markFailed',
396 'httpMethod' => 'POST',
397 'parameters' => [
398 'name' => [
399 'location' => 'path',
400 'type' => 'string',
401 'required' => true,
402 ],
403 ],
404 ],'markSucceeded' => [
405 'path' => 'v1/{+name}:markSucceeded',
406 'httpMethod' => 'POST',
407 'parameters' => [
408 'name' => [
409 'location' => 'path',
410 'type' => 'string',
411 'required' => true,
412 ],
413 ],
414 ],
415 ]
416 ]
417 );
418 $this->organizations_locations_insightTypes = new Recommender\Resource\OrganizationsLocationsInsightTypes(
419 $this,
420 $this->serviceName,
421 'insightTypes',
422 [
423 'methods' => [
424 'getConfig' => [
425 'path' => 'v1/{+name}',
426 'httpMethod' => 'GET',
427 'parameters' => [
428 'name' => [
429 'location' => 'path',
430 'type' => 'string',
431 'required' => true,
432 ],
433 ],
434 ],'updateConfig' => [
435 'path' => 'v1/{+name}',
436 'httpMethod' => 'PATCH',
437 'parameters' => [
438 'name' => [
439 'location' => 'path',
440 'type' => 'string',
441 'required' => true,
442 ],
443 'updateMask' => [
444 'location' => 'query',
445 'type' => 'string',
446 ],
447 'validateOnly' => [
448 'location' => 'query',
449 'type' => 'boolean',
450 ],
451 ],
452 ],
453 ]
454 ]
455 );
456 $this->organizations_locations_insightTypes_insights = new Recommender\Resource\OrganizationsLocationsInsightTypesInsights(
457 $this,
458 $this->serviceName,
459 'insights',
460 [
461 'methods' => [
462 'get' => [
463 'path' => 'v1/{+name}',
464 'httpMethod' => 'GET',
465 'parameters' => [
466 'name' => [
467 'location' => 'path',
468 'type' => 'string',
469 'required' => true,
470 ],
471 ],
472 ],'list' => [
473 'path' => 'v1/{+parent}/insights',
474 'httpMethod' => 'GET',
475 'parameters' => [
476 'parent' => [
477 'location' => 'path',
478 'type' => 'string',
479 'required' => true,
480 ],
481 'filter' => [
482 'location' => 'query',
483 'type' => 'string',
484 ],
485 'pageSize' => [
486 'location' => 'query',
487 'type' => 'integer',
488 ],
489 'pageToken' => [
490 'location' => 'query',
491 'type' => 'string',
492 ],
493 ],
494 ],'markAccepted' => [
495 'path' => 'v1/{+name}:markAccepted',
496 'httpMethod' => 'POST',
497 'parameters' => [
498 'name' => [
499 'location' => 'path',
500 'type' => 'string',
501 'required' => true,
502 ],
503 ],
504 ],
505 ]
506 ]
507 );
508 $this->organizations_locations_recommenders = new Recommender\Resource\OrganizationsLocationsRecommenders(
509 $this,
510 $this->serviceName,
511 'recommenders',
512 [
513 'methods' => [
514 'getConfig' => [
515 'path' => 'v1/{+name}',
516 'httpMethod' => 'GET',
517 'parameters' => [
518 'name' => [
519 'location' => 'path',
520 'type' => 'string',
521 'required' => true,
522 ],
523 ],
524 ],'updateConfig' => [
525 'path' => 'v1/{+name}',
526 'httpMethod' => 'PATCH',
527 'parameters' => [
528 'name' => [
529 'location' => 'path',
530 'type' => 'string',
531 'required' => true,
532 ],
533 'updateMask' => [
534 'location' => 'query',
535 'type' => 'string',
536 ],
537 'validateOnly' => [
538 'location' => 'query',
539 'type' => 'boolean',
540 ],
541 ],
542 ],
543 ]
544 ]
545 );
546 $this->organizations_locations_recommenders_recommendations = new Recommender\Resource\OrganizationsLocationsRecommendersRecommendations(
547 $this,
548 $this->serviceName,
549 'recommendations',
550 [
551 'methods' => [
552 'get' => [
553 'path' => 'v1/{+name}',
554 'httpMethod' => 'GET',
555 'parameters' => [
556 'name' => [
557 'location' => 'path',
558 'type' => 'string',
559 'required' => true,
560 ],
561 ],
562 ],'list' => [
563 'path' => 'v1/{+parent}/recommendations',
564 'httpMethod' => 'GET',
565 'parameters' => [
566 'parent' => [
567 'location' => 'path',
568 'type' => 'string',
569 'required' => true,
570 ],
571 'filter' => [
572 'location' => 'query',
573 'type' => 'string',
574 ],
575 'pageSize' => [
576 'location' => 'query',
577 'type' => 'integer',
578 ],
579 'pageToken' => [
580 'location' => 'query',
581 'type' => 'string',
582 ],
583 ],
584 ],'markClaimed' => [
585 'path' => 'v1/{+name}:markClaimed',
586 'httpMethod' => 'POST',
587 'parameters' => [
588 'name' => [
589 'location' => 'path',
590 'type' => 'string',
591 'required' => true,
592 ],
593 ],
594 ],'markDismissed' => [
595 'path' => 'v1/{+name}:markDismissed',
596 'httpMethod' => 'POST',
597 'parameters' => [
598 'name' => [
599 'location' => 'path',
600 'type' => 'string',
601 'required' => true,
602 ],
603 ],
604 ],'markFailed' => [
605 'path' => 'v1/{+name}:markFailed',
606 'httpMethod' => 'POST',
607 'parameters' => [
608 'name' => [
609 'location' => 'path',
610 'type' => 'string',
611 'required' => true,
612 ],
613 ],
614 ],'markSucceeded' => [
615 'path' => 'v1/{+name}:markSucceeded',
616 'httpMethod' => 'POST',
617 'parameters' => [
618 'name' => [
619 'location' => 'path',
620 'type' => 'string',
621 'required' => true,
622 ],
623 ],
624 ],
625 ]
626 ]
627 );
628 $this->projects_locations_insightTypes = new Recommender\Resource\ProjectsLocationsInsightTypes(
629 $this,
630 $this->serviceName,
631 'insightTypes',
632 [
633 'methods' => [
634 'getConfig' => [
635 'path' => 'v1/{+name}',
636 'httpMethod' => 'GET',
637 'parameters' => [
638 'name' => [
639 'location' => 'path',
640 'type' => 'string',
641 'required' => true,
642 ],
643 ],
644 ],'updateConfig' => [
645 'path' => 'v1/{+name}',
646 'httpMethod' => 'PATCH',
647 'parameters' => [
648 'name' => [
649 'location' => 'path',
650 'type' => 'string',
651 'required' => true,
652 ],
653 'updateMask' => [
654 'location' => 'query',
655 'type' => 'string',
656 ],
657 'validateOnly' => [
658 'location' => 'query',
659 'type' => 'boolean',
660 ],
661 ],
662 ],
663 ]
664 ]
665 );
666 $this->projects_locations_insightTypes_insights = new Recommender\Resource\ProjectsLocationsInsightTypesInsights(
667 $this,
668 $this->serviceName,
669 'insights',
670 [
671 'methods' => [
672 'get' => [
673 'path' => 'v1/{+name}',
674 'httpMethod' => 'GET',
675 'parameters' => [
676 'name' => [
677 'location' => 'path',
678 'type' => 'string',
679 'required' => true,
680 ],
681 ],
682 ],'list' => [
683 'path' => 'v1/{+parent}/insights',
684 'httpMethod' => 'GET',
685 'parameters' => [
686 'parent' => [
687 'location' => 'path',
688 'type' => 'string',
689 'required' => true,
690 ],
691 'filter' => [
692 'location' => 'query',
693 'type' => 'string',
694 ],
695 'pageSize' => [
696 'location' => 'query',
697 'type' => 'integer',
698 ],
699 'pageToken' => [
700 'location' => 'query',
701 'type' => 'string',
702 ],
703 ],
704 ],'markAccepted' => [
705 'path' => 'v1/{+name}:markAccepted',
706 'httpMethod' => 'POST',
707 'parameters' => [
708 'name' => [
709 'location' => 'path',
710 'type' => 'string',
711 'required' => true,
712 ],
713 ],
714 ],
715 ]
716 ]
717 );
718 $this->projects_locations_recommenders = new Recommender\Resource\ProjectsLocationsRecommenders(
719 $this,
720 $this->serviceName,
721 'recommenders',
722 [
723 'methods' => [
724 'getConfig' => [
725 'path' => 'v1/{+name}',
726 'httpMethod' => 'GET',
727 'parameters' => [
728 'name' => [
729 'location' => 'path',
730 'type' => 'string',
731 'required' => true,
732 ],
733 ],
734 ],'updateConfig' => [
735 'path' => 'v1/{+name}',
736 'httpMethod' => 'PATCH',
737 'parameters' => [
738 'name' => [
739 'location' => 'path',
740 'type' => 'string',
741 'required' => true,
742 ],
743 'updateMask' => [
744 'location' => 'query',
745 'type' => 'string',
746 ],
747 'validateOnly' => [
748 'location' => 'query',
749 'type' => 'boolean',
750 ],
751 ],
752 ],
753 ]
754 ]
755 );
756 $this->projects_locations_recommenders_recommendations = new Recommender\Resource\ProjectsLocationsRecommendersRecommendations(
757 $this,
758 $this->serviceName,
759 'recommendations',
760 [
761 'methods' => [
762 'get' => [
763 'path' => 'v1/{+name}',
764 'httpMethod' => 'GET',
765 'parameters' => [
766 'name' => [
767 'location' => 'path',
768 'type' => 'string',
769 'required' => true,
770 ],
771 ],
772 ],'list' => [
773 'path' => 'v1/{+parent}/recommendations',
774 'httpMethod' => 'GET',
775 'parameters' => [
776 'parent' => [
777 'location' => 'path',
778 'type' => 'string',
779 'required' => true,
780 ],
781 'filter' => [
782 'location' => 'query',
783 'type' => 'string',
784 ],
785 'pageSize' => [
786 'location' => 'query',
787 'type' => 'integer',
788 ],
789 'pageToken' => [
790 'location' => 'query',
791 'type' => 'string',
792 ],
793 ],
794 ],'markClaimed' => [
795 'path' => 'v1/{+name}:markClaimed',
796 'httpMethod' => 'POST',
797 'parameters' => [
798 'name' => [
799 'location' => 'path',
800 'type' => 'string',
801 'required' => true,
802 ],
803 ],
804 ],'markDismissed' => [
805 'path' => 'v1/{+name}:markDismissed',
806 'httpMethod' => 'POST',
807 'parameters' => [
808 'name' => [
809 'location' => 'path',
810 'type' => 'string',
811 'required' => true,
812 ],
813 ],
814 ],'markFailed' => [
815 'path' => 'v1/{+name}:markFailed',
816 'httpMethod' => 'POST',
817 'parameters' => [
818 'name' => [
819 'location' => 'path',
820 'type' => 'string',
821 'required' => true,
822 ],
823 ],
824 ],'markSucceeded' => [
825 'path' => 'v1/{+name}:markSucceeded',
826 'httpMethod' => 'POST',
827 'parameters' => [
828 'name' => [
829 'location' => 'path',
830 'type' => 'string',
831 'required' => true,
832 ],
833 ],
834 ],
835 ]
836 ]
837 );
838 }
839}
840
841// Adding a class alias for backwards compatibility with the previous class name.
842class_alias(Recommender::class, 'Google_Service_Recommender');
Note: See TracBrowser for help on using the repository browser.