google-api-client 0.9.8 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -22,250 +22,255 @@ module Google
22
22
  module Apis
23
23
  module ProximitybeaconV1beta1
24
24
 
25
- class Beacon
25
+ class ListBeaconsResponse
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class AdvertisedId
31
+ class Diagnostics
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class LatLng
37
+ class GetInfoForObservedBeaconsRequest
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class IndoorLevel
43
+ class Empty
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class EphemeralIdRegistration
49
+ class BeaconAttachment
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class Empty
55
+ class EphemeralIdRegistration
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class ListBeaconsResponse
61
+ class LatLng
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class BeaconAttachment
67
+ class ListBeaconAttachmentsResponse
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class ListBeaconAttachmentsResponse
73
+ class Namespace
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class DeleteAttachmentsResponse
79
+ class AttachmentInfo
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class ListNamespacesResponse
85
+ class BeaconInfo
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
 
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class Namespace
91
+ class EphemeralIdRegistrationParams
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class EphemeralIdRegistrationParams
97
+ class DeleteAttachmentsResponse
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class ListDiagnosticsResponse
103
+ class Observation
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class Diagnostics
109
+ class ListDiagnosticsResponse
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class Date
115
+ class GetInfoForObservedBeaconsResponse
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class GetInfoForObservedBeaconsRequest
121
+ class Beacon
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class Observation
127
+ class AdvertisedId
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
- class GetInfoForObservedBeaconsResponse
133
+ class Date
134
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
135
 
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
- class BeaconInfo
139
+ class IndoorLevel
140
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
141
 
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
- class AttachmentInfo
145
+ class ListNamespacesResponse
146
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
147
 
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
- class Beacon
151
+ class ListBeaconsResponse
152
152
  # @private
153
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
154
+ property :next_page_token, as: 'nextPageToken'
155
+ collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
160
156
 
161
- property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation
157
+ property :total_count, as: 'totalCount'
158
+ end
159
+ end
162
160
 
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
161
+ class Diagnostics
162
+ # @private
163
+ class Representation < Google::Apis::Core::JsonRepresentation
164
+ collection :alerts, as: 'alerts'
165
+ property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
167
166
 
168
- property :provisioning_key, :base64 => true, as: 'provisioningKey'
167
+ property :beacon_name, as: 'beaconName'
169
168
  end
170
169
  end
171
170
 
172
- class AdvertisedId
171
+ class GetInfoForObservedBeaconsRequest
173
172
  # @private
174
173
  class Representation < Google::Apis::Core::JsonRepresentation
175
- property :type, as: 'type'
176
- property :id, :base64 => true, as: 'id'
174
+ collection :observations, as: 'observations', class: Google::Apis::ProximitybeaconV1beta1::Observation, decorator: Google::Apis::ProximitybeaconV1beta1::Observation::Representation
175
+
176
+ collection :namespaced_types, as: 'namespacedTypes'
177
177
  end
178
178
  end
179
179
 
180
- class LatLng
180
+ class Empty
181
181
  # @private
182
182
  class Representation < Google::Apis::Core::JsonRepresentation
183
- property :latitude, as: 'latitude'
184
- property :longitude, as: 'longitude'
185
183
  end
186
184
  end
187
185
 
188
- class IndoorLevel
186
+ class BeaconAttachment
189
187
  # @private
190
188
  class Representation < Google::Apis::Core::JsonRepresentation
191
- property :name, as: 'name'
189
+ property :attachment_name, as: 'attachmentName'
190
+ property :namespaced_type, as: 'namespacedType'
191
+ property :data, :base64 => true, as: 'data'
192
+ property :creation_time_ms, as: 'creationTimeMs'
192
193
  end
193
194
  end
194
195
 
195
196
  class EphemeralIdRegistration
196
197
  # @private
197
198
  class Representation < Google::Apis::Core::JsonRepresentation
199
+ property :initial_clock_value, as: 'initialClockValue'
198
200
  property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey'
201
+ property :rotation_period_exponent, as: 'rotationPeriodExponent'
199
202
  property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
200
203
  property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey'
201
- property :rotation_period_exponent, as: 'rotationPeriodExponent'
202
- property :initial_clock_value, as: 'initialClockValue'
203
204
  property :initial_eid, :base64 => true, as: 'initialEid'
204
205
  end
205
206
  end
206
207
 
207
- class Empty
208
+ class LatLng
208
209
  # @private
209
210
  class Representation < Google::Apis::Core::JsonRepresentation
211
+ property :latitude, as: 'latitude'
212
+ property :longitude, as: 'longitude'
210
213
  end
211
214
  end
212
215
 
213
- class ListBeaconsResponse
216
+ class ListBeaconAttachmentsResponse
214
217
  # @private
215
218
  class Representation < Google::Apis::Core::JsonRepresentation
216
- collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
219
+ collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
217
220
 
218
- property :next_page_token, as: 'nextPageToken'
219
- property :total_count, as: 'totalCount'
220
221
  end
221
222
  end
222
223
 
223
- class BeaconAttachment
224
+ class Namespace
224
225
  # @private
225
226
  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'
227
+ property :namespace_name, as: 'namespaceName'
228
+ property :serving_visibility, as: 'servingVisibility'
229
229
  end
230
230
  end
231
231
 
232
- class ListBeaconAttachmentsResponse
232
+ class AttachmentInfo
233
233
  # @private
234
234
  class Representation < Google::Apis::Core::JsonRepresentation
