Ingen beskrivning

CloudMachineLearningEngine.php 15KB

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