google-api-client 0.9.8 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -22,8 +22,7 @@ module Google
22
22
  module PeopleV1
23
23
  # Google People API
24
24
  #
25
- # The Google People API service gives access to information about profiles and
26
- # contacts.
25
+ # Provides access to information about profiles and contacts.
27
26
  #
28
27
  # @example
29
28
  # require 'google/apis/people_v1'
@@ -47,109 +46,122 @@ module Google
47
46
  super('https://people.googleapis.com/', '')
48
47
  end
49
48
 
50
- # Provides information about a person resource for a resource name. Use `people/
51
- # me` to indicate the authenticated user.
52
- # @param [String] resource_name
53
- # The resource name of the person to provide information about. - To get
54
- # information about the authenticated user, specify `people/me`. - To get
55
- # information about any user, specify the resource name that identifies the user,
56
- # such as the resource names returned by [`people.connections.list`](/people/
57
- # api/rest/v1/people.connections/list).
49
+ # Provides information about a list of specific people by specifying a list
50
+ # of requested resource names. Use `people/me` to indicate the authenticated
51
+ # user.
58
52
  # @param [String] request_mask_include_field
59
- # Comma-separated list of fields to be included in the response. Omitting this
60
- # field will include all fields. Each path should start with `person.`: for
61
- # example, `person.names` or `person.photos`.
62
- # @param [String] fields
63
- # Selector specifying which fields to include in a partial response.
53
+ # Comma-separated list of fields to be included in the response. Omitting
54
+ # this field will include all fields except for connections.list requests,
55
+ # which have a default mask that includes common fields like metadata, name,
56
+ # photo, and profile url.
57
+ # Each path should start with `person.`: for example, `person.names` or
58
+ # `person.photos`.
59
+ # @param [Array<String>, String] resource_names
60
+ # The resource name, such as one returned by
61
+ # [`people.connections.list`](/people/api/rest/v1/people.connections/list),
62
+ # of one of the people to provide information about. You can include this
63
+ # parameter up to 50 times in one request.
64
64
  # @param [String] quota_user
65
65
  # Available to use for quota purposes for server-side applications. Can be any
66
66
  # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # @param [String] fields
68
+ # Selector specifying which fields to include in a partial response.
67
69
  # @param [Google::Apis::RequestOptions] options
68
70
  # Request-specific options
69
71
  #
70
72
  # @yield [result, err] Result & error if block supplied
71
- # @yieldparam result [Google::Apis::PeopleV1::Person] parsed result object
73
+ # @yieldparam result [Google::Apis::PeopleV1::GetPeopleResponse] parsed result object
72
74
  # @yieldparam err [StandardError] error object if request failed
73
75
  #
74
- # @return [Google::Apis::PeopleV1::Person]
76
+ # @return [Google::Apis::PeopleV1::GetPeopleResponse]
75
77
  #
76
78
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
79
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
80
  # @raise [Google::Apis::AuthorizationError] Authorization is required
79
- def get_person(resource_name, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block)
80
- command = make_simple_command(:get, 'v1/{+resourceName}', options)
81
- command.response_representation = Google::Apis::PeopleV1::Person::Representation
82
- command.response_class = Google::Apis::PeopleV1::Person
83
- command.params['resourceName'] = resource_name unless resource_name.nil?
81
+ def get_people(request_mask_include_field: nil, resource_names: nil, quota_user: nil, fields: nil, options: nil, &block)
82
+ command = make_simple_command(:get, 'v1/people:batchGet', options)
83
+ command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation
84
+ command.response_class = Google::Apis::PeopleV1::GetPeopleResponse
84
85
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
85
- command.query['fields'] = fields unless fields.nil?
86
+ command.query['resourceNames'] = resource_names unless resource_names.nil?
86
87
  command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ command.query['fields'] = fields unless fields.nil?
87
89
  execute_or_queue_command(command, &block)
88
90
  end
89
91
 
90
- # Provides information about a list of specific people by specifying a list of
91
- # requested resource names. Use `people/me` to indicate the authenticated user.
92
- # @param [Array<String>, String] resource_names
93
- # The resource name, such as one returned by [`people.connections.list`](/people/
94
- # api/rest/v1/people.connections/list), of one of the people to provide
95
- # information about. You can include this parameter up to 50 times in one
96
- # request.
92
+ # Provides information about a person resource for a resource name. Use
93
+ # `people/me` to indicate the authenticated user.
94
+ # @param [String] resource_name
95
+ # The resource name of the person to provide information about.
96
+ # - To get information about the authenticated user, specify `people/me`.
97
+ # - To get information about any user, specify the resource name that
98
+ # identifies the user, such as the resource names returned by
99
+ # [`people.connections.list`](/people/api/rest/v1/people.connections/list).
97
100
  # @param [String] request_mask_include_field
98
- # Comma-separated list of fields to be included in the response. Omitting this
99
- # field will include all fields. Each path should start with `person.`: for
100
- # example, `person.names` or `person.photos`.
101
- # @param [String] fields
102
- # Selector specifying which fields to include in a partial response.
101
+ # Comma-separated list of fields to be included in the response. Omitting
102
+ # this field will include all fields except for connections.list requests,
103
+ # which have a default mask that includes common fields like metadata, name,
104
+ # photo, and profile url.
105
+ # Each path should start with `person.`: for example, `person.names` or
106
+ # `person.photos`.
103
107
  # @param [String] quota_user
104
108
  # Available to use for quota purposes for server-side applications. Can be any
105
109
  # arbitrary string assigned to a user, but should not exceed 40 characters.
110
+ # @param [String] fields
111
+ # Selector specifying which fields to include in a partial response.
106
112
  # @param [Google::Apis::RequestOptions] options
107
113
  # Request-specific options
108
114
  #
109
115
  # @yield [result, err] Result & error if block supplied
110
- # @yieldparam result [Google::Apis::PeopleV1::GetPeopleResponse] parsed result object
116
+ # @yieldparam result [Google::Apis::PeopleV1::Person] parsed result object
111
117
  # @yieldparam err [StandardError] error object if request failed
112
118
  #
113
- # @return [Google::Apis::PeopleV1::GetPeopleResponse]
119
+ # @return [Google::Apis::PeopleV1::Person]
114
120
  #
115
121
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
122
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
123
  # @raise [Google::Apis::AuthorizationError] Authorization is required
118
- def get_people(resource_names: nil, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block)
119
- command = make_simple_command(:get, 'v1/people:batchGet', options)
120
- command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation
121
- command.response_class = Google::Apis::PeopleV1::GetPeopleResponse
122
- command.query['resourceNames'] = resource_names unless resource_names.nil?
124
+ def get_person(resource_name, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block)
125
+ command = make_simple_command(:get, 'v1/{+resourceName}', options)
126
+ command.response_representation = Google::Apis::PeopleV1::Person::Representation
127
+ command.response_class = Google::Apis::PeopleV1::Person
128
+ command.params['resourceName'] = resource_name unless resource_name.nil?
123
129
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
124
- command.query['fields'] = fields unless fields.nil?
125
130
  command.query['quotaUser'] = quota_user unless quota_user.nil?
131
+ command.query['fields'] = fields unless fields.nil?
126
132
  execute_or_queue_command(command, &block)
127
133
  end
128
134
 
129
- # Provides a list of the authenticated user's contacts merged with any linked
130
- # profiles.
135
+ # Provides a list of the authenticated user's contacts merged with any
136
+ # linked profiles.
131
137
  # @param [String] resource_name
132
138
  # The resource name to return connections for. Only `people/me` is valid.
139
+ # @param [String] sync_token
140
+ # A sync token, returned by a previous call to `people.connections.list`.
141
+ # Only resources changed since the sync token was created will be returned.
142
+ # @param [String] sort_order
143
+ # The order in which the connections should be sorted. Defaults to
144
+ # `LAST_MODIFIED_ASCENDING`.
145
+ # @param [Boolean] request_sync_token
146
+ # Whether the response should include a sync token, which can be used to get
147
+ # all changes since the last request.
133
148
  # @param [String] page_token
134
149
  # The token of the page to be returned.
135
150
  # @param [Fixnum] page_size
