google-api-client 0.28.4 → 0.29.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (750) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/build.bat +9 -6
  3. data/.kokoro/build.sh +2 -34
  4. data/.kokoro/continuous/common.cfg +6 -1
  5. data/.kokoro/continuous/linux.cfg +1 -1
  6. data/.kokoro/continuous/windows.cfg +17 -1
  7. data/.kokoro/osx.sh +2 -33
  8. data/.kokoro/presubmit/common.cfg +6 -1
  9. data/.kokoro/presubmit/linux.cfg +1 -1
  10. data/.kokoro/presubmit/windows.cfg +17 -1
  11. data/.kokoro/trampoline.bat +10 -0
  12. data/.kokoro/trampoline.sh +3 -23
  13. data/CHANGELOG.md +460 -0
  14. data/README.md +1 -1
  15. data/Rakefile +31 -0
  16. data/bin/generate-api +4 -2
  17. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -2
  18. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -1
  19. data/generated/google/apis/accessapproval_v1beta1/classes.rb +333 -0
  20. data/generated/google/apis/accessapproval_v1beta1/representations.rb +174 -0
  21. data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
  22. data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
  23. data/generated/google/apis/accesscontextmanager_v1/classes.rb +755 -0
  24. data/generated/google/apis/accesscontextmanager_v1/representations.rb +282 -0
  25. data/generated/google/apis/accesscontextmanager_v1/service.rb +788 -0
  26. data/generated/google/apis/accesscontextmanager_v1.rb +34 -0
  27. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +47 -31
  28. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +4 -0
  29. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +16 -16
  30. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  31. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +95 -200
  32. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -32
  33. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +64 -104
  34. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  35. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +7 -7
  36. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -21
  37. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -38
  38. data/generated/google/apis/adexperiencereport_v1/service.rb +2 -2
  39. data/generated/google/apis/admin_datatransfer_v1/service.rb +5 -5
  40. data/generated/google/apis/admin_directory_v1/classes.rb +5 -50
  41. data/generated/google/apis/admin_directory_v1/representations.rb +0 -2
  42. data/generated/google/apis/admin_directory_v1/service.rb +113 -113
  43. data/generated/google/apis/admin_directory_v1.rb +1 -1
  44. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  45. data/generated/google/apis/admin_reports_v1.rb +1 -1
  46. data/generated/google/apis/adsense_v1_4/service.rb +39 -39
  47. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -26
  48. data/generated/google/apis/alertcenter_v1beta1/classes.rb +101 -2
  49. data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
  50. data/generated/google/apis/alertcenter_v1beta1/service.rb +17 -16
  51. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  52. data/generated/google/apis/analytics_v2_4/service.rb +6 -6
  53. data/generated/google/apis/analytics_v3/service.rb +88 -88
  54. data/generated/google/apis/analyticsreporting_v4/classes.rb +638 -0
  55. data/generated/google/apis/analyticsreporting_v4/representations.rb +248 -0
  56. data/generated/google/apis/analyticsreporting_v4/service.rb +31 -1
  57. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  58. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +51 -11
  59. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  60. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +26 -26
  61. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +26 -30
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -14
  64. data/generated/google/apis/androidenterprise_v1/service.rb +85 -121
  65. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  66. data/generated/google/apis/androidmanagement_v1/classes.rb +358 -4
  67. data/generated/google/apis/androidmanagement_v1/representations.rb +163 -0
  68. data/generated/google/apis/androidmanagement_v1/service.rb +191 -21
  69. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  70. data/generated/google/apis/androidpublisher_v1/service.rb +2 -2
  71. data/generated/google/apis/androidpublisher_v1_1/service.rb +3 -3
  72. data/generated/google/apis/androidpublisher_v2/service.rb +64 -70
  73. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  74. data/generated/google/apis/androidpublisher_v3/classes.rb +113 -0
  75. data/generated/google/apis/androidpublisher_v3/representations.rb +58 -0
  76. data/generated/google/apis/androidpublisher_v3/service.rb +234 -64
  77. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  78. data/generated/google/apis/appengine_v1/classes.rb +45 -100
  79. data/generated/google/apis/appengine_v1/representations.rb +17 -35
  80. data/generated/google/apis/appengine_v1/service.rb +45 -39
  81. data/generated/google/apis/appengine_v1.rb +1 -1
  82. data/generated/google/apis/appengine_v1alpha/classes.rb +2 -99
  83. data/generated/google/apis/appengine_v1alpha/representations.rb +0 -35
  84. data/generated/google/apis/appengine_v1alpha/service.rb +15 -15
  85. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  86. data/generated/google/apis/appengine_v1beta/classes.rb +7 -102
  87. data/generated/google/apis/appengine_v1beta/representations.rb +0 -35
  88. data/generated/google/apis/appengine_v1beta/service.rb +45 -39
  89. data/generated/google/apis/appengine_v1beta.rb +1 -1
  90. data/generated/google/apis/appengine_v1beta4/service.rb +20 -20
  91. data/generated/google/apis/appengine_v1beta5/service.rb +20 -20
  92. data/generated/google/apis/appsactivity_v1/service.rb +5 -4
  93. data/generated/google/apis/appsactivity_v1.rb +1 -1
  94. data/generated/google/apis/appsmarket_v2/service.rb +3 -3
  95. data/generated/google/apis/appstate_v1/service.rb +5 -5
  96. data/generated/google/apis/bigquery_v2/classes.rb +1121 -114
  97. data/generated/google/apis/bigquery_v2/representations.rb +414 -26
  98. data/generated/google/apis/bigquery_v2/service.rb +184 -22
  99. data/generated/google/apis/bigquery_v2.rb +1 -1
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +88 -10
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +43 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +142 -34
  103. data/generated/google/apis/bigquerydatatransfer_v1.rb +3 -3
  104. data/generated/google/apis/bigtableadmin_v1/service.rb +3 -3
  105. data/generated/google/apis/bigtableadmin_v1.rb +2 -2
  106. data/generated/google/apis/bigtableadmin_v2/classes.rb +14 -14
  107. data/generated/google/apis/bigtableadmin_v2/service.rb +142 -33
  108. data/generated/google/apis/bigtableadmin_v2.rb +2 -2
  109. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +66 -6
  110. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +17 -0
  111. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +17 -13
  112. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  113. data/generated/google/apis/blogger_v2/service.rb +9 -9
  114. data/generated/google/apis/blogger_v3/service.rb +33 -33
  115. data/generated/google/apis/books_v1/service.rb +51 -51
  116. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  117. data/generated/google/apis/calendar_v3/service.rb +47 -47
  118. data/generated/google/apis/calendar_v3.rb +1 -1
  119. data/generated/google/apis/chat_v1/service.rb +8 -8
  120. data/generated/google/apis/civicinfo_v2/service.rb +5 -5
  121. data/generated/google/apis/classroom_v1/classes.rb +77 -0
  122. data/generated/google/apis/classroom_v1/representations.rb +32 -0
  123. data/generated/google/apis/classroom_v1/service.rb +276 -51
  124. data/generated/google/apis/classroom_v1.rb +7 -1
  125. data/generated/google/apis/cloudasset_v1/classes.rb +818 -0
  126. data/generated/google/apis/cloudasset_v1/representations.rb +264 -0
  127. data/generated/google/apis/cloudasset_v1/service.rb +191 -0
  128. data/generated/google/apis/cloudasset_v1.rb +34 -0
  129. data/generated/google/apis/cloudasset_v1beta1/classes.rb +33 -18
  130. data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
  131. data/generated/google/apis/cloudasset_v1beta1/service.rb +13 -13
  132. data/generated/google/apis/cloudasset_v1beta1.rb +2 -2
  133. data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
  134. data/generated/google/apis/cloudbilling_v1/service.rb +14 -14
  135. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  136. data/generated/google/apis/cloudbuild_v1/classes.rb +162 -11
  137. data/generated/google/apis/cloudbuild_v1/representations.rb +67 -0
  138. data/generated/google/apis/cloudbuild_v1/service.rb +21 -15
  139. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  140. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +7 -1
  141. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
  142. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +6 -6
  143. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  144. data/generated/google/apis/clouddebugger_v2/service.rb +8 -8
  145. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
  146. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +12 -11
  147. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  148. data/generated/google/apis/cloudfunctions_v1/classes.rb +21 -17
  149. data/generated/google/apis/cloudfunctions_v1/service.rb +22 -16
  150. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  151. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +20 -16
  152. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +17 -11
  153. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  154. data/generated/google/apis/cloudidentity_v1/classes.rb +14 -14
  155. data/generated/google/apis/cloudidentity_v1/service.rb +18 -27
  156. data/generated/google/apis/cloudidentity_v1.rb +7 -1
  157. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +11 -11
  158. data/generated/google/apis/cloudidentity_v1beta1/service.rb +15 -21
  159. data/generated/google/apis/cloudidentity_v1beta1.rb +7 -1
  160. data/generated/google/apis/cloudiot_v1/classes.rb +11 -11
  161. data/generated/google/apis/cloudiot_v1/service.rb +23 -330
  162. data/generated/google/apis/cloudiot_v1.rb +1 -1
  163. data/generated/google/apis/cloudkms_v1/classes.rb +7 -3
  164. data/generated/google/apis/cloudkms_v1/service.rb +30 -30
  165. data/generated/google/apis/cloudkms_v1.rb +1 -1
  166. data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +358 -0
  167. data/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb +123 -0
  168. data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +486 -0
  169. data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +35 -0
  170. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +1212 -0
  171. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +399 -0
  172. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1073 -0
  173. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +35 -0
  174. data/generated/google/apis/cloudprofiler_v2/service.rb +3 -3
  175. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +24 -22
  176. data/generated/google/apis/cloudresourcemanager_v1/service.rb +68 -59
  177. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  178. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +3 -3
  179. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +53 -42
  180. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  181. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +15 -16
  182. data/generated/google/apis/cloudresourcemanager_v2/service.rb +13 -13
  183. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  184. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +15 -16
  185. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +13 -13
  186. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  187. data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
  188. data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
  189. data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
  190. data/generated/google/apis/cloudscheduler_v1.rb +34 -0
  191. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +160 -44
  192. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +33 -0
  193. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +15 -12
  194. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  195. data/generated/google/apis/cloudsearch_v1/classes.rb +245 -59
  196. data/generated/google/apis/cloudsearch_v1/representations.rb +91 -0
  197. data/generated/google/apis/cloudsearch_v1/service.rb +86 -80
  198. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  199. data/generated/google/apis/cloudshell_v1/classes.rb +11 -11
  200. data/generated/google/apis/cloudshell_v1/service.rb +4 -4
  201. data/generated/google/apis/cloudshell_v1.rb +1 -1
  202. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +24 -11
  203. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +2 -0
  204. data/generated/google/apis/cloudshell_v1alpha1/service.rb +11 -10
  205. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  206. data/generated/google/apis/cloudtasks_v2/classes.rb +1436 -0
  207. data/generated/google/apis/cloudtasks_v2/representations.rb +408 -0
  208. data/generated/google/apis/cloudtasks_v2/service.rb +856 -0
  209. data/generated/google/apis/{partners_v2.rb → cloudtasks_v2.rb} +11 -9
  210. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +141 -102
  211. data/generated/google/apis/cloudtasks_v2beta2/service.rb +44 -43
  212. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  213. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +388 -108
  214. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +65 -0
  215. data/generated/google/apis/cloudtasks_v2beta3/service.rb +40 -39
  216. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  217. data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
  218. data/generated/google/apis/cloudtrace_v2/classes.rb +10 -10
  219. data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
  220. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  221. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
  222. data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
  223. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
  224. data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
  225. data/generated/google/apis/composer_v1/classes.rb +21 -15
  226. data/generated/google/apis/composer_v1/service.rb +9 -9
  227. data/generated/google/apis/composer_v1.rb +1 -1
  228. data/generated/google/apis/composer_v1beta1/classes.rb +175 -36
  229. data/generated/google/apis/composer_v1beta1/representations.rb +50 -0
  230. data/generated/google/apis/composer_v1beta1/service.rb +9 -9
  231. data/generated/google/apis/composer_v1beta1.rb +1 -1
  232. data/generated/google/apis/compute_alpha/classes.rb +10112 -7289
  233. data/generated/google/apis/compute_alpha/representations.rb +1337 -219
  234. data/generated/google/apis/compute_alpha/service.rb +4259 -2728
  235. data/generated/google/apis/compute_alpha.rb +1 -1
  236. data/generated/google/apis/compute_beta/classes.rb +4254 -2781
  237. data/generated/google/apis/compute_beta/representations.rb +853 -283
  238. data/generated/google/apis/compute_beta/service.rb +7077 -5955
  239. data/generated/google/apis/compute_beta.rb +1 -1
  240. data/generated/google/apis/compute_v1/classes.rb +1259 -93
  241. data/generated/google/apis/compute_v1/representations.rb +450 -1
  242. data/generated/google/apis/compute_v1/service.rb +1085 -400
  243. data/generated/google/apis/compute_v1.rb +1 -1
  244. data/generated/google/apis/container_v1/classes.rb +201 -22
  245. data/generated/google/apis/container_v1/representations.rb +69 -0
  246. data/generated/google/apis/container_v1/service.rb +151 -102
  247. data/generated/google/apis/container_v1.rb +1 -1
  248. data/generated/google/apis/container_v1beta1/classes.rb +215 -25
  249. data/generated/google/apis/container_v1beta1/representations.rb +86 -0
  250. data/generated/google/apis/container_v1beta1/service.rb +106 -106
  251. data/generated/google/apis/container_v1beta1.rb +1 -1
  252. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +26 -18
  253. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  254. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +33 -33
  255. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  256. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +226 -12
  257. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +58 -0
  258. data/generated/google/apis/containeranalysis_v1beta1/service.rb +24 -24
  259. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  260. data/generated/google/apis/content_v2/classes.rb +218 -101
  261. data/generated/google/apis/content_v2/representations.rb +49 -0
  262. data/generated/google/apis/content_v2/service.rb +189 -152
  263. data/generated/google/apis/content_v2.rb +1 -1
  264. data/generated/google/apis/content_v2_1/classes.rb +387 -216
  265. data/generated/google/apis/content_v2_1/representations.rb +131 -56
  266. data/generated/google/apis/content_v2_1/service.rb +190 -107
  267. data/generated/google/apis/content_v2_1.rb +1 -1
  268. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  269. data/generated/google/apis/dataflow_v1b3/classes.rb +148 -31
  270. data/generated/google/apis/dataflow_v1b3/representations.rb +45 -0
  271. data/generated/google/apis/dataflow_v1b3/service.rb +415 -56
  272. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  273. data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
  274. data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
  275. data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
  276. data/generated/google/apis/datafusion_v1beta1.rb +43 -0
  277. data/generated/google/apis/dataproc_v1/classes.rb +27 -22
  278. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  279. data/generated/google/apis/dataproc_v1/service.rb +261 -45
  280. data/generated/google/apis/dataproc_v1.rb +1 -1
  281. data/generated/google/apis/dataproc_v1beta2/classes.rb +534 -50
  282. data/generated/google/apis/dataproc_v1beta2/representations.rb +185 -7
  283. data/generated/google/apis/dataproc_v1beta2/service.rb +617 -51
  284. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  285. data/generated/google/apis/datastore_v1/classes.rb +20 -16
  286. data/generated/google/apis/datastore_v1/service.rb +15 -15
  287. data/generated/google/apis/datastore_v1.rb +1 -1
  288. data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
  289. data/generated/google/apis/datastore_v1beta1/service.rb +2 -2
  290. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  291. data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
  292. data/generated/google/apis/datastore_v1beta3/service.rb +7 -7
  293. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  294. data/generated/google/apis/deploymentmanager_alpha/service.rb +37 -37
  295. data/generated/google/apis/deploymentmanager_v2/service.rb +18 -18
  296. data/generated/google/apis/deploymentmanager_v2beta/service.rb +32 -32
  297. data/generated/google/apis/dfareporting_v3_1/service.rb +206 -206
  298. data/generated/google/apis/dfareporting_v3_2/service.rb +206 -206
  299. data/generated/google/apis/dfareporting_v3_3/classes.rb +3 -3
  300. data/generated/google/apis/dfareporting_v3_3/service.rb +204 -204
  301. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  302. data/generated/google/apis/dialogflow_v2/classes.rb +367 -82
  303. data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
  304. data/generated/google/apis/dialogflow_v2/service.rb +76 -60
  305. data/generated/google/apis/dialogflow_v2.rb +1 -1
  306. data/generated/google/apis/dialogflow_v2beta1/classes.rb +199 -88
  307. data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
  308. data/generated/google/apis/dialogflow_v2beta1/service.rb +154 -94
  309. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  310. data/generated/google/apis/digitalassetlinks_v1/service.rb +7 -6
  311. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  312. data/generated/google/apis/discovery_v1/service.rb +2 -2
  313. data/generated/google/apis/dlp_v2/classes.rb +116 -45
  314. data/generated/google/apis/dlp_v2/representations.rb +32 -0
  315. data/generated/google/apis/dlp_v2/service.rb +85 -45
  316. data/generated/google/apis/dlp_v2.rb +1 -1
  317. data/generated/google/apis/dns_v1/classes.rb +83 -1
  318. data/generated/google/apis/dns_v1/representations.rb +34 -0
  319. data/generated/google/apis/dns_v1/service.rb +15 -15
  320. data/generated/google/apis/dns_v1.rb +1 -1
  321. data/generated/google/apis/dns_v1beta2/classes.rb +81 -1
  322. data/generated/google/apis/dns_v1beta2/representations.rb +33 -0
  323. data/generated/google/apis/dns_v1beta2/service.rb +21 -21
  324. data/generated/google/apis/dns_v1beta2.rb +1 -1
  325. data/generated/google/apis/dns_v2beta1/classes.rb +83 -1
  326. data/generated/google/apis/dns_v2beta1/representations.rb +34 -0
  327. data/generated/google/apis/dns_v2beta1/service.rb +16 -16
  328. data/generated/google/apis/dns_v2beta1.rb +1 -1
  329. data/generated/google/apis/docs_v1/classes.rb +265 -47
  330. data/generated/google/apis/docs_v1/representations.rb +96 -0
  331. data/generated/google/apis/docs_v1/service.rb +3 -3
  332. data/generated/google/apis/docs_v1.rb +1 -1
  333. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
  334. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +9 -9
  335. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  336. data/generated/google/apis/doubleclicksearch_v2/service.rb +10 -10
  337. data/generated/google/apis/drive_v2/classes.rb +601 -80
  338. data/generated/google/apis/drive_v2/representations.rb +152 -0
  339. data/generated/google/apis/drive_v2/service.rb +574 -164
  340. data/generated/google/apis/drive_v2.rb +1 -1
  341. data/generated/google/apis/drive_v3/classes.rb +591 -75
  342. data/generated/google/apis/drive_v3/representations.rb +151 -0
  343. data/generated/google/apis/drive_v3/service.rb +483 -116
  344. data/generated/google/apis/drive_v3.rb +1 -1
  345. data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
  346. data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
  347. data/generated/google/apis/driveactivity_v2/service.rb +1 -1
  348. data/generated/google/apis/driveactivity_v2.rb +1 -1
  349. data/generated/google/apis/factchecktools_v1alpha1/classes.rb +459 -0
  350. data/generated/google/apis/factchecktools_v1alpha1/representations.rb +207 -0
  351. data/generated/google/apis/factchecktools_v1alpha1/service.rb +300 -0
  352. data/generated/google/apis/factchecktools_v1alpha1.rb +34 -0
  353. data/generated/google/apis/fcm_v1/classes.rb +424 -0
  354. data/generated/google/apis/fcm_v1/representations.rb +167 -0
  355. data/generated/google/apis/fcm_v1/service.rb +97 -0
  356. data/generated/google/apis/fcm_v1.rb +35 -0
  357. data/generated/google/apis/file_v1/classes.rb +646 -11
  358. data/generated/google/apis/file_v1/representations.rb +207 -0
  359. data/generated/google/apis/file_v1/service.rb +196 -6
  360. data/generated/google/apis/file_v1.rb +1 -1
  361. data/generated/google/apis/file_v1beta1/classes.rb +461 -19
  362. data/generated/google/apis/file_v1beta1/representations.rb +137 -0
  363. data/generated/google/apis/file_v1beta1/service.rb +11 -11
  364. data/generated/google/apis/file_v1beta1.rb +1 -1
  365. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +41 -14
  366. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
  367. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -5
  368. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  369. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
  370. data/generated/google/apis/firebasehosting_v1beta1/service.rb +14 -14
  371. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  372. data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
  373. data/generated/google/apis/firebaserules_v1/service.rb +12 -12
  374. data/generated/google/apis/firebaserules_v1.rb +1 -1
  375. data/generated/google/apis/firestore_v1/classes.rb +15 -15
  376. data/generated/google/apis/firestore_v1/service.rb +28 -28
  377. data/generated/google/apis/firestore_v1.rb +1 -1
  378. data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
  379. data/generated/google/apis/firestore_v1beta1/service.rb +19 -19
  380. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  381. data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
  382. data/generated/google/apis/firestore_v1beta2/service.rb +9 -9
  383. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  384. data/generated/google/apis/fitness_v1/classes.rb +4 -1
  385. data/generated/google/apis/fitness_v1/service.rb +14 -58
  386. data/generated/google/apis/fitness_v1.rb +1 -1
  387. data/generated/google/apis/fusiontables_v1/service.rb +32 -32
  388. data/generated/google/apis/fusiontables_v2/service.rb +34 -34
  389. data/generated/google/apis/games_configuration_v1configuration/service.rb +13 -13
  390. data/generated/google/apis/games_management_v1management/service.rb +27 -27
  391. data/generated/google/apis/games_management_v1management.rb +2 -2
  392. data/generated/google/apis/games_v1/service.rb +53 -53
  393. data/generated/google/apis/games_v1.rb +3 -3
  394. data/generated/google/apis/genomics_v1/classes.rb +190 -3321
  395. data/generated/google/apis/genomics_v1/representations.rb +128 -1265
  396. data/generated/google/apis/genomics_v1/service.rb +75 -1982
  397. data/generated/google/apis/genomics_v1.rb +1 -10
  398. data/generated/google/apis/genomics_v1alpha2/classes.rb +13 -53
  399. data/generated/google/apis/genomics_v1alpha2/representations.rb +0 -26
  400. data/generated/google/apis/genomics_v1alpha2/service.rb +11 -12
  401. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  402. data/generated/google/apis/genomics_v2alpha1/classes.rb +26 -58
  403. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -26
  404. data/generated/google/apis/genomics_v2alpha1/service.rb +6 -7
  405. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  406. data/generated/google/apis/gmail_v1/classes.rb +29 -0
  407. data/generated/google/apis/gmail_v1/representations.rb +13 -0
  408. data/generated/google/apis/gmail_v1/service.rb +142 -66
  409. data/generated/google/apis/gmail_v1.rb +1 -1
  410. data/generated/google/apis/groupsmigration_v1/service.rb +1 -1
  411. data/generated/google/apis/groupssettings_v1/classes.rb +126 -1
  412. data/generated/google/apis/groupssettings_v1/representations.rb +18 -0
  413. data/generated/google/apis/groupssettings_v1/service.rb +4 -4
  414. data/generated/google/apis/groupssettings_v1.rb +2 -2
  415. data/generated/google/apis/healthcare_v1alpha2/classes.rb +2849 -0
  416. data/generated/google/apis/healthcare_v1alpha2/representations.rb +1260 -0
  417. data/generated/google/apis/healthcare_v1alpha2/service.rb +4011 -0
  418. data/generated/google/apis/healthcare_v1alpha2.rb +34 -0
  419. data/generated/google/apis/healthcare_v1beta1/classes.rb +2464 -0
  420. data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
  421. data/generated/google/apis/healthcare_v1beta1/service.rb +3413 -0
  422. data/generated/google/apis/healthcare_v1beta1.rb +34 -0
  423. data/generated/google/apis/iam_v1/classes.rb +171 -1
  424. data/generated/google/apis/iam_v1/representations.rb +95 -0
  425. data/generated/google/apis/iam_v1/service.rb +249 -39
  426. data/generated/google/apis/iam_v1.rb +1 -1
  427. data/generated/google/apis/iamcredentials_v1/classes.rb +8 -4
  428. data/generated/google/apis/iamcredentials_v1/service.rb +15 -10
  429. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  430. data/generated/google/apis/iap_v1/classes.rb +1 -1
  431. data/generated/google/apis/iap_v1/service.rb +3 -3
  432. data/generated/google/apis/iap_v1.rb +1 -1
  433. data/generated/google/apis/iap_v1beta1/classes.rb +1 -1
  434. data/generated/google/apis/iap_v1beta1/service.rb +3 -3
  435. data/generated/google/apis/iap_v1beta1.rb +1 -1
  436. data/generated/google/apis/identitytoolkit_v3/service.rb +20 -20
  437. data/generated/google/apis/indexing_v3/service.rb +2 -2
  438. data/generated/google/apis/jobs_v2/classes.rb +16 -17
  439. data/generated/google/apis/jobs_v2/service.rb +17 -17
  440. data/generated/google/apis/jobs_v2.rb +1 -1
  441. data/generated/google/apis/jobs_v3/classes.rb +14 -8
  442. data/generated/google/apis/jobs_v3/service.rb +16 -17
  443. data/generated/google/apis/jobs_v3.rb +1 -1
  444. data/generated/google/apis/jobs_v3p1beta1/classes.rb +26 -20
  445. data/generated/google/apis/jobs_v3p1beta1/service.rb +17 -18
  446. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  447. data/generated/google/apis/kgsearch_v1/service.rb +1 -1
  448. data/generated/google/apis/language_v1/classes.rb +8 -7
  449. data/generated/google/apis/language_v1/service.rb +6 -6
  450. data/generated/google/apis/language_v1.rb +1 -1
  451. data/generated/google/apis/language_v1beta1/classes.rb +5 -5
  452. data/generated/google/apis/language_v1beta1/service.rb +4 -4
  453. data/generated/google/apis/language_v1beta1.rb +1 -1
  454. data/generated/google/apis/language_v1beta2/classes.rb +8 -7
  455. data/generated/google/apis/language_v1beta2/service.rb +6 -6
  456. data/generated/google/apis/language_v1beta2.rb +1 -1
  457. data/generated/google/apis/libraryagent_v1/service.rb +6 -6
  458. data/generated/google/apis/licensing_v1/service.rb +7 -7
  459. data/generated/google/apis/logging_v2/classes.rb +8 -3
  460. data/generated/google/apis/logging_v2/representations.rb +1 -0
  461. data/generated/google/apis/logging_v2/service.rb +72 -72
  462. data/generated/google/apis/logging_v2.rb +1 -1
  463. data/generated/google/apis/manufacturers_v1/service.rb +4 -4
  464. data/generated/google/apis/mirror_v1/service.rb +24 -24
  465. data/generated/google/apis/ml_v1/classes.rb +240 -52
  466. data/generated/google/apis/ml_v1/representations.rb +25 -2
  467. data/generated/google/apis/ml_v1/service.rb +36 -36
  468. data/generated/google/apis/ml_v1.rb +1 -1
  469. data/generated/google/apis/monitoring_v3/classes.rb +22 -18
  470. data/generated/google/apis/monitoring_v3/representations.rb +2 -1
  471. data/generated/google/apis/monitoring_v3/service.rb +42 -37
  472. data/generated/google/apis/monitoring_v3.rb +1 -1
  473. data/generated/google/apis/oauth2_v1/classes.rb +0 -124
  474. data/generated/google/apis/oauth2_v1/representations.rb +0 -62
  475. data/generated/google/apis/oauth2_v1/service.rb +3 -162
  476. data/generated/google/apis/oauth2_v1.rb +3 -6
  477. data/generated/google/apis/oauth2_v2/service.rb +4 -4
  478. data/generated/google/apis/oauth2_v2.rb +3 -6
  479. data/generated/google/apis/oslogin_v1/service.rb +8 -7
  480. data/generated/google/apis/oslogin_v1.rb +3 -2
  481. data/generated/google/apis/oslogin_v1alpha/service.rb +8 -7
  482. data/generated/google/apis/oslogin_v1alpha.rb +3 -2
  483. data/generated/google/apis/oslogin_v1beta/service.rb +8 -7
  484. data/generated/google/apis/oslogin_v1beta.rb +3 -2
  485. data/generated/google/apis/pagespeedonline_v1/service.rb +1 -1
  486. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  487. data/generated/google/apis/pagespeedonline_v4/service.rb +1 -1
  488. data/generated/google/apis/pagespeedonline_v5/classes.rb +43 -0
  489. data/generated/google/apis/pagespeedonline_v5/representations.rb +18 -0
  490. data/generated/google/apis/pagespeedonline_v5/service.rb +1 -1
  491. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  492. data/generated/google/apis/people_v1/classes.rb +38 -29
  493. data/generated/google/apis/people_v1/representations.rb +1 -0
  494. data/generated/google/apis/people_v1/service.rb +18 -13
  495. data/generated/google/apis/people_v1.rb +2 -5
  496. data/generated/google/apis/playcustomapp_v1/service.rb +1 -1
  497. data/generated/google/apis/plus_domains_v1/service.rb +18 -392
  498. data/generated/google/apis/plus_domains_v1.rb +4 -10
  499. data/generated/google/apis/plus_v1/service.rb +16 -16
  500. data/generated/google/apis/plus_v1.rb +4 -4
  501. data/generated/google/apis/poly_v1/classes.rb +8 -6
  502. data/generated/google/apis/poly_v1/service.rb +15 -12
  503. data/generated/google/apis/poly_v1.rb +1 -1
  504. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +8 -6
  505. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +17 -17
  506. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  507. data/generated/google/apis/pubsub_v1/classes.rb +55 -39
  508. data/generated/google/apis/pubsub_v1/representations.rb +16 -0
  509. data/generated/google/apis/pubsub_v1/service.rb +46 -69
  510. data/generated/google/apis/pubsub_v1.rb +1 -1
  511. data/generated/google/apis/pubsub_v1beta1a/service.rb +15 -15
  512. data/generated/google/apis/pubsub_v1beta2/classes.rb +45 -1
  513. data/generated/google/apis/pubsub_v1beta2/representations.rb +16 -0
  514. data/generated/google/apis/pubsub_v1beta2/service.rb +20 -20
  515. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  516. data/generated/google/apis/redis_v1/classes.rb +30 -10
  517. data/generated/google/apis/redis_v1/representations.rb +13 -0
  518. data/generated/google/apis/redis_v1/service.rb +51 -15
  519. data/generated/google/apis/redis_v1.rb +1 -1
  520. data/generated/google/apis/redis_v1beta1/classes.rb +18 -21
  521. data/generated/google/apis/redis_v1beta1/representations.rb +0 -1
  522. data/generated/google/apis/redis_v1beta1/service.rb +15 -15
  523. data/generated/google/apis/redis_v1beta1.rb +1 -1
  524. data/generated/google/apis/remotebuildexecution_v1/classes.rb +50 -35
  525. data/generated/google/apis/remotebuildexecution_v1/representations.rb +2 -0
  526. data/generated/google/apis/remotebuildexecution_v1/service.rb +7 -7
  527. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  528. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +48 -33
  529. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +2 -0
  530. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +10 -10
  531. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  532. data/generated/google/apis/remotebuildexecution_v2/classes.rb +58 -43
  533. data/generated/google/apis/remotebuildexecution_v2/representations.rb +2 -0
  534. data/generated/google/apis/remotebuildexecution_v2/service.rb +9 -9
  535. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  536. data/generated/google/apis/replicapool_v1beta1/service.rb +10 -10
  537. data/generated/google/apis/reseller_v1/classes.rb +32 -39
  538. data/generated/google/apis/reseller_v1/service.rb +18 -18
  539. data/generated/google/apis/reseller_v1.rb +1 -1
  540. data/generated/google/apis/run_v1/classes.rb +73 -0
  541. data/generated/google/apis/run_v1/representations.rb +43 -0
  542. data/generated/google/apis/run_v1/service.rb +90 -0
  543. data/generated/google/apis/run_v1.rb +35 -0
  544. data/generated/google/apis/run_v1alpha1/classes.rb +3882 -0
  545. data/generated/google/apis/run_v1alpha1/representations.rb +1425 -0
  546. data/generated/google/apis/run_v1alpha1/service.rb +2071 -0
  547. data/generated/google/apis/run_v1alpha1.rb +35 -0
  548. data/generated/google/apis/runtimeconfig_v1/classes.rb +11 -11
  549. data/generated/google/apis/runtimeconfig_v1/service.rb +3 -3
  550. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  551. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +26 -25
  552. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +22 -22
  553. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  554. data/generated/google/apis/safebrowsing_v4/service.rb +7 -7
  555. data/generated/google/apis/script_v1/classes.rb +167 -6
  556. data/generated/google/apis/script_v1/representations.rb +79 -1
  557. data/generated/google/apis/script_v1/service.rb +16 -16
  558. data/generated/google/apis/script_v1.rb +1 -1
  559. data/generated/google/apis/searchconsole_v1/service.rb +1 -1
  560. data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
  561. data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
  562. data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
  563. data/generated/google/apis/securitycenter_v1.rb +35 -0
  564. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
  565. data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
  566. data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
  567. data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
  568. data/generated/google/apis/servicebroker_v1/classes.rb +1 -1
  569. data/generated/google/apis/servicebroker_v1/service.rb +3 -3
  570. data/generated/google/apis/servicebroker_v1.rb +1 -1
  571. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +1 -1
  572. data/generated/google/apis/servicebroker_v1alpha1/service.rb +16 -16
  573. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  574. data/generated/google/apis/servicebroker_v1beta1/classes.rb +1 -1
  575. data/generated/google/apis/servicebroker_v1beta1/service.rb +21 -21
  576. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  577. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +453 -149
  578. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +202 -29
  579. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +148 -62
  580. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  581. data/generated/google/apis/servicecontrol_v1/classes.rb +122 -25
  582. data/generated/google/apis/servicecontrol_v1/representations.rb +47 -0
  583. data/generated/google/apis/servicecontrol_v1/service.rb +3 -3
  584. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  585. data/generated/google/apis/servicemanagement_v1/classes.rb +93 -110
  586. data/generated/google/apis/servicemanagement_v1/representations.rb +13 -26
  587. data/generated/google/apis/servicemanagement_v1/service.rb +30 -27
  588. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  589. data/generated/google/apis/servicenetworking_v1/classes.rb +3626 -0
  590. data/generated/google/apis/servicenetworking_v1/representations.rb +1055 -0
  591. data/generated/google/apis/servicenetworking_v1/service.rb +440 -0
  592. data/generated/google/apis/servicenetworking_v1.rb +38 -0
  593. data/generated/google/apis/servicenetworking_v1beta/classes.rb +65 -108
  594. data/generated/google/apis/servicenetworking_v1beta/representations.rb +2 -29
  595. data/generated/google/apis/servicenetworking_v1beta/service.rb +6 -6
  596. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  597. data/generated/google/apis/serviceusage_v1/classes.rb +160 -109
  598. data/generated/google/apis/serviceusage_v1/representations.rb +42 -26
  599. data/generated/google/apis/serviceusage_v1/service.rb +17 -19
  600. data/generated/google/apis/serviceusage_v1.rb +1 -1
  601. data/generated/google/apis/serviceusage_v1beta1/classes.rb +161 -110
  602. data/generated/google/apis/serviceusage_v1beta1/representations.rb +42 -26
  603. data/generated/google/apis/serviceusage_v1beta1/service.rb +7 -7
  604. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  605. data/generated/google/apis/sheets_v4/classes.rb +115 -26
  606. data/generated/google/apis/sheets_v4/service.rb +17 -17
  607. data/generated/google/apis/sheets_v4.rb +1 -1
  608. data/generated/google/apis/site_verification_v1/service.rb +7 -7
  609. data/generated/google/apis/slides_v1/classes.rb +2 -2
  610. data/generated/google/apis/slides_v1/service.rb +5 -5
  611. data/generated/google/apis/slides_v1.rb +1 -1
  612. data/generated/google/apis/sourcerepo_v1/classes.rb +183 -1
  613. data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
  614. data/generated/google/apis/sourcerepo_v1/service.rb +45 -10
  615. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  616. data/generated/google/apis/spanner_v1/classes.rb +231 -17
  617. data/generated/google/apis/spanner_v1/representations.rb +66 -0
  618. data/generated/google/apis/spanner_v1/service.rb +92 -42
  619. data/generated/google/apis/spanner_v1.rb +1 -1
  620. data/generated/google/apis/speech_v1/classes.rb +110 -13
  621. data/generated/google/apis/speech_v1/representations.rb +24 -0
  622. data/generated/google/apis/speech_v1/service.rb +9 -7
  623. data/generated/google/apis/speech_v1.rb +1 -1
  624. data/generated/google/apis/speech_v1p1beta1/classes.rb +19 -13
  625. data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
  626. data/generated/google/apis/speech_v1p1beta1/service.rb +9 -7
  627. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  628. data/generated/google/apis/sqladmin_v1beta4/classes.rb +94 -17
  629. data/generated/google/apis/sqladmin_v1beta4/representations.rb +36 -0
  630. data/generated/google/apis/sqladmin_v1beta4/service.rb +44 -44
  631. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  632. data/generated/google/apis/storage_v1/classes.rb +201 -4
  633. data/generated/google/apis/storage_v1/representations.rb +76 -1
  634. data/generated/google/apis/storage_v1/service.rb +488 -93
  635. data/generated/google/apis/storage_v1.rb +1 -1
  636. data/generated/google/apis/storage_v1beta1/service.rb +24 -24
  637. data/generated/google/apis/storage_v1beta2/service.rb +34 -34
  638. data/generated/google/apis/storagetransfer_v1/classes.rb +44 -44
  639. data/generated/google/apis/storagetransfer_v1/service.rb +35 -36
  640. data/generated/google/apis/storagetransfer_v1.rb +2 -2
  641. data/generated/google/apis/streetviewpublish_v1/classes.rb +27 -27
  642. data/generated/google/apis/streetviewpublish_v1/service.rb +36 -40
  643. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  644. data/generated/google/apis/surveys_v2/service.rb +8 -8
  645. data/generated/google/apis/tagmanager_v1/service.rb +49 -95
  646. data/generated/google/apis/tagmanager_v1.rb +1 -1
  647. data/generated/google/apis/tagmanager_v2/classes.rb +197 -292
  648. data/generated/google/apis/tagmanager_v2/representations.rb +62 -103
  649. data/generated/google/apis/tagmanager_v2/service.rb +287 -249
  650. data/generated/google/apis/tagmanager_v2.rb +1 -1
  651. data/generated/google/apis/tasks_v1/service.rb +19 -19
  652. data/generated/google/apis/tasks_v1.rb +2 -2
  653. data/generated/google/apis/testing_v1/classes.rb +44 -39
  654. data/generated/google/apis/testing_v1/representations.rb +3 -1
  655. data/generated/google/apis/testing_v1/service.rb +5 -5
  656. data/generated/google/apis/testing_v1.rb +1 -1
  657. data/generated/google/apis/texttospeech_v1/service.rb +2 -2
  658. data/generated/google/apis/texttospeech_v1.rb +1 -1
  659. data/generated/google/apis/texttospeech_v1beta1/service.rb +2 -2
  660. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  661. data/generated/google/apis/toolresults_v1beta3/classes.rb +340 -17
  662. data/generated/google/apis/toolresults_v1beta3/representations.rb +90 -0
  663. data/generated/google/apis/toolresults_v1beta3/service.rb +140 -24
  664. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  665. data/generated/google/apis/tpu_v1/classes.rb +21 -15
  666. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  667. data/generated/google/apis/tpu_v1/service.rb +17 -17
  668. data/generated/google/apis/tpu_v1.rb +1 -1
  669. data/generated/google/apis/tpu_v1alpha1/classes.rb +21 -15
  670. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  671. data/generated/google/apis/tpu_v1alpha1/service.rb +17 -17
  672. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  673. data/generated/google/apis/translate_v2/service.rb +5 -5
  674. data/generated/google/apis/urlshortener_v1/service.rb +3 -3
  675. data/generated/google/apis/vault_v1/classes.rb +44 -18
  676. data/generated/google/apis/vault_v1/representations.rb +4 -0
  677. data/generated/google/apis/vault_v1/service.rb +28 -28
  678. data/generated/google/apis/vault_v1.rb +1 -1
  679. data/generated/google/apis/videointelligence_v1/classes.rb +2193 -350
  680. data/generated/google/apis/videointelligence_v1/representations.rb +805 -6
  681. data/generated/google/apis/videointelligence_v1/service.rb +7 -6
  682. data/generated/google/apis/videointelligence_v1.rb +3 -2
  683. data/generated/google/apis/videointelligence_v1beta2/classes.rb +2448 -605
  684. data/generated/google/apis/videointelligence_v1beta2/representations.rb +806 -7
  685. data/generated/google/apis/videointelligence_v1beta2/service.rb +3 -2
  686. data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
  687. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +2422 -579
  688. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +806 -7
  689. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +3 -2
  690. data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
  691. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +2645 -830
  692. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +796 -12
  693. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +3 -2
  694. data/generated/google/apis/videointelligence_v1p2beta1.rb +3 -2
  695. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +4687 -0
  696. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +2005 -0
  697. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +94 -0
  698. data/generated/google/apis/videointelligence_v1p3beta1.rb +36 -0
  699. data/generated/google/apis/vision_v1/classes.rb +4397 -124
  700. data/generated/google/apis/vision_v1/representations.rb +2366 -541
  701. data/generated/google/apis/vision_v1/service.rb +160 -33
  702. data/generated/google/apis/vision_v1.rb +1 -1
  703. data/generated/google/apis/vision_v1p1beta1/classes.rb +4451 -158
  704. data/generated/google/apis/vision_v1p1beta1/representations.rb +2415 -576
  705. data/generated/google/apis/vision_v1p1beta1/service.rb +73 -2
  706. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  707. data/generated/google/apis/vision_v1p2beta1/classes.rb +4451 -158
  708. data/generated/google/apis/vision_v1p2beta1/representations.rb +2443 -604
  709. data/generated/google/apis/vision_v1p2beta1/service.rb +73 -2
  710. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  711. data/generated/google/apis/webfonts_v1/service.rb +1 -1
  712. data/generated/google/apis/webmasters_v3/classes.rb +0 -166
  713. data/generated/google/apis/webmasters_v3/representations.rb +0 -93
  714. data/generated/google/apis/webmasters_v3/service.rb +9 -180
  715. data/generated/google/apis/webmasters_v3.rb +1 -1
  716. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +13 -13
  717. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +973 -0
  718. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +452 -0
  719. data/generated/google/apis/websecurityscanner_v1beta/service.rb +548 -0
  720. data/generated/google/apis/websecurityscanner_v1beta.rb +34 -0
  721. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  722. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +8 -8
  723. data/generated/google/apis/youtube_analytics_v2/service.rb +8 -8
  724. data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
  725. data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
  726. data/generated/google/apis/youtube_partner_v1/service.rb +74 -74
  727. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  728. data/generated/google/apis/youtube_v3/service.rb +71 -71
  729. data/generated/google/apis/youtube_v3.rb +1 -1
  730. data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
  731. data/generated/google/apis/youtubereporting_v1/service.rb +8 -8
  732. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  733. data/google-api-client.gemspec +2 -2
  734. data/lib/google/apis/core/http_command.rb +1 -0
  735. data/lib/google/apis/core/json_representation.rb +4 -0
  736. data/lib/google/apis/core/upload.rb +3 -3
  737. data/lib/google/apis/generator/model.rb +1 -1
  738. data/lib/google/apis/generator/templates/_method.tmpl +3 -3
  739. data/lib/google/apis/version.rb +1 -1
  740. metadata +86 -17
  741. data/.kokoro/common.cfg +0 -22
  742. data/.kokoro/windows.sh +0 -32
  743. data/generated/google/apis/logging_v2beta1/classes.rb +0 -1765
  744. data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
  745. data/generated/google/apis/logging_v2beta1/service.rb +0 -570
  746. data/generated/google/apis/logging_v2beta1.rb +0 -46
  747. data/generated/google/apis/partners_v2/classes.rb +0 -2260
  748. data/generated/google/apis/partners_v2/representations.rb +0 -905
  749. data/generated/google/apis/partners_v2/service.rb +0 -1077
  750. data/samples/web/.env +0 -2
