lemboy-google-api-client 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,347 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ProximitybeaconV1beta1
24
+
25
+ class Beacon
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AdvertisedId
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class LatLng
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class IndoorLevel
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class EphemeralIdRegistration
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Empty
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ListBeaconsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class BeaconAttachment
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListBeaconAttachmentsResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class DeleteAttachmentsResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListNamespacesResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Namespace
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class EphemeralIdRegistrationParams
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListDiagnosticsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Diagnostics
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Date
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GetInfoForObservedBeaconsRequest
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Observation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GetInfoForObservedBeaconsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class BeaconInfo
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class AttachmentInfo
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Beacon
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ property :beacon_name, as: 'beaconName'
155
+ property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
156
+
157
+ property :status, as: 'status'
158
+ property :place_id, as: 'placeId'
159
+ property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
160
+
161
+ property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation
162
+
163
+ property :expected_stability, as: 'expectedStability'
164
+ property :description, as: 'description'
165
+ hash :properties, as: 'properties'
166
+ property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
167
+
168
+ property :provisioning_key, :base64 => true, as: 'provisioningKey'
169
+ end
170
+ end
171
+
172
+ class AdvertisedId
173
+ # @private
174
+ class Representation < Google::Apis::Core::JsonRepresentation
175
+ property :type, as: 'type'
176
+ property :id, :base64 => true, as: 'id'
177
+ end
178
+ end
179
+
180
+ class LatLng
181
+ # @private
182
+ class Representation < Google::Apis::Core::JsonRepresentation
183
+ property :latitude, as: 'latitude'
184
+ property :longitude, as: 'longitude'
185
+ end
186
+ end
187
+
188
+ class IndoorLevel
189
+ # @private
190
+ class Representation < Google::Apis::Core::JsonRepresentation
191
+ property :name, as: 'name'
192
+ end
193
+ end
194
+
195
+ class EphemeralIdRegistration
196
+ # @private
197
+ class Representation < Google::Apis::Core::JsonRepresentation
198
+ property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey'
199
+ property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
200
+ property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey'
201
+ property :rotation_period_exponent, as: 'rotationPeriodExponent'
202
+ property :initial_clock_value, as: 'initialClockValue'
203
+ property :initial_eid, :base64 => true, as: 'initialEid'
204
+ end
205
+ end
206
+
207
+ class Empty
208
+ # @private
209
+ class Representation < Google::Apis::Core::JsonRepresentation
210
+ end
211
+ end
212
+
213
+ class ListBeaconsResponse
214
+ # @private
215
+ class Representation < Google::Apis::Core::JsonRepresentation
216
+ collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
217
+
218
+ property :next_page_token, as: 'nextPageToken'
219
+ property :total_count, as: 'totalCount'
220
+ end
221
+ end
222
+
223
+ class BeaconAttachment
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :attachment_name, as: 'attachmentName'
227
+ property :namespaced_type, as: 'namespacedType'
228
+ property :data, :base64 => true, as: 'data'
229
+ end
230
+ end
231
+
232
+ class ListBeaconAttachmentsResponse
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
236
+
237
+ end
238
+ end
239
+
240
+ class DeleteAttachmentsResponse
241
+ # @private
242
+ class Representation < Google::Apis::Core::JsonRepresentation
243
+ property :num_deleted, as: 'numDeleted'
244
+ end
245
+ end
246
+
247
+ class ListNamespacesResponse
248
+ # @private
249
+ class Representation < Google::Apis::Core::JsonRepresentation
250
+ collection :namespaces, as: 'namespaces', class: Google::Apis::ProximitybeaconV1beta1::Namespace, decorator: Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
251
+
252
+ end
253
+ end
254
+
255
+ class Namespace
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :namespace_name, as: 'namespaceName'
259
+ property :serving_visibility, as: 'servingVisibility'
260
+ end
261
+ end
262
+
263
+ class EphemeralIdRegistrationParams
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
267
+ property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
268
+ property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
269
+ end
270
+ end
271
+
272
+ class ListDiagnosticsResponse
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ collection :diagnostics, as: 'diagnostics', class: Google::Apis::ProximitybeaconV1beta1::Diagnostics, decorator: Google::Apis::ProximitybeaconV1beta1::Diagnostics::Representation
276
+
277
+ property :next_page_token, as: 'nextPageToken'
278
+ end
279
+ end
280
+
281
+ class Diagnostics
282
+ # @private
283
+ class Representation < Google::Apis::Core::JsonRepresentation
284
+ property :beacon_name, as: 'beaconName'
285
+ property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
286
+
287
+ collection :alerts, as: 'alerts'
288
+ end
289
+ end
290
+
291
+ class Date
292
+ # @private
293
+ class Representation < Google::Apis::Core::JsonRepresentation
294
+ property :year, as: 'year'
295
+ property :month, as: 'month'
296
+ property :day, as: 'day'
297
+ end
298
+ end
299
+
300
+ class GetInfoForObservedBeaconsRequest
301
+ # @private
302
+ class Representation < Google::Apis::Core::JsonRepresentation
303
+ collection :observations, as: 'observations', class: Google::Apis::ProximitybeaconV1beta1::Observation, decorator: Google::Apis::ProximitybeaconV1beta1::Observation::Representation
304
+
305
+ collection :namespaced_types, as: 'namespacedTypes'
306
+ end
307
+ end
308
+
309
+ class Observation
310
+ # @private
311
+ class Representation < Google::Apis::Core::JsonRepresentation
312
+ property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
313
+
314
+ property :telemetry, :base64 => true, as: 'telemetry'
315
+ property :timestamp_ms, as: 'timestampMs'
316
+ end
317
+ end
318
+
319
+ class GetInfoForObservedBeaconsResponse
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
323
+
324
+ end
325
+ end
326
+
327
+ class BeaconInfo
328
+ # @private
329
+ class Representation < Google::Apis::Core::JsonRepresentation
330
+ property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
331
+
332
+ property :beacon_name, as: 'beaconName'
333
+ collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
334
+
335
+ end
336
+ end
337
+
338
+ class AttachmentInfo
339
+ # @private
340
+ class Representation < Google::Apis::Core::JsonRepresentation
341
+ property :namespaced_type, as: 'namespacedType'
342
+ property :data, :base64 => true, as: 'data'
343
+ end
344
+ end
345
+ end
346
+ end
347
+ end
@@ -0,0 +1,806 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module ProximitybeaconV1beta1
23
+ # Google Proximity Beacon API
24
+ #
25
+ # Registers, manages, indexes, and searches beacons.
26
+ #
27
+ # @example
28
+ # require 'google/apis/proximitybeacon_v1beta1'
29
+ #
30
+ # Proximitybeacon = Google::Apis::ProximitybeaconV1beta1 # Alias the module
31
+ # service = Proximitybeacon::ProximitybeaconService.new
32
+ #
33
+ # @see https://developers.google.com/beacons/proximity/
34
+ class ProximitybeaconService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://proximitybeacon.googleapis.com/', '')
47
+ end
48
+
49
+ # Registers a previously unregistered beacon given its `advertisedId`. These IDs
50
+ # are unique within the system. An ID can be registered only once. Authenticate
51
+ # using an [OAuth access token](https://developers.google.com/identity/protocols/
52
+ # OAuth2) from a signed-in user with **Is owner** or **Can edit** permissions in
53
+ # the Google Developers Console project.
54
+ # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
55
+ # @param [String] project_id
56
+ # The project id of the project the beacon will be registered to. If the project
57
+ # id is not specified then the project making the request is used. Optional.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def register_beacon(beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:post, 'v1beta1/beacons:register', options)
77
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
78
+ command.request_object = beacon_object
79
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
80
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
81
+ command.query['projectId'] = project_id unless project_id.nil?
82
+ command.query['fields'] = fields unless fields.nil?
83
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
84
+ execute_or_queue_command(command, &block)
85
+ end
86
+
87
+ # Decommissions the specified beacon in the service. This beacon will no longer
88
+ # be returned from `beaconinfo.getforobserved`. This operation is permanent --
89
+ # you will not be able to re-register a beacon with this ID again. Authenticate
90
+ # using an [OAuth access token](https://developers.google.com/identity/protocols/
91
+ # OAuth2) from a signed-in user with **Is owner** or **Can edit** permissions in
92
+ # the Google Developers Console project.
93
+ # @param [String] beacon_name
94
+ # Beacon that should be decommissioned. A beacon name has the format "beacons/N!
95
+ # beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is
96
+ # a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4`
97
+ # for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID
98
+ # beacons, you may use either the current EID of the beacon's "stable" UID.
99
+ # Required.
100
+ # @param [String] project_id
101
+ # The project id of the beacon to decommission. If the project id is not
102
+ # specified then the project making the request is used. The project id must
103
+ # match the project that owns the beacon. Optional.
104
+ # @param [String] fields
105
+ # Selector specifying which fields to include in a partial response.
106
+ # @param [String] quota_user
107
+ # Available to use for quota purposes for server-side applications. Can be any
108
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
109
+ # @param [Google::Apis::RequestOptions] options
110
+ # Request-specific options
111
+ #
112
+ # @yield [result, err] Result & error if block supplied
113
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
114
+ # @yieldparam err [StandardError] error object if request failed
115
+ #
116
+ # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
117
+ #
118
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
119
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
120
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
121
+ def decommission_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
122
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}:decommission', options)
123
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
124
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
125
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
126
+ command.query['projectId'] = project_id unless project_id.nil?
127
+ command.query['fields'] = fields unless fields.nil?
128
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
129
+ execute_or_queue_command(command, &block)
130
+ end
131
+
132
+ # Returns detailed information about the specified beacon. Authenticate using an
133
+ # [OAuth access token](https://developers.google.com/identity/protocols/OAuth2)
134
+ # from a signed-in user with **viewer**, **Is owner** or **Can edit**
135
+ # permissions in the Google Developers Console project. Requests may supply an
136
+ # Eddystone-EID beacon name in the form: `beacons/4!beaconId` where the `
137
+ # beaconId` is the base16 ephemeral ID broadcast by the beacon. The returned `
138
+ # Beacon` object will contain the beacon's stable Eddystone-UID. Clients not
139
+ # authorized to resolve the beacon's ephemeral Eddystone-EID broadcast will
140
+ # receive an error.
141
+ # @param [String] beacon_name
142
+ # Resource name of this beacon. A beacon name has the format "beacons/N!beaconId"
143
+ # where the beaconId is the base16 ID broadcast by the beacon and N is a code
144
+ # for the beacon's type. Possible values are `3` for Eddystone-UID, `4` for
145
+ # Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID
146
+ # beacons, you may use either the current EID or the beacon's "stable" UID.
147
+ # Required.
148
+ # @param [String] project_id
149
+ # The project id of the beacon to request. If the project id is not specified
150
+ # then the project making the request is used. The project id must match the
151
+ # project that owns the beacon. Optional.
152
+ # @param [String] fields
153
+ # Selector specifying which fields to include in a partial response.
154
+ # @param [String] quota_user
155
+ # Available to use for quota purposes for server-side applications. Can be any
156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
157
+ # @param [Google::Apis::RequestOptions] options
158
+ # Request-specific options
159
+ #
160
+ # @yield [result, err] Result & error if block supplied
161
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
162
+ # @yieldparam err [StandardError] error object if request failed
163
+ #
164
+ # @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
165
+ #
166
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
167
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
168
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
169
+ def get_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
170
+ command = make_simple_command(:get, 'v1beta1/{+beaconName}', options)
171
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
172
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
173
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
174
+ command.query['projectId'] = project_id unless project_id.nil?
175
+ command.query['fields'] = fields unless fields.nil?
176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ execute_or_queue_command(command, &block)
178
+ end
179
+
180
+ # Searches the beacon registry for beacons that match the given search criteria.
181
+ # Only those beacons that the client has permission to list will be returned.
182
+ # Authenticate using an [OAuth access token](https://developers.google.com/
183
+ # identity/protocols/OAuth2) from a signed-in user with **viewer**, **Is owner**
184
+ # or **Can edit** permissions in the Google Developers Console project.
185
+ # @param [String] q
186
+ # Filter query string that supports the following field filters: * `description:"
187
+ # "` For example: `description:"Room 3"` Returns beacons whose description
188
+ # matches tokens in the string "Room 3" (not necessarily that exact string). The
189
+ # string must be double-quoted. * `status:` For example: `status:active` Returns
190
+ # beacons whose status matches the given value. Values must be one of the Beacon.
191
+ # Status enum values (case insensitive). Accepts multiple filters which will be
192
+ # combined with OR logic. * `stability:` For example: `stability:mobile` Returns
193
+ # beacons whose expected stability matches the given value. Values must be one
194
+ # of the Beacon.Stability enum values (case insensitive). Accepts multiple
195
+ # filters which will be combined with OR logic. * `place_id:""` For example: `
196
+ # place_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="` Returns beacons explicitly registered
197
+ # at the given place, expressed as a Place ID obtained from [Google Places API](/
198
+ # places/place-id). Does not match places inside the given place. Does not
199
+ # consider the beacon's actual location (which may be different from its
200
+ # registered place). Accepts multiple filters that will be combined with OR
201
+ # logic. The place ID must be double-quoted. * `registration_time[|=]` For
202
+ # example: `registration_time>=1433116800` Returns beacons whose registration
203
+ # time matches the given filter. Supports the operators: , =. Timestamp must be
204
+ # expressed as an integer number of seconds since midnight January 1, 1970 UTC.
205
+ # Accepts at most two filters that will be combined with AND logic, to support "
206
+ # between" semantics. If more than two are supplied, the latter ones are ignored.
207
+ # * `lat: lng: radius:` For example: `lat:51.1232343 lng:-1.093852 radius:1000`
208
+ # Returns beacons whose registered location is within the given circle. When any
209
+ # of these fields are given, all are required. Latitude and longitude must be
210
+ # decimal degrees between -90.0 and 90.0 and between -180.0 and 180.0
211
+ # respectively. Radius must be an integer number of meters between 10 and 1,000,
212
+ # 000 (1000 km). * `property:"="` For example: `property:"battery-type=CR2032"`
213
+ # Returns beacons which have a property of the given name and value. Supports
214
+ # multiple filters which will be combined with OR logic. The entire name=value
215
+ # string must be double-quoted as one string. * `attachment_type:""` For example:
216
+ # `attachment_type:"my-namespace/my-type"` Returns beacons having at least one
217
+ # attachment of the given namespaced type. Supports "any within this namespace"
218
+ # via the partial wildcard syntax: "my-namespace/*". Supports multiple filters
219
+ # which will be combined with OR logic. The string must be double-quoted.
220
+ # Multiple filters on the same field are combined with OR logic (except
221
+ # registration_time which is combined with AND logic). Multiple filters on
222
+ # different fields are combined with AND logic. Filters should be separated by
223
+ # spaces. As with any HTTP query string parameter, the whole filter expression
224
+ # must be URL-encoded. Example REST request: `GET /v1beta1/beacons?q=status:
225
+ # active%20lat:51.123%20lng:-1.095%20radius:1000`
226
+ # @param [String] page_token
227
+ # A pagination token obtained from a previous request to list beacons.
228
+ # @param [Fixnum] page_size
229
+ # The maximum number of records to return for this request, up to a server-
230
+ # defined upper limit.
231
+ # @param [String] project_id
232
+ # The project id to list beacons under. If not present then the project
233
+ # credential that made the request is used as the project. Optional.
234
+ # @param [String] fields
235
+ # Selector specifying which fields to include in a partial response.
236
+ # @param [String] quota_user
237
+ # Available to use for quota purposes for server-side applications. Can be any
238
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
239
+ # @param [Google::Apis::RequestOptions] options
240
+ # Request-specific options
241
+ #
242
+ # @yield [result, err] Result & error if block supplied
243
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse] parsed result object
244
+ # @yieldparam err [StandardError] error object if request failed
245
+ #
246
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse]
247
+ #
248
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
249
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
250
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
251
+ def list_beacons(q: nil, page_token: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
252
+ command = make_simple_command(:get, 'v1beta1/beacons', options)
253
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse::Representation
254
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse
255
+ command.query['q'] = q unless q.nil?
256
+ command.query['pageToken'] = page_token unless page_token.nil?
257
+ command.query['pageSize'] = page_size unless page_size.nil?
258
+ command.query['projectId'] = project_id unless project_id.nil?
259
+ command.query['fields'] = fields unless fields.nil?
260
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
261
+ execute_or_queue_command(command, &block)
262
+ end
263
+
264
+ # Updates the information about the specified beacon. **Any field that you do
265
+ # not populate in the submitted beacon will be permanently erased**, so you
266
+ # should follow the "read, modify, write" pattern to avoid inadvertently
267
+ # destroying data. Changes to the beacon status via this method will be silently
268
+ # ignored. To update beacon status, use the separate methods on this API for
269
+ # activation, deactivation, and decommissioning. Authenticate using an [OAuth
270
+ # access token](https://developers.google.com/identity/protocols/OAuth2) from a
271
+ # signed-in user with **Is owner** or **Can edit** permissions in the Google
272
+ # Developers Console project.
273
+ # @param [String] beacon_name
274
+ # Resource name of this beacon. A beacon name has the format "beacons/N!beaconId"
275
+ # where the beaconId is the base16 ID broadcast by the beacon and N is a code
276
+ # for the beacon's type. Possible values are `3` for Eddystone, `1` for iBeacon,
277
+ # or `5` for AltBeacon. This field must be left empty when registering. After
278
+ # reading a beacon, clients can use the name for future operations.
279
+ # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
280
+ # @param [String] project_id
281
+ # The project id of the beacon to update. If the project id is not specified
282
+ # then the project making the request is used. The project id must match the
283
+ # project that owns the beacon. Optional.
284
+ # @param [String] fields
285
+ # Selector specifying which fields to include in a partial response.
286
+ # @param [String] quota_user
287
+ # Available to use for quota purposes for server-side applications. Can be any
288
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
289
+ # @param [Google::Apis::RequestOptions] options
290
+ # Request-specific options
291
+ #
292
+ # @yield [result, err] Result & error if block supplied
293
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
294
+ # @yieldparam err [StandardError] error object if request failed
295
+ #
296
+ # @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
297
+ #
298
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
299
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
300
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
301
+ def update_beacon(beacon_name, beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
302
+ command = make_simple_command(:put, 'v1beta1/{+beaconName}', options)
303
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
304
+ command.request_object = beacon_object
305
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
306
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
307
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
308
+ command.query['projectId'] = project_id unless project_id.nil?
309
+ command.query['fields'] = fields unless fields.nil?
310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
311
+ execute_or_queue_command(command, &block)
312
+ end
313
+
314
+ # Activates a beacon. A beacon that is active will return information and
315
+ # attachment data when queried via `beaconinfo.getforobserved`. Calling this
316
+ # method on an already active beacon will do nothing (but will return a
317
+ # successful response code). Authenticate using an [OAuth access token](https://
318
+ # developers.google.com/identity/protocols/OAuth2) from a signed-in user with **
319
+ # Is owner** or **Can edit** permissions in the Google Developers Console
320
+ # project.
321
+ # @param [String] beacon_name
322
+ # Beacon that should be activated. A beacon name has the format "beacons/N!
323
+ # beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is
324
+ # a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4`
325
+ # for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID
326
+ # beacons, you may use either the current EID or the beacon's "stable" UID.
327
+ # Required.
328
+ # @param [String] project_id
329
+ # The project id of the beacon to activate. If the project id is not specified
330
+ # then the project making the request is used. The project id must match the
331
+ # project that owns the beacon. Optional.
332
+ # @param [String] fields
333
+ # Selector specifying which fields to include in a partial response.
334
+ # @param [String] quota_user
335
+ # Available to use for quota purposes for server-side applications. Can be any
336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
337
+ # @param [Google::Apis::RequestOptions] options
338
+ # Request-specific options
339
+ #
340
+ # @yield [result, err] Result & error if block supplied
341
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
342
+ # @yieldparam err [StandardError] error object if request failed
343
+ #
344
+ # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
345
+ #
346
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
347
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
349
+ def activate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
350
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options)
351
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
352
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
353
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
354
+ command.query['projectId'] = project_id unless project_id.nil?
355
+ command.query['fields'] = fields unless fields.nil?
356
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
357
+ execute_or_queue_command(command, &block)
358
+ end
359
+
360
+ # Deactivates a beacon. Once deactivated, the API will not return information
361
+ # nor attachment data for the beacon when queried via `beaconinfo.getforobserved`
362
+ # . Calling this method on an already inactive beacon will do nothing (but will
363
+ # return a successful response code). Authenticate using an [OAuth access token](
364
+ # https://developers.google.com/identity/protocols/OAuth2) from a signed-in user
365
+ # with **Is owner** or **Can edit** permissions in the Google Developers Console
366
+ # project.
367
+ # @param [String] beacon_name
368
+ # Beacon that should be deactivated. A beacon name has the format "beacons/N!
369
+ # beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is
370
+ # a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4`
371
+ # for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID
372
+ # beacons, you may use either the current EID or the beacon's "stable" UID.
373
+ # Required.
374
+ # @param [String] project_id
375
+ # The project id of the beacon to deactivate. If the project id is not specified
376
+ # then the project making the request is used. The project id must match the
377
+ # project that owns the beacon. Optional.
378
+ # @param [String] fields
379
+ # Selector specifying which fields to include in a partial response.
380
+ # @param [String] quota_user
381
+ # Available to use for quota purposes for server-side applications. Can be any
382
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
383
+ # @param [Google::Apis::RequestOptions] options
384
+ # Request-specific options
385
+ #
386
+ # @yield [result, err] Result & error if block supplied
387
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
388
+ # @yieldparam err [StandardError] error object if request failed
389
+ #
390
+ # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
391
+ #
392
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
393
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
394
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
395
+ def deactivate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
396
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}:deactivate', options)
397
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
398
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
399
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
400
+ command.query['projectId'] = project_id unless project_id.nil?
401
+ command.query['fields'] = fields unless fields.nil?
402
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
403
+ execute_or_queue_command(command, &block)
404
+ end
405
+
406
+ # Associates the given data with the specified beacon. Attachment data must
407
+ # contain two parts:
408
+ # - A namespaced type.
409
+ # - The actual attachment data itself. The namespaced type consists of two
410
+ # parts, the namespace and the type. The namespace must be one of the values
411
+ # returned by the `namespaces` endpoint, while the type can be a string of any
412
+ # characters except for the forward slash (`/`) up to 100 characters in length.
413
+ # Attachment data can be up to 1024 bytes long. Authenticate using an [OAuth
414
+ # access token](https://developers.google.com/identity/protocols/OAuth2) from a
415
+ # signed-in user with **Is owner** or **Can edit** permissions in the Google
416
+ # Developers Console project.
417
+ # @param [String] beacon_name
418
+ # Beacon on which the attachment should be created. A beacon name has the format
419
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the
420
+ # beacon and N is a code for the beacon's type. Possible values are `3` for
421
+ # Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon.
422
+ # For Eddystone-EID beacons, you may use either the current EID or the beacon's "
423
+ # stable" UID. Required.
424
+ # @param [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] beacon_attachment_object
425
+ # @param [String] project_id
426
+ # The project id of the project the attachment will belong to. If the project id
427
+ # is not specified then the project making the request is used. Optional.
428
+ # @param [String] fields
429
+ # Selector specifying which fields to include in a partial response.
430
+ # @param [String] quota_user
431
+ # Available to use for quota purposes for server-side applications. Can be any
432
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
433
+ # @param [Google::Apis::RequestOptions] options
434
+ # Request-specific options
435
+ #
436
+ # @yield [result, err] Result & error if block supplied
437
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] parsed result object
438
+ # @yieldparam err [StandardError] error object if request failed
439
+ #
440
+ # @return [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment]
441
+ #
442
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
443
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
444
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
445
+ def create_beacon_attachment(beacon_name, beacon_attachment_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
446
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments', options)
447
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
448
+ command.request_object = beacon_attachment_object
449
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
450
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment
451
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
452
+ command.query['projectId'] = project_id unless project_id.nil?
453
+ command.query['fields'] = fields unless fields.nil?
454
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
455
+ execute_or_queue_command(command, &block)
456
+ end
457
+
458
+ # Returns the attachments for the specified beacon that match the specified
459
+ # namespaced-type pattern. To control which namespaced types are returned, you
460
+ # add the `namespacedType` query parameter to the request. You must either use `*
461
+ # /*`, to return all attachments, or the namespace must be one of the ones
462
+ # returned from the `namespaces` endpoint. Authenticate using an [OAuth access
463
+ # token](https://developers.google.com/identity/protocols/OAuth2) from a signed-
464
+ # in user with **viewer**, **Is owner** or **Can edit** permissions in the
465
+ # Google Developers Console project.
466
+ # @param [String] beacon_name
467
+ # Beacon whose attachments should be fetched. A beacon name has the format "
468
+ # beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the
469
+ # beacon and N is a code for the beacon's type. Possible values are `3` for
470
+ # Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon.
471
+ # For Eddystone-EID beacons, you may use either the current EID or the beacon's "
472
+ # stable" UID. Required.
473
+ # @param [String] namespaced_type
474
+ # Specifies the namespace and type of attachment to include in response in
475
+ # namespace/type format. Accepts `*/*` to specify "all types in all namespaces".
476
+ # @param [String] project_id
477
+ # The project id to list beacon attachments under. This field can be used when "*
478
+ # " is specified to mean all attachment namespaces. Projects may have multiple
479
+ # attachments with multiple namespaces. If "*" is specified and the projectId
480
+ # string is empty, then the project making the request is used. Optional.
481
+ # @param [String] fields
482
+ # Selector specifying which fields to include in a partial response.
483
+ # @param [String] quota_user
484
+ # Available to use for quota purposes for server-side applications. Can be any
485
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
486
+ # @param [Google::Apis::RequestOptions] options
487
+ # Request-specific options
488
+ #
489
+ # @yield [result, err] Result & error if block supplied
490
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse] parsed result object
491
+ # @yieldparam err [StandardError] error object if request failed
492
+ #
493
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse]
494
+ #
495
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
498
+ def list_beacon_attachments(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
499
+ command = make_simple_command(:get, 'v1beta1/{+beaconName}/attachments', options)
500
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse::Representation
501
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse
502
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
503
+ command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
504
+ command.query['projectId'] = project_id unless project_id.nil?
505
+ command.query['fields'] = fields unless fields.nil?
506
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
507
+ execute_or_queue_command(command, &block)
508
+ end
509
+
510
+ # Deletes the specified attachment for the given beacon. Each attachment has a
511
+ # unique attachment name (`attachmentName`) which is returned when you fetch the
512
+ # attachment data via this API. You specify this with the delete request to
513
+ # control which attachment is removed. This operation cannot be undone.
514
+ # Authenticate using an [OAuth access token](https://developers.google.com/
515
+ # identity/protocols/OAuth2) from a signed-in user with **Is owner** or **Can
516
+ # edit** permissions in the Google Developers Console project.
517
+ # @param [String] attachment_name
518
+ # The attachment name (`attachmentName`) of the attachment to remove. For
519
+ # example: `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. For
520
+ # Eddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the
521
+ # beacon's current EID, or its "stable" Eddystone-UID. Required.
522
+ # @param [String] project_id
523
+ # The project id of the attachment to delete. If not provided, the project that
524
+ # is making the request is used. Optional.
525
+ # @param [String] fields
526
+ # Selector specifying which fields to include in a partial response.
527
+ # @param [String] quota_user
528
+ # Available to use for quota purposes for server-side applications. Can be any
529
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
530
+ # @param [Google::Apis::RequestOptions] options
531
+ # Request-specific options
532
+ #
533
+ # @yield [result, err] Result & error if block supplied
534
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
535
+ # @yieldparam err [StandardError] error object if request failed
536
+ #
537
+ # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
538
+ #
539
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
540
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
541
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
542
+ def delete_beacon_attachment(attachment_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
543
+ command = make_simple_command(:delete, 'v1beta1/{+attachmentName}', options)
544
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
545
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
546
+ command.params['attachmentName'] = attachment_name unless attachment_name.nil?
547
+ command.query['projectId'] = project_id unless project_id.nil?
548
+ command.query['fields'] = fields unless fields.nil?
549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
550
+ execute_or_queue_command(command, &block)
551
+ end
552
+
553
+ # Deletes multiple attachments on a given beacon. This operation is permanent
554
+ # and cannot be undone. You can optionally specify `namespacedType` to choose
555
+ # which attachments should be deleted. If you do not specify `namespacedType`,
556
+ # all your attachments on the given beacon will be deleted. You also may
557
+ # explicitly specify `*/*` to delete all. Authenticate using an [OAuth access
558
+ # token](https://developers.google.com/identity/protocols/OAuth2) from a signed-
559
+ # in user with **Is owner** or **Can edit** permissions in the Google Developers
560
+ # Console project.
561
+ # @param [String] beacon_name
562
+ # The beacon whose attachments should be deleted. A beacon name has the format "
563
+ # beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the
564
+ # beacon and N is a code for the beacon's type. Possible values are `3` for
565
+ # Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon.
566
+ # For Eddystone-EID beacons, you may use either the current EID or the beacon's "
567
+ # stable" UID. Required.
568
+ # @param [String] namespaced_type
569
+ # Specifies the namespace and type of attachments to delete in `namespace/type`
570
+ # format. Accepts `*/*` to specify "all types in all namespaces". Optional.
571
+ # @param [String] project_id
572
+ # The project id to delete beacon attachments under. This field can be used when
573
+ # "*" is specified to mean all attachment namespaces. Projects may have multiple
574
+ # attachments with multiple namespaces. If "*" is specified and the projectId
575
+ # string is empty, then the project making the request is used. Optional.
576
+ # @param [String] fields
577
+ # Selector specifying which fields to include in a partial response.
578
+ # @param [String] quota_user
579
+ # Available to use for quota purposes for server-side applications. Can be any
580
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
581
+ # @param [Google::Apis::RequestOptions] options
582
+ # Request-specific options
583
+ #
584
+ # @yield [result, err] Result & error if block supplied
585
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] parsed result object
586
+ # @yieldparam err [StandardError] error object if request failed
587
+ #
588
+ # @return [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse]
589
+ #
590
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
591
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
592
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
593
+ def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
594
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options)
595
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation
596
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse
597
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
598
+ command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
599
+ command.query['projectId'] = project_id unless project_id.nil?
600
+ command.query['fields'] = fields unless fields.nil?
601
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
602
+ execute_or_queue_command(command, &block)
603
+ end
604
+
605
+ # List the diagnostics for a single beacon. You can also list diagnostics for
606
+ # all the beacons owned by your Google Developers Console project by using the
607
+ # beacon name `beacons/-`. Authenticate using an [OAuth access token](https://
608
+ # developers.google.com/identity/protocols/OAuth2) from a signed-in user with **
609
+ # viewer**, **Is owner** or **Can edit** permissions in the Google Developers
610
+ # Console project.
611
+ # @param [String] beacon_name
612
+ # Beacon that the diagnostics are for.
613
+ # @param [Fixnum] page_size
614
+ # Specifies the maximum number of results to return. Defaults to 10. Maximum
615
+ # 1000. Optional.
616
+ # @param [String] page_token
617
+ # Requests results that occur after the `page_token`, obtained from the response
618
+ # to a previous request. Optional.
619
+ # @param [String] alert_filter
620
+ # Requests only beacons that have the given alert. For example, to find beacons
621
+ # that have low batteries use `alert_filter=LOW_BATTERY`.
622
+ # @param [String] project_id
623
+ # Requests only diagnostic records for the given project id. If not set, then
624
+ # the project making the request will be used for looking up diagnostic records.
625
+ # Optional.
626
+ # @param [String] fields
627
+ # Selector specifying which fields to include in a partial response.
628
+ # @param [String] quota_user
629
+ # Available to use for quota purposes for server-side applications. Can be any
630
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
631
+ # @param [Google::Apis::RequestOptions] options
632
+ # Request-specific options
633
+ #
634
+ # @yield [result, err] Result & error if block supplied
635
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse] parsed result object
636
+ # @yieldparam err [StandardError] error object if request failed
637
+ #
638
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse]
639
+ #
640
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
641
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
642
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
643
+ def list_beacon_diagnostics(beacon_name, page_size: nil, page_token: nil, alert_filter: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
644
+ command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options)
645
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation
646
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse
647
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
648
+ command.query['pageSize'] = page_size unless page_size.nil?
649
+ command.query['pageToken'] = page_token unless page_token.nil?
650
+ command.query['alertFilter'] = alert_filter unless alert_filter.nil?
651
+ command.query['projectId'] = project_id unless project_id.nil?
652
+ command.query['fields'] = fields unless fields.nil?
653
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
654
+ execute_or_queue_command(command, &block)
655
+ end
656
+
657
+ # Lists all attachment namespaces owned by your Google Developers Console
658
+ # project. Attachment data associated with a beacon must include a namespaced
659
+ # type, and the namespace must be owned by your project. Authenticate using an [
660
+ # OAuth access token](https://developers.google.com/identity/protocols/OAuth2)
661
+ # from a signed-in user with **viewer**, **Is owner** or **Can edit**
662
+ # permissions in the Google Developers Console project.
663
+ # @param [String] project_id
664
+ # The project id to list namespaces under. Optional.
665
+ # @param [String] fields
666
+ # Selector specifying which fields to include in a partial response.
667
+ # @param [String] quota_user
668
+ # Available to use for quota purposes for server-side applications. Can be any
669
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
670
+ # @param [Google::Apis::RequestOptions] options
671
+ # Request-specific options
672
+ #
673
+ # @yield [result, err] Result & error if block supplied
674
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
675
+ # @yieldparam err [StandardError] error object if request failed
676
+ #
677
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
678
+ #
679
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
680
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
681
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
682
+ def list_namespaces(project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
683
+ command = make_simple_command(:get, 'v1beta1/namespaces', options)
684
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
685
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
686
+ command.query['projectId'] = project_id unless project_id.nil?
687
+ command.query['fields'] = fields unless fields.nil?
688
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
689
+ execute_or_queue_command(command, &block)
690
+ end
691
+
692
+ # Updates the information about the specified namespace. Only the namespace
693
+ # visibility can be updated.
694
+ # @param [String] namespace_name
695
+ # Resource name of this namespace. Namespaces names have the format: namespaces/
696
+ # namespace.
697
+ # @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
698
+ # @param [String] project_id
699
+ # The project id of the namespace to update. If the project id is not specified
700
+ # then the project making the request is used. The project id must match the
701
+ # project that owns the beacon. Optional.
702
+ # @param [String] fields
703
+ # Selector specifying which fields to include in a partial response.
704
+ # @param [String] quota_user
705
+ # Available to use for quota purposes for server-side applications. Can be any
706
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
707
+ # @param [Google::Apis::RequestOptions] options
708
+ # Request-specific options
709
+ #
710
+ # @yield [result, err] Result & error if block supplied
711
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
712
+ # @yieldparam err [StandardError] error object if request failed
713
+ #
714
+ # @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
715
+ #
716
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
717
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
718
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
719
+ def update_namespace(namespace_name, namespace_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
720
+ command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
721
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
722
+ command.request_object = namespace_object
723
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
724
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
725
+ command.params['namespaceName'] = namespace_name unless namespace_name.nil?
726
+ command.query['projectId'] = project_id unless project_id.nil?
727
+ command.query['fields'] = fields unless fields.nil?
728
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
729
+ execute_or_queue_command(command, &block)
730
+ end
731
+
732
+ # Gets the Proximity Beacon API's current public key and associated parameters
733
+ # used to initiate the Diffie-Hellman key exchange required to register a beacon
734
+ # that broadcasts the Eddystone-EID format. This key changes periodically;
735
+ # clients may cache it and re-use the same public key to provision and register
736
+ # multiple beacons. However, clients should be prepared to refresh this key when
737
+ # they encounter an error registering an Eddystone-EID beacon.
738
+ # @param [String] fields
739
+ # Selector specifying which fields to include in a partial response.
740
+ # @param [String] quota_user
741
+ # Available to use for quota purposes for server-side applications. Can be any
742
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
743
+ # @param [Google::Apis::RequestOptions] options
744
+ # Request-specific options
745
+ #
746
+ # @yield [result, err] Result & error if block supplied
747
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams] parsed result object
748
+ # @yieldparam err [StandardError] error object if request failed
749
+ #
750
+ # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams]
751
+ #
752
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
753
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
754
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
755
+ def get_eidparams(fields: nil, quota_user: nil, options: nil, &block)
756
+ command = make_simple_command(:get, 'v1beta1/eidparams', options)
757
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams::Representation
758
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams
759
+ command.query['fields'] = fields unless fields.nil?
760
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
761
+ execute_or_queue_command(command, &block)
762
+ end
763
+
764
+ # Given one or more beacon observations, returns any beacon information and
765
+ # attachments accessible to your application. Authorize by using the [API key](
766
+ # https://developers.google.com/beacons/proximity/how-tos/authorizing#APIKey)
767
+ # for the application.
768
+ # @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object
769
+ # @param [String] fields
770
+ # Selector specifying which fields to include in a partial response.
771
+ # @param [String] quota_user
772
+ # Available to use for quota purposes for server-side applications. Can be any
773
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
774
+ # @param [Google::Apis::RequestOptions] options
775
+ # Request-specific options
776
+ #
777
+ # @yield [result, err] Result & error if block supplied
778
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object
779
+ # @yieldparam err [StandardError] error object if request failed
780
+ #
781
+ # @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse]
782
+ #
783
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
784
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
785
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
786
+ def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
787
+ command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options)
788
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation
789
+ command.request_object = get_info_for_observed_beacons_request_object
790
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation
791
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse
792
+ command.query['fields'] = fields unless fields.nil?
793
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
794
+ execute_or_queue_command(command, &block)
795
+ end
796
+
797
+ protected
798
+
799
+ def apply_command_defaults(command)
800
+ command.query['key'] = key unless key.nil?
801
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
802
+ end
803
+ end
804
+ end
805
+ end
806
+ end