235
- collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
236
-
235
+ property :namespaced_type, as: 'namespacedType'
236
+ property :data, :base64 => true, as: 'data'
237
237
  end
238
238
  end
239
239
 
240
- class DeleteAttachmentsResponse
240
+ class BeaconInfo
241
241
  # @private
242
242
  class Representation < Google::Apis::Core::JsonRepresentation
243
- property :num_deleted, as: 'numDeleted'
243
+ property :beacon_name, as: 'beaconName'
244
+ property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
245
+
246
+ collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
247
+
244
248
  end
245
249
  end
246
250
 
247
- class ListNamespacesResponse
251
+ class EphemeralIdRegistrationParams
248
252
  # @private
249
253
  class Representation < Google::Apis::Core::JsonRepresentation
250
- collection :namespaces, as: 'namespaces', class: Google::Apis::ProximitybeaconV1beta1::Namespace, decorator: Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
251
-
254
+ property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
255
+ property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
256
+ property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
252
257
  end
253
258
  end
254
259
 
255
- class Namespace
260
+ class DeleteAttachmentsResponse
256
261
  # @private
257
262
  class Representation < Google::Apis::Core::JsonRepresentation
258
- property :namespace_name, as: 'namespaceName'
259
- property :serving_visibility, as: 'servingVisibility'
263
+ property :num_deleted, as: 'numDeleted'
260
264
  end
261
265
  end
262
266
 
263
- class EphemeralIdRegistrationParams
267
+ class Observation
264
268
  # @private
265
269
  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'
270
+ property :telemetry, :base64 => true, as: 'telemetry'
271
+ property :timestamp_ms, as: 'timestampMs'
272
+ property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
273
+
269
274
  end
270
275
  end
271
276
 
@@ -278,68 +283,64 @@ module Google
278
283
  end
279
284
  end
280
285
 
281
- class Diagnostics
286
+ class GetInfoForObservedBeaconsResponse
282
287
  # @private
283
288
  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
289
+ collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
286
290
 
287
- collection :alerts, as: 'alerts'
288
291
  end
289
292
  end
290
293
 
291
- class Date
294
+ class Beacon
292
295
  # @private
293
296
  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
297
+ property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
299
298
 
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
299
+ property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
304
300
 
305
- collection :namespaced_types, as: 'namespacedTypes'
301
+ property :provisioning_key, :base64 => true, as: 'provisioningKey'
302
+ property :description, as: 'description'
303
+ property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
304
+
305
+ property :place_id, as: 'placeId'
306
+ hash :properties, as: 'properties'
307
+ property :status, as: 'status'
308
+ property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation
309
+
310
+ property :beacon_name, as: 'beaconName'
311
+ property :expected_stability, as: 'expectedStability'
306
312
  end
307
313
  end
308
314
 
309
- class Observation
315
+ class AdvertisedId
310
316
  # @private
311
317
  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'
318
+ property :type, as: 'type'
319
+ property :id, :base64 => true, as: 'id'
316
320
  end
317
321
  end
318
322
 
319
- class GetInfoForObservedBeaconsResponse
323
+ class Date
320
324
  # @private
321
325
  class Representation < Google::Apis::Core::JsonRepresentation
322
- collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
323
-
326
+ property :year, as: 'year'
327
+ property :day, as: 'day'
328
+ property :month, as: 'month'
324
329
  end
325
330
  end
326
331
 
327
- class BeaconInfo
332
+ class IndoorLevel
328
333
  # @private
329
334
  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
+ property :name, as: 'name'
335
336
  end
336
337
  end
337
338
 
338
- class AttachmentInfo
339
+ class ListNamespacesResponse
339
340
  # @private
340
341
  class Representation < Google::Apis::Core::JsonRepresentation
341
- property :namespaced_type, as: 'namespacedType'
342
- property :data, :base64 => true, as: 'data'
342
+ collection :namespaces, as: 'namespaces', class: Google::Apis::ProximitybeaconV1beta1::Namespace, decorator: Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
343
+
343
344
  end
344
345
  end
345
346
  end
@@ -46,15 +46,12 @@ module Google
46
46
  super('https://proximitybeacon.googleapis.com/', '')
47
47
  end
48
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.
49
+ # Given one or more beacon observations, returns any beacon information
50
+ # and attachments accessible to your application. Authorize by using the
51
+ # [API key](https://developers.google.com/beacons/proximity/how-tos/authorizing#
52
+ # APIKey)
53
+ # for the application.
54
+ # @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object
58
55
  # @param [String] fields
59
56
  # Selector specifying which fields to include in a partial response.
60
57
  # @param [String] quota_user
@@ -64,43 +61,35 @@ module Google
64
61
  # Request-specific options
65
62
  #
66
63
  # @yield [result, err] Result & error if block supplied
67
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
64
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object
68
65
  # @yieldparam err [StandardError] error object if request failed
69
66
  #
70
- # @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
67
+ # @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse]
71
68
  #
72
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
71
  # @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?
72
+ def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options)
74
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation
75
+ command.request_object = get_info_for_observed_beacons_request_object
76
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation
77
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse
82
78
  command.query['fields'] = fields unless fields.nil?
83
79
  command.query['quotaUser'] = quota_user unless quota_user.nil?
84
80
  execute_or_queue_command(command, &block)
85
81
  end
