google-api-client 0.10.3 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -22,24 +22,6 @@ module Google
22
22
  module Apis
23
23
  module ManufacturersV1
24
24
 
25
- class Count
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class Product
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class Capacity
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
25
  class ListProductsResponse
44
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
27
 
@@ -83,39 +65,21 @@ module Google
83
65
  end
84
66
 
85
67
  class Count
86
- # @private
87
- class Representation < Google::Apis::Core::JsonRepresentation
88
- property :value, as: 'value'
89
- property :unit, as: 'unit'
90
- end
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
91
71
  end
92
72
 
93
73
  class Product
94
- # @private
95
- class Representation < Google::Apis::Core::JsonRepresentation
96
- collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes'
97
- collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation
98
-
99
- property :final_attributes, as: 'finalAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
100
-
101
- property :product_id, as: 'productId'
102
- property :uploaded_attributes, as: 'uploadedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
103
-
104
- property :parent, as: 'parent'
105
- property :manually_provided_attributes, as: 'manuallyProvidedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
106
75
 
107
- property :content_language, as: 'contentLanguage'
108
- property :target_country, as: 'targetCountry'
109
- property :name, as: 'name'
110
- end
76
+ include Google::Apis::Core::JsonObjectSupport
111
77
  end
112
78
 
113
79
  class Capacity
114
- # @private
115
- class Representation < Google::Apis::Core::JsonRepresentation
116
- property :value, as: 'value'
117
- property :unit, as: 'unit'
118
- end
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
119
83
  end
120
84
 
121
85
  class ListProductsResponse
@@ -150,49 +114,33 @@ module Google
150
114
  class FeatureDescription
151
115
  # @private
152
116
  class Representation < Google::Apis::Core::JsonRepresentation
153
- property :headline, as: 'headline'
154
117
  property :text, as: 'text'
155
118
  property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
156
119
 
120
+ property :headline, as: 'headline'
157
121
  end
158
122
  end
159
123
 
160
124
  class Price
161
125
  # @private
162
126
  class Representation < Google::Apis::Core::JsonRepresentation
163
- property :amount, as: 'amount'
164
127
  property :currency, as: 'currency'
128
+ property :amount, as: 'amount'
165
129
  end
166
130
  end
167
131
 
168
132
  class Image
169
133
  # @private
170
134
  class Representation < Google::Apis::Core::JsonRepresentation
135
+ property :status, as: 'status'
171
136
  property :type, as: 'type'
172
137
  property :image_url, as: 'imageUrl'
173
- property :status, as: 'status'
174
138
  end
175
139
  end
176
140
 
177
141
  class Attributes
178
142
  # @private
179
143
  class Representation < Google::Apis::Core::JsonRepresentation
180
- property :flavor, as: 'flavor'
181
- collection :product_detail, as: 'productDetail', class: Google::Apis::ManufacturersV1::ProductDetail, decorator: Google::Apis::ManufacturersV1::ProductDetail::Representation
182
-
183
- property :age_group, as: 'ageGroup'
184
- property :mpn, as: 'mpn'
185
- property :product_page_url, as: 'productPageUrl'
186
- property :release_date, as: 'releaseDate'
187
- property :item_group_id, as: 'itemGroupId'
188
- collection :gtin, as: 'gtin'
189
- property :product_line, as: 'productLine'
190
- property :capacity, as: 'capacity', class: Google::Apis::ManufacturersV1::Capacity, decorator: Google::Apis::ManufacturersV1::Capacity::Representation
191
-
192
- property :description, as: 'description'
193
- property :gender, as: 'gender'
194
- property :size_system, as: 'sizeSystem'
195
- property :theme, as: 'theme'
196
144
  property :pattern, as: 'pattern'
197
145
  property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
198
146
 
@@ -213,9 +161,61 @@ module Google
213
161
  property :count, as: 'count', class: Google::Apis::ManufacturersV1::Count, decorator: Google::Apis::ManufacturersV1::Count::Representation
214
162
 
215
163
  property :brand, as: 'brand'
216
- property :disclosure_date, as: 'disclosureDate'
217
164
  property :material, as: 'material'
165
+ property :disclosure_date, as: 'disclosureDate'
218
166
  property :scent, as: 'scent'
167
+ property :age_group, as: 'ageGroup'
168
+ property :flavor, as: 'flavor'
169
+ collection :product_detail, as: 'productDetail', class: Google::Apis::ManufacturersV1::ProductDetail, decorator: Google::Apis::ManufacturersV1::ProductDetail::Representation
170
+
171
+ property :mpn, as: 'mpn'
172
+ property :product_page_url, as: 'productPageUrl'
173
+ property :release_date, as: 'releaseDate'
174
+ collection :gtin, as: 'gtin'
175
+ property :item_group_id, as: 'itemGroupId'
176
+ property :product_line, as: 'productLine'
177
+ property :capacity, as: 'capacity', class: Google::Apis::ManufacturersV1::Capacity, decorator: Google::Apis::ManufacturersV1::Capacity::Representation
178
+
179
+ property :description, as: 'description'
180
+ property :gender, as: 'gender'
181
+ property :size_system, as: 'sizeSystem'
182
+ property :theme, as: 'theme'
183
+ end
184
+ end
185
+
186
+ class Count
187
+ # @private
188
+ class Representation < Google::Apis::Core::JsonRepresentation
189
+ property :value, :numeric_string => true, as: 'value'
190
+ property :unit, as: 'unit'
191
+ end
192
+ end
193
+
194
+ class Product
195
+ # @private
196
+ class Representation < Google::Apis::Core::JsonRepresentation
197
+ collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation
198
+
199
+ collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes'
200
+ property :final_attributes, as: 'finalAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
201
+
202
+ property :product_id, as: 'productId'
203
+ property :uploaded_attributes, as: 'uploadedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
204
+
205
+ property :parent, as: 'parent'
206
+ property :manually_provided_attributes, as: 'manuallyProvidedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
207
+
208
+ property :content_language, as: 'contentLanguage'
209
+ property :target_country, as: 'targetCountry'
210
+ property :name, as: 'name'
211
+ end
212
+ end
213
+
214
+ class Capacity
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :value, :numeric_string => true, as: 'value'
218
+ property :unit, as: 'unit'
219
219
  end
220
220
  end
221
221
  end
@@ -44,6 +44,7 @@ module Google
44
44
 
45
45
  def initialize
46
46
  super('https://manufacturers.googleapis.com/', '')
47
+ @batch_path = 'batch'
47
48
  end
48
49
 
49
50
  # Lists all the products in a Manufacturer Center account.
@@ -50,6 +50,7 @@ module Google
50
50
 
51
51
  def initialize
52
52
  super('https://www.googleapis.com/', 'mirror/v1/')
53
+ @batch_path = 'batch'
53
54
  end
54
55
 
55
56
  # Inserts a new account for a user
@@ -22,79 +22,26 @@ module Google
22
22
  module Apis
23
23
  module MlV1
24
24
 
25
- # Message that represents an arbitrary HTTP body. It should only be used for
26
- # payload formats that can't be represented as JSON, such as raw binary or
27
- # an HTML page.
28
- # This message can be used both in streaming and non-streaming API methods in
29
- # the request as well as the response.
30
- # It can be used as a top-level request field, which is convenient if one
31
- # wants to extract parameters from either the URL or HTTP template into the
32
- # request fields and also want access to the raw HTTP body.
33
- # Example:
34
- # message GetResourceRequest `
35
- # // A unique request id.
36
- # string request_id = 1;
37
- # // The raw HTTP body is bound to this field.
38
- # google.api.HttpBody http_body = 2;
39
- # `
40
- # service ResourceService `
41
- # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
42
- # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
43
- # `
44
- # Example with streaming methods:
45
- # service CaldavService `
46
- # rpc GetCalendar(stream google.api.HttpBody)
47
- # returns (stream google.api.HttpBody);
48
- # rpc UpdateCalendar(stream google.api.HttpBody)
49
- # returns (stream google.api.HttpBody);
50
- # `
51
- # Use of this type only changes how the request and response bodies are
52
- # handled, all other features will continue to work unchanged.
53
- class GoogleApiHttpBody
54
- include Google::Apis::Core::Hashable
55
-
56
- # HTTP body binary data.
57
- # Corresponds to the JSON property `data`
58
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
59
- # @return [String]
60
- attr_accessor :data
61
-
62
- # The HTTP Content-Type string representing the content type of the body.
63
- # Corresponds to the JSON property `contentType`
64
- # @return [String]
65
- attr_accessor :content_type
66
-
67
- def initialize(**args)
68
- update!(**args)
69
- end
70
-
71
- # Update properties of this object
72
- def update!(**args)
73
- @data = args[:data] if args.key?(:data)
74
- @content_type = args[:content_type] if args.key?(:content_type)
75
- end
76
- end
77
-
78
25
  # Represents a version of the model.
79
26
  # Each version is a trained model deployed in the cloud, ready to handle
80
27
  # prediction requests. A model can have multiple versions. You can get
81
28
  # information about all of the versions of a given model by calling
82
- # [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
83
- # models.versions/list).
84
- class GoogleCloudMlV1beta1Version
29
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
30
+ # versions/list).
31
+ class GoogleCloudMlV1Version
85
32
  include Google::Apis::Core::Hashable
86
33
 
87
- # Output only. The time the version was last used for prediction.
88
- # Corresponds to the JSON property `lastUseTime`
89
- # @return [String]
90
- attr_accessor :last_use_time
91
-
92
34
  # Optional. The Google Cloud ML runtime version to use for this deployment.
93
35
  # If not set, Google Cloud ML will choose a version.
94
36
  # Corresponds to the JSON property `runtimeVersion`
95
37
  # @return [String]
96
38
  attr_accessor :runtime_version
97
39
 
40
+ # Output only. The time the version was last used for prediction.
41
+ # Corresponds to the JSON property `lastUseTime`
42
+ # @return [String]
43
+ attr_accessor :last_use_time
44
+
98
45
  # Optional. The description specified for the version when it was created.
99
46
  # Corresponds to the JSON property `description`
100
47
  # @return [String]
@@ -106,8 +53,8 @@ module Google
106
53
  # for
107
54
  # more informaiton.
108
55
  # When passing Version to
109
- # [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects.
110
- # models.versions/create)
56
+ # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.
57
+ # versions/create)
111
58
  # the model service uses the specified location as the source of the model.
112
59
  # Once deployed, the model version is hosted by the prediction service, so
113
60
  # this location is useful only as a historical record.
@@ -118,8 +65,8 @@ module Google
118
65
  # Output only. If true, this version will be used to handle prediction
119
66
  # requests that do not specify a version.
120
67
  # You can change the default version by calling
121
- # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/
122
- # projects.models.versions/setDefault).
68
+ # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.
69
+ # models.versions/setDefault).
123
70
  # Corresponds to the JSON property `isDefault`
124
71
  # @return [Boolean]
125
72
  attr_accessor :is_default
@@ -132,7 +79,7 @@ module Google
132
79
 
133
80
  # Options for manually scaling a model.
134
81
  # Corresponds to the JSON property `manualScaling`
135
- # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling]
82
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1ManualScaling]
136
83
  attr_accessor :manual_scaling
137
84
 
138
85
  # Required.The name specified for the version when it was created.
@@ -147,8 +94,8 @@ module Google
147
94
 
148
95
  # Update properties of this object
149
96
  def update!(**args)
150
- @last_use_time = args[:last_use_time] if args.key?(:last_use_time)
151
97
  @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
98
+ @last_use_time = args[:last_use_time] if args.key?(:last_use_time)
152
99
  @description = args[:description] if args.key?(:description)
153
100
  @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri)
154
101
  @is_default = args[:is_default] if args.key?(:is_default)
@@ -158,19 +105,56 @@ module Google
158
105
  end
159
106
  end
160
107
 
161
- # Returns service account information associated with a project.
162
- class GoogleCloudMlV1GetConfigResponse
108
+ # Represents a single hyperparameter to optimize.
109
+ class GoogleCloudMlV1ParameterSpec
163
110
  include Google::Apis::Core::Hashable
164
111
 
165
- # The project number for `service_account`.
166
- # Corresponds to the JSON property `serviceAccountProject`
112
+ # Required if type is `DOUBLE` or `INTEGER`. This field
113
+ # should be unset if type is `CATEGORICAL`. This value should be integers if
114
+ # type is INTEGER.
115
+ # Corresponds to the JSON property `minValue`
116
+ # @return [Float]
117
+ attr_accessor :min_value
118
+
119
+ # Required if type is `DISCRETE`.
120
+ # A list of feasible points.
121
+ # The list should be in strictly increasing order. For instance, this
122
+ # parameter might have possible settings of 1.5, 2.5, and 4.0. This list
123
+ # should not contain more than 1,000 values.
124
+ # Corresponds to the JSON property `discreteValues`
125
+ # @return [Array<Float>]
126
+ attr_accessor :discrete_values
127
+
128
+ # Optional. How the parameter should be scaled to the hypercube.
129
+ # Leave unset for categorical parameters.
130
+ # Some kind of scaling is strongly recommended for real or integral
131
+ # parameters (e.g., `UNIT_LINEAR_SCALE`).
132
+ # Corresponds to the JSON property `scaleType`
167
133
  # @return [String]
168
- attr_accessor :service_account_project
134
+ attr_accessor :scale_type
169
135
 
170
- # The service account Cloud ML uses to access resources in the project.
171
- # Corresponds to the JSON property `serviceAccount`
136
+ # Required if typeis `DOUBLE` or `INTEGER`. This field
137
+ # should be unset if type is `CATEGORICAL`. This value should be integers if
138
+ # type is `INTEGER`.
139
+ # Corresponds to the JSON property `maxValue`
140
+ # @return [Float]
141
+ attr_accessor :max_value
142
+
143
+ # Required. The type of the parameter.
144
+ # Corresponds to the JSON property `type`
172
145
  # @return [String]
173
- attr_accessor :service_account
146
+ attr_accessor :type
147
+
148
+ # Required. The parameter name must be unique amongst all ParameterConfigs in
149
+ # a HyperparameterSpec message. E.g., "learning_rate".
150
+ # Corresponds to the JSON property `parameterName`
151
+ # @return [String]
152
+ attr_accessor :parameter_name
153
+
154
+ # Required if type is `CATEGORICAL`. The list of possible categories.
155
+ # Corresponds to the JSON property `categoricalValues`
156
+ # @return [Array<String>]
157
+ attr_accessor :categorical_values
174
158
 
175
159
  def initialize(**args)
176
160
  update!(**args)
@@ -178,74 +162,77 @@ module Google
178
162
 
179
163
  # Update properties of this object
180
164
  def update!(**args)
181
- @service_account_project = args[:service_account_project] if args.key?(:service_account_project)
182
- @service_account = args[:service_account] if args.key?(:service_account)
165
+ @min_value = args[:min_value] if args.key?(:min_value)
166
+ @discrete_values = args[:discrete_values] if args.key?(:discrete_values)
167
+ @scale_type = args[:scale_type] if args.key?(:scale_type)
168
+ @max_value = args[:max_value] if args.key?(:max_value)
169
+ @type = args[:type] if args.key?(:type)
170
+ @parameter_name = args[:parameter_name] if args.key?(:parameter_name)
171
+ @categorical_values = args[:categorical_values] if args.key?(:categorical_values)
183
172
  end
