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