google-api-client 0.29.1 → 0.29.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (472) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +102 -0
  3. data/README.md +1 -1
  4. data/bin/generate-api +4 -2
  5. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -2
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -1
  7. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  8. data/generated/google/apis/accessapproval_v1beta1/classes.rb +27 -0
  9. data/generated/google/apis/accessapproval_v1beta1/representations.rb +15 -0
  10. data/generated/google/apis/accessapproval_v1beta1/service.rb +18 -18
  11. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  12. data/generated/google/apis/accesscontextmanager_v1/classes.rb +1 -1
  13. data/generated/google/apis/accesscontextmanager_v1/service.rb +19 -19
  14. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  15. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +1 -1
  16. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +16 -16
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +0 -69
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -32
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +62 -62
  21. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +7 -7
  22. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -21
  23. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -38
  24. data/generated/google/apis/adexperiencereport_v1/service.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +5 -5
  26. data/generated/google/apis/admin_directory_v1/service.rb +113 -113
  27. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  28. data/generated/google/apis/adsense_v1_4/service.rb +39 -39
  29. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -26
  30. data/generated/google/apis/alertcenter_v1beta1/service.rb +8 -8
  31. data/generated/google/apis/analytics_v2_4/service.rb +6 -6
  32. data/generated/google/apis/analytics_v3/service.rb +88 -88
  33. data/generated/google/apis/analyticsreporting_v4/service.rb +2 -2
  34. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  35. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +1 -1
  36. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +26 -26
  37. data/generated/google/apis/androidenterprise_v1/service.rb +85 -85
  38. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  39. data/generated/google/apis/androidmanagement_v1/classes.rb +111 -2
  40. data/generated/google/apis/androidmanagement_v1/representations.rb +48 -0
  41. data/generated/google/apis/androidmanagement_v1/service.rb +26 -26
  42. data/generated/google/apis/androidpublisher_v1/service.rb +2 -2
  43. data/generated/google/apis/androidpublisher_v1_1/service.rb +3 -3
  44. data/generated/google/apis/androidpublisher_v2/service.rb +58 -58
  45. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  46. data/generated/google/apis/androidpublisher_v3/classes.rb +81 -0
  47. data/generated/google/apis/androidpublisher_v3/representations.rb +42 -0
  48. data/generated/google/apis/androidpublisher_v3/service.rb +228 -52
  49. data/generated/google/apis/appengine_v1.rb +1 -1
  50. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  51. data/generated/google/apis/appengine_v1/service.rb +38 -38
  52. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  53. data/generated/google/apis/appengine_v1alpha/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1alpha/service.rb +15 -15
  55. data/generated/google/apis/appengine_v1beta.rb +1 -1
  56. data/generated/google/apis/appengine_v1beta/classes.rb +2 -2
  57. data/generated/google/apis/appengine_v1beta/service.rb +38 -38
  58. data/generated/google/apis/appengine_v1beta4/service.rb +20 -20
  59. data/generated/google/apis/appengine_v1beta5/service.rb +20 -20
  60. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  61. data/generated/google/apis/appsmarket_v2/service.rb +3 -3
  62. data/generated/google/apis/appstate_v1/service.rb +5 -5
  63. data/generated/google/apis/bigquery_v2.rb +1 -1
  64. data/generated/google/apis/bigquery_v2/classes.rb +934 -0
  65. data/generated/google/apis/bigquery_v2/representations.rb +367 -0
  66. data/generated/google/apis/bigquery_v2/service.rb +184 -22
  67. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -30
  68. data/generated/google/apis/bigtableadmin_v1/service.rb +2 -2
  69. data/generated/google/apis/bigtableadmin_v2/service.rb +34 -34
  70. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  71. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +17 -13
  72. data/generated/google/apis/blogger_v2/service.rb +9 -9
  73. data/generated/google/apis/blogger_v3/service.rb +33 -33
  74. data/generated/google/apis/books_v1/service.rb +51 -51
  75. data/generated/google/apis/calendar_v3/service.rb +37 -37
  76. data/generated/google/apis/chat_v1/service.rb +8 -8
  77. data/generated/google/apis/civicinfo_v2/service.rb +5 -5
  78. data/generated/google/apis/classroom_v1.rb +1 -1
  79. data/generated/google/apis/classroom_v1/service.rb +57 -56
  80. data/generated/google/apis/cloudasset_v1/service.rb +3 -3
  81. data/generated/google/apis/cloudasset_v1beta1/service.rb +8 -8
  82. data/generated/google/apis/cloudbilling_v1/service.rb +12 -12
  83. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  84. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
  85. data/generated/google/apis/cloudbuild_v1/service.rb +14 -14
  86. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +5 -5
  87. data/generated/google/apis/clouddebugger_v2/service.rb +8 -8
  88. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -6
  89. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  90. data/generated/google/apis/cloudfunctions_v1/classes.rb +1 -1
  91. data/generated/google/apis/cloudfunctions_v1/service.rb +14 -14
  92. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  93. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +1 -1
  94. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +11 -11
  95. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  96. data/generated/google/apis/cloudidentity_v1/classes.rb +1 -1
  97. data/generated/google/apis/cloudidentity_v1/service.rb +12 -12
  98. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  99. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1 -1
  100. data/generated/google/apis/cloudidentity_v1beta1/service.rb +11 -11
  101. data/generated/google/apis/cloudiot_v1.rb +1 -1
  102. data/generated/google/apis/cloudiot_v1/service.rb +23 -330
  103. data/generated/google/apis/cloudkms_v1/service.rb +30 -30
  104. data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +2 -2
  105. data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +10 -10
  106. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +2 -2
  107. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +1 -1
  108. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +30 -30
  109. data/generated/google/apis/cloudprofiler_v2/service.rb +3 -3
  110. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  111. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
  112. data/generated/google/apis/cloudresourcemanager_v1/service.rb +38 -38
  113. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +16 -16
  114. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  115. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +1 -1
  116. data/generated/google/apis/cloudresourcemanager_v2/service.rb +12 -12
  117. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  118. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
  119. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +12 -12
  120. data/generated/google/apis/cloudscheduler_v1/service.rb +10 -10
  121. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +10 -10
  122. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  123. data/generated/google/apis/cloudsearch_v1/classes.rb +1 -1
  124. data/generated/google/apis/cloudsearch_v1/service.rb +35 -35
  125. data/generated/google/apis/cloudshell_v1.rb +1 -1
  126. data/generated/google/apis/cloudshell_v1/classes.rb +1 -1
  127. data/generated/google/apis/cloudshell_v1/service.rb +4 -4
  128. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  129. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +1 -1
  130. data/generated/google/apis/cloudshell_v1alpha1/service.rb +6 -6
  131. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  132. data/generated/google/apis/cloudtasks_v2/classes.rb +22 -18
  133. data/generated/google/apis/cloudtasks_v2/service.rb +24 -24
  134. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  135. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +22 -14
  136. data/generated/google/apis/cloudtasks_v2beta2/service.rb +28 -28
  137. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  138. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +266 -18
  139. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +65 -0
  140. data/generated/google/apis/cloudtasks_v2beta3/service.rb +24 -24
  141. data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
  142. data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
  143. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +2 -2
  144. data/generated/google/apis/composer_v1/service.rb +9 -9
  145. data/generated/google/apis/composer_v1beta1/service.rb +9 -9
  146. data/generated/google/apis/compute_alpha.rb +1 -1
  147. data/generated/google/apis/compute_alpha/classes.rb +29 -0
  148. data/generated/google/apis/compute_alpha/representations.rb +15 -0
  149. data/generated/google/apis/compute_alpha/service.rb +625 -623
  150. data/generated/google/apis/compute_beta.rb +1 -1
  151. data/generated/google/apis/compute_beta/service.rb +504 -503
  152. data/generated/google/apis/compute_v1.rb +1 -1
  153. data/generated/google/apis/compute_v1/service.rb +411 -410
  154. data/generated/google/apis/container_v1.rb +1 -1
  155. data/generated/google/apis/container_v1/classes.rb +2 -1
  156. data/generated/google/apis/container_v1/service.rb +63 -63
  157. data/generated/google/apis/container_v1beta1.rb +1 -1
  158. data/generated/google/apis/container_v1beta1/classes.rb +52 -4
  159. data/generated/google/apis/container_v1beta1/representations.rb +20 -0
  160. data/generated/google/apis/container_v1beta1/service.rb +64 -64
  161. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  162. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +1 -1
  163. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +33 -33
  164. data/generated/google/apis/containeranalysis_v1beta1/service.rb +24 -24
  165. data/generated/google/apis/content_v2.rb +1 -1
  166. data/generated/google/apis/content_v2/classes.rb +9 -3
  167. data/generated/google/apis/content_v2/service.rb +101 -105
  168. data/generated/google/apis/content_v2_1.rb +1 -1
  169. data/generated/google/apis/content_v2_1/classes.rb +9 -3
  170. data/generated/google/apis/content_v2_1/service.rb +89 -93
  171. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  172. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  173. data/generated/google/apis/dataflow_v1b3/classes.rb +22 -1
  174. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  175. data/generated/google/apis/dataflow_v1b3/service.rb +38 -38
  176. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  177. data/generated/google/apis/datafusion_v1beta1/classes.rb +1 -1
  178. data/generated/google/apis/datafusion_v1beta1/service.rb +16 -16
  179. data/generated/google/apis/dataproc_v1.rb +1 -1
  180. data/generated/google/apis/dataproc_v1/classes.rb +2 -2
  181. data/generated/google/apis/dataproc_v1/service.rb +261 -45
  182. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  183. data/generated/google/apis/dataproc_v1beta2/classes.rb +2 -2
  184. data/generated/google/apis/dataproc_v1beta2/service.rb +62 -65
  185. data/generated/google/apis/datastore_v1.rb +1 -1
  186. data/generated/google/apis/datastore_v1/service.rb +15 -15
  187. data/generated/google/apis/datastore_v1beta1/service.rb +2 -2
  188. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  189. data/generated/google/apis/datastore_v1beta3/service.rb +7 -7
  190. data/generated/google/apis/deploymentmanager_alpha/service.rb +37 -37
  191. data/generated/google/apis/deploymentmanager_v2/service.rb +18 -18
  192. data/generated/google/apis/deploymentmanager_v2beta/service.rb +32 -32
  193. data/generated/google/apis/dfareporting_v3_1/service.rb +206 -206
  194. data/generated/google/apis/dfareporting_v3_2/service.rb +206 -206
  195. data/generated/google/apis/dfareporting_v3_3/service.rb +204 -204
  196. data/generated/google/apis/dialogflow_v2.rb +1 -1
  197. data/generated/google/apis/dialogflow_v2/classes.rb +5 -5
  198. data/generated/google/apis/dialogflow_v2/service.rb +36 -36
  199. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  200. data/generated/google/apis/dialogflow_v2beta1/classes.rb +9 -9
  201. data/generated/google/apis/dialogflow_v2beta1/service.rb +114 -70
  202. data/generated/google/apis/digitalassetlinks_v1/service.rb +2 -2
  203. data/generated/google/apis/discovery_v1/service.rb +2 -2
  204. data/generated/google/apis/dlp_v2.rb +1 -1
  205. data/generated/google/apis/dlp_v2/classes.rb +8 -2
  206. data/generated/google/apis/dlp_v2/service.rb +51 -46
  207. data/generated/google/apis/dns_v1/service.rb +15 -15
  208. data/generated/google/apis/dns_v1beta2/service.rb +21 -21
  209. data/generated/google/apis/dns_v2beta1/service.rb +15 -15
  210. data/generated/google/apis/docs_v1.rb +1 -1
  211. data/generated/google/apis/docs_v1/classes.rb +137 -0
  212. data/generated/google/apis/docs_v1/representations.rb +57 -0
  213. data/generated/google/apis/docs_v1/service.rb +3 -3
  214. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +9 -9
  215. data/generated/google/apis/doubleclicksearch_v2/service.rb +10 -10
  216. data/generated/google/apis/drive_v2/service.rb +74 -74
  217. data/generated/google/apis/drive_v3/service.rb +46 -46
  218. data/generated/google/apis/driveactivity_v2/service.rb +1 -1
  219. data/generated/google/apis/factchecktools_v1alpha1/service.rb +6 -6
  220. data/generated/google/apis/fcm_v1.rb +35 -0
  221. data/generated/google/apis/fcm_v1/classes.rb +424 -0
  222. data/generated/google/apis/fcm_v1/representations.rb +167 -0
  223. data/generated/google/apis/fcm_v1/service.rb +97 -0
  224. data/generated/google/apis/file_v1.rb +1 -1
  225. data/generated/google/apis/file_v1/classes.rb +52 -1
  226. data/generated/google/apis/file_v1/representations.rb +16 -0
  227. data/generated/google/apis/file_v1/service.rb +11 -11
  228. data/generated/google/apis/file_v1beta1.rb +1 -1
  229. data/generated/google/apis/file_v1beta1/classes.rb +52 -1
  230. data/generated/google/apis/file_v1beta1/representations.rb +16 -0
  231. data/generated/google/apis/file_v1beta1/service.rb +11 -11
  232. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -5
  233. data/generated/google/apis/firebasehosting_v1beta1/service.rb +14 -14
  234. data/generated/google/apis/firebaserules_v1/service.rb +11 -11
  235. data/generated/google/apis/firestore_v1/service.rb +28 -28
  236. data/generated/google/apis/firestore_v1beta1/service.rb +19 -19
  237. data/generated/google/apis/firestore_v1beta2/service.rb +9 -9
  238. data/generated/google/apis/fitness_v1/service.rb +13 -13
  239. data/generated/google/apis/fusiontables_v1/service.rb +32 -32
  240. data/generated/google/apis/fusiontables_v2/service.rb +34 -34
  241. data/generated/google/apis/games_configuration_v1configuration/service.rb +13 -13
  242. data/generated/google/apis/games_management_v1management/service.rb +27 -27
  243. data/generated/google/apis/games_v1/service.rb +53 -53
  244. data/generated/google/apis/genomics_v1.rb +1 -1
  245. data/generated/google/apis/genomics_v1/service.rb +3 -3
  246. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  247. data/generated/google/apis/genomics_v1alpha2/classes.rb +2 -2
  248. data/generated/google/apis/genomics_v1alpha2/service.rb +10 -10
  249. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  250. data/generated/google/apis/genomics_v2alpha1/classes.rb +7 -0
  251. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
  252. data/generated/google/apis/genomics_v2alpha1/service.rb +5 -5
  253. data/generated/google/apis/gmail_v1/service.rb +68 -68
  254. data/generated/google/apis/groupsmigration_v1/service.rb +1 -1
  255. data/generated/google/apis/groupssettings_v1/service.rb +3 -3
  256. data/generated/google/apis/healthcare_v1alpha2.rb +34 -0
  257. data/generated/google/apis/healthcare_v1alpha2/classes.rb +2849 -0
  258. data/generated/google/apis/healthcare_v1alpha2/representations.rb +1260 -0
  259. data/generated/google/apis/healthcare_v1alpha2/service.rb +4011 -0
  260. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  261. data/generated/google/apis/healthcare_v1beta1/classes.rb +4 -2
  262. data/generated/google/apis/healthcare_v1beta1/service.rb +97 -87
  263. data/generated/google/apis/iam_v1/service.rb +36 -36
  264. data/generated/google/apis/iamcredentials_v1/service.rb +5 -5
  265. data/generated/google/apis/iap_v1/service.rb +3 -3
  266. data/generated/google/apis/iap_v1beta1/service.rb +3 -3
  267. data/generated/google/apis/identitytoolkit_v3/service.rb +20 -20
  268. data/generated/google/apis/indexing_v3/service.rb +2 -2
  269. data/generated/google/apis/jobs_v2/service.rb +17 -17
  270. data/generated/google/apis/jobs_v3/service.rb +15 -15
  271. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  272. data/generated/google/apis/jobs_v3p1beta1/classes.rb +2 -2
  273. data/generated/google/apis/jobs_v3p1beta1/service.rb +16 -16
  274. data/generated/google/apis/kgsearch_v1/service.rb +1 -1
  275. data/generated/google/apis/language_v1.rb +1 -1
  276. data/generated/google/apis/language_v1/service.rb +6 -6
  277. data/generated/google/apis/language_v1beta1/service.rb +4 -4
  278. data/generated/google/apis/language_v1beta2.rb +1 -1
  279. data/generated/google/apis/language_v1beta2/service.rb +6 -6
  280. data/generated/google/apis/libraryagent_v1/service.rb +6 -6
  281. data/generated/google/apis/licensing_v1/service.rb +7 -7
  282. data/generated/google/apis/logging_v2.rb +1 -1
  283. data/generated/google/apis/logging_v2/classes.rb +6 -0
  284. data/generated/google/apis/logging_v2/representations.rb +1 -0
  285. data/generated/google/apis/logging_v2/service.rb +72 -72
  286. data/generated/google/apis/manufacturers_v1/service.rb +4 -4
  287. data/generated/google/apis/mirror_v1/service.rb +24 -24
  288. data/generated/google/apis/ml_v1.rb +1 -1
  289. data/generated/google/apis/ml_v1/classes.rb +73 -55
  290. data/generated/google/apis/ml_v1/service.rb +31 -31
  291. data/generated/google/apis/monitoring_v3.rb +1 -1
  292. data/generated/google/apis/monitoring_v3/classes.rb +14 -1
  293. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  294. data/generated/google/apis/monitoring_v3/service.rb +36 -36
  295. data/generated/google/apis/oauth2_v1/service.rb +3 -3
  296. data/generated/google/apis/oauth2_v2/service.rb +4 -4
  297. data/generated/google/apis/oslogin_v1/service.rb +6 -6
  298. data/generated/google/apis/oslogin_v1alpha/service.rb +6 -6
  299. data/generated/google/apis/oslogin_v1beta/service.rb +6 -6
  300. data/generated/google/apis/pagespeedonline_v1/service.rb +1 -1
  301. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  302. data/generated/google/apis/pagespeedonline_v4/service.rb +1 -1
  303. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  304. data/generated/google/apis/pagespeedonline_v5/classes.rb +43 -0
  305. data/generated/google/apis/pagespeedonline_v5/representations.rb +18 -0
  306. data/generated/google/apis/pagespeedonline_v5/service.rb +1 -1
  307. data/generated/google/apis/people_v1.rb +1 -1
  308. data/generated/google/apis/people_v1/service.rb +13 -13
  309. data/generated/google/apis/playcustomapp_v1/service.rb +1 -1
  310. data/generated/google/apis/plus_domains_v1/service.rb +10 -10
  311. data/generated/google/apis/plus_v1/service.rb +9 -9
  312. data/generated/google/apis/poly_v1/service.rb +4 -4
  313. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +17 -17
  314. data/generated/google/apis/pubsub_v1.rb +1 -1
  315. data/generated/google/apis/pubsub_v1/service.rb +32 -32
  316. data/generated/google/apis/pubsub_v1beta1a/service.rb +15 -15
  317. data/generated/google/apis/pubsub_v1beta2/service.rb +20 -20
  318. data/generated/google/apis/redis_v1.rb +1 -1
  319. data/generated/google/apis/redis_v1/service.rb +19 -19
  320. data/generated/google/apis/redis_v1beta1.rb +1 -1
  321. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  322. data/generated/google/apis/redis_v1beta1/service.rb +15 -15
  323. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  324. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  325. data/generated/google/apis/remotebuildexecution_v1/service.rb +7 -7
  326. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  327. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  328. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +10 -10
  329. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  330. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  331. data/generated/google/apis/remotebuildexecution_v2/service.rb +9 -9
  332. data/generated/google/apis/replicapool_v1beta1/service.rb +10 -10
  333. data/generated/google/apis/reseller_v1/service.rb +17 -17
  334. data/generated/google/apis/run_v1/service.rb +1 -1
  335. data/generated/google/apis/run_v1alpha1.rb +1 -1
  336. data/generated/google/apis/run_v1alpha1/classes.rb +427 -0
  337. data/generated/google/apis/run_v1alpha1/representations.rb +162 -0
  338. data/generated/google/apis/run_v1alpha1/service.rb +446 -38
  339. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  340. data/generated/google/apis/runtimeconfig_v1/classes.rb +1 -1
  341. data/generated/google/apis/runtimeconfig_v1/service.rb +3 -3
  342. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  343. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
  344. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +22 -22
  345. data/generated/google/apis/safebrowsing_v4/service.rb +7 -7
  346. data/generated/google/apis/script_v1.rb +1 -1
  347. data/generated/google/apis/script_v1/classes.rb +167 -0
  348. data/generated/google/apis/script_v1/representations.rb +79 -0
  349. data/generated/google/apis/script_v1/service.rb +16 -16
  350. data/generated/google/apis/searchconsole_v1/service.rb +1 -1
  351. data/generated/google/apis/securitycenter_v1.rb +1 -1
  352. data/generated/google/apis/securitycenter_v1/classes.rb +1 -1
  353. data/generated/google/apis/securitycenter_v1/service.rb +23 -23
  354. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  355. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1 -1
  356. data/generated/google/apis/securitycenter_v1beta1/service.rb +23 -23
  357. data/generated/google/apis/servicebroker_v1/service.rb +3 -3
  358. data/generated/google/apis/servicebroker_v1alpha1/service.rb +16 -16
  359. data/generated/google/apis/servicebroker_v1beta1/service.rb +21 -21
  360. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  361. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +8 -60
  362. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -29
  363. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +14 -14
  364. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  365. data/generated/google/apis/servicecontrol_v1/classes.rb +12 -0
  366. data/generated/google/apis/servicecontrol_v1/representations.rb +2 -0
  367. data/generated/google/apis/servicecontrol_v1/service.rb +3 -3
  368. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  369. data/generated/google/apis/servicemanagement_v1/classes.rb +40 -60
  370. data/generated/google/apis/servicemanagement_v1/representations.rb +13 -26
  371. data/generated/google/apis/servicemanagement_v1/service.rb +24 -24
  372. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  373. data/generated/google/apis/servicenetworking_v1/classes.rb +8 -60
  374. data/generated/google/apis/servicenetworking_v1/representations.rb +1 -29
  375. data/generated/google/apis/servicenetworking_v1/service.rb +9 -9
  376. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  377. data/generated/google/apis/servicenetworking_v1beta/classes.rb +8 -60
  378. data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -29
  379. data/generated/google/apis/servicenetworking_v1beta/service.rb +6 -6
  380. data/generated/google/apis/serviceusage_v1.rb +1 -1
  381. data/generated/google/apis/serviceusage_v1/classes.rb +8 -60
  382. data/generated/google/apis/serviceusage_v1/representations.rb +1 -29
  383. data/generated/google/apis/serviceusage_v1/service.rb +17 -19
  384. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  385. data/generated/google/apis/serviceusage_v1beta1/classes.rb +8 -60
  386. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -29
  387. data/generated/google/apis/serviceusage_v1beta1/service.rb +7 -7
  388. data/generated/google/apis/sheets_v4.rb +1 -1
  389. data/generated/google/apis/sheets_v4/service.rb +17 -17
  390. data/generated/google/apis/site_verification_v1/service.rb +7 -7
  391. data/generated/google/apis/slides_v1/service.rb +5 -5
  392. data/generated/google/apis/sourcerepo_v1/service.rb +11 -11
  393. data/generated/google/apis/spanner_v1.rb +1 -1
  394. data/generated/google/apis/spanner_v1/classes.rb +3 -3
  395. data/generated/google/apis/spanner_v1/service.rb +41 -41
  396. data/generated/google/apis/speech_v1.rb +1 -1
  397. data/generated/google/apis/speech_v1/classes.rb +2 -2
  398. data/generated/google/apis/speech_v1/service.rb +7 -7
  399. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  400. data/generated/google/apis/speech_v1p1beta1/classes.rb +2 -2
  401. data/generated/google/apis/speech_v1p1beta1/service.rb +7 -7
  402. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  403. data/generated/google/apis/sqladmin_v1beta4/classes.rb +12 -0
  404. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  405. data/generated/google/apis/sqladmin_v1beta4/service.rb +44 -44
  406. data/generated/google/apis/storage_v1/service.rb +52 -52
  407. data/generated/google/apis/storage_v1beta1/service.rb +24 -24
  408. data/generated/google/apis/storage_v1beta2/service.rb +34 -34
  409. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  410. data/generated/google/apis/storagetransfer_v1/classes.rb +13 -20
  411. data/generated/google/apis/storagetransfer_v1/service.rb +31 -32
  412. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  413. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
  414. data/generated/google/apis/streetviewpublish_v1/service.rb +9 -9
  415. data/generated/google/apis/surveys_v2/service.rb +8 -8
  416. data/generated/google/apis/tagmanager_v1/service.rb +49 -49
  417. data/generated/google/apis/tagmanager_v2/service.rb +74 -74
  418. data/generated/google/apis/tasks_v1/service.rb +14 -14
  419. data/generated/google/apis/testing_v1.rb +1 -1
  420. data/generated/google/apis/testing_v1/classes.rb +25 -12
  421. data/generated/google/apis/testing_v1/representations.rb +2 -0
  422. data/generated/google/apis/testing_v1/service.rb +5 -5
  423. data/generated/google/apis/texttospeech_v1/service.rb +2 -2
  424. data/generated/google/apis/texttospeech_v1beta1/service.rb +2 -2
  425. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  426. data/generated/google/apis/toolresults_v1beta3/classes.rb +8 -17
  427. data/generated/google/apis/toolresults_v1beta3/service.rb +26 -26
  428. data/generated/google/apis/tpu_v1.rb +1 -1
  429. data/generated/google/apis/tpu_v1/classes.rb +1 -1
  430. data/generated/google/apis/tpu_v1/service.rb +17 -17
  431. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  432. data/generated/google/apis/tpu_v1alpha1/classes.rb +1 -1
  433. data/generated/google/apis/tpu_v1alpha1/service.rb +17 -17
  434. data/generated/google/apis/translate_v2/service.rb +5 -5
  435. data/generated/google/apis/urlshortener_v1/service.rb +3 -3
  436. data/generated/google/apis/vault_v1/service.rb +28 -28
  437. data/generated/google/apis/videointelligence_v1/service.rb +5 -5
  438. data/generated/google/apis/videointelligence_v1beta2/service.rb +1 -1
  439. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +1 -1
  440. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +1 -1
  441. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +1 -1
  442. data/generated/google/apis/vision_v1.rb +1 -1
  443. data/generated/google/apis/vision_v1/classes.rb +2372 -73
  444. data/generated/google/apis/vision_v1/representations.rb +1643 -651
  445. data/generated/google/apis/vision_v1/service.rb +98 -35
  446. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  447. data/generated/google/apis/vision_v1p1beta1/classes.rb +2371 -52
  448. data/generated/google/apis/vision_v1p1beta1/representations.rb +1733 -727
  449. data/generated/google/apis/vision_v1p1beta1/service.rb +73 -2
  450. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  451. data/generated/google/apis/vision_v1p2beta1/classes.rb +2371 -52
  452. data/generated/google/apis/vision_v1p2beta1/representations.rb +1733 -727
  453. data/generated/google/apis/vision_v1p2beta1/service.rb +73 -2
  454. data/generated/google/apis/webfonts_v1/service.rb +1 -1
  455. data/generated/google/apis/webmasters_v3/service.rb +9 -9
  456. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +13 -13
  457. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  458. data/generated/google/apis/websecurityscanner_v1beta/service.rb +13 -13
  459. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  460. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +8 -8
  461. data/generated/google/apis/youtube_analytics_v2/service.rb +8 -8
  462. data/generated/google/apis/youtube_partner_v1/service.rb +74 -74
  463. data/generated/google/apis/youtube_v3.rb +1 -1
  464. data/generated/google/apis/youtube_v3/service.rb +71 -71
  465. data/generated/google/apis/youtubereporting_v1/service.rb +8 -8
  466. data/google-api-client.gemspec +1 -1
  467. data/lib/google/apis/core/json_representation.rb +4 -0
  468. data/lib/google/apis/core/upload.rb +3 -3
  469. data/lib/google/apis/generator/templates/_method.tmpl +3 -3
  470. data/lib/google/apis/version.rb +1 -1
  471. metadata +13 -6
  472. data/samples/web/.env +0 -2
