Nessuna descrizione

Proximitybeacon.php 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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 Proximitybeacon (v1beta1).
  19. *
  20. * <p>
  21. * Registers, manages, indexes, and searches beacons.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/beacons/proximity/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_Proximitybeacon extends Google_Service
  31. {
  32. /** View and modify your beacons. */
  33. const USERLOCATION_BEACON_REGISTRY =
  34. "https://www.googleapis.com/auth/userlocation.beacon.registry";
  35. public $beaconinfo;
  36. public $beacons;
  37. public $beacons_attachments;
  38. public $beacons_diagnostics;
  39. public $namespaces;
  40. public $v1beta1;
  41. /**
  42. * Constructs the internal representation of the Proximitybeacon service.
  43. *
  44. * @param Google_Client $client
  45. */
  46. public function __construct(Google_Client $client)
  47. {
  48. parent::__construct($client);
  49. $this->rootUrl = 'https://proximitybeacon.googleapis.com/';
  50. $this->servicePath = '';
  51. $this->version = 'v1beta1';
  52. $this->serviceName = 'proximitybeacon';
  53. $this->beaconinfo = new Google_Service_Proximitybeacon_Resource_Beaconinfo(
  54. $this,
  55. $this->serviceName,
  56. 'beaconinfo',
  57. array(
  58. 'methods' => array(
  59. 'getforobserved' => array(
  60. 'path' => 'v1beta1/beaconinfo:getforobserved',
  61. 'httpMethod' => 'POST',
  62. 'parameters' => array(),
  63. ),
  64. )
  65. )
  66. );
  67. $this->beacons = new Google_Service_Proximitybeacon_Resource_Beacons(
  68. $this,
  69. $this->serviceName,
  70. 'beacons',
  71. array(
  72. 'methods' => array(
  73. 'activate' => array(
  74. 'path' => 'v1beta1/{+beaconName}:activate',
  75. 'httpMethod' => 'POST',
  76. 'parameters' => array(
  77. 'beaconName' => array(
  78. 'location' => 'path',
  79. 'type' => 'string',
  80. 'required' => true,
  81. ),
  82. 'projectId' => array(
  83. 'location' => 'query',
  84. 'type' => 'string',
  85. ),
  86. ),
  87. ),'deactivate' => array(
  88. 'path' => 'v1beta1/{+beaconName}:deactivate',
  89. 'httpMethod' => 'POST',
  90. 'parameters' => array(
  91. 'beaconName' => array(
  92. 'location' => 'path',
  93. 'type' => 'string',
  94. 'required' => true,
  95. ),
  96. 'projectId' => array(
  97. 'location' => 'query',
  98. 'type' => 'string',
  99. ),
  100. ),
  101. ),'decommission' => array(
  102. 'path' => 'v1beta1/{+beaconName}:decommission',
  103. 'httpMethod' => 'POST',
  104. 'parameters' => array(
  105. 'beaconName' => array(
  106. 'location' => 'path',
  107. 'type' => 'string',
  108. 'required' => true,
  109. ),
  110. 'projectId' => array(
  111. 'location' => 'query',
  112. 'type' => 'string',
  113. ),
  114. ),
  115. ),'delete' => array(
  116. 'path' => 'v1beta1/{+beaconName}',
  117. 'httpMethod' => 'DELETE',
  118. 'parameters' => array(
  119. 'beaconName' => array(
  120. 'location' => 'path',
  121. 'type' => 'string',
  122. 'required' => true,
  123. ),
  124. 'projectId' => array(
  125. 'location' => 'query',
  126. 'type' => 'string',
  127. ),
  128. ),
  129. ),'get' => array(
  130. 'path' => 'v1beta1/{+beaconName}',
  131. 'httpMethod' => 'GET',
  132. 'parameters' => array(
  133. 'beaconName' => array(
  134. 'location' => 'path',
  135. 'type' => 'string',
  136. 'required' => true,
  137. ),
  138. 'projectId' => array(
  139. 'location' => 'query',
  140. 'type' => 'string',
  141. ),
  142. ),
  143. ),'list' => array(
  144. 'path' => 'v1beta1/beacons',
  145. 'httpMethod' => 'GET',
  146. 'parameters' => array(
  147. 'pageToken' => array(
  148. 'location' => 'query',
  149. 'type' => 'string',
  150. ),
  151. 'q' => array(
  152. 'location' => 'query',
  153. 'type' => 'string',
  154. ),
  155. 'pageSize' => array(
  156. 'location' => 'query',
  157. 'type' => 'integer',
  158. ),
  159. 'projectId' => array(
  160. 'location' => 'query',
  161. 'type' => 'string',
  162. ),
  163. ),
  164. ),'register' => array(
  165. 'path' => 'v1beta1/beacons:register',
  166. 'httpMethod' => 'POST',
  167. 'parameters' => array(
  168. 'projectId' => array(
  169. 'location' => 'query',
  170. 'type' => 'string',
  171. ),
  172. ),
  173. ),'update' => array(
  174. 'path' => 'v1beta1/{+beaconName}',
  175. 'httpMethod' => 'PUT',
  176. 'parameters' => array(
  177. 'beaconName' => array(
  178. 'location' => 'path',
  179. 'type' => 'string',
  180. 'required' => true,
  181. ),
  182. 'projectId' => array(
  183. 'location' => 'query',
  184. 'type' => 'string',
  185. ),
  186. ),
  187. ),
  188. )
  189. )
  190. );
  191. $this->beacons_attachments = new Google_Service_Proximitybeacon_Resource_BeaconsAttachments(
  192. $this,
  193. $this->serviceName,
  194. 'attachments',
  195. array(
  196. 'methods' => array(
  197. 'batchDelete' => array(
  198. 'path' => 'v1beta1/{+beaconName}/attachments:batchDelete',
  199. 'httpMethod' => 'POST',
  200. 'parameters' => array(
  201. 'beaconName' => array(
  202. 'location' => 'path',
  203. 'type' => 'string',
  204. 'required' => true,
  205. ),
  206. 'namespacedType' => array(
  207. 'location' => 'query',
  208. 'type' => 'string',
  209. ),
  210. 'projectId' => array(
  211. 'location' => 'query',
  212. 'type' => 'string',
  213. ),
  214. ),
  215. ),'create' => array(
  216. 'path' => 'v1beta1/{+beaconName}/attachments',
  217. 'httpMethod' => 'POST',
  218. 'parameters' => array(
  219. 'beaconName' => array(
  220. 'location' => 'path',
  221. 'type' => 'string',
  222. 'required' => true,
  223. ),
  224. 'projectId' => array(
  225. 'location' => 'query',
  226. 'type' => 'string',
  227. ),
  228. ),
  229. ),'delete' => array(
  230. 'path' => 'v1beta1/{+attachmentName}',
  231. 'httpMethod' => 'DELETE',
  232. 'parameters' => array(
  233. 'attachmentName' => array(
  234. 'location' => 'path',
  235. 'type' => 'string',
  236. 'required' => true,
  237. ),
  238. 'projectId' => array(
  239. 'location' => 'query',
  240. 'type' => 'string',
  241. ),
  242. ),
  243. ),'list' => array(
  244. 'path' => 'v1beta1/{+beaconName}/attachments',
  245. 'httpMethod' => 'GET',
  246. 'parameters' => array(
  247. 'beaconName' => array(
  248. 'location' => 'path',
  249. 'type' => 'string',
  250. 'required' => true,
  251. ),
  252. 'namespacedType' => array(
  253. 'location' => 'query',
  254. 'type' => 'string',
  255. ),
  256. 'projectId' => array(
  257. 'location' => 'query',
  258. 'type' => 'string',
  259. ),
  260. ),
  261. ),
  262. )
  263. )
  264. );
  265. $this->beacons_diagnostics = new Google_Service_Proximitybeacon_Resource_BeaconsDiagnostics(
  266. $this,
  267. $this->serviceName,
  268. 'diagnostics',
  269. array(
  270. 'methods' => array(
  271. 'list' => array(
  272. 'path' => 'v1beta1/{+beaconName}/diagnostics',
  273. 'httpMethod' => 'GET',
  274. 'parameters' => array(
  275. 'beaconName' => array(
  276. 'location' => 'path',
  277. 'type' => 'string',
  278. 'required' => true,
  279. ),
  280. 'pageToken' => array(
  281. 'location' => 'query',
  282. 'type' => 'string',
  283. ),
  284. 'pageSize' => array(
  285. 'location' => 'query',
  286. 'type' => 'integer',
  287. ),
  288. 'alertFilter' => array(
  289. 'location' => 'query',
  290. 'type' => 'string',
  291. ),
  292. 'projectId' => array(
  293. 'location' => 'query',
  294. 'type' => 'string',
  295. ),
  296. ),
  297. ),
  298. )
  299. )
  300. );
  301. $this->namespaces = new Google_Service_Proximitybeacon_Resource_Namespaces(
  302. $this,
  303. $this->serviceName,
  304. 'namespaces',
  305. array(
  306. 'methods' => array(
  307. 'list' => array(
  308. 'path' => 'v1beta1/namespaces',
  309. 'httpMethod' => 'GET',
  310. 'parameters' => array(
  311. 'projectId' => array(
  312. 'location' => 'query',
  313. 'type' => 'string',
  314. ),
  315. ),
  316. ),'update' => array(
  317. 'path' => 'v1beta1/{+namespaceName}',
  318. 'httpMethod' => 'PUT',
  319. 'parameters' => array(
  320. 'namespaceName' => array(
  321. 'location' => 'path',
  322. 'type' => 'string',
  323. 'required' => true,
  324. ),
  325. 'projectId' => array(
  326. 'location' => 'query',
  327. 'type' => 'string',
  328. ),
  329. ),
  330. ),
  331. )
  332. )
  333. );
  334. $this->v1beta1 = new Google_Service_Proximitybeacon_Resource_V1beta1(
  335. $this,
  336. $this->serviceName,
  337. 'v1beta1',
  338. array(
  339. 'methods' => array(
  340. 'getEidparams' => array(
  341. 'path' => 'v1beta1/eidparams',
  342. 'httpMethod' => 'GET',
  343. 'parameters' => array(),
  344. ),
  345. )
  346. )
  347. );
  348. }
  349. }