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
18/**
19 * Service definition for Recommender (v1).
20 *
21 * <p>
22</p>
23 *
24 * <p>
25 * For more information about this service, see the API
26 * <a href="https://cloud.google.com/recommender/docs/" target="_blank">Documentation</a>
27 * </p>
28 *
29 * @author Google, Inc.
30 */
31class Google_Service_Recommender extends Google_Service
32{
33  /** See, edit, configure, and delete your Google Cloud Platform data. */
34  const CLOUD_PLATFORM =
35      "https://www.googleapis.com/auth/cloud-platform";
36
37  public $billingAccounts_locations_insightTypes_insights;
38  public $billingAccounts_locations_recommenders_recommendations;
39  public $folders_locations_insightTypes_insights;
40  public $folders_locations_recommenders_recommendations;
41  public $organizations_locations_insightTypes_insights;
42  public $organizations_locations_recommenders_recommendations;
43  public $projects_locations_insightTypes_insights;
44  public $projects_locations_recommenders_recommendations;
45
46  /**
47   * Constructs the internal representation of the Recommender service.
48   *
49   * @param Google_Client $client The client used to deliver requests.
50   * @param string $rootUrl The root URL used for requests to the service.
51   */
52  public function __construct(Google_Client $client, $rootUrl = null)
53  {
54    parent::__construct($client);
55    $this->rootUrl = $rootUrl ?: 'https://recommender.googleapis.com/';
56    $this->servicePath = '';
57    $this->batchPath = 'batch';
58    $this->version = 'v1';
59    $this->serviceName = 'recommender';
60
61    $this->billingAccounts_locations_insightTypes_insights = new Google_Service_Recommender_Resource_BillingAccountsLocationsInsightTypesInsights(
62        $this,
63        $this->serviceName,
64        'insights',
65        array(
66          'methods' => array(
67            'get' => array(
68              'path' => 'v1/{+name}',
69              'httpMethod' => 'GET',
70              'parameters' => array(
71                'name' => array(
72                  'location' => 'path',
73                  'type' => 'string',
74                  'required' => true,
75                ),
76              ),
77            ),'list' => array(
78              'path' => 'v1/{+parent}/insights',
79              'httpMethod' => 'GET',
80              'parameters' => array(
81                'parent' => array(
82                  'location' => 'path',
83                  'type' => 'string',
84                  'required' => true,
85                ),
86                'filter' => array(
87                  'location' => 'query',
88                  'type' => 'string',
89                ),
90                'pageSize' => array(
91                  'location' => 'query',
92                  'type' => 'integer',
93                ),
94                'pageToken' => array(
95                  'location' => 'query',
96                  'type' => 'string',
97                ),
98              ),
99            ),'markAccepted' => array(
100              'path' => 'v1/{+name}:markAccepted',
101              'httpMethod' => 'POST',
102              'parameters' => array(
103                'name' => array(
104                  'location' => 'path',
105                  'type' => 'string',
106                  'required' => true,
107                ),
108              ),
109            ),
110          )
111        )
112    );
113    $this->billingAccounts_locations_recommenders_recommendations = new Google_Service_Recommender_Resource_BillingAccountsLocationsRecommendersRecommendations(
114        $this,
115        $this->serviceName,
116        'recommendations',
117        array(
118          'methods' => array(
119            'get' => array(
120              'path' => 'v1/{+name}',
121              'httpMethod' => 'GET',
122              'parameters' => array(
123                'name' => array(
124                  'location' => 'path',
125                  'type' => 'string',
126                  'required' => true,
127                ),
128              ),
129            ),'list' => array(
130              'path' => 'v1/{+parent}/recommendations',
131              'httpMethod' => 'GET',
132              'parameters' => array(
133                'parent' => array(
134                  'location' => 'path',
135                  'type' => 'string',
136                  'required' => true,
137                ),
138                'filter' => array(
139                  'location' => 'query',
140                  'type' => 'string',
141                ),
142                'pageSize' => array(
143                  'location' => 'query',
144                  'type' => 'integer',
145                ),
146                'pageToken' => array(
147                  'location' => 'query',
148                  'type' => 'string',
149                ),
150              ),
151            ),'markClaimed' => array(
152              'path' => 'v1/{+name}:markClaimed',
153              'httpMethod' => 'POST',
154              'parameters' => array(
155                'name' => array(
156                  'location' => 'path',
157                  'type' => 'string',
158                  'required' => true,
159                ),
160              ),
161            ),'markFailed' => array(
162              'path' => 'v1/{+name}:markFailed',
163              'httpMethod' => 'POST',
164              'parameters' => array(
165                'name' => array(
166                  'location' => 'path',
167                  'type' => 'string',
168                  'required' => true,
169                ),
170              ),
171            ),'markSucceeded' => array(
172              'path' => 'v1/{+name}:markSucceeded',
173              'httpMethod' => 'POST',
174              'parameters' => array(
175                'name' => array(
176                  'location' => 'path',
177                  'type' => 'string',
178                  'required' => true,
179                ),
180              ),
181            ),
182          )
183        )
184    );
185    $this->folders_locations_insightTypes_insights = new Google_Service_Recommender_Resource_FoldersLocationsInsightTypesInsights(
186        $this,
187        $this->serviceName,
188        'insights',
189        array(
190          'methods' => array(
191            'get' => array(
192              'path' => 'v1/{+name}',
193              'httpMethod' => 'GET',
194              'parameters' => array(
195                'name' => array(
196                  'location' => 'path',
197                  'type' => 'string',
198                  'required' => true,
199                ),
200              ),
201            ),'list' => array(
202              'path' => 'v1/{+parent}/insights',
203              'httpMethod' => 'GET',
204              'parameters' => array(
205                'parent' => array(
206                  'location' => 'path',
207                  'type' => 'string',
208                  'required' => true,
209                ),
210                'filter' => array(
211                  'location' => 'query',
212                  'type' => 'string',
213                ),
214                'pageSize' => array(
215                  'location' => 'query',
216                  'type' => 'integer',
217                ),
218                'pageToken' => array(
219                  'location' => 'query',
220                  'type' => 'string',
221                ),
222              ),
223            ),'markAccepted' => array(
224              'path' => 'v1/{+name}:markAccepted',
225              'httpMethod' => 'POST',
226              'parameters' => array(
227                'name' => array(
228                  'location' => 'path',
229                  'type' => 'string',
230                  'required' => true,
231                ),
232              ),
233            ),
234          )
235        )
236    );
237    $this->folders_locations_recommenders_recommendations = new Google_Service_Recommender_Resource_FoldersLocationsRecommendersRecommendations(
238        $this,
239        $this->serviceName,
240        'recommendations',
241        array(
242          'methods' => array(
243            'get' => array(
244              'path' => 'v1/{+name}',
245              'httpMethod' => 'GET',
246              'parameters' => array(
247                'name' => array(
248                  'location' => 'path',
249                  'type' => 'string',
250                  'required' => true,
251                ),
252              ),
253            ),'list' => array(
254              'path' => 'v1/{+parent}/recommendations',
255              'httpMethod' => 'GET',
256              'parameters' => array(
257                'parent' => array(
258                  'location' => 'path',
259                  'type' => 'string',
260                  'required' => true,
261                ),
262                'filter' => array(
263                  'location' => 'query',
264                  'type' => 'string',
265                ),
266                'pageSize' => array(
267                  'location' => 'query',
268                  'type' => 'integer',
269                ),
270                'pageToken' => array(
271                  'location' => 'query',
272                  'type' => 'string',
273                ),
274              ),
275            ),'markClaimed' => array(
276              'path' => 'v1/{+name}:markClaimed',
277              'httpMethod' => 'POST',
278              'parameters' => array(
279                'name' => array(
280                  'location' => 'path',
281                  'type' => 'string',
282                  'required' => true,
283                ),
284              ),
285            ),'markFailed' => array(
286              'path' => 'v1/{+name}:markFailed',
287              'httpMethod' => 'POST',
288              'parameters' => array(
289                'name' => array(
290                  'location' => 'path',
291                  'type' => 'string',
292                  'required' => true,
293                ),
294              ),
295            ),'markSucceeded' => array(
296              'path' => 'v1/{+name}:markSucceeded',
297              'httpMethod' => 'POST',
298              'parameters' => array(
299                'name' => array(
300                  'location' => 'path',
301                  'type' => 'string',
302                  'required' => true,
303                ),
304              ),
305            ),
306          )
307        )
308    );
309    $this->organizations_locations_insightTypes_insights = new Google_Service_Recommender_Resource_OrganizationsLocationsInsightTypesInsights(
310        $this,
311        $this->serviceName,
312        'insights',
313        array(
314          'methods' => array(
315            'get' => array(
316              'path' => 'v1/{+name}',
317              'httpMethod' => 'GET',
318              'parameters' => array(
319                'name' => array(
320                  'location' => 'path',
321                  'type' => 'string',
322                  'required' => true,
323                ),
324              ),
325            ),'list' => array(
326              'path' => 'v1/{+parent}/insights',
327              'httpMethod' => 'GET',
328              'parameters' => array(
329                'parent' => array(
330                  'location' => 'path',
331                  'type' => 'string',
332                  'required' => true,
333                ),
334                'filter' => array(
335                  'location' => 'query',
336                  'type' => 'string',
337                ),
338                'pageSize' => array(
339                  'location' => 'query',
340                  'type' => 'integer',
341                ),
342                'pageToken' => array(
343                  'location' => 'query',
344                  'type' => 'string',
345                ),
346              ),
347            ),'markAccepted' => array(
348              'path' => 'v1/{+name}:markAccepted',
349              'httpMethod' => 'POST',
350              'parameters' => array(
351                'name' => array(
352                  'location' => 'path',
353                  'type' => 'string',
354                  'required' => true,
355                ),
356              ),
357            ),
358          )
359        )
360    );
361    $this->organizations_locations_recommenders_recommendations = new Google_Service_Recommender_Resource_OrganizationsLocationsRecommendersRecommendations(
362        $this,
363        $this->serviceName,
364        'recommendations',
365        array(
366          'methods' => array(
367            'get' => array(
368              'path' => 'v1/{+name}',
369              'httpMethod' => 'GET',
370              'parameters' => array(
371                'name' => array(
372                  'location' => 'path',
373                  'type' => 'string',
374                  'required' => true,
375                ),
376              ),
377            ),'list' => array(
378              'path' => 'v1/{+parent}/recommendations',
379              'httpMethod' => 'GET',
380              'parameters' => array(
381                'parent' => array(
382                  'location' => 'path',
383                  'type' => 'string',
384                  'required' => true,
385                ),
386                'filter' => array(
387                  'location' => 'query',
388                  'type' => 'string',
389                ),
390                'pageSize' => array(
391                  'location' => 'query',
392                  'type' => 'integer',
393                ),
394                'pageToken' => array(
395                  'location' => 'query',
396                  'type' => 'string',
397                ),
398              ),
399            ),'markClaimed' => array(
400              'path' => 'v1/{+name}:markClaimed',
401              'httpMethod' => 'POST',
402              'parameters' => array(
403                'name' => array(
404                  'location' => 'path',
405                  'type' => 'string',
406                  'required' => true,
407                ),
408              ),
409            ),'markFailed' => array(
410              'path' => 'v1/{+name}:markFailed',
411              'httpMethod' => 'POST',
412              'parameters' => array(
413                'name' => array(
414                  'location' => 'path',
415                  'type' => 'string',
416                  'required' => true,
417                ),
418              ),
419            ),'markSucceeded' => array(
420              'path' => 'v1/{+name}:markSucceeded',
421              'httpMethod' => 'POST',
422              'parameters' => array(
423                'name' => array(
424                  'location' => 'path',
425                  'type' => 'string',
426                  'required' => true,
427                ),
428              ),
429            ),
430          )
431        )
432    );
433    $this->projects_locations_insightTypes_insights = new Google_Service_Recommender_Resource_ProjectsLocationsInsightTypesInsights(
434        $this,
435        $this->serviceName,
436        'insights',
437        array(
438          'methods' => array(
439            'get' => array(
440              'path' => 'v1/{+name}',
441              'httpMethod' => 'GET',
442              'parameters' => array(
443                'name' => array(
444                  'location' => 'path',
445                  'type' => 'string',
446                  'required' => true,
447                ),
448              ),
449            ),'list' => array(
450              'path' => 'v1/{+parent}/insights',
451              'httpMethod' => 'GET',
452              'parameters' => array(
453                'parent' => array(
454                  'location' => 'path',
455                  'type' => 'string',
456                  'required' => true,
457                ),
458                'filter' => array(
459                  'location' => 'query',
460                  'type' => 'string',
461                ),
462                'pageSize' => array(
463                  'location' => 'query',
464                  'type' => 'integer',
465                ),
466                'pageToken' => array(
467                  'location' => 'query',
468                  'type' => 'string',
469                ),
470              ),
471            ),'markAccepted' => array(
472              'path' => 'v1/{+name}:markAccepted',
473              'httpMethod' => 'POST',
474              'parameters' => array(
475                'name' => array(
476                  'location' => 'path',
477                  'type' => 'string',
478                  'required' => true,
479                ),
480              ),
481            ),
482          )
483        )
484    );
485    $this->projects_locations_recommenders_recommendations = new Google_Service_Recommender_Resource_ProjectsLocationsRecommendersRecommendations(
486        $this,
487        $this->serviceName,
488        'recommendations',
489        array(
490          'methods' => array(
491            'get' => array(
492              'path' => 'v1/{+name}',
493              'httpMethod' => 'GET',
494              'parameters' => array(
495                'name' => array(
496                  'location' => 'path',
497                  'type' => 'string',
498                  'required' => true,
499                ),
500              ),
501            ),'list' => array(
502              'path' => 'v1/{+parent}/recommendations',
503              'httpMethod' => 'GET',
504              'parameters' => array(
505                'parent' => array(
506                  'location' => 'path',
507                  'type' => 'string',
508                  'required' => true,
509                ),
510                'filter' => array(
511                  'location' => 'query',
512                  'type' => 'string',
513                ),
514                'pageSize' => array(
515                  'location' => 'query',
516                  'type' => 'integer',
517                ),
518                'pageToken' => array(
519                  'location' => 'query',
520                  'type' => 'string',
521                ),
522              ),
523            ),'markClaimed' => array(
524              'path' => 'v1/{+name}:markClaimed',
525              'httpMethod' => 'POST',
526              'parameters' => array(
527                'name' => array(
528                  'location' => 'path',
529                  'type' => 'string',
530                  'required' => true,
531                ),
532              ),
533            ),'markFailed' => array(
534              'path' => 'v1/{+name}:markFailed',
535              'httpMethod' => 'POST',
536              'parameters' => array(
537                'name' => array(
538                  'location' => 'path',
539                  'type' => 'string',
540                  'required' => true,
541                ),
542              ),
543            ),'markSucceeded' => array(
544              'path' => 'v1/{+name}:markSucceeded',
545              'httpMethod' => 'POST',
546              'parameters' => array(
547                'name' => array(
548                  'location' => 'path',
549                  'type' => 'string',
550                  'required' => true,
551                ),
552              ),
553            ),
554          )
555        )
556    );
557  }
558}
559