google-api-client 0.11.3 → 0.12.0

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