@@ -22,6 +22,75 @@ module Google
22
22
  module Apis
23
23
  module BigqueryV2
24
24
 
25
+ # Aggregate metrics for classification/classifier models. For multi-class
26
+ # models, the metrics are either macro-averaged or micro-averaged. When
27
+ # macro-averaged, the metrics are calculated for each label and then an
28
+ # unweighted average is taken of those values. When micro-averaged, the
29
+ # metric is calculated globally by counting the total number of correctly
30
+ # predicted rows.
31
+ class AggregateClassificationMetrics
32
+ include Google::Apis::Core::Hashable
33
+
34
+ # Accuracy is the fraction of predictions given the correct label. For
35
+ # multiclass this is a micro-averaged metric.
36
+ # Corresponds to the JSON property `accuracy`
37
+ # @return [Float]
38
+ attr_accessor :accuracy
39
+
40
+ # The F1 score is an average of recall and precision. For multiclass
41
+ # this is a macro-averaged metric.
42
+ # Corresponds to the JSON property `f1Score`
43
+ # @return [Float]
44
+ attr_accessor :f1_score
45
+
46
+ # Logarithmic Loss. For multiclass this is a macro-averaged metric.
47
+ # Corresponds to the JSON property `logLoss`
48
+ # @return [Float]
49
+ attr_accessor :log_loss
50
+
51
+ # Precision is the fraction of actual positive predictions that had
52
+ # positive actual labels. For multiclass this is a macro-averaged
53
+ # metric treating each class as a binary classifier.
54
+ # Corresponds to the JSON property `precision`
55
+ # @return [Float]
56
+ attr_accessor :precision
57
+
58
+ # Recall is the fraction of actual positive labels that were given a
59
+ # positive prediction. For multiclass this is a macro-averaged metric.
60
+ # Corresponds to the JSON property `recall`
61
+ # @return [Float]
62
+ attr_accessor :recall
63
+
64
+ # Area Under a ROC Curve. For multiclass this is a macro-averaged
65
+ # metric.
66
+ # Corresponds to the JSON property `rocAuc`
67
+ # @return [Float]
68
+ attr_accessor :roc_auc
69
+
70
+ # Threshold at which the metrics are computed. For binary
71
+ # classification models this is the positive class threshold.
72
+ # For multi-class classfication models this is the confidence
73
+ # threshold.
74
+ # Corresponds to the JSON property `threshold`
75
+ # @return [Float]
76
+ attr_accessor :threshold
77
+
78
+ def initialize(**args)
79
+ update!(**args)
80
+ end
81
+
82
+ # Update properties of this object
83
+ def update!(**args)
84
+ @accuracy = args[:accuracy] if args.key?(:accuracy)
85
+ @f1_score = args[:f1_score] if args.key?(:f1_score)
86
+ @log_loss = args[:log_loss] if args.key?(:log_loss)
87
+ @precision = args[:precision] if args.key?(:precision)
88
+ @recall = args[:recall] if args.key?(:recall)
89
+ @roc_auc = args[:roc_auc] if args.key?(:roc_auc)
90
+ @threshold = args[:threshold] if args.key?(:threshold)
91
+ end
92
+ end
93
+
25
94
  #
