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