184
173
  end
185
174
 
186
- # Represents the result of a single hyperparameter tuning trial from a
187
- # training job. The TrainingOutput object that is returned on successful
188
- # completion of a training job with hyperparameter tuning includes a list
189
- # of HyperparameterOutput objects, one for each successful trial.
190
- class GoogleCloudMlV1HyperparameterOutput
175
+ # Represents input parameters for a prediction job.
176
+ class GoogleCloudMlV1PredictionInput
191
177
  include Google::Apis::Core::Hashable
192
178
 
193
- # An observed value of a metric.
194
- # Corresponds to the JSON property `finalMetric`
195
- # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric]
196
- attr_accessor :final_metric
197
-
198
- # The hyperparameters given to this trial.
199
- # Corresponds to the JSON property `hyperparameters`
200
- # @return [Hash<String,String>]
201
- attr_accessor :hyperparameters
202
-
203
- # The trial id for these results.
204
- # Corresponds to the JSON property `trialId`
179
+ # Required. The format of the input data files.
180
+ # Corresponds to the JSON property `dataFormat`
205
181
  # @return [String]
206
- attr_accessor :trial_id
207
-
208
- # All recorded object metrics for this trial.
209
- # Corresponds to the JSON property `allMetrics`
210
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>]
211
- attr_accessor :all_metrics
182
+ attr_accessor :data_format
212
183
 
213
- def initialize(**args)
214
- update!(**args)
215
- end
184
+ # Optional. The Google Cloud ML runtime version to use for this batch
185
+ # prediction. If not set, Google Cloud ML will pick the runtime version used
186
+ # during the CreateVersion request for this model version, or choose the
187
+ # latest stable version when model version information is not available
188
+ # such as when the model is specified by uri.
189
+ # Corresponds to the JSON property `runtimeVersion`
190
+ # @return [String]
191
+ attr_accessor :runtime_version
216
192
 
217
- # Update properties of this object
218
- def update!(**args)
219
- @final_metric = args[:final_metric] if args.key?(:final_metric)
220
- @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
221
- @trial_id = args[:trial_id] if args.key?(:trial_id)
222
- @all_metrics = args[:all_metrics] if args.key?(:all_metrics)
223
- end
224
- end
193
+ # Required. The Google Cloud Storage location of the input data files.
194
+ # May contain wildcards.
195
+ # Corresponds to the JSON property `inputPaths`
196
+ # @return [Array<String>]
197
+ attr_accessor :input_paths
225
198
 
226
- # Represents results of a prediction job.
227
- class GoogleCloudMlV1PredictionOutput
228
- include Google::Apis::Core::Hashable
199
+ # Required. The Google Compute Engine region to run the prediction job in.
200
+ # Corresponds to the JSON property `region`
201
+ # @return [String]
202
+ attr_accessor :region
229
203
 
230
- # The number of generated predictions.
231
- # Corresponds to the JSON property `predictionCount`
204
+ # Use this field if you want to specify a version of the model to use. The
205
+ # string is formatted the same way as `model_version`, with the addition
206
+ # of the version information:
207
+ # `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[
208
+ # YOUR_VERSION]</var>"`
209
+ # Corresponds to the JSON property `versionName`
232
210
  # @return [String]
233
- attr_accessor :prediction_count
211
+ attr_accessor :version_name
234
212
 
235
- # The number of data instances which resulted in errors.
236
- # Corresponds to the JSON property `errorCount`
213
+ # Use this field if you want to use the default version for the specified
214
+ # model. The string must use the following format:
215
+ # `"projects/<var>[YOUR_PROJECT]</var>/models/<var>[YOUR_MODEL]</var>"`
216
+ # Corresponds to the JSON property `modelName`
237
217
  # @return [String]
238
- attr_accessor :error_count
218
+ attr_accessor :model_name
239
219
 
240
- # The output Google Cloud Storage location provided at the job creation time.
220
+ # Required. The output Google Cloud Storage location.
241
221
  # Corresponds to the JSON property `outputPath`
242
222
  # @return [String]
243
223
  attr_accessor :output_path
244
224
 
245
- # Node hours used by the batch prediction job.
246
- # Corresponds to the JSON property `nodeHours`
247
- # @return [Float]
248
- attr_accessor :node_hours
225
+ # Use this field if you want to specify a Google Cloud Storage path for
226
+ # the model to use.
227
+ # Corresponds to the JSON property `uri`
228
+ # @return [String]
229
+ attr_accessor :uri
230
+
231
+ # Optional. The maximum number of workers to be used for parallel processing.
232
+ # Defaults to 10 if not specified.
233
+ # Corresponds to the JSON property `maxWorkerCount`
234
+ # @return [Fixnum]
235
+ attr_accessor :max_worker_count
249
236
 
250
237
  def initialize(**args)
251
238
  update!(**args)
@@ -253,26 +240,62 @@ module Google
253
240
 
254
241
  # Update properties of this object
255
242
  def update!(**args)
256
- @prediction_count = args[:prediction_count] if args.key?(:prediction_count)
257
- @error_count = args[:error_count] if args.key?(:error_count)
243
+ @data_format = args[:data_format] if args.key?(:data_format)
244
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
245
+ @input_paths = args[:input_paths] if args.key?(:input_paths)
246
+ @region = args[:region] if args.key?(:region)
247
+ @version_name = args[:version_name] if args.key?(:version_name)
248
+ @model_name = args[:model_name] if args.key?(:model_name)
258
249
  @output_path = args[:output_path] if args.key?(:output_path)
259
- @node_hours = args[:node_hours] if args.key?(:node_hours)
250
+ @uri = args[:uri] if args.key?(:uri)
251
+ @max_worker_count = args[:max_worker_count] if args.key?(:max_worker_count)
260
252
  end
261
253
  end
262
254
 
263
- # The response message for Operations.ListOperations.
264
- class GoogleLongrunningListOperationsResponse
255
+ # Represents the metadata of the long-running operation.
256
+ class GoogleCloudMlV1beta1OperationMetadata
265
257
  include Google::Apis::Core::Hashable
266
258
 
267
- # The standard List next-page token.
268
- # Corresponds to the JSON property `nextPageToken`
269
- # @return [String]
270
- attr_accessor :next_page_token
259
+ # Indicates whether a request to cancel this operation has been made.
260
+ # Corresponds to the JSON property `isCancellationRequested`
261
+ # @return [Boolean]
262
+ attr_accessor :is_cancellation_requested
263
+ alias_method :is_cancellation_requested?, :is_cancellation_requested
271
264
 
272
- # A list of operations that matches the specified filter in the request.
273
- # Corresponds to the JSON property `operations`
274
- # @return [Array<Google::Apis::MlV1::GoogleLongrunningOperation>]
275
- attr_accessor :operations
265
+ # The time the operation was submitted.
266
+ # Corresponds to the JSON property `createTime`
267
+ # @return [String]
268
+ attr_accessor :create_time
269
+
270
+ # Contains the name of the model associated with the operation.
271
+ # Corresponds to the JSON property `modelName`
272
+ # @return [String]
273
+ attr_accessor :model_name
274
+
275
+ # Represents a version of the model.
276
+ # Each version is a trained model deployed in the cloud, ready to handle
277
+ # prediction requests. A model can have multiple versions. You can get
278
+ # information about all of the versions of a given model by calling
279
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
280
+ # models.versions/list).
281
+ # Corresponds to the JSON property `version`
282
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1Version]
283
+ attr_accessor :version
284
+
285
+ # The time operation processing completed.
286
+ # Corresponds to the JSON property `endTime`
287
+ # @return [String]
288
+ attr_accessor :end_time
289
+
290
+ # The operation type.
291
+ # Corresponds to the JSON property `operationType`
292
+ # @return [String]
293
+ attr_accessor :operation_type
294
+
295
+ # The time operation processing started.
296
+ # Corresponds to the JSON property `startTime`
297
+ # @return [String]
298
+ attr_accessor :start_time
276
299
 
277
300
  def initialize(**args)
278
301
  update!(**args)
@@ -280,22 +303,120 @@ module Google
280
303
 
281
304
  # Update properties of this object
282
305
  def update!(**args)
283
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
284
- @operations = args[:operations] if args.key?(:operations)
306
+ @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
307
+ @create_time = args[:create_time] if args.key?(:create_time)
308
+ @model_name = args[:model_name] if args.key?(:model_name)
309
+ @version = args[:version] if args.key?(:version)
310
+ @end_time = args[:end_time] if args.key?(:end_time)
311
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
312
+ @start_time = args[:start_time] if args.key?(:start_time)
285
313
  end
286
314
  end
287
315
 
288
- # Options for manually scaling a model.
289
- class GoogleCloudMlV1ManualScaling
316
+ # Represents the metadata of the long-running operation.
317
+ class GoogleCloudMlV1OperationMetadata
290
318
  include Google::Apis::Core::Hashable
291
319
 
292
- # The number of nodes to allocate for this model. These nodes are always up,
293
- # starting from the time the model is deployed, so the cost of operating
294
- # this model will be proportional to nodes * number of hours since
295
- # deployment.
296
- # Corresponds to the JSON property `nodes`
320
+ # The time the operation was submitted.
321
+ # Corresponds to the JSON property `createTime`
322
+ # @return [String]
323
+ attr_accessor :create_time
324
+
325
+ # Contains the name of the model associated with the operation.
326
+ # Corresponds to the JSON property `modelName`
327
+ # @return [String]
328
+ attr_accessor :model_name
329
+
330
+ # Represents a version of the model.
331
+ # Each version is a trained model deployed in the cloud, ready to handle
332
+ # prediction requests. A model can have multiple versions. You can get
333
+ # information about all of the versions of a given model by calling
334
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
335
+ # versions/list).
336
+ # Corresponds to the JSON property `version`
337
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
338
+ attr_accessor :version
339
+
340
+ # The time operation processing completed.
341
+ # Corresponds to the JSON property `endTime`
342
+ # @return [String]
343
+ attr_accessor :end_time
344
+
345
+ # The operation type.
346
+ # Corresponds to the JSON property `operationType`
347
+ # @return [String]
348
+ attr_accessor :operation_type
349
+
350
+ # The time operation processing started.
351
+ # Corresponds to the JSON property `startTime`
352
+ # @return [String]
353
+ attr_accessor :start_time
354
+
355
+ # Indicates whether a request to cancel this operation has been made.
356
+ # Corresponds to the JSON property `isCancellationRequested`
357
+ # @return [Boolean]
358
+ attr_accessor :is_cancellation_requested
359
+ alias_method :is_cancellation_requested?, :is_cancellation_requested
360
+
361
+ def initialize(**args)
362
+ update!(**args)
363
+ end
364
+
365
+ # Update properties of this object
366
+ def update!(**args)
367
+ @create_time = args[:create_time] if args.key?(:create_time)
368
+ @model_name = args[:model_name] if args.key?(:model_name)
369
+ @version = args[:version] if args.key?(:version)
370
+ @end_time = args[:end_time] if args.key?(:end_time)
371
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
372
+ @start_time = args[:start_time] if args.key?(:start_time)
373
+ @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
374
+ end
375
+ end
376
+
377
+ # Represents a set of hyperparameters to optimize.
378
+ class GoogleCloudMlV1HyperparameterSpec
379
+ include Google::Apis::Core::Hashable
380
+
381
+ # Required. The type of goal to use for tuning. Available types are
382
+ # `MAXIMIZE` and `MINIMIZE`.
383
+ # Defaults to `MAXIMIZE`.
384
+ # Corresponds to the JSON property `goal`
385
+ # @return [String]
386
+ attr_accessor :goal
387
+
388
+ # Optional. The Tensorflow summary tag name to use for optimizing trials. For
389
+ # current versions of Tensorflow, this tag name should exactly match what is
390
+ # shown in Tensorboard, including all scopes. For versions of Tensorflow
391
+ # prior to 0.12, this should be only the tag passed to tf.Summary.
392
+ # By default, "training/hptuning/metric" will be used.
393
+ # Corresponds to the JSON property `hyperparameterMetricTag`
394
+ # @return [String]
395
+ attr_accessor :hyperparameter_metric_tag
396
+
397
+ # Required. The set of parameters to tune.
398
+ # Corresponds to the JSON property `params`
399
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec>]
400
+ attr_accessor :params
401
+
402
+ # Optional. How many training trials should be attempted to optimize
403
+ # the specified hyperparameters.
404
+ # Defaults to one.
405
+ # Corresponds to the JSON property `maxTrials`
297
406
  # @return [Fixnum]
298
- attr_accessor :nodes
407
+ attr_accessor :max_trials
408
+
409
+ # Optional. The number of training trials to run concurrently.
410
+ # You can reduce the time it takes to perform hyperparameter tuning by adding
411
+ # trials in parallel. However, each trail only benefits from the information
412
+ # gained in completed trials. That means that a trial does not get access to
413
+ # the results of trials running at the same time, which could reduce the
414
+ # quality of the overall optimization.
415
+ # Each trial will use the same scale tier and machine types.
416
+ # Defaults to one.
417
+ # Corresponds to the JSON property `maxParallelTrials`
418
+ # @return [Fixnum]
419
+ attr_accessor :max_parallel_trials
299
420
 
300
421
  def initialize(**args)
301
422
  update!(**args)
@@ -303,36 +424,43 @@ module Google
303
424
 
304
425
  # Update properties of this object
305
426
  def update!(**args)
306
- @nodes = args[:nodes] if args.key?(:nodes)
427
+ @goal = args[:goal] if args.key?(:goal)
428
+ @hyperparameter_metric_tag = args[:hyperparameter_metric_tag] if args.key?(:hyperparameter_metric_tag)
429
+ @params = args[:params] if args.key?(:params)
430
+ @max_trials = args[:max_trials] if args.key?(:max_trials)
431
+ @max_parallel_trials = args[:max_parallel_trials] if args.key?(:max_parallel_trials)
307
432
  end
308
433
  end
309
434
 
310
- # Represents results of a training job. Output only.
311
- class GoogleCloudMlV1TrainingOutput
435
+ # Response message for the ListJobs method.
436
+ class GoogleCloudMlV1ListJobsResponse
312
437
  include Google::Apis::Core::Hashable
313
438
 
314
- # The number of hyperparameter tuning trials that completed successfully.
315
- # Only set for hyperparameter tuning jobs.
316
- # Corresponds to the JSON property `completedTrialCount`
439
+ # The list of jobs.
440
+ # Corresponds to the JSON property `jobs`
441
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Job>]
442
+ attr_accessor :jobs
443
+
444
+ # Optional. Pass this token as the `page_token` field of the request for a
445
+ # subsequent call.
446
+ # Corresponds to the JSON property `nextPageToken`
317
447
  # @return [String]
318
- attr_accessor :completed_trial_count
448
+ attr_accessor :next_page_token
319
449
 
320
- # Whether this job is a hyperparameter tuning job.
321
- # Corresponds to the JSON property `isHyperparameterTuningJob`
322
- # @return [Boolean]
323
- attr_accessor :is_hyperparameter_tuning_job
324
- alias_method :is_hyperparameter_tuning_job?, :is_hyperparameter_tuning_job
450
+ def initialize(**args)
451
+ update!(**args)
452
+ end
325
453
 