@@ -73,7 +73,7 @@ module Google
73
73
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
74
  # @raise [Google::Apis::AuthorizationError] Authorization is required
75
75
  def create_app(application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
76
- command = make_simple_command(:post, 'v1beta5/apps', options)
76
+ command = make_simple_command(:post, 'v1beta5/apps', options)
77
77
  command.request_representation = Google::Apis::AppengineV1beta5::Application::Representation
78
78
  command.request_object = application_object
79
79
  command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
@@ -111,7 +111,7 @@ module Google
111
111
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
112
  # @raise [Google::Apis::AuthorizationError] Authorization is required
113
113
  def get_app(apps_id, ensure_resources_exist: nil, fields: nil, quota_user: nil, options: nil, &block)
114
- command = make_simple_command(:get, 'v1beta5/apps/{appsId}', options)
114
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}', options)
115
115
  command.response_representation = Google::Apis::AppengineV1beta5::Application::Representation
116
116
  command.response_class = Google::Apis::AppengineV1beta5::Application
117
117
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -151,7 +151,7 @@ module Google
151
151
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
152
152
  # @raise [Google::Apis::AuthorizationError] Authorization is required
153
153
  def patch_app(apps_id, application_object = nil, mask: nil, fields: nil, quota_user: nil, options: nil, &block)