86
82
 
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.
83
+ # Lists all attachment namespaces owned by your Google Developers Console
84
+ # project. Attachment data associated with a beacon must include a
85
+ # namespaced type, and the namespace must be owned by your project.
86
+ # Authenticate using an [OAuth access token](https://developers.google.com/
87
+ # identity/protocols/OAuth2)
88
+ # from a signed-in user with **viewer**, **Is owner** or **Can edit**
89
+ # permissions in the Google Developers Console project.
100
90
  # @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.
91
+ # The project id to list namespaces under.
92
+ # Optional.
104
93
  # @param [String] fields
105
94
  # Selector specifying which fields to include in a partial response.
106
95
  # @param [String] quota_user
@@ -110,45 +99,35 @@ module Google
110
99
  # Request-specific options
111
100
  #
112
101
  # @yield [result, err] Result & error if block supplied
113
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
102
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
114
103
  # @yieldparam err [StandardError] error object if request failed
115
104
  #
116
- # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
105
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
117
106
  #
118
107
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
119
108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
120
109
  # @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?
110
+ def list_namespaces(project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:get, 'v1beta1/namespaces', options)
112
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
113
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
126
114
  command.query['projectId'] = project_id unless project_id.nil?
127
115
  command.query['fields'] = fields unless fields.nil?
128
116
  command.query['quotaUser'] = quota_user unless quota_user.nil?
129
117
  execute_or_queue_command(command, &block)
130
118
  end
131
119
 
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.
120
+ # Updates the information about the specified namespace. Only the namespace
121
+ # visibility can be updated.
122
+ # @param [String] namespace_name
123
+ # Resource name of this namespace. Namespaces names have the format:
124
+ # <code>namespaces/<var>namespace</var></code>.
125
+ # @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
148
126
  # @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.
127
+ # The project id of the namespace to update. If the project id is not
128
+ # specified then the project making the request is used. The project id
129
+ # must match the project that owns the beacon.
130
+ # Optional.
152
131
  # @param [String] fields
153
132
  # Selector specifying which fields to include in a partial response.
154
133
  # @param [String] quota_user
@@ -158,79 +137,140 @@ module Google
158
137
  # Request-specific options
159
138
  #
160
139
  # @yield [result, err] Result & error if block supplied
161
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
140
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
162
141
  # @yieldparam err [StandardError] error object if request failed
163
142
  #
164
- # @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
143
+ # @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
165
144
  #
166
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
167
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
168
147
  # @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?
148
+ def update_namespace(namespace_name, namespace_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
150
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
151
+ command.request_object = namespace_object
152
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
153
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
154
+ command.params['namespaceName'] = namespace_name unless namespace_name.nil?
174
155
  command.query['projectId'] = project_id unless project_id.nil?
175
156
  command.query['fields'] = fields unless fields.nil?
176
157
  command.query['quotaUser'] = quota_user unless quota_user.nil?
177
158
  execute_or_queue_command(command, &block)
178
159
  end
179
160
 
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.
161
+ # Gets the Proximity Beacon API's current public key and associated
162
+ # parameters used to initiate the Diffie-Hellman key exchange required to
163
+ # register a beacon that broadcasts the Eddystone-EID format. This key
164
+ # changes periodically; clients may cache it and re-use the same public key
165
+ # to provision and register multiple beacons. However, clients should be
166
+ # prepared to refresh this key when they encounter an error registering an
167
+ # Eddystone-EID beacon.
168
+ # @param [String] fields
169
+ # Selector specifying which fields to include in a partial response.
170
+ # @param [String] quota_user
171
+ # Available to use for quota purposes for server-side applications. Can be any
172
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
173
+ # @param [Google::Apis::RequestOptions] options
174
+ # Request-specific options
175
+ #
176
+ # @yield [result, err] Result & error if block supplied
177
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams] parsed result object
178
+ # @yieldparam err [StandardError] error object if request failed
179
+ #
180
+ # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams]
181
+ #
182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
185
+ def get_eidparams(fields: nil, quota_user: nil, options: nil, &block)
186
+ command = make_simple_command(:get, 'v1beta1/eidparams', options)
187
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams::Representation
188
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams
189
+ command.query['fields'] = fields unless fields.nil?
190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
191
+ execute_or_queue_command(command, &block)
192
+ end
193
+
194
+ # Searches the beacon registry for beacons that match the given search
195
+ # criteria. Only those beacons that the client has permission to list
196
+ # will be returned.
182
197
  # 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.
198
+ # identity/protocols/OAuth2)
199
+ # from a signed-in user with **viewer**, **Is owner** or **Can edit**
200
+ # permissions in the Google Developers Console project.
185
201
  # @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.