136
- # The number of connections to include in the response. Valid values are between
137
- # 1 and 500, inclusive. Defaults to 100.
138
- # @param [String] sort_order
139
- # The order in which the connections should be sorted. Defaults to `
140
- # LAST_MODIFIED_ASCENDING`.
141
- # @param [String] sync_token
142
- # A sync token, returned by a previous call to `people.connections.list`. Only
143
- # resources changed since the sync token was created are returned.
151
+ # The number of connections to include in the response. Valid values are
152
+ # between 1 and 500, inclusive. Defaults to 100.
144
153
  # @param [String] request_mask_include_field
145
- # Comma-separated list of fields to be included in the response. Omitting this
146
- # field will include all fields. Each path should start with `person.`: for
147
- # example, `person.names` or `person.photos`.
148
- # @param [String] fields
149
- # Selector specifying which fields to include in a partial response.
154
+ # Comma-separated list of fields to be included in the response. Omitting
155
+ # this field will include all fields except for connections.list requests,
156
+ # which have a default mask that includes common fields like metadata, name,
157
+ # photo, and profile url.
158
+ # Each path should start with `person.`: for example, `person.names` or
159
+ # `person.photos`.
150
160
  # @param [String] quota_user
151
161
  # Available to use for quota purposes for server-side applications. Can be any
152
162
  # arbitrary string assigned to a user, but should not exceed 40 characters.
163
+ # @param [String] fields
164
+ # Selector specifying which fields to include in a partial response.
153
165
  # @param [Google::Apis::RequestOptions] options
154
166
  # Request-specific options
155
167
  #
@@ -162,18 +174,19 @@ module Google
162
174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
163
175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
164
176
  # @raise [Google::Apis::AuthorizationError] Authorization is required
165
- def list_person_connections(resource_name, page_token: nil, page_size: nil, sort_order: nil, sync_token: nil, request_mask_include_field: nil, fields: nil, quota_user: nil, options: nil, &block)
177
+ def list_person_connections(resource_name, sync_token: nil, sort_order: nil, request_sync_token: nil, page_token: nil, page_size: nil, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block)
166
178
  command = make_simple_command(:get, 'v1/{+resourceName}/connections', options)
167
179
  command.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation
168
180
  command.response_class = Google::Apis::PeopleV1::ListConnectionsResponse
169
181
  command.params['resourceName'] = resource_name unless resource_name.nil?
182
+ command.query['syncToken'] = sync_token unless sync_token.nil?
183
+ command.query['sortOrder'] = sort_order unless sort_order.nil?
184
+ command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil?
170
185
  command.query['pageToken'] = page_token unless page_token.nil?
171
186
  command.query['pageSize'] = page_size unless page_size.nil?
172
- command.query['sortOrder'] = sort_order unless sort_order.nil?
173
- command.query['syncToken'] = sync_token unless sync_token.nil?
174
187
  command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
175
- command.query['fields'] = fields unless fields.nil?
176
188
  command.query['quotaUser'] = quota_user unless quota_user.nil?
189
+ command.query['fields'] = fields unless fields.nil?
177
190
  execute_or_queue_command(command, &block)
178
191
  end
179
192
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160523'
28
+ REVISION = '20170322'
29
29
 
30
30
  # View your circles and the people and pages in them
31
31
  AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/api/
26
26
  module PlusV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160523'
28
+ REVISION = '20170322'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -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 = '20160429'
28
+ REVISION = '20170320'
29
29
 
30
30
  # View and modify your beacons
31
31
  AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'
@@ -22,115 +22,64 @@ module Google
22
22
  module Apis
23
23
  module ProximitybeaconV1beta1
24
24
 
25
- # Details of a beacon device.
26
- class Beacon
25
+ # Response that contains list beacon results and pagination help.
26
+ class ListBeaconsResponse
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # Resource name of this beacon. A beacon name has the format "beacons/N!beaconId"
30
- # where the beaconId is the base16 ID broadcast by the beacon and N is a code
31
- # for the beacon's type. Possible values are `3` for Eddystone, `1` for iBeacon,
32
- # or `5` for AltBeacon. This field must be left empty when registering. After
33
- # reading a beacon, clients can use the name for future operations.
34
- # Corresponds to the JSON property `beaconName`
29
+ # An opaque pagination token that the client may provide in their next
30
+ # request to retrieve the next page of results.
31
+ # Corresponds to the JSON property `nextPageToken`
35
32
  # @return [String]
36
- attr_accessor :beacon_name
37
-
38
- # Defines a unique identifier of a beacon as broadcast by the device.
39
- # Corresponds to the JSON property `advertisedId`
40
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
41
- attr_accessor :advertised_id
33
+ attr_accessor :next_page_token
42
34
 
43
- # Current status of the beacon. Required.
44
- # Corresponds to the JSON property `status`
45
- # @return [String]
46
- attr_accessor :status
35
+ # The beacons that matched the search criteria.
36
+ # Corresponds to the JSON property `beacons`
37
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Beacon>]
38
+ attr_accessor :beacons
47
39
 
48
- # The [Google Places API](/places/place-id) Place ID of the place where the
49
- # beacon is deployed. This is given when the beacon is registered or updated,
50
- # not automatically detected in any way. Optional.
51
- # Corresponds to the JSON property `placeId`
40
+ # Estimate of the total number of beacons matched by the query. Higher
41
+ # values may be less accurate.
42
+ # Corresponds to the JSON property `totalCount`
52
43
  # @return [String]
53
- attr_accessor :place_id
54
-
55
- # An object representing a latitude/longitude pair. This is expressed as a pair
56
- # of doubles representing degrees latitude and degrees longitude. Unless
57
- # specified otherwise, this must conform to the WGS84 standard. Values must be
58
- # within normalized ranges. Example of normalization code in Python: def
59
- # NormalizeLongitude(longitude): """Wraps decimal degrees longitude to [-180.0,
60
- # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <=
61
- # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """
62
- # Wraps decimal degrees latitude and longitude to [-90.0, 90.0] and [-180.0, 180.
63
- # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360,
64
- # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude(
65
- # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 ==
66
- # NormalizeLongitude(-180.0) assert -179.0 == NormalizeLongitude(181.0) assert (
67
- # 0.0, 0.0) == NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(-
68
- # 360.0, 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0, -
69
- # 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng(
70
- # 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0,
71
- # -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) ==
72
- # NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.
73
- # 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
74
- # Corresponds to the JSON property `latLng`
75
- # @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
76
- attr_accessor :lat_lng
44
+ attr_accessor :total_count
77
45
 
78
- # Indoor level, a human-readable string as returned by Google Maps APIs, useful
79
- # to indicate which floor of a building a beacon is located on.
80
- # Corresponds to the JSON property `indoorLevel`
81
- # @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel]
82
- attr_accessor :indoor_level
46
+ def initialize(**args)
47
+ update!(**args)
48
+ end
83
49
 
84
- # Expected location stability. This is set when the beacon is registered or
85
- # updated, not automatically detected in any way. Optional.
86
- # Corresponds to the JSON property `expectedStability`
87
- # @return [String]
88
- attr_accessor :expected_stability
50
+ # Update properties of this object
51
+ def update!(**args)
52
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
53
+ @beacons = args[:beacons] if args.key?(:beacons)
54
+ @total_count = args[:total_count] if args.key?(:total_count)
55
+ end
56
+ end
89
57
 
90
- # Free text used to identify and describe the beacon. Maximum length 140
91
- # characters. Optional.
92
- # Corresponds to the JSON property `description`
93
- # @return [String]
94
- attr_accessor :description
58
+ # Diagnostics for a single beacon.
59
+ class Diagnostics
60
+ include Google::Apis::Core::Hashable
95
61
 
96
- # Properties of the beacon device, for example battery type or firmware version.
97
- # Optional.
98
- # Corresponds to the JSON property `properties`
99
- # @return [Hash<String,String>]
100
- attr_accessor :properties
62
+ # An unordered list of Alerts that the beacon has.
63
+ # Corresponds to the JSON property `alerts`
64
+ # @return [Array<String>]
65
+ attr_accessor :alerts
101
66
 
