google-api-client 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/beacons/proximity/
26
26
  module ProximitybeaconV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20170711'
28
+ REVISION = '20170815'
29
29
 
30
30
  # View and modify your beacons
31
31
  AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'
@@ -22,14 +22,26 @@ module Google
22
22
  module Apis
23
23
  module ProximitybeaconV1beta1
24
24
 
25
- # Response to ListNamespacesRequest that contains all the project's namespaces.
26
- class ListNamespacesResponse
25
+ # Defines a unique identifier of a beacon as broadcast by the device.
26
+ class AdvertisedId
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # The attachments that corresponded to the request params.
30
- # Corresponds to the JSON property `namespaces`
31
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Namespace>]
32
- attr_accessor :namespaces
29
+ # The actual beacon identifier, as broadcast by the beacon hardware. Must be
30
+ # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
31
+ # requests, and will be so encoded (with padding) in responses. The base64
32
+ # encoding should be of the binary byte-stream and not any textual (such as
33
+ # hex) representation thereof.
34
+ # Required.
35
+ # Corresponds to the JSON property `id`
36
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
37
+ # @return [String]
38
+ attr_accessor :id
39
+
40
+ # Specifies the identifier type.
41
+ # Required.
42
+ # Corresponds to the JSON property `type`
43
+ # @return [String]
44
+ attr_accessor :type
33
45
 
34
46
  def initialize(**args)
35
47
  update!(**args)
@@ -37,35 +49,29 @@ module Google
37
49
 
38
50
  # Update properties of this object
39
51
  def update!(**args)
40
- @namespaces = args[:namespaces] if args.key?(:namespaces)
52
+ @id = args[:id] if args.key?(:id)
53
+ @type = args[:type] if args.key?(:type)
41
54
  end
42
55
  end
43
56
 
44
- # Diagnostics for a single beacon.
45
- class Diagnostics
57
+ # A subset of attachment information served via the
58
+ # `beaconinfo.getforobserved` method, used when your users encounter your
59
+ # beacons.
60
+ class AttachmentInfo
46
61
  include Google::Apis::Core::Hashable
47
62
 
48
- # Represents a whole calendar date, e.g. date of birth. The time of day and
49
- # time zone are either specified elsewhere or are not significant. The date
50
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
51
- # represent a year and month where the day is not significant, e.g. credit card
52
- # expiration date. The year may be 0 to represent a month and day independent
53
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
54
- # and `google.protobuf.Timestamp`.
55
- # Corresponds to the JSON property `estimatedLowBatteryDate`
56
- # @return [Google::Apis::ProximitybeaconV1beta1::Date]
57
- attr_accessor :estimated_low_battery_date
58
-
59
- # Resource name of the beacon. For Eddystone-EID beacons, this may
60
- # be the beacon's current EID, or the beacon's "stable" Eddystone-UID.
61
- # Corresponds to the JSON property `beaconName`
63
+ # An opaque data container for client-provided data.
64
+ # Corresponds to the JSON property `data`
65
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
62
66
  # @return [String]
63
- attr_accessor :beacon_name
67
+ attr_accessor :data
64
68
 
65
- # An unordered list of Alerts that the beacon has.
66
- # Corresponds to the JSON property `alerts`
67
- # @return [Array<String>]
68
- attr_accessor :alerts
69
+ # Specifies what kind of attachment this is. Tells a client how to
70
+ # interpret the `data` field. Format is <var>namespace/type</var>, for
71
+ # example <code>scrupulous-wombat-12345/welcome-message</code>
72
+ # Corresponds to the JSON property `namespacedType`
73
+ # @return [String]
74
+ attr_accessor :namespaced_type
69
75
 
70
76
  def initialize(**args)
71
77
  update!(**args)
@@ -73,86 +79,146 @@ module Google
73
79
 
74
80
  # Update properties of this object
75
81
  def update!(**args)
76
- @estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date)
77
- @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
78
- @alerts = args[:alerts] if args.key?(:alerts)
82
+ @data = args[:data] if args.key?(:data)
83
+ @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
79
84
  end
80
85
  end
81
86
 
82
- # Response that contains list beacon results and pagination help.
83
- class ListBeaconsResponse
87
+ # Details of a beacon device.
88
+ class Beacon
84
89
  include Google::Apis::Core::Hashable
85
90
 
86
- # An opaque pagination token that the client may provide in their next
87
- # request to retrieve the next page of results.
88
- # Corresponds to the JSON property `nextPageToken`
89
- # @return [String]
90
- attr_accessor :next_page_token
91
+ # Defines a unique identifier of a beacon as broadcast by the device.
92
+ # Corresponds to the JSON property `advertisedId`
93
+ # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
94
+ attr_accessor :advertised_id
91
95
 
92
- # Estimate of the total number of beacons matched by the query. Higher
93
- # values may be less accurate.
94
- # Corresponds to the JSON property `totalCount`
95
- # @return [Fixnum]
96
- attr_accessor :total_count
96
+ # Resource name of this beacon. A beacon name has the format
97
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
98
+ # the beacon and N is a code for the beacon's type. Possible values are
99
+ # `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
100
+ # This field must be left empty when registering. After reading a beacon,
101
+ # clients can use the name for future operations.
102
+ # Corresponds to the JSON property `beaconName`
103
+ # @return [String]
104
+ attr_accessor :beacon_name
97
105
 
98
- # The beacons that matched the search criteria.
99
- # Corresponds to the JSON property `beacons`
100
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Beacon>]
101
- attr_accessor :beacons
106
+ # Free text used to identify and describe the beacon. Maximum length 140
107
+ # characters.
108
+ # Optional.
109
+ # Corresponds to the JSON property `description`
110
+ # @return [String]
111
+ attr_accessor :description
102
112
 
103
- def initialize(**args)
104
- update!(**args)
105
- end
113
+ # Write-only registration parameters for beacons using Eddystone-EID format.
114
+ # Two ways of securely registering an Eddystone-EID beacon with the service
115
+ # are supported:
116
+ # 1. Perform an ECDH key exchange via this API, including a previous call
117
+ # to `GET /v1beta1/eidparams`. In this case the fields
118
+ # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
119
+ # populated and `beacon_identity_key` should not be populated. This
120
+ # method ensures that only the two parties in the ECDH key exchange can
121
+ # compute the identity key, which becomes a secret between them.
122
+ # 2. Derive or obtain the beacon's identity key via other secure means
123
+ # (perhaps an ECDH key exchange between the beacon and a mobile device
124
+ # or any other secure method), and then submit the resulting identity key
125
+ # to the service. In this case `beacon_identity_key` field should be
126
+ # populated, and neither of `beacon_ecdh_public_key` nor
127
+ # `service_ecdh_public_key` fields should be. The security of this method
128
+ # depends on how securely the parties involved (in particular the
129
+ # bluetooth client) handle the identity key, and obviously on how
130
+ # securely the identity key was generated.
131
+ # See [the Eddystone specification](https://github.com/google/eddystone/tree/
132
+ # master/eddystone-eid) at GitHub.
133
+ # Corresponds to the JSON property `ephemeralIdRegistration`
134
+ # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
135
+ attr_accessor :ephemeral_id_registration
106
136
 