326
- # The amount of ML units consumed by the job.
327
- # Corresponds to the JSON property `consumedMLUnits`
328
- # @return [Float]
329
- attr_accessor :consumed_ml_units
454
+ # Update properties of this object
455
+ def update!(**args)
456
+ @jobs = args[:jobs] if args.key?(:jobs)
457
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
458
+ end
459
+ end
330
460
 
331
- # Results for individual Hyperparameter trials.
332
- # Only set for hyperparameter tuning jobs.
333
- # Corresponds to the JSON property `trials`
334
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput>]
335
- attr_accessor :trials
461
+ # Request message for the SetDefaultVersion request.
462
+ class GoogleCloudMlV1SetDefaultVersionRequest
463
+ include Google::Apis::Core::Hashable
336
464
 
337
465
  def initialize(**args)
338
466
  update!(**args)
@@ -340,323 +468,88 @@ module Google
340
468
 
341
469
  # Update properties of this object
342
470
  def update!(**args)
343
- @completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count)
344
- @is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job)
345
- @consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units)
346
- @trials = args[:trials] if args.key?(:trials)
347
471
  end
348
472
  end
349
473
 
350
- # Request for predictions to be issued against a trained model.
351
- # The body of the request is a single JSON object with a single top-level
352
- # field:
353
- # <dl>
354
- # <dt>instances</dt>
355
- # <dd>A JSON array containing values representing the instances to use for
356
- # prediction.</dd>
357
- # </dl>
358
- # The structure of each element of the instances list is determined by your
359
- # model's input definition. Instances can include named inputs or can contain
360
- # only unlabeled values.
361
- # Not all data includes named inputs. Some instances will be simple
362
- # JSON values (boolean, number, or string). However, instances are often lists
363
- # of simple values, or complex nested lists. Here are some examples of request
364
- # bodies:
365
- # CSV data with each row encoded as a string value:
366
- # <pre>
367
- # `"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]`
368
- # </pre>
369
- # Plain text:
370
- # <pre>
371
- # `"instances": ["the quick brown fox", "la bruja le dio"]`
372
- # </pre>
373
- # Sentences encoded as lists of words (vectors of strings):
374
- # <pre>
375
- # `
376
- # "instances": [
377
- # ["the","quick","brown"],
378
- # ["la","bruja","le"],
379
- # ...
380
- # ]
381
- # `
382
- # </pre>
383
- # Floating point scalar values:
384
- # <pre>
385
- # `"instances": [0.0, 1.1, 2.2]`
386
- # </pre>
387
- # Vectors of integers:
388
- # <pre>
389
- # `
390
- # "instances": [
391
- # [0, 1, 2],
392
- # [3, 4, 5],
393
- # ...
394
- # ]
395
- # `
396
- # </pre>
397
- # Tensors (in this case, two-dimensional tensors):
398
- # <pre>
399
- # `
400
- # "instances": [
401
- # [
402
- # [0, 1, 2],
403
- # [3, 4, 5]
404
- # ],
405
- # ...
406
- # ]
407
- # `
408
- # </pre>
409
- # Images can be represented different ways. In this encoding scheme the first
410
- # two dimensions represent the rows and columns of the image, and the third
411
- # contains lists (vectors) of the R, G, and B values for each pixel.
412
- # <pre>
413
- # `
414
- # "instances": [
415
- # [
416
- # [
417
- # [138, 30, 66],
418
- # [130, 20, 56],
419
- # ...
420
- # ],
421
- # [
422
- # [126, 38, 61],
423
- # [122, 24, 57],
424
- # ...
425
- # ],
426
- # ...
427
- # ],
428
- # ...
429
- # ]
430
- # `
431
- # </pre>
432
- # JSON strings must be encoded as UTF-8. To send binary data, you must
433
- # base64-encode the data and mark it as binary. To mark a JSON string
434
- # as binary, replace it with a JSON object with a single attribute named `b64`:
435
- # <pre>`"b64": "..."` </pre>
436
- # For example:
437
- # Two Serialized tf.Examples (fake data, for illustrative purposes only):
438
- # <pre>
439
- # `"instances": [`"b64": "X5ad6u"`, `"b64": "IA9j4nx"`]`
440
- # </pre>
441
- # Two JPEG image byte strings (fake data, for illustrative purposes only):
442
- # <pre>
443
- # `"instances": [`"b64": "ASa8asdf"`, `"b64": "JLK7ljk3"`]`
444
- # </pre>
445
- # If your data includes named references, format each instance as a JSON object
446
- # with the named references as the keys:
447
- # JSON input data to be preprocessed:
448
- # <pre>
449
- # `
450
- # "instances": [
451
- # `
452
- # "a": 1.0,
453
- # "b": true,
454
- # "c": "x"
455
- # `,
456
- # `
457
- # "a": -2.0,
458
- # "b": false,
459
- # "c": "y"
460
- # `
461
- # ]
462
- # `
463
- # </pre>
464
- # Some models have an underlying TensorFlow graph that accepts multiple input
465
- # tensors. In this case, you should use the names of JSON name/value pairs to
466
- # identify the input tensors, as shown in the following exmaples:
467
- # For a graph with input tensor aliases "tag" (string) and "image"
468
- # (base64-encoded string):
469
- # <pre>
470
- # `
471
- # "instances": [
472
- # `
473
- # "tag": "beach",
474
- # "image": `"b64": "ASa8asdf"`
475
- # `,
476
- # `
477
- # "tag": "car",
478
- # "image": `"b64": "JLK7ljk3"`
479
- # `
480
- # ]
481
- # `
482
- # </pre>
483
- # For a graph with input tensor aliases "tag" (string) and "image"
484
- # (3-dimensional array of 8-bit ints):
485
- # <pre>
486
- # `
487
- # "instances": [
488
- # `
489
- # "tag": "beach",
490
- # "image": [
491
- # [
492
- # [138, 30, 66],
493
- # [130, 20, 56],
494
- # ...
495
- # ],
496
- # [
497
- # [126, 38, 61],
498
- # [122, 24, 57],
499
- # ...
500
- # ],
501
- # ...
502
- # ]
503
- # `,
504
- # `
505
- # "tag": "car",
506
- # "image": [
507
- # [
508
- # [255, 0, 102],
509
- # [255, 0, 97],
510
- # ...
511
- # ],
512
- # [
513
- # [254, 1, 101],
514
- # [254, 2, 93],
515
- # ...
516
- # ],
517
- # ...
518
- # ]
519
- # `,
520
- # ...
521
- # ]
522
- # `
523
- # </pre>
524
- # If the call is successful, the response body will contain one prediction
525
- # entry per instance in the request body. If prediction fails for any
526
- # instance, the response body will contain no predictions and will contian
527
- # a single error entry instead.
528
- class GoogleCloudMlV1PredictRequest
529
- include Google::Apis::Core::Hashable
530
-
531
- # Message that represents an arbitrary HTTP body. It should only be used for
532
- # payload formats that can't be represented as JSON, such as raw binary or
533
- # an HTML page.
534
- # This message can be used both in streaming and non-streaming API methods in
535
- # the request as well as the response.
536
- # It can be used as a top-level request field, which is convenient if one
537
- # wants to extract parameters from either the URL or HTTP template into the
538
- # request fields and also want access to the raw HTTP body.
539
- # Example:
540
- # message GetResourceRequest `
541
- # // A unique request id.
542
- # string request_id = 1;
543
- # // The raw HTTP body is bound to this field.
544
- # google.api.HttpBody http_body = 2;
545
- # `
546
- # service ResourceService `
547
- # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
548
- # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
549
- # `
550
- # Example with streaming methods:
551
- # service CaldavService `
552
- # rpc GetCalendar(stream google.api.HttpBody)
553
- # returns (stream google.api.HttpBody);
554
- # rpc UpdateCalendar(stream google.api.HttpBody)
555
- # returns (stream google.api.HttpBody);
556
- # `
557
- # Use of this type only changes how the request and response bodies are
558
- # handled, all other features will continue to work unchanged.
559
- # Corresponds to the JSON property `httpBody`
560
- # @return [Google::Apis::MlV1::GoogleApiHttpBody]
561
- attr_accessor :http_body
562
-
563
- def initialize(**args)
564
- update!(**args)
565
- end
566
-
567
- # Update properties of this object
568
- def update!(**args)
569
- @http_body = args[:http_body] if args.key?(:http_body)
570
- end
571
- end
572
-
573
- # An observed value of a metric.
574
- class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
575
- include Google::Apis::Core::Hashable
576
-
577
- # The global training step for this metric.
578
- # Corresponds to the JSON property `trainingStep`
579
- # @return [String]
580
- attr_accessor :training_step
581
-
582
- # The objective value at this training step.
583
- # Corresponds to the JSON property `objectiveValue`
584
- # @return [Float]
585
- attr_accessor :objective_value
586
-
587
- def initialize(**args)
588
- update!(**args)
589
- end
590
-
591
- # Update properties of this object
592
- def update!(**args)
593
- @training_step = args[:training_step] if args.key?(:training_step)
594
- @objective_value = args[:objective_value] if args.key?(:objective_value)
595
- end
596
- end
597
-
598
- # Represents a version of the model.
599
- # Each version is a trained model deployed in the cloud, ready to handle
600
- # prediction requests. A model can have multiple versions. You can get
601
- # information about all of the versions of a given model by calling
602
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
603
- # versions/list).
604
- class GoogleCloudMlV1Version
474
+ # This resource represents a long-running operation that is the result of a
475
+ # network API call.
476
+ class GoogleLongrunningOperation
605
477
  include Google::Apis::Core::Hashable
606
478
 
607
- # Optional. The Google Cloud ML runtime version to use for this deployment.
608
- # If not set, Google Cloud ML will choose a version.
609
- # Corresponds to the JSON property `runtimeVersion`
610
- # @return [String]
611
- attr_accessor :runtime_version
612
-
613
- # Output only. The time the version was last used for prediction.
614
- # Corresponds to the JSON property `lastUseTime`
615
- # @return [String]
616
- attr_accessor :last_use_time
617
-
618
- # Optional. The description specified for the version when it was created.
619
- # Corresponds to the JSON property `description`
620
- # @return [String]
621
- attr_accessor :description
479
+ # The `Status` type defines a logical error model that is suitable for different
480
+ # programming environments, including REST APIs and RPC APIs. It is used by
481
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
482
+ # - Simple to use and understand for most users
483
+ # - Flexible enough to meet unexpected needs
484
+ # # Overview
485
+ # The `Status` message contains three pieces of data: error code, error message,
486
+ # and error details. The error code should be an enum value of
487
+ # google.rpc.Code, but it may accept additional error codes if needed. The
488
+ # error message should be a developer-facing English message that helps
489
+ # developers *understand* and *resolve* the error. If a localized user-facing
490
+ # error message is needed, put the localized message in the error details or
491
+ # localize it in the client. The optional error details may contain arbitrary
492
+ # information about the error. There is a predefined set of error detail types
493
+ # in the package `google.rpc` which can be used for common error conditions.
494
+ # # Language mapping
495
+ # The `Status` message is the logical representation of the error model, but it
496
+ # is not necessarily the actual wire format. When the `Status` message is
497
+ # exposed in different client libraries and different wire protocols, it can be
498
+ # mapped differently. For example, it will likely be mapped to some exceptions
499
+ # in Java, but more likely mapped to some error codes in C.
500
+ # # Other uses
501
+ # The error model and the `Status` message can be used in a variety of
502
+ # environments, either with or without APIs, to provide a
503
+ # consistent developer experience across different environments.
504
+ # Example uses of this error model include:
505
+ # - Partial errors. If a service needs to return partial errors to the client,
506
+ # it may embed the `Status` in the normal response to indicate the partial
507
+ # errors.
508
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
509
+ # have a `Status` message for error reporting purpose.
510
+ # - Batch operations. If a client uses batch request and batch response, the
511
+ # `Status` message should be used directly inside batch response, one for
512
+ # each error sub-response.
513
+ # - Asynchronous operations. If an API call embeds asynchronous operation
514
+ # results in its response, the status of those operations should be
515
+ # represented directly using the `Status` message.
516
+ # - Logging. If some API errors are stored in logs, the message `Status` could
517
+ # be used directly after any stripping needed for security/privacy reasons.
518
+ # Corresponds to the JSON property `error`
519
+ # @return [Google::Apis::MlV1::GoogleRpcStatus]
520
+ attr_accessor :error
622
521
 
623
- # Required. The Google Cloud Storage location of the trained model used to
624
- # create the version. See the
625
- # [overview of model deployment](/ml-engine/docs/concepts/deployment-overview)
626
- # for
627
- # more informaiton.
628
- # When passing Version to
629
- # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.
630
- # versions/create)
631
- # the model service uses the specified location as the source of the model.
632
- # Once deployed, the model version is hosted by the prediction service, so
633
- # this location is useful only as a historical record.
634
- # Corresponds to the JSON property `deploymentUri`
635
- # @return [String]
636
- attr_accessor :deployment_uri
522
+ # Service-specific metadata associated with the operation. It typically
523
+ # contains progress information and common metadata such as create time.
524
+ # Some services might not provide such metadata. Any method that returns a
525
+ # long-running operation should document the metadata type, if any.
526
+ # Corresponds to the JSON property `metadata`
527
+ # @return [Hash<String,Object>]
528
+ attr_accessor :metadata
637
529
 
638
- # Output only. If true, this version will be used to handle prediction
639
- # requests that do not specify a version.
640
- # You can change the default version by calling
641
- # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.
642
- # models.versions/setDefault).
643
- # Corresponds to the JSON property `isDefault`
530
+ # If the value is `false`, it means the operation is still in progress.
531
+ # If true, the operation is completed, and either `error` or `response` is
532
+ # available.
533
+ # Corresponds to the JSON property `done`
644
534
  # @return [Boolean]
645
- attr_accessor :is_default
646
- alias_method :is_default?, :is_default
647
-
648
- # Output only. The time the version was created.
649
- # Corresponds to the JSON property `createTime`
650
- # @return [String]
651
- attr_accessor :create_time
535
+ attr_accessor :done
536
+ alias_method :done?, :done
652
537
 
653
- # Options for manually scaling a model.
654
- # Corresponds to the JSON property `manualScaling`
655
- # @return [Google::Apis::MlV1::GoogleCloudMlV1ManualScaling]
656
- attr_accessor :manual_scaling
538
+ # The normal response of the operation in case of success. If the original
539
+ # method returns no data on success, such as `Delete`, the response is
540
+ # `google.protobuf.Empty`. If the original method is standard
541
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
542
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
543
+ # is the original method name. For example, if the original method name
544
+ # is `TakeSnapshot()`, the inferred response type is
545
+ # `TakeSnapshotResponse`.
546
+ # Corresponds to the JSON property `response`
547
+ # @return [Hash<String,Object>]
548
+ attr_accessor :response
657
549
 
658
- # Required.The name specified for the version when it was created.
659
- # The version name must be unique within the model it is created in.
550
+ # The server-assigned name, which is only unique within the same service that
551
+ # originally returns it. If you use the default HTTP mapping, the
552
+ # `name` should have the format of `operations/some/unique/name`.
660
553
  # Corresponds to the JSON property `name`
661
554
  # @return [String]
662
555
  attr_accessor :name