102
- # Write-only registration parameters for beacons using Eddystone-EID format. Two
103
- # ways of securely registering an Eddystone-EID beacon with the service are
104
- # supported: 1. Perform an ECDH key exchange via this API, including a previous
105
- # call to `GET /v1beta1/eidparams`. In this case the fields `
106
- # beacon_ecdh_public_key` and `service_ecdh_public_key` should be populated and `
107
- # beacon_identity_key` should not be populated. This method ensures that only
108
- # the two parties in the ECDH key exchange can compute the identity key, which
109
- # becomes a secret between them. 2. Derive or obtain the beacon's identity key
110
- # via other secure means (perhaps an ECDH key exchange between the beacon and a
111
- # mobile device or any other secure method), and then submit the resulting
112
- # identity key to the service. In this case `beacon_identity_key` field should
113
- # be populated, and neither of `beacon_ecdh_public_key` nor `
114
- # service_ecdh_public_key` fields should be. The security of this method depends
115
- # on how securely the parties involved (in particular the bluetooth client)
116
- # handle the identity key, and obviously on how securely the identity key was
117
- # generated. See [the Eddystone specification](https://github.com/google/
118
- # eddystone/tree/master/eddystone-eid) at GitHub.
119
- # Corresponds to the JSON property `ephemeralIdRegistration`
120
- # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
121
- attr_accessor :ephemeral_id_registration
67
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
68
+ # time zone are either specified elsewhere or are not significant. The date
69
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
70
+ # represent a year and month where the day is not significant, e.g. credit card
71
+ # expiration date. The year may be 0 to represent a month and day independent
72
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
73
+ # and `google.protobuf.Timestamp`.
74
+ # Corresponds to the JSON property `estimatedLowBatteryDate`
75
+ # @return [Google::Apis::ProximitybeaconV1beta1::Date]
76
+ attr_accessor :estimated_low_battery_date
122
77
 
123
- # Some beacons may require a user to provide an authorization key before
124
- # changing any of its configuration (e.g. broadcast frames, transmit power).
125
- # This field provides a place to store and control access to that key. This
126
- # field is populated in responses to `GET /v1beta1/beacons/3!beaconId` from
127
- # users with write access to the given beacon. That is to say: If the user is
128
- # authorized to write the beacon's confidential data in the service, the service
129
- # considers them authorized to configure the beacon. Note that this key grants
130
- # nothing on the service, only on the beacon itself.
131
- # Corresponds to the JSON property `provisioningKey`
78
+ # Resource name of the beacon. For Eddystone-EID beacons, this may
79
+ # be the beacon's current EID, or the beacon's "stable" Eddystone-UID.
80
+ # Corresponds to the JSON property `beaconName`
132
81
  # @return [String]
133
- attr_accessor :provisioning_key
82
+ attr_accessor :beacon_name
134
83
 
135
84
  def initialize(**args)
136
85
  update!(**args)
@@ -138,37 +87,32 @@ module Google
138
87
 
139
88
  # Update properties of this object
140
89
  def update!(**args)
90
+ @alerts = args[:alerts] if args.key?(:alerts)
91
+ @estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date)
141
92
  @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
142
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
143
- @status = args[:status] if args.key?(:status)
144
- @place_id = args[:place_id] if args.key?(:place_id)
145
- @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
146
- @indoor_level = args[:indoor_level] if args.key?(:indoor_level)
147
- @expected_stability = args[:expected_stability] if args.key?(:expected_stability)
148
- @description = args[:description] if args.key?(:description)
149
- @properties = args[:properties] if args.key?(:properties)
150
- @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
151
- @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
152
93
  end
153
94
  end
154
95
 
155
- # Defines a unique identifier of a beacon as broadcast by the device.
156
- class AdvertisedId
96
+ # Request for beacon and attachment information about beacons that
97
+ # a mobile client has encountered "in the wild".
98
+ class GetInfoForObservedBeaconsRequest
157
99
  include Google::Apis::Core::Hashable
158
100
 
159
- # Specifies the identifier type. Required.
160
- # Corresponds to the JSON property `type`
161
- # @return [String]
162
- attr_accessor :type
101
+ # The beacons that the client has encountered.
102
+ # At least one must be given.
103
+ # Corresponds to the JSON property `observations`
104
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Observation>]
105
+ attr_accessor :observations
163
106
 
164
- # The actual beacon identifier, as broadcast by the beacon hardware. Must be [
165
- # base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP requests,
166
- # and will be so encoded (with padding) in responses. The base64 encoding
167
- # should be of the binary byte-stream and not any textual (such as hex)
168
- # representation thereof. Required.
169
- # Corresponds to the JSON property `id`
170
- # @return [String]
171
- attr_accessor :id
107
+ # Specifies what kind of attachments to include in the response.
108
+ # When given, the response will include only attachments of the given types.
109
+ # When empty, no attachments will be returned. Must be in the format
110
+ # <var>namespace/type</var>. Accepts `*` to specify all types in
111
+ # all namespaces owned by the client.
112
+ # Optional.
113
+ # Corresponds to the JSON property `namespacedTypes`
114
+ # @return [Array<String>]
115
+ attr_accessor :namespaced_types
172
116
 
173
117
  def initialize(**args)
174
118
  update!(**args)
@@ -176,63 +120,63 @@ module Google
176
120
 
177
121
  # Update properties of this object
178
122
  def update!(**args)
179
- @type = args[:type] if args.key?(:type)
180
- @id = args[:id] if args.key?(:id)
123
+ @observations = args[:observations] if args.key?(:observations)
124
+ @namespaced_types = args[:namespaced_types] if args.key?(:namespaced_types)
181
125
  end
182
126
  end
183
127
 
184
- # An object representing a latitude/longitude pair. This is expressed as a pair
185
- # of doubles representing degrees latitude and degrees longitude. Unless
186
- # specified otherwise, this must conform to the WGS84 standard. Values must be
187
- # within normalized ranges. Example of normalization code in Python: def
188
- # NormalizeLongitude(longitude): """Wraps decimal degrees longitude to [-180.0,
189
- # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <=
190
- # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """
191
- # Wraps decimal degrees latitude and longitude to [-90.0, 90.0] and [-180.0, 180.
192
- # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360,
193
- # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude(
194
- # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 ==
195
- # NormalizeLongitude(-180.0) assert -179.0 == NormalizeLongitude(181.0) assert (
196
- # 0.0, 0.0) == NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(-
197
- # 360.0, 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0, -
198
- # 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng(
199
- # 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0,
200
- # -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) ==
201
- # NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.
202
- # 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
203
- class LatLng
128
+ # A generic empty message that you can re-use to avoid defining duplicated
129
+ # empty messages in your APIs. A typical example is to use it as the request
130
+ # or the response type of an API method. For instance:
131
+ # service Foo `
132
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
133
+ # `
134
+ # The JSON representation for `Empty` is empty JSON object ````.
135
+ class Empty
204
136
  include Google::Apis::Core::Hashable
205
137
 
206
- # The latitude in degrees. It must be in the range [-90.0, +90.0].
207
- # Corresponds to the JSON property `latitude`
208
- # @return [Float]
209
- attr_accessor :latitude
210
-
211
- # The longitude in degrees. It must be in the range [-180.0, +180.0].
212
- # Corresponds to the JSON property `longitude`
213
- # @return [Float]
214
- attr_accessor :longitude
215
-
216
138
  def initialize(**args)
217
139
  update!(**args)
218
140
  end
219
141
 
220
142
  # Update properties of this object
221
143
  def update!(**args)
222
- @latitude = args[:latitude] if args.key?(:latitude)
223
- @longitude = args[:longitude] if args.key?(:longitude)
224
144
  end
225
145
  end
226
146
 
227
- # Indoor level, a human-readable string as returned by Google Maps APIs, useful
228
- # to indicate which floor of a building a beacon is located on.
229
- class IndoorLevel
147
+ # Project-specific data associated with a beacon.
148
+ class BeaconAttachment
230
149
  include Google::Apis::Core::Hashable
231
150
 
232
- # The name of this level.
233
- # Corresponds to the JSON property `name`
151
+ # Resource name of this attachment. Attachment names have the format:
152
+ # <code>beacons/<var>beacon_id</var>/attachments/<var>attachment_id</var></code>.
153
+ # Leave this empty on creation.
154
+ # Corresponds to the JSON property `attachmentName`
234
155
  # @return [String]
