google-api-client 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -22,12 +22,6 @@ module Google
22
22
  module Apis
23
23
  module ProximitybeaconV1beta1
24
24
 
25
- class GetInfoForObservedBeaconsResponse
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
25
  class Beacon
32
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
27
 
@@ -58,25 +52,25 @@ module Google
58
52
  include Google::Apis::Core::JsonObjectSupport
59
53
  end
60
54
 
61
- class ListBeaconsResponse
55
+ class Diagnostics
62
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
57
 
64
58
  include Google::Apis::Core::JsonObjectSupport
65
59
  end
66
60
 
67
- class Diagnostics
61
+ class ListBeaconsResponse
68
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
63
 
70
64
  include Google::Apis::Core::JsonObjectSupport
71
65
  end
72
66
 
73
- class Empty
67
+ class GetInfoForObservedBeaconsRequest
74
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
69
 
76
70
  include Google::Apis::Core::JsonObjectSupport
77
71
  end
78
72
 
79
- class GetInfoForObservedBeaconsRequest
73
+ class Empty
80
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
75
 
82
76
  include Google::Apis::Core::JsonObjectSupport
@@ -112,25 +106,25 @@ module Google
112
106
  include Google::Apis::Core::JsonObjectSupport
113
107
  end
114
108
 
115
- class AttachmentInfo
109
+ class BeaconInfo
116
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
111
 
118
112
  include Google::Apis::Core::JsonObjectSupport
119
113
  end
120
114
 
121
- class BeaconInfo
115
+ class AttachmentInfo
122
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
117
 
124
118
  include Google::Apis::Core::JsonObjectSupport
125
119
  end
126
120
 
127
- class EphemeralIdRegistrationParams
121
+ class DeleteAttachmentsResponse
128
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
123
 
130
124
  include Google::Apis::Core::JsonObjectSupport
131
125
  end
132
126
 
133
- class DeleteAttachmentsResponse
127
+ class EphemeralIdRegistrationParams
134
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
129
 
136
130
  include Google::Apis::Core::JsonObjectSupport
@@ -149,31 +143,29 @@ module Google
149
143
  end
150
144
 
151
145
  class GetInfoForObservedBeaconsResponse
152
- # @private
153
- class Representation < Google::Apis::Core::JsonRepresentation
154
- collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
155
147
 
156
- end
148
+ include Google::Apis::Core::JsonObjectSupport
157
149
  end
158
150
 
159
151
  class Beacon
160
152
  # @private
161
153
  class Representation < Google::Apis::Core::JsonRepresentation
154
+ property :beacon_name, as: 'beaconName'
155
+ property :expected_stability, as: 'expectedStability'
162
156
  property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
163
157
 
164
- property :provisioning_key, :base64 => true, as: 'provisioningKey'
165
158
  property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
166
159
 
167
- property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
168
-
160
+ property :provisioning_key, :base64 => true, as: 'provisioningKey'
169
161
  property :description, as: 'description'
170
162
  property :place_id, as: 'placeId'
163
+ property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
164
+
171
165
  hash :properties, as: 'properties'
172
166
  property :status, as: 'status'
173
167
  property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation
174
168
 
175
- property :beacon_name, as: 'beaconName'
176
- property :expected_stability, as: 'expectedStability'
177
169
  end
178
170
  end
179
171
 
@@ -209,29 +201,23 @@ module Google
209
201
  end
210
202
  end
211
203
 
212
- class ListBeaconsResponse
213
- # @private
214
- class Representation < Google::Apis::Core::JsonRepresentation
215
- property :next_page_token, as: 'nextPageToken'
216
- collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
217
-
218
- property :total_count, as: 'totalCount'
219
- end
220
- end
221
-
222
204
  class Diagnostics
223
205
  # @private
224
206
  class Representation < Google::Apis::Core::JsonRepresentation
207
+ property :beacon_name, as: 'beaconName'
225
208
  collection :alerts, as: 'alerts'
226
209
  property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
227
210
 
228
- property :beacon_name, as: 'beaconName'
229
211
  end
230
212
  end
231
213
 
232
- class Empty
214
+ class ListBeaconsResponse
233
215
  # @private
234
216
  class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :next_page_token, as: 'nextPageToken'
218
+ collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::Beacon, decorator: Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
219
+
220
+ property :total_count, :numeric_string => true, as: 'totalCount'
235
221
  end
236
222
  end
237
223
 
@@ -244,6 +230,12 @@ module Google
244
230
  end
245
231
  end
246
232
 
233
+ class Empty
234
+ # @private
235
+ class Representation < Google::Apis::Core::JsonRepresentation
236
+ end
237
+ end
238
+
247
239
  class BeaconAttachment
248
240
  # @private
249
241
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -257,20 +249,20 @@ module Google
257
249
  class EphemeralIdRegistration
258
250
  # @private
259
251
  class Representation < Google::Apis::Core::JsonRepresentation
252
+ property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey'
253
+ property :initial_clock_value, :numeric_string => true, as: 'initialClockValue'
254
+ property :rotation_period_exponent, as: 'rotationPeriodExponent'
260
255
  property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
261
256
  property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey'
262
257
  property :initial_eid, :base64 => true, as: 'initialEid'
263
- property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey'
264
- property :initial_clock_value, as: 'initialClockValue'
265
- property :rotation_period_exponent, as: 'rotationPeriodExponent'
266
258
  end
267
259
  end
268
260
 
269
261
  class LatLng
270
262
  # @private
271
263
  class Representation < Google::Apis::Core::JsonRepresentation
272
- property :latitude, as: 'latitude'
273
264
  property :longitude, as: 'longitude'
265
+ property :latitude, as: 'latitude'
274
266
  end
275
267
  end
276
268
 
@@ -290,31 +282,22 @@ module Google
290
282
  end
291
283
  end
292
284
 