@@ -667,67 +560,61 @@ module Google
667
560
 
668
561
  # Update properties of this object
669
562
  def update!(**args)
670
- @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
671
- @last_use_time = args[:last_use_time] if args.key?(:last_use_time)
672
- @description = args[:description] if args.key?(:description)
673
- @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri)
674
- @is_default = args[:is_default] if args.key?(:is_default)
675
- @create_time = args[:create_time] if args.key?(:create_time)
676
- @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
563
+ @error = args[:error] if args.key?(:error)
564
+ @metadata = args[:metadata] if args.key?(:metadata)
565
+ @done = args[:done] if args.key?(:done)
566
+ @response = args[:response] if args.key?(:response)
677
567
  @name = args[:name] if args.key?(:name)
678
568
  end
679
569
  end
680
570
 
681
- # Represents a single hyperparameter to optimize.
682
- class GoogleCloudMlV1ParameterSpec
571
+ # Represents a machine learning solution.
572
+ # A model can have multiple versions, each of which is a deployed, trained
573
+ # model ready to receive prediction requests. The model itself is just a
574
+ # container.
575
+ class GoogleCloudMlV1Model
683
576
  include Google::Apis::Core::Hashable
684
577
 
685
- # Required if type is `CATEGORICAL`. The list of possible categories.
686
- # Corresponds to the JSON property `categoricalValues`
687
- # @return [Array<String>]
688
- attr_accessor :categorical_values
689
-
690
- # Required. The parameter name must be unique amongst all ParameterConfigs in
691
- # a HyperparameterSpec message. E.g., "learning_rate".
692
- # Corresponds to the JSON property `parameterName`
578
+ # Optional. The description specified for the model when it was created.
579
+ # Corresponds to the JSON property `description`
693
580
  # @return [String]
694
- attr_accessor :parameter_name
695
-
696
- # Required if type is `DOUBLE` or `INTEGER`. This field
697
- # should be unset if type is `CATEGORICAL`. This value should be integers if
698
- # type is INTEGER.
699
- # Corresponds to the JSON property `minValue`
700
- # @return [Float]
701
- attr_accessor :min_value
581
+ attr_accessor :description
702
582
 
703
- # Required if type is `DISCRETE`.
704
- # A list of feasible points.
705
- # The list should be in strictly increasing order. For instance, this
706
- # parameter might have possible settings of 1.5, 2.5, and 4.0. This list
707
- # should not contain more than 1,000 values.
708
- # Corresponds to the JSON property `discreteValues`
709
- # @return [Array<Float>]
710
- attr_accessor :discrete_values
583
+ # Optional. If true, enables StackDriver Logging for online prediction.
584
+ # Default is false.
585
+ # Corresponds to the JSON property `onlinePredictionLogging`
586
+ # @return [Boolean]
587
+ attr_accessor :online_prediction_logging
588
+ alias_method :online_prediction_logging?, :online_prediction_logging
711
589
 
712
- # Optional. How the parameter should be scaled to the hypercube.
713
- # Leave unset for categorical parameters.
714
- # Some kind of scaling is strongly recommended for real or integral
715
- # parameters (e.g., `UNIT_LINEAR_SCALE`).
716
- # Corresponds to the JSON property `scaleType`
717
- # @return [String]
718
- attr_accessor :scale_type
590
+ # Represents a version of the model.
591
+ # Each version is a trained model deployed in the cloud, ready to handle
592
+ # prediction requests. A model can have multiple versions. You can get
593
+ # information about all of the versions of a given model by calling
594
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
595
+ # versions/list).
596
+ # Corresponds to the JSON property `defaultVersion`
597
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
598
+ attr_accessor :default_version
719
599
 
720
- # Required if typeis `DOUBLE` or `INTEGER`. This field
721
- # should be unset if type is `CATEGORICAL`. This value should be integers if
722
- # type is `INTEGER`.
723
- # Corresponds to the JSON property `maxValue`
724
- # @return [Float]
725
- attr_accessor :max_value
600
+ # Optional. The list of regions where the model is going to be deployed.
601
+ # Currently only one region per model is supported.
602
+ # Defaults to 'us-central1' if nothing is set.
603
+ # Note:
604
+ # * No matter where a model is deployed, it can always be accessed by
605
+ # users from anywhere, both for online and batch prediction.
606
+ # * The region for a batch prediction job is set by the region field when
607
+ # submitting the batch prediction job and does not take its value from
608
+ # this field.
609
+ # Corresponds to the JSON property `regions`
610
+ # @return [Array<String>]
611
+ attr_accessor :regions
726
612
 
727
- # Required. The type of the parameter.
728
- # Corresponds to the JSON property `type`
613
+ # Required. The name specified for the model when it was created.
614
+ # The model name must be unique within the project it is created in.
615
+ # Corresponds to the JSON property `name`
729
616
  # @return [String]
730
- attr_accessor :type
617
+ attr_accessor :name
731
618
 
732
619
  def initialize(**args)
733
620
  update!(**args)
@@ -735,77 +622,47 @@ module Google
735
622
 
736
623
  # Update properties of this object
737
624
  def update!(**args)
738
- @categorical_values = args[:categorical_values] if args.key?(:categorical_values)
739
- @parameter_name = args[:parameter_name] if args.key?(:parameter_name)
740
- @min_value = args[:min_value] if args.key?(:min_value)
741
- @discrete_values = args[:discrete_values] if args.key?(:discrete_values)
742
- @scale_type = args[:scale_type] if args.key?(:scale_type)
743
- @max_value = args[:max_value] if args.key?(:max_value)
744
- @type = args[:type] if args.key?(:type)
625
+ @description = args[:description] if args.key?(:description)
626
+ @online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging)
627
+ @default_version = args[:default_version] if args.key?(:default_version)
628
+ @regions = args[:regions] if args.key?(:regions)
629
+ @name = args[:name] if args.key?(:name)
745
630
  end
746
631
  end
747
632
 
748
- # Represents input parameters for a prediction job.
749
- class GoogleCloudMlV1PredictionInput
633
+ # A generic empty message that you can re-use to avoid defining duplicated
634
+ # empty messages in your APIs. A typical example is to use it as the request
635
+ # or the response type of an API method. For instance:
636
+ # service Foo `
637
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
638
+ # `
639
+ # The JSON representation for `Empty` is empty JSON object ````.
640
+ class GoogleProtobufEmpty
750
641
  include Google::Apis::Core::Hashable
751
642
 
752
- # Use this field if you want to specify a version of the model to use. The
753
- # string is formatted the same way as `model_version`, with the addition
754
- # of the version information:
755
- # `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[
756
- # YOUR_VERSION]</var>"`
757
- # Corresponds to the JSON property `versionName`
758
- # @return [String]
759
- attr_accessor :version_name
760
-
761
- # Use this field if you want to use the default version for the specified
762
- # model. The string must use the following format:
763
- # `"projects/<var>[YOUR_PROJECT]</var>/models/<var>[YOUR_MODEL]</var>"`
764
- # Corresponds to the JSON property `modelName`
765
- # @return [String]
766
- attr_accessor :model_name
767
-
768
- # Required. The output Google Cloud Storage location.
769
- # Corresponds to the JSON property `outputPath`
770
- # @return [String]
771
- attr_accessor :output_path
772
-
773
- # Use this field if you want to specify a Google Cloud Storage path for
774
- # the model to use.
775
- # Corresponds to the JSON property `uri`
776
- # @return [String]
777
- attr_accessor :uri
778
-
779
- # Optional. The maximum number of workers to be used for parallel processing.
780
- # Defaults to 10 if not specified.
781
- # Corresponds to the JSON property `maxWorkerCount`
782
- # @return [String]
783
- attr_accessor :max_worker_count
643
+ def initialize(**args)
644
+ update!(**args)
645
+ end
784
646
 
785
- # Required. The format of the input data files.
786
- # Corresponds to the JSON property `dataFormat`
787
- # @return [String]
788
- attr_accessor :data_format
647
+ # Update properties of this object
648
+ def update!(**args)
649
+ end
650
+ end
789
651
 
790
- # Optional. The Google Cloud ML runtime version to use for this batch
791
- # prediction. If not set, Google Cloud ML will pick the runtime version used
792
- # during the CreateVersion request for this model version, or choose the
793
- # latest stable version when model version information is not available
794
- # such as when the model is specified by uri.
795
- # Corresponds to the JSON property `runtimeVersion`
796
- # @return [String]
797
- attr_accessor :runtime_version
652
+ # Response message for the ListVersions method.
653
+ class GoogleCloudMlV1ListVersionsResponse
654
+ include Google::Apis::Core::Hashable
798
655
 
799
- # Required. The Google Cloud Storage location of the input data files.
800
- # May contain wildcards.
801
- # Corresponds to the JSON property `inputPaths`
802
- # @return [Array<String>]
803
- attr_accessor :input_paths
656
+ # The list of versions.
657
+ # Corresponds to the JSON property `versions`
658
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Version>]
659
+ attr_accessor :versions
804
660
 
805
- # Required. The Google Compute Engine region to run the prediction job in.
806
- # Corresponds to the JSON property `region`
661
+ # Optional. Pass this token as the `page_token` field of the request for a
662
+ # subsequent call.
663
+ # Corresponds to the JSON property `nextPageToken`
807
664
  # @return [String]
808
- attr_accessor :region
665
+ attr_accessor :next_page_token
809
666
 
810
667
  def initialize(**args)
811
668
  update!(**args)
@@ -813,62 +670,35 @@ module Google
813
670
 
814
671
  # Update properties of this object
815
672
  def update!(**args)
816
- @version_name = args[:version_name] if args.key?(:version_name)
817
- @model_name = args[:model_name] if args.key?(:model_name)
818
- @output_path = args[:output_path] if args.key?(:output_path)
819
- @uri = args[:uri] if args.key?(:uri)
820
- @max_worker_count = args[:max_worker_count] if args.key?(:max_worker_count)
821
- @data_format = args[:data_format] if args.key?(:data_format)
822
- @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
823
- @input_paths = args[:input_paths] if args.key?(:input_paths)
824
- @region = args[:region] if args.key?(:region)
673
+ @versions = args[:versions] if args.key?(:versions)
674
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
825
675
  end
826
676
  end
827
677
 
828
- # Represents the metadata of the long-running operation.
829
- class GoogleCloudMlV1OperationMetadata
678
+ # Request message for the CancelJob method.
679
+ class GoogleCloudMlV1CancelJobRequest
830
680
  include Google::Apis::Core::Hashable
831
681
 
832
- # Contains the name of the model associated with the operation.
833
- # Corresponds to the JSON property `modelName`
834
- # @return [String]
835
- attr_accessor :model_name
836
-
837
- # Represents a version of the model.
838
- # Each version is a trained model deployed in the cloud, ready to handle
839
- # prediction requests. A model can have multiple versions. You can get
840
- # information about all of the versions of a given model by calling
841
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
842
- # versions/list).
843
- # Corresponds to the JSON property `version`
844
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
845
- attr_accessor :version
846
-
847
- # The time operation processing completed.
848
- # Corresponds to the JSON property `endTime`
849
- # @return [String]
850
- attr_accessor :end_time
851
-
852
- # The operation type.
853
- # Corresponds to the JSON property `operationType`
854
- # @return [String]
855
- attr_accessor :operation_type
856
-
857
- # The time operation processing started.
858
- # Corresponds to the JSON property `startTime`
859
- # @return [String]
860
- attr_accessor :start_time
682
+ def initialize(**args)
683
+ update!(**args)
684
+ end
861
685
 
862
- # Indicates whether a request to cancel this operation has been made.
863
- # Corresponds to the JSON property `isCancellationRequested`
864
- # @return [Boolean]
865
- attr_accessor :is_cancellation_requested
866
- alias_method :is_cancellation_requested?, :is_cancellation_requested
686
+ # Update properties of this object
687
+ def update!(**args)
688
+ end
689
+ end
867
690
 
868
- # The time the operation was submitted.
869
- # Corresponds to the JSON property `createTime`
870
- # @return [String]
871
- attr_accessor :create_time
691
+ # Options for manually scaling a model.
692
+ class GoogleCloudMlV1beta1ManualScaling
693
+ include Google::Apis::Core::Hashable
694
+
695
+ # The number of nodes to allocate for this model. These nodes are always up,
696
+ # starting from the time the model is deployed, so the cost of operating
697
+ # this model will be proportional to nodes * number of hours since
698
+ # deployment.
699
+ # Corresponds to the JSON property `nodes`
700
+ # @return [Fixnum]
701
+ attr_accessor :nodes
872
702
 
873
703
  def initialize(**args)
874
704
  update!(**args)
@@ -876,60 +706,96 @@ module Google
876
706
 
877
707
  # Update properties of this object
878
708
  def update!(**args)
879
- @model_name = args[:model_name] if args.key?(:model_name)
880
- @version = args[:version] if args.key?(:version)
881
- @end_time = args[:end_time] if args.key?(:end_time)
882
- @operation_type = args[:operation_type] if args.key?(:operation_type)
883
- @start_time = args[:start_time] if args.key?(:start_time)
884
- @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
885
- @create_time = args[:create_time] if args.key?(:create_time)
709
+ @nodes = args[:nodes] if args.key?(:nodes)
886
710
  end
887
711
  end
888
712
 
889
- # Represents the metadata of the long-running operation.
890
- class GoogleCloudMlV1beta1OperationMetadata
713
+ # The `Status` type defines a logical error model that is suitable for different
714
+ # programming environments, including REST APIs and RPC APIs. It is used by
715
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
716
+ # - Simple to use and understand for most users
717
+ # - Flexible enough to meet unexpected needs
718
+ # # Overview
719
+ # The `Status` message contains three pieces of data: error code, error message,
720
+ # and error details. The error code should be an enum value of
721
+ # google.rpc.Code, but it may accept additional error codes if needed. The
722
+ # error message should be a developer-facing English message that helps
723
+ # developers *understand* and *resolve* the error. If a localized user-facing
724
+ # error message is needed, put the localized message in the error details or
725
+ # localize it in the client. The optional error details may contain arbitrary
726
+ # information about the error. There is a predefined set of error detail types
727
+ # in the package `google.rpc` which can be used for common error conditions.
728
+ # # Language mapping
729
+ # The `Status` message is the logical representation of the error model, but it
730
+ # is not necessarily the actual wire format. When the `Status` message is
731
+ # exposed in different client libraries and different wire protocols, it can be
732
+ # mapped differently. For example, it will likely be mapped to some exceptions
733
+ # in Java, but more likely mapped to some error codes in C.
734
+ # # Other uses
735
+ # The error model and the `Status` message can be used in a variety of
736
+ # environments, either with or without APIs, to provide a
737
+ # consistent developer experience across different environments.
738
+ # Example uses of this error model include:
739
+ # - Partial errors. If a service needs to return partial errors to the client,
740
+ # it may embed the `Status` in the normal response to indicate the partial
741
+ # errors.
742
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
743
+ # have a `Status` message for error reporting purpose.
744
+ # - Batch operations. If a client uses batch request and batch response, the
745
+ # `Status` message should be used directly inside batch response, one for
746
+ # each error sub-response.
747
+ # - Asynchronous operations. If an API call embeds asynchronous operation
748
+ # results in its response, the status of those operations should be
749
+ # represented directly using the `Status` message.
750
+ # - Logging. If some API errors are stored in logs, the message `Status` could
751
+ # be used directly after any stripping needed for security/privacy reasons.
752
+ class GoogleRpcStatus
891
753
  include Google::Apis::Core::Hashable