26
95
  class BigQueryModelTraining
27
96
  include Google::Apis::Core::Hashable
@@ -223,6 +292,289 @@ module Google
223
292
  end
224
293
  end
225
294
 
295
+ # Evaluation metrics for binary classification/classifier models.
296
+ class BinaryClassificationMetrics
297
+ include Google::Apis::Core::Hashable
298
+
299
+ # Aggregate metrics for classification/classifier models. For multi-class
300
+ # models, the metrics are either macro-averaged or micro-averaged. When
301
+ # macro-averaged, the metrics are calculated for each label and then an
302
+ # unweighted average is taken of those values. When micro-averaged, the
303
+ # metric is calculated globally by counting the total number of correctly
304
+ # predicted rows.
305
+ # Corresponds to the JSON property `aggregateClassificationMetrics`
306
+ # @return [Google::Apis::BigqueryV2::AggregateClassificationMetrics]
307
+ attr_accessor :aggregate_classification_metrics
308
+
309
+ # Binary confusion matrix at multiple thresholds.
310
+ # Corresponds to the JSON property `binaryConfusionMatrixList`
311
+ # @return [Array<Google::Apis::BigqueryV2::BinaryConfusionMatrix>]
312
+ attr_accessor :binary_confusion_matrix_list
313
+
314
+ def initialize(**args)
315
+ update!(**args)
316
+ end
317
+
318
+ # Update properties of this object
319
+ def update!(**args)
320
+ @aggregate_classification_metrics = args[:aggregate_classification_metrics] if args.key?(:aggregate_classification_metrics)
321
+ @binary_confusion_matrix_list = args[:binary_confusion_matrix_list] if args.key?(:binary_confusion_matrix_list)
322
+ end
323
+ end
324
+
325
+ # Confusion matrix for binary classification models.
326
+ class BinaryConfusionMatrix
327
+ include Google::Apis::Core::Hashable
328
+
329
+ # Number of false samples predicted as false.
330
+ # Corresponds to the JSON property `falseNegatives`
331
+ # @return [Fixnum]
332
+ attr_accessor :false_negatives
333
+
334
+ # Number of false samples predicted as true.
335
+ # Corresponds to the JSON property `falsePositives`
336
+ # @return [Fixnum]
337
+ attr_accessor :false_positives
338
+
339
+ # Threshold value used when computing each of the following metric.
340
+ # Corresponds to the JSON property `positiveClassThreshold`
341
+ # @return [Float]
342
+ attr_accessor :positive_class_threshold
343
+
344
+ # Aggregate precision.
345
+ # Corresponds to the JSON property `precision`
346
+ # @return [Float]
347
+ attr_accessor :precision
348
+
349
+ # Aggregate recall.
350
+ # Corresponds to the JSON property `recall`
351
+ # @return [Float]
352
+ attr_accessor :recall
353
+
354
+ # Number of true samples predicted as false.
355
+ # Corresponds to the JSON property `trueNegatives`
356
+ # @return [Fixnum]
357
+ attr_accessor :true_negatives
358
+
359
+ # Number of true samples predicted as true.
360
+ # Corresponds to the JSON property `truePositives`
361
+ # @return [Fixnum]
362
+ attr_accessor :true_positives
363
+
364
+ def initialize(**args)
365
+ update!(**args)
366
+ end
367
+
368
+ # Update properties of this object
369
+ def update!(**args)
370
+ @false_negatives = args[:false_negatives] if args.key?(:false_negatives)
371
+ @false_positives = args[:false_positives] if args.key?(:false_positives)
372
+ @positive_class_threshold = args[:positive_class_threshold] if args.key?(:positive_class_threshold)
373
+ @precision = args[:precision] if args.key?(:precision)
374
+ @recall = args[:recall] if args.key?(:recall)
375
+ @true_negatives = args[:true_negatives] if args.key?(:true_negatives)
376
+ @true_positives = args[:true_positives] if args.key?(:true_positives)
377
+ end
378
+ end
379
+
380
+ #
381
+ class BqmlIterationResult
382
+ include Google::Apis::Core::Hashable
383
+
384
+ # [Output-only, Beta] Time taken to run the training iteration in milliseconds.
385
+ # Corresponds to the JSON property `durationMs`
386
+ # @return [Fixnum]
387
+ attr_accessor :duration_ms
388
+
389
+ # [Output-only, Beta] Eval loss computed on the eval data at the end of the
390
+ # iteration. The eval loss is used for early stopping to avoid overfitting. No
391
+ # eval loss if eval_split_method option is specified as no_split or auto_split
392
+ # with input data size less than 500 rows.
393
+ # Corresponds to the JSON property `evalLoss`
394
+ # @return [Float]
395
+ attr_accessor :eval_loss
396
+
397
+ # [Output-only, Beta] Index of the ML training iteration, starting from zero for
398
+ # each training run.
399
+ # Corresponds to the JSON property `index`
400
+ # @return [Fixnum]
401
+ attr_accessor :index
402
+
403
+ # [Output-only, Beta] Learning rate used for this iteration, it varies for
404
+ # different training iterations if learn_rate_strategy option is not constant.
405
+ # Corresponds to the JSON property `learnRate`
406
+ # @return [Float]
407
+ attr_accessor :learn_rate
408
+
409
+ # [Output-only, Beta] Training loss computed on the training data at the end of
410
+ # the iteration. The training loss function is defined by model type.
411
+ # Corresponds to the JSON property `trainingLoss`
412
+ # @return [Float]
413
+ attr_accessor :training_loss
414
+
415
+ def initialize(**args)
416
+ update!(**args)
417
+ end
418
+
419
+ # Update properties of this object
420
+ def update!(**args)
421
+ @duration_ms = args[:duration_ms] if args.key?(:duration_ms)
422
+ @eval_loss = args[:eval_loss] if args.key?(:eval_loss)
423
+ @index = args[:index] if args.key?(:index)
424
+ @learn_rate = args[:learn_rate] if args.key?(:learn_rate)
425
+ @training_loss = args[:training_loss] if args.key?(:training_loss)
426
+ end
427
+ end
428
+
429
+ #
430
+ class BqmlTrainingRun
431
+ include Google::Apis::Core::Hashable
432
+
433
+ # [Output-only, Beta] List of each iteration results.
434
+ # Corresponds to the JSON property `iterationResults`
435
+ # @return [Array<Google::Apis::BigqueryV2::BqmlIterationResult>]
436
+ attr_accessor :iteration_results
437
+
438
+ # [Output-only, Beta] Training run start time in milliseconds since the epoch.
439
+ # Corresponds to the JSON property `startTime`
440
+ # @return [DateTime]
441
+ attr_accessor :start_time
442
+
443
+ # [Output-only, Beta] Different state applicable for a training run. IN PROGRESS:
444
+ # Training run is in progress. FAILED: Training run ended due to a non-
445
+ # retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED:
446
+ # Training run cancelled by the user.
447
+ # Corresponds to the JSON property `state`
448
+ # @return [String]
449
+ attr_accessor :state
450
+
451
+ # [Output-only, Beta] Training options used by this training run. These options
452
+ # are mutable for subsequent training runs. Default values are explicitly stored
453
+ # for options not specified in the input query of the first training run. For
454
+ # subsequent training runs, any option not explicitly specified in the input
455
+ # query will be copied from the previous training run.
456
+ # Corresponds to the JSON property `trainingOptions`
457
+ # @return [Google::Apis::BigqueryV2::BqmlTrainingRun::TrainingOptions]
458
+ attr_accessor :training_options
459
+
460
+ def initialize(**args)
461
+ update!(**args)
462
+ end
463
+
464
+ # Update properties of this object
465
+ def update!(**args)
466
+ @iteration_results = args[:iteration_results] if args.key?(:iteration_results)
467
+ @start_time = args[:start_time] if args.key?(:start_time)
468
+ @state = args[:state] if args.key?(:state)
469
+ @training_options = args[:training_options] if args.key?(:training_options)
470
+ end
471
+
472
+ # [Output-only, Beta] Training options used by this training run. These options
473
+ # are mutable for subsequent training runs. Default values are explicitly stored
474
+ # for options not specified in the input query of the first training run. For
475
+ # subsequent training runs, any option not explicitly specified in the input
476
+ # query will be copied from the previous training run.
477
+ class TrainingOptions
478
+ include Google::Apis::Core::Hashable
479
+
480
+ #
481
+ # Corresponds to the JSON property `earlyStop`
482
+ # @return [Boolean]
483
+ attr_accessor :early_stop
484
+ alias_method :early_stop?, :early_stop
485
+
486
+ #
487
+ # Corresponds to the JSON property `l1Reg`
488
+ # @return [Float]
489
+ attr_accessor :l1_reg
490
+
491
+ #
492
+ # Corresponds to the JSON property `l2Reg`
493
+ # @return [Float]
494
+ attr_accessor :l2_reg
495
+
496
+ #
497
+ # Corresponds to the JSON property `learnRate`
498
+ # @return [Float]
499
+ attr_accessor :learn_rate
500
+
501
+ #
502
+ # Corresponds to the JSON property `learnRateStrategy`
503
+ # @return [String]
504
+ attr_accessor :learn_rate_strategy
505
+
506
+ #
507
+ # Corresponds to the JSON property `lineSearchInitLearnRate`
508
+ # @return [Float]
509
+ attr_accessor :line_search_init_learn_rate
510
+
511
+ #
512
+ # Corresponds to the JSON property `maxIteration`
513
+ # @return [Fixnum]
514
+ attr_accessor :max_iteration
515
+
516
+ #
517
+ # Corresponds to the JSON property `minRelProgress`
518
+ # @return [Float]
519
+ attr_accessor :min_rel_progress
520
+
521
+ #
522
+ # Corresponds to the JSON property `warmStart`
523
+ # @return [Boolean]
524
+ attr_accessor :warm_start
525
+ alias_method :warm_start?, :warm_start
526
+
527
+ def initialize(**args)
528
+ update!(**args)
529
+ end
530
+
531
+ # Update properties of this object
532
+ def update!(**args)
533
+ @early_stop = args[:early_stop] if args.key?(:early_stop)
534
+ @l1_reg = args[:l1_reg] if args.key?(:l1_reg)
535
+ @l2_reg = args[:l2_reg] if args.key?(:l2_reg)
536
+ @learn_rate = args[:learn_rate] if args.key?(:learn_rate)
537
+ @learn_rate_strategy = args[:learn_rate_strategy] if args.key?(:learn_rate_strategy)
538
+ @line_search_init_learn_rate = args[:line_search_init_learn_rate] if args.key?(:line_search_init_learn_rate)
539
+ @max_iteration = args[:max_iteration] if args.key?(:max_iteration)
540
+ @min_rel_progress = args[:min_rel_progress] if args.key?(:min_rel_progress)
541
+ @warm_start = args[:warm_start] if args.key?(:warm_start)
542
+ end
543
+ end
544
+ end
545
+
546
+ # Information about a single cluster for clustering model.
547
+ class ClusterInfo
548
+ include Google::Apis::Core::Hashable
549
+
550
+ # Centroid id.
551
+ # Corresponds to the JSON property `centroidId`
552
+ # @return [Fixnum]
553
+ attr_accessor :centroid_id
554
+
555
+ # Cluster radius, the average distance from centroid
556
+ # to each point assigned to the cluster.
557
+ # Corresponds to the JSON property `clusterRadius`
558
+ # @return [Float]
559
+ attr_accessor :cluster_radius
560
+
561
+ # Cluster size, the total number of points assigned to the cluster.
562
+ # Corresponds to the JSON property `clusterSize`
563
+ # @return [Fixnum]
564
+ attr_accessor :cluster_size
565
+
566
+ def initialize(**args)
567
+ update!(**args)
568
+ end
569
+
570
+ # Update properties of this object
571
+ def update!(**args)
572
+ @centroid_id = args[:centroid_id] if args.key?(:centroid_id)
573
+ @cluster_radius = args[:cluster_radius] if args.key?(:cluster_radius)
574
+ @cluster_size = args[:cluster_size] if args.key?(:cluster_size)
575
+ end
576
+ end
577
+
226
578
  #