293
- class AttachmentInfo
294
- # @private
295
- class Representation < Google::Apis::Core::JsonRepresentation
296
- property :namespaced_type, as: 'namespacedType'
297
- property :data, :base64 => true, as: 'data'
298
- end
299
- end
300
-
301
285
  class BeaconInfo
302
286
  # @private
303
287
  class Representation < Google::Apis::Core::JsonRepresentation
288
+ property :beacon_name, as: 'beaconName'
304
289
  property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
305
290
 
306
291
  collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
307
292
 
308
- property :beacon_name, as: 'beaconName'
309
293
  end
310
294
  end
311
295
 
312
- class EphemeralIdRegistrationParams
296
+ class AttachmentInfo
313
297
  # @private
314
298
  class Representation < Google::Apis::Core::JsonRepresentation
315
- property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
316
- property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
317
- property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
299
+ property :data, :base64 => true, as: 'data'
300
+ property :namespaced_type, as: 'namespacedType'
318
301
  end
319
302
  end
320
303
 
@@ -325,22 +308,39 @@ module Google
325
308
  end
326
309
  end
327
310
 
328
- class Observation
311
+ class EphemeralIdRegistrationParams
329
312
  # @private
330
313
  class Representation < Google::Apis::Core::JsonRepresentation
331
- property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
314
+ property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
315
+ property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
316
+ property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
317
+ end
318
+ end
332
319
 
320
+ class Observation
321
+ # @private
322
+ class Representation < Google::Apis::Core::JsonRepresentation
333
323
  property :telemetry, :base64 => true, as: 'telemetry'
334
324
  property :timestamp_ms, as: 'timestampMs'
325
+ property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
326
+
335
327
  end
336
328
  end
337
329
 
338
330
  class ListDiagnosticsResponse
339
331
  # @private
340
332
  class Representation < Google::Apis::Core::JsonRepresentation
333
+ property :next_page_token, as: 'nextPageToken'
341
334
  collection :diagnostics, as: 'diagnostics', class: Google::Apis::ProximitybeaconV1beta1::Diagnostics, decorator: Google::Apis::ProximitybeaconV1beta1::Diagnostics::Representation
342
335
 
343
- property :next_page_token, as: 'nextPageToken'
336
+ end
337
+ end
338
+
339
+ class GetInfoForObservedBeaconsResponse
340
+ # @private
341
+ class Representation < Google::Apis::Core::JsonRepresentation
342
+ collection :beacons, as: 'beacons', class: Google::Apis::ProximitybeaconV1beta1::BeaconInfo, decorator: Google::Apis::ProximitybeaconV1beta1::BeaconInfo::Representation
343
+
344
344
  end
345
345
  end
346
346
  end
@@ -32,130 +32,19 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/beacons/proximity/
34
34
  class ProximitybeaconService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
35
  # @return [String]
41
36
  # Available to use for quota purposes for server-side applications. Can be any
42
37
  # arbitrary string assigned to a user, but should not exceed 40 characters.
43
38
  attr_accessor :quota_user
44
39
 
40
+ # @return [String]
41
+ # API key. Your API key identifies your project and provides you with API access,
42
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
+ attr_accessor :key
44
+
45
45
  def initialize
46
46
  super('https://proximitybeacon.googleapis.com/', '')