892
754
 
893
- # The operation type.
894
- # Corresponds to the JSON property `operationType`
895
- # @return [String]
896
- attr_accessor :operation_type
755
+ # The status code, which should be an enum value of google.rpc.Code.
756
+ # Corresponds to the JSON property `code`
757
+ # @return [Fixnum]
758
+ attr_accessor :code
897
759
 
898
- # The time operation processing started.
899
- # Corresponds to the JSON property `startTime`
760
+ # A developer-facing error message, which should be in English. Any
761
+ # user-facing error message should be localized and sent in the
762
+ # google.rpc.Status.details field, or localized by the client.
763
+ # Corresponds to the JSON property `message`
900
764
  # @return [String]
901
- attr_accessor :start_time
765
+ attr_accessor :message
902
766
 
903
- # Indicates whether a request to cancel this operation has been made.
904
- # Corresponds to the JSON property `isCancellationRequested`
905
- # @return [Boolean]
906
- attr_accessor :is_cancellation_requested
907
- alias_method :is_cancellation_requested?, :is_cancellation_requested
767
+ # A list of messages that carry the error details. There will be a
768
+ # common set of message types for APIs to use.
769
+ # Corresponds to the JSON property `details`
770
+ # @return [Array<Hash<String,Object>>]
771
+ attr_accessor :details
908
772
 
909
- # The time the operation was submitted.
910
- # Corresponds to the JSON property `createTime`
911
- # @return [String]
912
- attr_accessor :create_time
773
+ def initialize(**args)
774
+ update!(**args)
775
+ end
913
776
 
914
- # Contains the name of the model associated with the operation.
915
- # Corresponds to the JSON property `modelName`
916
- # @return [String]
917
- attr_accessor :model_name
777
+ # Update properties of this object
778
+ def update!(**args)
779
+ @code = args[:code] if args.key?(:code)
780
+ @message = args[:message] if args.key?(:message)
781
+ @details = args[:details] if args.key?(:details)
782
+ end
783
+ end
918
784
 
919
- # Represents a version of the model.
920
- # Each version is a trained model deployed in the cloud, ready to handle
921
- # prediction requests. A model can have multiple versions. You can get
922
- # information about all of the versions of a given model by calling
923
- # [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
924
- # models.versions/list).
925
- # Corresponds to the JSON property `version`
926
- # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1Version]
927
- attr_accessor :version
785
+ # Response message for the ListModels method.
786
+ class GoogleCloudMlV1ListModelsResponse
787
+ include Google::Apis::Core::Hashable
928
788
 
929
- # The time operation processing completed.
930
- # Corresponds to the JSON property `endTime`
789
+ # Optional. Pass this token as the `page_token` field of the request for a
790
+ # subsequent call.
791
+ # Corresponds to the JSON property `nextPageToken`
931
792
  # @return [String]
932
- attr_accessor :end_time
793
+ attr_accessor :next_page_token
794
+
795
+ # The list of models.
796
+ # Corresponds to the JSON property `models`
797
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Model>]
798
+ attr_accessor :models
933
799
 
934
800
  def initialize(**args)
935
801
  update!(**args)
@@ -937,88 +803,147 @@ module Google
937
803
 
938
804
  # Update properties of this object
939
805
  def update!(**args)
940
- @operation_type = args[:operation_type] if args.key?(:operation_type)
941
- @start_time = args[:start_time] if args.key?(:start_time)
942
- @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
943
- @create_time = args[:create_time] if args.key?(:create_time)
944
- @model_name = args[:model_name] if args.key?(:model_name)
945
- @version = args[:version] if args.key?(:version)
946
- @end_time = args[:end_time] if args.key?(:end_time)
806
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
807
+ @models = args[:models] if args.key?(:models)
947
808
  end
948
809
  end
949
810
 
950
- # Represents a set of hyperparameters to optimize.
951
- class GoogleCloudMlV1HyperparameterSpec
811
+ # Represents input parameters for a training job.
812
+ class GoogleCloudMlV1TrainingInput
952
813
  include Google::Apis::Core::Hashable
953
814
 
954
- # Required. The set of parameters to tune.
955
- # Corresponds to the JSON property `params`
956
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec>]
957
- attr_accessor :params
815
+ # Represents a set of hyperparameters to optimize.
816
+ # Corresponds to the JSON property `hyperparameters`
817
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec]
818
+ attr_accessor :hyperparameters
958
819
 
959
- # Optional. How many training trials should be attempted to optimize
960
- # the specified hyperparameters.
961
- # Defaults to one.
962
- # Corresponds to the JSON property `maxTrials`
820
+ # Optional. The number of parameter server replicas to use for the training
821
+ # job. Each replica in the cluster will be of the type specified in
822
+ # `parameter_server_type`.
823
+ # This value can only be used when `scale_tier` is set to `CUSTOM`.If you
824
+ # set this value, you must also set `parameter_server_type`.
825
+ # Corresponds to the JSON property `parameterServerCount`
963
826
  # @return [Fixnum]
964
- attr_accessor :max_trials
827
+ attr_accessor :parameter_server_count
965
828
 
966
- # Optional. The number of training trials to run concurrently.
967
- # You can reduce the time it takes to perform hyperparameter tuning by adding
968
- # trials in parallel. However, each trail only benefits from the information
969
- # gained in completed trials. That means that a trial does not get access to
970
- # the results of trials running at the same time, which could reduce the
971
- # quality of the overall optimization.
972
- # Each trial will use the same scale tier and machine types.
973
- # Defaults to one.
974
- # Corresponds to the JSON property `maxParallelTrials`
829
+ # Required. The Google Cloud Storage location of the packages with
830
+ # the training program and any additional dependencies.
831
+ # Corresponds to the JSON property `packageUris`
832
+ # @return [Array<String>]
833
+ attr_accessor :package_uris
834
+
835
+ # Optional. The number of worker replicas to use for the training job. Each
836
+ # replica in the cluster will be of the type specified in `worker_type`.
837
+ # This value can only be used when `scale_tier` is set to `CUSTOM`. If you
838
+ # set this value, you must also set `worker_type`.
839
+ # Corresponds to the JSON property `workerCount`
975
840
  # @return [Fixnum]
976
- attr_accessor :max_parallel_trials
841
+ attr_accessor :worker_count
977
842
 
978
- # Required. The type of goal to use for tuning. Available types are
979
- # `MAXIMIZE` and `MINIMIZE`.
980
- # Defaults to `MAXIMIZE`.
981
- # Corresponds to the JSON property `goal`
843
+ # Optional. Specifies the type of virtual machine to use for your training
844
+ # job's master worker.
845
+ # The following types are supported:
846
+ # <dl>
847
+ # <dt>standard</dt>
848
+ # <dd>
849
+ # A basic machine configuration suitable for training simple models with
850
+ # small to moderate datasets.
851
+ # </dd>
852
+ # <dt>large_model</dt>
853
+ # <dd>
854
+ # A machine with a lot of memory, specially suited for parameter servers
855
+ # when your model is large (having many hidden layers or layers with very
856
+ # large numbers of nodes).
857
+ # </dd>
858
+ # <dt>complex_model_s</dt>
859
+ # <dd>
860
+ # A machine suitable for the master and workers of the cluster when your
861
+ # model requires more computation than the standard machine can handle
862
+ # satisfactorily.
863
+ # </dd>
864
+ # <dt>complex_model_m</dt>
865
+ # <dd>
866
+ # A machine with roughly twice the number of cores and roughly double the
867
+ # memory of <code suppresswarning="true">complex_model_s</code>.
868
+ # </dd>
869
+ # <dt>complex_model_l</dt>
870
+ # <dd>
871
+ # A machine with roughly twice the number of cores and roughly double the
872
+ # memory of <code suppresswarning="true">complex_model_m</code>.
873
+ # </dd>
874
+ # <dt>standard_gpu</dt>
875
+ # <dd>
876
+ # A machine equivalent to <code suppresswarning="true">standard</code> that
877
+ # also includes a
878
+ # <a href="/ml-engine/docs/how-tos/using-gpus">
879
+ # GPU that you can use in your trainer</a>.
880
+ # </dd>
881
+ # <dt>complex_model_m_gpu</dt>
882
+ # <dd>
883
+ # A machine equivalent to
884
+ # <code suppresswarning="true">coplex_model_m</code> that also includes
885
+ # four GPUs.
886
+ # </dd>
887
+ # </dl>
888
+ # You must set this value when `scaleTier` is set to `CUSTOM`.
889
+ # Corresponds to the JSON property `masterType`
982
890
  # @return [String]
983
- attr_accessor :goal
891
+ attr_accessor :master_type
984
892
 
985
- # Optional. The Tensorflow summary tag name to use for optimizing trials. For
986
- # current versions of Tensorflow, this tag name should exactly match what is
987
- # shown in Tensorboard, including all scopes. For versions of Tensorflow
988
- # prior to 0.12, this should be only the tag passed to tf.Summary.
989
- # By default, "training/hptuning/metric" will be used.
990
- # Corresponds to the JSON property `hyperparameterMetricTag`
893
+ # Optional. The Google Cloud ML runtime version to use for training. If not
894
+ # set, Google Cloud ML will choose the latest stable version.
895
+ # Corresponds to the JSON property `runtimeVersion`
896
+ # @return [String]
897
+ attr_accessor :runtime_version
898
+
899
+ # Required. The Python module name to run after installing the packages.
900
+ # Corresponds to the JSON property `pythonModule`
901
+ # @return [String]
902
+ attr_accessor :python_module
903
+
904
+ # Optional. Specifies the type of virtual machine to use for your training
905
+ # job's worker nodes.
906
+ # The supported values are the same as those described in the entry for
907
+ # `masterType`.
908
+ # This value must be present when `scaleTier` is set to `CUSTOM` and
909
+ # `workerCount` is greater than zero.
910
+ # Corresponds to the JSON property `workerType`
991
911
  # @return [String]
992
- attr_accessor :hyperparameter_metric_tag
912
+ attr_accessor :worker_type
993
913
 
994
- def initialize(**args)
995
- update!(**args)
996
- end
914
+ # Optional. Command line arguments to pass to the program.
915
+ # Corresponds to the JSON property `args`
916
+ # @return [Array<String>]
917
+ attr_accessor :args
997
918
 
998
- # Update properties of this object
999
- def update!(**args)
1000
- @params = args[:params] if args.key?(:params)
1001
- @max_trials = args[:max_trials] if args.key?(:max_trials)
1002
- @max_parallel_trials = args[:max_parallel_trials] if args.key?(:max_parallel_trials)
1003
- @goal = args[:goal] if args.key?(:goal)
1004
- @hyperparameter_metric_tag = args[:hyperparameter_metric_tag] if args.key?(:hyperparameter_metric_tag)
1005
- end
1006
- end
919
+ # Required. The Google Compute Engine region to run the training job in.
920
+ # Corresponds to the JSON property `region`
921
+ # @return [String]
922
+ attr_accessor :region
1007
923
 
1008
- # Response message for the ListJobs method.
1009
- class GoogleCloudMlV1ListJobsResponse
1010
- include Google::Apis::Core::Hashable
924
+ # Optional. Specifies the type of virtual machine to use for your training
925
+ # job's parameter server.
926
+ # The supported values are the same as those described in the entry for
927
+ # `master_type`.
928
+ # This value must be present when `scaleTier` is set to `CUSTOM` and
929
+ # `parameter_server_count` is greater than zero.
930
+ # Corresponds to the JSON property `parameterServerType`
931
+ # @return [String]
932
+ attr_accessor :parameter_server_type
1011
933
 
1012
- # The list of jobs.
1013
- # Corresponds to the JSON property `jobs`
1014
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Job>]
1015
- attr_accessor :jobs
934
+ # Required. Specifies the machine types, the number of replicas for workers
935
+ # and parameter servers.
936
+ # Corresponds to the JSON property `scaleTier`
937
+ # @return [String]
938
+ attr_accessor :scale_tier
1016
939
 
1017
- # Optional. Pass this token as the `page_token` field of the request for a
1018
- # subsequent call.
1019
- # Corresponds to the JSON property `nextPageToken`
940
+ # Optional. A Google Cloud Storage path in which to store training outputs
941
+ # and other data needed for training. This path is passed to your TensorFlow
942
+ # program as the 'job_dir' command-line argument. The benefit of specifying
943
+ # this field is that Cloud ML validates the path for use in training.
944
+ # Corresponds to the JSON property `jobDir`
1020
945
  # @return [String]
1021
- attr_accessor :next_page_token
946
+ attr_accessor :job_dir
1022
947
 
1023
948
  def initialize(**args)
1024
949
  update!(**args)
@@ -1026,106 +951,75 @@ module Google
1026
951
 
1027
952
  # Update properties of this object
1028
953
  def update!(**args)
1029
- @jobs = args[:jobs] if args.key?(:jobs)
1030
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
954
+ @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
955
+ @parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count)
956
+ @package_uris = args[:package_uris] if args.key?(:package_uris)
957
+ @worker_count = args[:worker_count] if args.key?(:worker_count)
958
+ @master_type = args[:master_type] if args.key?(:master_type)
959
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
960
+ @python_module = args[:python_module] if args.key?(:python_module)
961
+ @worker_type = args[:worker_type] if args.key?(:worker_type)
962
+ @args = args[:args] if args.key?(:args)
963
+ @region = args[:region] if args.key?(:region)
964
+ @parameter_server_type = args[:parameter_server_type] if args.key?(:parameter_server_type)
965
+ @scale_tier = args[:scale_tier] if args.key?(:scale_tier)
966
+ @job_dir = args[:job_dir] if args.key?(:job_dir)
1031
967
  end
1032
968
  end
1033
969
 
1034
- # Request message for the SetDefaultVersion request.
1035
- class GoogleCloudMlV1SetDefaultVersionRequest
970
+ # Represents a training or prediction job.
971
+ class GoogleCloudMlV1Job
1036
972
  include Google::Apis::Core::Hashable
1037
973
 
1038
- def initialize(**args)
1039
- update!(**args)
1040
- end
974
+ # Represents results of a prediction job.
975
+ # Corresponds to the JSON property `predictionOutput`
976
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput]
977
+ attr_accessor :prediction_output
1041
978
 
1042
- # Update properties of this object
1043
- def update!(**args)
1044
- end
1045
- end
979
+ # Represents results of a training job. Output only.
980
+ # Corresponds to the JSON property `trainingOutput`
981
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput]
982
+ attr_accessor :training_output
1046
983
 
1047
- # This resource represents a long-running operation that is the result of a
1048
- # network API call.
1049
- class GoogleLongrunningOperation
1050
- include Google::Apis::Core::Hashable
984
+ # Output only. When the job was created.
985
+ # Corresponds to the JSON property `createTime`
986
+ # @return [String]
987
+ attr_accessor :create_time
1051
988
 