235
- attr_accessor :name
156
+ attr_accessor :attachment_name
157
+
158
+ # Specifies what kind of attachment this is. Tells a client how to
159
+ # interpret the `data` field. Format is <var>namespace/type</var>. Namespace
160
+ # provides type separation between clients. Type describes the type of
161
+ # `data`, for use by the client when parsing the `data` field.
162
+ # Required.
163
+ # Corresponds to the JSON property `namespacedType`
164
+ # @return [String]
165
+ attr_accessor :namespaced_type
166
+
167
+ # An opaque data container for client-provided data. Must be
168
+ # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
169
+ # requests, and will be so encoded (with padding) in responses.
170
+ # Required.
171
+ # Corresponds to the JSON property `data`
172
+ # @return [String]
173
+ attr_accessor :data
174
+
175
+ # The UTC time when this attachment was created, in milliseconds since the
176
+ # UNIX epoch.
177
+ # Corresponds to the JSON property `creationTimeMs`
178
+ # @return [String]
179
+ attr_accessor :creation_time_ms
236
180
 
237
181
  def initialize(**args)
238
182
  update!(**args)
@@ -240,74 +184,82 @@ module Google
240
184
 
241
185
  # Update properties of this object
242
186
  def update!(**args)
243
- @name = args[:name] if args.key?(:name)
187
+ @attachment_name = args[:attachment_name] if args.key?(:attachment_name)
188
+ @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
189
+ @data = args[:data] if args.key?(:data)
190
+ @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms)
244
191
  end
245
192
  end
246
193
 
247
- # Write-only registration parameters for beacons using Eddystone-EID format. Two
248
- # ways of securely registering an Eddystone-EID beacon with the service are
249
- # supported: 1. Perform an ECDH key exchange via this API, including a previous
250
- # call to `GET /v1beta1/eidparams`. In this case the fields `
251
- # beacon_ecdh_public_key` and `service_ecdh_public_key` should be populated and `
252
- # beacon_identity_key` should not be populated. This method ensures that only
253
- # the two parties in the ECDH key exchange can compute the identity key, which
254
- # becomes a secret between them. 2. Derive or obtain the beacon's identity key
255
- # via other secure means (perhaps an ECDH key exchange between the beacon and a
256
- # mobile device or any other secure method), and then submit the resulting
257
- # identity key to the service. In this case `beacon_identity_key` field should
258
- # be populated, and neither of `beacon_ecdh_public_key` nor `
259
- # service_ecdh_public_key` fields should be. The security of this method depends
260
- # on how securely the parties involved (in particular the bluetooth client)
261
- # handle the identity key, and obviously on how securely the identity key was
262
- # generated. See [the Eddystone specification](https://github.com/google/
263
- # eddystone/tree/master/eddystone-eid) at GitHub.
194
+ # Write-only registration parameters for beacons using Eddystone-EID format.
195
+ # Two ways of securely registering an Eddystone-EID beacon with the service
196
+ # are supported:
197
+ # 1. Perform an ECDH key exchange via this API, including a previous call
198
+ # to `GET /v1beta1/eidparams`. In this case the fields
199
+ # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
200
+ # populated and `beacon_identity_key` should not be populated. This
201
+ # method ensures that only the two parties in the ECDH key exchange can
202
+ # compute the identity key, which becomes a secret between them.
203
+ # 2. Derive or obtain the beacon's identity key via other secure means
204
+ # (perhaps an ECDH key exchange between the beacon and a mobile device
205
+ # or any other secure method), and then submit the resulting identity key
206
+ # to the service. In this case `beacon_identity_key` field should be
207
+ # populated, and neither of `beacon_ecdh_public_key` nor
208
+ # `service_ecdh_public_key` fields should be. The security of this method
209
+ # depends on how securely the parties involved (in particular the
210
+ # bluetooth client) handle the identity key, and obviously on how
211
+ # securely the identity key was generated.
212
+ # See [the Eddystone specification](https://github.com/google/eddystone/tree/
213
+ # master/eddystone-eid) at GitHub.
264
214
  class EphemeralIdRegistration
265
215
  include Google::Apis::Core::Hashable
266
216
 
267
- # The beacon's public key used for the Elliptic curve Diffie-Hellman key
268
- # exchange. When this field is populated, `service_ecdh_public_key` must also be
269
- # populated, and `beacon_identity_key` must not be.
217
+ # The initial clock value of the beacon. The beacon's clock must have
218
+ # begun counting at this value immediately prior to transmitting this
219
+ # value to the resolving service. Significant delay in transmitting this
220
+ # value to the service risks registration or resolution failures. If a
221
+ # value is not provided, the default is zero.
222
+ # Corresponds to the JSON property `initialClockValue`
223
+ # @return [String]
224
+ attr_accessor :initial_clock_value
225
+
226
+ # The beacon's public key used for the Elliptic curve Diffie-Hellman
227
+ # key exchange. When this field is populated, `service_ecdh_public_key`
228
+ # must also be populated, and `beacon_identity_key` must not be.
270
229
  # Corresponds to the JSON property `beaconEcdhPublicKey`
271
230
  # @return [String]
272
231
  attr_accessor :beacon_ecdh_public_key
273
232
 
274
- # The service's public key used for the Elliptic curve Diffie-Hellman key
275
- # exchange. When this field is populated, `beacon_ecdh_public_key` must also be
276
- # populated, and `beacon_identity_key` must not be.
233
+ # Indicates the nominal period between each rotation of the beacon's
234
+ # ephemeral ID. "Nominal" because the beacon should randomize the
235
+ # actual interval. See [the spec at github](https://github.com/google/eddystone/
236
+ # tree/master/eddystone-eid)
237
+ # for details. This value corresponds to a power-of-two scaler on the
238
+ # beacon's clock: when the scaler value is K, the beacon will begin
239
+ # broadcasting a new ephemeral ID on average every 2^K seconds.
240
+ # Corresponds to the JSON property `rotationPeriodExponent`
241
+ # @return [Fixnum]
242
+ attr_accessor :rotation_period_exponent
243
+
244
+ # The service's public key used for the Elliptic curve Diffie-Hellman
245
+ # key exchange. When this field is populated, `beacon_ecdh_public_key`
246
+ # must also be populated, and `beacon_identity_key` must not be.
277
247
  # Corresponds to the JSON property `serviceEcdhPublicKey`
278
248
  # @return [String]
279
249
  attr_accessor :service_ecdh_public_key
280
250
 
281
- # The private key of the beacon. If this field is populated, `
282
- # beacon_ecdh_public_key` and `service_ecdh_public_key` must not be populated.
251
+ # The private key of the beacon. If this field is populated,
252
+ # `beacon_ecdh_public_key` and `service_ecdh_public_key` must not be
253
+ # populated.
283
254
  # Corresponds to the JSON property `beaconIdentityKey`
284
255
  # @return [String]
285
256
  attr_accessor :beacon_identity_key
286
257
 
287
- # Indicates the nominal period between each rotation of the beacon's ephemeral
288
- # ID. "Nominal" because the beacon should randomize the actual interval. See [
289
- # the spec at github](https://github.com/google/eddystone/tree/master/eddystone-
290
- # eid) for details. This value corresponds to a power-of-two scaler on the
291
- # beacon's clock: when the scaler value is K, the beacon will begin broadcasting
292
- # a new ephemeral ID on average every 2^K seconds.
293
- # Corresponds to the JSON property `rotationPeriodExponent`
294
- # @return [Fixnum]
295
- attr_accessor :rotation_period_exponent
296
-
297
- # The initial clock value of the beacon. The beacon's clock must have begun
298
- # counting at this value immediately prior to transmitting this value to the
299
- # resolving service. Significant delay in transmitting this value to the service
300
- # risks registration or resolution failures. If a value is not provided, the
301
- # default is zero.
302
- # Corresponds to the JSON property `initialClockValue`
303
- # @return [String]
304
- attr_accessor :initial_clock_value
305
-
306
- # An initial ephemeral ID calculated using the clock value submitted as `
307
- # initial_clock_value`, and the secret key generated by the Diffie-Hellman key
308
- # exchange using `service_ecdh_public_key` and `service_ecdh_public_key`. This
309
- # initial EID value will be used by the service to confirm that the key exchange
310
- # process was successful.
258
+ # An initial ephemeral ID calculated using the clock value submitted as
259
+ # `initial_clock_value`, and the secret key generated by the
260
+ # Diffie-Hellman key exchange using `service_ecdh_public_key` and
261
+ # `service_ecdh_public_key`. This initial EID value will be used by the
262
+ # service to confirm that the key exchange process was successful.
311
263
  # Corresponds to the JSON property `initialEid`
312
264
  # @return [String]
313
265
  attr_accessor :initial_eid
@@ -318,52 +270,112 @@ module Google
318
270
 