227
579
  class Clustering
228
580
  include Google::Apis::Core::Hashable
@@ -245,6 +597,57 @@ module Google
245
597
  end
246
598
  end
247
599
 
600
+ # Evaluation metrics for clustering models.
601
+ class ClusteringMetrics
602
+ include Google::Apis::Core::Hashable
603
+
604
+ # Davies-Bouldin index.
605
+ # Corresponds to the JSON property `daviesBouldinIndex`
606
+ # @return [Float]
607
+ attr_accessor :davies_bouldin_index
608
+
609
+ # Mean of squared distances between each sample to its cluster centroid.
610
+ # Corresponds to the JSON property `meanSquaredDistance`
611
+ # @return [Float]
612
+ attr_accessor :mean_squared_distance
613
+
614
+ def initialize(**args)
615
+ update!(**args)
616
+ end
617
+
618
+ # Update properties of this object
619
+ def update!(**args)
620
+ @davies_bouldin_index = args[:davies_bouldin_index] if args.key?(:davies_bouldin_index)
621
+ @mean_squared_distance = args[:mean_squared_distance] if args.key?(:mean_squared_distance)
622
+ end
623
+ end
624
+
625
+ # Confusion matrix for multi-class classification models.
626
+ class ConfusionMatrix
627
+ include Google::Apis::Core::Hashable
628
+
629
+ # Confidence threshold used when computing the entries of the
630
+ # confusion matrix.
631
+ # Corresponds to the JSON property `confidenceThreshold`
632
+ # @return [Float]
633
+ attr_accessor :confidence_threshold
634
+
635
+ # One row per actual label.
636
+ # Corresponds to the JSON property `rows`
637
+ # @return [Array<Google::Apis::BigqueryV2::Row>]
638
+ attr_accessor :rows
639
+
640
+ def initialize(**args)
641
+ update!(**args)
642
+ end
643
+
644
+ # Update properties of this object
645
+ def update!(**args)
646
+ @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold)
647
+ @rows = args[:rows] if args.key?(:rows)
648
+ end
649
+ end
650
+
248
651
  #
