source: vendor/google/apiclient-services/src/CloudMachineLearningEngine.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload new project files

  • Property mode set to 100644
File size: 21.9 KB
Line 
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 CloudMachineLearningEngine (v1).
24 *
25 * <p>
26 * An API to enable creating and using machine learning models.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/ml/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class CloudMachineLearningEngine extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40 /** View your data across Google Cloud services and see the email address of your Google Account. */
41 const CLOUD_PLATFORM_READ_ONLY =
42 "https://www.googleapis.com/auth/cloud-platform.read-only";
43
44 public $projects;
45 public $projects_jobs;
46 public $projects_locations;
47 public $projects_locations_operations;
48 public $projects_locations_studies;
49 public $projects_locations_studies_trials;
50 public $projects_models;
51 public $projects_models_versions;
52 public $projects_operations;
53 public $rootUrlTemplate;
54
55 /**
56 * Constructs the internal representation of the CloudMachineLearningEngine
57 * service.
58 *
59 * @param Client|array $clientOrConfig The client used to deliver requests, or a
60 * config array to pass to a new Client instance.
61 * @param string $rootUrl The root URL used for requests to the service.
62 */
63 public function __construct($clientOrConfig = [], $rootUrl = null)
64 {
65 parent::__construct($clientOrConfig);
66 $this->rootUrl = $rootUrl ?: 'https://ml.googleapis.com/';
67 $this->rootUrlTemplate = $rootUrl ?: 'https://ml.UNIVERSE_DOMAIN/';
68 $this->servicePath = '';
69 $this->batchPath = 'batch';
70 $this->version = 'v1';
71 $this->serviceName = 'ml';
72
73 $this->projects = new CloudMachineLearningEngine\Resource\Projects(
74 $this,
75 $this->serviceName,
76 'projects',
77 [
78 'methods' => [
79 'explain' => [
80 'path' => 'v1/{+name}:explain',
81 'httpMethod' => 'POST',
82 'parameters' => [
83 'name' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 ],
89 ],'getConfig' => [
90 'path' => 'v1/{+name}:getConfig',
91 'httpMethod' => 'GET',
92 'parameters' => [
93 'name' => [
94 'location' => 'path',
95 'type' => 'string',
96 'required' => true,
97 ],
98 ],
99 ],'predict' => [
100 'path' => 'v1/{+name}:predict',
101 'httpMethod' => 'POST',
102 'parameters' => [
103 'name' => [
104 'location' => 'path',
105 'type' => 'string',
106 'required' => true,
107 ],
108 ],
109 ],
110 ]
111 ]
112 );
113 $this->projects_jobs = new CloudMachineLearningEngine\Resource\ProjectsJobs(
114 $this,
115 $this->serviceName,
116 'jobs',
117 [
118 'methods' => [
119 'cancel' => [
120 'path' => 'v1/{+name}:cancel',
121 'httpMethod' => 'POST',
122 'parameters' => [
123 'name' => [
124 'location' => 'path',
125 'type' => 'string',
126 'required' => true,
127 ],
128 ],
129 ],'create' => [
130 'path' => 'v1/{+parent}/jobs',
131 'httpMethod' => 'POST',
132 'parameters' => [
133 'parent' => [
134 'location' => 'path',
135 'type' => 'string',
136 'required' => true,
137 ],
138 ],
139 ],'get' => [
140 'path' => 'v1/{+name}',
141 'httpMethod' => 'GET',
142 'parameters' => [
143 'name' => [
144 'location' => 'path',
145 'type' => 'string',
146 'required' => true,
147 ],
148 ],
149 ],'getIamPolicy' => [
150 'path' => 'v1/{+resource}:getIamPolicy',
151 'httpMethod' => 'GET',
152 'parameters' => [
153 'resource' => [
154 'location' => 'path',
155 'type' => 'string',
156 'required' => true,
157 ],
158 'options.requestedPolicyVersion' => [
159 'location' => 'query',
160 'type' => 'integer',
161 ],
162 ],
163 ],'list' => [
164 'path' => 'v1/{+parent}/jobs',
165 'httpMethod' => 'GET',
166 'parameters' => [
167 'parent' => [
168 'location' => 'path',
169 'type' => 'string',
170 'required' => true,
171 ],
172 'filter' => [
173 'location' => 'query',
174 'type' => 'string',
175 ],
176 'pageSize' => [
177 'location' => 'query',
178 'type' => 'integer',
179 ],
180 'pageToken' => [
181 'location' => 'query',
182 'type' => 'string',
183 ],
184 ],
185 ],'patch' => [
186 'path' => 'v1/{+name}',
187 'httpMethod' => 'PATCH',
188 'parameters' => [
189 'name' => [
190 'location' => 'path',
191 'type' => 'string',
192 'required' => true,
193 ],
194 'updateMask' => [
195 'location' => 'query',
196 'type' => 'string',
197 ],
198 ],
199 ],'setIamPolicy' => [
200 'path' => 'v1/{+resource}:setIamPolicy',
201 'httpMethod' => 'POST',
202 'parameters' => [
203 'resource' => [
204 'location' => 'path',
205 'type' => 'string',
206 'required' => true,
207 ],
208 ],
209 ],'testIamPermissions' => [
210 'path' => 'v1/{+resource}:testIamPermissions',
211 'httpMethod' => 'POST',
212 'parameters' => [
213 'resource' => [
214 'location' => 'path',
215 'type' => 'string',
216 'required' => true,
217 ],
218 ],
219 ],
220 ]
221 ]
222 );
223 $this->projects_locations = new CloudMachineLearningEngine\Resource\ProjectsLocations(
224 $this,
225 $this->serviceName,
226 'locations',
227 [
228 'methods' => [
229 'get' => [
230 'path' => 'v1/{+name}',
231 'httpMethod' => 'GET',
232 'parameters' => [
233 'name' => [
234 'location' => 'path',
235 'type' => 'string',
236 'required' => true,
237 ],
238 ],
239 ],'list' => [
240 'path' => 'v1/{+parent}/locations',
241 'httpMethod' => 'GET',
242 'parameters' => [
243 'parent' => [
244 'location' => 'path',
245 'type' => 'string',
246 'required' => true,
247 ],
248 'pageSize' => [
249 'location' => 'query',
250 'type' => 'integer',
251 ],
252 'pageToken' => [
253 'location' => 'query',
254 'type' => 'string',
255 ],
256 ],
257 ],
258 ]
259 ]
260 );
261 $this->projects_locations_operations = new CloudMachineLearningEngine\Resource\ProjectsLocationsOperations(
262 $this,
263 $this->serviceName,
264 'operations',
265 [
266 'methods' => [
267 'cancel' => [
268 'path' => 'v1/{+name}:cancel',
269 'httpMethod' => 'POST',
270 'parameters' => [
271 'name' => [
272 'location' => 'path',
273 'type' => 'string',
274 'required' => true,
275 ],
276 ],
277 ],'get' => [
278 'path' => 'v1/{+name}',
279 'httpMethod' => 'GET',
280 'parameters' => [
281 'name' => [
282 'location' => 'path',
283 'type' => 'string',
284 'required' => true,
285 ],
286 ],
287 ],
288 ]
289 ]
290 );
291 $this->projects_locations_studies = new CloudMachineLearningEngine\Resource\ProjectsLocationsStudies(
292 $this,
293 $this->serviceName,
294 'studies',
295 [
296 'methods' => [
297 'create' => [
298 'path' => 'v1/{+parent}/studies',
299 'httpMethod' => 'POST',
300 'parameters' => [
301 'parent' => [
302 'location' => 'path',
303 'type' => 'string',
304 'required' => true,
305 ],
306 'studyId' => [
307 'location' => 'query',
308 'type' => 'string',
309 ],
310 ],
311 ],'delete' => [
312 'path' => 'v1/{+name}',
313 'httpMethod' => 'DELETE',
314 'parameters' => [
315 'name' => [
316 'location' => 'path',
317 'type' => 'string',
318 'required' => true,
319 ],
320 ],
321 ],'get' => [
322 'path' => 'v1/{+name}',
323 'httpMethod' => 'GET',
324 'parameters' => [
325 'name' => [
326 'location' => 'path',
327 'type' => 'string',
328 'required' => true,
329 ],
330 ],
331 ],'list' => [
332 'path' => 'v1/{+parent}/studies',
333 'httpMethod' => 'GET',
334 'parameters' => [
335 'parent' => [
336 'location' => 'path',
337 'type' => 'string',
338 'required' => true,
339 ],
340 ],
341 ],
342 ]
343 ]
344 );
345 $this->projects_locations_studies_trials = new CloudMachineLearningEngine\Resource\ProjectsLocationsStudiesTrials(
346 $this,
347 $this->serviceName,
348 'trials',
349 [
350 'methods' => [
351 'addMeasurement' => [
352 'path' => 'v1/{+name}:addMeasurement',
353 'httpMethod' => 'POST',
354 'parameters' => [
355 'name' => [
356 'location' => 'path',
357 'type' => 'string',
358 'required' => true,
359 ],
360 ],
361 ],'checkEarlyStoppingState' => [
362 'path' => 'v1/{+name}:checkEarlyStoppingState',
363 'httpMethod' => 'POST',
364 'parameters' => [
365 'name' => [
366 'location' => 'path',
367 'type' => 'string',
368 'required' => true,
369 ],
370 ],
371 ],'complete' => [
372 'path' => 'v1/{+name}:complete',
373 'httpMethod' => 'POST',
374 'parameters' => [
375 'name' => [
376 'location' => 'path',
377 'type' => 'string',
378 'required' => true,
379 ],
380 ],
381 ],'create' => [
382 'path' => 'v1/{+parent}/trials',
383 'httpMethod' => 'POST',
384 'parameters' => [
385 'parent' => [
386 'location' => 'path',
387 'type' => 'string',
388 'required' => true,
389 ],
390 ],
391 ],'delete' => [
392 'path' => 'v1/{+name}',
393 'httpMethod' => 'DELETE',
394 'parameters' => [
395 'name' => [
396 'location' => 'path',
397 'type' => 'string',
398 'required' => true,
399 ],
400 ],
401 ],'get' => [
402 'path' => 'v1/{+name}',
403 'httpMethod' => 'GET',
404 'parameters' => [
405 'name' => [
406 'location' => 'path',
407 'type' => 'string',
408 'required' => true,
409 ],
410 ],
411 ],'list' => [
412 'path' => 'v1/{+parent}/trials',
413 'httpMethod' => 'GET',
414 'parameters' => [
415 'parent' => [
416 'location' => 'path',
417 'type' => 'string',
418 'required' => true,
419 ],
420 ],
421 ],'listOptimalTrials' => [
422 'path' => 'v1/{+parent}/trials:listOptimalTrials',
423 'httpMethod' => 'POST',
424 'parameters' => [
425 'parent' => [
426 'location' => 'path',
427 'type' => 'string',
428 'required' => true,
429 ],
430 ],
431 ],'stop' => [
432 'path' => 'v1/{+name}:stop',
433 'httpMethod' => 'POST',
434 'parameters' => [
435 'name' => [
436 'location' => 'path',
437 'type' => 'string',
438 'required' => true,
439 ],
440 ],
441 ],'suggest' => [
442 'path' => 'v1/{+parent}/trials:suggest',
443 'httpMethod' => 'POST',
444 'parameters' => [
445 'parent' => [
446 'location' => 'path',
447 'type' => 'string',
448 'required' => true,
449 ],
450 ],
451 ],
452 ]
453 ]
454 );
455 $this->projects_models = new CloudMachineLearningEngine\Resource\ProjectsModels(
456 $this,
457 $this->serviceName,
458 'models',
459 [
460 'methods' => [
461 'create' => [
462 'path' => 'v1/{+parent}/models',
463 'httpMethod' => 'POST',
464 'parameters' => [
465 'parent' => [
466 'location' => 'path',
467 'type' => 'string',
468 'required' => true,
469 ],
470 ],
471 ],'delete' => [
472 'path' => 'v1/{+name}',
473 'httpMethod' => 'DELETE',
474 'parameters' => [
475 'name' => [
476 'location' => 'path',
477 'type' => 'string',
478 'required' => true,
479 ],
480 ],
481 ],'get' => [
482 'path' => 'v1/{+name}',
483 'httpMethod' => 'GET',
484 'parameters' => [
485 'name' => [
486 'location' => 'path',
487 'type' => 'string',
488 'required' => true,
489 ],
490 ],
491 ],'getIamPolicy' => [
492 'path' => 'v1/{+resource}:getIamPolicy',
493 'httpMethod' => 'GET',
494 'parameters' => [
495 'resource' => [
496 'location' => 'path',
497 'type' => 'string',
498 'required' => true,
499 ],
500 'options.requestedPolicyVersion' => [
501 'location' => 'query',
502 'type' => 'integer',
503 ],
504 ],
505 ],'list' => [
506 'path' => 'v1/{+parent}/models',
507 'httpMethod' => 'GET',
508 'parameters' => [
509 'parent' => [
510 'location' => 'path',
511 'type' => 'string',
512 'required' => true,
513 ],
514 'filter' => [
515 'location' => 'query',
516 'type' => 'string',
517 ],
518 'pageSize' => [
519 'location' => 'query',
520 'type' => 'integer',
521 ],
522 'pageToken' => [
523 'location' => 'query',
524 'type' => 'string',
525 ],
526 ],
527 ],'patch' => [
528 'path' => 'v1/{+name}',
529 'httpMethod' => 'PATCH',
530 'parameters' => [
531 'name' => [
532 'location' => 'path',
533 'type' => 'string',
534 'required' => true,
535 ],
536 'updateMask' => [
537 'location' => 'query',
538 'type' => 'string',
539 ],
540 ],
541 ],'setIamPolicy' => [
542 'path' => 'v1/{+resource}:setIamPolicy',
543 'httpMethod' => 'POST',
544 'parameters' => [
545 'resource' => [
546 'location' => 'path',
547 'type' => 'string',
548 'required' => true,
549 ],
550 ],
551 ],'testIamPermissions' => [
552 'path' => 'v1/{+resource}:testIamPermissions',
553 'httpMethod' => 'POST',
554 'parameters' => [
555 'resource' => [
556 'location' => 'path',
557 'type' => 'string',
558 'required' => true,
559 ],
560 ],
561 ],
562 ]
563 ]
564 );
565 $this->projects_models_versions = new CloudMachineLearningEngine\Resource\ProjectsModelsVersions(
566 $this,
567 $this->serviceName,
568 'versions',
569 [
570 'methods' => [
571 'create' => [
572 'path' => 'v1/{+parent}/versions',
573 'httpMethod' => 'POST',
574 'parameters' => [
575 'parent' => [
576 'location' => 'path',
577 'type' => 'string',
578 'required' => true,
579 ],
580 ],
581 ],'delete' => [
582 'path' => 'v1/{+name}',
583 'httpMethod' => 'DELETE',
584 'parameters' => [
585 'name' => [
586 'location' => 'path',
587 'type' => 'string',
588 'required' => true,
589 ],
590 ],
591 ],'get' => [
592 'path' => 'v1/{+name}',
593 'httpMethod' => 'GET',
594 'parameters' => [
595 'name' => [
596 'location' => 'path',
597 'type' => 'string',
598 'required' => true,
599 ],
600 ],
601 ],'list' => [
602 'path' => 'v1/{+parent}/versions',
603 'httpMethod' => 'GET',
604 'parameters' => [
605 'parent' => [
606 'location' => 'path',
607 'type' => 'string',
608 'required' => true,
609 ],
610 'filter' => [
611 'location' => 'query',
612 'type' => 'string',
613 ],
614 'pageSize' => [
615 'location' => 'query',
616 'type' => 'integer',
617 ],
618 'pageToken' => [
619 'location' => 'query',
620 'type' => 'string',
621 ],
622 ],
623 ],'patch' => [
624 'path' => 'v1/{+name}',
625 'httpMethod' => 'PATCH',
626 'parameters' => [
627 'name' => [
628 'location' => 'path',
629 'type' => 'string',
630 'required' => true,
631 ],
632 'updateMask' => [
633 'location' => 'query',
634 'type' => 'string',
635 ],
636 ],
637 ],'setDefault' => [
638 'path' => 'v1/{+name}:setDefault',
639 'httpMethod' => 'POST',
640 'parameters' => [
641 'name' => [
642 'location' => 'path',
643 'type' => 'string',
644 'required' => true,
645 ],
646 ],
647 ],
648 ]
649 ]
650 );
651 $this->projects_operations = new CloudMachineLearningEngine\Resource\ProjectsOperations(
652 $this,
653 $this->serviceName,
654 'operations',
655 [
656 'methods' => [
657 'cancel' => [
658 'path' => 'v1/{+name}:cancel',
659 'httpMethod' => 'POST',
660 'parameters' => [
661 'name' => [
662 'location' => 'path',
663 'type' => 'string',
664 'required' => true,
665 ],
666 ],
667 ],'get' => [
668 'path' => 'v1/{+name}',
669 'httpMethod' => 'GET',
670 'parameters' => [
671 'name' => [
672 'location' => 'path',
673 'type' => 'string',
674 'required' => true,
675 ],
676 ],
677 ],'list' => [
678 'path' => 'v1/{+name}/operations',
679 'httpMethod' => 'GET',
680 'parameters' => [
681 'name' => [
682 'location' => 'path',
683 'type' => 'string',
684 'required' => true,
685 ],
686 'filter' => [
687 'location' => 'query',
688 'type' => 'string',
689 ],
690 'pageSize' => [
691 'location' => 'query',
692 'type' => 'integer',
693 ],
694 'pageToken' => [
695 'location' => 'query',
696 'type' => 'string',
697 ],
698 ],
699 ],
700 ]
701 ]
702 );
703 }
704}
705
706// Adding a class alias for backwards compatibility with the previous class name.
707class_alias(CloudMachineLearningEngine::class, 'Google_Service_CloudMachineLearningEngine');
Note: See TracBrowser for help on using the repository browser.