202
+ # Filter query string that supports the following field filters:
203
+ # * **description:`"<string>"`**
204
+ # For example: **description:"Room 3"**
205
+ # Returns beacons whose description matches tokens in the string "Room 3"
206
+ # (not necessarily that exact string).
207
+ # The string must be double-quoted.
208
+ # * **status:`<enum>`**
209
+ # For example: **status:active**
210
+ # Returns beacons whose status matches the given value. Values must be
211
+ # one of the Beacon.Status enum values (case insensitive). Accepts
212
+ # multiple filters which will be combined with OR logic.
213
+ # * **stability:`<enum>`**
214
+ # For example: **stability:mobile**
215
+ # Returns beacons whose expected stability matches the given value.
216
+ # Values must be one of the Beacon.Stability enum values (case
217
+ # insensitive). Accepts multiple filters which will be combined with
218
+ # OR logic.
219
+ # * **place\_id:`"<string>"`**
220
+ # For example: **place\_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="**
221
+ # Returns beacons explicitly registered at the given place, expressed as
222
+ # a Place ID obtained from [Google Places API](/places/place-id). Does not
223
+ # match places inside the given place. Does not consider the beacon's
224
+ # actual location (which may be different from its registered place).
225
+ # Accepts multiple filters that will be combined with OR logic. The place
226
+ # ID must be double-quoted.
227
+ # * **registration\_time`[<|>|<=|>=]<integer>`**
228
+ # For example: **registration\_time>=1433116800**
229
+ # Returns beacons whose registration time matches the given filter.
230
+ # Supports the operators: <, >, <=, and >=. Timestamp must be expressed as
231
+ # an integer number of seconds since midnight January 1, 1970 UTC. Accepts
232
+ # at most two filters that will be combined with AND logic, to support
233
+ # "between" semantics. If more than two are supplied, the latter ones are
234
+ # ignored.
235
+ # * **lat:`<double> lng:<double> radius:<integer>`**
236
+ # For example: **lat:51.1232343 lng:-1.093852 radius:1000**
237
+ # Returns beacons whose registered location is within the given circle.
238
+ # When any of these fields are given, all are required. Latitude and
239
+ # longitude must be decimal degrees between -90.0 and 90.0 and between
240
+ # -180.0 and 180.0 respectively. Radius must be an integer number of
241
+ # meters between 10 and 1,000,000 (1000 km).
242
+ # * **property:`"<string>=<string>"`**
243
+ # For example: **property:"battery-type=CR2032"**
244
+ # Returns beacons which have a property of the given name and value.
245
+ # Supports multiple filters which will be combined with OR logic.
246
+ # The entire name=value string must be double-quoted as one string.
247
+ # * **attachment\_type:`"<string>"`**
248
+ # For example: **attachment_type:"my-namespace/my-type"**
249
+ # Returns beacons having at least one attachment of the given namespaced
250
+ # type. Supports "any within this namespace" via the partial wildcard
251
+ # syntax: "my-namespace/*". Supports multiple filters which will be
252
+ # combined with OR logic. The string must be double-quoted.
253
+ # * **indoor\_level:`"<string>"`**
254
+ # For example: **indoor\_level:"1"**
255
+ # Returns beacons which are located on the given indoor level. Accepts
256
+ # multiple filters that will be combined with OR logic.
220
257
  # 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.
258
+ # registration_time which is combined with AND logic).
259
+ # Multiple filters on different fields are combined with AND logic.
260
+ # Filters should be separated by spaces.
261
+ # As with any HTTP query string parameter, the whole filter expression must
262
+ # be URL-encoded.
263
+ # Example REST request:
264
+ # `GET /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000`
228
265
  # @param [Fixnum] page_size
229
- # The maximum number of records to return for this request, up to a server-
230
- # defined upper limit.
266
+ # The maximum number of records to return for this request, up to a
267
+ # server-defined upper limit.
231
268
  # @param [String] project_id
232
269
  # 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.
270
+ # credential that made the request is used as the project.
271
+ # Optional.
272
+ # @param [String] page_token
273
+ # A pagination token obtained from a previous request to list beacons.
234
274
  # @param [String] fields
235
275
  # Selector specifying which fields to include in a partial response.
236
276
  # @param [String] quota_user
@@ -248,39 +288,31 @@ module Google
248
288
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
249
289
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
250
290
  # @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)