249
652
  class CsvOptions
250
653
  include Google::Apis::Core::Hashable
@@ -471,9 +874,12 @@ module Google
471
874
  # @return [String]
472
875
  attr_accessor :iam_member
473
876
 
474
- # [Required] Describes the rights granted to the user specified by the other
475
- # member of the access object. The following string values are supported: READER,
476
- # WRITER, OWNER.
877
+ # [Required] An IAM role ID that should be granted to the user, group, or domain
878
+ # specified in this access entry. The following legacy mappings will be applied:
879
+ # OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER
880
+ # roles/bigquery.dataViewer This field will accept any of the above formats, but
881
+ # will return only the legacy format. For example, if you set this field to "
882
+ # roles/bigquery.dataOwner", it will be returned back as "OWNER".
477
883
  # Corresponds to the JSON property `role`
478
884
  # @return [String]
479
885
  attr_accessor :role
@@ -657,6 +1063,14 @@ module Google
657
1063
  # @return [String]
658
1064
  attr_accessor :friendly_name
659
1065
 
1066
+ # [Optional] The labels associated with this table. You can use these to
1067
+ # organize and group your tables. This will only be used if the destination
1068
+ # table is newly created. If the table already exists and labels are different
1069
+ # than the current labels are provided, the job will fail.
1070
+ # Corresponds to the JSON property `labels`
1071
+ # @return [Hash<String,String>]
1072
+ attr_accessor :labels
1073
+
660
1074
  def initialize(**args)
661
1075
  update!(**args)
662
1076
  end
@@ -665,6 +1079,7 @@ module Google
665
1079
  def update!(**args)
666
1080
  @description = args[:description] if args.key?(:description)
667
1081
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
1082
+ @labels = args[:labels] if args.key?(:labels)
668
1083
  end
669
1084
  end
670
1085
 
@@ -689,6 +1104,33 @@ module Google
689
1104
  end
690
1105
  end
691
1106
 
1107
+ # A single entry in the confusion matrix.
1108
+ class Entry
1109
+ include Google::Apis::Core::Hashable
1110
+
1111
+ # Number of items being predicted as this label.
1112
+ # Corresponds to the JSON property `itemCount`
1113
+ # @return [Fixnum]
1114
+ attr_accessor :item_count
1115
+
1116
+ # The predicted label. For confidence_threshold > 0, we will
1117
+ # also add an entry indicating the number of items under the
1118
+ # confidence threshold.
1119
+ # Corresponds to the JSON property `predictedLabel`
1120
+ # @return [String]
1121
+ attr_accessor :predicted_label
1122
+
1123
+ def initialize(**args)
1124
+ update!(**args)
1125
+ end
1126
+
1127
+ # Update properties of this object
1128
+ def update!(**args)
1129
+ @item_count = args[:item_count] if args.key?(:item_count)
1130
+ @predicted_label = args[:predicted_label] if args.key?(:predicted_label)
1131
+ end
1132
+ end
1133
+
692
1134
  #
693
1135
  class ErrorProto
694
1136
  include Google::Apis::Core::Hashable
@@ -727,6 +1169,45 @@ module Google
727
1169
  end
728
1170
  end
729
1171
 
1172
+ # Evaluation metrics of a model. These are either computed on all training
1173
+ # data or just the eval data based on whether eval data was used during
1174
+ # training. These are not present for imported models.
1175
+ class EvaluationMetrics
1176
+ include Google::Apis::Core::Hashable
1177
+
1178
+ # Evaluation metrics for binary classification/classifier models.
1179
+ # Corresponds to the JSON property `binaryClassificationMetrics`
1180
+ # @return [Google::Apis::BigqueryV2::BinaryClassificationMetrics]
1181
+ attr_accessor :binary_classification_metrics
1182
+
1183
+ # Evaluation metrics for clustering models.
1184
+ # Corresponds to the JSON property `clusteringMetrics`
1185
+ # @return [Google::Apis::BigqueryV2::ClusteringMetrics]
1186
+ attr_accessor :clustering_metrics
1187
+
1188
+ # Evaluation metrics for multi-class classification/classifier models.
1189
+ # Corresponds to the JSON property `multiClassClassificationMetrics`
1190
+ # @return [Google::Apis::BigqueryV2::MultiClassClassificationMetrics]
1191
+ attr_accessor :multi_class_classification_metrics
1192
+
1193
+ # Evaluation metrics for regression models.
1194
+ # Corresponds to the JSON property `regressionMetrics`
1195
+ # @return [Google::Apis::BigqueryV2::RegressionMetrics]
1196
+ attr_accessor :regression_metrics
1197
+
1198
+ def initialize(**args)
1199
+ update!(**args)
1200
+ end
1201
+
1202
+ # Update properties of this object
1203
+ def update!(**args)
1204
+ @binary_classification_metrics = args[:binary_classification_metrics] if args.key?(:binary_classification_metrics)
1205
+ @clustering_metrics = args[:clustering_metrics] if args.key?(:clustering_metrics)
1206
+ @multi_class_classification_metrics = args[:multi_class_classification_metrics] if args.key?(:multi_class_classification_metrics)
1207
+ @regression_metrics = args[:regression_metrics] if args.key?(:regression_metrics)
1208
+ end
1209
+ end
1210
+
730
1211
  #
731
1212
  class ExplainQueryStage
732
1213
  include Google::Apis::Core::Hashable
@@ -1216,37 +1697,36 @@ module Google
1216
1697
  end