107
- # Update properties of this object
108
- def update!(**args)
109
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
110
- @total_count = args[:total_count] if args.key?(:total_count)
111
- @beacons = args[:beacons] if args.key?(:beacons)
112
- end
113
- end
137
+ # Expected location stability. This is set when the beacon is registered or
138
+ # updated, not automatically detected in any way.
139
+ # Optional.
140
+ # Corresponds to the JSON property `expectedStability`
141
+ # @return [String]
142
+ attr_accessor :expected_stability
114
143
 
115
- # Request for beacon and attachment information about beacons that
116
- # a mobile client has encountered "in the wild".
117
- class GetInfoForObservedBeaconsRequest
118
- include Google::Apis::Core::Hashable
144
+ # Indoor level, a human-readable string as returned by Google Maps APIs,
145
+ # useful to indicate which floor of a building a beacon is located on.
146
+ # Corresponds to the JSON property `indoorLevel`
147
+ # @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel]
148
+ attr_accessor :indoor_level
119
149
 
120
- # The beacons that the client has encountered.
121
- # At least one must be given.
122
- # Corresponds to the JSON property `observations`
123
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Observation>]
124
- attr_accessor :observations
150
+ # An object representing a latitude/longitude pair. This is expressed as a pair
151
+ # of doubles representing degrees latitude and degrees longitude. Unless
152
+ # specified otherwise, this must conform to the
153
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
154
+ # standard</a>. Values must be within normalized ranges.
155
+ # Example of normalization code in Python:
156
+ # def NormalizeLongitude(longitude):
157
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
158
+ # q, r = divmod(longitude, 360.0)
159
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
160
+ # return r - 360.0
161
+ # return r
162
+ # def NormalizeLatLng(latitude, longitude):
163
+ # """Wraps decimal degrees latitude and longitude to
164
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
165
+ # r = latitude % 360.0
166
+ # if r <= 90.0:
167
+ # return r, NormalizeLongitude(longitude)
168
+ # elif r >= 270.0:
169
+ # return r - 360, NormalizeLongitude(longitude)
170
+ # else:
171
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
172
+ # assert 180.0 == NormalizeLongitude(180.0)
173
+ # assert -180.0 == NormalizeLongitude(-180.0)
174
+ # assert -179.0 == NormalizeLongitude(181.0)
175
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
176
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
177
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
178
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
179
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
180
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
181
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
182
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
183
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
184
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
185
+ # Corresponds to the JSON property `latLng`
186
+ # @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
187
+ attr_accessor :lat_lng
125
188
 
126
- # Specifies what kind of attachments to include in the response.
127
- # When given, the response will include only attachments of the given types.
128
- # When empty, no attachments will be returned. Must be in the format
129
- # <var>namespace/type</var>. Accepts `*` to specify all types in
130
- # all namespaces owned by the client.
189
+ # The [Google Places API](/places/place-id) Place ID of the place where
190
+ # the beacon is deployed. This is given when the beacon is registered or
191
+ # updated, not automatically detected in any way.
131
192
  # Optional.
132
- # Corresponds to the JSON property `namespacedTypes`
133
- # @return [Array<String>]
134
- attr_accessor :namespaced_types
193
+ # Corresponds to the JSON property `placeId`
194
+ # @return [String]
195
+ attr_accessor :place_id
135
196
 
136
- def initialize(**args)
137
- update!(**args)
138
- end
197
+ # Properties of the beacon device, for example battery type or firmware
198
+ # version.
199
+ # Optional.
200
+ # Corresponds to the JSON property `properties`
201
+ # @return [Hash<String,String>]
202
+ attr_accessor :properties
139
203
 
140
- # Update properties of this object
141
- def update!(**args)
142
- @observations = args[:observations] if args.key?(:observations)
143
- @namespaced_types = args[:namespaced_types] if args.key?(:namespaced_types)
144
- end
145
- end
204
+ # Some beacons may require a user to provide an authorization key before
205
+ # changing any of its configuration (e.g. broadcast frames, transmit power).
206
+ # This field provides a place to store and control access to that key.
207
+ # This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
208
+ # from users with write access to the given beacon. That is to say: If the
209
+ # user is authorized to write the beacon's confidential data in the service,
210
+ # the service considers them authorized to configure the beacon. Note
211
+ # that this key grants nothing on the service, only on the beacon itself.
212
+ # Corresponds to the JSON property `provisioningKey`
213
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
214
+ # @return [String]
215
+ attr_accessor :provisioning_key
146
216
 
147
- # A generic empty message that you can re-use to avoid defining duplicated
148
- # empty messages in your APIs. A typical example is to use it as the request
149
- # or the response type of an API method. For instance:
150
- # service Foo `
151
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
152
- # `
153
- # The JSON representation for `Empty` is empty JSON object ````.
154
- class Empty
155
- include Google::Apis::Core::Hashable
217
+ # Current status of the beacon.
218
+ # Required.
219
+ # Corresponds to the JSON property `status`
220
+ # @return [String]
221
+ attr_accessor :status
156
222
 
157
223
  def initialize(**args)
158
224
  update!(**args)
@@ -160,6 +226,17 @@ module Google
160
226
 
161
227
  # Update properties of this object
162
228
  def update!(**args)
229
+ @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
230
+ @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
231
+ @description = args[:description] if args.key?(:description)
232
+ @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
233
+ @expected_stability = args[:expected_stability] if args.key?(:expected_stability)
234
+ @indoor_level = args[:indoor_level] if args.key?(:indoor_level)
235
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
236
+ @place_id = args[:place_id] if args.key?(:place_id)
237
+ @properties = args[:properties] if args.key?(:properties)
238
+ @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
239
+ @status = args[:status] if args.key?(:status)
163
240
  end
164
241
  end
165
242
 
@@ -167,18 +244,27 @@ module Google
167
244
  class BeaconAttachment
168
245
  include Google::Apis::Core::Hashable
169
246
 
247
+ # Resource name of this attachment. Attachment names have the format:
248
+ # <code>beacons/<var>beacon_id</var>/attachments/<var>attachment_id</var></code>.
249
+ # Leave this empty on creation.
250
+ # Corresponds to the JSON property `attachmentName`
251
+ # @return [String]
252
+ attr_accessor :attachment_name
253
+
170
254
  # The UTC time when this attachment was created, in milliseconds since the