291
+ def list_beacons(q: nil, page_size: nil, project_id: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
252
292
  command = make_simple_command(:get, 'v1beta1/beacons', options)
253
293
  command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse::Representation
254
294
  command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse
255
295
  command.query['q'] = q unless q.nil?
256
- command.query['pageToken'] = page_token unless page_token.nil?
257
296
  command.query['pageSize'] = page_size unless page_size.nil?
258
297
  command.query['projectId'] = project_id unless project_id.nil?
298
+ command.query['pageToken'] = page_token unless page_token.nil?
259
299
  command.query['fields'] = fields unless fields.nil?
260
300
  command.query['quotaUser'] = quota_user unless quota_user.nil?
261
301
  execute_or_queue_command(command, &block)
262
302
  end
263
303
 
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.
304
+ # Registers a previously unregistered beacon given its `advertisedId`.
305
+ # These IDs are unique within the system. An ID can be registered only once.
306
+ # Authenticate using an [OAuth access token](https://developers.google.com/
307
+ # identity/protocols/OAuth2)
308
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
309
+ # Google Developers Console project.
279
310
  # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
280
311
  # @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.
312
+ # The project id of the project the beacon will be registered to. If
313
+ # the project id is not specified then the project making the request
314
+ # is used.
315
+ # Optional.
284
316
  # @param [String] fields
285
317
  # Selector specifying which fields to include in a partial response.
286
318
  # @param [String] quota_user
@@ -298,37 +330,39 @@ module Google
298
330
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
299
331
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
300
332
  # @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)
333
+ def register_beacon(beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
334
+ command = make_simple_command(:post, 'v1beta1/beacons:register', options)
303
335
  command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
304
336
  command.request_object = beacon_object
305
337
  command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
306
338
  command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
307
- command.params['beaconName'] = beacon_name unless beacon_name.nil?
308
339
  command.query['projectId'] = project_id unless project_id.nil?
309
340
  command.query['fields'] = fields unless fields.nil?
310
341
  command.query['quotaUser'] = quota_user unless quota_user.nil?
311
342
  execute_or_queue_command(command, &block)
312
343
  end
313
344
 
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.
345
+ # Activates a beacon. A beacon that is active will return information
346
+ # and attachment data when queried via `beaconinfo.getforobserved`.
347
+ # Calling this method on an already active beacon will do nothing (but
348
+ # will return a successful response code).
349
+ # Authenticate using an [OAuth access token](https://developers.google.com/
350
+ # identity/protocols/OAuth2)
351
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
352
+ # Google Developers Console project.
321
353
  # @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.
354
+ # Beacon that should be activated. A beacon name has the format
355
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
356
+ # the beacon and N is a code for the beacon's type. Possible values are
357
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
358
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
359
+ # current EID or the beacon's "stable" UID.
327
360
  # Required.
328
361
  # @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.
362
+ # The project id of the beacon to activate. If the project id is not
363
+ # specified then the project making the request is used. The project id
364
+ # must match the project that owns the beacon.
365
+ # Optional.
332
366
  # @param [String] fields
333
367
  # Selector specifying which fields to include in a partial response.
334
368
  # @param [String] quota_user
@@ -357,24 +391,29 @@ module Google
357
391
  execute_or_queue_command(command, &block)
358
392
  end
359
393
 
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.
394
+ # Returns detailed information about the specified beacon.
395
+ # Authenticate using an [OAuth access token](https://developers.google.com/
396
+ # identity/protocols/OAuth2)
397
+ # from a signed-in user with **viewer**, **Is owner** or **Can edit**
398
+ # permissions in the Google Developers Console project.
399
+ # Requests may supply an Eddystone-EID beacon name in the form:
400
+ # `beacons/4!beaconId` where the `beaconId` is the base16 ephemeral ID
401
+ # broadcast by the beacon. The returned `Beacon` object will contain the
402
+ # beacon's stable Eddystone-UID. Clients not authorized to resolve the
403
+ # beacon's ephemeral Eddystone-EID broadcast will receive an error.
367
404
  # @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.
405
+ # Resource name of this beacon. A beacon name has the format
406
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
407
+ # the beacon and N is a code for the beacon's type. Possible values are
408
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
409
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
410
+ # current EID or the beacon's "stable" UID.
373
411
  # Required.
374
412
  # @param [String] project_id
375
- # The project id of the beacon to deactivate. If the project id is not specified
413
+ # The project id of the beacon to request. If the project id is not specified
376
414
  # then the project making the request is used. The project id must match the
377
- # project that owns the beacon. Optional.
415
+ # project that owns the beacon.
416
+ # Optional.
378
417
  # @param [String] fields
379
418
  # Selector specifying which fields to include in a partial response.
380
419
  # @param [String] quota_user
@@ -384,18 +423,18 @@ module Google
384
423
  # Request-specific options
385
424
  #
386
425
  # @yield [result, err] Result & error if block supplied
387
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
426
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
388
427
  # @yieldparam err [StandardError] error object if request failed
389
428
  #
390
- # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
429
+ # @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
391
430
  #
392
431
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
393
432
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
394
433
  # @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
434
+ def get_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
435
+ command = make_simple_command(:get, 'v1beta1/{+beaconName}', options)
436
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
437
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
399
438
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
400
439
  command.query['projectId'] = project_id unless project_id.nil?
401
440
  command.query['fields'] = fields unless fields.nil?
@@ -403,28 +442,30 @@ module Google
403
442
  execute_or_queue_command(command, &block)
404
443
  end
405
444
 
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.
445
+ # Updates the information about the specified beacon. **Any field that you do
446
+ # not populate in the submitted beacon will be permanently erased**, so you
447
+ # should follow the "read, modify, write" pattern to avoid inadvertently
448
+ # destroying data.
449
+ # Changes to the beacon status via this method will be silently ignored.
450
+ # To update beacon status, use the separate methods on this API for
451
+ # activation, deactivation, and decommissioning.
452
+ # Authenticate using an [OAuth access token](https://developers.google.com/
453
+ # identity/protocols/OAuth2)
454
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
455
+ # Google Developers Console project.
417
456
  # @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
457
+ # Resource name of this beacon. A beacon name has the format
458
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
459
+ # the beacon and N is a code for the beacon's type. Possible values are
460
+ # `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
461
+ # This field must be left empty when registering. After reading a beacon,
462
+ # clients can use the name for future operations.
463
+ # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
425
464
  # @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.
465
+ # The project id of the beacon to update. If the project id is not
466
+ # specified then the project making the request is used. The project id
467
+ # must match the project that owns the beacon.
468
+ # Optional.
428
469
  # @param [String] fields
429
470
  # Selector specifying which fields to include in a partial response.
430
471
  # @param [String] quota_user
@@ -434,20 +475,20 @@ module Google
434
475
  # Request-specific options
435
476
  #
436
477
  # @yield [result, err] Result & error if block supplied
437
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] parsed result object
478
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
438
479
  # @yieldparam err [StandardError] error object if request failed
439
480
  #
440
- # @return [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment]
481
+ # @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
441
482
  #
442
483
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
443
484
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
444
485
  # @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
486
+ def update_beacon(beacon_name, beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
487
+ command = make_simple_command(:put, 'v1beta1/{+beaconName}', options)
488
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
489
+ command.request_object = beacon_object
490
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
491
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
451
492
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
452
493
  command.query['projectId'] = project_id unless project_id.nil?
453
494
  command.query['fields'] = fields unless fields.nil?
@@ -455,29 +496,27 @@ module Google
455
496
  execute_or_queue_command(command, &block)
456
497
  end
457
498
 
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
499
+ # Decommissions the specified beacon in the service. This beacon will no
500
+ # longer be returned from `beaconinfo.getforobserved`. This operation is
501
+ # permanent -- you will not be able to re-register a beacon with this ID
502
+ # again.
503
+ # Authenticate using an [OAuth access token](https://developers.google.com/
504
+ # identity/protocols/OAuth2)
505
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
465
506
  # Google Developers Console project.
466
507
  # @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".
508
+ # Beacon that should be decommissioned. A beacon name has the format
509
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
510
+ # the beacon and N is a code for the beacon's type. Possible values are
511
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
512
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
513
+ # current EID of the beacon's "stable" UID.
514
+ # Required.
476
515
  # @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.
516
+ # The project id of the beacon to decommission. If the project id is not
517
+ # specified then the project making the request is used. The project id
518
+ # must match the project that owns the beacon.
519
+ # Optional.
481
520
  # @param [String] fields
482
521
  # Selector specifying which fields to include in a partial response.
483
522
  # @param [String] quota_user
@@ -487,41 +526,46 @@ module Google
487
526
  # Request-specific options
488
527
  #
489
528
  # @yield [result, err] Result & error if block supplied
490
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse] parsed result object
529
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
491
530
  # @yieldparam err [StandardError] error object if request failed
492
531
  #
493
- # @return [Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse]
532
+ # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
494
533
  #
495
534
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
535
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
536
  # @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
537
+ def decommission_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
538
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}:decommission', options)
539
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
540
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
502
541
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
503
- command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
504
542
  command.query['projectId'] = project_id unless project_id.nil?