154
- command = make_simple_command(:patch, 'v1beta5/apps/{appsId}', options)
154
+ command = make_simple_command(:patch, 'v1beta5/apps/{appsId}', options)
155
155
  command.request_representation = Google::Apis::AppengineV1beta5::Application::Representation
156
156
  command.request_object = application_object
157
157
  command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
@@ -186,7 +186,7 @@ module Google
186
186
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
187
187
  # @raise [Google::Apis::AuthorizationError] Authorization is required
188
188
  def get_app_location(apps_id, locations_id, fields: nil, quota_user: nil, options: nil, &block)
189
- command = make_simple_command(:get, 'v1beta5/apps/{appsId}/locations/{locationsId}', options)
189
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/locations/{locationsId}', options)
190
190
  command.response_representation = Google::Apis::AppengineV1beta5::Location::Representation
191
191
  command.response_class = Google::Apis::AppengineV1beta5::Location
192
192
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -223,7 +223,7 @@ module Google
223
223
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
224
  # @raise [Google::Apis::AuthorizationError] Authorization is required
225
225
  def list_app_locations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
226
- command = make_simple_command(:get, 'v1beta5/apps/{appsId}/locations', options)
226
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/locations', options)
227
227
  command.response_representation = Google::Apis::AppengineV1beta5::ListLocationsResponse::Representation
