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 | namespace Google\Service;
|
---|
19 |
|
---|
20 | use Google\Client;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * Service definition for DataLabeling (v1beta1).
|
---|
24 | *
|
---|
25 | * <p>
|
---|
26 | * Public API for Google Cloud AI Data Labeling Service.</p>
|
---|
27 | *
|
---|
28 | * <p>
|
---|
29 | * For more information about this service, see the API
|
---|
30 | * <a href="https://cloud.google.com/data-labeling/docs/" target="_blank">Documentation</a>
|
---|
31 | * </p>
|
---|
32 | *
|
---|
33 | * @author Google, Inc.
|
---|
34 | */
|
---|
35 | class DataLabeling 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 |
|
---|
41 | public $projects_annotationSpecSets;
|
---|
42 | public $projects_datasets;
|
---|
43 | public $projects_datasets_annotatedDatasets;
|
---|
44 | public $projects_datasets_annotatedDatasets_dataItems;
|
---|
45 | public $projects_datasets_annotatedDatasets_examples;
|
---|
46 | public $projects_datasets_annotatedDatasets_feedbackThreads;
|
---|
47 | public $projects_datasets_annotatedDatasets_feedbackThreads_feedbackMessages;
|
---|
48 | public $projects_datasets_dataItems;
|
---|
49 | public $projects_datasets_evaluations;
|
---|
50 | public $projects_datasets_evaluations_exampleComparisons;
|
---|
51 | public $projects_datasets_image;
|
---|
52 | public $projects_datasets_text;
|
---|
53 | public $projects_datasets_video;
|
---|
54 | public $projects_evaluationJobs;
|
---|
55 | public $projects_evaluations;
|
---|
56 | public $projects_instructions;
|
---|
57 | public $projects_operations;
|
---|
58 | public $rootUrlTemplate;
|
---|
59 |
|
---|
60 | /**
|
---|
61 | * Constructs the internal representation of the DataLabeling service.
|
---|
62 | *
|
---|
63 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
64 | * config array to pass to a new Client instance.
|
---|
65 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
66 | */
|
---|
67 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
68 | {
|
---|
69 | parent::__construct($clientOrConfig);
|
---|
70 | $this->rootUrl = $rootUrl ?: 'https://datalabeling.googleapis.com/';
|
---|
71 | $this->rootUrlTemplate = $rootUrl ?: 'https://datalabeling.UNIVERSE_DOMAIN/';
|
---|
72 | $this->servicePath = '';
|
---|
73 | $this->batchPath = 'batch';
|
---|
74 | $this->version = 'v1beta1';
|
---|
75 | $this->serviceName = 'datalabeling';
|
---|
76 |
|
---|
77 | $this->projects_annotationSpecSets = new DataLabeling\Resource\ProjectsAnnotationSpecSets(
|
---|
78 | $this,
|
---|
79 | $this->serviceName,
|
---|
80 | 'annotationSpecSets',
|
---|
81 | [
|
---|
82 | 'methods' => [
|
---|
83 | 'create' => [
|
---|
84 | 'path' => 'v1beta1/{+parent}/annotationSpecSets',
|
---|
85 | 'httpMethod' => 'POST',
|
---|
86 | 'parameters' => [
|
---|
87 | 'parent' => [
|
---|
88 | 'location' => 'path',
|
---|
89 | 'type' => 'string',
|
---|
90 | 'required' => true,
|
---|
91 | ],
|
---|
92 | ],
|
---|
93 | ],'delete' => [
|
---|
94 | 'path' => 'v1beta1/{+name}',
|
---|
95 | 'httpMethod' => 'DELETE',
|
---|
96 | 'parameters' => [
|
---|
97 | 'name' => [
|
---|
98 | 'location' => 'path',
|
---|
99 | 'type' => 'string',
|
---|
100 | 'required' => true,
|
---|
101 | ],
|
---|
102 | ],
|
---|
103 | ],'get' => [
|
---|
104 | 'path' => 'v1beta1/{+name}',
|
---|
105 | 'httpMethod' => 'GET',
|
---|
106 | 'parameters' => [
|
---|
107 | 'name' => [
|
---|
108 | 'location' => 'path',
|
---|
109 | 'type' => 'string',
|
---|
110 | 'required' => true,
|
---|
111 | ],
|
---|
112 | ],
|
---|
113 | ],'list' => [
|
---|
114 | 'path' => 'v1beta1/{+parent}/annotationSpecSets',
|
---|
115 | 'httpMethod' => 'GET',
|
---|
116 | 'parameters' => [
|
---|
117 | 'parent' => [
|
---|
118 | 'location' => 'path',
|
---|
119 | 'type' => 'string',
|
---|
120 | 'required' => true,
|
---|
121 | ],
|
---|
122 | 'filter' => [
|
---|
123 | 'location' => 'query',
|
---|
124 | 'type' => 'string',
|
---|
125 | ],
|
---|
126 | 'pageSize' => [
|
---|
127 | 'location' => 'query',
|
---|
128 | 'type' => 'integer',
|
---|
129 | ],
|
---|
130 | 'pageToken' => [
|
---|
131 | 'location' => 'query',
|
---|
132 | 'type' => 'string',
|
---|
133 | ],
|
---|
134 | ],
|
---|
135 | ],
|
---|
136 | ]
|
---|
137 | ]
|
---|
138 | );
|
---|
139 | $this->projects_datasets = new DataLabeling\Resource\ProjectsDatasets(
|
---|
140 | $this,
|
---|
141 | $this->serviceName,
|
---|
142 | 'datasets',
|
---|
143 | [
|
---|
144 | 'methods' => [
|
---|
145 | 'create' => [
|
---|
146 | 'path' => 'v1beta1/{+parent}/datasets',
|
---|
147 | 'httpMethod' => 'POST',
|
---|
148 | 'parameters' => [
|
---|
149 | 'parent' => [
|
---|
150 | 'location' => 'path',
|
---|
151 | 'type' => 'string',
|
---|
152 | 'required' => true,
|
---|
153 | ],
|
---|
154 | ],
|
---|
155 | ],'delete' => [
|
---|
156 | 'path' => 'v1beta1/{+name}',
|
---|
157 | 'httpMethod' => 'DELETE',
|
---|
158 | 'parameters' => [
|
---|
159 | 'name' => [
|
---|
160 | 'location' => 'path',
|
---|
161 | 'type' => 'string',
|
---|
162 | 'required' => true,
|
---|
163 | ],
|
---|
164 | ],
|
---|
165 | ],'exportData' => [
|
---|
166 | 'path' => 'v1beta1/{+name}:exportData',
|
---|
167 | 'httpMethod' => 'POST',
|
---|
168 | 'parameters' => [
|
---|
169 | 'name' => [
|
---|
170 | 'location' => 'path',
|
---|
171 | 'type' => 'string',
|
---|
172 | 'required' => true,
|
---|
173 | ],
|
---|
174 | ],
|
---|
175 | ],'get' => [
|
---|
176 | 'path' => 'v1beta1/{+name}',
|
---|
177 | 'httpMethod' => 'GET',
|
---|
178 | 'parameters' => [
|
---|
179 | 'name' => [
|
---|
180 | 'location' => 'path',
|
---|
181 | 'type' => 'string',
|
---|
182 | 'required' => true,
|
---|
183 | ],
|
---|
184 | ],
|
---|
185 | ],'importData' => [
|
---|
186 | 'path' => 'v1beta1/{+name}:importData',
|
---|
187 | 'httpMethod' => 'POST',
|
---|
188 | 'parameters' => [
|
---|
189 | 'name' => [
|
---|
190 | 'location' => 'path',
|
---|
191 | 'type' => 'string',
|
---|
192 | 'required' => true,
|
---|
193 | ],
|
---|
194 | ],
|
---|
195 | ],'list' => [
|
---|
196 | 'path' => 'v1beta1/{+parent}/datasets',
|
---|
197 | 'httpMethod' => 'GET',
|
---|
198 | 'parameters' => [
|
---|
199 | 'parent' => [
|
---|
200 | 'location' => 'path',
|
---|
201 | 'type' => 'string',
|
---|
202 | 'required' => true,
|
---|
203 | ],
|
---|
204 | 'filter' => [
|
---|
205 | 'location' => 'query',
|
---|
206 | 'type' => 'string',
|
---|
207 | ],
|
---|
208 | 'pageSize' => [
|
---|
209 | 'location' => 'query',
|
---|
210 | 'type' => 'integer',
|
---|
211 | ],
|
---|
212 | 'pageToken' => [
|
---|
213 | 'location' => 'query',
|
---|
214 | 'type' => 'string',
|
---|
215 | ],
|
---|
216 | ],
|
---|
217 | ],
|
---|
218 | ]
|
---|
219 | ]
|
---|
220 | );
|
---|
221 | $this->projects_datasets_annotatedDatasets = new DataLabeling\Resource\ProjectsDatasetsAnnotatedDatasets(
|
---|
222 | $this,
|
---|
223 | $this->serviceName,
|
---|
224 | 'annotatedDatasets',
|
---|
225 | [
|
---|
226 | 'methods' => [
|
---|
227 | 'delete' => [
|
---|
228 | 'path' => 'v1beta1/{+name}',
|
---|
229 | 'httpMethod' => 'DELETE',
|
---|
230 | 'parameters' => [
|
---|
231 | 'name' => [
|
---|
232 | 'location' => 'path',
|
---|
233 | 'type' => 'string',
|
---|
234 | 'required' => true,
|
---|
235 | ],
|
---|
236 | ],
|
---|
237 | ],'get' => [
|
---|
238 | 'path' => 'v1beta1/{+name}',
|
---|
239 | 'httpMethod' => 'GET',
|
---|
240 | 'parameters' => [
|
---|
241 | 'name' => [
|
---|
242 | 'location' => 'path',
|
---|
243 | 'type' => 'string',
|
---|
244 | 'required' => true,
|
---|
245 | ],
|
---|
246 | ],
|
---|
247 | ],'list' => [
|
---|
248 | 'path' => 'v1beta1/{+parent}/annotatedDatasets',
|
---|
249 | 'httpMethod' => 'GET',
|
---|
250 | 'parameters' => [
|
---|
251 | 'parent' => [
|
---|
252 | 'location' => 'path',
|
---|
253 | 'type' => 'string',
|
---|
254 | 'required' => true,
|
---|
255 | ],
|
---|
256 | 'filter' => [
|
---|
257 | 'location' => 'query',
|
---|
258 | 'type' => 'string',
|
---|
259 | ],
|
---|
260 | 'pageSize' => [
|
---|
261 | 'location' => 'query',
|
---|
262 | 'type' => 'integer',
|
---|
263 | ],
|
---|
264 | 'pageToken' => [
|
---|
265 | 'location' => 'query',
|
---|
266 | 'type' => 'string',
|
---|
267 | ],
|
---|
268 | ],
|
---|
269 | ],
|
---|
270 | ]
|
---|
271 | ]
|
---|
272 | );
|
---|
273 | $this->projects_datasets_annotatedDatasets_dataItems = new DataLabeling\Resource\ProjectsDatasetsAnnotatedDatasetsDataItems(
|
---|
274 | $this,
|
---|
275 | $this->serviceName,
|
---|
276 | 'dataItems',
|
---|
277 | [
|
---|
278 | 'methods' => [
|
---|
279 | 'get' => [
|
---|
280 | 'path' => 'v1beta1/{+name}',
|
---|
281 | 'httpMethod' => 'GET',
|
---|
282 | 'parameters' => [
|
---|
283 | 'name' => [
|
---|
284 | 'location' => 'path',
|
---|
285 | 'type' => 'string',
|
---|
286 | 'required' => true,
|
---|
287 | ],
|
---|
288 | ],
|
---|
289 | ],'list' => [
|
---|
290 | 'path' => 'v1beta1/{+parent}/dataItems',
|
---|
291 | 'httpMethod' => 'GET',
|
---|
292 | 'parameters' => [
|
---|
293 | 'parent' => [
|
---|
294 | 'location' => 'path',
|
---|
295 | 'type' => 'string',
|
---|
296 | 'required' => true,
|
---|
297 | ],
|
---|
298 | 'filter' => [
|
---|
299 | 'location' => 'query',
|
---|
300 | 'type' => 'string',
|
---|
301 | ],
|
---|
302 | 'pageSize' => [
|
---|
303 | 'location' => 'query',
|
---|
304 | 'type' => 'integer',
|
---|
305 | ],
|
---|
306 | 'pageToken' => [
|
---|
307 | 'location' => 'query',
|
---|
308 | 'type' => 'string',
|
---|
309 | ],
|
---|
310 | ],
|
---|
311 | ],
|
---|
312 | ]
|
---|
313 | ]
|
---|
314 | );
|
---|
315 | $this->projects_datasets_annotatedDatasets_examples = new DataLabeling\Resource\ProjectsDatasetsAnnotatedDatasetsExamples(
|
---|
316 | $this,
|
---|
317 | $this->serviceName,
|
---|
318 | 'examples',
|
---|
319 | [
|
---|
320 | 'methods' => [
|
---|
321 | 'get' => [
|
---|
322 | 'path' => 'v1beta1/{+name}',
|
---|
323 | 'httpMethod' => 'GET',
|
---|
324 | 'parameters' => [
|
---|
325 | 'name' => [
|
---|
326 | 'location' => 'path',
|
---|
327 | 'type' => 'string',
|
---|
328 | 'required' => true,
|
---|
329 | ],
|
---|
330 | 'filter' => [
|
---|
331 | 'location' => 'query',
|
---|
332 | 'type' => 'string',
|
---|
333 | ],
|
---|
334 | ],
|
---|
335 | ],'list' => [
|
---|
336 | 'path' => 'v1beta1/{+parent}/examples',
|
---|
337 | 'httpMethod' => 'GET',
|
---|
338 | 'parameters' => [
|
---|
339 | 'parent' => [
|
---|
340 | 'location' => 'path',
|
---|
341 | 'type' => 'string',
|
---|
342 | 'required' => true,
|
---|
343 | ],
|
---|
344 | 'filter' => [
|
---|
345 | 'location' => 'query',
|
---|
346 | 'type' => 'string',
|
---|
347 | ],
|
---|
348 | 'pageSize' => [
|
---|
349 | 'location' => 'query',
|
---|
350 | 'type' => 'integer',
|
---|
351 | ],
|
---|
352 | 'pageToken' => [
|
---|
353 | 'location' => 'query',
|
---|
354 | 'type' => 'string',
|
---|
355 | ],
|
---|
356 | ],
|
---|
357 | ],
|
---|
358 | ]
|
---|
359 | ]
|
---|
360 | );
|
---|
361 | $this->projects_datasets_annotatedDatasets_feedbackThreads = new DataLabeling\Resource\ProjectsDatasetsAnnotatedDatasetsFeedbackThreads(
|
---|
362 | $this,
|
---|
363 | $this->serviceName,
|
---|
364 | 'feedbackThreads',
|
---|
365 | [
|
---|
366 | 'methods' => [
|
---|
367 | 'delete' => [
|
---|
368 | 'path' => 'v1beta1/{+name}',
|
---|
369 | 'httpMethod' => 'DELETE',
|
---|
370 | 'parameters' => [
|
---|
371 | 'name' => [
|
---|
372 | 'location' => 'path',
|
---|
373 | 'type' => 'string',
|
---|
374 | 'required' => true,
|
---|
375 | ],
|
---|
376 | ],
|
---|
377 | ],'get' => [
|
---|
378 | 'path' => 'v1beta1/{+name}',
|
---|
379 | 'httpMethod' => 'GET',
|
---|
380 | 'parameters' => [
|
---|
381 | 'name' => [
|
---|
382 | 'location' => 'path',
|
---|
383 | 'type' => 'string',
|
---|
384 | 'required' => true,
|
---|
385 | ],
|
---|
386 | ],
|
---|
387 | ],'list' => [
|
---|
388 | 'path' => 'v1beta1/{+parent}/feedbackThreads',
|
---|
389 | 'httpMethod' => 'GET',
|
---|
390 | 'parameters' => [
|
---|
391 | 'parent' => [
|
---|
392 | 'location' => 'path',
|
---|
393 | 'type' => 'string',
|
---|
394 | 'required' => true,
|
---|
395 | ],
|
---|
396 | 'pageSize' => [
|
---|
397 | 'location' => 'query',
|
---|
398 | 'type' => 'integer',
|
---|
399 | ],
|
---|
400 | 'pageToken' => [
|
---|
401 | 'location' => 'query',
|
---|
402 | 'type' => 'string',
|
---|
403 | ],
|
---|
404 | ],
|
---|
405 | ],
|
---|
406 | ]
|
---|
407 | ]
|
---|
408 | );
|
---|
409 | $this->projects_datasets_annotatedDatasets_feedbackThreads_feedbackMessages = new DataLabeling\Resource\ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessages(
|
---|
410 | $this,
|
---|
411 | $this->serviceName,
|
---|
412 | 'feedbackMessages',
|
---|
413 | [
|
---|
414 | 'methods' => [
|
---|
415 | 'create' => [
|
---|
416 | 'path' => 'v1beta1/{+parent}/feedbackMessages',
|
---|
417 | 'httpMethod' => 'POST',
|
---|
418 | 'parameters' => [
|
---|
419 | 'parent' => [
|
---|
420 | 'location' => 'path',
|
---|
421 | 'type' => 'string',
|
---|
422 | 'required' => true,
|
---|
423 | ],
|
---|
424 | ],
|
---|
425 | ],'delete' => [
|
---|
426 | 'path' => 'v1beta1/{+name}',
|
---|
427 | 'httpMethod' => 'DELETE',
|
---|
428 | 'parameters' => [
|
---|
429 | 'name' => [
|
---|
430 | 'location' => 'path',
|
---|
431 | 'type' => 'string',
|
---|
432 | 'required' => true,
|
---|
433 | ],
|
---|
434 | ],
|
---|
435 | ],'get' => [
|
---|
436 | 'path' => 'v1beta1/{+name}',
|
---|
437 | 'httpMethod' => 'GET',
|
---|
438 | 'parameters' => [
|
---|
439 | 'name' => [
|
---|
440 | 'location' => 'path',
|
---|
441 | 'type' => 'string',
|
---|
442 | 'required' => true,
|
---|
443 | ],
|
---|
444 | ],
|
---|
445 | ],'list' => [
|
---|
446 | 'path' => 'v1beta1/{+parent}/feedbackMessages',
|
---|
447 | 'httpMethod' => 'GET',
|
---|
448 | 'parameters' => [
|
---|
449 | 'parent' => [
|
---|
450 | 'location' => 'path',
|
---|
451 | 'type' => 'string',
|
---|
452 | 'required' => true,
|
---|
453 | ],
|
---|
454 | 'pageSize' => [
|
---|
455 | 'location' => 'query',
|
---|
456 | 'type' => 'integer',
|
---|
457 | ],
|
---|
458 | 'pageToken' => [
|
---|
459 | 'location' => 'query',
|
---|
460 | 'type' => 'string',
|
---|
461 | ],
|
---|
462 | ],
|
---|
463 | ],
|
---|
464 | ]
|
---|
465 | ]
|
---|
466 | );
|
---|
467 | $this->projects_datasets_dataItems = new DataLabeling\Resource\ProjectsDatasetsDataItems(
|
---|
468 | $this,
|
---|
469 | $this->serviceName,
|
---|
470 | 'dataItems',
|
---|
471 | [
|
---|
472 | 'methods' => [
|
---|
473 | 'get' => [
|
---|
474 | 'path' => 'v1beta1/{+name}',
|
---|
475 | 'httpMethod' => 'GET',
|
---|
476 | 'parameters' => [
|
---|
477 | 'name' => [
|
---|
478 | 'location' => 'path',
|
---|
479 | 'type' => 'string',
|
---|
480 | 'required' => true,
|
---|
481 | ],
|
---|
482 | ],
|
---|
483 | ],'list' => [
|
---|
484 | 'path' => 'v1beta1/{+parent}/dataItems',
|
---|
485 | 'httpMethod' => 'GET',
|
---|
486 | 'parameters' => [
|
---|
487 | 'parent' => [
|
---|
488 | 'location' => 'path',
|
---|
489 | 'type' => 'string',
|
---|
490 | 'required' => true,
|
---|
491 | ],
|
---|
492 | 'filter' => [
|
---|
493 | 'location' => 'query',
|
---|
494 | 'type' => 'string',
|
---|
495 | ],
|
---|
496 | 'pageSize' => [
|
---|
497 | 'location' => 'query',
|
---|
498 | 'type' => 'integer',
|
---|
499 | ],
|
---|
500 | 'pageToken' => [
|
---|
501 | 'location' => 'query',
|
---|
502 | 'type' => 'string',
|
---|
503 | ],
|
---|
504 | ],
|
---|
505 | ],
|
---|
506 | ]
|
---|
507 | ]
|
---|
508 | );
|
---|
509 | $this->projects_datasets_evaluations = new DataLabeling\Resource\ProjectsDatasetsEvaluations(
|
---|
510 | $this,
|
---|
511 | $this->serviceName,
|
---|
512 | 'evaluations',
|
---|
513 | [
|
---|
514 | 'methods' => [
|
---|
515 | 'get' => [
|
---|
516 | 'path' => 'v1beta1/{+name}',
|
---|
517 | 'httpMethod' => 'GET',
|
---|
518 | 'parameters' => [
|
---|
519 | 'name' => [
|
---|
520 | 'location' => 'path',
|
---|
521 | 'type' => 'string',
|
---|
522 | 'required' => true,
|
---|
523 | ],
|
---|
524 | ],
|
---|
525 | ],
|
---|
526 | ]
|
---|
527 | ]
|
---|
528 | );
|
---|
529 | $this->projects_datasets_evaluations_exampleComparisons = new DataLabeling\Resource\ProjectsDatasetsEvaluationsExampleComparisons(
|
---|
530 | $this,
|
---|
531 | $this->serviceName,
|
---|
532 | 'exampleComparisons',
|
---|
533 | [
|
---|
534 | 'methods' => [
|
---|
535 | 'search' => [
|
---|
536 | 'path' => 'v1beta1/{+parent}/exampleComparisons:search',
|
---|
537 | 'httpMethod' => 'POST',
|
---|
538 | 'parameters' => [
|
---|
539 | 'parent' => [
|
---|
540 | 'location' => 'path',
|
---|
541 | 'type' => 'string',
|
---|
542 | 'required' => true,
|
---|
543 | ],
|
---|
544 | ],
|
---|
545 | ],
|
---|
546 | ]
|
---|
547 | ]
|
---|
548 | );
|
---|
549 | $this->projects_datasets_image = new DataLabeling\Resource\ProjectsDatasetsImage(
|
---|
550 | $this,
|
---|
551 | $this->serviceName,
|
---|
552 | 'image',
|
---|
553 | [
|
---|
554 | 'methods' => [
|
---|
555 | 'label' => [
|
---|
556 | 'path' => 'v1beta1/{+parent}/image:label',
|
---|
557 | 'httpMethod' => 'POST',
|
---|
558 | 'parameters' => [
|
---|
559 | 'parent' => [
|
---|
560 | 'location' => 'path',
|
---|
561 | 'type' => 'string',
|
---|
562 | 'required' => true,
|
---|
563 | ],
|
---|
564 | ],
|
---|
565 | ],
|
---|
566 | ]
|
---|
567 | ]
|
---|
568 | );
|
---|
569 | $this->projects_datasets_text = new DataLabeling\Resource\ProjectsDatasetsText(
|
---|
570 | $this,
|
---|
571 | $this->serviceName,
|
---|
572 | 'text',
|
---|
573 | [
|
---|
574 | 'methods' => [
|
---|
575 | 'label' => [
|
---|
576 | 'path' => 'v1beta1/{+parent}/text:label',
|
---|
577 | 'httpMethod' => 'POST',
|
---|
578 | 'parameters' => [
|
---|
579 | 'parent' => [
|
---|
580 | 'location' => 'path',
|
---|
581 | 'type' => 'string',
|
---|
582 | 'required' => true,
|
---|
583 | ],
|
---|
584 | ],
|
---|
585 | ],
|
---|
586 | ]
|
---|
587 | ]
|
---|
588 | );
|
---|
589 | $this->projects_datasets_video = new DataLabeling\Resource\ProjectsDatasetsVideo(
|
---|
590 | $this,
|
---|
591 | $this->serviceName,
|
---|
592 | 'video',
|
---|
593 | [
|
---|
594 | 'methods' => [
|
---|
595 | 'label' => [
|
---|
596 | 'path' => 'v1beta1/{+parent}/video:label',
|
---|
597 | 'httpMethod' => 'POST',
|
---|
598 | 'parameters' => [
|
---|
599 | 'parent' => [
|
---|
600 | 'location' => 'path',
|
---|
601 | 'type' => 'string',
|
---|
602 | 'required' => true,
|
---|
603 | ],
|
---|
604 | ],
|
---|
605 | ],
|
---|
606 | ]
|
---|
607 | ]
|
---|
608 | );
|
---|
609 | $this->projects_evaluationJobs = new DataLabeling\Resource\ProjectsEvaluationJobs(
|
---|
610 | $this,
|
---|
611 | $this->serviceName,
|
---|
612 | 'evaluationJobs',
|
---|
613 | [
|
---|
614 | 'methods' => [
|
---|
615 | 'create' => [
|
---|
616 | 'path' => 'v1beta1/{+parent}/evaluationJobs',
|
---|
617 | 'httpMethod' => 'POST',
|
---|
618 | 'parameters' => [
|
---|
619 | 'parent' => [
|
---|
620 | 'location' => 'path',
|
---|
621 | 'type' => 'string',
|
---|
622 | 'required' => true,
|
---|
623 | ],
|
---|
624 | ],
|
---|
625 | ],'delete' => [
|
---|
626 | 'path' => 'v1beta1/{+name}',
|
---|
627 | 'httpMethod' => 'DELETE',
|
---|
628 | 'parameters' => [
|
---|
629 | 'name' => [
|
---|
630 | 'location' => 'path',
|
---|
631 | 'type' => 'string',
|
---|
632 | 'required' => true,
|
---|
633 | ],
|
---|
634 | ],
|
---|
635 | ],'get' => [
|
---|
636 | 'path' => 'v1beta1/{+name}',
|
---|
637 | 'httpMethod' => 'GET',
|
---|
638 | 'parameters' => [
|
---|
639 | 'name' => [
|
---|
640 | 'location' => 'path',
|
---|
641 | 'type' => 'string',
|
---|
642 | 'required' => true,
|
---|
643 | ],
|
---|
644 | ],
|
---|
645 | ],'list' => [
|
---|
646 | 'path' => 'v1beta1/{+parent}/evaluationJobs',
|
---|
647 | 'httpMethod' => 'GET',
|
---|
648 | 'parameters' => [
|
---|
649 | 'parent' => [
|
---|
650 | 'location' => 'path',
|
---|
651 | 'type' => 'string',
|
---|
652 | 'required' => true,
|
---|
653 | ],
|
---|
654 | 'filter' => [
|
---|
655 | 'location' => 'query',
|
---|
656 | 'type' => 'string',
|
---|
657 | ],
|
---|
658 | 'pageSize' => [
|
---|
659 | 'location' => 'query',
|
---|
660 | 'type' => 'integer',
|
---|
661 | ],
|
---|
662 | 'pageToken' => [
|
---|
663 | 'location' => 'query',
|
---|
664 | 'type' => 'string',
|
---|
665 | ],
|
---|
666 | ],
|
---|
667 | ],'patch' => [
|
---|
668 | 'path' => 'v1beta1/{+name}',
|
---|
669 | 'httpMethod' => 'PATCH',
|
---|
670 | 'parameters' => [
|
---|
671 | 'name' => [
|
---|
672 | 'location' => 'path',
|
---|
673 | 'type' => 'string',
|
---|
674 | 'required' => true,
|
---|
675 | ],
|
---|
676 | 'updateMask' => [
|
---|
677 | 'location' => 'query',
|
---|
678 | 'type' => 'string',
|
---|
679 | ],
|
---|
680 | ],
|
---|
681 | ],'pause' => [
|
---|
682 | 'path' => 'v1beta1/{+name}:pause',
|
---|
683 | 'httpMethod' => 'POST',
|
---|
684 | 'parameters' => [
|
---|
685 | 'name' => [
|
---|
686 | 'location' => 'path',
|
---|
687 | 'type' => 'string',
|
---|
688 | 'required' => true,
|
---|
689 | ],
|
---|
690 | ],
|
---|
691 | ],'resume' => [
|
---|
692 | 'path' => 'v1beta1/{+name}:resume',
|
---|
693 | 'httpMethod' => 'POST',
|
---|
694 | 'parameters' => [
|
---|
695 | 'name' => [
|
---|
696 | 'location' => 'path',
|
---|
697 | 'type' => 'string',
|
---|
698 | 'required' => true,
|
---|
699 | ],
|
---|
700 | ],
|
---|
701 | ],
|
---|
702 | ]
|
---|
703 | ]
|
---|
704 | );
|
---|
705 | $this->projects_evaluations = new DataLabeling\Resource\ProjectsEvaluations(
|
---|
706 | $this,
|
---|
707 | $this->serviceName,
|
---|
708 | 'evaluations',
|
---|
709 | [
|
---|
710 | 'methods' => [
|
---|
711 | 'search' => [
|
---|
712 | 'path' => 'v1beta1/{+parent}/evaluations:search',
|
---|
713 | 'httpMethod' => 'GET',
|
---|
714 | 'parameters' => [
|
---|
715 | 'parent' => [
|
---|
716 | 'location' => 'path',
|
---|
717 | 'type' => 'string',
|
---|
718 | 'required' => true,
|
---|
719 | ],
|
---|
720 | 'filter' => [
|
---|
721 | 'location' => 'query',
|
---|
722 | 'type' => 'string',
|
---|
723 | ],
|
---|
724 | 'pageSize' => [
|
---|
725 | 'location' => 'query',
|
---|
726 | 'type' => 'integer',
|
---|
727 | ],
|
---|
728 | 'pageToken' => [
|
---|
729 | 'location' => 'query',
|
---|
730 | 'type' => 'string',
|
---|
731 | ],
|
---|
732 | ],
|
---|
733 | ],
|
---|
734 | ]
|
---|
735 | ]
|
---|
736 | );
|
---|
737 | $this->projects_instructions = new DataLabeling\Resource\ProjectsInstructions(
|
---|
738 | $this,
|
---|
739 | $this->serviceName,
|
---|
740 | 'instructions',
|
---|
741 | [
|
---|
742 | 'methods' => [
|
---|
743 | 'create' => [
|
---|
744 | 'path' => 'v1beta1/{+parent}/instructions',
|
---|
745 | 'httpMethod' => 'POST',
|
---|
746 | 'parameters' => [
|
---|
747 | 'parent' => [
|
---|
748 | 'location' => 'path',
|
---|
749 | 'type' => 'string',
|
---|
750 | 'required' => true,
|
---|
751 | ],
|
---|
752 | ],
|
---|
753 | ],'delete' => [
|
---|
754 | 'path' => 'v1beta1/{+name}',
|
---|
755 | 'httpMethod' => 'DELETE',
|
---|
756 | 'parameters' => [
|
---|
757 | 'name' => [
|
---|
758 | 'location' => 'path',
|
---|
759 | 'type' => 'string',
|
---|
760 | 'required' => true,
|
---|
761 | ],
|
---|
762 | ],
|
---|
763 | ],'get' => [
|
---|
764 | 'path' => 'v1beta1/{+name}',
|
---|
765 | 'httpMethod' => 'GET',
|
---|
766 | 'parameters' => [
|
---|
767 | 'name' => [
|
---|
768 | 'location' => 'path',
|
---|
769 | 'type' => 'string',
|
---|
770 | 'required' => true,
|
---|
771 | ],
|
---|
772 | ],
|
---|
773 | ],'list' => [
|
---|
774 | 'path' => 'v1beta1/{+parent}/instructions',
|
---|
775 | 'httpMethod' => 'GET',
|
---|
776 | 'parameters' => [
|
---|
777 | 'parent' => [
|
---|
778 | 'location' => 'path',
|
---|
779 | 'type' => 'string',
|
---|
780 | 'required' => true,
|
---|
781 | ],
|
---|
782 | 'filter' => [
|
---|
783 | 'location' => 'query',
|
---|
784 | 'type' => 'string',
|
---|
785 | ],
|
---|
786 | 'pageSize' => [
|
---|
787 | 'location' => 'query',
|
---|
788 | 'type' => 'integer',
|
---|
789 | ],
|
---|
790 | 'pageToken' => [
|
---|
791 | 'location' => 'query',
|
---|
792 | 'type' => 'string',
|
---|
793 | ],
|
---|
794 | ],
|
---|
795 | ],
|
---|
796 | ]
|
---|
797 | ]
|
---|
798 | );
|
---|
799 | $this->projects_operations = new DataLabeling\Resource\ProjectsOperations(
|
---|
800 | $this,
|
---|
801 | $this->serviceName,
|
---|
802 | 'operations',
|
---|
803 | [
|
---|
804 | 'methods' => [
|
---|
805 | 'cancel' => [
|
---|
806 | 'path' => 'v1beta1/{+name}:cancel',
|
---|
807 | 'httpMethod' => 'GET',
|
---|
808 | 'parameters' => [
|
---|
809 | 'name' => [
|
---|
810 | 'location' => 'path',
|
---|
811 | 'type' => 'string',
|
---|
812 | 'required' => true,
|
---|
813 | ],
|
---|
814 | ],
|
---|
815 | ],'delete' => [
|
---|
816 | 'path' => 'v1beta1/{+name}',
|
---|
817 | 'httpMethod' => 'DELETE',
|
---|
818 | 'parameters' => [
|
---|
819 | 'name' => [
|
---|
820 | 'location' => 'path',
|
---|
821 | 'type' => 'string',
|
---|
822 | 'required' => true,
|
---|
823 | ],
|
---|
824 | ],
|
---|
825 | ],'get' => [
|
---|
826 | 'path' => 'v1beta1/{+name}',
|
---|
827 | 'httpMethod' => 'GET',
|
---|
828 | 'parameters' => [
|
---|
829 | 'name' => [
|
---|
830 | 'location' => 'path',
|
---|
831 | 'type' => 'string',
|
---|
832 | 'required' => true,
|
---|
833 | ],
|
---|
834 | ],
|
---|
835 | ],'list' => [
|
---|
836 | 'path' => 'v1beta1/{+name}/operations',
|
---|
837 | 'httpMethod' => 'GET',
|
---|
838 | 'parameters' => [
|
---|
839 | 'name' => [
|
---|
840 | 'location' => 'path',
|
---|
841 | 'type' => 'string',
|
---|
842 | 'required' => true,
|
---|
843 | ],
|
---|
844 | 'filter' => [
|
---|
845 | 'location' => 'query',
|
---|
846 | 'type' => 'string',
|
---|
847 | ],
|
---|
848 | 'pageSize' => [
|
---|
849 | 'location' => 'query',
|
---|
850 | 'type' => 'integer',
|
---|
851 | ],
|
---|
852 | 'pageToken' => [
|
---|
853 | 'location' => 'query',
|
---|
854 | 'type' => 'string',
|
---|
855 | ],
|
---|
856 | ],
|
---|
857 | ],
|
---|
858 | ]
|
---|
859 | ]
|
---|
860 | );
|
---|
861 | }
|
---|
862 | }
|
---|
863 |
|
---|
864 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
865 | class_alias(DataLabeling::class, 'Google_Service_DataLabeling');
|
---|