171
255
  # UNIX epoch.
172
256
  # Corresponds to the JSON property `creationTimeMs`
173
257
  # @return [String]
174
258
  attr_accessor :creation_time_ms
175
259
 
176
- # Resource name of this attachment. Attachment names have the format:
177
- # <code>beacons/<var>beacon_id</var>/attachments/<var>attachment_id</var></code>.
178
- # Leave this empty on creation.
179
- # Corresponds to the JSON property `attachmentName`
260
+ # An opaque data container for client-provided data. Must be
261
+ # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
262
+ # requests, and will be so encoded (with padding) in responses.
263
+ # Required.
264
+ # Corresponds to the JSON property `data`
265
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
180
266
  # @return [String]
181
- attr_accessor :attachment_name
267
+ attr_accessor :data
182
268
 
183
269
  # Specifies what kind of attachment this is. Tells a client how to
184
270
  # interpret the `data` field. Format is <var>namespace/type</var>. Namespace
@@ -189,14 +275,39 @@ module Google
189
275
  # @return [String]
190
276
  attr_accessor :namespaced_type
191
277
 
192
- # An opaque data container for client-provided data. Must be
193
- # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
194
- # requests, and will be so encoded (with padding) in responses.
195
- # Required.
196
- # Corresponds to the JSON property `data`
197
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
278
+ def initialize(**args)
279
+ update!(**args)
280
+ end
281
+
282
+ # Update properties of this object
283
+ def update!(**args)
284
+ @attachment_name = args[:attachment_name] if args.key?(:attachment_name)
285
+ @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms)
286
+ @data = args[:data] if args.key?(:data)
287
+ @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
288
+ end
289
+ end
290
+
291
+ # A subset of beacon information served via the `beaconinfo.getforobserved`
292
+ # method, which you call when users of your app encounter your beacons.
293
+ class BeaconInfo
294
+ include Google::Apis::Core::Hashable
295
+
296
+ # Defines a unique identifier of a beacon as broadcast by the device.
297
+ # Corresponds to the JSON property `advertisedId`
298
+ # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
299
+ attr_accessor :advertised_id
300
+
301
+ # Attachments matching the type(s) requested.
302
+ # May be empty if no attachment types were requested.
303
+ # Corresponds to the JSON property `attachments`
304
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
305
+ attr_accessor :attachments
306
+
307
+ # The name under which the beacon is registered.
308
+ # Corresponds to the JSON property `beaconName`
198
309
  # @return [String]
199
- attr_accessor :data
310
+ attr_accessor :beacon_name
200
311
 
201
312
  def initialize(**args)
202
313
  update!(**args)
@@ -204,89 +315,38 @@ module Google
204
315
 
205
316
  # Update properties of this object
206
317
  def update!(**args)
207
- @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms)
208
- @attachment_name = args[:attachment_name] if args.key?(:attachment_name)
209
- @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
210
- @data = args[:data] if args.key?(:data)
318
+ @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
319
+ @attachments = args[:attachments] if args.key?(:attachments)
320
+ @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
211
321
  end
212
322
  end
213
323
 
214
- # Write-only registration parameters for beacons using Eddystone-EID format.
215
- # Two ways of securely registering an Eddystone-EID beacon with the service
216
- # are supported:
217
- # 1. Perform an ECDH key exchange via this API, including a previous call
218
- # to `GET /v1beta1/eidparams`. In this case the fields
219
- # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
220
- # populated and `beacon_identity_key` should not be populated. This
221
- # method ensures that only the two parties in the ECDH key exchange can
222
- # compute the identity key, which becomes a secret between them.
223
- # 2. Derive or obtain the beacon's identity key via other secure means
224
- # (perhaps an ECDH key exchange between the beacon and a mobile device
225
- # or any other secure method), and then submit the resulting identity key
226
- # to the service. In this case `beacon_identity_key` field should be
227
- # populated, and neither of `beacon_ecdh_public_key` nor
228
- # `service_ecdh_public_key` fields should be. The security of this method
229
- # depends on how securely the parties involved (in particular the
230
- # bluetooth client) handle the identity key, and obviously on how
231
- # securely the identity key was generated.
232
- # See [the Eddystone specification](https://github.com/google/eddystone/tree/
233
- # master/eddystone-eid) at GitHub.
234
- class EphemeralIdRegistration
324
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
325
+ # time zone are either specified elsewhere or are not significant. The date
326
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
327
+ # represent a year and month where the day is not significant, e.g. credit card
328
+ # expiration date. The year may be 0 to represent a month and day independent
329
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
330
+ # and `google.protobuf.Timestamp`.
331
+ class Date
235
332
  include Google::Apis::Core::Hashable
236
333
 
237
- # The initial clock value of the beacon. The beacon's clock must have
238
- # begun counting at this value immediately prior to transmitting this
239
- # value to the resolving service. Significant delay in transmitting this
240
- # value to the service risks registration or resolution failures. If a
241
- # value is not provided, the default is zero.
242
- # Corresponds to the JSON property `initialClockValue`
334
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
335
+ # if specifying a year/month where the day is not significant.
336
+ # Corresponds to the JSON property `day`
243
337
  # @return [Fixnum]
244
- attr_accessor :initial_clock_value
245
-
246
- # The beacon's public key used for the Elliptic curve Diffie-Hellman
247
- # key exchange. When this field is populated, `service_ecdh_public_key`
248
- # must also be populated, and `beacon_identity_key` must not be.
249
- # Corresponds to the JSON property `beaconEcdhPublicKey`
250
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
251
- # @return [String]
252
- attr_accessor :beacon_ecdh_public_key
338
+ attr_accessor :day
253
339
 
254
- # Indicates the nominal period between each rotation of the beacon's
255
- # ephemeral ID. "Nominal" because the beacon should randomize the
256
- # actual interval. See [the spec at github](https://github.com/google/eddystone/
257
- # tree/master/eddystone-eid)
258
- # for details. This value corresponds to a power-of-two scaler on the
259
- # beacon's clock: when the scaler value is K, the beacon will begin
260
- # broadcasting a new ephemeral ID on average every 2^K seconds.
261
- # Corresponds to the JSON property `rotationPeriodExponent`
340
+ # Month of year. Must be from 1 to 12.
341
+ # Corresponds to the JSON property `month`
262
342
  # @return [Fixnum]
263
- attr_accessor :rotation_period_exponent
264
-
265
- # The service's public key used for the Elliptic curve Diffie-Hellman
266
- # key exchange. When this field is populated, `beacon_ecdh_public_key`
267
- # must also be populated, and `beacon_identity_key` must not be.
268
- # Corresponds to the JSON property `serviceEcdhPublicKey`
269
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
270
- # @return [String]
271
- attr_accessor :service_ecdh_public_key
272
-
273
- # The private key of the beacon. If this field is populated,
274
- # `beacon_ecdh_public_key` and `service_ecdh_public_key` must not be
275
- # populated.
276
- # Corresponds to the JSON property `beaconIdentityKey`
277
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
278
- # @return [String]
279
- attr_accessor :beacon_identity_key
343
+ attr_accessor :month
280
344
 
