DataLabeling.php 26 KB

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