228
228
  command.response_class = Google::Apis::AppengineV1beta5::ListLocationsResponse
229
229
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -259,7 +259,7 @@ module Google
259
259
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
260
260
  # @raise [Google::Apis::AuthorizationError] Authorization is required
261
261
  def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
262
- command = make_simple_command(:get, 'v1beta5/apps/{appsId}/operations/{operationsId}', options)
262
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/operations/{operationsId}', options)
263
263
  command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
264
264
  command.response_class = Google::Apis::AppengineV1beta5::Operation
265
265
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -303,7 +303,7 @@ module Google
303
303
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
304
304
  # @raise [Google::Apis::AuthorizationError] Authorization is required
305
305
  def list_app_operations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
306
- command = make_simple_command(:get, 'v1beta5/apps/{appsId}/operations', options)
306
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/operations', options)
307
307
  command.response_representation = Google::Apis::AppengineV1beta5::ListOperationsResponse::Representation
308
308
  command.response_class = Google::Apis::AppengineV1beta5::ListOperationsResponse
309
309
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -339,7 +339,7 @@ module Google
339
339
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
340
340
  # @raise [Google::Apis::AuthorizationError] Authorization is required
341
341
  def delete_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
342
- command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
342
+ command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
343
343
  command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
344
344
  command.response_class = Google::Apis::AppengineV1beta5::Operation
