google-api-client 0.11.3 → 0.12.0

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