505
543
  command.query['fields'] = fields unless fields.nil?
506
544
  command.query['quotaUser'] = quota_user unless quota_user.nil?
507
545
  execute_or_queue_command(command, &block)
508
546
  end
509
547
 
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.
548
+ # Deactivates a beacon. Once deactivated, the API will not return
549
+ # information nor attachment data for the beacon when queried via
550
+ # `beaconinfo.getforobserved`. Calling this method on an already inactive
551
+ # beacon will do nothing (but will return a successful response code).
514
552
  # 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.
553
+ # identity/protocols/OAuth2)
554
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
555
+ # Google Developers Console project.
556
+ # @param [String] beacon_name
557
+ # Beacon that should be deactivated. A beacon name has the format
558
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
559
+ # the beacon and N is a code for the beacon's type. Possible values are
560
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
561
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
562
+ # current EID or the beacon's "stable" UID.
563
+ # Required.
522
564
  # @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.
565
+ # The project id of the beacon to deactivate. If the project id is not
566
+ # specified then the project making the request is used. The project id must
567
+ # match the project that owns the beacon.
568
+ # Optional.
525
569
  # @param [String] fields
526
570
  # Selector specifying which fields to include in a partial response.
527
571
  # @param [String] quota_user
@@ -539,40 +583,36 @@ module Google
539
583
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
540
584
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
541
585
  # @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)
586
+ def deactivate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
587
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}:deactivate', options)
544
588
  command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
545
589
  command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
546
- command.params['attachmentName'] = attachment_name unless attachment_name.nil?
590
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
547
591
  command.query['projectId'] = project_id unless project_id.nil?
548
592
  command.query['fields'] = fields unless fields.nil?
549
593
  command.query['quotaUser'] = quota_user unless quota_user.nil?
550
594
  execute_or_queue_command(command, &block)
551
595
  end
552
596
 
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.
597
+ # Deletes the specified beacon including all diagnostics data for the beacon
598
+ # as well as any attachments on the beacon (including those belonging to
599
+ # other projects). This operation cannot be undone.
600
+ # Authenticate using an [OAuth access token](https://developers.google.com/
601
+ # identity/protocols/OAuth2)
602
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
603
+ # Google Developers Console project.
561
604
  # @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.
605
+ # Beacon that should be deleted. A beacon name has the format
606
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
607
+ # the beacon and N is a code for the beacon's type. Possible values are
608
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
609
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
610
+ # current EID or the beacon's "stable" UID.
611
+ # Required.
571
612
  # @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.
613
+ # The project id of the beacon to delete. If not provided, the project
614
+ # that is making the request is used.
615
+ # Optional.
576
616
  # @param [String] fields
577
617
  # Selector specifying which fields to include in a partial response.
578
618
  # @param [String] quota_user
@@ -582,20 +622,19 @@ module Google
582
622
  # Request-specific options
583
623
  #
584
624
  # @yield [result, err] Result & error if block supplied
585
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] parsed result object
625
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
586
626
  # @yieldparam err [StandardError] error object if request failed
587
627
  #
588
- # @return [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse]
628
+ # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
589
629
  #
590
630
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
591
631
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
592
632
  # @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
633
+ def delete_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
634
+ command = make_simple_command(:delete, 'v1beta1/{+beaconName}', options)
635
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
636
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
597
637
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
598
- command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
599
638
  command.query['projectId'] = project_id unless project_id.nil?
600
639
  command.query['fields'] = fields unless fields.nil?
601
640
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -603,26 +642,27 @@ module Google
603
642
  end
604
643
 
605
644
  # 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.
645
+ # all the beacons owned by your Google Developers Console project by using
646
+ # the beacon name `beacons/-`.
647
+ # Authenticate using an [OAuth access token](https://developers.google.com/
648
+ # identity/protocols/OAuth2)
649
+ # from a signed-in user with **viewer**, **Is owner** or **Can edit**
650
+ # permissions in the Google Developers Console project.
611
651
  # @param [String] beacon_name