281
- # An initial ephemeral ID calculated using the clock value submitted as
282
- # `initial_clock_value`, and the secret key generated by the
283
- # Diffie-Hellman key exchange using `service_ecdh_public_key` and
284
- # `service_ecdh_public_key`. This initial EID value will be used by the
285
- # service to confirm that the key exchange process was successful.
286
- # Corresponds to the JSON property `initialEid`
287
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
288
- # @return [String]
289
- attr_accessor :initial_eid
345
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
346
+ # a year.
347
+ # Corresponds to the JSON property `year`
348
+ # @return [Fixnum]
349
+ attr_accessor :year
290
350
 
291
351
  def initialize(**args)
292
352
  update!(**args)
@@ -294,62 +354,20 @@ module Google
294
354
 
295
355
  # Update properties of this object
296
356
  def update!(**args)
297
- @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
298
- @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
299
- @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
300
- @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
301
- @beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
302
- @initial_eid = args[:initial_eid] if args.key?(:initial_eid)
357
+ @day = args[:day] if args.key?(:day)
358
+ @month = args[:month] if args.key?(:month)
359
+ @year = args[:year] if args.key?(:year)
303
360
  end
304
361
  end
305
362
 
306
- # An object representing a latitude/longitude pair. This is expressed as a pair
307
- # of doubles representing degrees latitude and degrees longitude. Unless
308
- # specified otherwise, this must conform to the
309
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
310
- # standard</a>. Values must be within normalized ranges.
311
- # Example of normalization code in Python:
312
- # def NormalizeLongitude(longitude):
313
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
314
- # q, r = divmod(longitude, 360.0)
315
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
316
- # return r - 360.0
317
- # return r
318
- # def NormalizeLatLng(latitude, longitude):
319
- # """Wraps decimal degrees latitude and longitude to
320
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
321
- # r = latitude % 360.0
322
- # if r <= 90.0:
323
- # return r, NormalizeLongitude(longitude)
324
- # elif r >= 270.0:
325
- # return r - 360, NormalizeLongitude(longitude)
326
- # else:
327
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
328
- # assert 180.0 == NormalizeLongitude(180.0)
329
- # assert -180.0 == NormalizeLongitude(-180.0)
330
- # assert -179.0 == NormalizeLongitude(181.0)
331
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
332
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
333
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
334
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
335
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
336
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
337
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
338
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
339
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
340
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
341
- class LatLng
363
+ # Response for a request to delete attachments.
364
+ class DeleteAttachmentsResponse
342
365
  include Google::Apis::Core::Hashable
343
366
 
344
- # The longitude in degrees. It must be in the range [-180.0, +180.0].
345
- # Corresponds to the JSON property `longitude`
346
- # @return [Float]
347
- attr_accessor :longitude
348
-
349
- # The latitude in degrees. It must be in the range [-90.0, +90.0].
350
- # Corresponds to the JSON property `latitude`
351
- # @return [Float]
352
- attr_accessor :latitude
367
+ # The number of attachments that were deleted.
368
+ # Corresponds to the JSON property `numDeleted`
369
+ # @return [Fixnum]
370
+ attr_accessor :num_deleted
353
371
 
354
372
  def initialize(**args)
355
373
  update!(**args)
@@ -357,19 +375,35 @@ module Google
357
375
 
358
376
  # Update properties of this object
359
377
  def update!(**args)
360
- @longitude = args[:longitude] if args.key?(:longitude)
361
- @latitude = args[:latitude] if args.key?(:latitude)
378
+ @num_deleted = args[:num_deleted] if args.key?(:num_deleted)
362
379
  end
363
380
  end
364
381
 
365
- # Response to `ListBeaconAttachments` that contains the requested attachments.
366
- class ListBeaconAttachmentsResponse
382
+ # Diagnostics for a single beacon.
383
+ class Diagnostics
367
384
  include Google::Apis::Core::Hashable
368
385
 
369
- # The attachments that corresponded to the request params.
370
- # Corresponds to the JSON property `attachments`
371
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconAttachment>]
372
- attr_accessor :attachments
386
+ # An unordered list of Alerts that the beacon has.
387
+ # Corresponds to the JSON property `alerts`
388
+ # @return [Array<String>]
389
+ attr_accessor :alerts
390
+
391
+ # Resource name of the beacon. For Eddystone-EID beacons, this may
392
+ # be the beacon's current EID, or the beacon's "stable" Eddystone-UID.
393
+ # Corresponds to the JSON property `beaconName`
394
+ # @return [String]
395
+ attr_accessor :beacon_name
396
+
397
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
398
+ # time zone are either specified elsewhere or are not significant. The date
399
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
400
+ # represent a year and month where the day is not significant, e.g. credit card
401
+ # expiration date. The year may be 0 to represent a month and day independent
402
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
403
+ # and `google.protobuf.Timestamp`.
404
+ # Corresponds to the JSON property `estimatedLowBatteryDate`
405
+ # @return [Google::Apis::ProximitybeaconV1beta1::Date]
406
+ attr_accessor :estimated_low_battery_date
373
407
 
374
408
  def initialize(**args)
375
409
  update!(**args)
@@ -377,89 +411,107 @@ module Google
377
411
 
378
412
  # Update properties of this object
379
413
  def update!(**args)
380
- @attachments = args[:attachments] if args.key?(:attachments)
414
+ @alerts = args[:alerts] if args.key?(:alerts)
415
+ @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
416
+ @estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date)
381
417
  end
382
418
  end
383
419
 
384
- # An attachment namespace defines read and write access for all the attachments
385
- # created under it. Each namespace is globally unique, and owned by one
386
- # project which is the only project that can create attachments under it.
387
- class Namespace
420
+ # A generic empty message that you can re-use to avoid defining duplicated
421
+ # empty messages in your APIs. A typical example is to use it as the request
422
+ # or the response type of an API method. For instance:
423
+ # service Foo `
424
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
425
+ # `
426
+ # The JSON representation for `Empty` is empty JSON object ````.
427
+ class Empty
388
428
  include Google::Apis::Core::Hashable
389
429
 
390
- # Resource name of this namespace. Namespaces names have the format:
391
- # <code>namespaces/<var>namespace</var></code>.
392
- # Corresponds to the JSON property `namespaceName`
393
- # @return [String]
394
- attr_accessor :namespace_name
395
-
396
- # Specifies what clients may receive attachments under this namespace
397
- # via `beaconinfo.getforobserved`.
398
- # Corresponds to the JSON property `servingVisibility`
399
- # @return [String]
400
- attr_accessor :serving_visibility
401
-
402
430
  def initialize(**args)