319
271
  # Update properties of this object
320
272
  def update!(**args)
273
+ @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
321
274
  @beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
275
+ @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
322
276
  @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
323
277
  @beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
324
- @rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
325
- @initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
326
278
  @initial_eid = args[:initial_eid] if args.key?(:initial_eid)
327
279
  end
328
280
  end
329
281
 
330
- # A generic empty message that you can re-use to avoid defining duplicated empty
331
- # messages in your APIs. A typical example is to use it as the request or the
332
- # response type of an API method. For instance: service Foo ` rpc Bar(google.
333
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
334
- # `Empty` is empty JSON object ````.
335
- class Empty
282
+ # An object representing a latitude/longitude pair. This is expressed as a pair
283
+ # of doubles representing degrees latitude and degrees longitude. Unless
284
+ # specified otherwise, this must conform to the
285
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
286
+ # standard</a>. Values must be within normalized ranges.
287
+ # Example of normalization code in Python:
288
+ # def NormalizeLongitude(longitude):
289
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
290
+ # q, r = divmod(longitude, 360.0)
291
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
292
+ # return r - 360.0
293
+ # return r
294
+ # def NormalizeLatLng(latitude, longitude):
295
+ # """Wraps decimal degrees latitude and longitude to
296
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
297
+ # r = latitude % 360.0
298
+ # if r <= 90.0:
299
+ # return r, NormalizeLongitude(longitude)
300
+ # elif r >= 270.0:
301
+ # return r - 360, NormalizeLongitude(longitude)
302
+ # else:
303
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
304
+ # assert 180.0 == NormalizeLongitude(180.0)
305
+ # assert -180.0 == NormalizeLongitude(-180.0)
306
+ # assert -179.0 == NormalizeLongitude(181.0)
307
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
308
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
309
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
310
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
311
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
312
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
313
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
314
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
315
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
316
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
317
+ # The code in logs/storage/validator/logs_validator_traits.cc treats this type
318
+ # as if it were annotated as ST_LOCATION.
319
+ class LatLng
336
320
  include Google::Apis::Core::Hashable
337
321
 
322
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
323
+ # Corresponds to the JSON property `latitude`
324
+ # @return [Float]
325
+ attr_accessor :latitude
326
+
327
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
328
+ # Corresponds to the JSON property `longitude`
329
+ # @return [Float]
330
+ attr_accessor :longitude
331
+
338
332
  def initialize(**args)
339
333
  update!(**args)
340
334
  end
341
335
 
342
336
  # Update properties of this object
343
337
  def update!(**args)
338
+ @latitude = args[:latitude] if args.key?(:latitude)
339
+ @longitude = args[:longitude] if args.key?(:longitude)
344
340
  end
345
341
  end
346
342
 
347
- # Response that contains list beacon results and pagination help.
348
- class ListBeaconsResponse
343
+ # Response to `ListBeaconAttachments` that contains the requested attachments.
344
+ class ListBeaconAttachmentsResponse
349
345
  include Google::Apis::Core::Hashable
350
346
 
351
- # The beacons that matched the search criteria.
352
- # Corresponds to the JSON property `beacons`
353
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Beacon>]
354
- attr_accessor :beacons
347
+ # The attachments that corresponded to the request params.
348
+ # Corresponds to the JSON property `attachments`
349
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconAttachment>]
350
+ attr_accessor :attachments
355
351
 
356
- # An opaque pagination token that the client may provide in their next request
357
- # to retrieve the next page of results.
358
- # Corresponds to the JSON property `nextPageToken`
352
+ def initialize(**args)
353
+ update!(**args)
354
+ end
355
+
356
+ # Update properties of this object
357
+ def update!(**args)
358
+ @attachments = args[:attachments] if args.key?(:attachments)
359
+ end
360
+ end
361
+
362
+ # An attachment namespace defines read and write access for all the attachments
363
+ # created under it. Each namespace is globally unique, and owned by one
364
+ # project which is the only project that can create attachments under it.
365
+ class Namespace
366
+ include Google::Apis::Core::Hashable
367
+
368
+ # Resource name of this namespace. Namespaces names have the format:
369
+ # <code>namespaces/<var>namespace</var></code>.
370
+ # Corresponds to the JSON property `namespaceName`
359
371
  # @return [String]
360
- attr_accessor :next_page_token
372
+ attr_accessor :namespace_name
361
373
 
362
- # Estimate of the total number of beacons matched by the query. Higher values
363
- # may be less accurate.
364
- # Corresponds to the JSON property `totalCount`
374
+ # Specifies what clients may receive attachments under this namespace
375
+ # via `beaconinfo.getforobserved`.
376
+ # Corresponds to the JSON property `servingVisibility`
365
377
  # @return [String]
366
- attr_accessor :total_count
378
+ attr_accessor :serving_visibility
367
379
 
368
380
  def initialize(**args)
369
381
  update!(**args)
@@ -371,33 +383,25 @@ module Google
371
383
 
372
384
  # Update properties of this object
373
385
  def update!(**args)
374
- @beacons = args[:beacons] if args.key?(:beacons)
375
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
376
- @total_count = args[:total_count] if args.key?(:total_count)
386
+ @namespace_name = args[:namespace_name] if args.key?(:namespace_name)
387
+ @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
377
388
  end
378
389
  end
379
390
 
380
- # Project-specific data associated with a beacon.
381
- class BeaconAttachment
391
+ # A subset of attachment information served via the
392
+ # `beaconinfo.getforobserved` method, used when your users encounter your
393
+ # beacons.
394
+ class AttachmentInfo
382
395
  include Google::Apis::Core::Hashable
383
396
 
384
- # Resource name of this attachment. Attachment names have the format: beacons/
385
- # beacon_id/attachments/attachment_id. Leave this empty on creation.
386
- # Corresponds to the JSON property `attachmentName`
387
- # @return [String]
388
- attr_accessor :attachment_name
389
-
390
- # Specifies what kind of attachment this is. Tells a client how to interpret the
391
- # `data` field. Format is namespace/type. Namespace provides type separation
392
- # between clients. Type describes the type of `data`, for use by the client when
393
- # parsing the `data` field. Required.
397
+ # Specifies what kind of attachment this is. Tells a client how to
398
+ # interpret the `data` field. Format is <var>namespace/type</var>, for
399
+ # example <code>scrupulous-wombat-12345/welcome-message</code>
394
400
  # Corresponds to the JSON property `namespacedType`
395
401
  # @return [String]
396
402
  attr_accessor :namespaced_type
397
403
 
398
- # An opaque data container for client-provided data. Must be [base64](http://
399
- # tools.ietf.org/html/rfc4648#section-4) encoded in HTTP requests, and will be
400
- # so encoded (with padding) in responses. Required.
404
+ # An opaque data container for client-provided data.
401
405
  # Corresponds to the JSON property `data`
402
406
  # @return [String]
403
407
  attr_accessor :data
@@ -408,19 +412,30 @@ module Google
408
412
 
409
413
  # Update properties of this object
410
414
  def update!(**args)
411
- @attachment_name = args[:attachment_name] if args.key?(:attachment_name)
412
415
  @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
413
416
  @data = args[:data] if args.key?(:data)
414
417
  end
415
418
  end
416
419
 
417
- # Response to ListBeaconAttachments that contains the requested attachments.
418
- class ListBeaconAttachmentsResponse
420
+ # A subset of beacon information served via the `beaconinfo.getforobserved`
421
+ # method, which you call when users of your app encounter your beacons.
422
+ class BeaconInfo
419
423
  include Google::Apis::Core::Hashable
420
424
 
421
- # The attachments that corresponded to the request params.
425
+ # The name under which the beacon is registered.
426
+ # Corresponds to the JSON property `beaconName`
427
+ # @return [String]
428
+ attr_accessor :beacon_name
429
+
430
+ # Defines a unique identifier of a beacon as broadcast by the device.
431
+ # Corresponds to the JSON property `advertisedId`
432
+ # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
433
+ attr_accessor :advertised_id
434
+
435
+ # Attachments matching the type(s) requested.
436
+ # May be empty if no attachment types were requested.
422
437
  # Corresponds to the JSON property `attachments`
423
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconAttachment>]
438
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
424
439
  attr_accessor :attachments
425
440
 
426
441
  def initialize(**args)
@@ -429,37 +444,37 @@ module Google
429
444
 
430
445
  # Update properties of this object