612
652
  # Beacon that the diagnostics are for.
613
653
  # @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.
654
+ # Specifies the maximum number of results to return. Defaults to
655
+ # 10. Maximum 1000. Optional.
619
656
  # @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`.
657
+ # Requests only beacons that have the given alert. For example, to find
658
+ # beacons that have low batteries use `alert_filter=LOW_BATTERY`.
622
659
  # @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.
660
+ # Requests only diagnostic records for the given project id. If not set,
661
+ # then the project making the request will be used for looking up
662
+ # diagnostic records. Optional.
663
+ # @param [String] page_token
664
+ # Requests results that occur after the `page_token`, obtained from the
665
+ # response to a previous request. Optional.
626
666
  # @param [String] fields
627
667
  # Selector specifying which fields to include in a partial response.
628
668
  # @param [String] quota_user
@@ -640,28 +680,49 @@ module Google
640
680
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
641
681
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
642
682
  # @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)
683
+ def list_beacon_diagnostics(beacon_name, page_size: nil, alert_filter: nil, project_id: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
644
684
  command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options)
645
685
  command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation
646
686
  command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse
647
687
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
648
688
  command.query['pageSize'] = page_size unless page_size.nil?
649
- command.query['pageToken'] = page_token unless page_token.nil?
650
689
  command.query['alertFilter'] = alert_filter unless alert_filter.nil?
651
690
  command.query['projectId'] = project_id unless project_id.nil?
691
+ command.query['pageToken'] = page_token unless page_token.nil?
652
692
  command.query['fields'] = fields unless fields.nil?
653
693
  command.query['quotaUser'] = quota_user unless quota_user.nil?
654
694
  execute_or_queue_command(command, &block)
655
695
  end
656
696
 
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)
697
+ # Returns the attachments for the specified beacon that match the specified
698
+ # namespaced-type pattern.
699
+ # To control which namespaced types are returned, you add the
700
+ # `namespacedType` query parameter to the request. You must either use
701
+ # `*/*`, to return all attachments, or the namespace must be one of
702
+ # the ones returned from the `namespaces` endpoint.
703
+ # Authenticate using an [OAuth access token](https://developers.google.com/
704
+ # identity/protocols/OAuth2)
661
705
  # from a signed-in user with **viewer**, **Is owner** or **Can edit**
662
706
  # permissions in the Google Developers Console project.
707
+ # @param [String] beacon_name
708
+ # Beacon whose attachments should be fetched. A beacon name has the
709
+ # format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast
710
+ # by the beacon and N is a code for the beacon's type. Possible values are
711
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
712
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
713
+ # current EID or the beacon's "stable" UID.
714
+ # Required.
715
+ # @param [String] namespaced_type
716
+ # Specifies the namespace and type of attachment to include in response in
717
+ # <var>namespace/type</var> format. Accepts `*/*` to specify
718
+ # "all types in all namespaces".
663
719
  # @param [String] project_id
664
- # The project id to list namespaces under. Optional.
720
+ # The project id to list beacon attachments under. This field can be
721
+ # used when "*" is specified to mean all attachment namespaces. Projects
722
+ # may have multiple attachments with multiple namespaces. If "*" is
723
+ # specified and the projectId string is empty, then the project
724
+ # making the request is used.
725
+ # Optional.
665
726
  # @param [String] fields
666
727
  # Selector specifying which fields to include in a partial response.
667
728
  # @param [String] quota_user
@@ -671,34 +732,55 @@ module Google
671
732
  # Request-specific options
672
733
  #
673
734
  # @yield [result, err] Result & error if block supplied
674
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
735
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse] parsed result object
675
736
  # @yieldparam err [StandardError] error object if request failed
676
737
  #
677
- # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
738
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse]
678
739
  #
679
740
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
680
741
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
681
742
  # @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
743
+ def list_beacon_attachments(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
744
+ command = make_simple_command(:get, 'v1beta1/{+beaconName}/attachments', options)
745
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse::Representation
746
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse
747
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
748
+ command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
686
749
  command.query['projectId'] = project_id unless project_id.nil?
687
750
  command.query['fields'] = fields unless fields.nil?
688
751
  command.query['quotaUser'] = quota_user unless quota_user.nil?
689
752
  execute_or_queue_command(command, &block)
690
753
  end
691
754
 
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
755
+ # Associates the given data with the specified beacon. Attachment data must
756
+ # contain two parts:
757
+ # <ul>
758
+ # <li>A namespaced type.</li>
759
+ # <li>The actual attachment data itself.</li>
760
+ # </ul>
761
+ # The namespaced type consists of two parts, the namespace and the type.
762
+ # The namespace must be one of the values returned by the `namespaces`
763
+ # endpoint, while the type can be a string of any characters except for the
764
+ # forward slash (`/`) up to 100 characters in length.
765
+ # Attachment data can be up to 1024 bytes long.
766
+ # Authenticate using an [OAuth access token](https://developers.google.com/
767
+ # identity/protocols/OAuth2)
768
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
769
+ # Google Developers Console project.
770
+ # @param [String] beacon_name
771
+ # Beacon on which the attachment should be created. A beacon name has the
772
+ # format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast
773
+ # by the beacon and N is a code for the beacon's type. Possible values are
774
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
775
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
776
+ # current EID or the beacon's "stable" UID.
777
+ # Required.
778
+ # @param [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] beacon_attachment_object
698
779
  # @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.
780
+ # The project id of the project the attachment will belong to. If
781
+ # the project id is not specified then the project making the request
782
+ # is used.
783
+ # Optional.
702
784
  # @param [String] fields
703
785
  # Selector specifying which fields to include in a partial response.
704
786
  # @param [String] quota_user
@@ -708,33 +790,57 @@ module Google
708
790
  # Request-specific options
709
791
  #
710
792
  # @yield [result, err] Result & error if block supplied
711
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
793
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] parsed result object
712
794
  # @yieldparam err [StandardError] error object if request failed