1052
- # If the value is `false`, it means the operation is still in progress.
1053
- # If true, the operation is completed, and either `error` or `response` is
1054
- # available.
1055
- # Corresponds to the JSON property `done`
1056
- # @return [Boolean]
1057
- attr_accessor :done
1058
- alias_method :done?, :done
989
+ # Represents input parameters for a training job.
990
+ # Corresponds to the JSON property `trainingInput`
991
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput]
992
+ attr_accessor :training_input
1059
993
 
1060
- # The normal response of the operation in case of success. If the original
1061
- # method returns no data on success, such as `Delete`, the response is
1062
- # `google.protobuf.Empty`. If the original method is standard
1063
- # `Get`/`Create`/`Update`, the response should be the resource. For other
1064
- # methods, the response should have the type `XxxResponse`, where `Xxx`
1065
- # is the original method name. For example, if the original method name
1066
- # is `TakeSnapshot()`, the inferred response type is
1067
- # `TakeSnapshotResponse`.
1068
- # Corresponds to the JSON property `response`
1069
- # @return [Hash<String,Object>]
1070
- attr_accessor :response
994
+ # Represents input parameters for a prediction job.
995
+ # Corresponds to the JSON property `predictionInput`
996
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput]
997
+ attr_accessor :prediction_input
1071
998
 
1072
- # The server-assigned name, which is only unique within the same service that
1073
- # originally returns it. If you use the default HTTP mapping, the
1074
- # `name` should have the format of `operations/some/unique/name`.
1075
- # Corresponds to the JSON property `name`
999
+ # Output only. The detailed state of a job.
1000
+ # Corresponds to the JSON property `state`
1076
1001
  # @return [String]
1077
- attr_accessor :name
1002
+ attr_accessor :state
1078
1003
 
1079
- # The `Status` type defines a logical error model that is suitable for different
1080
- # programming environments, including REST APIs and RPC APIs. It is used by
1081
- # [gRPC](https://github.com/grpc). The error model is designed to be:
1082
- # - Simple to use and understand for most users
1083
- # - Flexible enough to meet unexpected needs
1084
- # # Overview
1085
- # The `Status` message contains three pieces of data: error code, error message,
1086
- # and error details. The error code should be an enum value of
1087
- # google.rpc.Code, but it may accept additional error codes if needed. The
1088
- # error message should be a developer-facing English message that helps
1089
- # developers *understand* and *resolve* the error. If a localized user-facing
1090
- # error message is needed, put the localized message in the error details or
1091
- # localize it in the client. The optional error details may contain arbitrary
1092
- # information about the error. There is a predefined set of error detail types
1093
- # in the package `google.rpc` which can be used for common error conditions.
1094
- # # Language mapping
1095
- # The `Status` message is the logical representation of the error model, but it
1096
- # is not necessarily the actual wire format. When the `Status` message is
1097
- # exposed in different client libraries and different wire protocols, it can be
1098
- # mapped differently. For example, it will likely be mapped to some exceptions
1099
- # in Java, but more likely mapped to some error codes in C.
1100
- # # Other uses
1101
- # The error model and the `Status` message can be used in a variety of
1102
- # environments, either with or without APIs, to provide a
1103
- # consistent developer experience across different environments.
1104
- # Example uses of this error model include:
1105
- # - Partial errors. If a service needs to return partial errors to the client,
1106
- # it may embed the `Status` in the normal response to indicate the partial
1107
- # errors.
1108
- # - Workflow errors. A typical workflow has multiple steps. Each step may
1109
- # have a `Status` message for error reporting purpose.
1110
- # - Batch operations. If a client uses batch request and batch response, the
1111
- # `Status` message should be used directly inside batch response, one for
1112
- # each error sub-response.
1113
- # - Asynchronous operations. If an API call embeds asynchronous operation
1114
- # results in its response, the status of those operations should be
1115
- # represented directly using the `Status` message.
1116
- # - Logging. If some API errors are stored in logs, the message `Status` could
1117
- # be used directly after any stripping needed for security/privacy reasons.
1118
- # Corresponds to the JSON property `error`
1119
- # @return [Google::Apis::MlV1::GoogleRpcStatus]
1120
- attr_accessor :error
1004
+ # Output only. The details of a failure or a cancellation.
1005
+ # Corresponds to the JSON property `errorMessage`
1006
+ # @return [String]
1007
+ attr_accessor :error_message
1121
1008
 
1122
- # Service-specific metadata associated with the operation. It typically
1123
- # contains progress information and common metadata such as create time.
1124
- # Some services might not provide such metadata. Any method that returns a
1125
- # long-running operation should document the metadata type, if any.
1126
- # Corresponds to the JSON property `metadata`
1127
- # @return [Hash<String,Object>]
1128
- attr_accessor :metadata
1009
+ # Required. The user-specified id of the job.
1010
+ # Corresponds to the JSON property `jobId`
1011
+ # @return [String]
1012
+ attr_accessor :job_id
1013
+
1014
+ # Output only. When the job processing was completed.
1015
+ # Corresponds to the JSON property `endTime`
1016
+ # @return [String]
1017
+ attr_accessor :end_time
1018
+
1019
+ # Output only. When the job processing was started.
1020
+ # Corresponds to the JSON property `startTime`
1021
+ # @return [String]
1022
+ attr_accessor :start_time
1129
1023
 
1130
1024
  def initialize(**args)
1131
1025
  update!(**args)
@@ -1133,61 +1027,60 @@ module Google
1133
1027
 
1134
1028
  # Update properties of this object
1135
1029
  def update!(**args)
1136
- @done = args[:done] if args.key?(:done)
1137
- @response = args[:response] if args.key?(:response)
1138
- @name = args[:name] if args.key?(:name)
1139
- @error = args[:error] if args.key?(:error)
1140
- @metadata = args[:metadata] if args.key?(:metadata)
1030
+ @prediction_output = args[:prediction_output] if args.key?(:prediction_output)
1031
+ @training_output = args[:training_output] if args.key?(:training_output)
1032
+ @create_time = args[:create_time] if args.key?(:create_time)
1033
+ @training_input = args[:training_input] if args.key?(:training_input)
1034
+ @prediction_input = args[:prediction_input] if args.key?(:prediction_input)
1035
+ @state = args[:state] if args.key?(:state)
1036
+ @error_message = args[:error_message] if args.key?(:error_message)
1037
+ @job_id = args[:job_id] if args.key?(:job_id)
1038
+ @end_time = args[:end_time] if args.key?(:end_time)
1039
+ @start_time = args[:start_time] if args.key?(:start_time)
1141
1040
  end
1142
1041
  end
1143
1042
 
1144
- # Represents a machine learning solution.
1145
- # A model can have multiple versions, each of which is a deployed, trained
1146
- # model ready to receive prediction requests. The model itself is just a
1147
- # container.
1148
- class GoogleCloudMlV1Model
1149
- include Google::Apis::Core::Hashable
1150
-
1151
- # Represents a version of the model.
1152
- # Each version is a trained model deployed in the cloud, ready to handle
1153
- # prediction requests. A model can have multiple versions. You can get
1154
- # information about all of the versions of a given model by calling
1155
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
1156
- # versions/list).
1157
- # Corresponds to the JSON property `defaultVersion`
1158
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
1159
- attr_accessor :default_version
1160
-
1161
- # Optional. The list of regions where the model is going to be deployed.
1162
- # Currently only one region per model is supported.
1163
- # Defaults to 'us-central1' if nothing is set.
1164
- # Note:
1165
- # * No matter where a model is deployed, it can always be accessed by
1166
- # users from anywhere, both for online and batch prediction.
1167
- # * The region for a batch prediction job is set by the region field when
1168
- # submitting the batch prediction job and does not take its value from
1169
- # this field.
1170
- # Corresponds to the JSON property `regions`
1171
- # @return [Array<String>]
1172
- attr_accessor :regions
1043
+ # Message that represents an arbitrary HTTP body. It should only be used for
1044
+ # payload formats that can't be represented as JSON, such as raw binary or
1045
+ # an HTML page.
1046
+ # This message can be used both in streaming and non-streaming API methods in
1047
+ # the request as well as the response.
1048
+ # It can be used as a top-level request field, which is convenient if one
1049
+ # wants to extract parameters from either the URL or HTTP template into the
1050
+ # request fields and also want access to the raw HTTP body.
1051
+ # Example:
1052
+ # message GetResourceRequest `
1053
+ # // A unique request id.
1054
+ # string request_id = 1;
1055
+ # // The raw HTTP body is bound to this field.
1056
+ # google.api.HttpBody http_body = 2;
1057
+ # `
1058
+ # service ResourceService `
1059
+ # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
1060
+ # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
1061
+ # `
1062
+ # Example with streaming methods:
1063
+ # service CaldavService `
1064
+ # rpc GetCalendar(stream google.api.HttpBody)
1065
+ # returns (stream google.api.HttpBody);
1066
+ # rpc UpdateCalendar(stream google.api.HttpBody)
1067
+ # returns (stream google.api.HttpBody);
1068
+ # `
1069
+ # Use of this type only changes how the request and response bodies are
1070
+ # handled, all other features will continue to work unchanged.
1071
+ class GoogleApiHttpBody
1072
+ include Google::Apis::Core::Hashable
1173
1073
 
1174
- # Required. The name specified for the model when it was created.
1175
- # The model name must be unique within the project it is created in.
1176
- # Corresponds to the JSON property `name`
1074
+ # HTTP body binary data.
1075
+ # Corresponds to the JSON property `data`
1076
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1177
1077
  # @return [String]
1178
- attr_accessor :name
1078
+ attr_accessor :data
1179
1079
 
1180
- # Optional. The description specified for the model when it was created.
1181
- # Corresponds to the JSON property `description`
1080
+ # The HTTP Content-Type string representing the content type of the body.
1081
+ # Corresponds to the JSON property `contentType`
1182
1082
  # @return [String]
1183
- attr_accessor :description
1184
-
1185
- # Optional. If true, enables StackDriver Logging for online prediction.
1186
- # Default is false.
1187
- # Corresponds to the JSON property `onlinePredictionLogging`
1188
- # @return [Boolean]
1189
- attr_accessor :online_prediction_logging
1190
- alias_method :online_prediction_logging?, :online_prediction_logging
1083
+ attr_accessor :content_type
1191
1084
 
1192
1085
  def initialize(**args)
1193
1086
  update!(**args)
@@ -1195,36 +1088,76 @@ module Google
1195
1088
 
1196
1089
  # Update properties of this object
1197
1090
  def update!(**args)
1198
- @default_version = args[:default_version] if args.key?(:default_version)
1199
- @regions = args[:regions] if args.key?(:regions)
1200
- @name = args[:name] if args.key?(:name)
1201
- @description = args[:description] if args.key?(:description)
1202
- @online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging)
1091
+ @data = args[:data] if args.key?(:data)
1092
+ @content_type = args[:content_type] if args.key?(:content_type)
1203
1093
  end
1204
1094
  end
1205
1095
 
1206
- # A generic empty message that you can re-use to avoid defining duplicated
1207
- # empty messages in your APIs. A typical example is to use it as the request
1208
- # or the response type of an API method. For instance:
1209
- # service Foo `
1210
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1211
- # `
1212
- # The JSON representation for `Empty` is empty JSON object ````.
1213
- class GoogleProtobufEmpty
1096
+ # Represents a version of the model.
1097
+ # Each version is a trained model deployed in the cloud, ready to handle
1098
+ # prediction requests. A model can have multiple versions. You can get
1099
+ # information about all of the versions of a given model by calling
1100
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
1101
+ # models.versions/list).
1102
+ class GoogleCloudMlV1beta1Version
1214
1103
  include Google::Apis::Core::Hashable
1215
1104
 
1216
- def initialize(**args)
1217
- update!(**args)
1218
- end
1105
+ # Output only. The time the version was last used for prediction.
1106
+ # Corresponds to the JSON property `lastUseTime`
1107
+ # @return [String]
1108
+ attr_accessor :last_use_time
1219
1109
 
1220
- # Update properties of this object
1221
- def update!(**args)
1222
- end
1223
- end
1110
+ # Optional. The Google Cloud ML runtime version to use for this deployment.
1111
+ # If not set, Google Cloud ML will choose a version.
1112
+ # Corresponds to the JSON property `runtimeVersion`
1113
+ # @return [String]
1114
+ attr_accessor :runtime_version
1224
1115
 
1225
- # Request message for the CancelJob method.
1226
- class GoogleCloudMlV1CancelJobRequest
1227
- include Google::Apis::Core::Hashable
1116
+ # Optional. The description specified for the version when it was created.
1117
+ # Corresponds to the JSON property `description`
1118
+ # @return [String]
1119
+ attr_accessor :description
1120
+
1121
+ # Required. The Google Cloud Storage location of the trained model used to
1122
+ # create the version. See the
1123
+ # [overview of model deployment](/ml-engine/docs/concepts/deployment-overview)
1124
+ # for
1125
+ # more informaiton.
1126
+ # When passing Version to
1127
+ # [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects.
1128
+ # models.versions/create)
1129
+ # the model service uses the specified location as the source of the model.
1130
+ # Once deployed, the model version is hosted by the prediction service, so
1131
+ # this location is useful only as a historical record.
1132
+ # Corresponds to the JSON property `deploymentUri`
1133
+ # @return [String]
1134
+ attr_accessor :deployment_uri
1135
+
1136
+ # Output only. If true, this version will be used to handle prediction
1137
+ # requests that do not specify a version.
1138
+ # You can change the default version by calling
1139
+ # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/
1140
+ # projects.models.versions/setDefault).
1141
+ # Corresponds to the JSON property `isDefault`
1142
+ # @return [Boolean]
1143
+ attr_accessor :is_default
1144
+ alias_method :is_default?, :is_default
1145
+
1146
+ # Output only. The time the version was created.
1147
+ # Corresponds to the JSON property `createTime`
1148
+ # @return [String]
1149
+ attr_accessor :create_time
1150
+
1151
+ # Options for manually scaling a model.
1152
+ # Corresponds to the JSON property `manualScaling`
1153
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling]
1154
+ attr_accessor :manual_scaling
1155
+
1156
+ # Required.The name specified for the version when it was created.
1157
+ # The version name must be unique within the model it is created in.
1158
+ # Corresponds to the JSON property `name`
1159
+ # @return [String]
1160
+ attr_accessor :name
1228
1161
 
1229
1162
  def initialize(**args)
1230
1163
  update!(**args)
@@ -1232,23 +1165,30 @@ module Google
1232
1165
 
1233
1166
  # Update properties of this object
1234
1167
  def update!(**args)
1168
+ @last_use_time = args[:last_use_time] if args.key?(:last_use_time)
1169
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
1170
+ @description = args[:description] if args.key?(:description)
1171
+ @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri)
1172
+ @is_default = args[:is_default] if args.key?(:is_default)
1173
+ @create_time = args[:create_time] if args.key?(:create_time)
1174
+ @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
1175
+ @name = args[:name] if args.key?(:name)
1235
1176
  end
1236
1177
  end
1237
1178
 
1238
- # Response message for the ListVersions method.
1239
- class GoogleCloudMlV1ListVersionsResponse
1179
+ # Returns service account information associated with a project.
1180
+ class GoogleCloudMlV1GetConfigResponse
1240
1181
  include Google::Apis::Core::Hashable
1241
1182
 