431
446
  def update!(**args)
447
+ @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
448
+ @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
432
449
  @attachments = args[:attachments] if args.key?(:attachments)
433
450
  end
434
451
  end
435
452
 
436
- # Response for a request to delete attachments.
437
- class DeleteAttachmentsResponse
453
+ # Information a client needs to provision and register beacons that
454
+ # broadcast Eddystone-EID format beacon IDs, using Elliptic curve
455
+ # Diffie-Hellman key exchange. See
456
+ # [the Eddystone specification](https://github.com/google/eddystone/tree/master/
457
+ # eddystone-eid) at GitHub.
458
+ class EphemeralIdRegistrationParams
438
459
  include Google::Apis::Core::Hashable
439
460
 
440
- # The number of attachments that were deleted.
441
- # Corresponds to the JSON property `numDeleted`
442
- # @return [Fixnum]
443
- attr_accessor :num_deleted
461
+ # The beacon service's public key for use by a beacon to derive its
462
+ # Identity Key using Elliptic Curve Diffie-Hellman key exchange.
463
+ # Corresponds to the JSON property `serviceEcdhPublicKey`
464
+ # @return [String]
465
+ attr_accessor :service_ecdh_public_key
444
466
 
445
- def initialize(**args)
446
- update!(**args)
447
- end
448
-
449
- # Update properties of this object
450
- def update!(**args)
451
- @num_deleted = args[:num_deleted] if args.key?(:num_deleted)
452
- end
453
- end
454
-
455
- # Response to ListNamespacesRequest that contains all the project's namespaces.
456
- class ListNamespacesResponse
457
- include Google::Apis::Core::Hashable
467
+ # Indicates the minimum rotation period supported by the service.
468
+ # See EddystoneEidRegistration.rotation_period_exponent
469
+ # Corresponds to the JSON property `minRotationPeriodExponent`
470
+ # @return [Fixnum]
471
+ attr_accessor :min_rotation_period_exponent
458
472
 
459
- # The attachments that corresponded to the request params.
460
- # Corresponds to the JSON property `namespaces`
461
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Namespace>]
462
- attr_accessor :namespaces
473
+ # Indicates the maximum rotation period supported by the service.
474
+ # See EddystoneEidRegistration.rotation_period_exponent
475
+ # Corresponds to the JSON property `maxRotationPeriodExponent`
476
+ # @return [Fixnum]
477
+ attr_accessor :max_rotation_period_exponent
463
478
 
464
479
  def initialize(**args)
465
480
  update!(**args)
@@ -467,27 +482,20 @@ module Google
467
482
 
468
483
  # Update properties of this object
469
484
  def update!(**args)
470
- @namespaces = args[:namespaces] if args.key?(:namespaces)
485
+ @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
486
+ @min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent)
487
+ @max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent)
471
488
  end
472
489
  end
473
490
 
474
- # An attachment namespace defines read and write access for all the attachments
475
- # created under it. Each namespace is globally unique, and owned by one project
476
- # which is the only project that can create attachments under it.
477
- class Namespace
491
+ # Response for a request to delete attachments.
492
+ class DeleteAttachmentsResponse
478
493
  include Google::Apis::Core::Hashable
479
494
 
480
- # Resource name of this namespace. Namespaces names have the format: namespaces/
481
- # namespace.
482
- # Corresponds to the JSON property `namespaceName`
483
- # @return [String]
484
- attr_accessor :namespace_name
485
-
486
- # Specifies what clients may receive attachments under this namespace via `
487
- # beaconinfo.getforobserved`.
488
- # Corresponds to the JSON property `servingVisibility`
489
- # @return [String]
490
- attr_accessor :serving_visibility
495
+ # The number of attachments that were deleted.
496
+ # Corresponds to the JSON property `numDeleted`
497
+ # @return [Fixnum]
498
+ attr_accessor :num_deleted
491
499
 
492
500
  def initialize(**args)
493
501
  update!(**args)
@@ -495,35 +503,30 @@ module Google
495
503
 
496
504
  # Update properties of this object
497
505
  def update!(**args)
498
- @namespace_name = args[:namespace_name] if args.key?(:namespace_name)
499
- @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
506
+ @num_deleted = args[:num_deleted] if args.key?(:num_deleted)
500
507
  end
501
508
  end
502
509
 
503
- # Information a client needs to provision and register beacons that broadcast
504
- # Eddystone-EID format beacon IDs, using Elliptic curve Diffie-Hellman key
505
- # exchange. See [the Eddystone specification](https://github.com/google/
506
- # eddystone/tree/master/eddystone-eid) at GitHub.
507
- class EphemeralIdRegistrationParams
510
+ # Represents one beacon observed once.
511
+ class Observation
508
512
  include Google::Apis::Core::Hashable
509
513
 
510
- # The beacon service's public key for use by a beacon to derive its Identity Key
511
- # using Elliptic Curve Diffie-Hellman key exchange.
512
- # Corresponds to the JSON property `serviceEcdhPublicKey`
514
+ # The array of telemetry bytes received from the beacon. The server is
515
+ # responsible for parsing it. This field may frequently be empty, as
516
+ # with a beacon that transmits telemetry only occasionally.
517
+ # Corresponds to the JSON property `telemetry`
513
518
  # @return [String]
514
- attr_accessor :service_ecdh_public_key
519
+ attr_accessor :telemetry
515
520
 
516
- # Indicates the minimum rotation period supported by the service. See
517
- # EddystoneEidRegistration.rotation_period_exponent
518
- # Corresponds to the JSON property `minRotationPeriodExponent`
519
- # @return [Fixnum]
520
- attr_accessor :min_rotation_period_exponent
521
+ # Time when the beacon was observed.
522
+ # Corresponds to the JSON property `timestampMs`
523
+ # @return [String]
524
+ attr_accessor :timestamp_ms
521
525
 
522
- # Indicates the maximum rotation period supported by the service. See
523
- # EddystoneEidRegistration.rotation_period_exponent
524
- # Corresponds to the JSON property `maxRotationPeriodExponent`
525
- # @return [Fixnum]
526
- attr_accessor :max_rotation_period_exponent
526
+ # Defines a unique identifier of a beacon as broadcast by the device.
527
+ # Corresponds to the JSON property `advertisedId`
528
+ # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
529
+ attr_accessor :advertised_id
527
530
 
528
531
  def initialize(**args)
529
532
  update!(**args)
@@ -531,9 +534,9 @@ module Google
531
534
 
532
535
  # Update properties of this object
533
536
  def update!(**args)
534
- @service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
535
- @min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent)
536
- @max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent)
537
+ @telemetry = args[:telemetry] if args.key?(:telemetry)
538
+ @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
539
+ @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
537
540
  end
538
541
  end
539
542
 
@@ -546,8 +549,8 @@ module Google
546
549
  # @return [Array<Google::Apis::ProximitybeaconV1beta1::Diagnostics>]
547
550
  attr_accessor :diagnostics
548
551
 
549
- # Token that can be used for pagination. Returned only if the request matches
550
- # more beacons than can be returned in this response.
552
+ # Token that can be used for pagination. Returned only if the
553
+ # request matches more beacons than can be returned in this response.
551
554
  # Corresponds to the JSON property `nextPageToken`
552
555
  # @return [String]
553
556
  attr_accessor :next_page_token
@@ -563,31 +566,16 @@ module Google
563
566
  end
564
567
  end
565
568
 
566
- # Diagnostics for a single beacon.
567
- class Diagnostics
569
+ # Information about the requested beacons, optionally including attachment
570
+ # data.
571
+ class GetInfoForObservedBeaconsResponse
568
572
  include Google::Apis::Core::Hashable
569
573
 
570
- # Resource name of the beacon. For Eddystone-EID beacons, this may be the beacon'
571
- # s current EID, or the beacon's "stable" Eddystone-UID.
572
- # Corresponds to the JSON property `beaconName`
573
- # @return [String]
574
- attr_accessor :beacon_name
575
-
576
- # Represents a whole calendar date, e.g. date of birth. The time of day and time
577
- # zone are either specified elsewhere or are not significant. The date is
578
- # relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a
579
- # year and month where the day is not significant, e.g. credit card expiration
580
- # date. The year may be 0 to represent a month and day independent of year, e.g.
581
- # anniversary date. Related types are google.type.TimeOfDay and `google.protobuf.
582
- # Timestamp`.
583
- # Corresponds to the JSON property `estimatedLowBatteryDate`
584
- # @return [Google::Apis::ProximitybeaconV1beta1::Date]
585
- attr_accessor :estimated_low_battery_date
586
-
587
- # An unordered list of Alerts that the beacon has.
588
- # Corresponds to the JSON property `alerts`
589
- # @return [Array<String>]
590
- attr_accessor :alerts
574
+ # Public information about beacons.
575
+ # May be empty if the request matched no beacons.
576
+ # Corresponds to the JSON property `beacons`
577
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
578
+ attr_accessor :beacons
591
579
 