713
795
  #
714
- # @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
796
+ # @return [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment]
715
797
  #
716
798
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
717
799
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
718
800
  # @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?
801
+ def create_beacon_attachment(beacon_name, beacon_attachment_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
802
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments', options)
803
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
804
+ command.request_object = beacon_attachment_object
805
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
806
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment
807
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
726
808
  command.query['projectId'] = project_id unless project_id.nil?
727
809
  command.query['fields'] = fields unless fields.nil?
728
810
  command.query['quotaUser'] = quota_user unless quota_user.nil?
729
811
  execute_or_queue_command(command, &block)
730
812
  end
731
813
 
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.
814
+ # Deletes multiple attachments on a given beacon. This operation is
815
+ # permanent and cannot be undone.
816
+ # You can optionally specify `namespacedType` to choose which attachments
817
+ # should be deleted. If you do not specify `namespacedType`, all your
818
+ # attachments on the given beacon will be deleted. You also may explicitly
819
+ # specify `*/*` to delete all.
820
+ # Authenticate using an [OAuth access token](https://developers.google.com/
821
+ # identity/protocols/OAuth2)
822
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
823
+ # Google Developers Console project.
824
+ # @param [String] beacon_name
825
+ # The beacon whose attachments should be deleted. A beacon name has the
826
+ # format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast
827
+ # by the beacon and N is a code for the beacon's type. Possible values are
828
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
829
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
830
+ # current EID or the beacon's "stable" UID.
831
+ # Required.
832
+ # @param [String] namespaced_type
833
+ # Specifies the namespace and type of attachments to delete in
834
+ # `namespace/type` format. Accepts `*/*` to specify
835
+ # "all types in all namespaces".
836
+ # Optional.
837
+ # @param [String] project_id
838
+ # The project id to delete beacon attachments under. This field can be
839
+ # used when "*" is specified to mean all attachment namespaces. Projects
840
+ # may have multiple attachments with multiple namespaces. If "*" is
841
+ # specified and the projectId string is empty, then the project
842
+ # making the request is used.
843
+ # Optional.
738
844
  # @param [String] fields
739
845
  # Selector specifying which fields to include in a partial response.
740
846
  # @param [String] quota_user
@@ -744,28 +850,46 @@ module Google
744
850
  # Request-specific options
745
851
  #
746
852
  # @yield [result, err] Result & error if block supplied
747
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams] parsed result object
853
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse] parsed result object
748
854
  # @yieldparam err [StandardError] error object if request failed
749
855
  #
750
- # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams]
856
+ # @return [Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse]
751
857
  #
752
858
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
753
859
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
754
860
  # @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
861
+ def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
862
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options)
863
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation
864
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse
865
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
866
+ command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
867
+ command.query['projectId'] = project_id unless project_id.nil?
759
868
  command.query['fields'] = fields unless fields.nil?
760
869
  command.query['quotaUser'] = quota_user unless quota_user.nil?
761
870
  execute_or_queue_command(command, &block)
762
871
  end
763
872
 
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
873
+ # Deletes the specified attachment for the given beacon. Each attachment has
874
+ # a unique attachment name (`attachmentName`) which is returned when you
875
+ # fetch the attachment data via this API. You specify this with the delete
876
+ # request to control which attachment is removed. This operation cannot be
877
+ # undone.
878
+ # Authenticate using an [OAuth access token](https://developers.google.com/
879
+ # identity/protocols/OAuth2)
880
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
881
+ # Google Developers Console project.
882
+ # @param [String] attachment_name
883
+ # The attachment name (`attachmentName`) of
884
+ # the attachment to remove. For example:
885
+ # `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. For
886
+ # Eddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the
887
+ # beacon's current EID, or its "stable" Eddystone-UID.
888
+ # Required.
889
+ # @param [String] project_id
890
+ # The project id of the attachment to delete. If not provided, the project
891
+ # that is making the request is used.
892
+ # Optional.
769
893
  # @param [String] fields
770
894
  # Selector specifying which fields to include in a partial response.
771
895
  # @param [String] quota_user
@@ -775,20 +899,20 @@ module Google
775
899
  # Request-specific options
776
900
  #
777
901
  # @yield [result, err] Result & error if block supplied
778
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object
902
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
779
903
  # @yieldparam err [StandardError] error object if request failed
780
904
  #
781
- # @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse]
905
+ # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
782
906
  #
783
907
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
784
908
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
785
909
  # @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
910
+ def delete_beacon_attachment(attachment_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
911
+ command = make_simple_command(:delete, 'v1beta1/{+attachmentName}', options)
912
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
913
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
914
+ command.params['attachmentName'] = attachment_name unless attachment_name.nil?
915
+ command.query['projectId'] = project_id unless project_id.nil?
792
916
  command.query['fields'] = fields unless fields.nil?
793
917
  command.query['quotaUser'] = quota_user unless quota_user.nil?
794
918
  execute_or_queue_command(command, &block)