403
431
  update!(**args)
404
432
  end
405
433
 
406
434
  # Update properties of this object
407
435
  def update!(**args)
408
- @namespace_name = args[:namespace_name] if args.key?(:namespace_name)
409
- @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
410
436
  end
411
437
  end
412
438
 
413
- # A subset of attachment information served via the
414
- # `beaconinfo.getforobserved` method, used when your users encounter your
415
- # beacons.
416
- class AttachmentInfo
439
+ # Write-only registration parameters for beacons using Eddystone-EID format.
440
+ # Two ways of securely registering an Eddystone-EID beacon with the service
441
+ # are supported:
442
+ # 1. Perform an ECDH key exchange via this API, including a previous call
443
+ # to `GET /v1beta1/eidparams`. In this case the fields
444
+ # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
445
+ # populated and `beacon_identity_key` should not be populated. This
446
+ # method ensures that only the two parties in the ECDH key exchange can
447
+ # compute the identity key, which becomes a secret between them.
448
+ # 2. Derive or obtain the beacon's identity key via other secure means
449
+ # (perhaps an ECDH key exchange between the beacon and a mobile device
450
+ # or any other secure method), and then submit the resulting identity key
451
+ # to the service. In this case `beacon_identity_key` field should be
452
+ # populated, and neither of `beacon_ecdh_public_key` nor
453
+ # `service_ecdh_public_key` fields should be. The security of this method
454
+ # depends on how securely the parties involved (in particular the
455
+ # bluetooth client) handle the identity key, and obviously on how
456
+ # securely the identity key was generated.
457
+ # See [the Eddystone specification](https://github.com/google/eddystone/tree/
458
+ # master/eddystone-eid) at GitHub.
459
+ class EphemeralIdRegistration
417
460
  include Google::Apis::Core::Hashable
418
-
419
- # An opaque data container for client-provided data.
420
- # Corresponds to the JSON property `data`
461
+
462
+ # The beacon's public key used for the Elliptic curve Diffie-Hellman
463
+ # key exchange. When this field is populated, `service_ecdh_public_key`
464
+ # must also be populated, and `beacon_identity_key` must not be.
465
+ # Corresponds to the JSON property `beaconEcdhPublicKey`
421
466
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
422
467
  # @return [String]
423
- attr_accessor :data
468
+ attr_accessor :beacon_ecdh_public_key
424
469
 
425
- # Specifies what kind of attachment this is. Tells a client how to
426
- # interpret the `data` field. Format is <var>namespace/type</var>, for
427
- # example <code>scrupulous-wombat-12345/welcome-message</code>
428
- # Corresponds to the JSON property `namespacedType`
470
+ # The private key of the beacon. If this field is populated,
471
+ # `beacon_ecdh_public_key` and `service_ecdh_public_key` must not be
472
+ # populated.
473
+ # Corresponds to the JSON property `beaconIdentityKey`
474
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
429
475
  # @return [String]
430
- attr_accessor :namespaced_type
431
-
432
- def initialize(**args)
433
- update!(**args)
434
- end
435
-
436
- # Update properties of this object
437
- def update!(**args)
438
- @data = args[:data] if args.key?(:data)
439
- @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
440
- end
441
- end
476
+ attr_accessor :beacon_identity_key
442
477
 
443
- # A subset of beacon information served via the `beaconinfo.getforobserved`
444
- # method, which you call when users of your app encounter your beacons.
445
- class BeaconInfo
446
- include Google::Apis::Core::Hashable
478
+ # The initial clock value of the beacon. The beacon's clock must have
479
+ # begun counting at this value immediately prior to transmitting this
480
+ # value to the resolving service. Significant delay in transmitting this
481
+ # value to the service risks registration or resolution failures. If a
482
+ # value is not provided, the default is zero.
483
+ # Corresponds to the JSON property `initialClockValue`
484
+ # @return [Fixnum]
485
+ attr_accessor :initial_clock_value
447
486
 
448
- # The name under which the beacon is registered.
449
- # Corresponds to the JSON property `beaconName`
487
+ # An initial ephemeral ID calculated using the clock value submitted as
488
+ # `initial_clock_value`, and the secret key generated by the
489
+ # Diffie-Hellman key exchange using `service_ecdh_public_key` and
490
+ # `service_ecdh_public_key`. This initial EID value will be used by the
491
+ # service to confirm that the key exchange process was successful.
492
+ # Corresponds to the JSON property `initialEid`
493
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
450
494
  # @return [String]
451
- attr_accessor :beacon_name
495
+ attr_accessor :initial_eid
452
496
 
453
- # Attachments matching the type(s) requested.
454
- # May be empty if no attachment types were requested.
455
- # Corresponds to the JSON property `attachments`
456
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
457
- attr_accessor :attachments
497
+ # Indicates the nominal period between each rotation of the beacon's
498
+ # ephemeral ID. "Nominal" because the beacon should randomize the
499
+ # actual interval. See [the spec at github](https://github.com/google/eddystone/
500
+ # tree/master/eddystone-eid)
501
+ # for details. This value corresponds to a power-of-two scaler on the
502
+ # beacon's clock: when the scaler value is K, the beacon will begin
503
+ # broadcasting a new ephemeral ID on average every 2^K seconds.
504
+ # Corresponds to the JSON property `rotationPeriodExponent`
505
+ # @return [Fixnum]
506
+ attr_accessor :rotation_period_exponent
458
507
 
459
- # Defines a unique identifier of a beacon as broadcast by the device.
460
- # Corresponds to the JSON property `advertisedId`
461
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
462
- attr_accessor :advertised_id
508
+ # The service's public key used for the Elliptic curve Diffie-Hellman
509
+ # key exchange. When this field is populated, `beacon_ecdh_public_key`
510
+ # must also be populated, and `beacon_identity_key` must not be.
511
+ # Corresponds to the JSON property `serviceEcdhPublicKey`
512
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
513
+ # @return [String]
514
+ attr_accessor :service_ecdh_public_key
463
515
 
464
516
  def initialize(**args)
465
517
  update!(**args)
@@ -467,9 +519,12 @@ module Google
467
519
 
468
520
  # Update properties of this object
469
521
  def update!(**args)
470
- @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
471
- @attachments = args[:attachments] if args.key?(:attachments)
472
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
522
+ @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
523
+ @beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
524
+ @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
525
+ @initial_eid = args[:initial_eid] if args.key?(:initial_eid)
526
+ @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
527
+ @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
473
528
  end
474
529
  end
475
530
 
@@ -512,14 +567,26 @@ module Google
512
567
  end
513
568
  end
514
569
 