592
580
  def initialize(**args)
593
581
  update!(**args)
@@ -595,67 +583,146 @@ module Google
595
583
 
596
584
  # Update properties of this object
597
585
  def update!(**args)
598
- @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
599
- @estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date)
600
- @alerts = args[:alerts] if args.key?(:alerts)
586
+ @beacons = args[:beacons] if args.key?(:beacons)
601
587
  end
602
588
  end
603
589
 
604
- # Represents a whole calendar date, e.g. date of birth. The time of day and time
605
- # zone are either specified elsewhere or are not significant. The date is
606
- # relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a
607
- # year and month where the day is not significant, e.g. credit card expiration
608
- # date. The year may be 0 to represent a month and day independent of year, e.g.
609
- # anniversary date. Related types are google.type.TimeOfDay and `google.protobuf.
610
- # Timestamp`.
611
- class Date
590
+ # Details of a beacon device.
591
+ class Beacon
612
592
  include Google::Apis::Core::Hashable
613
593
 
614
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
615
- # Corresponds to the JSON property `year`
616
- # @return [Fixnum]
617
- attr_accessor :year
594
+ # Defines a unique identifier of a beacon as broadcast by the device.
595
+ # Corresponds to the JSON property `advertisedId`
596
+ # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
597
+ attr_accessor :advertised_id
618
598
 
619
- # Month of year. Must be from 1 to 12.
620
- # Corresponds to the JSON property `month`
621
- # @return [Fixnum]
622
- attr_accessor :month
599
+ # Write-only registration parameters for beacons using Eddystone-EID format.
600
+ # Two ways of securely registering an Eddystone-EID beacon with the service
601
+ # are supported:
602
+ # 1. Perform an ECDH key exchange via this API, including a previous call
603
+ # to `GET /v1beta1/eidparams`. In this case the fields
604
+ # `beacon_ecdh_public_key` and `service_ecdh_public_key` should be
605
+ # populated and `beacon_identity_key` should not be populated. This
606
+ # method ensures that only the two parties in the ECDH key exchange can
607
+ # compute the identity key, which becomes a secret between them.
608
+ # 2. Derive or obtain the beacon's identity key via other secure means
609
+ # (perhaps an ECDH key exchange between the beacon and a mobile device
610
+ # or any other secure method), and then submit the resulting identity key
611
+ # to the service. In this case `beacon_identity_key` field should be
612
+ # populated, and neither of `beacon_ecdh_public_key` nor
613
+ # `service_ecdh_public_key` fields should be. The security of this method
614
+ # depends on how securely the parties involved (in particular the
615
+ # bluetooth client) handle the identity key, and obviously on how
616
+ # securely the identity key was generated.
617
+ # See [the Eddystone specification](https://github.com/google/eddystone/tree/
618
+ # master/eddystone-eid) at GitHub.
619
+ # Corresponds to the JSON property `ephemeralIdRegistration`
620
+ # @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
621
+ attr_accessor :ephemeral_id_registration
623
622
 
624
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
625
- # specifying a year/month where the day is not significant.
626
- # Corresponds to the JSON property `day`
627
- # @return [Fixnum]
628
- attr_accessor :day
623
+ # Some beacons may require a user to provide an authorization key before
624
+ # changing any of its configuration (e.g. broadcast frames, transmit power).
625
+ # This field provides a place to store and control access to that key.
626
+ # This field is populated in responses to `GET /v1beta1/beacons/3!beaconId`
627
+ # from users with write access to the given beacon. That is to say: If the
628
+ # user is authorized to write the beacon's confidential data in the service,
629
+ # the service considers them authorized to configure the beacon. Note
630
+ # that this key grants nothing on the service, only on the beacon itself.
631
+ # Corresponds to the JSON property `provisioningKey`
632
+ # @return [String]
633
+ attr_accessor :provisioning_key
629
634
 
630
- def initialize(**args)
631
- update!(**args)
632
- end
635
+ # Free text used to identify and describe the beacon. Maximum length 140
636
+ # characters.
637
+ # Optional.
638
+ # Corresponds to the JSON property `description`
639
+ # @return [String]
640
+ attr_accessor :description
633
641
 
634
- # Update properties of this object
635
- def update!(**args)
636
- @year = args[:year] if args.key?(:year)
637
- @month = args[:month] if args.key?(:month)
638
- @day = args[:day] if args.key?(:day)
639
- end
640
- end
642
+ # An object representing a latitude/longitude pair. This is expressed as a pair
643
+ # of doubles representing degrees latitude and degrees longitude. Unless
644
+ # specified otherwise, this must conform to the
645
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
646
+ # standard</a>. Values must be within normalized ranges.
647
+ # Example of normalization code in Python:
648
+ # def NormalizeLongitude(longitude):
649
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
650
+ # q, r = divmod(longitude, 360.0)
651
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
652
+ # return r - 360.0
653
+ # return r
654
+ # def NormalizeLatLng(latitude, longitude):
655
+ # """Wraps decimal degrees latitude and longitude to
656
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
657
+ # r = latitude % 360.0
658
+ # if r <= 90.0:
659
+ # return r, NormalizeLongitude(longitude)
660
+ # elif r >= 270.0:
661
+ # return r - 360, NormalizeLongitude(longitude)
662
+ # else:
663
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
664
+ # assert 180.0 == NormalizeLongitude(180.0)
665
+ # assert -180.0 == NormalizeLongitude(-180.0)
666
+ # assert -179.0 == NormalizeLongitude(181.0)
667
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
668
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
669
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
670
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
671
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
672
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
673
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
674
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
675
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
676
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
677
+ # The code in logs/storage/validator/logs_validator_traits.cc treats this type
678
+ # as if it were annotated as ST_LOCATION.
679
+ # Corresponds to the JSON property `latLng`
680
+ # @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
681
+ attr_accessor :lat_lng
641
682
 
642
- # Request for beacon and attachment information about beacons that a mobile
643
- # client has encountered "in the wild".
644
- class GetInfoForObservedBeaconsRequest
645
- include Google::Apis::Core::Hashable
683
+ # The [Google Places API](/places/place-id) Place ID of the place where
684
+ # the beacon is deployed. This is given when the beacon is registered or
685
+ # updated, not automatically detected in any way.
686
+ # Optional.
687
+ # Corresponds to the JSON property `placeId`
688
+ # @return [String]
689
+ attr_accessor :place_id
646
690
 
647
- # The beacons that the client has encountered. At least one must be given.
648
- # Corresponds to the JSON property `observations`
649
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::Observation>]
650
- attr_accessor :observations
691
+ # Properties of the beacon device, for example battery type or firmware
692
+ # version.
693
+ # Optional.
694
+ # Corresponds to the JSON property `properties`
695
+ # @return [Hash<String,String>]
696
+ attr_accessor :properties
651
697
 
652
- # Specifies what kind of attachments to include in the response. When given, the
653
- # response will include only attachments of the given types. When empty, no
654
- # attachments will be returned. Must be in the format namespace/type. Accepts `*`
655
- # to specify all types in all namespaces. Optional.
656
- # Corresponds to the JSON property `namespacedTypes`
657
- # @return [Array<String>]
658
- attr_accessor :namespaced_types
698
+ # Current status of the beacon.
699
+ # Required.
700
+ # Corresponds to the JSON property `status`
701
+ # @return [String]
702
+ attr_accessor :status
703
+
704
+ # Indoor level, a human-readable string as returned by Google Maps APIs,
705
+ # useful to indicate which floor of a building a beacon is located on.
706
+ # Corresponds to the JSON property `indoorLevel`
707
+ # @return [Google::Apis::ProximitybeaconV1beta1::IndoorLevel]
708
+ attr_accessor :indoor_level
709
+
710
+ # Resource name of this beacon. A beacon name has the format
711
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
712
+ # the beacon and N is a code for the beacon's type. Possible values are
713
+ # `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon.
714
+ # This field must be left empty when registering. After reading a beacon,
715
+ # clients can use the name for future operations.
716
+ # Corresponds to the JSON property `beaconName`
717
+ # @return [String]
718
+ attr_accessor :beacon_name
719
+
720
+ # Expected location stability. This is set when the beacon is registered or
721
+ # updated, not automatically detected in any way.
722
+ # Optional.
723
+ # Corresponds to the JSON property `expectedStability`
724
+ # @return [String]
725
+ attr_accessor :expected_stability
659
726
 