1217
1698
  end
1218
1699
 
1219
- #
1700
+ # Information about a single iteration of the training run.
1220
1701
  class IterationResult
1221
1702
  include Google::Apis::Core::Hashable
1222
1703
 
1223
- # [Output-only, Beta] Time taken to run the training iteration in milliseconds.
1704
+ # [Beta] Information about top clusters for clustering models.
1705
+ # Corresponds to the JSON property `clusterInfos`
1706
+ # @return [Array<Google::Apis::BigqueryV2::ClusterInfo>]
1707
+ attr_accessor :cluster_infos
1708
+
1709
+ # Time taken to run the iteration in milliseconds.
1224
1710
  # Corresponds to the JSON property `durationMs`
1225
1711
  # @return [Fixnum]
1226
1712
  attr_accessor :duration_ms
1227
1713
 
1228
- # [Output-only, Beta] Eval loss computed on the eval data at the end of the
1229
- # iteration. The eval loss is used for early stopping to avoid overfitting. No
1230
- # eval loss if eval_split_method option is specified as no_split or auto_split
1231
- # with input data size less than 500 rows.
1714
+ # Loss computed on the eval data at the end of iteration.
1232
1715
  # Corresponds to the JSON property `evalLoss`
1233
1716
  # @return [Float]
1234
1717
  attr_accessor :eval_loss
1235
1718
 
1236
- # [Output-only, Beta] Index of the ML training iteration, starting from zero for
1237
- # each training run.
1719
+ # Index of the iteration, 0 based.
1238
1720
  # Corresponds to the JSON property `index`
1239
1721
  # @return [Fixnum]
1240
1722
  attr_accessor :index
1241
1723
 
1242
- # [Output-only, Beta] Learning rate used for this iteration, it varies for
1243
- # different training iterations if learn_rate_strategy option is not constant.
1724
+ # Learn rate used for this iteration.
1244
1725
  # Corresponds to the JSON property `learnRate`
1245
1726
  # @return [Float]
1246
1727
  attr_accessor :learn_rate
1247
1728
 
1248
- # [Output-only, Beta] Training loss computed on the training data at the end of
1249
- # the iteration. The training loss function is defined by model type.
1729
+ # Loss computed on the training data at the end of iteration.
1250
1730
  # Corresponds to the JSON property `trainingLoss`
1251
1731
  # @return [Float]
1252
1732
  attr_accessor :training_loss
@@ -1257,6 +1737,7 @@ module Google
1257
1737
 
1258
1738
  # Update properties of this object
1259
1739
  def update!(**args)
1740
+ @cluster_infos = args[:cluster_infos] if args.key?(:cluster_infos)
1260
1741
  @duration_ms = args[:duration_ms] if args.key?(:duration_ms)
1261
1742
  @eval_loss = args[:eval_loss] if args.key?(:eval_loss)
1262
1743
  @index = args[:index] if args.key?(:index)
@@ -2190,6 +2671,16 @@ module Google
2190
2671
  # @return [Google::Apis::BigqueryV2::JobStatistics3]
2191
2672
  attr_accessor :load
2192
2673
 
2674
+ # [Output-only] Number of child jobs executed.
2675
+ # Corresponds to the JSON property `numChildJobs`
2676
+ # @return [Fixnum]
2677
+ attr_accessor :num_child_jobs
2678
+
2679
+ # [Output-only] If this is a child job, the id of the parent.
2680
+ # Corresponds to the JSON property `parentJobId`
2681
+ # @return [String]
2682
+ attr_accessor :parent_job_id
2683
+
2193
2684
  # [Output-only] Statistics for a query job.
2194
2685
  # Corresponds to the JSON property `query`
2195
2686
  # @return [Google::Apis::BigqueryV2::JobStatistics2]
@@ -2234,6 +2725,8 @@ module Google
2234
2725
  @end_time = args[:end_time] if args.key?(:end_time)
2235
2726
  @extract = args[:extract] if args.key?(:extract)
2236
2727
  @load = args[:load] if args.key?(:load)
2728
+ @num_child_jobs = args[:num_child_jobs] if args.key?(:num_child_jobs)
2729
+ @parent_job_id = args[:parent_job_id] if args.key?(:parent_job_id)
2237
2730
  @query = args[:query] if args.key?(:query)
2238
2731
  @quota_deferments = args[:quota_deferments] if args.key?(:quota_deferments)
2239
2732
  @reservation_usage = args[:reservation_usage] if args.key?(:reservation_usage)
@@ -2294,6 +2787,12 @@ module Google
2294
2787
  # @return [String]
2295
2788
  attr_accessor :ddl_operation_performed
2296
2789
 
2790
+ # The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE
2791
+ # queries.
2792
+ # Corresponds to the JSON property `ddlTargetRoutine`
2793
+ # @return [Google::Apis::BigqueryV2::RoutineReference]
2794
+ attr_accessor :ddl_target_routine
2795
+
2297
2796
  # The DDL target table. Present only for CREATE/DROP TABLE/VIEW queries.
2298
2797
  # Corresponds to the JSON property `ddlTargetTable`
2299
2798
  # @return [Google::Apis::BigqueryV2::TableReference]
@@ -2355,11 +2854,14 @@ module Google
2355
2854
  # DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-
2356
2855
  # sql/data-manipulation-language. "MERGE": MERGE query; see https://cloud.google.
2357
2856
  # com/bigquery/docs/reference/standard-sql/data-manipulation-language. "
2857
+ # ALTER_TABLE": ALTER TABLE query. "ALTER_VIEW": ALTER VIEW query. "
2858
+ # CREATE_FUNCTION": CREATE FUNCTION query. "CREATE_MODEL": CREATE [OR REPLACE]
2859
+ # MODEL ... AS SELECT ... . "CREATE_PROCEDURE": CREATE PROCEDURE query. "
2358
2860
  # CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "
2359
2861
  # CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... . "
2360
- # DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS
2361
- # SELECT ... . "DROP_VIEW": DROP VIEW query. "ALTER_TABLE": ALTER TABLE query. "
2362
- # ALTER_VIEW": ALTER VIEW query.
2862
+ # CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... . "DROP_FUNCTION" :
2863
+ # DROP FUNCTION query. "DROP_PROCEDURE": DROP PROCEDURE query. "DROP_TABLE":
2864
+ # DROP TABLE query. "DROP_VIEW": DROP VIEW query.
2363
2865
  # Corresponds to the JSON property `statementType`
2364
2866
  # @return [String]
2365
2867
  attr_accessor :statement_type
@@ -2382,7 +2884,7 @@ module Google
2382
2884
  # [Output-only] For dry-run jobs, totalBytesProcessed is an estimate and this
2383
2885
  # field specifies the accuracy of the estimate. Possible values can be: UNKNOWN:
2384
2886
  # accuracy of the estimate is unknown. PRECISE: estimate is precise. LOWER_BOUND:
2385
- # estimate is lower bound of what the query would cost. UPPER_BOUND: estiamte
2887
+ # estimate is lower bound of what the query would cost. UPPER_BOUND: estimate
2386
2888
  # is upper bound of what the query would cost.
2387
2889
  # Corresponds to the JSON property `totalBytesProcessedAccuracy`
2388
2890
  # @return [String]
@@ -2414,6 +2916,7 @@ module Google
2414
2916
  @billing_tier = args[:billing_tier] if args.key?(:billing_tier)
2415
2917
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
2416
2918
  @ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed)
2919
+ @ddl_target_routine = args[:ddl_target_routine] if args.key?(:ddl_target_routine)
2417
2920
  @ddl_target_table = args[:ddl_target_table] if args.key?(:ddl_target_table)
2418
2921
  @estimated_bytes_processed = args[:estimated_bytes_processed] if args.key?(:estimated_bytes_processed)
2419
2922
  @model_training = args[:model_training] if args.key?(:model_training)
@@ -2519,6 +3022,12 @@ module Google
2519
3022
  # @return [Array<Fixnum>]
2520
3023
  attr_accessor :destination_uri_file_counts
2521
3024
 
3025
+ # [Output-only] Number of user bytes extracted into the result. This is the byte
3026
+ # count as computed by BigQuery for billing purposes.
3027
+ # Corresponds to the JSON property `inputBytes`
3028
+ # @return [Fixnum]
3029
+ attr_accessor :input_bytes
3030
+
2522
3031
  def initialize(**args)
2523
3032
  update!(**args)
2524
3033
  end
@@ -2526,6 +3035,7 @@ module Google
2526
3035
  # Update properties of this object
2527
3036
  def update!(**args)
2528
3037
  @destination_uri_file_counts = args[:destination_uri_file_counts] if args.key?(:destination_uri_file_counts)
3038
+ @input_bytes = args[:input_bytes] if args.key?(:input_bytes)
2529
3039
  end
2530
3040
  end
2531
3041
 
@@ -2564,6 +3074,55 @@ module Google
2564
3074
  end
2565
3075
  end
2566
3076
 
3077
+ #
3078
+ class ListModelsResponse
3079
+ include Google::Apis::Core::Hashable
3080
+
3081
+ # Models in the requested dataset. Only the following fields are populated:
3082
+ # model_reference, model_type, creation_time, last_modified_time and
3083
+ # labels.
3084
+ # Corresponds to the JSON property `models`
3085
+ # @return [Array<Google::Apis::BigqueryV2::Model>]
3086
+ attr_accessor :models
3087
+
3088
+ # A token to request the next page of results.
3089
+ # Corresponds to the JSON property `nextPageToken`
3090
+ # @return [String]
3091
+ attr_accessor :next_page_token
3092
+
3093
+ def initialize(**args)
3094
+ update!(**args)
3095
+ end
3096
+
3097
+ # Update properties of this object
3098
+ def update!(**args)
3099
+ @models = args[:models] if args.key?(:models)
3100
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3101
+ end
3102
+ end
3103
+
3104
+ # BigQuery-specific metadata about a location. This will be set on
3105
+ # google.cloud.location.Location.metadata in Cloud Location API
3106
+ # responses.
3107
+ class LocationMetadata
3108
+ include Google::Apis::Core::Hashable
3109
+
3110
+ # The legacy BigQuery location ID, e.g. “EU” for the “europe” location.
3111
+ # This is for any API consumers that need the legacy “US” and “EU” locations.
3112
+ # Corresponds to the JSON property `legacyLocationId`
3113
+ # @return [String]
3114
+ attr_accessor :legacy_location_id
3115
+
3116
+ def initialize(**args)
3117
+ update!(**args)
3118
+ end
3119
+
3120
+ # Update properties of this object
3121
+ def update!(**args)
3122
+ @legacy_location_id = args[:legacy_location_id] if args.key?(:legacy_location_id)
3123
+ end
3124
+ end
3125
+
2567
3126
  #
2568
3127
  class MaterializedViewDefinition
2569
3128
  include Google::Apis::Core::Hashable
@@ -2590,6 +3149,115 @@ module Google
2590
3149
  end
2591
3150
  end
2592
3151
 
3152
+ #
3153
+ class Model
3154
+ include Google::Apis::Core::Hashable
3155
+
3156
+ # Output only. The time when this model was created, in millisecs since the
3157
+ # epoch.
3158
+ # Corresponds to the JSON property `creationTime`
3159
+ # @return [Fixnum]
3160
+ attr_accessor :creation_time
3161
+
3162
+ # [Optional] A user-friendly description of this model.
3163
+ # @mutable bigquery.models.patch
3164
+ # Corresponds to the JSON property `description`
3165
+ # @return [String]
3166
+ attr_accessor :description
3167
+
3168
+ # Output only. A hash of this resource.
3169
+ # Corresponds to the JSON property `etag`
3170
+ # @return [String]
3171
+ attr_accessor :etag
3172
+
3173
+ # [Optional] The time when this model expires, in milliseconds since the
3174
+ # epoch. If not present, the model will persist indefinitely. Expired models
3175
+ # will be deleted and their storage reclaimed. The defaultTableExpirationMs
3176
+ # property of the encapsulating dataset can be used to set a default
3177
+ # expirationTime on newly created models.
3178
+ # @mutable bigquery.models.patch
3179
+ # Corresponds to the JSON property `expirationTime`
3180
+ # @return [Fixnum]
3181
+ attr_accessor :expiration_time
3182
+
3183
+ # Output only. Input feature columns that were used to train this model.
3184
+ # Corresponds to the JSON property `featureColumns`
3185
+ # @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
3186
+ attr_accessor :feature_columns
3187
+
3188
+ # [Optional] A descriptive name for this model.
3189
+ # @mutable bigquery.models.patch
3190
+ # Corresponds to the JSON property `friendlyName`
3191
+ # @return [String]
3192
+ attr_accessor :friendly_name
3193
+
3194
+ # Output only. Label columns that were used to train this model.
3195
+ # The output of the model will have a "predicted_" prefix to these columns.
3196
+ # Corresponds to the JSON property `labelColumns`
3197
+ # @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
3198
+ attr_accessor :label_columns
3199
+
3200
+ # [Optional] The labels associated with this model. You can use these to
3201
+ # organize and group your models. Label keys and values can be no longer
3202
+ # than 63 characters, can only contain lowercase letters, numeric
3203
+ # characters, underscores and dashes. International characters are allowed.
3204
+ # Label values are optional. Label keys must start with a letter and each
3205
+ # label in the list must have a different key.
3206
+ # @mutable bigquery.models.patch
3207
+ # Corresponds to the JSON property `labels`
3208
+ # @return [Hash<String,String>]
3209
+ attr_accessor :labels
3210
+
3211
+ # Output only. The time when this model was last modified, in millisecs
3212
+ # since the epoch.
3213
+ # Corresponds to the JSON property `lastModifiedTime`
3214
+ # @return [Fixnum]
3215
+ attr_accessor :last_modified_time
3216
+
3217
+ # Output only. The geographic location where the model resides. This value
3218
+ # is inherited from the dataset.
3219
+ # Corresponds to the JSON property `location`
3220
+ # @return [String]
3221
+ attr_accessor :location
3222
+
3223
+ # Id path of a model.
3224
+ # Corresponds to the JSON property `modelReference`
3225
+ # @return [Google::Apis::BigqueryV2::ModelReference]
3226
+ attr_accessor :model_reference
3227
+
3228
+ # Output only. Type of the model resource.
3229
+ # Corresponds to the JSON property `modelType`
3230
+ # @return [String]
3231
+ attr_accessor :model_type
3232
+
3233
+ # Output only. Information for all training runs in increasing order of
3234
+ # start_time.
3235
+ # Corresponds to the JSON property `trainingRuns`
3236
+ # @return [Array<Google::Apis::BigqueryV2::TrainingRun>]
3237
+ attr_accessor :training_runs
3238
+
3239
+ def initialize(**args)
3240
+ update!(**args)
3241
+ end
3242
+
3243
+ # Update properties of this object
3244
+ def update!(**args)
3245
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
3246
+ @description = args[:description] if args.key?(:description)
3247
+ @etag = args[:etag] if args.key?(:etag)
3248
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
3249
+ @feature_columns = args[:feature_columns] if args.key?(:feature_columns)
3250
+ @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
3251
+ @label_columns = args[:label_columns] if args.key?(:label_columns)
3252
+ @labels = args[:labels] if args.key?(:labels)
3253
+ @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
3254
+ @location = args[:location] if args.key?(:location)
3255
+ @model_reference = args[:model_reference] if args.key?(:model_reference)
3256
+ @model_type = args[:model_type] if args.key?(:model_type)
3257
+ @training_runs = args[:training_runs] if args.key?(:training_runs)
3258
+ end
3259
+ end
3260
+
2593
3261
  #
