PageRenderTime 45ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/application/third_party/google-api/vendor/google/apiclient-services/src/Google/Service/AndroidProvisioningPartner.php

https://gitlab.com/Anas7232/Layout-Changes
PHP | 457 lines | 416 code | 5 blank | 36 comment | 0 complexity | 579d88345a1f8cdc1ef96ea4386a9407 MD5 | raw file
  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 AndroidProvisioningPartner (v1).
  19. *
  20. * <p>
  21. * Automates Android zero-touch enrollment for device resellers, customers, and
  22. * EMMs.</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/zero-touch/" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_AndroidProvisioningPartner extends Google_Service
  32. {
  33. public $customers;
  34. public $customers_configurations;
  35. public $customers_devices;
  36. public $customers_dpcs;
  37. public $operations;
  38. public $partners_customers;
  39. public $partners_devices;
  40. public $partners_vendors;
  41. public $partners_vendors_customers;
  42. /**
  43. * Constructs the internal representation of the AndroidProvisioningPartner
  44. * service.
  45. *
  46. * @param Google_Client $client The client used to deliver requests.
  47. * @param string $rootUrl The root URL used for requests to the service.
  48. */
  49. public function __construct(Google_Client $client, $rootUrl = null)
  50. {
  51. parent::__construct($client);
  52. $this->rootUrl = $rootUrl ?: 'https://androiddeviceprovisioning.googleapis.com/';
  53. $this->servicePath = '';
  54. $this->batchPath = 'batch';
  55. $this->version = 'v1';
  56. $this->serviceName = 'androiddeviceprovisioning';
  57. $this->customers = new Google_Service_AndroidProvisioningPartner_Resource_Customers(
  58. $this,
  59. $this->serviceName,
  60. 'customers',
  61. array(
  62. 'methods' => array(
  63. 'list' => array(
  64. 'path' => 'v1/customers',
  65. 'httpMethod' => 'GET',
  66. 'parameters' => array(
  67. 'pageToken' => array(
  68. 'location' => 'query',
  69. 'type' => 'string',
  70. ),
  71. 'pageSize' => array(
  72. 'location' => 'query',
  73. 'type' => 'integer',
  74. ),
  75. ),
  76. ),
  77. )
  78. )
  79. );
  80. $this->customers_configurations = new Google_Service_AndroidProvisioningPartner_Resource_CustomersConfigurations(
  81. $this,
  82. $this->serviceName,
  83. 'configurations',
  84. array(
  85. 'methods' => array(
  86. 'create' => array(
  87. 'path' => 'v1/{+parent}/configurations',
  88. 'httpMethod' => 'POST',
  89. 'parameters' => array(
  90. 'parent' => array(
  91. 'location' => 'path',
  92. 'type' => 'string',
  93. 'required' => true,
  94. ),
  95. ),
  96. ),'delete' => array(
  97. 'path' => 'v1/{+name}',
  98. 'httpMethod' => 'DELETE',
  99. 'parameters' => array(
  100. 'name' => array(
  101. 'location' => 'path',
  102. 'type' => 'string',
  103. 'required' => true,
  104. ),
  105. ),
  106. ),'get' => array(
  107. 'path' => 'v1/{+name}',
  108. 'httpMethod' => 'GET',
  109. 'parameters' => array(
  110. 'name' => array(
  111. 'location' => 'path',
  112. 'type' => 'string',
  113. 'required' => true,
  114. ),
  115. ),
  116. ),'list' => array(
  117. 'path' => 'v1/{+parent}/configurations',
  118. 'httpMethod' => 'GET',
  119. 'parameters' => array(
  120. 'parent' => array(
  121. 'location' => 'path',
  122. 'type' => 'string',
  123. 'required' => true,
  124. ),
  125. ),
  126. ),'patch' => array(
  127. 'path' => 'v1/{+name}',
  128. 'httpMethod' => 'PATCH',
  129. 'parameters' => array(
  130. 'name' => array(
  131. 'location' => 'path',
  132. 'type' => 'string',
  133. 'required' => true,
  134. ),
  135. 'updateMask' => array(
  136. 'location' => 'query',
  137. 'type' => 'string',
  138. ),
  139. ),
  140. ),
  141. )
  142. )
  143. );
  144. $this->customers_devices = new Google_Service_AndroidProvisioningPartner_Resource_CustomersDevices(
  145. $this,
  146. $this->serviceName,
  147. 'devices',
  148. array(
  149. 'methods' => array(
  150. 'applyConfiguration' => array(
  151. 'path' => 'v1/{+parent}/devices:applyConfiguration',
  152. 'httpMethod' => 'POST',
  153. 'parameters' => array(
  154. 'parent' => array(
  155. 'location' => 'path',
  156. 'type' => 'string',
  157. 'required' => true,
  158. ),
  159. ),
  160. ),'get' => array(
  161. 'path' => 'v1/{+name}',
  162. 'httpMethod' => 'GET',
  163. 'parameters' => array(
  164. 'name' => array(
  165. 'location' => 'path',
  166. 'type' => 'string',
  167. 'required' => true,
  168. ),
  169. ),
  170. ),'list' => array(
  171. 'path' => 'v1/{+parent}/devices',
  172. 'httpMethod' => 'GET',
  173. 'parameters' => array(
  174. 'parent' => array(
  175. 'location' => 'path',
  176. 'type' => 'string',
  177. 'required' => true,
  178. ),
  179. 'pageToken' => array(
  180. 'location' => 'query',
  181. 'type' => 'string',
  182. ),
  183. 'pageSize' => array(
  184. 'location' => 'query',
  185. 'type' => 'string',
  186. ),
  187. ),
  188. ),'removeConfiguration' => array(
  189. 'path' => 'v1/{+parent}/devices:removeConfiguration',
  190. 'httpMethod' => 'POST',
  191. 'parameters' => array(
  192. 'parent' => array(
  193. 'location' => 'path',
  194. 'type' => 'string',
  195. 'required' => true,
  196. ),
  197. ),
  198. ),'unclaim' => array(
  199. 'path' => 'v1/{+parent}/devices:unclaim',
  200. 'httpMethod' => 'POST',
  201. 'parameters' => array(
  202. 'parent' => array(
  203. 'location' => 'path',
  204. 'type' => 'string',
  205. 'required' => true,
  206. ),
  207. ),
  208. ),
  209. )
  210. )
  211. );
  212. $this->customers_dpcs = new Google_Service_AndroidProvisioningPartner_Resource_CustomersDpcs(
  213. $this,
  214. $this->serviceName,
  215. 'dpcs',
  216. array(
  217. 'methods' => array(
  218. 'list' => array(
  219. 'path' => 'v1/{+parent}/dpcs',
  220. 'httpMethod' => 'GET',
  221. 'parameters' => array(
  222. 'parent' => array(
  223. 'location' => 'path',
  224. 'type' => 'string',
  225. 'required' => true,
  226. ),
  227. ),
  228. ),
  229. )
  230. )
  231. );
  232. $this->operations = new Google_Service_AndroidProvisioningPartner_Resource_Operations(
  233. $this,
  234. $this->serviceName,
  235. 'operations',
  236. array(
  237. 'methods' => array(
  238. 'get' => array(
  239. 'path' => 'v1/{+name}',
  240. 'httpMethod' => 'GET',
  241. 'parameters' => array(
  242. 'name' => array(
  243. 'location' => 'path',
  244. 'type' => 'string',
  245. 'required' => true,
  246. ),
  247. ),
  248. ),
  249. )
  250. )
  251. );
  252. $this->partners_customers = new Google_Service_AndroidProvisioningPartner_Resource_PartnersCustomers(
  253. $this,
  254. $this->serviceName,
  255. 'customers',
  256. array(
  257. 'methods' => array(
  258. 'create' => array(
  259. 'path' => 'v1/{+parent}/customers',
  260. 'httpMethod' => 'POST',
  261. 'parameters' => array(
  262. 'parent' => array(
  263. 'location' => 'path',
  264. 'type' => 'string',
  265. 'required' => true,
  266. ),
  267. ),
  268. ),'list' => array(
  269. 'path' => 'v1/partners/{+partnerId}/customers',
  270. 'httpMethod' => 'GET',
  271. 'parameters' => array(
  272. 'partnerId' => array(
  273. 'location' => 'path',
  274. 'type' => 'string',
  275. 'required' => true,
  276. ),
  277. 'pageToken' => array(
  278. 'location' => 'query',
  279. 'type' => 'string',
  280. ),
  281. 'pageSize' => array(
  282. 'location' => 'query',
  283. 'type' => 'integer',
  284. ),
  285. ),
  286. ),
  287. )
  288. )
  289. );
  290. $this->partners_devices = new Google_Service_AndroidProvisioningPartner_Resource_PartnersDevices(
  291. $this,
  292. $this->serviceName,
  293. 'devices',
  294. array(
  295. 'methods' => array(
  296. 'claim' => array(
  297. 'path' => 'v1/partners/{+partnerId}/devices:claim',
  298. 'httpMethod' => 'POST',
  299. 'parameters' => array(
  300. 'partnerId' => array(
  301. 'location' => 'path',
  302. 'type' => 'string',
  303. 'required' => true,
  304. ),
  305. ),
  306. ),'claimAsync' => array(
  307. 'path' => 'v1/partners/{+partnerId}/devices:claimAsync',
  308. 'httpMethod' => 'POST',
  309. 'parameters' => array(
  310. 'partnerId' => array(
  311. 'location' => 'path',
  312. 'type' => 'string',
  313. 'required' => true,
  314. ),
  315. ),
  316. ),'findByIdentifier' => array(
  317. 'path' => 'v1/partners/{+partnerId}/devices:findByIdentifier',
  318. 'httpMethod' => 'POST',
  319. 'parameters' => array(
  320. 'partnerId' => array(
  321. 'location' => 'path',
  322. 'type' => 'string',
  323. 'required' => true,
  324. ),
  325. ),
  326. ),'findByOwner' => array(
  327. 'path' => 'v1/partners/{+partnerId}/devices:findByOwner',
  328. 'httpMethod' => 'POST',
  329. 'parameters' => array(
  330. 'partnerId' => array(
  331. 'location' => 'path',
  332. 'type' => 'string',
  333. 'required' => true,
  334. ),
  335. ),
  336. ),'get' => array(
  337. 'path' => 'v1/{+name}',
  338. 'httpMethod' => 'GET',
  339. 'parameters' => array(
  340. 'name' => array(
  341. 'location' => 'path',
  342. 'type' => 'string',
  343. 'required' => true,
  344. ),
  345. ),
  346. ),'metadata' => array(
  347. 'path' => 'v1/partners/{+metadataOwnerId}/devices/{+deviceId}/metadata',
  348. 'httpMethod' => 'POST',
  349. 'parameters' => array(
  350. 'metadataOwnerId' => array(
  351. 'location' => 'path',
  352. 'type' => 'string',
  353. 'required' => true,
  354. ),
  355. 'deviceId' => array(
  356. 'location' => 'path',
  357. 'type' => 'string',
  358. 'required' => true,
  359. ),
  360. ),
  361. ),'unclaim' => array(
  362. 'path' => 'v1/partners/{+partnerId}/devices:unclaim',
  363. 'httpMethod' => 'POST',
  364. 'parameters' => array(
  365. 'partnerId' => array(
  366. 'location' => 'path',
  367. 'type' => 'string',
  368. 'required' => true,
  369. ),
  370. ),
  371. ),'unclaimAsync' => array(
  372. 'path' => 'v1/partners/{+partnerId}/devices:unclaimAsync',
  373. 'httpMethod' => 'POST',
  374. 'parameters' => array(
  375. 'partnerId' => array(
  376. 'location' => 'path',
  377. 'type' => 'string',
  378. 'required' => true,
  379. ),
  380. ),
  381. ),'updateMetadataAsync' => array(
  382. 'path' => 'v1/partners/{+partnerId}/devices:updateMetadataAsync',
  383. 'httpMethod' => 'POST',
  384. 'parameters' => array(
  385. 'partnerId' => array(
  386. 'location' => 'path',
  387. 'type' => 'string',
  388. 'required' => true,
  389. ),
  390. ),
  391. ),
  392. )
  393. )
  394. );
  395. $this->partners_vendors = new Google_Service_AndroidProvisioningPartner_Resource_PartnersVendors(
  396. $this,
  397. $this->serviceName,
  398. 'vendors',
  399. array(
  400. 'methods' => array(
  401. 'list' => array(
  402. 'path' => 'v1/{+parent}/vendors',
  403. 'httpMethod' => 'GET',
  404. 'parameters' => array(
  405. 'parent' => array(
  406. 'location' => 'path',
  407. 'type' => 'string',
  408. 'required' => true,
  409. ),
  410. 'pageToken' => array(
  411. 'location' => 'query',
  412. 'type' => 'string',
  413. ),
  414. 'pageSize' => array(
  415. 'location' => 'query',
  416. 'type' => 'integer',
  417. ),
  418. ),
  419. ),
  420. )
  421. )
  422. );
  423. $this->partners_vendors_customers = new Google_Service_AndroidProvisioningPartner_Resource_PartnersVendorsCustomers(
  424. $this,
  425. $this->serviceName,
  426. 'customers',
  427. array(
  428. 'methods' => array(
  429. 'list' => array(
  430. 'path' => 'v1/{+parent}/customers',
  431. 'httpMethod' => 'GET',
  432. 'parameters' => array(
  433. 'parent' => array(
  434. 'location' => 'path',
  435. 'type' => 'string',
  436. 'required' => true,
  437. ),
  438. 'pageToken' => array(
  439. 'location' => 'query',
  440. 'type' => 'string',
  441. ),
  442. 'pageSize' => array(
  443. 'location' => 'query',
  444. 'type' => 'integer',
  445. ),
  446. ),
  447. ),
  448. )
  449. )
  450. );
  451. }
  452. }