345
345
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -373,7 +373,7 @@ module Google
373
373
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
374
374
  # @raise [Google::Apis::AuthorizationError] Authorization is required
375
375
  def get_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
376
- command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
376
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
377
377
  command.response_representation = Google::Apis::AppengineV1beta5::Service::Representation
378
378
  command.response_class = Google::Apis::AppengineV1beta5::Service
379
379
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -408,7 +408,7 @@ module Google
408
408
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
409
409
  # @raise [Google::Apis::AuthorizationError] Authorization is required
410
410
  def list_app_services(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
411
- command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services', options)
411
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services', options)
412
412
  command.response_representation = Google::Apis::AppengineV1beta5::ListServicesResponse::Representation
413
413
  command.response_class = Google::Apis::AppengineV1beta5::ListServicesResponse
414
414
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -459,7 +459,7 @@ module Google
459
459
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
460
460
  # @raise [Google::Apis::AuthorizationError] Authorization is required
461
461
  def patch_app_service(apps_id, services_id, service_object = nil, mask: nil, migrate_traffic: nil, fields: nil, quota_user: nil, options: nil, &block)
462
- command = make_simple_command(:patch, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
462
+ command = make_simple_command(:patch, 'v1beta5/apps/{appsId}/services/{servicesId}', options)
463
463
  command.request_representation = Google::Apis::AppengineV1beta5::Service::Representation
464
464
  command.request_object = service_object
465
465
  command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
@@ -498,7 +498,7 @@ module Google
498
498
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
499
499
  # @raise [Google::Apis::AuthorizationError] Authorization is required
500
500
  def create_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
501
- command = make_simple_command(:post, 'v1beta5/apps/{appsId}/services/{servicesId}/versions', options)
501
+ command = make_simple_command(:post, 'v1beta5/apps/{appsId}/services/{servicesId}/versions', options)
502
502
  command.request_representation = Google::Apis::AppengineV1beta5::Version::Representation
503
503
  command.request_object = version_object
504
504
  command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
@@ -536,7 +536,7 @@ module Google
536
536
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
537
537
  # @raise [Google::Apis::AuthorizationError] Authorization is required
538
538
  def delete_app_service_version(apps_id, services_id, versions_id, fields: nil, quota_user: nil, options: nil, &block)
539
- command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
539
+ command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
540
540
  command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
541
541
  command.response_class = Google::Apis::AppengineV1beta5::Operation
542
542
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -576,7 +576,7 @@ module Google
576
576
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
577
577
  # @raise [Google::Apis::AuthorizationError] Authorization is required
578
578
  def get_app_service_version(apps_id, services_id, versions_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
579
- command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
579
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
580
580
  command.response_representation = Google::Apis::AppengineV1beta5::Version::Representation
581
581
  command.response_class = Google::Apis::AppengineV1beta5::Version
582
582
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -618,7 +618,7 @@ module Google
618
618
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
619
619
  # @raise [Google::Apis::AuthorizationError] Authorization is required
620
620
  def list_app_service_versions(apps_id, services_id, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
621
- command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions', options)
621
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions', options)
622
622
  command.response_representation = Google::Apis::AppengineV1beta5::ListVersionsResponse::Representation
623
623
  command.response_class = Google::Apis::AppengineV1beta5::ListVersionsResponse
624
624
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -677,7 +677,7 @@ module Google
677
677
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
678
678
  # @raise [Google::Apis::AuthorizationError] Authorization is required
679
679
  def patch_app_service_version(apps_id, services_id, versions_id, version_object = nil, mask: nil, fields: nil, quota_user: nil, options: nil, &block)
680
- command = make_simple_command(:patch, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
680
+ command = make_simple_command(:patch, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
681
681
  command.request_representation = Google::Apis::AppengineV1beta5::Version::Representation
682
682
  command.request_object = version_object
683
683
  command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
@@ -725,7 +725,7 @@ module Google
725
725
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
726
726
  # @raise [Google::Apis::AuthorizationError] Authorization is required
727
727
  def debug_instance(apps_id, services_id, versions_id, instances_id, debug_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
728
- command = make_simple_command(:post, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug', options)
728
+ command = make_simple_command(:post, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug', options)
729
729
  command.request_representation = Google::Apis::AppengineV1beta5::DebugInstanceRequest::Representation
730
730
  command.request_object = debug_instance_request_object
731
731
  command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
@@ -767,7 +767,7 @@ module Google
767
767
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
768
  # @raise [Google::Apis::AuthorizationError] Authorization is required
769
769
  def delete_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
770
- command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
770
+ command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
771
771
  command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
772
772
  command.response_class = Google::Apis::AppengineV1beta5::Operation
773
773
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -807,7 +807,7 @@ module Google
807
807
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
808
808
  # @raise [Google::Apis::AuthorizationError] Authorization is required
809
809
  def get_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
810
- command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
810
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
811
811
  command.response_representation = Google::Apis::AppengineV1beta5::Instance::Representation
812
812
  command.response_class = Google::Apis::AppengineV1beta5::Instance
813
813
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -851,7 +851,7 @@ module Google
851
851
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
852
852
  # @raise [Google::Apis::AuthorizationError] Authorization is required
853
853
  def list_app_service_version_instances(apps_id, services_id, versions_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
854
- command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances', options)
854
+ command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances', options)
855
855
  command.response_representation = Google::Apis::AppengineV1beta5::ListInstancesResponse::Representation
856
856
  command.response_class = Google::Apis::AppengineV1beta5::ListInstancesResponse
857
857
  command.params['appsId'] = apps_id unless apps_id.nil?
@@ -97,7 +97,7 @@ module Google
97
97
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
98
98
  # @raise [Google::Apis::AuthorizationError] Authorization is required
99
99
  def list_activities(drive_ancestor_id: nil, drive_file_id: nil, grouping_strategy: nil, page_size: nil, page_token: nil, source: nil, user_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
100
- command = make_simple_command(:get, 'activities', options)
100
+ command = make_simple_command(:get, 'activities', options)
101
101
  command.response_representation = Google::Apis::AppsactivityV1::ListActivitiesResponse::Representation
102
102
  command.response_class = Google::Apis::AppsactivityV1::ListActivitiesResponse
103
103
  command.query['drive.ancestorId'] = drive_ancestor_id unless drive_ancestor_id.nil?
@@ -77,7 +77,7 @@ module Google
77
77
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
78
  # @raise [Google::Apis::AuthorizationError] Authorization is required
79
79
  def get_customer_license(application_id, customer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
80
- command = make_simple_command(:get, 'customerLicense/{applicationId}/{customerId}', options)
80
+ command = make_simple_command(:get, 'customerLicense/{applicationId}/{customerId}', options)
81
81
  command.response_representation = Google::Apis::AppsmarketV2::CustomerLicense::Representation
82
82
  command.response_class = Google::Apis::AppsmarketV2::CustomerLicense
83
83
  command.params['applicationId'] = application_id unless application_id.nil?
@@ -117,7 +117,7 @@ module Google
117
117
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
118
  # @raise [Google::Apis::AuthorizationError] Authorization is required
119
119
  def list_license_notifications(application_id, max_results: nil, start_token: nil, timestamp: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
120
- command = make_simple_command(:get, 'licenseNotification/{applicationId}', options)
120
+ command = make_simple_command(:get, 'licenseNotification/{applicationId}', options)
121
121
  command.response_representation = Google::Apis::AppsmarketV2::LicenseNotificationList::Representation
122
122
  command.response_class = Google::Apis::AppsmarketV2::LicenseNotificationList
123
123
  command.params['applicationId'] = application_id unless application_id.nil?
@@ -155,7 +155,7 @@ module Google
155
155
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
156
  # @raise [Google::Apis::AuthorizationError] Authorization is required
157
157
  def get_user_license(application_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
158
- command = make_simple_command(:get, 'userLicense/{applicationId}/{userId}', options)
158
+ command = make_simple_command(:get, 'userLicense/{applicationId}/{userId}', options)
159
159
  command.response_representation = Google::Apis::AppsmarketV2::UserLicense::Representation
160
160
  command.response_class = Google::Apis::AppsmarketV2::UserLicense
161
161
  command.params['applicationId'] = application_id unless application_id.nil?
@@ -79,7 +79,7 @@ module Google
79
79
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
80
  # @raise [Google::Apis::AuthorizationError] Authorization is required
81
81
  def clear_state(state_key, current_data_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
- command = make_simple_command(:post, 'states/{stateKey}/clear', options)
82
+ command = make_simple_command(:post, 'states/{stateKey}/clear', options)
83
83
  command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation
84
84
  command.response_class = Google::Apis::AppstateV1::WriteResult
85
85
  command.params['stateKey'] = state_key unless state_key.nil?
@@ -117,7 +117,7 @@ module Google
117
117
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
118
  # @raise [Google::Apis::AuthorizationError] Authorization is required
119
119
  def delete_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
120
- command = make_simple_command(:delete, 'states/{stateKey}', options)
120
+ command = make_simple_command(:delete, 'states/{stateKey}', options)
121
121
  command.params['stateKey'] = state_key unless state_key.nil?
122
122
  command.query['fields'] = fields unless fields.nil?
123
123
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -149,7 +149,7 @@ module Google
149
149
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
150
150
  # @raise [Google::Apis::AuthorizationError] Authorization is required
151
151
  def get_state(state_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
152
- command = make_simple_command(:get, 'states/{stateKey}', options)
152
+ command = make_simple_command(:get, 'states/{stateKey}', options)
153
153
  command.response_representation = Google::Apis::AppstateV1::GetResponse::Representation
154
154
  command.response_class = Google::Apis::AppstateV1::GetResponse
155
155
  command.params['stateKey'] = state_key unless state_key.nil?
@@ -182,7 +182,7 @@ module Google
182
182
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
183
183
  # @raise [Google::Apis::AuthorizationError] Authorization is required
184
184
  def list_states(include_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
185
- command = make_simple_command(:get, 'states', options)
185
+ command = make_simple_command(:get, 'states', options)
186
186
  command.response_representation = Google::Apis::AppstateV1::ListResponse::Representation
187
187
  command.response_class = Google::Apis::AppstateV1::ListResponse
188
188
  command.query['includeData'] = include_data unless include_data.nil?
@@ -223,7 +223,7 @@ module Google
223
223
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
224
  # @raise [Google::Apis::AuthorizationError] Authorization is required
225
225
  def update_state(state_key, update_request_object = nil, current_state_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
226
- command = make_simple_command(:put, 'states/{stateKey}', options)
226
+ command = make_simple_command(:put, 'states/{stateKey}', options)
227
227
  command.request_representation = Google::Apis::AppstateV1::UpdateRequest::Representation
228
228
  command.request_object = update_request_object
229
229
  command.response_representation = Google::Apis::AppstateV1::WriteResult::Representation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20190501'
28
+ REVISION = '20190510'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -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,91 @@ 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
+
226
380
  #
227
381
  class BqmlIterationResult
228
382
  include Google::Apis::Core::Hashable
@@ -389,6 +543,38 @@ module Google
389
543
  end
390
544
  end
391
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
+
392
578
  #
393
579
  class Clustering
394
580
  include Google::Apis::Core::Hashable
@@ -411,6 +597,57 @@ module Google
411
597
  end
412
598
  end
413
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
+
414
651
  #
415
652
  class CsvOptions
416
653
  include Google::Apis::Core::Hashable
@@ -867,6 +1104,33 @@ module Google
867
1104
  end
868
1105
  end
869
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
+
870
1134
  #
871
1135
  class ErrorProto
872
1136
  include Google::Apis::Core::Hashable
@@ -905,6 +1169,45 @@ module Google
905
1169
  end
906
1170
  end
907
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
+
908
1211
  #
909
1212
  class ExplainQueryStage
910
1213
  include Google::Apis::Core::Hashable
@@ -1394,6 +1697,55 @@ module Google
1394
1697
  end
1395
1698
  end
1396
1699
 
1700
+ # Information about a single iteration of the training run.
1701
+ class IterationResult
1702
+ include Google::Apis::Core::Hashable
1703
+
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.
1710
+ # Corresponds to the JSON property `durationMs`
1711
+ # @return [Fixnum]
1712
+ attr_accessor :duration_ms
1713
+
1714
+ # Loss computed on the eval data at the end of iteration.
1715
+ # Corresponds to the JSON property `evalLoss`
1716
+ # @return [Float]
1717
+ attr_accessor :eval_loss
1718
+
1719
+ # Index of the iteration, 0 based.
1720
+ # Corresponds to the JSON property `index`
1721
+ # @return [Fixnum]
1722
+ attr_accessor :index
1723
+
1724
+ # Learn rate used for this iteration.
1725
+ # Corresponds to the JSON property `learnRate`
1726
+ # @return [Float]
1727
+ attr_accessor :learn_rate
1728
+
1729
+ # Loss computed on the training data at the end of iteration.
1730
+ # Corresponds to the JSON property `trainingLoss`
1731
+ # @return [Float]
1732
+ attr_accessor :training_loss
1733
+
1734
+ def initialize(**args)
1735
+ update!(**args)
1736
+ end
1737
+
1738
+ # Update properties of this object
1739
+ def update!(**args)
1740
+ @cluster_infos = args[:cluster_infos] if args.key?(:cluster_infos)
1741
+ @duration_ms = args[:duration_ms] if args.key?(:duration_ms)
1742
+ @eval_loss = args[:eval_loss] if args.key?(:eval_loss)
1743
+ @index = args[:index] if args.key?(:index)
1744
+ @learn_rate = args[:learn_rate] if args.key?(:learn_rate)
1745
+ @training_loss = args[:training_loss] if args.key?(:training_loss)
1746
+ end
1747
+ end
1748
+
1397
1749
  #
1398
1750
  class Job
1399
1751
  include Google::Apis::Core::Hashable
@@ -2722,6 +3074,55 @@ module Google
2722
3074
  end
2723
3075
  end
2724
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
+
2725
3126
  #
2726
3127
  class MaterializedViewDefinition
2727
3128
  include Google::Apis::Core::Hashable
@@ -2748,6 +3149,115 @@ module Google
2748
3149
  end
2749
3150
  end
2750
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
+
2751
3261
  #
2752
3262
  class ModelDefinition
2753
3263
  include Google::Apis::Core::Hashable
@@ -2811,6 +3321,69 @@ module Google
2811
3321
  end
2812
3322
  end
2813
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
+
2814
3387
  #
2815
3388
  class ProjectList
2816
3389
  include Google::Apis::Core::Hashable
@@ -3353,6 +3926,49 @@ module Google
3353
3926
  end
3354
3927
  end
3355
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
+
3356
3972
  #
3357
3973
  class RoutineReference
3358
3974
  include Google::Apis::Core::Hashable
@@ -3385,6 +4001,134 @@ module Google
3385
4001
  end
3386
4002
  end
3387
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
+
3388
4132
  #
3389
4133
  class Streamingbuffer
3390
4134
  include Google::Apis::Core::Hashable
@@ -4166,6 +4910,196 @@ module Google
4166
4910
  end
4167
4911
  end
4168
4912
 
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.
5064
+ class TrainingRun
5065
+ include Google::Apis::Core::Hashable
5066
+
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`
5076
+ # @return [Array<Google::Apis::BigqueryV2::IterationResult>]
5077
+ attr_accessor :results
5078
+
5079
+ # The start time of this training run.
5080
+ # Corresponds to the JSON property `startTime`
5081
+ # @return [String]
5082
+ attr_accessor :start_time
5083
+
5084
+ # Options that were used for this training run, includes
5085
+ # user specified and default options that were used.
5086
+ # Corresponds to the JSON property `trainingOptions`
5087
+ # @return [Google::Apis::BigqueryV2::TrainingOptions]
5088
+ attr_accessor :training_options
5089
+
5090
+ def initialize(**args)
5091
+ update!(**args)
5092
+ end
5093
+
5094
+ # Update properties of this object
5095
+ def update!(**args)
5096
+ @evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics)
5097
+ @results = args[:results] if args.key?(:results)
5098
+ @start_time = args[:start_time] if args.key?(:start_time)
5099
+ @training_options = args[:training_options] if args.key?(:training_options)
5100
+ end
5101
+ end
5102
+
4169
5103
  #
4170
5104
  class UserDefinedFunctionResource
4171
5105
  include Google::Apis::Core::Hashable