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