515
- # Response for a request to delete attachments.
516
- class DeleteAttachmentsResponse
570
+ # Request for beacon and attachment information about beacons that
571
+ # a mobile client has encountered "in the wild".
572
+ class GetInfoForObservedBeaconsRequest
517
573
  include Google::Apis::Core::Hashable
518
574
 
519
- # The number of attachments that were deleted.
520
- # Corresponds to the JSON property `numDeleted`
521
- # @return [Fixnum]
522
- attr_accessor :num_deleted
575
+ # Specifies what kind of attachments to include in the response.
576
+ # When given, the response will include only attachments of the given types.
577
+ # When empty, no attachments will be returned. Must be in the format
578
+ # <var>namespace/type</var>. Accepts `*` to specify all types in
579
+ # all namespaces owned by the client.
580
+ # Optional.
581
+ # Corresponds to the JSON property `namespacedTypes`
582
+ # @return [Array<String>]
583
+ attr_accessor :namespaced_types
584
+
585
+ # The beacons that the client has encountered.
586
+ # At least one must be given.
587
+ # Corresponds to the JSON property `observations`
588
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Observation>]
589
+ attr_accessor :observations
523
590
 
524
591
  def initialize(**args)
525
592
  update!(**args)
@@ -527,31 +594,41 @@ module Google
527
594
 
528
595
  # Update properties of this object
529
596
  def update!(**args)
530
- @num_deleted = args[:num_deleted] if args.key?(:num_deleted)
597
+ @namespaced_types = args[:namespaced_types] if args.key?(:namespaced_types)
598
+ @observations = args[:observations] if args.key?(:observations)
531
599
  end
532
600
  end
533
601
 
534
- # Represents one beacon observed once.
535
- class Observation
602
+ # Information about the requested beacons, optionally including attachment
603
+ # data.
604
+ class GetInfoForObservedBeaconsResponse
536
605
  include Google::Apis::Core::Hashable
537
606
 
538
- # Time when the beacon was observed.
539
- # Corresponds to the JSON property `timestampMs`
540
- # @return [String]
541
- attr_accessor :timestamp_ms
607
+ # Public information about beacons.
608
+ # May be empty if the request matched no beacons.
609
+ # Corresponds to the JSON property `beacons`
610
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
611
+ attr_accessor :beacons
542
612
 
543
- # Defines a unique identifier of a beacon as broadcast by the device.
544
- # Corresponds to the JSON property `advertisedId`
545
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
546
- attr_accessor :advertised_id
613
+ def initialize(**args)
614
+ update!(**args)
615
+ end
547
616
 
548
- # The array of telemetry bytes received from the beacon. The server is
549
- # responsible for parsing it. This field may frequently be empty, as
550
- # with a beacon that transmits telemetry only occasionally.
551
- # Corresponds to the JSON property `telemetry`
552
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
617
+ # Update properties of this object
618
+ def update!(**args)
619
+ @beacons = args[:beacons] if args.key?(:beacons)
620
+ end
621
+ end
622
+
623
+ # Indoor level, a human-readable string as returned by Google Maps APIs,
624
+ # useful to indicate which floor of a building a beacon is located on.
625
+ class IndoorLevel
626
+ include Google::Apis::Core::Hashable
627
+
628
+ # The name of this level.
629
+ # Corresponds to the JSON property `name`
553
630
  # @return [String]
554
- attr_accessor :telemetry
631
+ attr_accessor :name
555
632
 
556
633
  def initialize(**args)
557
634
  update!(**args)
@@ -559,26 +636,57 @@ module Google
559
636
 
560
637
  # Update properties of this object
561
638
  def update!(**args)
562
- @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
563
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
564
- @telemetry = args[:telemetry] if args.key?(:telemetry)
639
+ @name = args[:name] if args.key?(:name)
565
640
  end
566
641
  end
567
642
 
568
- # Response that contains the requested diagnostics.
569
- class ListDiagnosticsResponse
643
+ # An object representing a latitude/longitude pair. This is expressed as a pair
644
+ # of doubles representing degrees latitude and degrees longitude. Unless
645
+ # specified otherwise, this must conform to the
646
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
647
+ # standard</a>. Values must be within normalized ranges.
648
+ # Example of normalization code in Python:
649
+ # def NormalizeLongitude(longitude):
650
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
651
+ # q, r = divmod(longitude, 360.0)
652
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
653
+ # return r - 360.0
654
+ # return r
655
+ # def NormalizeLatLng(latitude, longitude):
656
+ # """Wraps decimal degrees latitude and longitude to
657
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
658
+ # r = latitude % 360.0
659
+ # if r <= 90.0:
660
+ # return r, NormalizeLongitude(longitude)
661
+ # elif r >= 270.0:
662
+ # return r - 360, NormalizeLongitude(longitude)
663
+ # else:
664
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
665
+ # assert 180.0 == NormalizeLongitude(180.0)
666
+ # assert -180.0 == NormalizeLongitude(-180.0)
667
+ # assert -179.0 == NormalizeLongitude(181.0)
668
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
669
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
670
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
671
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
672
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
673
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
674
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
675
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
676
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
677
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
678
+ class LatLng
570
679
  include Google::Apis::Core::Hashable
571
680
 
572
- # The diagnostics matching the given request.
573
- # Corresponds to the JSON property `diagnostics`
574
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
575
- attr_accessor :diagnostics
681
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
682
+ # Corresponds to the JSON property `latitude`
683
+ # @return [Float]
684
+ attr_accessor :latitude
576
685
 
577
- # Token that can be used for pagination. Returned only if the
578
- # request matches more beacons than can be returned in this response.
579
- # Corresponds to the JSON property `nextPageToken`
580
- # @return [String]
581
- attr_accessor :next_page_token
686
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
687
+ # Corresponds to the JSON property `longitude`
688
+ # @return [Float]
689
+ attr_accessor :longitude
582
690
 
583
691
  def initialize(**args)
584
692
  update!(**args)
@@ -586,22 +694,51 @@ module Google
586
694
 
587
695
  # Update properties of this object
588
696
  def update!(**args)
589
- @diagnostics = args[:diagnostics] if args.key?(:diagnostics)
590
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
697
+ @latitude = args[:latitude] if args.key?(:latitude)
698
+ @longitude = args[:longitude] if args.key?(:longitude)
591
699
  end
592
700
  end
593
701
 
594
- # Information about the requested beacons, optionally including attachment
595
- # data.
596
- class GetInfoForObservedBeaconsResponse
702
+ # Response to `ListBeaconAttachments` that contains the requested attachments.
703
+ class ListBeaconAttachmentsResponse
597
704
  include Google::Apis::Core::Hashable
598
705
 