1242
- # Optional. Pass this token as the `page_token` field of the request for a
1243
- # subsequent call.
1244
- # Corresponds to the JSON property `nextPageToken`
1245
- # @return [String]
1246
- attr_accessor :next_page_token
1183
+ # The project number for `service_account`.
1184
+ # Corresponds to the JSON property `serviceAccountProject`
1185
+ # @return [Fixnum]
1186
+ attr_accessor :service_account_project
1247
1187
 
1248
- # The list of versions.
1249
- # Corresponds to the JSON property `versions`
1250
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Version>]
1251
- attr_accessor :versions
1188
+ # The service account Cloud ML uses to access resources in the project.
1189
+ # Corresponds to the JSON property `serviceAccount`
1190
+ # @return [String]
1191
+ attr_accessor :service_account
1252
1192
 
1253
1193
  def initialize(**args)
1254
1194
  update!(**args)
@@ -1256,22 +1196,37 @@ module Google
1256
1196
 
1257
1197
  # Update properties of this object
1258
1198
  def update!(**args)
1259
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1260
- @versions = args[:versions] if args.key?(:versions)
1199
+ @service_account_project = args[:service_account_project] if args.key?(:service_account_project)
1200
+ @service_account = args[:service_account] if args.key?(:service_account)
1261
1201
  end
1262
1202
  end
1263
1203
 
1264
- # Options for manually scaling a model.
1265
- class GoogleCloudMlV1beta1ManualScaling
1204
+ # Represents the result of a single hyperparameter tuning trial from a
1205
+ # training job. The TrainingOutput object that is returned on successful
1206
+ # completion of a training job with hyperparameter tuning includes a list
1207
+ # of HyperparameterOutput objects, one for each successful trial.
1208
+ class GoogleCloudMlV1HyperparameterOutput
1266
1209
  include Google::Apis::Core::Hashable
1267
1210
 
1268
- # The number of nodes to allocate for this model. These nodes are always up,
1269
- # starting from the time the model is deployed, so the cost of operating
1270
- # this model will be proportional to nodes * number of hours since
1271
- # deployment.
1272
- # Corresponds to the JSON property `nodes`
1273
- # @return [Fixnum]
1274
- attr_accessor :nodes
1211
+ # The hyperparameters given to this trial.
1212
+ # Corresponds to the JSON property `hyperparameters`
1213
+ # @return [Hash<String,String>]
1214
+ attr_accessor :hyperparameters
1215
+
1216
+ # The trial id for these results.
1217
+ # Corresponds to the JSON property `trialId`
1218
+ # @return [String]
1219
+ attr_accessor :trial_id
1220
+
1221
+ # All recorded object metrics for this trial.
1222
+ # Corresponds to the JSON property `allMetrics`
1223
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>]
1224
+ attr_accessor :all_metrics
1225
+
1226
+ # An observed value of a metric.
1227
+ # Corresponds to the JSON property `finalMetric`
1228
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric]
1229
+ attr_accessor :final_metric
1275
1230
 
1276
1231
  def initialize(**args)
1277
1232
  update!(**args)
@@ -1279,69 +1234,36 @@ module Google
1279
1234
 
1280
1235
  # Update properties of this object
1281
1236
  def update!(**args)
1282
- @nodes = args[:nodes] if args.key?(:nodes)
1237
+ @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
1238
+ @trial_id = args[:trial_id] if args.key?(:trial_id)
1239
+ @all_metrics = args[:all_metrics] if args.key?(:all_metrics)
1240
+ @final_metric = args[:final_metric] if args.key?(:final_metric)
1283
1241
  end
1284
1242
  end
1285
1243
 
1286
- # The `Status` type defines a logical error model that is suitable for different
1287
- # programming environments, including REST APIs and RPC APIs. It is used by
1288
- # [gRPC](https://github.com/grpc). The error model is designed to be:
1289
- # - Simple to use and understand for most users
1290
- # - Flexible enough to meet unexpected needs
1291
- # # Overview
1292
- # The `Status` message contains three pieces of data: error code, error message,
1293
- # and error details. The error code should be an enum value of
1294
- # google.rpc.Code, but it may accept additional error codes if needed. The
1295
- # error message should be a developer-facing English message that helps
1296
- # developers *understand* and *resolve* the error. If a localized user-facing
1297
- # error message is needed, put the localized message in the error details or
1298
- # localize it in the client. The optional error details may contain arbitrary
1299
- # information about the error. There is a predefined set of error detail types
1300
- # in the package `google.rpc` which can be used for common error conditions.
1301
- # # Language mapping
1302
- # The `Status` message is the logical representation of the error model, but it
1303
- # is not necessarily the actual wire format. When the `Status` message is
1304
- # exposed in different client libraries and different wire protocols, it can be
1305
- # mapped differently. For example, it will likely be mapped to some exceptions
1306
- # in Java, but more likely mapped to some error codes in C.
1307
- # # Other uses
1308
- # The error model and the `Status` message can be used in a variety of
1309
- # environments, either with or without APIs, to provide a
1310
- # consistent developer experience across different environments.
1311
- # Example uses of this error model include:
1312
- # - Partial errors. If a service needs to return partial errors to the client,
1313
- # it may embed the `Status` in the normal response to indicate the partial
1314
- # errors.
1315
- # - Workflow errors. A typical workflow has multiple steps. Each step may
1316
- # have a `Status` message for error reporting purpose.
1317
- # - Batch operations. If a client uses batch request and batch response, the
1318
- # `Status` message should be used directly inside batch response, one for
1319
- # each error sub-response.
1320
- # - Asynchronous operations. If an API call embeds asynchronous operation
1321
- # results in its response, the status of those operations should be
1322
- # represented directly using the `Status` message.
1323
- # - Logging. If some API errors are stored in logs, the message `Status` could
1324
- # be used directly after any stripping needed for security/privacy reasons.
1325
- class GoogleRpcStatus
1244
+ # Represents results of a prediction job.
1245
+ class GoogleCloudMlV1PredictionOutput
1326
1246
  include Google::Apis::Core::Hashable
1327
1247
 
1328
- # A list of messages that carry the error details. There will be a
1329
- # common set of message types for APIs to use.
1330
- # Corresponds to the JSON property `details`
1331
- # @return [Array<Hash<String,Object>>]
1332
- attr_accessor :details
1248
+ # The output Google Cloud Storage location provided at the job creation time.
1249
+ # Corresponds to the JSON property `outputPath`
1250
+ # @return [String]
1251
+ attr_accessor :output_path
1333
1252
 
1334
- # The status code, which should be an enum value of google.rpc.Code.
1335
- # Corresponds to the JSON property `code`
1253
+ # Node hours used by the batch prediction job.
1254
+ # Corresponds to the JSON property `nodeHours`
1255
+ # @return [Float]
1256
+ attr_accessor :node_hours
1257
+
1258
+ # The number of generated predictions.
1259
+ # Corresponds to the JSON property `predictionCount`
1336
1260
  # @return [Fixnum]
1337
- attr_accessor :code
1261
+ attr_accessor :prediction_count
1338
1262
 
1339
- # A developer-facing error message, which should be in English. Any
1340
- # user-facing error message should be localized and sent in the
1341
- # google.rpc.Status.details field, or localized by the client.
1342
- # Corresponds to the JSON property `message`
1343
- # @return [String]
1344
- attr_accessor :message
1263
+ # The number of data instances which resulted in errors.
1264
+ # Corresponds to the JSON property `errorCount`
1265
+ # @return [Fixnum]
1266
+ attr_accessor :error_count
1345
1267
 
1346
1268
  def initialize(**args)
1347
1269
  update!(**args)
@@ -1349,148 +1271,86 @@ module Google
1349
1271
 
1350
1272
  # Update properties of this object
1351
1273
  def update!(**args)
1352
- @details = args[:details] if args.key?(:details)
1353
- @code = args[:code] if args.key?(:code)
1354
- @message = args[:message] if args.key?(:message)
1274
+ @output_path = args[:output_path] if args.key?(:output_path)
1275
+ @node_hours = args[:node_hours] if args.key?(:node_hours)
1276
+ @prediction_count = args[:prediction_count] if args.key?(:prediction_count)
1277
+ @error_count = args[:error_count] if args.key?(:error_count)
1355
1278
  end
1356
1279
  end
1357
1280
 
1358
- # Represents input parameters for a training job.
1359
- class GoogleCloudMlV1TrainingInput
1281
+ # The response message for Operations.ListOperations.
1282
+ class GoogleLongrunningListOperationsResponse
1360
1283
  include Google::Apis::Core::Hashable
1361
1284
 
1362
- # Required. Specifies the machine types, the number of replicas for workers
1363
- # and parameter servers.
1364
- # Corresponds to the JSON property `scaleTier`
1285
+ # The standard List next-page token.
1286
+ # Corresponds to the JSON property `nextPageToken`
1365
1287
  # @return [String]
1366
- attr_accessor :scale_tier
1288
+ attr_accessor :next_page_token
1367
1289
 
1368
- # Optional. A Google Cloud Storage path in which to store training outputs
1369
- # and other data needed for training. This path is passed to your TensorFlow
1370
- # program as the 'job_dir' command-line argument. The benefit of specifying
1371
- # this field is that Cloud ML validates the path for use in training.
1372
- # Corresponds to the JSON property `jobDir`
1373
- # @return [String]
1374
- attr_accessor :job_dir
1290
+ # A list of operations that matches the specified filter in the request.
1291
+ # Corresponds to the JSON property `operations`
1292
+ # @return [Array<Google::Apis::MlV1::GoogleLongrunningOperation>]
1293
+ attr_accessor :operations
1375
1294
 
1376
- # Represents a set of hyperparameters to optimize.
1377
- # Corresponds to the JSON property `hyperparameters`
1378
- # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec]
1379
- attr_accessor :hyperparameters
1295
+ def initialize(**args)
1296
+ update!(**args)
1297
+ end
1380
1298
 
1381
- # Optional. The number of parameter server replicas to use for the training
1382
- # job. Each replica in the cluster will be of the type specified in
1383
- # `parameter_server_type`.
1384
- # This value can only be used when `scale_tier` is set to `CUSTOM`.If you
1385
- # set this value, you must also set `parameter_server_type`.
1386
- # Corresponds to the JSON property `parameterServerCount`
1387
- # @return [String]
1388
- attr_accessor :parameter_server_count
1299
+ # Update properties of this object
1300
+ def update!(**args)
1301
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1302
+ @operations = args[:operations] if args.key?(:operations)
1303
+ end
1304
+ end
1389
1305
 
1390
- # Required. The Google Cloud Storage location of the packages with
1391
- # the training program and any additional dependencies.
1392
- # Corresponds to the JSON property `packageUris`
1393
- # @return [Array<String>]
1394
- attr_accessor :package_uris
1306
+ # Options for manually scaling a model.
1307
+ class GoogleCloudMlV1ManualScaling
1308
+ include Google::Apis::Core::Hashable
1395
1309
 
1396
- # Optional. The number of worker replicas to use for the training job. Each
1397
- # replica in the cluster will be of the type specified in `worker_type`.
1398
- # This value can only be used when `scale_tier` is set to `CUSTOM`. If you
1399
- # set this value, you must also set `worker_type`.
1400
- # Corresponds to the JSON property `workerCount`
1401
- # @return [String]
1402
- attr_accessor :worker_count
1310
+ # The number of nodes to allocate for this model. These nodes are always up,
1311
+ # starting from the time the model is deployed, so the cost of operating
1312
+ # this model will be proportional to nodes * number of hours since
1313
+ # deployment.
1314
+ # Corresponds to the JSON property `nodes`
1315
+ # @return [Fixnum]
1316
+ attr_accessor :nodes
1403
1317
 
1404
- # Optional. Specifies the type of virtual machine to use for your training
1405
- # job's master worker.
1406
- # The following types are supported:
1407
- # <dl>
1408
- # <dt>standard</dt>
1409
- # <dd>
1410
- # A basic machine configuration suitable for training simple models with
1411
- # small to moderate datasets.
1412
- # </dd>
1413
- # <dt>large_model</dt>
1414
- # <dd>
1415
- # A machine with a lot of memory, specially suited for parameter servers
1416
- # when your model is large (having many hidden layers or layers with very
1417
- # large numbers of nodes).
1418
- # </dd>
1419
- # <dt>complex_model_s</dt>
1420
- # <dd>
1421
- # A machine suitable for the master and workers of the cluster when your
1422
- # model requires more computation than the standard machine can handle
1423
- # satisfactorily.
1424
- # </dd>
1425
- # <dt>complex_model_m</dt>
1426
- # <dd>
1427
- # A machine with roughly twice the number of cores and roughly double the
1428
- # memory of <code suppresswarning="true">complex_model_s</code>.
1429
- # </dd>
1430
- # <dt>complex_model_l</dt>
1431
- # <dd>
1432
- # A machine with roughly twice the number of cores and roughly double the
1433
- # memory of <code suppresswarning="true">complex_model_m</code>.
1434
- # </dd>
1435
- # <dt>standard_gpu</dt>
1436
- # <dd>
1437
- # A machine equivalent to <code suppresswarning="true">standard</code> that
1438
- # also includes a
1439
- # <a href="/ml-engine/docs/how-tos/using-gpus">
1440
- # GPU that you can use in your trainer</a>.
1441
- # </dd>
1442
- # <dt>complex_model_m_gpu</dt>
1443
- # <dd>
1444
- # A machine equivalent to
1445
- # <code suppresswarning="true">coplex_model_m</code> that also includes
1446
- # four GPUs.
1447
- # </dd>
1448
- # </dl>
1449
- # You must set this value when `scaleTier` is set to `CUSTOM`.
1450
- # Corresponds to the JSON property `masterType`
1451
- # @return [String]
1452
- attr_accessor :master_type
1318
+ def initialize(**args)
1319
+ update!(**args)
1320
+ end
1453
1321
 
1454
- # Optional. The Google Cloud ML runtime version to use for training. If not
1455
- # set, Google Cloud ML will choose the latest stable version.
1456
- # Corresponds to the JSON property `runtimeVersion`
1457
- # @return [String]
1458
- attr_accessor :runtime_version
1322
+ # Update properties of this object
1323
+ def update!(**args)
1324
+ @nodes = args[:nodes] if args.key?(:nodes)
1325
+ end
1326
+ end
1459
1327
 
1460
- # Required. The Python module name to run after installing the packages.
1461
- # Corresponds to the JSON property `pythonModule`
1462
- # @return [String]
1463
- attr_accessor :python_module
1328
+ # Represents results of a training job. Output only.
1329
+ class GoogleCloudMlV1TrainingOutput
1330
+ include Google::Apis::Core::Hashable
1464
1331
 
1465
- # Required. The Google Compute Engine region to run the training job in.
1466
- # Corresponds to the JSON property `region`
1467
- # @return [String]
1468
- attr_accessor :region
1332
+ # Results for individual Hyperparameter trials.
1333
+ # Only set for hyperparameter tuning jobs.
1334
+ # Corresponds to the JSON property `trials`
1335
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput>]
1336
+ attr_accessor :trials
1469
1337
 
1470
- # Optional. Command line arguments to pass to the program.
1471
- # Corresponds to the JSON property `args`
1472
- # @return [Array<String>]
1473
- attr_accessor :args
1338
+ # The number of hyperparameter tuning trials that completed successfully.
1339
+ # Only set for hyperparameter tuning jobs.
1340
+ # Corresponds to the JSON property `completedTrialCount`
1341
+ # @return [Fixnum]
1342
+ attr_accessor :completed_trial_count
1474
1343
 