660
727
  def initialize(**args)
661
728
  update!(**args)
@@ -663,31 +730,39 @@ module Google
663
730
 
664
731
  # Update properties of this object
665
732
  def update!(**args)
666
- @observations = args[:observations] if args.key?(:observations)
667
- @namespaced_types = args[:namespaced_types] if args.key?(:namespaced_types)
733
+ @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
734
+ @ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
735
+ @provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
736
+ @description = args[:description] if args.key?(:description)
737
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
738
+ @place_id = args[:place_id] if args.key?(:place_id)
739
+ @properties = args[:properties] if args.key?(:properties)
740
+ @status = args[:status] if args.key?(:status)
741
+ @indoor_level = args[:indoor_level] if args.key?(:indoor_level)
742
+ @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
743
+ @expected_stability = args[:expected_stability] if args.key?(:expected_stability)
668
744
  end
669
745
  end
670
746
 
671
- # Represents one beacon observed once.
672
- class Observation
747
+ # Defines a unique identifier of a beacon as broadcast by the device.
748
+ class AdvertisedId
673
749
  include Google::Apis::Core::Hashable
674
750
 
675
- # Defines a unique identifier of a beacon as broadcast by the device.
676
- # Corresponds to the JSON property `advertisedId`
677
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
678
- attr_accessor :advertised_id
679
-
680
- # The array of telemetry bytes received from the beacon. The server is
681
- # responsible for parsing it. This field may frequently be empty, as with a
682
- # beacon that transmits telemetry only occasionally.
683
- # Corresponds to the JSON property `telemetry`
751
+ # Specifies the identifier type.
752
+ # Required.
753
+ # Corresponds to the JSON property `type`
684
754
  # @return [String]
685
- attr_accessor :telemetry
755
+ attr_accessor :type
686
756
 
687
- # Time when the beacon was observed.
688
- # Corresponds to the JSON property `timestampMs`
757
+ # The actual beacon identifier, as broadcast by the beacon hardware. Must be
758
+ # [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP
759
+ # requests, and will be so encoded (with padding) in responses. The base64
760
+ # encoding should be of the binary byte-stream and not any textual (such as
761
+ # hex) representation thereof.
762
+ # Required.
763
+ # Corresponds to the JSON property `id`
689
764
  # @return [String]
690
- attr_accessor :timestamp_ms
765
+ attr_accessor :id
691
766
 
692
767
  def initialize(**args)
693
768
  update!(**args)
@@ -695,21 +770,37 @@ module Google
695
770
 
696
771
  # Update properties of this object
697
772
  def update!(**args)
698
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
699
- @telemetry = args[:telemetry] if args.key?(:telemetry)
700
- @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
773
+ @type = args[:type] if args.key?(:type)
774
+ @id = args[:id] if args.key?(:id)
701
775
  end
702
776
  end
703
777
 
704
- # Information about the requested beacons, optionally including attachment data.
705
- class GetInfoForObservedBeaconsResponse
778
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
779
+ # time zone are either specified elsewhere or are not significant. The date
780
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
781
+ # represent a year and month where the day is not significant, e.g. credit card
782
+ # expiration date. The year may be 0 to represent a month and day independent
783
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
784
+ # and `google.protobuf.Timestamp`.
785
+ class Date
706
786
  include Google::Apis::Core::Hashable
707
787
 
708
- # Public information about beacons. May be empty if the request matched no
709
- # beacons.
710
- # Corresponds to the JSON property `beacons`
711
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::BeaconInfo>]
712
- attr_accessor :beacons
788
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
789
+ # a year.
790
+ # Corresponds to the JSON property `year`
791
+ # @return [Fixnum]
792
+ attr_accessor :year
793
+
794
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
795
+ # if specifying a year/month where the day is not significant.
796
+ # Corresponds to the JSON property `day`
797
+ # @return [Fixnum]
798
+ attr_accessor :day
799
+
800
+ # Month of year. Must be from 1 to 12.
801
+ # Corresponds to the JSON property `month`
802
+ # @return [Fixnum]
803
+ attr_accessor :month
713
804
 
714
805
  def initialize(**args)
715
806
  update!(**args)
@@ -717,30 +808,21 @@ module Google
717
808
 
718
809
  # Update properties of this object
719
810
  def update!(**args)
720
- @beacons = args[:beacons] if args.key?(:beacons)
811
+ @year = args[:year] if args.key?(:year)
812
+ @day = args[:day] if args.key?(:day)
813
+ @month = args[:month] if args.key?(:month)
721
814
  end
722
815
  end
723
816
 
724
- # A subset of beacon information served via the `beaconinfo.getforobserved`
725
- # method, which you call when users of your app encounter your beacons.
726
- class BeaconInfo
817
+ # Indoor level, a human-readable string as returned by Google Maps APIs,
818
+ # useful to indicate which floor of a building a beacon is located on.
819
+ class IndoorLevel
727
820
  include Google::Apis::Core::Hashable
728
821
 
729
- # Defines a unique identifier of a beacon as broadcast by the device.
730
- # Corresponds to the JSON property `advertisedId`
731
- # @return [Google::Apis::ProximitybeaconV1beta1::AdvertisedId]
732
- attr_accessor :advertised_id
733
-
734
- # The name under which the beacon is registered.
735
- # Corresponds to the JSON property `beaconName`
822
+ # The name of this level.
823
+ # Corresponds to the JSON property `name`
736
824
  # @return [String]
737
- attr_accessor :beacon_name
738
-
739
- # Attachments matching the type(s) requested. May be empty if no attachment
740
- # types were requested, or if none matched.
741
- # Corresponds to the JSON property `attachments`
742
- # @return [Array<Google::Apis::ProximitybeaconV1beta1::AttachmentInfo>]
743
- attr_accessor :attachments
825
+ attr_accessor :name
744
826
 
745
827
  def initialize(**args)
746
828
  update!(**args)
@@ -748,28 +830,18 @@ module Google
748
830
 
749
831
  # Update properties of this object
750
832
  def update!(**args)
751
- @advertised_id = args[:advertised_id] if args.key?(:advertised_id)
752
- @beacon_name = args[:beacon_name] if args.key?(:beacon_name)
753
- @attachments = args[:attachments] if args.key?(:attachments)
833
+ @name = args[:name] if args.key?(:name)
754
834
  end
755
835
  end
756
836
 
757
- # A subset of attachment information served via the `beaconinfo.getforobserved`
758
- # method, used when your users encounter your beacons.
759
- class AttachmentInfo
837
+ # Response to ListNamespacesRequest that contains all the project's namespaces.
838
+ class ListNamespacesResponse
760
839
  include Google::Apis::Core::Hashable
761
840
 
762
- # Specifies what kind of attachment this is. Tells a client how to interpret the
763
- # `data` field. Format is namespace/type, for example scrupulous-wombat-12345/
764
- # welcome-message
765
- # Corresponds to the JSON property `namespacedType`
766
- # @return [String]
767
- attr_accessor :namespaced_type
768
-
769
- # An opaque data container for client-provided data.
770
- # Corresponds to the JSON property `data`
771
- # @return [String]
772
- attr_accessor :data
841
+ # The attachments that corresponded to the request params.
842
+ # Corresponds to the JSON property `namespaces`
843
+ # @return [Array<Google::Apis::ProximitybeaconV1beta1::Namespace>]
844
+ attr_accessor :namespaces
773
845
 
774
846
  def initialize(**args)
775
847
  update!(**args)
@@ -777,8 +849,7 @@ module Google
777
849
 
778
850
  # Update properties of this object
779
851
  def update!(**args)
780
- @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
781
- @data = args[:data] if args.key?(:data)
852
+ @namespaces = args[:namespaces] if args.key?(:namespaces)
782
853
  end
783
854
  end
784
855
  end