599
- # Public information about beacons.
600
- # May be empty if the request matched no beacons.
706
+ # The attachments that corresponded to the request params.
707
+ # Corresponds to the JSON property `attachments`
708
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconAttachment>]
709
+ attr_accessor :attachments
710
+
711
+ def initialize(**args)
712
+ update!(**args)
713
+ end
714
+
715
+ # Update properties of this object
716
+ def update!(**args)
717
+ @attachments = args[:attachments] if args.key?(:attachments)
718
+ end
719
+ end
720
+
721
+ # Response that contains list beacon results and pagination help.
722
+ class ListBeaconsResponse
723
+ include Google::Apis::Core::Hashable
724
+
725
+ # The beacons that matched the search criteria.
601
726
  # Corresponds to the JSON property `beacons`
602
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
727
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Beacon>]
603
728
  attr_accessor :beacons
604
729
 
730
+ # An opaque pagination token that the client may provide in their next
731
+ # request to retrieve the next page of results.
732
+ # Corresponds to the JSON property `nextPageToken`
733
+ # @return [String]
734
+ attr_accessor :next_page_token
735
+
736
+ # Estimate of the total number of beacons matched by the query. Higher
737
+ # values may be less accurate.
738
+ # Corresponds to the JSON property `totalCount`
739
+ # @return [Fixnum]
740
+ attr_accessor :total_count
741
+
605
742
  def initialize(**args)
606
743
  update!(**args)
607
744
  end
@@ -609,144 +746,25 @@ module Google
609
746
  # Update properties of this object
610
747
  def update!(**args)
611
748
  @beacons = args[:beacons] if args.key?(:beacons)
749
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
750
+ @total_count = args[:total_count] if args.key?(:total_count)
612
751
  end
613
752
  end
614
753
 
615
- # Details of a beacon device.
616
- class Beacon
754
+ # Response that contains the requested diagnostics.
755
+ class ListDiagnosticsResponse
617
756
  include Google::Apis::Core::Hashable
618
757
 
619
- # Current status of the beacon.
620
- # Required.
621
- # Corresponds to the JSON property `status`
622
- # @return [String]
623
- attr_accessor :status
624
-
625
- # Indoor level, a human-readable string as returned by Google Maps APIs,
626
- # useful to indicate which floor of a building a beacon is located on.
627
- # Corresponds to the JSON property `indoorLevel`
628
- # @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel]
629
- attr_accessor :indoor_level
630
-
631
- # Resource name of this beacon. A beacon name has the format
632
- # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
633
- # the beacon and N is a code for the beacon's type. Possible values are
634
- # `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
635
- # This field must be left empty when registering. After reading a beacon,
636
- # clients can use the name for future operations.
637
- # Corresponds to the JSON property `beaconName`
638
- # @return [String]
639
- attr_accessor :beacon_name
640
-
641
- # Expected location stability. This is set when the beacon is registered or
642
- # updated, not automatically detected in any way.
643
- # Optional.
644
- # Corresponds to the JSON property `expectedStability`
645
- # @return [String]
646
- attr_accessor :expected_stability
647
-
648
- # Defines a unique identifier of a beacon as broadcast by the device.
649
- # Corresponds to the JSON property `advertisedId`
650
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
651
- attr_accessor :advertised_id
652
-
653
- # Some beacons may require a user to provide an authorization key before
654
- # changing any of its configuration (e.g. broadcast frames, transmit power).
655
- # This field provides a place to store and control access to that key.
656
- # This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
657
- # from users with write access to the given beacon. That is to say: If the
658
- # user is authorized to write the beacon's confidential data in the service,
659
- # the service considers them authorized to configure the beacon. Note
660
- # that this key grants nothing on the service, only on the beacon itself.
661
- # Corresponds to the JSON property `provisioningKey`
662
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
663
- # @return [String]
664
- attr_accessor :provisioning_key
665
-
666
- # Write-only registration parameters for beacons using Eddystone-EID format.
667
- # Two ways of securely registering an Eddystone-EID beacon with the service
668
- # are supported:
669
- # 1. Perform an ECDH key exchange via this API, including a previous call
670
- # to `GET /v1beta1/eidparams`. In this case the fields
671
- # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
672
- # populated and `beacon_identity_key` should not be populated. This
673
- # method ensures that only the two parties in the ECDH key exchange can
674
- # compute the identity key, which becomes a secret between them.
675
- # 2. Derive or obtain the beacon's identity key via other secure means
676
- # (perhaps an ECDH key exchange between the beacon and a mobile device
677
- # or any other secure method), and then submit the resulting identity key
678
- # to the service. In this case `beacon_identity_key` field should be
679
- # populated, and neither of `beacon_ecdh_public_key` nor
680
- # `service_ecdh_public_key` fields should be. The security of this method
681
- # depends on how securely the parties involved (in particular the
682
- # bluetooth client) handle the identity key, and obviously on how
683
- # securely the identity key was generated.
684
- # See [the Eddystone specification](https://github.com/google/eddystone/tree/
685
- # master/eddystone-eid) at GitHub.
686
- # Corresponds to the JSON property `ephemeralIdRegistration`
687
- # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
688
- attr_accessor :ephemeral_id_registration
689
-
690
- # An object representing a latitude/longitude pair. This is expressed as a pair
691
- # of doubles representing degrees latitude and degrees longitude. Unless
692
- # specified otherwise, this must conform to the
693
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
694
- # standard</a>. Values must be within normalized ranges.
695
- # Example of normalization code in Python:
696
- # def NormalizeLongitude(longitude):
697
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
698
- # q, r = divmod(longitude, 360.0)
699
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
700
- # return r - 360.0
701
- # return r
702
- # def NormalizeLatLng(latitude, longitude):
703
- # """Wraps decimal degrees latitude and longitude to
704
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
705
- # r = latitude % 360.0
706
- # if r <= 90.0:
707
- # return r, NormalizeLongitude(longitude)
708
- # elif r >= 270.0:
709
- # return r - 360, NormalizeLongitude(longitude)
710
- # else:
711
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
712
- # assert 180.0 == NormalizeLongitude(180.0)
713
- # assert -180.0 == NormalizeLongitude(-180.0)
714
- # assert -179.0 == NormalizeLongitude(181.0)
715
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
716
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
717
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
718
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
719
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
720
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
721
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
722
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
723
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
724
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
725
- # Corresponds to the JSON property `latLng`
726
- # @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
727
- attr_accessor :lat_lng
728
-
729
- # The [Google Places API](/places/place-id) Place ID of the place where
730
- # the beacon is deployed. This is given when the beacon is registered or
731
- # updated, not automatically detected in any way.
732
- # Optional.
733
- # Corresponds to the JSON property `placeId`
734
- # @return [String]
735
- attr_accessor :place_id
758
+ # The diagnostics matching the given request.
759
+ # Corresponds to the JSON property `diagnostics`
760
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
761
+ attr_accessor :diagnostics
736
762
 
