google-api-client 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -0,0 +1,285 @@
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 SpectrumV1explorer
23
+ # Google Spectrum Database API
24
+ #
25
+ # API for spectrum-management functions.
26
+ #
27
+ # @example
28
+ # require 'google/apis/spectrum_v1explorer'
29
+ #
30
+ # Spectrum = Google::Apis::SpectrumV1explorer # Alias the module
31
+ # service = Spectrum::SpectrumService.new
32
+ #
33
+ # @see http://developers.google.com/spectrum
34
+ class SpectrumService < 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
+ # Overrides userIp if both are provided.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # IP address of the site where the request originates. Use this if you want to
48
+ # enforce per-user limits.
49
+ attr_accessor :user_ip
50
+
51
+ def initialize
52
+ super('https://www.googleapis.com/', 'spectrum/v1explorer/paws/')
53
+ @batch_path = 'batch'
54
+ end
55
+
56
+ # Requests information about the available spectrum for a device at a location.
57
+ # Requests from a fixed-mode device must include owner information so the device
58
+ # can be registered with the database.
59
+ # @param [Google::Apis::SpectrumV1explorer::PawsGetSpectrumRequest] paws_get_spectrum_request_object
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # Overrides userIp if both are provided.
66
+ # @param [String] user_ip
67
+ # IP address of the site where the request originates. Use this if you want to
68
+ # enforce per-user limits.
69
+ # @param [Google::Apis::RequestOptions] options
70
+ # Request-specific options
71
+ #
72
+ # @yield [result, err] Result & error if block supplied
73
+ # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse] parsed result object
74
+ # @yieldparam err [StandardError] error object if request failed
75
+ #
76
+ # @return [Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse]
77
+ #
78
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
81
+ def get_paw_spectrum(paws_get_spectrum_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
+ command = make_simple_command(:post, 'getSpectrum', options)
83
+ command.request_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumRequest::Representation
84
+ command.request_object = paws_get_spectrum_request_object
85
+ command.response_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse::Representation
86
+ command.response_class = Google::Apis::SpectrumV1explorer::PawsGetSpectrumResponse
87
+ command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ command.query['userIp'] = user_ip unless user_ip.nil?
90
+ execute_or_queue_command(command, &block)
91
+ end
92
+
93
+ # The Google Spectrum Database does not support batch requests, so this method
94
+ # always yields an UNIMPLEMENTED error.
95
+ # @param [Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchRequest] paws_get_spectrum_batch_request_object
96
+ # @param [String] fields
97
+ # Selector specifying which fields to include in a partial response.
98
+ # @param [String] quota_user
99
+ # Available to use for quota purposes for server-side applications. Can be any
100
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
101
+ # Overrides userIp if both are provided.
102
+ # @param [String] user_ip
103
+ # IP address of the site where the request originates. Use this if you want to
104
+ # enforce per-user limits.
105
+ # @param [Google::Apis::RequestOptions] options
106
+ # Request-specific options
107
+ #
108
+ # @yield [result, err] Result & error if block supplied
109
+ # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse] parsed result object
110
+ # @yieldparam err [StandardError] error object if request failed
111
+ #
112
+ # @return [Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse]
113
+ #
114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
117
+ def get_paw_spectrum_batch(paws_get_spectrum_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
118
+ command = make_simple_command(:post, 'getSpectrumBatch', options)
119
+ command.request_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchRequest::Representation
120
+ command.request_object = paws_get_spectrum_batch_request_object
121
+ command.response_representation = Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse::Representation
122
+ command.response_class = Google::Apis::SpectrumV1explorer::PawsGetSpectrumBatchResponse
123
+ command.query['fields'] = fields unless fields.nil?
124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
125
+ command.query['userIp'] = user_ip unless user_ip.nil?
126
+ execute_or_queue_command(command, &block)
127
+ end
128
+
129
+ # Initializes the connection between a white space device and the database.
130
+ # @param [Google::Apis::SpectrumV1explorer::PawsInitRequest] paws_init_request_object
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
133
+ # @param [String] quota_user
134
+ # Available to use for quota purposes for server-side applications. Can be any
135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
136
+ # Overrides userIp if both are provided.
137
+ # @param [String] user_ip
138
+ # IP address of the site where the request originates. Use this if you want to
139
+ # enforce per-user limits.
140
+ # @param [Google::Apis::RequestOptions] options
141
+ # Request-specific options
142
+ #
143
+ # @yield [result, err] Result & error if block supplied
144
+ # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsInitResponse] parsed result object
145
+ # @yieldparam err [StandardError] error object if request failed
146
+ #
147
+ # @return [Google::Apis::SpectrumV1explorer::PawsInitResponse]
148
+ #
149
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
150
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
151
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
152
+ def init_paw(paws_init_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
153
+ command = make_simple_command(:post, 'init', options)
154
+ command.request_representation = Google::Apis::SpectrumV1explorer::PawsInitRequest::Representation
155
+ command.request_object = paws_init_request_object
156
+ command.response_representation = Google::Apis::SpectrumV1explorer::PawsInitResponse::Representation
157
+ command.response_class = Google::Apis::SpectrumV1explorer::PawsInitResponse
158
+ command.query['fields'] = fields unless fields.nil?
159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
160
+ command.query['userIp'] = user_ip unless user_ip.nil?
161
+ execute_or_queue_command(command, &block)
162
+ end
163
+
164
+ # Notifies the database that the device has selected certain frequency ranges
165
+ # for transmission. Only to be invoked when required by the regulator. The
166
+ # Google Spectrum Database does not operate in domains that require notification,
167
+ # so this always yields an UNIMPLEMENTED error.
168
+ # @param [Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseRequest] paws_notify_spectrum_use_request_object
169
+ # @param [String] fields
170
+ # Selector specifying which fields to include in a partial response.
171
+ # @param [String] quota_user
172
+ # Available to use for quota purposes for server-side applications. Can be any
173
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
174
+ # Overrides userIp if both are provided.
175
+ # @param [String] user_ip
176
+ # IP address of the site where the request originates. Use this if you want to
177
+ # enforce per-user limits.
178
+ # @param [Google::Apis::RequestOptions] options
179
+ # Request-specific options
180
+ #
181
+ # @yield [result, err] Result & error if block supplied
182
+ # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse] parsed result object
183
+ # @yieldparam err [StandardError] error object if request failed
184
+ #
185
+ # @return [Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse]
186
+ #
187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
190
+ def notify_paw_spectrum_use(paws_notify_spectrum_use_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
191
+ command = make_simple_command(:post, 'notifySpectrumUse', options)
192
+ command.request_representation = Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseRequest::Representation
193
+ command.request_object = paws_notify_spectrum_use_request_object
194
+ command.response_representation = Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse::Representation
195
+ command.response_class = Google::Apis::SpectrumV1explorer::PawsNotifySpectrumUseResponse
196
+ command.query['fields'] = fields unless fields.nil?
197
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
198
+ command.query['userIp'] = user_ip unless user_ip.nil?
199
+ execute_or_queue_command(command, &block)
200
+ end
201
+
202
+ # The Google Spectrum Database implements registration in the getSpectrum method.
203
+ # As such this always returns an UNIMPLEMENTED error.
204
+ # @param [Google::Apis::SpectrumV1explorer::PawsRegisterRequest] paws_register_request_object
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
207
+ # @param [String] quota_user
208
+ # Available to use for quota purposes for server-side applications. Can be any
209
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
210
+ # Overrides userIp if both are provided.
211
+ # @param [String] user_ip
212
+ # IP address of the site where the request originates. Use this if you want to
213
+ # enforce per-user limits.
214
+ # @param [Google::Apis::RequestOptions] options
215
+ # Request-specific options
216
+ #
217
+ # @yield [result, err] Result & error if block supplied
218
+ # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsRegisterResponse] parsed result object
219
+ # @yieldparam err [StandardError] error object if request failed
220
+ #
221
+ # @return [Google::Apis::SpectrumV1explorer::PawsRegisterResponse]
222
+ #
223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
226
+ def register_paw(paws_register_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
227
+ command = make_simple_command(:post, 'register', options)
228
+ command.request_representation = Google::Apis::SpectrumV1explorer::PawsRegisterRequest::Representation
229
+ command.request_object = paws_register_request_object
230
+ command.response_representation = Google::Apis::SpectrumV1explorer::PawsRegisterResponse::Representation
231
+ command.response_class = Google::Apis::SpectrumV1explorer::PawsRegisterResponse
232
+ command.query['fields'] = fields unless fields.nil?
233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
234
+ command.query['userIp'] = user_ip unless user_ip.nil?
235
+ execute_or_queue_command(command, &block)
236
+ end
237
+
238
+ # Validates a device for white space use in accordance with regulatory rules.
239
+ # The Google Spectrum Database does not support master/slave configurations, so
240
+ # this always yields an UNIMPLEMENTED error.
241
+ # @param [Google::Apis::SpectrumV1explorer::PawsVerifyDeviceRequest] paws_verify_device_request_object
242
+ # @param [String] fields
243
+ # Selector specifying which fields to include in a partial response.
244
+ # @param [String] quota_user
245
+ # Available to use for quota purposes for server-side applications. Can be any
246
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
247
+ # Overrides userIp if both are provided.
248
+ # @param [String] user_ip
249
+ # IP address of the site where the request originates. Use this if you want to
250
+ # enforce per-user limits.
251
+ # @param [Google::Apis::RequestOptions] options
252
+ # Request-specific options
253
+ #
254
+ # @yield [result, err] Result & error if block supplied
255
+ # @yieldparam result [Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse] parsed result object
256
+ # @yieldparam err [StandardError] error object if request failed
257
+ #
258
+ # @return [Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse]
259
+ #
260
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
261
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
262
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
263
+ def verify_paw_device(paws_verify_device_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
264
+ command = make_simple_command(:post, 'verifyDevice', options)
265
+ command.request_representation = Google::Apis::SpectrumV1explorer::PawsVerifyDeviceRequest::Representation
266
+ command.request_object = paws_verify_device_request_object
267
+ command.response_representation = Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse::Representation
268
+ command.response_class = Google::Apis::SpectrumV1explorer::PawsVerifyDeviceResponse
269
+ command.query['fields'] = fields unless fields.nil?
270
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
271
+ command.query['userIp'] = user_ip unless user_ip.nil?
272
+ execute_or_queue_command(command, &block)
273
+ end
274
+
275
+ protected
276
+
277
+ def apply_command_defaults(command)
278
+ command.query['key'] = key unless key.nil?
279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
+ command.query['userIp'] = user_ip unless user_ip.nil?
281
+ end
282
+ end
283
+ end
284
+ end
285
+ end
@@ -0,0 +1,34 @@
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/speech_v1/service.rb'
16
+ require 'google/apis/speech_v1/classes.rb'
17
+ require 'google/apis/speech_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud Speech API
22
+ #
23
+ # Converts audio to text by applying powerful neural network models.
24
+ #
25
+ # @see https://cloud.google.com/speech/
26
+ module SpeechV1
27
+ VERSION = 'V1'
28
+ REVISION = '20170807'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,572 @@
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 SpeechV1
24
+
25
+ # The request message for Operations.CancelOperation.
26
+ class CancelOperationRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ def initialize(**args)
30
+ update!(**args)
31
+ end
32
+
33
+ # Update properties of this object
34
+ def update!(**args)
35
+ end
36
+ end
37
+
38
+ # A generic empty message that you can re-use to avoid defining duplicated
39
+ # empty messages in your APIs. A typical example is to use it as the request
40
+ # or the response type of an API method. For instance:
41
+ # service Foo `
42
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
43
+ # `
44
+ # The JSON representation for `Empty` is empty JSON object ````.
45
+ class Empty
46
+ include Google::Apis::Core::Hashable
47
+
48
+ def initialize(**args)
49
+ update!(**args)
50
+ end
51
+
52
+ # Update properties of this object
53
+ def update!(**args)
54
+ end
55
+ end
56
+
57
+ # The response message for Operations.ListOperations.
58
+ class ListOperationsResponse
59
+ include Google::Apis::Core::Hashable
60
+
61
+ # The standard List next-page token.
62
+ # Corresponds to the JSON property `nextPageToken`
63
+ # @return [String]
64
+ attr_accessor :next_page_token
65
+
66
+ # A list of operations that matches the specified filter in the request.
67
+ # Corresponds to the JSON property `operations`
68
+ # @return [Array<Google::Apis::SpeechV1::Operation>]
69
+ attr_accessor :operations
70
+
71
+ def initialize(**args)
72
+ update!(**args)
73
+ end
74
+
75
+ # Update properties of this object
76
+ def update!(**args)
77
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
78
+ @operations = args[:operations] if args.key?(:operations)
79
+ end
80
+ end
81
+
82
+ # The top-level message sent by the client for the `LongRunningRecognize`
83
+ # method.
84
+ class LongRunningRecognizeRequest
85
+ include Google::Apis::Core::Hashable
86
+
87
+ # Contains audio data in the encoding specified in the `RecognitionConfig`.
88
+ # Either `content` or `uri` must be supplied. Supplying both or neither
89
+ # returns google.rpc.Code.INVALID_ARGUMENT. See
90
+ # [audio limits](https://cloud.google.com/speech/limits#content).
91
+ # Corresponds to the JSON property `audio`
92
+ # @return [Google::Apis::SpeechV1::RecognitionAudio]
93
+ attr_accessor :audio
94
+
95
+ # Provides information to the recognizer that specifies how to process the
96
+ # request.
97
+ # Corresponds to the JSON property `config`
98
+ # @return [Google::Apis::SpeechV1::RecognitionConfig]
99
+ attr_accessor :config
100
+
101
+ def initialize(**args)
102
+ update!(**args)
103
+ end
104
+
105
+ # Update properties of this object
106
+ def update!(**args)
107
+ @audio = args[:audio] if args.key?(:audio)
108
+ @config = args[:config] if args.key?(:config)
109
+ end
110
+ end
111
+
112
+ # This resource represents a long-running operation that is the result of a
113
+ # network API call.
114
+ class Operation
115
+ include Google::Apis::Core::Hashable
116
+
117
+ # If the value is `false`, it means the operation is still in progress.
118
+ # If true, the operation is completed, and either `error` or `response` is
119
+ # available.
120
+ # Corresponds to the JSON property `done`
121
+ # @return [Boolean]
122
+ attr_accessor :done
123
+ alias_method :done?, :done
124
+
125
+ # The `Status` type defines a logical error model that is suitable for different
126
+ # programming environments, including REST APIs and RPC APIs. It is used by
127
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
128
+ # - Simple to use and understand for most users
129
+ # - Flexible enough to meet unexpected needs
130
+ # # Overview
131
+ # The `Status` message contains three pieces of data: error code, error message,
132
+ # and error details. The error code should be an enum value of
133
+ # google.rpc.Code, but it may accept additional error codes if needed. The
134
+ # error message should be a developer-facing English message that helps
135
+ # developers *understand* and *resolve* the error. If a localized user-facing
136
+ # error message is needed, put the localized message in the error details or
137
+ # localize it in the client. The optional error details may contain arbitrary
138
+ # information about the error. There is a predefined set of error detail types
139
+ # in the package `google.rpc` that can be used for common error conditions.
140
+ # # Language mapping
141
+ # The `Status` message is the logical representation of the error model, but it
142
+ # is not necessarily the actual wire format. When the `Status` message is
143
+ # exposed in different client libraries and different wire protocols, it can be
144
+ # mapped differently. For example, it will likely be mapped to some exceptions
145
+ # in Java, but more likely mapped to some error codes in C.
146
+ # # Other uses
147
+ # The error model and the `Status` message can be used in a variety of
148
+ # environments, either with or without APIs, to provide a
149
+ # consistent developer experience across different environments.
150
+ # Example uses of this error model include:
151
+ # - Partial errors. If a service needs to return partial errors to the client,
152
+ # it may embed the `Status` in the normal response to indicate the partial
153
+ # errors.
154
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
155
+ # have a `Status` message for error reporting.
156
+ # - Batch operations. If a client uses batch request and batch response, the
157
+ # `Status` message should be used directly inside batch response, one for
158
+ # each error sub-response.
159
+ # - Asynchronous operations. If an API call embeds asynchronous operation
160
+ # results in its response, the status of those operations should be
161
+ # represented directly using the `Status` message.
162
+ # - Logging. If some API errors are stored in logs, the message `Status` could
163
+ # be used directly after any stripping needed for security/privacy reasons.
164
+ # Corresponds to the JSON property `error`
165
+ # @return [Google::Apis::SpeechV1::Status]
166
+ attr_accessor :error
167
+
168
+ # Service-specific metadata associated with the operation. It typically
169
+ # contains progress information and common metadata such as create time.
170
+ # Some services might not provide such metadata. Any method that returns a
171
+ # long-running operation should document the metadata type, if any.
172
+ # Corresponds to the JSON property `metadata`
173
+ # @return [Hash<String,Object>]
174
+ attr_accessor :metadata
175
+
176
+ # The server-assigned name, which is only unique within the same service that
177
+ # originally returns it. If you use the default HTTP mapping, the
178
+ # `name` should have the format of `operations/some/unique/name`.
179
+ # Corresponds to the JSON property `name`
180
+ # @return [String]
181
+ attr_accessor :name
182
+
183
+ # The normal response of the operation in case of success. If the original
184
+ # method returns no data on success, such as `Delete`, the response is
185
+ # `google.protobuf.Empty`. If the original method is standard
186
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
187
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
188
+ # is the original method name. For example, if the original method name
189
+ # is `TakeSnapshot()`, the inferred response type is
190
+ # `TakeSnapshotResponse`.
191
+ # Corresponds to the JSON property `response`
192
+ # @return [Hash<String,Object>]
193
+ attr_accessor :response
194
+
195
+ def initialize(**args)
196
+ update!(**args)
197
+ end
198
+
199
+ # Update properties of this object
200
+ def update!(**args)
201
+ @done = args[:done] if args.key?(:done)
202
+ @error = args[:error] if args.key?(:error)
203
+ @metadata = args[:metadata] if args.key?(:metadata)
204
+ @name = args[:name] if args.key?(:name)
205
+ @response = args[:response] if args.key?(:response)
206
+ end
207
+ end
208
+
209
+ # Contains audio data in the encoding specified in the `RecognitionConfig`.
210
+ # Either `content` or `uri` must be supplied. Supplying both or neither
211
+ # returns google.rpc.Code.INVALID_ARGUMENT. See
212
+ # [audio limits](https://cloud.google.com/speech/limits#content).
213
+ class RecognitionAudio
214
+ include Google::Apis::Core::Hashable
215
+
216
+ # The audio data bytes encoded as specified in
217
+ # `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
218
+ # pure binary representation, whereas JSON representations use base64.
219
+ # Corresponds to the JSON property `content`
220
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
221
+ # @return [String]
222
+ attr_accessor :content
223
+
224
+ # URI that points to a file that contains audio data bytes as specified in
225
+ # `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
226
+ # supported, which must be specified in the following format:
227
+ # `gs://bucket_name/object_name` (other URI formats return
228
+ # google.rpc.Code.INVALID_ARGUMENT). For more information, see
229
+ # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
230
+ # Corresponds to the JSON property `uri`
231
+ # @return [String]
232
+ attr_accessor :uri
233
+
234
+ def initialize(**args)
235
+ update!(**args)
236
+ end
237
+
238
+ # Update properties of this object
239
+ def update!(**args)
240
+ @content = args[:content] if args.key?(:content)
241
+ @uri = args[:uri] if args.key?(:uri)
242
+ end
243
+ end
244
+
245
+ # Provides information to the recognizer that specifies how to process the
246
+ # request.
247
+ class RecognitionConfig
248
+ include Google::Apis::Core::Hashable
249
+
250
+ # *Optional* If `true`, the top result includes a list of words and
251
+ # the start and end time offsets (timestamps) for those words. If
252
+ # `false`, no word-level time offset information is returned. The default is
253
+ # `false`.
254
+ # Corresponds to the JSON property `enableWordTimeOffsets`
255
+ # @return [Boolean]
256
+ attr_accessor :enable_word_time_offsets
257
+ alias_method :enable_word_time_offsets?, :enable_word_time_offsets
258
+
259
+ # *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
260
+ # Corresponds to the JSON property `encoding`
261
+ # @return [String]
262
+ attr_accessor :encoding
263
+
264
+ # *Required* The language of the supplied audio as a
265
+ # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
266
+ # Example: "en-US".
267
+ # See [Language Support](https://cloud.google.com/speech/docs/languages)
268
+ # for a list of the currently supported language codes.
269
+ # Corresponds to the JSON property `languageCode`
270
+ # @return [String]
271
+ attr_accessor :language_code
272
+
273
+ # *Optional* Maximum number of recognition hypotheses to be returned.
274
+ # Specifically, the maximum number of `SpeechRecognitionAlternative` messages
275
+ # within each `SpeechRecognitionResult`.
276
+ # The server may return fewer than `max_alternatives`.
277
+ # Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
278
+ # one. If omitted, will return a maximum of one.
279
+ # Corresponds to the JSON property `maxAlternatives`
280
+ # @return [Fixnum]
281
+ attr_accessor :max_alternatives
282
+
283
+ # *Optional* If set to `true`, the server will attempt to filter out
284
+ # profanities, replacing all but the initial character in each filtered word
285
+ # with asterisks, e.g. "f***". If set to `false` or omitted, profanities
286
+ # won't be filtered out.
287
+ # Corresponds to the JSON property `profanityFilter`
288
+ # @return [Boolean]
289
+ attr_accessor :profanity_filter
290
+ alias_method :profanity_filter?, :profanity_filter
291
+
292
+ # *Required* Sample rate in Hertz of the audio data sent in all
293
+ # `RecognitionAudio` messages. Valid values are: 8000-48000.
294
+ # 16000 is optimal. For best results, set the sampling rate of the audio
295
+ # source to 16000 Hz. If that's not possible, use the native sample rate of
296
+ # the audio source (instead of re-sampling).
297
+ # Corresponds to the JSON property `sampleRateHertz`
298
+ # @return [Fixnum]
299
+ attr_accessor :sample_rate_hertz
300
+
301
+ # *Optional* A means to provide context to assist the speech recognition.
302
+ # Corresponds to the JSON property `speechContexts`
303
+ # @return [Array<Google::Apis::SpeechV1::SpeechContext>]
304
+ attr_accessor :speech_contexts
305
+
306
+ def initialize(**args)
307
+ update!(**args)
308
+ end
309
+
310
+ # Update properties of this object
311
+ def update!(**args)
312
+ @enable_word_time_offsets = args[:enable_word_time_offsets] if args.key?(:enable_word_time_offsets)
313
+ @encoding = args[:encoding] if args.key?(:encoding)
314
+ @language_code = args[:language_code] if args.key?(:language_code)
315
+ @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
316
+ @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
317
+ @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
318
+ @speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
319
+ end
320
+ end
321
+
322
+ # The top-level message sent by the client for the `Recognize` method.
323
+ class RecognizeRequest
324
+ include Google::Apis::Core::Hashable
325
+
326
+ # Contains audio data in the encoding specified in the `RecognitionConfig`.
327
+ # Either `content` or `uri` must be supplied. Supplying both or neither
328
+ # returns google.rpc.Code.INVALID_ARGUMENT. See
329
+ # [audio limits](https://cloud.google.com/speech/limits#content).
330
+ # Corresponds to the JSON property `audio`
331
+ # @return [Google::Apis::SpeechV1::RecognitionAudio]
332
+ attr_accessor :audio
333
+
334
+ # Provides information to the recognizer that specifies how to process the
335
+ # request.
336
+ # Corresponds to the JSON property `config`
337
+ # @return [Google::Apis::SpeechV1::RecognitionConfig]
338
+ attr_accessor :config
339
+
340
+ def initialize(**args)
341
+ update!(**args)
342
+ end
343
+
344
+ # Update properties of this object
345
+ def update!(**args)
346
+ @audio = args[:audio] if args.key?(:audio)
347
+ @config = args[:config] if args.key?(:config)
348
+ end
349
+ end
350
+
351
+ # The only message returned to the client by the `Recognize` method. It
352
+ # contains the result as zero or more sequential `SpeechRecognitionResult`
353
+ # messages.
354
+ class RecognizeResponse
355
+ include Google::Apis::Core::Hashable
356
+
357
+ # *Output-only* Sequential list of transcription results corresponding to
358
+ # sequential portions of audio.
359
+ # Corresponds to the JSON property `results`
360
+ # @return [Array<Google::Apis::SpeechV1::SpeechRecognitionResult>]
361
+ attr_accessor :results
362
+
363
+ def initialize(**args)
364
+ update!(**args)
365
+ end
366
+
367
+ # Update properties of this object
368
+ def update!(**args)
369
+ @results = args[:results] if args.key?(:results)
370
+ end
371
+ end
372
+
373
+ # Provides "hints" to the speech recognizer to favor specific words and phrases
374
+ # in the results.
375
+ class SpeechContext
376
+ include Google::Apis::Core::Hashable
377
+
378
+ # *Optional* A list of strings containing words and phrases "hints" so that
379
+ # the speech recognition is more likely to recognize them. This can be used
380
+ # to improve the accuracy for specific words and phrases, for example, if
381
+ # specific commands are typically spoken by the user. This can also be used
382
+ # to add additional words to the vocabulary of the recognizer. See
383
+ # [usage limits](https://cloud.google.com/speech/limits#content).
384
+ # Corresponds to the JSON property `phrases`
385
+ # @return [Array<String>]
386
+ attr_accessor :phrases
387
+
388
+ def initialize(**args)
389
+ update!(**args)
390
+ end
391
+
392
+ # Update properties of this object
393
+ def update!(**args)
394
+ @phrases = args[:phrases] if args.key?(:phrases)
395
+ end
396
+ end
397
+
398
+ # Alternative hypotheses (a.k.a. n-best list).
399
+ class SpeechRecognitionAlternative
400
+ include Google::Apis::Core::Hashable
401
+
402
+ # *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
403
+ # indicates an estimated greater likelihood that the recognized words are
404
+ # correct. This field is typically provided only for the top hypothesis, and
405
+ # only for `is_final=true` results. Clients should not rely on the
406
+ # `confidence` field as it is not guaranteed to be accurate or consistent.
407
+ # The default of 0.0 is a sentinel value indicating `confidence` was not set.
408
+ # Corresponds to the JSON property `confidence`
409
+ # @return [Float]
410
+ attr_accessor :confidence
411
+
412
+ # *Output-only* Transcript text representing the words that the user spoke.
413
+ # Corresponds to the JSON property `transcript`
414
+ # @return [String]
415
+ attr_accessor :transcript
416
+
417
+ # *Output-only* A list of word-specific information for each recognized word.
418
+ # Corresponds to the JSON property `words`
419
+ # @return [Array<Google::Apis::SpeechV1::WordInfo>]
420
+ attr_accessor :words
421
+
422
+ def initialize(**args)
423
+ update!(**args)
424
+ end
425
+
426
+ # Update properties of this object
427
+ def update!(**args)
428
+ @confidence = args[:confidence] if args.key?(:confidence)
429
+ @transcript = args[:transcript] if args.key?(:transcript)
430
+ @words = args[:words] if args.key?(:words)
431
+ end
432
+ end
433
+
434
+ # A speech recognition result corresponding to a portion of the audio.
435
+ class SpeechRecognitionResult
436
+ include Google::Apis::Core::Hashable
437
+
438
+ # *Output-only* May contain one or more recognition hypotheses (up to the
439
+ # maximum specified in `max_alternatives`).
440
+ # These alternatives are ordered in terms of accuracy, with the top (first)
441
+ # alternative being the most probable, as ranked by the recognizer.
442
+ # Corresponds to the JSON property `alternatives`
443
+ # @return [Array<Google::Apis::SpeechV1::SpeechRecognitionAlternative>]
444
+ attr_accessor :alternatives
445
+
446
+ def initialize(**args)
447
+ update!(**args)
448
+ end
449
+
450
+ # Update properties of this object
451
+ def update!(**args)
452
+ @alternatives = args[:alternatives] if args.key?(:alternatives)
453
+ end
454
+ end
455
+
456
+ # The `Status` type defines a logical error model that is suitable for different
457
+ # programming environments, including REST APIs and RPC APIs. It is used by
458
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
459
+ # - Simple to use and understand for most users
460
+ # - Flexible enough to meet unexpected needs
461
+ # # Overview
462
+ # The `Status` message contains three pieces of data: error code, error message,
463
+ # and error details. The error code should be an enum value of
464
+ # google.rpc.Code, but it may accept additional error codes if needed. The
465
+ # error message should be a developer-facing English message that helps
466
+ # developers *understand* and *resolve* the error. If a localized user-facing
467
+ # error message is needed, put the localized message in the error details or
468
+ # localize it in the client. The optional error details may contain arbitrary
469
+ # information about the error. There is a predefined set of error detail types
470
+ # in the package `google.rpc` that can be used for common error conditions.
471
+ # # Language mapping
472
+ # The `Status` message is the logical representation of the error model, but it
473
+ # is not necessarily the actual wire format. When the `Status` message is
474
+ # exposed in different client libraries and different wire protocols, it can be
475
+ # mapped differently. For example, it will likely be mapped to some exceptions
476
+ # in Java, but more likely mapped to some error codes in C.
477
+ # # Other uses
478
+ # The error model and the `Status` message can be used in a variety of
479
+ # environments, either with or without APIs, to provide a
480
+ # consistent developer experience across different environments.
481
+ # Example uses of this error model include:
482
+ # - Partial errors. If a service needs to return partial errors to the client,
483
+ # it may embed the `Status` in the normal response to indicate the partial
484
+ # errors.
485
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
486
+ # have a `Status` message for error reporting.
487
+ # - Batch operations. If a client uses batch request and batch response, the
488
+ # `Status` message should be used directly inside batch response, one for
489
+ # each error sub-response.
490
+ # - Asynchronous operations. If an API call embeds asynchronous operation
491
+ # results in its response, the status of those operations should be
492
+ # represented directly using the `Status` message.
493
+ # - Logging. If some API errors are stored in logs, the message `Status` could
494
+ # be used directly after any stripping needed for security/privacy reasons.
495
+ class Status
496
+ include Google::Apis::Core::Hashable
497
+
498
+ # The status code, which should be an enum value of google.rpc.Code.
499
+ # Corresponds to the JSON property `code`
500
+ # @return [Fixnum]
501
+ attr_accessor :code
502
+
503
+ # A list of messages that carry the error details. There is a common set of
504
+ # message types for APIs to use.
505
+ # Corresponds to the JSON property `details`
506
+ # @return [Array<Hash<String,Object>>]
507
+ attr_accessor :details
508
+
509
+ # A developer-facing error message, which should be in English. Any
510
+ # user-facing error message should be localized and sent in the
511
+ # google.rpc.Status.details field, or localized by the client.
512
+ # Corresponds to the JSON property `message`
513
+ # @return [String]
514
+ attr_accessor :message
515
+
516
+ def initialize(**args)
517
+ update!(**args)
518
+ end
519
+
520
+ # Update properties of this object
521
+ def update!(**args)
522
+ @code = args[:code] if args.key?(:code)
523
+ @details = args[:details] if args.key?(:details)
524
+ @message = args[:message] if args.key?(:message)
525
+ end
526
+ end
527
+
528
+ # Word-specific information for recognized words. Word information is only
529
+ # included in the response when certain request parameters are set, such
530
+ # as `enable_word_time_offsets`.
531
+ class WordInfo
532
+ include Google::Apis::Core::Hashable
533
+
534
+ # *Output-only* Time offset relative to the beginning of the audio,
535
+ # and corresponding to the end of the spoken word.
536
+ # This field is only set if `enable_word_time_offsets=true` and only
537
+ # in the top hypothesis.
538
+ # This is an experimental feature and the accuracy of the time offset can
539
+ # vary.
540
+ # Corresponds to the JSON property `endTime`
541
+ # @return [String]
542
+ attr_accessor :end_time
543
+
544
+ # *Output-only* Time offset relative to the beginning of the audio,
545
+ # and corresponding to the start of the spoken word.
546
+ # This field is only set if `enable_word_time_offsets=true` and only
547
+ # in the top hypothesis.
548
+ # This is an experimental feature and the accuracy of the time offset can
549
+ # vary.
550
+ # Corresponds to the JSON property `startTime`
551
+ # @return [String]
552
+ attr_accessor :start_time
553
+
554
+ # *Output-only* The word corresponding to this set of information.
555
+ # Corresponds to the JSON property `word`
556
+ # @return [String]
557
+ attr_accessor :word
558
+
559
+ def initialize(**args)
560
+ update!(**args)
561
+ end
562
+
563
+ # Update properties of this object
564
+ def update!(**args)
565
+ @end_time = args[:end_time] if args.key?(:end_time)
566
+ @start_time = args[:start_time] if args.key?(:start_time)
567
+ @word = args[:word] if args.key?(:word)
568
+ end
569
+ end
570
+ end
571
+ end
572
+ end