2594
3262
  class ModelDefinition
2595
3263
  include Google::Apis::Core::Hashable
@@ -2606,7 +3274,7 @@ module Google
2606
3274
  # the model if warm start is used or if a user decides to continue a previously
2607
3275
  # cancelled query.
2608
3276
  # Corresponds to the JSON property `trainingRuns`
2609
- # @return [Array<Google::Apis::BigqueryV2::TrainingRun>]
3277
+ # @return [Array<Google::Apis::BigqueryV2::BqmlTrainingRun>]
2610
3278
  attr_accessor :training_runs
2611
3279
 
2612
3280
  def initialize(**args)
@@ -2653,6 +3321,69 @@ module Google
2653
3321
  end
2654
3322
  end
2655
3323
 
3324
+ # Id path of a model.
3325
+ class ModelReference
3326
+ include Google::Apis::Core::Hashable
3327
+
3328
+ # [Required] The ID of the dataset containing this model.
3329
+ # Corresponds to the JSON property `datasetId`
3330
+ # @return [String]
3331
+ attr_accessor :dataset_id
3332
+
3333
+ # [Required] The ID of the model. The ID must contain only
3334
+ # letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum
3335
+ # length is 1,024 characters.
3336
+ # Corresponds to the JSON property `modelId`
3337
+ # @return [String]
3338
+ attr_accessor :model_id
3339
+
3340
+ # [Required] The ID of the project containing this model.
3341
+ # Corresponds to the JSON property `projectId`
3342
+ # @return [String]
3343
+ attr_accessor :project_id
3344
+
3345
+ def initialize(**args)
3346
+ update!(**args)
3347
+ end
3348
+
3349
+ # Update properties of this object
3350
+ def update!(**args)
3351
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
3352
+ @model_id = args[:model_id] if args.key?(:model_id)
3353
+ @project_id = args[:project_id] if args.key?(:project_id)
3354
+ end
3355
+ end
3356
+
3357
+ # Evaluation metrics for multi-class classification/classifier models.
3358
+ class MultiClassClassificationMetrics
3359
+ include Google::Apis::Core::Hashable
3360
+
3361
+ # Aggregate metrics for classification/classifier models. For multi-class
3362
+ # models, the metrics are either macro-averaged or micro-averaged. When
3363
+ # macro-averaged, the metrics are calculated for each label and then an
3364
+ # unweighted average is taken of those values. When micro-averaged, the
3365
+ # metric is calculated globally by counting the total number of correctly
3366
+ # predicted rows.
3367
+ # Corresponds to the JSON property `aggregateClassificationMetrics`
3368
+ # @return [Google::Apis::BigqueryV2::AggregateClassificationMetrics]
3369
+ attr_accessor :aggregate_classification_metrics
3370
+
3371
+ # Confusion matrix at different thresholds.
3372
+ # Corresponds to the JSON property `confusionMatrixList`
3373
+ # @return [Array<Google::Apis::BigqueryV2::ConfusionMatrix>]
3374
+ attr_accessor :confusion_matrix_list
3375
+
3376
+ def initialize(**args)
3377
+ update!(**args)
3378
+ end
3379
+
3380
+ # Update properties of this object
3381
+ def update!(**args)
3382
+ @aggregate_classification_metrics = args[:aggregate_classification_metrics] if args.key?(:aggregate_classification_metrics)
3383
+ @confusion_matrix_list = args[:confusion_matrix_list] if args.key?(:confusion_matrix_list)
3384
+ end
3385
+ end
3386
+
2656
3387
  #
2657
3388
  class ProjectList
2658
3389
  include Google::Apis::Core::Hashable
@@ -3195,6 +3926,209 @@ module Google
3195
3926
  end
3196
3927
  end
3197
3928
 
3929
+ # Evaluation metrics for regression models.
3930
+ class RegressionMetrics
3931
+ include Google::Apis::Core::Hashable
3932
+
3933
+ # Mean absolute error.
3934
+ # Corresponds to the JSON property `meanAbsoluteError`
3935
+ # @return [Float]
3936
+ attr_accessor :mean_absolute_error
3937
+
3938
+ # Mean squared error.
3939
+ # Corresponds to the JSON property `meanSquaredError`
3940
+ # @return [Float]
3941
+ attr_accessor :mean_squared_error
3942
+
3943
+ # Mean squared log error.
3944
+ # Corresponds to the JSON property `meanSquaredLogError`
3945
+ # @return [Float]
3946
+ attr_accessor :mean_squared_log_error
3947
+
3948
+ # Median absolute error.
3949
+ # Corresponds to the JSON property `medianAbsoluteError`
3950
+ # @return [Float]
3951
+ attr_accessor :median_absolute_error
3952
+
3953
+ # R^2 score.
3954
+ # Corresponds to the JSON property `rSquared`
3955
+ # @return [Float]
3956
+ attr_accessor :r_squared
3957
+
3958
+ def initialize(**args)
3959
+ update!(**args)
3960
+ end
3961
+
3962
+ # Update properties of this object
3963
+ def update!(**args)
3964
+ @mean_absolute_error = args[:mean_absolute_error] if args.key?(:mean_absolute_error)
3965
+ @mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error)
3966
+ @mean_squared_log_error = args[:mean_squared_log_error] if args.key?(:mean_squared_log_error)
3967
+ @median_absolute_error = args[:median_absolute_error] if args.key?(:median_absolute_error)
3968
+ @r_squared = args[:r_squared] if args.key?(:r_squared)
3969
+ end
3970
+ end
3971
+
3972
+ #
3973
+ class RoutineReference
3974
+ include Google::Apis::Core::Hashable
3975
+
3976
+ # [Required] The ID of the dataset containing this routine.
3977
+ # Corresponds to the JSON property `datasetId`
3978
+ # @return [String]
3979
+ attr_accessor :dataset_id
3980
+
3981
+ # [Required] The ID of the project containing this routine.
3982
+ # Corresponds to the JSON property `projectId`
3983
+ # @return [String]
3984
+ attr_accessor :project_id
3985
+
3986
+ # [Required] The ID of the routine. The ID must contain only letters (a-z, A-Z),
3987
+ # numbers (0-9), or underscores (_). The maximum length is 256 characters.
3988
+ # Corresponds to the JSON property `routineId`
3989
+ # @return [String]
3990
+ attr_accessor :routine_id
3991
+
3992
+ def initialize(**args)
3993
+ update!(**args)
3994
+ end
3995
+
3996
+ # Update properties of this object
3997
+ def update!(**args)
3998
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
3999
+ @project_id = args[:project_id] if args.key?(:project_id)
4000
+ @routine_id = args[:routine_id] if args.key?(:routine_id)
4001
+ end
4002
+ end
4003
+
4004
+ # A single row in the confusion matrix.
4005
+ class Row
4006
+ include Google::Apis::Core::Hashable
4007
+
4008
+ # The original label of this row.
4009
+ # Corresponds to the JSON property `actualLabel`
4010
+ # @return [String]
4011
+ attr_accessor :actual_label
4012
+
4013
+ # Info describing predicted label distribution.
4014
+ # Corresponds to the JSON property `entries`
4015
+ # @return [Array<Google::Apis::BigqueryV2::Entry>]
4016
+ attr_accessor :entries
4017
+
4018
+ def initialize(**args)
4019
+ update!(**args)
4020
+ end
4021
+
4022
+ # Update properties of this object
4023
+ def update!(**args)
4024
+ @actual_label = args[:actual_label] if args.key?(:actual_label)
4025
+ @entries = args[:entries] if args.key?(:entries)
4026
+ end
4027
+ end
4028
+
4029
+ # The type of a variable, e.g., a function argument.
4030
+ # Examples:
4031
+ # INT64: `type_kind="INT64"`
4032
+ # ARRAY<STRING>: `type_kind="ARRAY", array_element_type="STRING"`
4033
+ # STRUCT<x STRING, y ARRAY<DATE>>:
4034
+ # `type_kind="STRUCT",
4035
+ # struct_type=`fields=[
4036
+ # `name="x", type=`type_kind="STRING"``,
4037
+ # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"``
4038
+ # ]``
4039
+ class StandardSqlDataType
4040
+ include Google::Apis::Core::Hashable
4041
+
4042
+ # The type of a variable, e.g., a function argument.
4043
+ # Examples:
4044
+ # INT64: `type_kind="INT64"`
4045
+ # ARRAY<STRING>: `type_kind="ARRAY", array_element_type="STRING"`
4046
+ # STRUCT<x STRING, y ARRAY<DATE>>:
4047
+ # `type_kind="STRUCT",
4048
+ # struct_type=`fields=[
4049
+ # `name="x", type=`type_kind="STRING"``,
4050
+ # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"``
4051
+ # ]``
4052
+ # Corresponds to the JSON property `arrayElementType`
4053
+ # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
4054
+ attr_accessor :array_element_type
4055
+
4056
+ # The fields of this struct, in order, if type_kind = "STRUCT".
4057
+ # Corresponds to the JSON property `structType`
4058
+ # @return [Google::Apis::BigqueryV2::StandardSqlStructType]
4059
+ attr_accessor :struct_type
4060
+
4061
+ # Required. The top level type of this field.
4062
+ # Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY").
4063
+ # Corresponds to the JSON property `typeKind`
4064
+ # @return [String]
4065
+ attr_accessor :type_kind
4066
+
4067
+ def initialize(**args)
4068
+ update!(**args)
4069
+ end
4070
+
4071
+ # Update properties of this object
4072
+ def update!(**args)
4073
+ @array_element_type = args[:array_element_type] if args.key?(:array_element_type)
4074
+ @struct_type = args[:struct_type] if args.key?(:struct_type)
4075
+ @type_kind = args[:type_kind] if args.key?(:type_kind)
4076
+ end
4077
+ end
4078
+
4079
+ # A field or a column.
4080
+ class StandardSqlField
4081
+ include Google::Apis::Core::Hashable
4082
+
4083
+ # Optional. The name of this field. Can be absent for struct fields.
4084
+ # Corresponds to the JSON property `name`
4085
+ # @return [String]
4086
+ attr_accessor :name
4087
+
4088
+ # The type of a variable, e.g., a function argument.
4089
+ # Examples:
4090
+ # INT64: `type_kind="INT64"`
4091
+ # ARRAY<STRING>: `type_kind="ARRAY", array_element_type="STRING"`
4092
+ # STRUCT<x STRING, y ARRAY<DATE>>:
4093
+ # `type_kind="STRUCT",
4094
+ # struct_type=`fields=[
4095
+ # `name="x", type=`type_kind="STRING"``,
4096
+ # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"``
4097
+ # ]``
4098
+ # Corresponds to the JSON property `type`
4099
+ # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
4100
+ attr_accessor :type
4101
+
4102
+ def initialize(**args)
4103
+ update!(**args)
4104
+ end
4105
+
4106
+ # Update properties of this object
4107
+ def update!(**args)
4108
+ @name = args[:name] if args.key?(:name)
4109
+ @type = args[:type] if args.key?(:type)
4110
+ end
4111
+ end
4112
+
4113
+ #
4114
+ class StandardSqlStructType
4115
+ include Google::Apis::Core::Hashable
4116
+
4117
+ #
4118
+ # Corresponds to the JSON property `fields`
4119
+ # @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
4120
+ attr_accessor :fields
4121
+
4122
+ def initialize(**args)
4123
+ update!(**args)
4124
+ end
4125
+
4126
+ # Update properties of this object
4127
+ def update!(**args)
4128
+ @fields = args[:fields] if args.key?(:fields)
4129
+ end
4130
+ end
4131
+
3198
4132
  #