737
- # Free text used to identify and describe the beacon. Maximum length 140
738
- # characters.
739
- # Optional.
740
- # Corresponds to the JSON property `description`
763
+ # Token that can be used for pagination. Returned only if the
764
+ # request matches more beacons than can be returned in this response.
765
+ # Corresponds to the JSON property `nextPageToken`
741
766
  # @return [String]
742
- attr_accessor :description
743
-
744
- # Properties of the beacon device, for example battery type or firmware
745
- # version.
746
- # Optional.
747
- # Corresponds to the JSON property `properties`
748
- # @return [Hash<String,String>]
749
- attr_accessor :properties
767
+ attr_accessor :next_page_token
750
768
 
751
769
  def initialize(**args)
752
770
  update!(**args)
@@ -754,40 +772,19 @@ module Google
754
772
 
755
773
  # Update properties of this object
756
774
  def update!(**args)
757
- @status = args[:status] if args.key?(:status)
758
- @indoor_level = args[:indoor_level] if args.key?(:indoor_level)
759
- @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
760
- @expected_stability = args[:expected_stability] if args.key?(:expected_stability)
761
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
762
- @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
763
- @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
764
- @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
765
- @place_id = args[:place_id] if args.key?(:place_id)
766
- @description = args[:description] if args.key?(:description)
767
- @properties = args[:properties] if args.key?(:properties)
775
+ @diagnostics = args[:diagnostics] if args.key?(:diagnostics)
776
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
768
777
  end
769
778
  end
770
779
 
771
- # Defines a unique identifier of a beacon as broadcast by the device.
772
- class AdvertisedId
780
+ # Response to ListNamespacesRequest that contains all the project's namespaces.
781
+ class ListNamespacesResponse
773
782
  include Google::Apis::Core::Hashable
774
783
 
775
- # The actual beacon identifier, as broadcast by the beacon hardware. Must be
776
- # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
777
- # requests, and will be so encoded (with padding) in responses. The base64
778
- # encoding should be of the binary byte-stream and not any textual (such as
779
- # hex) representation thereof.
780
- # Required.
781
- # Corresponds to the JSON property `id`
782
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
783
- # @return [String]
784
- attr_accessor :id
785
-
786
- # Specifies the identifier type.
787
- # Required.
788
- # Corresponds to the JSON property `type`
789
- # @return [String]
790
- attr_accessor :type
784
+ # The attachments that corresponded to the request params.
785
+ # Corresponds to the JSON property `namespaces`
786
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Namespace>]
787
+ attr_accessor :namespaces
791
788
 
792
789
  def initialize(**args)
793
790
  update!(**args)
@@ -795,37 +792,27 @@ module Google
795
792
 
796
793
  # Update properties of this object
797
794
  def update!(**args)
798
- @id = args[:id] if args.key?(:id)
799
- @type = args[:type] if args.key?(:type)
795
+ @namespaces = args[:namespaces] if args.key?(:namespaces)
800
796
  end
801
797
  end
802
798
 
803
- # Represents a whole calendar date, e.g. date of birth. The time of day and
804
- # time zone are either specified elsewhere or are not significant. The date
805
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
806
- # represent a year and month where the day is not significant, e.g. credit card
807
- # expiration date. The year may be 0 to represent a month and day independent
808
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
809
- # and `google.protobuf.Timestamp`.
810
- class Date
799
+ # An attachment namespace defines read and write access for all the attachments
800
+ # created under it. Each namespace is globally unique, and owned by one
801
+ # project which is the only project that can create attachments under it.
802
+ class Namespace
811
803
  include Google::Apis::Core::Hashable
812
804
 
813
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
814
- # if specifying a year/month where the day is not significant.
815
- # Corresponds to the JSON property `day`
816
- # @return [Fixnum]
817
- attr_accessor :day
818
-
819
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
820
- # a year.
821
- # Corresponds to the JSON property `year`
822
- # @return [Fixnum]
823
- attr_accessor :year
805
+ # Resource name of this namespace. Namespaces names have the format:
806
+ # <code>namespaces/<var>namespace</var></code>.
807
+ # Corresponds to the JSON property `namespaceName`
808
+ # @return [String]
809
+ attr_accessor :namespace_name
824
810
 
825
- # Month of year. Must be from 1 to 12.
826
- # Corresponds to the JSON property `month`
827
- # @return [Fixnum]
828
- attr_accessor :month
811
+ # Specifies what clients may receive attachments under this namespace
812
+ # via `beaconinfo.getforobserved`.
813
+ # Corresponds to the JSON property `servingVisibility`
814
+ # @return [String]
815
+ attr_accessor :serving_visibility
829
816
 
830
817
  def initialize(**args)
831
818
  update!(**args)
@@ -833,21 +820,32 @@ module Google
833
820
 
834
821
  # Update properties of this object
835
822
  def update!(**args)
836
- @day = args[:day] if args.key?(:day)
837
- @year = args[:year] if args.key?(:year)
838
- @month = args[:month] if args.key?(:month)
823
+ @namespace_name = args[:namespace_name] if args.key?(:namespace_name)
824
+ @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
839
825
  end
840
826
  end
841
827
 
842
- # Indoor level, a human-readable string as returned by Google Maps APIs,
843
- # useful to indicate which floor of a building a beacon is located on.
844
- class IndoorLevel
828
+ # Represents one beacon observed once.
829
+ class Observation
845
830
  include Google::Apis::Core::Hashable
846
831
 
847
- # The name of this level.
848
- # Corresponds to the JSON property `name`
832
+ # Defines a unique identifier of a beacon as broadcast by the device.
833
+ # Corresponds to the JSON property `advertisedId`
834
+ # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
835
+ attr_accessor :advertised_id
836
+
837
+ # The array of telemetry bytes received from the beacon. The server is
838
+ # responsible for parsing it. This field may frequently be empty, as
839
+ # with a beacon that transmits telemetry only occasionally.
840
+ # Corresponds to the JSON property `telemetry`
841
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
849
842
  # @return [String]
850
- attr_accessor :name
843
+ attr_accessor :telemetry
844
+
845
+ # Time when the beacon was observed.
846
+ # Corresponds to the JSON property `timestampMs`
847
+ # @return [String]
848
+ attr_accessor :timestamp_ms
851
849
 
852
850
  def initialize(**args)
853
851
  update!(**args)
@@ -855,7 +853,9 @@ module Google
855
853
 
856
854
  # Update properties of this object
857
855
  def update!(**args)
858
- @name = args[:name] if args.key?(:name)
856
+ @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
857
+ @telemetry = args[:telemetry] if args.key?(:telemetry)
858
+ @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
859
859
  end
860
860
  end
861
861
  end