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