3199
4133
  class Streamingbuffer
3200
4134
  include Google::Apis::Core::Hashable
@@ -3977,34 +4911,180 @@ module Google
3977
4911
  end
3978
4912
 
3979
4913
  #
4914
+ class TrainingOptions
4915
+ include Google::Apis::Core::Hashable
4916
+
4917
+ # The column to split data with. This column won't be used as a
4918
+ # feature.
4919
+ # 1. When data_split_method is CUSTOM, the corresponding column should
4920
+ # be boolean. The rows with true value tag are eval data, and the false
4921
+ # are training data.
4922
+ # 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION
4923
+ # rows (from smallest to largest) in the corresponding column are used
4924
+ # as training data, and the rest are eval data. It respects the order
4925
+ # in Orderable data types:
4926
+ # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data-
4927
+ # type-properties
4928
+ # Corresponds to the JSON property `dataSplitColumn`
4929
+ # @return [String]
4930
+ attr_accessor :data_split_column
4931
+
4932
+ # The fraction of evaluation data over the whole input data. The rest
4933
+ # of data will be used as training data. The format should be double.
4934
+ # Accurate to two decimal places.
4935
+ # Default value is 0.2.
4936
+ # Corresponds to the JSON property `dataSplitEvalFraction`
4937
+ # @return [Float]
4938
+ attr_accessor :data_split_eval_fraction
4939
+
4940
+ # The data split type for training and evaluation, e.g. RANDOM.
4941
+ # Corresponds to the JSON property `dataSplitMethod`
4942
+ # @return [String]
4943
+ attr_accessor :data_split_method
4944
+
4945
+ # [Beta] Distance type for clustering models.
4946
+ # Corresponds to the JSON property `distanceType`
4947
+ # @return [String]
4948
+ attr_accessor :distance_type
4949
+
4950
+ # Whether to stop early when the loss doesn't improve significantly
4951
+ # any more (compared to min_relative_progress). Used only for iterative
4952
+ # training algorithms.
4953
+ # Corresponds to the JSON property `earlyStop`
4954
+ # @return [Boolean]
4955
+ attr_accessor :early_stop
4956
+ alias_method :early_stop?, :early_stop
4957
+
4958
+ # Specifies the initial learning rate for the line search learn rate
4959
+ # strategy.
4960
+ # Corresponds to the JSON property `initialLearnRate`
4961
+ # @return [Float]
4962
+ attr_accessor :initial_learn_rate
4963
+
4964
+ # Name of input label columns in training data.
4965
+ # Corresponds to the JSON property `inputLabelColumns`
4966
+ # @return [Array<String>]
4967
+ attr_accessor :input_label_columns
4968
+
4969
+ # L1 regularization coefficient.
4970
+ # Corresponds to the JSON property `l1Regularization`
4971
+ # @return [Float]
4972
+ attr_accessor :l1_regularization
4973
+
4974
+ # L2 regularization coefficient.
4975
+ # Corresponds to the JSON property `l2Regularization`
4976
+ # @return [Float]
4977
+ attr_accessor :l2_regularization
4978
+
4979
+ # Weights associated with each label class, for rebalancing the
4980
+ # training data. Only applicable for classification models.
4981
+ # Corresponds to the JSON property `labelClassWeights`
4982
+ # @return [Hash<String,Float>]
4983
+ attr_accessor :label_class_weights
4984
+
4985
+ # Learning rate in training. Used only for iterative training algorithms.
4986
+ # Corresponds to the JSON property `learnRate`
4987
+ # @return [Float]
4988
+ attr_accessor :learn_rate
4989
+
4990
+ # The strategy to determine learn rate for the current iteration.
4991
+ # Corresponds to the JSON property `learnRateStrategy`
4992
+ # @return [String]
4993
+ attr_accessor :learn_rate_strategy
4994
+
4995
+ # Type of loss function used during training run.
4996
+ # Corresponds to the JSON property `lossType`
4997
+ # @return [String]
4998
+ attr_accessor :loss_type
4999
+
5000
+ # The maximum number of iterations in training. Used only for iterative
5001
+ # training algorithms.
5002
+ # Corresponds to the JSON property `maxIterations`
5003
+ # @return [Fixnum]
5004
+ attr_accessor :max_iterations
5005
+
5006
+ # When early_stop is true, stops training when accuracy improvement is
5007
+ # less than 'min_relative_progress'. Used only for iterative training
5008
+ # algorithms.
5009
+ # Corresponds to the JSON property `minRelativeProgress`
5010
+ # @return [Float]
5011
+ attr_accessor :min_relative_progress
5012
+
5013
+ # [Beta] Google Cloud Storage URI from which the model was imported. Only
5014
+ # applicable for imported models.
5015
+ # Corresponds to the JSON property `modelUri`
5016
+ # @return [String]
5017
+ attr_accessor :model_uri
5018
+
5019
+ # [Beta] Number of clusters for clustering models.
5020
+ # Corresponds to the JSON property `numClusters`
5021
+ # @return [Fixnum]
5022
+ attr_accessor :num_clusters
5023
+
5024
+ # Optimization strategy for training linear regression models.
5025
+ # Corresponds to the JSON property `optimizationStrategy`
5026
+ # @return [String]
5027
+ attr_accessor :optimization_strategy
5028
+
5029
+ # Whether to train a model from the last checkpoint.
5030
+ # Corresponds to the JSON property `warmStart`
5031
+ # @return [Boolean]
5032
+ attr_accessor :warm_start
5033
+ alias_method :warm_start?, :warm_start
5034
+
5035
+ def initialize(**args)
5036
+ update!(**args)
5037
+ end
5038
+
5039
+ # Update properties of this object
5040
+ def update!(**args)
5041
+ @data_split_column = args[:data_split_column] if args.key?(:data_split_column)
5042
+ @data_split_eval_fraction = args[:data_split_eval_fraction] if args.key?(:data_split_eval_fraction)
5043
+ @data_split_method = args[:data_split_method] if args.key?(:data_split_method)
5044
+ @distance_type = args[:distance_type] if args.key?(:distance_type)
5045
+ @early_stop = args[:early_stop] if args.key?(:early_stop)
5046
+ @initial_learn_rate = args[:initial_learn_rate] if args.key?(:initial_learn_rate)
5047
+ @input_label_columns = args[:input_label_columns] if args.key?(:input_label_columns)
5048
+ @l1_regularization = args[:l1_regularization] if args.key?(:l1_regularization)
5049
+ @l2_regularization = args[:l2_regularization] if args.key?(:l2_regularization)
5050
+ @label_class_weights = args[:label_class_weights] if args.key?(:label_class_weights)
5051
+ @learn_rate = args[:learn_rate] if args.key?(:learn_rate)
5052
+ @learn_rate_strategy = args[:learn_rate_strategy] if args.key?(:learn_rate_strategy)
5053
+ @loss_type = args[:loss_type] if args.key?(:loss_type)
5054
+ @max_iterations = args[:max_iterations] if args.key?(:max_iterations)
5055
+ @min_relative_progress = args[:min_relative_progress] if args.key?(:min_relative_progress)
5056
+ @model_uri = args[:model_uri] if args.key?(:model_uri)
5057
+ @num_clusters = args[:num_clusters] if args.key?(:num_clusters)
5058
+ @optimization_strategy = args[:optimization_strategy] if args.key?(:optimization_strategy)
5059
+ @warm_start = args[:warm_start] if args.key?(:warm_start)
5060
+ end
5061
+ end
5062
+
5063
+ # Information about a single training query run for the model.
3980
5064
  class TrainingRun
3981
5065
  include Google::Apis::Core::Hashable
3982
5066
 
3983
- # [Output-only, Beta] List of each iteration results.
3984
- # Corresponds to the JSON property `iterationResults`
5067
+ # Evaluation metrics of a model. These are either computed on all training
5068
+ # data or just the eval data based on whether eval data was used during
5069
+ # training. These are not present for imported models.
5070
+ # Corresponds to the JSON property `evaluationMetrics`
5071
+ # @return [Google::Apis::BigqueryV2::EvaluationMetrics]
5072
+ attr_accessor :evaluation_metrics
5073
+
5074
+ # Output of each iteration run, results.size() <= max_iterations.
5075
+ # Corresponds to the JSON property `results`
3985
5076
  # @return [Array<Google::Apis::BigqueryV2::IterationResult>]
3986
- attr_accessor :iteration_results
5077
+ attr_accessor :results
3987
5078
 
3988
- # [Output-only, Beta] Training run start time in milliseconds since the epoch.
5079
+ # The start time of this training run.
3989
5080
  # Corresponds to the JSON property `startTime`
3990
- # @return [DateTime]
3991
- attr_accessor :start_time
3992
-
3993
- # [Output-only, Beta] Different state applicable for a training run. IN PROGRESS:
3994
- # Training run is in progress. FAILED: Training run ended due to a non-
3995
- # retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED:
3996
- # Training run cancelled by the user.
3997
- # Corresponds to the JSON property `state`
3998
5081
  # @return [String]
3999
- attr_accessor :state
5082
+ attr_accessor :start_time
4000
5083
 
4001
- # [Output-only, Beta] Training options used by this training run. These options
4002
- # are mutable for subsequent training runs. Default values are explicitly stored
4003
- # for options not specified in the input query of the first training run. For
4004
- # subsequent training runs, any option not explicitly specified in the input
4005
- # query will be copied from the previous training run.
5084
+ # Options that were used for this training run, includes
5085
+ # user specified and default options that were used.
4006
5086
  # Corresponds to the JSON property `trainingOptions`
4007
- # @return [Google::Apis::BigqueryV2::TrainingRun::TrainingOptions]
5087
+ # @return [Google::Apis::BigqueryV2::TrainingOptions]
4008
5088
  attr_accessor :training_options
4009
5089
 
4010
5090
  def initialize(**args)
@@ -4013,84 +5093,11 @@ module Google
4013
5093
 
4014
5094
  # Update properties of this object
4015
5095
  def update!(**args)
4016
- @iteration_results = args[:iteration_results] if args.key?(:iteration_results)
5096
+ @evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics)
5097
+ @results = args[:results] if args.key?(:results)
4017
5098
  @start_time = args[:start_time] if args.key?(:start_time)
4018
- @state = args[:state] if args.key?(:state)
4019
5099
  @training_options = args[:training_options] if args.key?(:training_options)
4020
5100
  end
4021
-
4022
- # [Output-only, Beta] Training options used by this training run. These options
4023
- # are mutable for subsequent training runs. Default values are explicitly stored
4024
- # for options not specified in the input query of the first training run. For
4025
- # subsequent training runs, any option not explicitly specified in the input
4026
- # query will be copied from the previous training run.
4027
- class TrainingOptions
4028
- include Google::Apis::Core::Hashable
4029
-
4030
- #
4031
- # Corresponds to the JSON property `earlyStop`
4032
- # @return [Boolean]
4033
- attr_accessor :early_stop
4034
- alias_method :early_stop?, :early_stop
4035
-
4036
- #
4037
- # Corresponds to the JSON property `l1Reg`
4038
- # @return [Float]
4039
- attr_accessor :l1_reg
4040
-
4041
- #
4042
- # Corresponds to the JSON property `l2Reg`
4043
- # @return [Float]
4044
- attr_accessor :l2_reg
4045
-
4046
- #
4047
- # Corresponds to the JSON property `learnRate`
4048
- # @return [Float]
4049
- attr_accessor :learn_rate
4050
-
4051
- #
4052
- # Corresponds to the JSON property `learnRateStrategy`
4053
- # @return [String]
4054
- attr_accessor :learn_rate_strategy
4055
-
4056
- #
4057
- # Corresponds to the JSON property `lineSearchInitLearnRate`
4058
- # @return [Float]
4059
- attr_accessor :line_search_init_learn_rate
4060
-
4061
- #
4062
- # Corresponds to the JSON property `maxIteration`
4063
- # @return [Fixnum]
4064
- attr_accessor :max_iteration
4065
-
4066
- #
4067
- # Corresponds to the JSON property `minRelProgress`
4068
- # @return [Float]
4069
- attr_accessor :min_rel_progress
4070
-
4071
- #
4072
- # Corresponds to the JSON property `warmStart`
4073
- # @return [Boolean]
4074
- attr_accessor :warm_start
4075
- alias_method :warm_start?, :warm_start
4076
-
4077
- def initialize(**args)
4078
- update!(**args)
4079
- end
4080
-
4081
- # Update properties of this object
4082
- def update!(**args)
4083
- @early_stop = args[:early_stop] if args.key?(:early_stop)
4084
- @l1_reg = args[:l1_reg] if args.key?(:l1_reg)
4085
- @l2_reg = args[:l2_reg] if args.key?(:l2_reg)
4086
- @learn_rate = args[:learn_rate] if args.key?(:learn_rate)
4087
- @learn_rate_strategy = args[:learn_rate_strategy] if args.key?(:learn_rate_strategy)
4088
- @line_search_init_learn_rate = args[:line_search_init_learn_rate] if args.key?(:line_search_init_learn_rate)
4089
- @max_iteration = args[:max_iteration] if args.key?(:max_iteration)
4090
- @min_rel_progress = args[:min_rel_progress] if args.key?(:min_rel_progress)
4091
- @warm_start = args[:warm_start] if args.key?(:warm_start)
4092
- end
4093
- end
4094
5101
  end
4095
5102
 
4096
5103
  #