1475
- # Optional. Specifies the type of virtual machine to use for your training
1476
- # job's worker nodes.
1477
- # The supported values are the same as those described in the entry for
1478
- # `masterType`.
1479
- # This value must be present when `scaleTier` is set to `CUSTOM` and
1480
- # `workerCount` is greater than zero.
1481
- # Corresponds to the JSON property `workerType`
1482
- # @return [String]
1483
- attr_accessor :worker_type
1344
+ # Whether this job is a hyperparameter tuning job.
1345
+ # Corresponds to the JSON property `isHyperparameterTuningJob`
1346
+ # @return [Boolean]
1347
+ attr_accessor :is_hyperparameter_tuning_job
1348
+ alias_method :is_hyperparameter_tuning_job?, :is_hyperparameter_tuning_job
1484
1349
 
1485
- # Optional. Specifies the type of virtual machine to use for your training
1486
- # job's parameter server.
1487
- # The supported values are the same as those described in the entry for
1488
- # `master_type`.
1489
- # This value must be present when `scaleTier` is set to `CUSTOM` and
1490
- # `parameter_server_count` is greater than zero.
1491
- # Corresponds to the JSON property `parameterServerType`
1492
- # @return [String]
1493
- attr_accessor :parameter_server_type
1350
+ # The amount of ML units consumed by the job.
1351
+ # Corresponds to the JSON property `consumedMLUnits`
1352
+ # @return [Float]
1353
+ attr_accessor :consumed_ml_units
1494
1354
 
1495
1355
  def initialize(**args)
1496
1356
  update!(**args)
@@ -1498,36 +1358,225 @@ module Google
1498
1358
 
1499
1359
  # Update properties of this object
1500
1360
  def update!(**args)
1501
- @scale_tier = args[:scale_tier] if args.key?(:scale_tier)
1502
- @job_dir = args[:job_dir] if args.key?(:job_dir)
1503
- @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
1504
- @parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count)
1505
- @package_uris = args[:package_uris] if args.key?(:package_uris)
1506
- @worker_count = args[:worker_count] if args.key?(:worker_count)
1507
- @master_type = args[:master_type] if args.key?(:master_type)
1508
- @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
1509
- @python_module = args[:python_module] if args.key?(:python_module)
1510
- @region = args[:region] if args.key?(:region)
1511
- @args = args[:args] if args.key?(:args)
1512
- @worker_type = args[:worker_type] if args.key?(:worker_type)
1513
- @parameter_server_type = args[:parameter_server_type] if args.key?(:parameter_server_type)
1361
+ @trials = args[:trials] if args.key?(:trials)
1362
+ @completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count)
1363
+ @is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job)
1364
+ @consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units)
1514
1365
  end
1515
1366
  end
1516
1367
 
1517
- # Response message for the ListModels method.
1518
- class GoogleCloudMlV1ListModelsResponse
1368
+ # Request for predictions to be issued against a trained model.
1369
+ # The body of the request is a single JSON object with a single top-level
1370
+ # field:
1371
+ # <dl>
1372
+ # <dt>instances</dt>
1373
+ # <dd>A JSON array containing values representing the instances to use for
1374
+ # prediction.</dd>
1375
+ # </dl>
1376
+ # The structure of each element of the instances list is determined by your
1377
+ # model's input definition. Instances can include named inputs or can contain
1378
+ # only unlabeled values.
1379
+ # Not all data includes named inputs. Some instances will be simple
1380
+ # JSON values (boolean, number, or string). However, instances are often lists
1381
+ # of simple values, or complex nested lists. Here are some examples of request
1382
+ # bodies:
1383
+ # CSV data with each row encoded as a string value:
1384
+ # <pre>
1385
+ # `"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]`
1386
+ # </pre>
1387
+ # Plain text:
1388
+ # <pre>
1389
+ # `"instances": ["the quick brown fox", "la bruja le dio"]`
1390
+ # </pre>
1391
+ # Sentences encoded as lists of words (vectors of strings):
1392
+ # <pre>
1393
+ # `
1394
+ # "instances": [
1395
+ # ["the","quick","brown"],
1396
+ # ["la","bruja","le"],
1397
+ # ...
1398
+ # ]
1399
+ # `
1400
+ # </pre>
1401
+ # Floating point scalar values:
1402
+ # <pre>
1403
+ # `"instances": [0.0, 1.1, 2.2]`
1404
+ # </pre>
1405
+ # Vectors of integers:
1406
+ # <pre>
1407
+ # `
1408
+ # "instances": [
1409
+ # [0, 1, 2],
1410
+ # [3, 4, 5],
1411
+ # ...
1412
+ # ]
1413
+ # `
1414
+ # </pre>
1415
+ # Tensors (in this case, two-dimensional tensors):
1416
+ # <pre>
1417
+ # `
1418
+ # "instances": [
1419
+ # [
1420
+ # [0, 1, 2],
1421
+ # [3, 4, 5]
1422
+ # ],
1423
+ # ...
1424
+ # ]
1425
+ # `
1426
+ # </pre>
1427
+ # Images can be represented different ways. In this encoding scheme the first
1428
+ # two dimensions represent the rows and columns of the image, and the third
1429
+ # contains lists (vectors) of the R, G, and B values for each pixel.
1430
+ # <pre>
1431
+ # `
1432
+ # "instances": [
1433
+ # [
1434
+ # [
1435
+ # [138, 30, 66],
1436
+ # [130, 20, 56],
1437
+ # ...
1438
+ # ],
1439
+ # [
1440
+ # [126, 38, 61],
1441
+ # [122, 24, 57],
1442
+ # ...
1443
+ # ],
1444
+ # ...
1445
+ # ],
1446
+ # ...
1447
+ # ]
1448
+ # `
1449
+ # </pre>
1450
+ # JSON strings must be encoded as UTF-8. To send binary data, you must
1451
+ # base64-encode the data and mark it as binary. To mark a JSON string
1452
+ # as binary, replace it with a JSON object with a single attribute named `b64`:
1453
+ # <pre>`"b64": "..."` </pre>
1454
+ # For example:
1455
+ # Two Serialized tf.Examples (fake data, for illustrative purposes only):
1456
+ # <pre>
1457
+ # `"instances": [`"b64": "X5ad6u"`, `"b64": "IA9j4nx"`]`
1458
+ # </pre>
1459
+ # Two JPEG image byte strings (fake data, for illustrative purposes only):
1460
+ # <pre>
1461
+ # `"instances": [`"b64": "ASa8asdf"`, `"b64": "JLK7ljk3"`]`
1462
+ # </pre>
1463
+ # If your data includes named references, format each instance as a JSON object
1464
+ # with the named references as the keys:
1465
+ # JSON input data to be preprocessed:
1466
+ # <pre>
1467
+ # `
1468
+ # "instances": [
1469
+ # `
1470
+ # "a": 1.0,
1471
+ # "b": true,
1472
+ # "c": "x"
1473
+ # `,
1474
+ # `
1475
+ # "a": -2.0,
1476
+ # "b": false,
1477
+ # "c": "y"
1478
+ # `
1479
+ # ]
1480
+ # `
1481
+ # </pre>
1482
+ # Some models have an underlying TensorFlow graph that accepts multiple input
1483
+ # tensors. In this case, you should use the names of JSON name/value pairs to
1484
+ # identify the input tensors, as shown in the following exmaples:
1485
+ # For a graph with input tensor aliases "tag" (string) and "image"
1486
+ # (base64-encoded string):
1487
+ # <pre>
1488
+ # `
1489
+ # "instances": [
1490
+ # `
1491
+ # "tag": "beach",
1492
+ # "image": `"b64": "ASa8asdf"`
1493
+ # `,
1494
+ # `
1495
+ # "tag": "car",
1496
+ # "image": `"b64": "JLK7ljk3"`
1497
+ # `
1498
+ # ]
1499
+ # `
1500
+ # </pre>
1501
+ # For a graph with input tensor aliases "tag" (string) and "image"
1502
+ # (3-dimensional array of 8-bit ints):
1503
+ # <pre>
1504
+ # `
1505
+ # "instances": [
1506
+ # `
1507
+ # "tag": "beach",
1508
+ # "image": [
1509
+ # [
1510
+ # [138, 30, 66],
1511
+ # [130, 20, 56],
1512
+ # ...
1513
+ # ],
1514
+ # [
1515
+ # [126, 38, 61],
1516
+ # [122, 24, 57],
1517
+ # ...
1518
+ # ],
1519
+ # ...
1520
+ # ]
1521
+ # `,
1522
+ # `
1523
+ # "tag": "car",
1524
+ # "image": [
1525
+ # [
1526
+ # [255, 0, 102],
1527
+ # [255, 0, 97],
1528
+ # ...
1529
+ # ],
1530
+ # [
1531
+ # [254, 1, 101],
1532
+ # [254, 2, 93],
1533
+ # ...
1534
+ # ],
1535
+ # ...
1536
+ # ]
1537
+ # `,
1538
+ # ...
1539
+ # ]
1540
+ # `
1541
+ # </pre>
1542
+ # If the call is successful, the response body will contain one prediction
1543
+ # entry per instance in the request body. If prediction fails for any
1544
+ # instance, the response body will contain no predictions and will contian
1545
+ # a single error entry instead.
1546
+ class GoogleCloudMlV1PredictRequest
1519
1547
  include Google::Apis::Core::Hashable
1520
1548
 
1521
- # Optional. Pass this token as the `page_token` field of the request for a
1522
- # subsequent call.
1523
- # Corresponds to the JSON property `nextPageToken`
1524
- # @return [String]
1525
- attr_accessor :next_page_token
1526
-
1527
- # The list of models.
1528
- # Corresponds to the JSON property `models`
1529
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Model>]
1530
- attr_accessor :models
1549
+ # Message that represents an arbitrary HTTP body. It should only be used for
1550
+ # payload formats that can't be represented as JSON, such as raw binary or
1551
+ # an HTML page.
1552
+ # This message can be used both in streaming and non-streaming API methods in
1553
+ # the request as well as the response.
1554
+ # It can be used as a top-level request field, which is convenient if one
1555
+ # wants to extract parameters from either the URL or HTTP template into the
1556
+ # request fields and also want access to the raw HTTP body.
1557
+ # Example:
1558
+ # message GetResourceRequest `
1559
+ # // A unique request id.
1560
+ # string request_id = 1;
1561
+ # // The raw HTTP body is bound to this field.
1562
+ # google.api.HttpBody http_body = 2;
1563
+ # `
1564
+ # service ResourceService `
1565
+ # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
1566
+ # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
1567
+ # `
1568
+ # Example with streaming methods:
1569
+ # service CaldavService `
1570
+ # rpc GetCalendar(stream google.api.HttpBody)
1571
+ # returns (stream google.api.HttpBody);
1572
+ # rpc UpdateCalendar(stream google.api.HttpBody)
1573
+ # returns (stream google.api.HttpBody);
1574
+ # `
1575
+ # Use of this type only changes how the request and response bodies are
1576
+ # handled, all other features will continue to work unchanged.
1577
+ # Corresponds to the JSON property `httpBody`
1578
+ # @return [Google::Apis::MlV1::GoogleApiHttpBody]
1579
+ attr_accessor :http_body
1531
1580
 
1532
1581
  def initialize(**args)
1533
1582
  update!(**args)
@@ -1535,64 +1584,23 @@ module Google
1535
1584
 
1536
1585
  # Update properties of this object
1537
1586
  def update!(**args)
1538
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1539
- @models = args[:models] if args.key?(:models)
1587
+ @http_body = args[:http_body] if args.key?(:http_body)
1540
1588
  end
1541
1589
  end
1542
1590
 
1543
- # Represents a training or prediction job.
1544
- class GoogleCloudMlV1Job
1591
+ # An observed value of a metric.
1592
+ class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
1545
1593
  include Google::Apis::Core::Hashable
1546
1594
 
1547
- # Output only. When the job processing was completed.
1548
- # Corresponds to the JSON property `endTime`
1549
- # @return [String]
1550
- attr_accessor :end_time
1551
-
1552
- # Output only. When the job processing was started.
1553
- # Corresponds to the JSON property `startTime`
1554
- # @return [String]
1555
- attr_accessor :start_time
1556
-
1557
- # Represents results of a prediction job.
1558
- # Corresponds to the JSON property `predictionOutput`
1559
- # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput]
1560
- attr_accessor :prediction_output
1561
-
1562
- # Represents results of a training job. Output only.
1563
- # Corresponds to the JSON property `trainingOutput`
1564
- # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput]
1565
- attr_accessor :training_output
1566
-
1567
- # Output only. When the job was created.
1568
- # Corresponds to the JSON property `createTime`
1569
- # @return [String]
1570
- attr_accessor :create_time
1571
-
1572
- # Represents input parameters for a training job.
1573
- # Corresponds to the JSON property `trainingInput`
1574
- # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput]
1575
- attr_accessor :training_input
1576
-
1577
- # Output only. The detailed state of a job.
1578
- # Corresponds to the JSON property `state`
1579
- # @return [String]
1580
- attr_accessor :state
1581
-
1582
- # Represents input parameters for a prediction job.
1583
- # Corresponds to the JSON property `predictionInput`
1584
- # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput]
1585
- attr_accessor :prediction_input
1586
-
1587
- # Output only. The details of a failure or a cancellation.
1588
- # Corresponds to the JSON property `errorMessage`
1589
- # @return [String]
1590
- attr_accessor :error_message
1595
+ # The global training step for this metric.
1596
+ # Corresponds to the JSON property `trainingStep`
1597
+ # @return [Fixnum]
1598
+ attr_accessor :training_step
1591
1599
 
1592
- # Required. The user-specified id of the job.
1593
- # Corresponds to the JSON property `jobId`
1594
- # @return [String]
1595
- attr_accessor :job_id
1600
+ # The objective value at this training step.
1601
+ # Corresponds to the JSON property `objectiveValue`
1602
+ # @return [Float]
1603
+ attr_accessor :objective_value
1596
1604
 
1597
1605
  def initialize(**args)
1598
1606
  update!(**args)
@@ -1600,16 +1608,8 @@ module Google
1600
1608
 
1601
1609
  # Update properties of this object
1602
1610
  def update!(**args)
1603
- @end_time = args[:end_time] if args.key?(:end_time)
1604
- @start_time = args[:start_time] if args.key?(:start_time)
1605
- @prediction_output = args[:prediction_output] if args.key?(:prediction_output)
1606
- @training_output = args[:training_output] if args.key?(:training_output)
1607
- @create_time = args[:create_time] if args.key?(:create_time)
1608
- @training_input = args[:training_input] if args.key?(:training_input)
1609
- @state = args[:state] if args.key?(:state)
1610
- @prediction_input = args[:prediction_input] if args.key?(:prediction_input)
1611
- @error_message = args[:error_message] if args.key?(:error_message)
1612
- @job_id = args[:job_id] if args.key?(:job_id)
1611
+ @training_step = args[:training_step] if args.key?(:training_step)
1612
+ @objective_value = args[:objective_value] if args.key?(:objective_value)
1613
1613
  end
1614
1614
  end
1615
1615
  end