47
- end
48
-
49
- # Given one or more beacon observations, returns any beacon information
50
- # and attachments accessible to your application. Authorize by using the
51
- # [API key](https://developers.google.com/beacons/proximity/how-tos/authorizing#
52
- # APIKey)
53
- # for the application.
54
- # @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object
55
- # @param [String] quota_user
56
- # Available to use for quota purposes for server-side applications. Can be any
57
- # arbitrary string assigned to a user, but should not exceed 40 characters.
58
- # @param [String] fields
59
- # Selector specifying which fields to include in a partial response.
60
- # @param [Google::Apis::RequestOptions] options
61
- # Request-specific options
62
- #
63
- # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object
65
- # @yieldparam err [StandardError] error object if request failed
66
- #
67
- # @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse]
68
- #
69
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
- # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
73
- command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options)
74
- command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation
75
- command.request_object = get_info_for_observed_beacons_request_object
76
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation
77
- command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse
78
- command.query['quotaUser'] = quota_user unless quota_user.nil?
79
- command.query['fields'] = fields unless fields.nil?
80
- execute_or_queue_command(command, &block)
81
- end
82
-
83
- # Lists all attachment namespaces owned by your Google Developers Console
84
- # project. Attachment data associated with a beacon must include a
85
- # namespaced type, and the namespace must be owned by your project.
86
- # Authenticate using an [OAuth access token](https://developers.google.com/
87
- # identity/protocols/OAuth2)
88
- # from a signed-in user with **viewer**, **Is owner** or **Can edit**
89
- # permissions in the Google Developers Console project.
90
- # @param [String] project_id
91
- # The project id to list namespaces under.
92
- # Optional.
93
- # @param [String] quota_user
94
- # Available to use for quota purposes for server-side applications. Can be any
95
- # arbitrary string assigned to a user, but should not exceed 40 characters.
96
- # @param [String] fields
97
- # Selector specifying which fields to include in a partial response.
98
- # @param [Google::Apis::RequestOptions] options
99
- # Request-specific options
100
- #
101
- # @yield [result, err] Result & error if block supplied
102
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
103
- # @yieldparam err [StandardError] error object if request failed
104
- #
105
- # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
106
- #
107
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
- # @raise [Google::Apis::AuthorizationError] Authorization is required
110
- def list_namespaces(project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
111
- command = make_simple_command(:get, 'v1beta1/namespaces', options)
112
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
113
- command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
114
- command.query['projectId'] = project_id unless project_id.nil?
115
- command.query['quotaUser'] = quota_user unless quota_user.nil?
116
- command.query['fields'] = fields unless fields.nil?
117
- execute_or_queue_command(command, &block)
118
- end
119
-
120
- # Updates the information about the specified namespace. Only the namespace
121
- # visibility can be updated.
122
- # @param [String] namespace_name
123
- # Resource name of this namespace. Namespaces names have the format:
124
- # <code>namespaces/<var>namespace</var></code>.
125
- # @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
126
- # @param [String] project_id
127
- # The project id of the namespace to update. If the project id is not
128
- # specified then the project making the request is used. The project id
129
- # must match the project that owns the beacon.
130
- # Optional.
131
- # @param [String] quota_user
132
- # Available to use for quota purposes for server-side applications. Can be any
133
- # arbitrary string assigned to a user, but should not exceed 40 characters.
134
- # @param [String] fields
135
- # Selector specifying which fields to include in a partial response.
136
- # @param [Google::Apis::RequestOptions] options
137
- # Request-specific options
138
- #
139
- # @yield [result, err] Result & error if block supplied
140
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
141
- # @yieldparam err [StandardError] error object if request failed
142
- #
143
- # @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
144
- #
145
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
- # @raise [Google::Apis::AuthorizationError] Authorization is required
148
- def update_namespace(namespace_name, namespace_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
149
- command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
150
- command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
151
- command.request_object = namespace_object
152
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
153
- command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
154
- command.params['namespaceName'] = namespace_name unless namespace_name.nil?
155
- command.query['projectId'] = project_id unless project_id.nil?
156
- command.query['quotaUser'] = quota_user unless quota_user.nil?
157
- command.query['fields'] = fields unless fields.nil?
158
- execute_or_queue_command(command, &block)
47
+ @batch_path = 'batch'
159
48
  end
160
49
 
161
50
  # Gets the Proximity Beacon API's current public key and associated
@@ -191,206 +80,6 @@ module Google
191
80
  execute_or_queue_command(command, &block)
192
81
  end
193
82
 
194
- # Searches the beacon registry for beacons that match the given search
195
- # criteria. Only those beacons that the client has permission to list
196
- # will be returned.
197
- # Authenticate using an [OAuth access token](https://developers.google.com/
198
- # identity/protocols/OAuth2)
199
- # from a signed-in user with **viewer**, **Is owner** or **Can edit**
200
- # permissions in the Google Developers Console project.
201
- # @param [String] q
202
- # Filter query string that supports the following field filters:
203
- # * **description:`"<string>"`**
204
- # For example: **description:"Room 3"**
205
- # Returns beacons whose description matches tokens in the string "Room 3"
206
- # (not necessarily that exact string).
207
- # The string must be double-quoted.
208
- # * **status:`<enum>`**
209
- # For example: **status:active**
210
- # Returns beacons whose status matches the given value. Values must be
211
- # one of the Beacon.Status enum values (case insensitive). Accepts
212
- # multiple filters which will be combined with OR logic.
213
- # * **stability:`<enum>`**
214
- # For example: **stability:mobile**
215
- # Returns beacons whose expected stability matches the given value.
216
- # Values must be one of the Beacon.Stability enum values (case
217
- # insensitive). Accepts multiple filters which will be combined with
218
- # OR logic.
219
- # * **place\_id:`"<string>"`**
220
- # For example: **place\_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="**
221
- # Returns beacons explicitly registered at the given place, expressed as
222
- # a Place ID obtained from [Google Places API](/places/place-id). Does not
223
- # match places inside the given place. Does not consider the beacon's
224
- # actual location (which may be different from its registered place).
225
- # Accepts multiple filters that will be combined with OR logic. The place
226
- # ID must be double-quoted.
227
- # * **registration\_time`[<|>|<=|>=]<integer>`**
228
- # For example: **registration\_time>=1433116800**
229
- # Returns beacons whose registration time matches the given filter.
230
- # Supports the operators: <, >, <=, and >=. Timestamp must be expressed as
231
- # an integer number of seconds since midnight January 1, 1970 UTC. Accepts
232
- # at most two filters that will be combined with AND logic, to support
233
- # "between" semantics. If more than two are supplied, the latter ones are
234
- # ignored.
235
- # * **lat:`<double> lng:<double> radius:<integer>`**
236
- # For example: **lat:51.1232343 lng:-1.093852 radius:1000**
237
- # Returns beacons whose registered location is within the given circle.
238
- # When any of these fields are given, all are required. Latitude and
239
- # longitude must be decimal degrees between -90.0 and 90.0 and between
240
- # -180.0 and 180.0 respectively. Radius must be an integer number of
241
- # meters between 10 and 1,000,000 (1000 km).
242
- # * **property:`"<string>=<string>"`**
243
- # For example: **property:"battery-type=CR2032"**
244
- # Returns beacons which have a property of the given name and value.
245
- # Supports multiple filters which will be combined with OR logic.
246
- # The entire name=value string must be double-quoted as one string.
247
- # * **attachment\_type:`"<string>"`**
248
- # For example: **attachment_type:"my-namespace/my-type"**
249
- # Returns beacons having at least one attachment of the given namespaced
250
- # type. Supports "any within this namespace" via the partial wildcard
251
- # syntax: "my-namespace/*". Supports multiple filters which will be
252
- # combined with OR logic. The string must be double-quoted.
253
- # * **indoor\_level:`"<string>"`**
254
- # For example: **indoor\_level:"1"**
255
- # Returns beacons which are located on the given indoor level. Accepts
256
- # multiple filters that will be combined with OR logic.
257
- # Multiple filters on the same field are combined with OR logic (except
258
- # registration_time which is combined with AND logic).
259
- # Multiple filters on different fields are combined with AND logic.
260
- # Filters should be separated by spaces.
261
- # As with any HTTP query string parameter, the whole filter expression must
262
- # be URL-encoded.
263
- # Example REST request:
264
- # `GET /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000`
265
- # @param [Fixnum] page_size
266
- # The maximum number of records to return for this request, up to a
267
- # server-defined upper limit.
268
- # @param [String] project_id
269
- # The project id to list beacons under. If not present then the project
270
- # credential that made the request is used as the project.
271
- # Optional.
272
- # @param [String] page_token
273
- # A pagination token obtained from a previous request to list beacons.
274
- # @param [String] quota_user
275
- # Available to use for quota purposes for server-side applications. Can be any
276
- # arbitrary string assigned to a user, but should not exceed 40 characters.
277
- # @param [String] fields
278
- # Selector specifying which fields to include in a partial response.
279
- # @param [Google::Apis::RequestOptions] options
280
- # Request-specific options
281
- #
282
- # @yield [result, err] Result & error if block supplied
283
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse] parsed result object
284
- # @yieldparam err [StandardError] error object if request failed
285
- #
286
- # @return [Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse]
287
- #
288
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
289
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
290
- # @raise [Google::Apis::AuthorizationError] Authorization is required
291
- def list_beacons(q: nil, page_size: nil, project_id: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
292
- command = make_simple_command(:get, 'v1beta1/beacons', options)
293
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse::Representation
294
- command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse
295
- command.query['q'] = q unless q.nil?
296
- command.query['pageSize'] = page_size unless page_size.nil?
297
- command.query['projectId'] = project_id unless project_id.nil?
298
- command.query['pageToken'] = page_token unless page_token.nil?
299
- command.query['quotaUser'] = quota_user unless quota_user.nil?
300
- command.query['fields'] = fields unless fields.nil?
301
- execute_or_queue_command(command, &block)
302
- end
303
-
304
- # Registers a previously unregistered beacon given its `advertisedId`.
305
- # These IDs are unique within the system. An ID can be registered only once.
306
- # Authenticate using an [OAuth access token](https://developers.google.com/
307
- # identity/protocols/OAuth2)
308
- # from a signed-in user with **Is owner** or **Can edit** permissions in the
309
- # Google Developers Console project.
310
- # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
311
- # @param [String] project_id
312
- # The project id of the project the beacon will be registered to. If
313
- # the project id is not specified then the project making the request
314
- # is used.
315
- # Optional.
316
- # @param [String] quota_user
317
- # Available to use for quota purposes for server-side applications. Can be any
318
- # arbitrary string assigned to a user, but should not exceed 40 characters.
319
- # @param [String] fields
320
- # Selector specifying which fields to include in a partial response.
321
- # @param [Google::Apis::RequestOptions] options
322
- # Request-specific options
323
- #
324
- # @yield [result, err] Result & error if block supplied
325
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
326
- # @yieldparam err [StandardError] error object if request failed
327
- #
328
- # @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
329
- #
330
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
331
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
332
- # @raise [Google::Apis::AuthorizationError] Authorization is required
333
- def register_beacon(beacon_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
334
- command = make_simple_command(:post, 'v1beta1/beacons:register', options)
335
- command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
336
- command.request_object = beacon_object
337
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
338
- command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
339
- command.query['projectId'] = project_id unless project_id.nil?
340
- command.query['quotaUser'] = quota_user unless quota_user.nil?
341
- command.query['fields'] = fields unless fields.nil?
342
- execute_or_queue_command(command, &block)
343
- end
344
-
345
- # Activates a beacon. A beacon that is active will return information
346
- # and attachment data when queried via `beaconinfo.getforobserved`.
347
- # Calling this method on an already active beacon will do nothing (but
348
- # will return a successful response code).
349
- # Authenticate using an [OAuth access token](https://developers.google.com/
350
- # identity/protocols/OAuth2)
351
- # from a signed-in user with **Is owner** or **Can edit** permissions in the
352
- # Google Developers Console project.
353
- # @param [String] beacon_name
354
- # Beacon that should be activated. A beacon name has the format
355
- # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
356
- # the beacon and N is a code for the beacon's type. Possible values are
357
- # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
358
- # for AltBeacon. For Eddystone-EID beacons, you may use either the
359
- # current EID or the beacon's "stable" UID.
360
- # Required.
361
- # @param [String] project_id
362
- # The project id of the beacon to activate. If the project id is not
363
- # specified then the project making the request is used. The project id
364
- # must match the project that owns the beacon.
365
- # Optional.
366
- # @param [String] quota_user
367
- # Available to use for quota purposes for server-side applications. Can be any
368
- # arbitrary string assigned to a user, but should not exceed 40 characters.
369
- # @param [String] fields
370
- # Selector specifying which fields to include in a partial response.
371
- # @param [Google::Apis::RequestOptions] options
372
- # Request-specific options
373
- #
374
- # @yield [result, err] Result & error if block supplied
375
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
376
- # @yieldparam err [StandardError] error object if request failed
377
- #
378
- # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
379
- #
380
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
381
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
382
- # @raise [Google::Apis::AuthorizationError] Authorization is required
383
- def activate_beacon(beacon_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
384
- command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options)
385
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
386
- command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
387
- command.params['beaconName'] = beacon_name unless beacon_name.nil?
388
- command.query['projectId'] = project_id unless project_id.nil?
389
- command.query['quotaUser'] = quota_user unless quota_user.nil?
390
- command.query['fields'] = fields unless fields.nil?
391
- execute_or_queue_command(command, &block)
392
- end
393
-
394
83
  # Returns detailed information about the specified beacon.
395
84
  # Authenticate using an [OAuth access token](https://developers.google.com/
396
85
  # identity/protocols/OAuth2)
@@ -545,6 +234,53 @@ module Google
545
234
  execute_or_queue_command(command, &block)
546
235
  end
547
236
 
237
+ # Deletes the specified beacon including all diagnostics data for the beacon
238
+ # as well as any attachments on the beacon (including those belonging to
239
+ # other projects). This operation cannot be undone.
240
+ # Authenticate using an [OAuth access token](https://developers.google.com/
241
+ # identity/protocols/OAuth2)
242
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
243
+ # Google Developers Console project.
244
+ # @param [String] beacon_name
245
+ # Beacon that should be deleted. A beacon name has the format
246
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
247
+ # the beacon and N is a code for the beacon's type. Possible values are
248
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
249
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
250
+ # current EID or the beacon's "stable" UID.
251
+ # Required.
252
+ # @param [String] project_id
253
+ # The project id of the beacon to delete. If not provided, the project
254
+ # that is making the request is used.
255
+ # Optional.
256
+ # @param [String] quota_user
257
+ # Available to use for quota purposes for server-side applications. Can be any
258
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
259
+ # @param [String] fields
260
+ # Selector specifying which fields to include in a partial response.
261
+ # @param [Google::Apis::RequestOptions] options
262
+ # Request-specific options
263
+ #
264
+ # @yield [result, err] Result & error if block supplied
265
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
266
+ # @yieldparam err [StandardError] error object if request failed
267
+ #
268
+ # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
269
+ #
270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
273
+ def delete_beacon(beacon_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
274
+ command = make_simple_command(:delete, 'v1beta1/{+beaconName}', options)
275
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
276
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
277
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
278
+ command.query['projectId'] = project_id unless project_id.nil?
279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
+ command.query['fields'] = fields unless fields.nil?
281
+ execute_or_queue_command(command, &block)
282
+ end
283
+
548
284
  # Deactivates a beacon. Once deactivated, the API will not return
549
285
  # information nor attachment data for the beacon when queried via
550
286
  # `beaconinfo.getforobserved`. Calling this method on an already inactive
@@ -594,24 +330,127 @@ module Google
594
330
  execute_or_queue_command(command, &block)
595
331
  end
596
332
 
597
- # Deletes the specified beacon including all diagnostics data for the beacon
598
- # as well as any attachments on the beacon (including those belonging to
599
- # other projects). This operation cannot be undone.
333
+ # Searches the beacon registry for beacons that match the given search
334
+ # criteria. Only those beacons that the client has permission to list
335
+ # will be returned.
336
+ # Authenticate using an [OAuth access token](https://developers.google.com/
337
+ # identity/protocols/OAuth2)
338
+ # from a signed-in user with **viewer**, **Is owner** or **Can edit**
339
+ # permissions in the Google Developers Console project.
340
+ # @param [String] page_token
341
+ # A pagination token obtained from a previous request to list beacons.
342
+ # @param [String] q
343
+ # Filter query string that supports the following field filters:
344
+ # * **description:`"<string>"`**
345
+ # For example: **description:"Room 3"**
346
+ # Returns beacons whose description matches tokens in the string "Room 3"
347
+ # (not necessarily that exact string).
348
+ # The string must be double-quoted.
349
+ # * **status:`<enum>`**
350
+ # For example: **status:active**
351
+ # Returns beacons whose status matches the given value. Values must be
352
+ # one of the Beacon.Status enum values (case insensitive). Accepts
353
+ # multiple filters which will be combined with OR logic.
354
+ # * **stability:`<enum>`**
355
+ # For example: **stability:mobile**
356
+ # Returns beacons whose expected stability matches the given value.
357
+ # Values must be one of the Beacon.Stability enum values (case
358
+ # insensitive). Accepts multiple filters which will be combined with
359
+ # OR logic.
360
+ # * **place\_id:`"<string>"`**
361
+ # For example: **place\_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="**
362
+ # Returns beacons explicitly registered at the given place, expressed as
363
+ # a Place ID obtained from [Google Places API](/places/place-id). Does not
364
+ # match places inside the given place. Does not consider the beacon's
365
+ # actual location (which may be different from its registered place).
366
+ # Accepts multiple filters that will be combined with OR logic. The place
367
+ # ID must be double-quoted.
368
+ # * **registration\_time`[<|>|<=|>=]<integer>`**
369
+ # For example: **registration\_time>=1433116800**
370
+ # Returns beacons whose registration time matches the given filter.
371
+ # Supports the operators: <, >, <=, and >=. Timestamp must be expressed as
372
+ # an integer number of seconds since midnight January 1, 1970 UTC. Accepts
373
+ # at most two filters that will be combined with AND logic, to support
374
+ # "between" semantics. If more than two are supplied, the latter ones are
375
+ # ignored.
376
+ # * **lat:`<double> lng:<double> radius:<integer>`**
377
+ # For example: **lat:51.1232343 lng:-1.093852 radius:1000**
378
+ # Returns beacons whose registered location is within the given circle.
379
+ # When any of these fields are given, all are required. Latitude and
380
+ # longitude must be decimal degrees between -90.0 and 90.0 and between
381
+ # -180.0 and 180.0 respectively. Radius must be an integer number of
382
+ # meters between 10 and 1,000,000 (1000 km).
383
+ # * **property:`"<string>=<string>"`**
384
+ # For example: **property:"battery-type=CR2032"**
385
+ # Returns beacons which have a property of the given name and value.
386
+ # Supports multiple filters which will be combined with OR logic.
387
+ # The entire name=value string must be double-quoted as one string.
388
+ # * **attachment\_type:`"<string>"`**
389
+ # For example: **attachment_type:"my-namespace/my-type"**
390
+ # Returns beacons having at least one attachment of the given namespaced
391
+ # type. Supports "any within this namespace" via the partial wildcard
392
+ # syntax: "my-namespace/*". Supports multiple filters which will be
393
+ # combined with OR logic. The string must be double-quoted.
394
+ # * **indoor\_level:`"<string>"`**
395
+ # For example: **indoor\_level:"1"**
396
+ # Returns beacons which are located on the given indoor level. Accepts
397
+ # multiple filters that will be combined with OR logic.
398
+ # Multiple filters on the same field are combined with OR logic (except
399
+ # registration_time which is combined with AND logic).
400
+ # Multiple filters on different fields are combined with AND logic.
401
+ # Filters should be separated by spaces.
402
+ # As with any HTTP query string parameter, the whole filter expression must
403
+ # be URL-encoded.
404
+ # Example REST request:
405
+ # `GET /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000`
406
+ # @param [Fixnum] page_size
407
+ # The maximum number of records to return for this request, up to a
408
+ # server-defined upper limit.
409
+ # @param [String] project_id
410
+ # The project id to list beacons under. If not present then the project
411
+ # credential that made the request is used as the project.
412
+ # Optional.
413
+ # @param [String] quota_user
414
+ # Available to use for quota purposes for server-side applications. Can be any
415
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
416
+ # @param [String] fields
417
+ # Selector specifying which fields to include in a partial response.
418
+ # @param [Google::Apis::RequestOptions] options
419
+ # Request-specific options
420
+ #
421
+ # @yield [result, err] Result & error if block supplied
422
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse] parsed result object
423
+ # @yieldparam err [StandardError] error object if request failed
424
+ #
425
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse]
426
+ #
427
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
428
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
429
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
430
+ def list_beacons(page_token: nil, q: nil, page_size: nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
431
+ command = make_simple_command(:get, 'v1beta1/beacons', options)
432
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse::Representation
433
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse
434
+ command.query['pageToken'] = page_token unless page_token.nil?
435
+ command.query['q'] = q unless q.nil?
436
+ command.query['pageSize'] = page_size unless page_size.nil?
437
+ command.query['projectId'] = project_id unless project_id.nil?
438
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
439
+ command.query['fields'] = fields unless fields.nil?
440
+ execute_or_queue_command(command, &block)
441
+ end
442
+
443
+ # Registers a previously unregistered beacon given its `advertisedId`.
444
+ # These IDs are unique within the system. An ID can be registered only once.
600
445
  # Authenticate using an [OAuth access token](https://developers.google.com/
601
446
  # identity/protocols/OAuth2)
602
447
  # from a signed-in user with **Is owner** or **Can edit** permissions in the
603
448
  # Google Developers Console project.
604
- # @param [String] beacon_name
605
- # Beacon that should be deleted. A beacon name has the format
606
- # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
607
- # the beacon and N is a code for the beacon's type. Possible values are
608
- # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
609
- # for AltBeacon. For Eddystone-EID beacons, you may use either the
610
- # current EID or the beacon's "stable" UID.
611
- # Required.
449
+ # @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
612
450
  # @param [String] project_id
613
- # The project id of the beacon to delete. If not provided, the project
614
- # that is making the request is used.
451
+ # The project id of the project the beacon will be registered to. If
452
+ # the project id is not specified then the project making the request
453
+ # is used.
615
454
  # Optional.
616
455
  # @param [String] quota_user
617
456
  # Available to use for quota purposes for server-side applications. Can be any
@@ -622,47 +461,47 @@ module Google
622
461
  # Request-specific options
623
462
  #
624
463
  # @yield [result, err] Result & error if block supplied
625
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
464
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Beacon] parsed result object
626
465
  # @yieldparam err [StandardError] error object if request failed
627
466
  #
628
- # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
467
+ # @return [Google::Apis::ProximitybeaconV1beta1::Beacon]
629
468
  #
630
469
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
631
470
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
632
471
  # @raise [Google::Apis::AuthorizationError] Authorization is required
633
- def delete_beacon(beacon_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
634
- command = make_simple_command(:delete, 'v1beta1/{+beaconName}', options)
635
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
636
- command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
637
- command.params['beaconName'] = beacon_name unless beacon_name.nil?
472
+ def register_beacon(beacon_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
473
+ command = make_simple_command(:post, 'v1beta1/beacons:register', options)
474
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
475
+ command.request_object = beacon_object
476
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
477
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
638
478
  command.query['projectId'] = project_id unless project_id.nil?
639
479
  command.query['quotaUser'] = quota_user unless quota_user.nil?
640
480
  command.query['fields'] = fields unless fields.nil?
641
481
  execute_or_queue_command(command, &block)
642
482
  end
643
483
 
644
- # List the diagnostics for a single beacon. You can also list diagnostics for
645
- # all the beacons owned by your Google Developers Console project by using
646
- # the beacon name `beacons/-`.
484
+ # Activates a beacon. A beacon that is active will return information
485
+ # and attachment data when queried via `beaconinfo.getforobserved`.
486
+ # Calling this method on an already active beacon will do nothing (but
487
+ # will return a successful response code).
647
488
  # Authenticate using an [OAuth access token](https://developers.google.com/
648
489
  # identity/protocols/OAuth2)
649
- # from a signed-in user with **viewer**, **Is owner** or **Can edit**
650
- # permissions in the Google Developers Console project.
490
+ # from a signed-in user with **Is owner** or **Can edit** permissions in the
491
+ # Google Developers Console project.
651
492
  # @param [String] beacon_name
652
- # Beacon that the diagnostics are for.
653
- # @param [Fixnum] page_size
654
- # Specifies the maximum number of results to return. Defaults to
655
- # 10. Maximum 1000. Optional.
656
- # @param [String] alert_filter
657
- # Requests only beacons that have the given alert. For example, to find
658
- # beacons that have low batteries use `alert_filter=LOW_BATTERY`.
493
+ # Beacon that should be activated. A beacon name has the format
494
+ # "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
495
+ # the beacon and N is a code for the beacon's type. Possible values are
496
+ # `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
497
+ # for AltBeacon. For Eddystone-EID beacons, you may use either the
498
+ # current EID or the beacon's "stable" UID.
499
+ # Required.
659
500
  # @param [String] project_id
660
- # Requests only diagnostic records for the given project id. If not set,
661
- # then the project making the request will be used for looking up
662
- # diagnostic records. Optional.
663
- # @param [String] page_token
664
- # Requests results that occur after the `page_token`, obtained from the
665
- # response to a previous request. Optional.
501
+ # The project id of the beacon to activate. If the project id is not
502
+ # specified then the project making the request is used. The project id
503
+ # must match the project that owns the beacon.
504
+ # Optional.
666
505
  # @param [String] quota_user
667
506
  # Available to use for quota purposes for server-side applications. Can be any
668
507
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -672,23 +511,20 @@ module Google
672
511
  # Request-specific options
673
512
  #
674
513
  # @yield [result, err] Result & error if block supplied
675
- # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse] parsed result object
514
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Empty] parsed result object
676
515
  # @yieldparam err [StandardError] error object if request failed
677
516
  #
678
- # @return [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse]
517
+ # @return [Google::Apis::ProximitybeaconV1beta1::Empty]
679
518
  #
680
519
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
520
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
521
  # @raise [Google::Apis::AuthorizationError] Authorization is required
683
- def list_beacon_diagnostics(beacon_name, page_size: nil, alert_filter: nil, project_id: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
684
- command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options)
685
- command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation
686
- command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse
522
+ def activate_beacon(beacon_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
523
+ command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options)
524
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
525
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
687
526
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
688
- command.query['pageSize'] = page_size unless page_size.nil?
689
- command.query['alertFilter'] = alert_filter unless alert_filter.nil?
690
527
  command.query['projectId'] = project_id unless project_id.nil?
691
- command.query['pageToken'] = page_token unless page_token.nil?
692
528
  command.query['quotaUser'] = quota_user unless quota_user.nil?
693
529
  command.query['fields'] = fields unless fields.nil?
694
530
  execute_or_queue_command(command, &block)
@@ -760,10 +596,6 @@ module Google
760
596
  # for AltBeacon. For Eddystone-EID beacons, you may use either the
761
597
  # current EID or the beacon's "stable" UID.
762
598
  # Required.
763
- # @param [String] namespaced_type
764
- # Specifies the namespace and type of attachment to include in response in
765
- # <var>namespace/type</var> format. Accepts `*/*` to specify
766
- # "all types in all namespaces".
767
599
  # @param [String] project_id
768
600
  # The project id to list beacon attachments under. This field can be
769
601
  # used when "*" is specified to mean all attachment namespaces. Projects
@@ -771,6 +603,10 @@ module Google
771
603
  # specified and the projectId string is empty, then the project
772
604
  # making the request is used.
773
605
  # Optional.
606
+ # @param [String] namespaced_type
607
+ # Specifies the namespace and type of attachment to include in response in
608
+ # <var>namespace/type</var> format. Accepts `*/*` to specify
609
+ # "all types in all namespaces".
774
610
  # @param [String] quota_user
775
611
  # Available to use for quota purposes for server-side applications. Can be any
776
612
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -788,13 +624,13 @@ module Google
788
624
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
789
625
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
790
626
  # @raise [Google::Apis::AuthorizationError] Authorization is required
791
- def list_beacon_attachments(beacon_name, namespaced_type: nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
627
+ def list_beacon_attachments(beacon_name, project_id: nil, namespaced_type: nil, quota_user: nil, fields: nil, options: nil, &block)
792
628
  command = make_simple_command(:get, 'v1beta1/{+beaconName}/attachments', options)
793
629
  command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse::Representation
794
630
  command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse
795
631
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
796
- command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
797
632
  command.query['projectId'] = project_id unless project_id.nil?
633
+ command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
798
634
  command.query['quotaUser'] = quota_user unless quota_user.nil?
799
635
  command.query['fields'] = fields unless fields.nil?
800
636
  execute_or_queue_command(command, &block)
@@ -877,11 +713,6 @@ module Google
877
713
  # for AltBeacon. For Eddystone-EID beacons, you may use either the
878
714
  # current EID or the beacon's "stable" UID.
879
715
  # Required.
880
- # @param [String] namespaced_type
881
- # Specifies the namespace and type of attachments to delete in
882
- # `namespace/type` format. Accepts `*/*` to specify
883
- # "all types in all namespaces".
884
- # Optional.
885
716
  # @param [String] project_id
886
717
  # The project id to delete beacon attachments under. This field can be
887
718
  # used when "*" is specified to mean all attachment namespaces. Projects
@@ -889,6 +720,11 @@ module Google
889
720
  # specified and the projectId string is empty, then the project
890
721
  # making the request is used.
891
722
  # Optional.
723
+ # @param [String] namespaced_type
724
+ # Specifies the namespace and type of attachments to delete in
725
+ # `namespace/type` format. Accepts `*/*` to specify
726
+ # "all types in all namespaces".
727
+ # Optional.
892
728
  # @param [String] quota_user
893
729
  # Available to use for quota purposes for server-side applications. Can be any
894
730
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -906,12 +742,177 @@ module Google
906
742
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
907
743
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
908
744
  # @raise [Google::Apis::AuthorizationError] Authorization is required
909
- def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
745
+ def batch_beacon_attachment_delete(beacon_name, project_id: nil, namespaced_type: nil, quota_user: nil, fields: nil, options: nil, &block)
910
746
  command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options)
911
747
  command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation
912
748
  command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse
913
749
  command.params['beaconName'] = beacon_name unless beacon_name.nil?
750
+ command.query['projectId'] = project_id unless project_id.nil?
914
751
  command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
752
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
753
+ command.query['fields'] = fields unless fields.nil?
754
+ execute_or_queue_command(command, &block)
755
+ end
756
+
757
+ # List the diagnostics for a single beacon. You can also list diagnostics for
758
+ # all the beacons owned by your Google Developers Console project by using
759
+ # the beacon name `beacons/-`.
760
+ # Authenticate using an [OAuth access token](https://developers.google.com/
761
+ # identity/protocols/OAuth2)
762
+ # from a signed-in user with **viewer**, **Is owner** or **Can edit**
763
+ # permissions in the Google Developers Console project.
764
+ # @param [String] beacon_name
765
+ # Beacon that the diagnostics are for.
766
+ # @param [String] page_token
767
+ # Requests results that occur after the `page_token`, obtained from the
768
+ # response to a previous request. Optional.
769
+ # @param [Fixnum] page_size
770
+ # Specifies the maximum number of results to return. Defaults to
771
+ # 10. Maximum 1000. Optional.
772
+ # @param [String] alert_filter
773
+ # Requests only beacons that have the given alert. For example, to find
774
+ # beacons that have low batteries use `alert_filter=LOW_BATTERY`.
775
+ # @param [String] project_id
776
+ # Requests only diagnostic records for the given project id. If not set,
777
+ # then the project making the request will be used for looking up
778
+ # diagnostic records. Optional.
779
+ # @param [String] quota_user
780
+ # Available to use for quota purposes for server-side applications. Can be any
781
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
782
+ # @param [String] fields
783
+ # Selector specifying which fields to include in a partial response.
784
+ # @param [Google::Apis::RequestOptions] options
785
+ # Request-specific options
786
+ #
787
+ # @yield [result, err] Result & error if block supplied
788
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse] parsed result object
789
+ # @yieldparam err [StandardError] error object if request failed
790
+ #
791
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse]
792
+ #
793
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
794
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
795
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
796
+ def list_beacon_diagnostics(beacon_name, page_token: nil, page_size: nil, alert_filter: nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
797
+ command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options)
798
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation
799
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse
800
+ command.params['beaconName'] = beacon_name unless beacon_name.nil?
801
+ command.query['pageToken'] = page_token unless page_token.nil?
802
+ command.query['pageSize'] = page_size unless page_size.nil?
803
+ command.query['alertFilter'] = alert_filter unless alert_filter.nil?
804
+ command.query['projectId'] = project_id unless project_id.nil?
805
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
806
+ command.query['fields'] = fields unless fields.nil?
807
+ execute_or_queue_command(command, &block)
808
+ end
809
+
810
+ # Given one or more beacon observations, returns any beacon information
811
+ # and attachments accessible to your application. Authorize by using the
812
+ # [API key](https://developers.google.com/beacons/proximity/how-tos/authorizing#
813
+ # APIKey)
814
+ # for the application.
815
+ # @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object
816
+ # @param [String] quota_user
817
+ # Available to use for quota purposes for server-side applications. Can be any
818
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
819
+ # @param [String] fields
820
+ # Selector specifying which fields to include in a partial response.
821
+ # @param [Google::Apis::RequestOptions] options
822
+ # Request-specific options
823
+ #
824
+ # @yield [result, err] Result & error if block supplied
825
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse] parsed result object
826
+ # @yieldparam err [StandardError] error object if request failed
827
+ #
828
+ # @return [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse]
829
+ #
830
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
831
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
832
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
833
+ def getforobserved_beaconinfo(get_info_for_observed_beacons_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
834
+ command = make_simple_command(:post, 'v1beta1/beaconinfo:getforobserved', options)
835
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest::Representation
836
+ command.request_object = get_info_for_observed_beacons_request_object
837
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse::Representation
838
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsResponse
839
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
840
+ command.query['fields'] = fields unless fields.nil?
841
+ execute_or_queue_command(command, &block)
842
+ end
843
+
844
+ # Updates the information about the specified namespace. Only the namespace
845
+ # visibility can be updated.
846
+ # @param [String] namespace_name
847
+ # Resource name of this namespace. Namespaces names have the format:
848
+ # <code>namespaces/<var>namespace</var></code>.
849
+ # @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
850
+ # @param [String] project_id
851
+ # The project id of the namespace to update. If the project id is not
852
+ # specified then the project making the request is used. The project id
853
+ # must match the project that owns the beacon.
854
+ # Optional.
855
+ # @param [String] quota_user
856
+ # Available to use for quota purposes for server-side applications. Can be any
857
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
858
+ # @param [String] fields
859
+ # Selector specifying which fields to include in a partial response.
860
+ # @param [Google::Apis::RequestOptions] options
861
+ # Request-specific options
862
+ #
863
+ # @yield [result, err] Result & error if block supplied
864
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
865
+ # @yieldparam err [StandardError] error object if request failed
866
+ #
867
+ # @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
868
+ #
869
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
870
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
871
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
872
+ def update_namespace(namespace_name, namespace_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
873
+ command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
874
+ command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
875
+ command.request_object = namespace_object
876
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
877
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
878
+ command.params['namespaceName'] = namespace_name unless namespace_name.nil?
879
+ command.query['projectId'] = project_id unless project_id.nil?
880
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
881
+ command.query['fields'] = fields unless fields.nil?
882
+ execute_or_queue_command(command, &block)
883
+ end
884
+
885
+ # Lists all attachment namespaces owned by your Google Developers Console
886
+ # project. Attachment data associated with a beacon must include a
887
+ # namespaced type, and the namespace must be owned by your project.
888
+ # Authenticate using an [OAuth access token](https://developers.google.com/
889
+ # identity/protocols/OAuth2)
890
+ # from a signed-in user with **viewer**, **Is owner** or **Can edit**
891
+ # permissions in the Google Developers Console project.
892
+ # @param [String] project_id
893
+ # The project id to list namespaces under.
894
+ # Optional.
895
+ # @param [String] quota_user
896
+ # Available to use for quota purposes for server-side applications. Can be any
897
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
898
+ # @param [String] fields
899
+ # Selector specifying which fields to include in a partial response.
900
+ # @param [Google::Apis::RequestOptions] options
901
+ # Request-specific options
902
+ #
903
+ # @yield [result, err] Result & error if block supplied
904
+ # @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
905
+ # @yieldparam err [StandardError] error object if request failed
906
+ #
907
+ # @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
908
+ #
909
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
910
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
911
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
912
+ def list_namespaces(project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
913
+ command = make_simple_command(:get, 'v1beta1/namespaces', options)
914
+ command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
915
+ command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
915
916
  command.query['projectId'] = project_id unless project_id.nil?
916
917
  command.query['quotaUser'] = quota_user unless quota_user.nil?
917
918
  command.query['fields'] = fields unless fields.nil?
@@ -921,8 +922,8 @@ module Google
921
922
  protected
922
923
 
923
924
  def apply_command_defaults(command)
924
- command.query['key'] = key unless key.nil?
925
925
  command.query['quotaUser'] = quota_user unless quota_user.nil?
926
+ command.query['key'] = key unless key.nil?
926
927
  end
927
928
  end
928
929
  end