google-api-client 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/api_names.yaml +945 -41609
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  13. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  14. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  17. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  18. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  21. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  22. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  23. data/generated/google/apis/analytics_v3/service.rb +82 -82
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
  25. data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
  26. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  30. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  32. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  33. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  34. data/generated/google/apis/appengine_v1.rb +4 -4
  35. data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
  36. data/generated/google/apis/appengine_v1/representations.rb +362 -343
  37. data/generated/google/apis/appengine_v1/service.rb +220 -220
  38. data/generated/google/apis/appstate_v1.rb +1 -1
  39. data/generated/google/apis/bigquery_v2.rb +1 -1
  40. data/generated/google/apis/bigquery_v2/classes.rb +5 -5
  41. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  42. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  43. data/generated/google/apis/blogger_v3/service.rb +3 -3
  44. data/generated/google/apis/books_v1/classes.rb +55 -55
  45. data/generated/google/apis/books_v1/representations.rb +67 -67
  46. data/generated/google/apis/books_v1/service.rb +82 -82
  47. data/generated/google/apis/calendar_v3.rb +1 -1
  48. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  49. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  50. data/generated/google/apis/calendar_v3/service.rb +2 -2
  51. data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
  52. data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
  53. data/generated/google/apis/civicinfo_v2/service.rb +12 -12
  54. data/generated/google/apis/classroom_v1.rb +7 -7
  55. data/generated/google/apis/classroom_v1/classes.rb +1013 -991
  56. data/generated/google/apis/classroom_v1/representations.rb +207 -204
  57. data/generated/google/apis/classroom_v1/service.rb +709 -709
  58. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  59. data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
  60. data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
  61. data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
  62. data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
  63. data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
  64. data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
  65. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  66. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
  67. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
  68. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
  69. data/generated/google/apis/cloudkms_v1.rb +1 -1
  70. data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
  71. data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
  72. data/generated/google/apis/cloudkms_v1/service.rb +267 -267
  73. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  74. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
  75. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
  76. data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
  77. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
  80. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
  81. data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +163 -15
  84. data/generated/google/apis/compute_beta/representations.rb +54 -14
  85. data/generated/google/apis/compute_beta/service.rb +2258 -482
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +465 -13
  88. data/generated/google/apis/compute_v1/representations.rb +202 -16
  89. data/generated/google/apis/compute_v1/service.rb +573 -309
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +635 -589
  92. data/generated/google/apis/container_v1/representations.rb +139 -111
  93. data/generated/google/apis/container_v1/service.rb +272 -227
  94. data/generated/google/apis/content_v2.rb +1 -1
  95. data/generated/google/apis/content_v2/classes.rb +86 -74
  96. data/generated/google/apis/content_v2/representations.rb +107 -105
  97. data/generated/google/apis/content_v2/service.rb +131 -130
  98. data/generated/google/apis/customsearch_v1.rb +2 -2
  99. data/generated/google/apis/customsearch_v1/classes.rb +0 -6
  100. data/generated/google/apis/customsearch_v1/representations.rb +0 -1
  101. data/generated/google/apis/customsearch_v1/service.rb +2 -5
  102. data/generated/google/apis/dataflow_v1b3.rb +7 -4
  103. data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
  104. data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
  105. data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +543 -691
  108. data/generated/google/apis/dataproc_v1/representations.rb +129 -185
  109. data/generated/google/apis/dataproc_v1/service.rb +347 -347
  110. data/generated/google/apis/datastore_v1.rb +4 -4
  111. data/generated/google/apis/datastore_v1/classes.rb +833 -833
  112. data/generated/google/apis/datastore_v1/representations.rb +182 -182
  113. data/generated/google/apis/datastore_v1/service.rb +45 -45
  114. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  115. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  116. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  117. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  118. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  119. data/generated/google/apis/discovery_v1/service.rb +1 -1
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +3 -3
  122. data/generated/google/apis/dns_v1/representations.rb +6 -6
  123. data/generated/google/apis/dns_v1/service.rb +12 -12
  124. data/generated/google/apis/dns_v2beta1.rb +1 -1
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +1 -1
  129. data/generated/google/apis/drive_v2/service.rb +1 -1
  130. data/generated/google/apis/drive_v3.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 +160 -110
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
  136. data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
  137. data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
  138. data/generated/google/apis/firebaserules_v1/service.rb +103 -103
  139. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  140. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  141. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  142. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  143. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  144. data/generated/google/apis/games_management_v1management.rb +1 -1
  145. data/generated/google/apis/games_v1.rb +1 -1
  146. data/generated/google/apis/games_v1/classes.rb +23 -23
  147. data/generated/google/apis/games_v1/representations.rb +43 -43
  148. data/generated/google/apis/games_v1/service.rb +72 -72
  149. data/generated/google/apis/genomics_v1.rb +1 -1
  150. data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
  151. data/generated/google/apis/genomics_v1/representations.rb +291 -291
  152. data/generated/google/apis/genomics_v1/service.rb +821 -821
  153. data/generated/google/apis/gmail_v1.rb +1 -1
  154. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  155. data/generated/google/apis/groupssettings_v1.rb +1 -1
  156. data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
  157. data/generated/google/apis/groupssettings_v1/service.rb +3 -0
  158. data/generated/google/apis/iam_v1/classes.rb +338 -338
  159. data/generated/google/apis/iam_v1/representations.rb +98 -98
  160. data/generated/google/apis/iam_v1/service.rb +35 -35
  161. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  162. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  163. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  164. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  165. data/generated/google/apis/language_v1.rb +1 -1
  166. data/generated/google/apis/language_v1/classes.rb +374 -374
  167. data/generated/google/apis/language_v1/representations.rb +97 -97
  168. data/generated/google/apis/language_v1/service.rb +16 -16
  169. data/generated/google/apis/language_v1beta1.rb +1 -1
  170. data/generated/google/apis/language_v1beta1/classes.rb +441 -441
  171. data/generated/google/apis/language_v1beta1/representations.rb +108 -108
  172. data/generated/google/apis/language_v1beta1/service.rb +30 -30
  173. data/generated/google/apis/licensing_v1/service.rb +2 -2
  174. data/generated/google/apis/logging_v2.rb +1 -1
  175. data/generated/google/apis/logging_v2/classes.rb +712 -712
  176. data/generated/google/apis/logging_v2/representations.rb +109 -109
  177. data/generated/google/apis/logging_v2/service.rb +543 -539
  178. data/generated/google/apis/logging_v2beta1.rb +1 -1
  179. data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
  180. data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
  181. data/generated/google/apis/logging_v2beta1/service.rb +257 -256
  182. data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
  183. data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
  184. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  185. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  186. data/generated/google/apis/mirror_v1/service.rb +20 -20
  187. data/generated/google/apis/ml_v1.rb +1 -1
  188. data/generated/google/apis/ml_v1/classes.rb +1830 -1210
  189. data/generated/google/apis/ml_v1/representations.rb +342 -120
  190. data/generated/google/apis/ml_v1/service.rb +365 -258
  191. data/generated/google/apis/monitoring_v3.rb +4 -4
  192. data/generated/google/apis/monitoring_v3/classes.rb +889 -889
  193. data/generated/google/apis/monitoring_v3/representations.rb +174 -174
  194. data/generated/google/apis/monitoring_v3/service.rb +119 -119
  195. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  196. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  197. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  198. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  199. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  200. data/generated/google/apis/partners_v2.rb +1 -1
  201. data/generated/google/apis/partners_v2/classes.rb +550 -536
  202. data/generated/google/apis/partners_v2/representations.rb +118 -116
  203. data/generated/google/apis/partners_v2/service.rb +439 -439
  204. data/generated/google/apis/people_v1.rb +4 -4
  205. data/generated/google/apis/people_v1/classes.rb +414 -413
  206. data/generated/google/apis/people_v1/representations.rb +85 -85
  207. data/generated/google/apis/people_v1/service.rb +111 -18
  208. data/generated/google/apis/plus_domains_v1.rb +1 -1
  209. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  210. data/generated/google/apis/plus_v1.rb +1 -1
  211. data/generated/google/apis/plus_v1/service.rb +1 -1
  212. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  213. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  214. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
  215. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
  216. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
  217. data/generated/google/apis/pubsub_v1/classes.rb +249 -249
  218. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  219. data/generated/google/apis/pubsub_v1/service.rb +415 -415
  220. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  221. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  222. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  223. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  226. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  227. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  228. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  230. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  231. data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
  232. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  233. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  234. data/generated/google/apis/script_v1.rb +17 -17
  235. data/generated/google/apis/script_v1/classes.rb +27 -27
  236. data/generated/google/apis/script_v1/representations.rb +5 -5
  237. data/generated/google/apis/script_v1/service.rb +4 -4
  238. data/generated/google/apis/searchconsole_v1.rb +1 -1
  239. data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
  240. data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
  241. data/generated/google/apis/searchconsole_v1/service.rb +4 -4
  242. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  243. data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
  244. data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
  245. data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
  246. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  247. data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
  248. data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
  249. data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
  250. data/generated/google/apis/serviceuser_v1.rb +1 -1
  251. data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
  252. data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
  253. data/generated/google/apis/serviceuser_v1/service.rb +37 -37
  254. data/generated/google/apis/sheets_v4.rb +1 -1
  255. data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
  256. data/generated/google/apis/sheets_v4/representations.rb +994 -824
  257. data/generated/google/apis/sheets_v4/service.rb +80 -80
  258. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  259. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  260. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  261. data/generated/google/apis/slides_v1.rb +1 -1
  262. data/generated/google/apis/slides_v1/classes.rb +2885 -2885
  263. data/generated/google/apis/slides_v1/representations.rb +310 -310
  264. data/generated/google/apis/slides_v1/service.rb +54 -54
  265. data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
  266. data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
  267. data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
  268. data/generated/google/apis/spanner_v1.rb +1 -1
  269. data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
  270. data/generated/google/apis/spanner_v1/representations.rb +174 -174
  271. data/generated/google/apis/spanner_v1/service.rb +497 -497
  272. data/generated/google/apis/speech_v1beta1.rb +1 -1
  273. data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
  274. data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
  275. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  276. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  277. data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
  278. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
  279. data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
  280. data/generated/google/apis/storage_v1.rb +1 -1
  281. data/generated/google/apis/storage_v1/classes.rb +40 -6
  282. data/generated/google/apis/storage_v1/representations.rb +20 -4
  283. data/generated/google/apis/storage_v1/service.rb +61 -46
  284. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  285. data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
  286. data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
  287. data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
  288. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  289. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  290. data/generated/google/apis/translate_v2/classes.rb +12 -12
  291. data/generated/google/apis/translate_v2/representations.rb +10 -10
  292. data/generated/google/apis/translate_v2/service.rb +62 -62
  293. data/generated/google/apis/vision_v1.rb +1 -1
  294. data/generated/google/apis/vision_v1/classes.rb +1267 -1267
  295. data/generated/google/apis/vision_v1/representations.rb +200 -200
  296. data/generated/google/apis/vision_v1/service.rb +10 -10
  297. data/generated/google/apis/webmasters_v3.rb +1 -1
  298. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  299. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  300. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  301. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  302. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  303. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  304. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  305. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  306. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  307. data/generated/google/apis/youtube_v3/service.rb +80 -80
  308. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  309. data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
  310. data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
  311. data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
  312. data/lib/google/apis/generator/annotator.rb +2 -2
  313. data/lib/google/apis/generator/model.rb +2 -2
  314. data/lib/google/apis/version.rb +1 -1
  315. metadata +2 -2
@@ -34,7 +34,7 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class AttachmentsListResponse
37
+ class ListAttachmentsResponse
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
@@ -58,7 +58,7 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class ContactsListResponse
61
+ class ListContactsResponse
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
@@ -70,7 +70,7 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class LocationsListResponse
73
+ class ListLocationsResponse
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
@@ -112,7 +112,7 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class SubscriptionsListResponse
115
+ class ListSubscriptionsResponse
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
@@ -124,7 +124,7 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class TimelineListResponse
127
+ class ListTimelineResponse
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
@@ -164,7 +164,7 @@ module Google
164
164
  end
165
165
  end
166
166
 
167
- class AttachmentsListResponse
167
+ class ListAttachmentsResponse
168
168
  # @private
169
169
  class Representation < Google::Apis::Core::JsonRepresentation
170
170
  collection :items, as: 'items', class: Google::Apis::MirrorV1::Attachment, decorator: Google::Apis::MirrorV1::Attachment::Representation
@@ -207,7 +207,7 @@ module Google
207
207
  end
208
208
  end
209
209
 
210
- class ContactsListResponse
210
+ class ListContactsResponse
211
211
  # @private
212
212
  class Representation < Google::Apis::Core::JsonRepresentation
213
213
  collection :items, as: 'items', class: Google::Apis::MirrorV1::Contact, decorator: Google::Apis::MirrorV1::Contact::Representation
@@ -231,7 +231,7 @@ module Google
231
231
  end
232
232
  end
233
233
 
234
- class LocationsListResponse
234
+ class ListLocationsResponse
235
235
  # @private
236
236
  class Representation < Google::Apis::Core::JsonRepresentation
237
237
  collection :items, as: 'items', class: Google::Apis::MirrorV1::Location, decorator: Google::Apis::MirrorV1::Location::Representation
@@ -310,7 +310,7 @@ module Google
310
310
  end
311
311
  end
312
312
 
313
- class SubscriptionsListResponse
313
+ class ListSubscriptionsResponse
314
314
  # @private
315
315
  class Representation < Google::Apis::Core::JsonRepresentation
316
316
  collection :items, as: 'items', class: Google::Apis::MirrorV1::Subscription, decorator: Google::Apis::MirrorV1::Subscription::Representation
@@ -360,7 +360,7 @@ module Google
360
360
  end
361
361
  end
362
362
 
363
- class TimelineListResponse
363
+ class ListTimelineResponse
364
364
  # @private
365
365
  class Representation < Google::Apis::Core::JsonRepresentation
366
366
  collection :items, as: 'items', class: Google::Apis::MirrorV1::TimelineItem, decorator: Google::Apis::MirrorV1::TimelineItem::Representation
@@ -214,18 +214,18 @@ module Google
214
214
  # Request-specific options
215
215
  #
216
216
  # @yield [result, err] Result & error if block supplied
217
- # @yieldparam result [Google::Apis::MirrorV1::ContactsListResponse] parsed result object
217
+ # @yieldparam result [Google::Apis::MirrorV1::ListContactsResponse] parsed result object
218
218
  # @yieldparam err [StandardError] error object if request failed
219
219
  #
220
- # @return [Google::Apis::MirrorV1::ContactsListResponse]
220
+ # @return [Google::Apis::MirrorV1::ListContactsResponse]
221
221
  #
222
222
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
223
223
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
224
  # @raise [Google::Apis::AuthorizationError] Authorization is required
225
225
  def list_contacts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
226
226
  command = make_simple_command(:get, 'contacts', options)
227
- command.response_representation = Google::Apis::MirrorV1::ContactsListResponse::Representation
228
- command.response_class = Google::Apis::MirrorV1::ContactsListResponse
227
+ command.response_representation = Google::Apis::MirrorV1::ListContactsResponse::Representation
228
+ command.response_class = Google::Apis::MirrorV1::ListContactsResponse
229
229
  command.query['fields'] = fields unless fields.nil?
230
230
  command.query['quotaUser'] = quota_user unless quota_user.nil?
231
231
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -357,18 +357,18 @@ module Google
357
357
  # Request-specific options
358
358
  #
359
359
  # @yield [result, err] Result & error if block supplied
360
- # @yieldparam result [Google::Apis::MirrorV1::LocationsListResponse] parsed result object
360
+ # @yieldparam result [Google::Apis::MirrorV1::ListLocationsResponse] parsed result object
361
361
  # @yieldparam err [StandardError] error object if request failed
362
362
  #
363
- # @return [Google::Apis::MirrorV1::LocationsListResponse]
363
+ # @return [Google::Apis::MirrorV1::ListLocationsResponse]
364
364
  #
365
365
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
366
366
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
367
367
  # @raise [Google::Apis::AuthorizationError] Authorization is required
368
368
  def list_locations(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
369
369
  command = make_simple_command(:get, 'locations', options)
370
- command.response_representation = Google::Apis::MirrorV1::LocationsListResponse::Representation
371
- command.response_class = Google::Apis::MirrorV1::LocationsListResponse
370
+ command.response_representation = Google::Apis::MirrorV1::ListLocationsResponse::Representation
371
+ command.response_class = Google::Apis::MirrorV1::ListLocationsResponse
372
372
  command.query['fields'] = fields unless fields.nil?
373
373
  command.query['quotaUser'] = quota_user unless quota_user.nil?
374
374
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -496,18 +496,18 @@ module Google
496
496
  # Request-specific options
497
497
  #
498
498
  # @yield [result, err] Result & error if block supplied
499
- # @yieldparam result [Google::Apis::MirrorV1::SubscriptionsListResponse] parsed result object
499
+ # @yieldparam result [Google::Apis::MirrorV1::ListSubscriptionsResponse] parsed result object
500
500
  # @yieldparam err [StandardError] error object if request failed
501
501
  #
502
- # @return [Google::Apis::MirrorV1::SubscriptionsListResponse]
502
+ # @return [Google::Apis::MirrorV1::ListSubscriptionsResponse]
503
503
  #
504
504
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
505
505
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
506
506
  # @raise [Google::Apis::AuthorizationError] Authorization is required
507
507
  def list_subscriptions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
508
508
  command = make_simple_command(:get, 'subscriptions', options)
509
- command.response_representation = Google::Apis::MirrorV1::SubscriptionsListResponse::Representation
510
- command.response_class = Google::Apis::MirrorV1::SubscriptionsListResponse
509
+ command.response_representation = Google::Apis::MirrorV1::ListSubscriptionsResponse::Representation
510
+ command.response_class = Google::Apis::MirrorV1::ListSubscriptionsResponse
511
511
  command.query['fields'] = fields unless fields.nil?
512
512
  command.query['quotaUser'] = quota_user unless quota_user.nil?
513
513
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -693,18 +693,18 @@ module Google
693
693
  # Request-specific options
694
694
  #
695
695
  # @yield [result, err] Result & error if block supplied
696
- # @yieldparam result [Google::Apis::MirrorV1::TimelineListResponse] parsed result object
696
+ # @yieldparam result [Google::Apis::MirrorV1::ListTimelineResponse] parsed result object
697
697
  # @yieldparam err [StandardError] error object if request failed
698
698
  #
699
- # @return [Google::Apis::MirrorV1::TimelineListResponse]
699
+ # @return [Google::Apis::MirrorV1::ListTimelineResponse]
700
700
  #
701
701
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
702
702
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
703
703
  # @raise [Google::Apis::AuthorizationError] Authorization is required
704
704
  def list_timelines(bundle_id: nil, include_deleted: nil, max_results: nil, order_by: nil, page_token: nil, pinned_only: nil, source_item_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
705
705
  command = make_simple_command(:get, 'timeline', options)
706
- command.response_representation = Google::Apis::MirrorV1::TimelineListResponse::Representation
707
- command.response_class = Google::Apis::MirrorV1::TimelineListResponse
706
+ command.response_representation = Google::Apis::MirrorV1::ListTimelineResponse::Representation
707
+ command.response_class = Google::Apis::MirrorV1::ListTimelineResponse
708
708
  command.query['bundleId'] = bundle_id unless bundle_id.nil?
709
709
  command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
710
710
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -946,18 +946,18 @@ module Google
946
946
  # Request-specific options
947
947
  #
948
948
  # @yield [result, err] Result & error if block supplied
949
- # @yieldparam result [Google::Apis::MirrorV1::AttachmentsListResponse] parsed result object
949
+ # @yieldparam result [Google::Apis::MirrorV1::ListAttachmentsResponse] parsed result object
950
950
  # @yieldparam err [StandardError] error object if request failed
951
951
  #
952
- # @return [Google::Apis::MirrorV1::AttachmentsListResponse]
952
+ # @return [Google::Apis::MirrorV1::ListAttachmentsResponse]
953
953
  #
954
954
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
955
955
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
956
956
  # @raise [Google::Apis::AuthorizationError] Authorization is required
957
957
  def list_timeline_attachments(item_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
958
958
  command = make_simple_command(:get, 'timeline/{itemId}/attachments', options)
959
- command.response_representation = Google::Apis::MirrorV1::AttachmentsListResponse::Representation
960
- command.response_class = Google::Apis::MirrorV1::AttachmentsListResponse
959
+ command.response_representation = Google::Apis::MirrorV1::ListAttachmentsResponse::Representation
960
+ command.response_class = Google::Apis::MirrorV1::ListAttachmentsResponse
961
961
  command.params['itemId'] = item_id unless item_id.nil?
962
962
  command.query['fields'] = fields unless fields.nil?
963
963
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/ml/
26
26
  module MlV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170527'
28
+ REVISION = '20170612'
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,20 +22,218 @@ module Google
22
22
  module Apis
23
23
  module MlV1
24
24
 
25
- # Response message for the ListJobs method.
26
- class GoogleCloudMlV1ListJobsResponse
25
+ # Request for predictions to be issued against a trained model.
26
+ # The body of the request is a single JSON object with a single top-level
27
+ # field:
28
+ # <dl>
29
+ # <dt>instances</dt>
30
+ # <dd>A JSON array containing values representing the instances to use for
31
+ # prediction.</dd>
32
+ # </dl>
33
+ # The structure of each element of the instances list is determined by your
34
+ # model's input definition. Instances can include named inputs or can contain
35
+ # only unlabeled values.
36
+ # Not all data includes named inputs. Some instances will be simple
37
+ # JSON values (boolean, number, or string). However, instances are often lists
38
+ # of simple values, or complex nested lists. Here are some examples of request
39
+ # bodies:
40
+ # CSV data with each row encoded as a string value:
41
+ # <pre>
42
+ # `"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]`
43
+ # </pre>
44
+ # Plain text:
45
+ # <pre>
46
+ # `"instances": ["the quick brown fox", "la bruja le dio"]`
47
+ # </pre>
48
+ # Sentences encoded as lists of words (vectors of strings):
49
+ # <pre>
50
+ # `
51
+ # "instances": [
52
+ # ["the","quick","brown"],
53
+ # ["la","bruja","le"],
54
+ # ...
55
+ # ]
56
+ # `
57
+ # </pre>
58
+ # Floating point scalar values:
59
+ # <pre>
60
+ # `"instances": [0.0, 1.1, 2.2]`
61
+ # </pre>
62
+ # Vectors of integers:
63
+ # <pre>
64
+ # `
65
+ # "instances": [
66
+ # [0, 1, 2],
67
+ # [3, 4, 5],
68
+ # ...
69
+ # ]
70
+ # `
71
+ # </pre>
72
+ # Tensors (in this case, two-dimensional tensors):
73
+ # <pre>
74
+ # `
75
+ # "instances": [
76
+ # [
77
+ # [0, 1, 2],
78
+ # [3, 4, 5]
79
+ # ],
80
+ # ...
81
+ # ]
82
+ # `
83
+ # </pre>
84
+ # Images can be represented different ways. In this encoding scheme the first
85
+ # two dimensions represent the rows and columns of the image, and the third
86
+ # contains lists (vectors) of the R, G, and B values for each pixel.
87
+ # <pre>
88
+ # `
89
+ # "instances": [
90
+ # [
91
+ # [
92
+ # [138, 30, 66],
93
+ # [130, 20, 56],
94
+ # ...
95
+ # ],
96
+ # [
97
+ # [126, 38, 61],
98
+ # [122, 24, 57],
99
+ # ...
100
+ # ],
101
+ # ...
102
+ # ],
103
+ # ...
104
+ # ]
105
+ # `
106
+ # </pre>
107
+ # JSON strings must be encoded as UTF-8. To send binary data, you must
108
+ # base64-encode the data and mark it as binary. To mark a JSON string
109
+ # as binary, replace it with a JSON object with a single attribute named `b64`:
110
+ # <pre>`"b64": "..."` </pre>
111
+ # For example:
112
+ # Two Serialized tf.Examples (fake data, for illustrative purposes only):
113
+ # <pre>
114
+ # `"instances": [`"b64": "X5ad6u"`, `"b64": "IA9j4nx"`]`
115
+ # </pre>
116
+ # Two JPEG image byte strings (fake data, for illustrative purposes only):
117
+ # <pre>
118
+ # `"instances": [`"b64": "ASa8asdf"`, `"b64": "JLK7ljk3"`]`
119
+ # </pre>
120
+ # If your data includes named references, format each instance as a JSON object
121
+ # with the named references as the keys:
122
+ # JSON input data to be preprocessed:
123
+ # <pre>
124
+ # `
125
+ # "instances": [
126
+ # `
127
+ # "a": 1.0,
128
+ # "b": true,
129
+ # "c": "x"
130
+ # `,
131
+ # `
132
+ # "a": -2.0,
133
+ # "b": false,
134
+ # "c": "y"
135
+ # `
136
+ # ]
137
+ # `
138
+ # </pre>
139
+ # Some models have an underlying TensorFlow graph that accepts multiple input
140
+ # tensors. In this case, you should use the names of JSON name/value pairs to
141
+ # identify the input tensors, as shown in the following exmaples:
142
+ # For a graph with input tensor aliases "tag" (string) and "image"
143
+ # (base64-encoded string):
144
+ # <pre>
145
+ # `
146
+ # "instances": [
147
+ # `
148
+ # "tag": "beach",
149
+ # "image": `"b64": "ASa8asdf"`
150
+ # `,
151
+ # `
152
+ # "tag": "car",
153
+ # "image": `"b64": "JLK7ljk3"`
154
+ # `
155
+ # ]
156
+ # `
157
+ # </pre>
158
+ # For a graph with input tensor aliases "tag" (string) and "image"
159
+ # (3-dimensional array of 8-bit ints):
160
+ # <pre>
161
+ # `
162
+ # "instances": [
163
+ # `
164
+ # "tag": "beach",
165
+ # "image": [
166
+ # [
167
+ # [138, 30, 66],
168
+ # [130, 20, 56],
169
+ # ...
170
+ # ],
171
+ # [
172
+ # [126, 38, 61],
173
+ # [122, 24, 57],
174
+ # ...
175
+ # ],
176
+ # ...
177
+ # ]
178
+ # `,
179
+ # `
180
+ # "tag": "car",
181
+ # "image": [
182
+ # [
183
+ # [255, 0, 102],
184
+ # [255, 0, 97],
185
+ # ...
186
+ # ],
187
+ # [
188
+ # [254, 1, 101],
189
+ # [254, 2, 93],
190
+ # ...
191
+ # ],
192
+ # ...
193
+ # ]
194
+ # `,
195
+ # ...
196
+ # ]
197
+ # `
198
+ # </pre>
199
+ # If the call is successful, the response body will contain one prediction
200
+ # entry per instance in the request body. If prediction fails for any
201
+ # instance, the response body will contain no predictions and will contian
202
+ # a single error entry instead.
203
+ class GoogleCloudMlV1PredictRequest
27
204
  include Google::Apis::Core::Hashable
28
205
 
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`
37
- # @return [String]
38
- attr_accessor :next_page_token
206
+ # Message that represents an arbitrary HTTP body. It should only be used for
207
+ # payload formats that can't be represented as JSON, such as raw binary or
208
+ # an HTML page.
209
+ # This message can be used both in streaming and non-streaming API methods in
210
+ # the request as well as the response.
211
+ # It can be used as a top-level request field, which is convenient if one
212
+ # wants to extract parameters from either the URL or HTTP template into the
213
+ # request fields and also want access to the raw HTTP body.
214
+ # Example:
215
+ # message GetResourceRequest `
216
+ # // A unique request id.
217
+ # string request_id = 1;
218
+ # // The raw HTTP body is bound to this field.
219
+ # google.api.HttpBody http_body = 2;
220
+ # `
221
+ # service ResourceService `
222
+ # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
223
+ # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
224
+ # `
225
+ # Example with streaming methods:
226
+ # service CaldavService `
227
+ # rpc GetCalendar(stream google.api.HttpBody)
228
+ # returns (stream google.api.HttpBody);
229
+ # rpc UpdateCalendar(stream google.api.HttpBody)
230
+ # returns (stream google.api.HttpBody);
231
+ # `
232
+ # Use of this type only changes how the request and response bodies are
233
+ # handled, all other features will continue to work unchanged.
234
+ # Corresponds to the JSON property `httpBody`
235
+ # @return [Google::Apis::MlV1::GoogleApiHttpBody]
236
+ attr_accessor :http_body
39
237
 
40
238
  def initialize(**args)
41
239
  update!(**args)
@@ -43,106 +241,43 @@ module Google
43
241
 
44
242
  # Update properties of this object
45
243
  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)
244
+ @http_body = args[:http_body] if args.key?(:http_body)
48
245
  end
49
246
  end
50
247
 
51
- # Request message for the SetDefaultVersion request.
52
- class GoogleCloudMlV1SetDefaultVersionRequest
248
+ # An observed value of a metric.
249
+ class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
53
250
  include Google::Apis::Core::Hashable
54
251
 
252
+ # The global training step for this metric.
253
+ # Corresponds to the JSON property `trainingStep`
254
+ # @return [Fixnum]
255
+ attr_accessor :training_step
256
+
257
+ # The objective value at this training step.
258
+ # Corresponds to the JSON property `objectiveValue`
259
+ # @return [Float]
260
+ attr_accessor :objective_value
261
+
55
262
  def initialize(**args)
56
263
  update!(**args)
57
264
  end
58
265
 
59
266
  # Update properties of this object
60
267
  def update!(**args)
268
+ @training_step = args[:training_step] if args.key?(:training_step)
269
+ @objective_value = args[:objective_value] if args.key?(:objective_value)
61
270
  end
62
271
  end
63
272
 
64
- # This resource represents a long-running operation that is the result of a
65
- # network API call.
66
- class GoogleLongrunningOperation
273
+ # Write a Cloud Audit log
274
+ class GoogleIamV1LogConfigCloudAuditOptions
67
275
  include Google::Apis::Core::Hashable
68
276
 
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
80
-
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`
85
- # @return [String]
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
277
+ # The log_name to populate in the Cloud Audit Record.
278
+ # Corresponds to the JSON property `logName`
279
+ # @return [String]
280
+ attr_accessor :log_name
146
281
 
147
282
  def initialize(**args)
148
283
  update!(**args)
@@ -150,97 +285,175 @@ module Google
150
285
 
151
286
  # Update properties of this object
152
287
  def update!(**args)
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)
288
+ @log_name = args[:log_name] if args.key?(:log_name)
158
289
  end
159
290
  end
160
291
 
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
292
+ # Represents a version of the model.
293
+ # Each version is a trained model deployed in the cloud, ready to handle
294
+ # prediction requests. A model can have multiple versions. You can get
295
+ # information about all of the versions of a given model by calling
296
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
297
+ # versions/list).
298
+ class GoogleCloudMlV1Version
166
299
  include Google::Apis::Core::Hashable
167
300
 
168
- # Optional. If true, enables StackDriver Logging for online prediction.
169
- # Default is false.
170
- # Corresponds to the JSON property `onlinePredictionLogging`
171
- # @return [Boolean]
172
- attr_accessor :online_prediction_logging
173
- alias_method :online_prediction_logging?, :online_prediction_logging
174
-
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
301
+ # Options for manually scaling a model.
302
+ # Corresponds to the JSON property `manualScaling`
303
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1ManualScaling]
304
+ attr_accessor :manual_scaling
184
305
 
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
306
+ # Output only. The state of a version.
307
+ # Corresponds to the JSON property `state`
308
+ # @return [String]
309
+ attr_accessor :state
197
310
 
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.
311
+ # Required.The name specified for the version when it was created.
312
+ # The version name must be unique within the model it is created in.
200
313
  # Corresponds to the JSON property `name`
201
314
  # @return [String]
202
315
  attr_accessor :name
203
316
 
204
- # Optional. The description specified for the model when it was created.
317
+ # Options for automatically scaling a model.
318
+ # Corresponds to the JSON property `automaticScaling`
319
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1AutomaticScaling]
320
+ attr_accessor :automatic_scaling
321
+
322
+ # Optional. The Google Cloud ML runtime version to use for this deployment.
323
+ # If not set, Google Cloud ML will choose a version.
324
+ # Corresponds to the JSON property `runtimeVersion`
325
+ # @return [String]
326
+ attr_accessor :runtime_version
327
+
328
+ # Output only. The time the version was last used for prediction.
329
+ # Corresponds to the JSON property `lastUseTime`
330
+ # @return [String]
331
+ attr_accessor :last_use_time
332
+
333
+ # Optional. The description specified for the version when it was created.
205
334
  # Corresponds to the JSON property `description`
206
335
  # @return [String]
207
336
  attr_accessor :description
208
337
 
338
+ # Required. The Google Cloud Storage location of the trained model used to
339
+ # create the version. See the
340
+ # [overview of model
341
+ # deployment](/ml-engine/docs/concepts/deployment-overview) for more
342
+ # informaiton.
343
+ # When passing Version to
344
+ # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.
345
+ # versions/create)
346
+ # the model service uses the specified location as the source of the model.
347
+ # Once deployed, the model version is hosted by the prediction service, so
348
+ # this location is useful only as a historical record.
349
+ # The total number of model files can't exceed 1000.
350
+ # Corresponds to the JSON property `deploymentUri`
351
+ # @return [String]
352
+ attr_accessor :deployment_uri
353
+
354
+ # Output only. If true, this version will be used to handle prediction
355
+ # requests that do not specify a version.
356
+ # You can change the default version by calling
357
+ # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.
358
+ # models.versions/setDefault).
359
+ # Corresponds to the JSON property `isDefault`
360
+ # @return [Boolean]
361
+ attr_accessor :is_default
362
+ alias_method :is_default?, :is_default
363
+
364
+ # Output only. The time the version was created.
365
+ # Corresponds to the JSON property `createTime`
366
+ # @return [String]
367
+ attr_accessor :create_time
368
+
209
369
  def initialize(**args)
210
370
  update!(**args)
211
371
  end
212
372
 
213
373
  # Update properties of this object
214
374
  def update!(**args)
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)
375
+ @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
376
+ @state = args[:state] if args.key?(:state)
218
377
  @name = args[:name] if args.key?(:name)
378
+ @automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling)
379
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
380
+ @last_use_time = args[:last_use_time] if args.key?(:last_use_time)
219
381
  @description = args[:description] if args.key?(:description)
382
+ @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri)
383
+ @is_default = args[:is_default] if args.key?(:is_default)
384
+ @create_time = args[:create_time] if args.key?(:create_time)
220
385
  end
221
386
  end
222
387
 
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
388
+ # Represents a single hyperparameter to optimize.
389
+ class GoogleCloudMlV1ParameterSpec
231
390
  include Google::Apis::Core::Hashable
232
391
 
392
+ # Optional. How the parameter should be scaled to the hypercube.
393
+ # Leave unset for categorical parameters.
394
+ # Some kind of scaling is strongly recommended for real or integral
395
+ # parameters (e.g., `UNIT_LINEAR_SCALE`).
396
+ # Corresponds to the JSON property `scaleType`
397
+ # @return [String]
398
+ attr_accessor :scale_type
399
+
400
+ # Required if typeis `DOUBLE` or `INTEGER`. This field
401
+ # should be unset if type is `CATEGORICAL`. This value should be integers if
402
+ # type is `INTEGER`.
403
+ # Corresponds to the JSON property `maxValue`
404
+ # @return [Float]
405
+ attr_accessor :max_value
406
+
407
+ # Required. The type of the parameter.
408
+ # Corresponds to the JSON property `type`
409
+ # @return [String]
410
+ attr_accessor :type
411
+
412
+ # Required if type is `CATEGORICAL`. The list of possible categories.
413
+ # Corresponds to the JSON property `categoricalValues`
414
+ # @return [Array<String>]
415
+ attr_accessor :categorical_values
416
+
417
+ # Required. The parameter name must be unique amongst all ParameterConfigs in
418
+ # a HyperparameterSpec message. E.g., "learning_rate".
419
+ # Corresponds to the JSON property `parameterName`
420
+ # @return [String]
421
+ attr_accessor :parameter_name
422
+
423
+ # Required if type is `DOUBLE` or `INTEGER`. This field
424
+ # should be unset if type is `CATEGORICAL`. This value should be integers if
425
+ # type is INTEGER.
426
+ # Corresponds to the JSON property `minValue`
427
+ # @return [Float]
428
+ attr_accessor :min_value
429
+
430
+ # Required if type is `DISCRETE`.
431
+ # A list of feasible points.
432
+ # The list should be in strictly increasing order. For instance, this
433
+ # parameter might have possible settings of 1.5, 2.5, and 4.0. This list
434
+ # should not contain more than 1,000 values.
435
+ # Corresponds to the JSON property `discreteValues`
436
+ # @return [Array<Float>]
437
+ attr_accessor :discrete_values
438
+
233
439
  def initialize(**args)
234
440
  update!(**args)
235
441
  end
236
442
 
237
443
  # Update properties of this object
238
444
  def update!(**args)
445
+ @scale_type = args[:scale_type] if args.key?(:scale_type)
446
+ @max_value = args[:max_value] if args.key?(:max_value)
447
+ @type = args[:type] if args.key?(:type)
448
+ @categorical_values = args[:categorical_values] if args.key?(:categorical_values)
449
+ @parameter_name = args[:parameter_name] if args.key?(:parameter_name)
450
+ @min_value = args[:min_value] if args.key?(:min_value)
451
+ @discrete_values = args[:discrete_values] if args.key?(:discrete_values)
239
452
  end
240
453
  end
241
454
 
242
- # Request message for the CancelJob method.
243
- class GoogleCloudMlV1CancelJobRequest
455
+ # Write a Data Access (Gin) log
456
+ class GoogleIamV1LogConfigDataAccessOptions
244
457
  include Google::Apis::Core::Hashable
245
458
 
246
459
  def initialize(**args)
@@ -252,20 +465,67 @@ module Google
252
465
  end
253
466
  end
254
467
 
255
- # Response message for the ListVersions method.
256
- class GoogleCloudMlV1ListVersionsResponse
468
+ # Represents input parameters for a prediction job.
469
+ class GoogleCloudMlV1PredictionInput
257
470
  include Google::Apis::Core::Hashable
258
471
 
259
- # The list of versions.
260
- # Corresponds to the JSON property `versions`
261
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Version>]
262
- attr_accessor :versions
472
+ # Required. The Google Compute Engine region to run the prediction job in.
473
+ # Corresponds to the JSON property `region`
474
+ # @return [String]
475
+ attr_accessor :region
263
476
 
264
- # Optional. Pass this token as the `page_token` field of the request for a
265
- # subsequent call.
266
- # Corresponds to the JSON property `nextPageToken`
477
+ # Use this field if you want to specify a version of the model to use. The
478
+ # string is formatted the same way as `model_version`, with the addition
479
+ # of the version information:
480
+ # `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[
481
+ # YOUR_VERSION]</var>"`
482
+ # Corresponds to the JSON property `versionName`
267
483
  # @return [String]
268
- attr_accessor :next_page_token
484
+ attr_accessor :version_name
485
+
486
+ # Use this field if you want to use the default version for the specified
487
+ # model. The string must use the following format:
488
+ # `"projects/<var>[YOUR_PROJECT]</var>/models/<var>[YOUR_MODEL]</var>"`
489
+ # Corresponds to the JSON property `modelName`
490
+ # @return [String]
491
+ attr_accessor :model_name
492
+
493
+ # Required. The output Google Cloud Storage location.
494
+ # Corresponds to the JSON property `outputPath`
495
+ # @return [String]
496
+ attr_accessor :output_path
497
+
498
+ # Use this field if you want to specify a Google Cloud Storage path for
499
+ # the model to use.
500
+ # Corresponds to the JSON property `uri`
501
+ # @return [String]
502
+ attr_accessor :uri
503
+
504
+ # Optional. The maximum number of workers to be used for parallel processing.
505
+ # Defaults to 10 if not specified.
506
+ # Corresponds to the JSON property `maxWorkerCount`
507
+ # @return [Fixnum]
508
+ attr_accessor :max_worker_count
509
+
510
+ # Required. The format of the input data files.
511
+ # Corresponds to the JSON property `dataFormat`
512
+ # @return [String]
513
+ attr_accessor :data_format
514
+
515
+ # Optional. The Google Cloud ML runtime version to use for this batch
516
+ # prediction. If not set, Google Cloud ML will pick the runtime version used
517
+ # during the CreateVersion request for this model version, or choose the
518
+ # latest stable version when model version information is not available
519
+ # such as when the model is specified by uri.
520
+ # Corresponds to the JSON property `runtimeVersion`
521
+ # @return [String]
522
+ attr_accessor :runtime_version
523
+
524
+ # Required. The Google Cloud Storage location of the input data files.
525
+ # May contain wildcards.
526
+ # Corresponds to the JSON property `inputPaths`
527
+ # @return [Array<String>]
528
+ attr_accessor :input_paths
269
529
 
270
530
  def initialize(**args)
271
531
  update!(**args)
@@ -273,22 +533,51 @@ module Google
273
533
 
274
534
  # Update properties of this object
275
535
  def update!(**args)
276
- @versions = args[:versions] if args.key?(:versions)
277
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
536
+ @region = args[:region] if args.key?(:region)
537
+ @version_name = args[:version_name] if args.key?(:version_name)
538
+ @model_name = args[:model_name] if args.key?(:model_name)
539
+ @output_path = args[:output_path] if args.key?(:output_path)
540
+ @uri = args[:uri] if args.key?(:uri)
541
+ @max_worker_count = args[:max_worker_count] if args.key?(:max_worker_count)
542
+ @data_format = args[:data_format] if args.key?(:data_format)
543
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
544
+ @input_paths = args[:input_paths] if args.key?(:input_paths)
278
545
  end
279
546
  end
280
547
 
281
- # Options for manually scaling a model.
282
- class GoogleCloudMlV1beta1ManualScaling
548
+ # Represents an expression text. Example:
549
+ # title: "User account presence"
550
+ # description: "Determines whether the request has a user account"
551
+ # expression: "size(request.user) > 0"
552
+ class GoogleTypeExpr
283
553
  include Google::Apis::Core::Hashable
284
554
 
285
- # The number of nodes to allocate for this model. These nodes are always up,
286
- # starting from the time the model is deployed, so the cost of operating
287
- # this model will be proportional to `nodes` * number of hours since
288
- # last billing cycle.
289
- # Corresponds to the JSON property `nodes`
290
- # @return [Fixnum]
291
- attr_accessor :nodes
555
+ # An optional title for the expression, i.e. a short string describing
556
+ # its purpose. This can be used e.g. in UIs which allow to enter the
557
+ # expression.
558
+ # Corresponds to the JSON property `title`
559
+ # @return [String]
560
+ attr_accessor :title
561
+
562
+ # An optional string indicating the location of the expression for error
563
+ # reporting, e.g. a file name and a position in the file.
564
+ # Corresponds to the JSON property `location`
565
+ # @return [String]
566
+ attr_accessor :location
567
+
568
+ # An optional description of the expression. This is a longer text which
569
+ # describes the expression, e.g. when hovered over it in a UI.
570
+ # Corresponds to the JSON property `description`
571
+ # @return [String]
572
+ attr_accessor :description
573
+
574
+ # Textual representation of an expression in
575
+ # Common Expression Language syntax.
576
+ # The application context of the containing message determines which
577
+ # well-known feature set of CEL is supported.
578
+ # Corresponds to the JSON property `expression`
579
+ # @return [String]
580
+ attr_accessor :expression
292
581
 
293
582
  def initialize(**args)
294
583
  update!(**args)
@@ -296,69 +585,44 @@ module Google
296
585
 
297
586
  # Update properties of this object
298
587
  def update!(**args)
299
- @nodes = args[:nodes] if args.key?(:nodes)
588
+ @title = args[:title] if args.key?(:title)
589
+ @location = args[:location] if args.key?(:location)
590
+ @description = args[:description] if args.key?(:description)
591
+ @expression = args[:expression] if args.key?(:expression)
300
592
  end
301
593
  end
302
594
 
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
595
+ # Provides the configuration for logging a type of permissions.
596
+ # Example:
597
+ # `
598
+ # "audit_log_configs": [
599
+ # `
600
+ # "log_type": "DATA_READ",
601
+ # "exempted_members": [
602
+ # "user:foo@gmail.com"
603
+ # ]
604
+ # `,
605
+ # `
606
+ # "log_type": "DATA_WRITE",
607
+ # `
608
+ # ]
609
+ # `
610
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
611
+ # foo@gmail.com from DATA_READ logging.
612
+ class GoogleIamV1AuditLogConfig
343
613
  include Google::Apis::Core::Hashable
344
614
 
345
- # The status code, which should be an enum value of google.rpc.Code.
346
- # Corresponds to the JSON property `code`
347
- # @return [Fixnum]
348
- attr_accessor :code
349
-
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`
615
+ # The log type that this config enables.
616
+ # Corresponds to the JSON property `logType`
354
617
  # @return [String]
355
- attr_accessor :message
618
+ attr_accessor :log_type
356
619
 
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
620
+ # Specifies the identities that do not cause logging for this type of
621
+ # permission.
622
+ # Follows the same format of Binding.members.
623
+ # Corresponds to the JSON property `exemptedMembers`
624
+ # @return [Array<String>]
625
+ attr_accessor :exempted_members
362
626
 
363
627
  def initialize(**args)
364
628
  update!(**args)
@@ -366,26 +630,55 @@ module Google
366
630
 
367
631
  # Update properties of this object
368
632
  def update!(**args)
369
- @code = args[:code] if args.key?(:code)
370
- @message = args[:message] if args.key?(:message)
371
- @details = args[:details] if args.key?(:details)
633
+ @log_type = args[:log_type] if args.key?(:log_type)
634
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
372
635
  end
373
636
  end
374
637
 
375
- # Response message for the ListModels method.
376
- class GoogleCloudMlV1ListModelsResponse
638
+ # Represents the metadata of the long-running operation.
639
+ class GoogleCloudMlV1OperationMetadata
377
640
  include Google::Apis::Core::Hashable
378
641
 
379
- # The list of models.
380
- # Corresponds to the JSON property `models`
381
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Model>]
382
- attr_accessor :models
642
+ # Represents a version of the model.
643
+ # Each version is a trained model deployed in the cloud, ready to handle
644
+ # prediction requests. A model can have multiple versions. You can get
645
+ # information about all of the versions of a given model by calling
646
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
647
+ # versions/list).
648
+ # Corresponds to the JSON property `version`
649
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
650
+ attr_accessor :version
383
651
 
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`
652
+ # The time operation processing completed.
653
+ # Corresponds to the JSON property `endTime`
387
654
  # @return [String]
388
- attr_accessor :next_page_token
655
+ attr_accessor :end_time
656
+
657
+ # The operation type.
658
+ # Corresponds to the JSON property `operationType`
659
+ # @return [String]
660
+ attr_accessor :operation_type
661
+
662
+ # The time operation processing started.
663
+ # Corresponds to the JSON property `startTime`
664
+ # @return [String]
665
+ attr_accessor :start_time
666
+
667
+ # Indicates whether a request to cancel this operation has been made.
668
+ # Corresponds to the JSON property `isCancellationRequested`
669
+ # @return [Boolean]
670
+ attr_accessor :is_cancellation_requested
671
+ alias_method :is_cancellation_requested?, :is_cancellation_requested
672
+
673
+ # The time the operation was submitted.
674
+ # Corresponds to the JSON property `createTime`
675
+ # @return [String]
676
+ attr_accessor :create_time
677
+
678
+ # Contains the name of the model associated with the operation.
679
+ # Corresponds to the JSON property `modelName`
680
+ # @return [String]
681
+ attr_accessor :model_name
389
682
 
390
683
  def initialize(**args)
391
684
  update!(**args)
@@ -393,148 +686,60 @@ module Google
393
686
 
394
687
  # Update properties of this object
395
688
  def update!(**args)
396
- @models = args[:models] if args.key?(:models)
397
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
689
+ @version = args[:version] if args.key?(:version)
690
+ @end_time = args[:end_time] if args.key?(:end_time)
691
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
692
+ @start_time = args[:start_time] if args.key?(:start_time)
693
+ @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
694
+ @create_time = args[:create_time] if args.key?(:create_time)
695
+ @model_name = args[:model_name] if args.key?(:model_name)
398
696
  end
399
697
  end
400
698
 
401
- # Represents input parameters for a training job.
402
- class GoogleCloudMlV1TrainingInput
699
+ # Represents the metadata of the long-running operation.
700
+ class GoogleCloudMlV1beta1OperationMetadata
403
701
  include Google::Apis::Core::Hashable
404
702
 
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`
410
- # @return [Fixnum]
411
- attr_accessor :worker_count
703
+ # Contains the name of the model associated with the operation.
704
+ # Corresponds to the JSON property `modelName`
705
+ # @return [String]
706
+ attr_accessor :model_name
412
707
 
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`
460
- # @return [String]
461
- attr_accessor :master_type
462
-
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.
465
- # Corresponds to the JSON property `runtimeVersion`
466
- # @return [String]
467
- attr_accessor :runtime_version
468
-
469
- # Required. The Python module name to run after installing the packages.
470
- # Corresponds to the JSON property `pythonModule`
471
- # @return [String]
472
- attr_accessor :python_module
708
+ # Represents a version of the model.
709
+ # Each version is a trained model deployed in the cloud, ready to handle
710
+ # prediction requests. A model can have multiple versions. You can get
711
+ # information about all of the versions of a given model by calling
712
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
713
+ # models.versions/list).
714
+ # Corresponds to the JSON property `version`
715
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1Version]
716
+ attr_accessor :version
473
717
 
474
- # Required. The Google Compute Engine region to run the training job in.
475
- # Corresponds to the JSON property `region`
718
+ # The time operation processing completed.
719
+ # Corresponds to the JSON property `endTime`
476
720
  # @return [String]
477
- attr_accessor :region
478
-
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
721
+ attr_accessor :end_time
483
722
 
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`
723
+ # The operation type.
724
+ # Corresponds to the JSON property `operationType`
491
725
  # @return [String]
492
- attr_accessor :worker_type
726
+ attr_accessor :operation_type
493
727
 
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`
728
+ # The time operation processing started.
729
+ # Corresponds to the JSON property `startTime`
501
730
  # @return [String]
502
- attr_accessor :parameter_server_type
731
+ attr_accessor :start_time
503
732
 
504
- # Required. Specifies the machine types, the number of replicas for workers
505
- # and parameter servers.
506
- # Corresponds to the JSON property `scaleTier`
507
- # @return [String]
508
- attr_accessor :scale_tier
733
+ # Indicates whether a request to cancel this operation has been made.
734
+ # Corresponds to the JSON property `isCancellationRequested`
735
+ # @return [Boolean]
736
+ attr_accessor :is_cancellation_requested
737
+ alias_method :is_cancellation_requested?, :is_cancellation_requested
509
738
 
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`
739
+ # The time the operation was submitted.
740
+ # Corresponds to the JSON property `createTime`
515
741
  # @return [String]
516
- attr_accessor :job_dir
517
-
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
522
-
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
742
+ attr_accessor :create_time
538
743
 
539
744
  def initialize(**args)
540
745
  update!(**args)
@@ -542,75 +747,88 @@ module Google
542
747
 
543
748
  # Update properties of this object
544
749
  def update!(**args)
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)
750
+ @model_name = args[:model_name] if args.key?(:model_name)
751
+ @version = args[:version] if args.key?(:version)
752
+ @end_time = args[:end_time] if args.key?(:end_time)
753
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
754
+ @start_time = args[:start_time] if args.key?(:start_time)
755
+ @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
756
+ @create_time = args[:create_time] if args.key?(:create_time)
558
757
  end
559
758
  end
560
759
 
561
- # Represents a training or prediction job.
562
- class GoogleCloudMlV1Job
760
+ # Represents a set of hyperparameters to optimize.
761
+ class GoogleCloudMlV1HyperparameterSpec
563
762
  include Google::Apis::Core::Hashable
564
763
 
565
- # Output only. When the job processing was completed.
566
- # Corresponds to the JSON property `endTime`
567
- # @return [String]
568
- attr_accessor :end_time
764
+ # Optional. The number of training trials to run concurrently.
765
+ # You can reduce the time it takes to perform hyperparameter tuning by adding
766
+ # trials in parallel. However, each trail only benefits from the information
767
+ # gained in completed trials. That means that a trial does not get access to
768
+ # the results of trials running at the same time, which could reduce the
769
+ # quality of the overall optimization.
770
+ # Each trial will use the same scale tier and machine types.
771
+ # Defaults to one.
772
+ # Corresponds to the JSON property `maxParallelTrials`
773
+ # @return [Fixnum]
774
+ attr_accessor :max_parallel_trials
569
775
 
570
- # Output only. When the job processing was started.
571
- # Corresponds to the JSON property `startTime`
776
+ # Required. The type of goal to use for tuning. Available types are
777
+ # `MAXIMIZE` and `MINIMIZE`.
778
+ # Defaults to `MAXIMIZE`.
779
+ # Corresponds to the JSON property `goal`
572
780
  # @return [String]
573
- attr_accessor :start_time
781
+ attr_accessor :goal
574
782
 
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
783
+ # Optional. The Tensorflow summary tag name to use for optimizing trials. For
784
+ # current versions of Tensorflow, this tag name should exactly match what is
785
+ # shown in Tensorboard, including all scopes. For versions of Tensorflow
786
+ # prior to 0.12, this should be only the tag passed to tf.Summary.
787
+ # By default, "training/hptuning/metric" will be used.
788
+ # Corresponds to the JSON property `hyperparameterMetricTag`
789
+ # @return [String]
790
+ attr_accessor :hyperparameter_metric_tag
579
791
 
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
792
+ # Required. The set of parameters to tune.
793
+ # Corresponds to the JSON property `params`
794
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec>]
795
+ attr_accessor :params
584
796
 
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
797
+ # Optional. How many training trials should be attempted to optimize
798
+ # the specified hyperparameters.
799
+ # Defaults to one.
800
+ # Corresponds to the JSON property `maxTrials`
801
+ # @return [Fixnum]
802
+ attr_accessor :max_trials
589
803
 
590
- # Output only. When the job was created.
591
- # Corresponds to the JSON property `createTime`
592
- # @return [String]
593
- attr_accessor :create_time
804
+ def initialize(**args)
805
+ update!(**args)
806
+ end
594
807
 
595
- # Output only. The detailed state of a job.
596
- # Corresponds to the JSON property `state`
597
- # @return [String]
598
- attr_accessor :state
808
+ # Update properties of this object
809
+ def update!(**args)
810
+ @max_parallel_trials = args[:max_parallel_trials] if args.key?(:max_parallel_trials)
811
+ @goal = args[:goal] if args.key?(:goal)
812
+ @hyperparameter_metric_tag = args[:hyperparameter_metric_tag] if args.key?(:hyperparameter_metric_tag)
813
+ @params = args[:params] if args.key?(:params)
814
+ @max_trials = args[:max_trials] if args.key?(:max_trials)
815
+ end
816
+ end
599
817
 
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
818
+ # Response message for the ListJobs method.
819
+ class GoogleCloudMlV1ListJobsResponse
820
+ include Google::Apis::Core::Hashable
604
821
 
605
- # Required. The user-specified id of the job.
606
- # Corresponds to the JSON property `jobId`
822
+ # Optional. Pass this token as the `page_token` field of the request for a
823
+ # subsequent call.
824
+ # Corresponds to the JSON property `nextPageToken`
607
825
  # @return [String]
608
- attr_accessor :job_id
826
+ attr_accessor :next_page_token
609
827
 
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
828
+ # The list of jobs.
829
+ # Corresponds to the JSON property `jobs`
830
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Job>]
831
+ attr_accessor :jobs
614
832
 
615
833
  def initialize(**args)
616
834
  update!(**args)
@@ -618,150 +836,106 @@ module Google
618
836
 
619
837
  # Update properties of this object
620
838
  def update!(**args)
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)
839
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
840
+ @jobs = args[:jobs] if args.key?(:jobs)
631
841
  end
632
842
  end
633
843
 
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
844
+ # Request message for the SetDefaultVersion request.
845
+ class GoogleCloudMlV1SetDefaultVersionRequest
663
846
  include Google::Apis::Core::Hashable
664
847
 
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
670
-
671
- # HTTP body binary data.
672
- # Corresponds to the JSON property `data`
673
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
674
- # @return [String]
675
- attr_accessor :data
676
-
677
- # The HTTP Content-Type string representing the content type of the body.
678
- # Corresponds to the JSON property `contentType`
679
- # @return [String]
680
- attr_accessor :content_type
681
-
682
848
  def initialize(**args)
683
849
  update!(**args)
684
850
  end
685
851
 
686
852
  # Update properties of this object
687
853
  def update!(**args)
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)
691
854
  end
692
855
  end
693
856
 
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
857
+ # This resource represents a long-running operation that is the result of a
858
+ # network API call.
859
+ class GoogleLongrunningOperation
701
860
  include Google::Apis::Core::Hashable
702
861
 
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
862
+ # If the value is `false`, it means the operation is still in progress.
863
+ # If true, the operation is completed, and either `error` or `response` is
864
+ # available.
865
+ # Corresponds to the JSON property `done`
866
+ # @return [Boolean]
867
+ attr_accessor :done
868
+ alias_method :done?, :done
707
869
 
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.
870
+ # The normal response of the operation in case of success. If the original
871
+ # method returns no data on success, such as `Delete`, the response is
872
+ # `google.protobuf.Empty`. If the original method is standard
873
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
874
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
875
+ # is the original method name. For example, if the original method name
876
+ # is `TakeSnapshot()`, the inferred response type is
877
+ # `TakeSnapshotResponse`.
878
+ # Corresponds to the JSON property `response`
879
+ # @return [Hash<String,Object>]
880
+ attr_accessor :response
881
+
882
+ # The server-assigned name, which is only unique within the same service that
883
+ # originally returns it. If you use the default HTTP mapping, the
884
+ # `name` should have the format of `operations/some/unique/name`.
710
885
  # Corresponds to the JSON property `name`
711
886
  # @return [String]
712
887
  attr_accessor :name
713
888
 
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
718
-
719
- # Output only. The time the version was last used for prediction.
720
- # Corresponds to the JSON property `lastUseTime`
721
- # @return [String]
722
- attr_accessor :last_use_time
723
-
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`
727
- # @return [String]
728
- attr_accessor :runtime_version
729
-
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
734
-
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`
748
- # @return [String]
749
- attr_accessor :deployment_uri
750
-
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
889
+ # The `Status` type defines a logical error model that is suitable for different
890
+ # programming environments, including REST APIs and RPC APIs. It is used by
891
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
892
+ # - Simple to use and understand for most users
893
+ # - Flexible enough to meet unexpected needs
894
+ # # Overview
895
+ # The `Status` message contains three pieces of data: error code, error message,
896
+ # and error details. The error code should be an enum value of
897
+ # google.rpc.Code, but it may accept additional error codes if needed. The
898
+ # error message should be a developer-facing English message that helps
899
+ # developers *understand* and *resolve* the error. If a localized user-facing
900
+ # error message is needed, put the localized message in the error details or
901
+ # localize it in the client. The optional error details may contain arbitrary
902
+ # information about the error. There is a predefined set of error detail types
903
+ # in the package `google.rpc` that can be used for common error conditions.
904
+ # # Language mapping
905
+ # The `Status` message is the logical representation of the error model, but it
906
+ # is not necessarily the actual wire format. When the `Status` message is
907
+ # exposed in different client libraries and different wire protocols, it can be
908
+ # mapped differently. For example, it will likely be mapped to some exceptions
909
+ # in Java, but more likely mapped to some error codes in C.
910
+ # # Other uses
911
+ # The error model and the `Status` message can be used in a variety of
912
+ # environments, either with or without APIs, to provide a
913
+ # consistent developer experience across different environments.
914
+ # Example uses of this error model include:
915
+ # - Partial errors. If a service needs to return partial errors to the client,
916
+ # it may embed the `Status` in the normal response to indicate the partial
917
+ # errors.
918
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
919
+ # have a `Status` message for error reporting.
920
+ # - Batch operations. If a client uses batch request and batch response, the
921
+ # `Status` message should be used directly inside batch response, one for
922
+ # each error sub-response.
923
+ # - Asynchronous operations. If an API call embeds asynchronous operation
924
+ # results in its response, the status of those operations should be
925
+ # represented directly using the `Status` message.
926
+ # - Logging. If some API errors are stored in logs, the message `Status` could
927
+ # be used directly after any stripping needed for security/privacy reasons.
928
+ # Corresponds to the JSON property `error`
929
+ # @return [Google::Apis::MlV1::GoogleRpcStatus]
930
+ attr_accessor :error
760
931
 
761
- # Output only. The time the version was created.
762
- # Corresponds to the JSON property `createTime`
763
- # @return [String]
764
- attr_accessor :create_time
932
+ # Service-specific metadata associated with the operation. It typically
933
+ # contains progress information and common metadata such as create time.
934
+ # Some services might not provide such metadata. Any method that returns a
935
+ # long-running operation should document the metadata type, if any.
936
+ # Corresponds to the JSON property `metadata`
937
+ # @return [Hash<String,Object>]
938
+ attr_accessor :metadata
765
939
 
766
940
  def initialize(**args)
767
941
  update!(**args)
@@ -769,31 +943,81 @@ module Google
769
943
 
770
944
  # Update properties of this object
771
945
  def update!(**args)
772
- @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
946
+ @done = args[:done] if args.key?(:done)
947
+ @response = args[:response] if args.key?(:response)
773
948
  @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)
780
- @create_time = args[:create_time] if args.key?(:create_time)
949
+ @error = args[:error] if args.key?(:error)
950
+ @metadata = args[:metadata] if args.key?(:metadata)
781
951
  end
782
952
  end
783
953
 
784
- # Returns service account information associated with a project.
785
- class GoogleCloudMlV1GetConfigResponse
954
+ # Specifies the audit configuration for a service.
955
+ # The configuration determines which permission types are logged, and what
956
+ # identities, if any, are exempted from logging.
957
+ # An AuditConfig must have one or more AuditLogConfigs.
958
+ # If there are AuditConfigs for both `allServices` and a specific service,
959
+ # the union of the two AuditConfigs is used for that service: the log_types
960
+ # specified in each AuditConfig are enabled, and the exempted_members in each
961
+ # AuditConfig are exempted.
962
+ # Example Policy with multiple AuditConfigs:
963
+ # `
964
+ # "audit_configs": [
965
+ # `
966
+ # "service": "allServices"
967
+ # "audit_log_configs": [
968
+ # `
969
+ # "log_type": "DATA_READ",
970
+ # "exempted_members": [
971
+ # "user:foo@gmail.com"
972
+ # ]
973
+ # `,
974
+ # `
975
+ # "log_type": "DATA_WRITE",
976
+ # `,
977
+ # `
978
+ # "log_type": "ADMIN_READ",
979
+ # `
980
+ # ]
981
+ # `,
982
+ # `
983
+ # "service": "fooservice.googleapis.com"
984
+ # "audit_log_configs": [
985
+ # `
986
+ # "log_type": "DATA_READ",
987
+ # `,
988
+ # `
989
+ # "log_type": "DATA_WRITE",
990
+ # "exempted_members": [
991
+ # "user:bar@gmail.com"
992
+ # ]
993
+ # `
994
+ # ]
995
+ # `
996
+ # ]
997
+ # `
998
+ # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
999
+ # logging. It also exempts foo@gmail.com from DATA_READ logging, and
1000
+ # bar@gmail.com from DATA_WRITE logging.
1001
+ class GoogleIamV1AuditConfig
786
1002
  include Google::Apis::Core::Hashable
787
1003
 
788
- # The service account Cloud ML uses to access resources in the project.
789
- # Corresponds to the JSON property `serviceAccount`
1004
+ #
1005
+ # Corresponds to the JSON property `exemptedMembers`
1006
+ # @return [Array<String>]
1007
+ attr_accessor :exempted_members
1008
+
1009
+ # Specifies a service that will be enabled for audit logging.
1010
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1011
+ # `allServices` is a special value that covers all services.
1012
+ # Corresponds to the JSON property `service`
790
1013
  # @return [String]
791
- attr_accessor :service_account
1014
+ attr_accessor :service
792
1015
 
793
- # The project number for `service_account`.
794
- # Corresponds to the JSON property `serviceAccountProject`
795
- # @return [Fixnum]
796
- attr_accessor :service_account_project
1016
+ # The configuration for logging of each type of permission.
1017
+ # Next ID: 4
1018
+ # Corresponds to the JSON property `auditLogConfigs`
1019
+ # @return [Array<Google::Apis::MlV1::GoogleIamV1AuditLogConfig>]
1020
+ attr_accessor :audit_log_configs
797
1021
 
798
1022
  def initialize(**args)
799
1023
  update!(**args)
@@ -801,37 +1025,59 @@ module Google
801
1025
 
802
1026
  # Update properties of this object
803
1027
  def update!(**args)
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)
1028
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
1029
+ @service = args[:service] if args.key?(:service)
1030
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
806
1031
  end
807
1032
  end
808
1033
 
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
1034
+ # Represents a machine learning solution.
1035
+ # A model can have multiple versions, each of which is a deployed, trained
1036
+ # model ready to receive prediction requests. The model itself is just a
1037
+ # container.
1038
+ class GoogleCloudMlV1Model
814
1039
  include Google::Apis::Core::Hashable
815
1040
 
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
1041
+ # Optional. The list of regions where the model is going to be deployed.
1042
+ # Currently only one region per model is supported.
1043
+ # Defaults to 'us-central1' if nothing is set.
1044
+ # Note:
1045
+ # * No matter where a model is deployed, it can always be accessed by
1046
+ # users from anywhere, both for online and batch prediction.
1047
+ # * The region for a batch prediction job is set by the region field when
1048
+ # submitting the batch prediction job and does not take its value from
1049
+ # this field.
1050
+ # Corresponds to the JSON property `regions`
1051
+ # @return [Array<String>]
1052
+ attr_accessor :regions
820
1053
 
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
1054
+ # Required. The name specified for the model when it was created.
1055
+ # The model name must be unique within the project it is created in.
1056
+ # Corresponds to the JSON property `name`
1057
+ # @return [String]
1058
+ attr_accessor :name
830
1059
 
831
- # The trial id for these results.
832
- # Corresponds to the JSON property `trialId`
1060
+ # Optional. The description specified for the model when it was created.
1061
+ # Corresponds to the JSON property `description`
833
1062
  # @return [String]
834
- attr_accessor :trial_id
1063
+ attr_accessor :description
1064
+
1065
+ # Optional. If true, enables StackDriver Logging for online prediction.
1066
+ # Default is false.
1067
+ # Corresponds to the JSON property `onlinePredictionLogging`
1068
+ # @return [Boolean]
1069
+ attr_accessor :online_prediction_logging
1070
+ alias_method :online_prediction_logging?, :online_prediction_logging
1071
+
1072
+ # Represents a version of the model.
1073
+ # Each version is a trained model deployed in the cloud, ready to handle
1074
+ # prediction requests. A model can have multiple versions. You can get
1075
+ # information about all of the versions of a given model by calling
1076
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
1077
+ # versions/list).
1078
+ # Corresponds to the JSON property `defaultVersion`
1079
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
1080
+ attr_accessor :default_version
835
1081
 
836
1082
  def initialize(**args)
837
1083
  update!(**args)
@@ -839,70 +1085,47 @@ module Google
839
1085
 
840
1086
  # Update properties of this object
841
1087
  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)
1088
+ @regions = args[:regions] if args.key?(:regions)
1089
+ @name = args[:name] if args.key?(:name)
1090
+ @description = args[:description] if args.key?(:description)
1091
+ @online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging)
1092
+ @default_version = args[:default_version] if args.key?(:default_version)
846
1093
  end
847
1094
  end
848
1095
 
849
- # Options for automatically scaling a model.
850
- class GoogleCloudMlV1AutomaticScaling
1096
+ # A generic empty message that you can re-use to avoid defining duplicated
1097
+ # empty messages in your APIs. A typical example is to use it as the request
1098
+ # or the response type of an API method. For instance:
1099
+ # service Foo `
1100
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1101
+ # `
1102
+ # The JSON representation for `Empty` is empty JSON object ````.
1103
+ class GoogleProtobufEmpty
851
1104
  include Google::Apis::Core::Hashable
852
1105
 
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
1106
  def initialize(**args)
874
1107
  update!(**args)
875
1108
  end
876
1109
 
877
1110
  # Update properties of this object
878
1111
  def update!(**args)
879
- @min_nodes = args[:min_nodes] if args.key?(:min_nodes)
880
1112
  end
881
1113
  end
882
1114
 
883
- # Represents results of a prediction job.
884
- class GoogleCloudMlV1PredictionOutput
1115
+ # Response message for the ListVersions method.
1116
+ class GoogleCloudMlV1ListVersionsResponse
885
1117
  include Google::Apis::Core::Hashable
886
1118
 
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
1119
+ # The list of versions.
1120
+ # Corresponds to the JSON property `versions`
1121
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Version>]
1122
+ attr_accessor :versions
891
1123
 
892
- # The output Google Cloud Storage location provided at the job creation time.
893
- # Corresponds to the JSON property `outputPath`
1124
+ # Optional. Pass this token as the `page_token` field of the request for a
1125
+ # subsequent call.
1126
+ # Corresponds to the JSON property `nextPageToken`
894
1127
  # @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
1128
+ attr_accessor :next_page_token
906
1129
 
907
1130
  def initialize(**args)
908
1131
  update!(**args)
@@ -910,60 +1133,35 @@ module Google
910
1133
 
911
1134
  # Update properties of this object
912
1135
  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)
1136
+ @versions = args[:versions] if args.key?(:versions)
1137
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
917
1138
  end
918
1139
  end
919
1140
 
920
- # Options for automatically scaling a model.
921
- class GoogleCloudMlV1beta1AutomaticScaling
1141
+ # Request message for the CancelJob method.
1142
+ class GoogleCloudMlV1CancelJobRequest
922
1143
  include Google::Apis::Core::Hashable
923
1144
 
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
1145
  def initialize(**args)
945
1146
  update!(**args)
946
1147
  end
947
1148
 
948
1149
  # Update properties of this object
949
1150
  def update!(**args)
950
- @min_nodes = args[:min_nodes] if args.key?(:min_nodes)
951
1151
  end
952
1152
  end
953
1153
 
954
- # The response message for Operations.ListOperations.
955
- class GoogleLongrunningListOperationsResponse
1154
+ # Request message for `TestIamPermissions` method.
1155
+ class GoogleIamV1TestIamPermissionsRequest
956
1156
  include Google::Apis::Core::Hashable
957
1157
 
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
1158
+ # The set of permissions to check for the `resource`. Permissions with
1159
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
1160
+ # information see
1161
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1162
+ # Corresponds to the JSON property `permissions`
1163
+ # @return [Array<String>]
1164
+ attr_accessor :permissions
967
1165
 
968
1166
  def initialize(**args)
969
1167
  update!(**args)
@@ -971,19 +1169,18 @@ module Google
971
1169
 
972
1170
  # Update properties of this object
973
1171
  def update!(**args)
974
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
975
- @operations = args[:operations] if args.key?(:operations)
1172
+ @permissions = args[:permissions] if args.key?(:permissions)
976
1173
  end
977
1174
  end
978
1175
 
979
1176
  # Options for manually scaling a model.
980
- class GoogleCloudMlV1ManualScaling
1177
+ class GoogleCloudMlV1beta1ManualScaling
981
1178
  include Google::Apis::Core::Hashable
982
1179
 
983
1180
  # The number of nodes to allocate for this model. These nodes are always up,
984
1181
  # starting from the time the model is deployed, so the cost of operating
985
1182
  # this model will be proportional to `nodes` * number of hours since
986
- # last billing cycle plus the cost for each prediction performed.
1183
+ # last billing cycle.
987
1184
  # Corresponds to the JSON property `nodes`
988
1185
  # @return [Fixnum]
989
1186
  attr_accessor :nodes
@@ -998,32 +1195,96 @@ module Google
998
1195
  end
999
1196
  end
1000
1197
 
1001
- # Represents results of a training job. Output only.
1002
- class GoogleCloudMlV1TrainingOutput
1198
+ # Specifies what kind of log the caller must write
1199
+ class GoogleIamV1LogConfig
1003
1200
  include Google::Apis::Core::Hashable
1004
1201
 
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
1202
+ # Options for counters
1203
+ # Corresponds to the JSON property `counter`
1204
+ # @return [Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions]
1205
+ attr_accessor :counter
1010
1206
 
1011
- # The number of hyperparameter tuning trials that completed successfully.
1012
- # Only set for hyperparameter tuning jobs.
1013
- # Corresponds to the JSON property `completedTrialCount`
1207
+ # Write a Data Access (Gin) log
1208
+ # Corresponds to the JSON property `dataAccess`
1209
+ # @return [Google::Apis::MlV1::GoogleIamV1LogConfigDataAccessOptions]
1210
+ attr_accessor :data_access
1211
+
1212
+ # Write a Cloud Audit log
1213
+ # Corresponds to the JSON property `cloudAudit`
1214
+ # @return [Google::Apis::MlV1::GoogleIamV1LogConfigCloudAuditOptions]
1215
+ attr_accessor :cloud_audit
1216
+
1217
+ def initialize(**args)
1218
+ update!(**args)
1219
+ end
1220
+
1221
+ # Update properties of this object
1222
+ def update!(**args)
1223
+ @counter = args[:counter] if args.key?(:counter)
1224
+ @data_access = args[:data_access] if args.key?(:data_access)
1225
+ @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
1226
+ end
1227
+ end
1228
+
1229
+ # The `Status` type defines a logical error model that is suitable for different
1230
+ # programming environments, including REST APIs and RPC APIs. It is used by
1231
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1232
+ # - Simple to use and understand for most users
1233
+ # - Flexible enough to meet unexpected needs
1234
+ # # Overview
1235
+ # The `Status` message contains three pieces of data: error code, error message,
1236
+ # and error details. The error code should be an enum value of
1237
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1238
+ # error message should be a developer-facing English message that helps
1239
+ # developers *understand* and *resolve* the error. If a localized user-facing
1240
+ # error message is needed, put the localized message in the error details or
1241
+ # localize it in the client. The optional error details may contain arbitrary
1242
+ # information about the error. There is a predefined set of error detail types
1243
+ # in the package `google.rpc` that can be used for common error conditions.
1244
+ # # Language mapping
1245
+ # The `Status` message is the logical representation of the error model, but it
1246
+ # is not necessarily the actual wire format. When the `Status` message is
1247
+ # exposed in different client libraries and different wire protocols, it can be
1248
+ # mapped differently. For example, it will likely be mapped to some exceptions
1249
+ # in Java, but more likely mapped to some error codes in C.
1250
+ # # Other uses
1251
+ # The error model and the `Status` message can be used in a variety of
1252
+ # environments, either with or without APIs, to provide a
1253
+ # consistent developer experience across different environments.
1254
+ # Example uses of this error model include:
1255
+ # - Partial errors. If a service needs to return partial errors to the client,
1256
+ # it may embed the `Status` in the normal response to indicate the partial
1257
+ # errors.
1258
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1259
+ # have a `Status` message for error reporting.
1260
+ # - Batch operations. If a client uses batch request and batch response, the
1261
+ # `Status` message should be used directly inside batch response, one for
1262
+ # each error sub-response.
1263
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1264
+ # results in its response, the status of those operations should be
1265
+ # represented directly using the `Status` message.
1266
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1267
+ # be used directly after any stripping needed for security/privacy reasons.
1268
+ class GoogleRpcStatus
1269
+ include Google::Apis::Core::Hashable
1270
+
1271
+ # The status code, which should be an enum value of google.rpc.Code.
1272
+ # Corresponds to the JSON property `code`
1014
1273
  # @return [Fixnum]
1015
- attr_accessor :completed_trial_count
1274
+ attr_accessor :code
1016
1275
 
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
1276
+ # A developer-facing error message, which should be in English. Any
1277
+ # user-facing error message should be localized and sent in the
1278
+ # google.rpc.Status.details field, or localized by the client.
1279
+ # Corresponds to the JSON property `message`
1280
+ # @return [String]
1281
+ attr_accessor :message
1022
1282
 
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
1283
+ # A list of messages that carry the error details. There will be a
1284
+ # common set of message types for APIs to use.
1285
+ # Corresponds to the JSON property `details`
1286
+ # @return [Array<Hash<String,Object>>]
1287
+ attr_accessor :details
1027
1288
 
1028
1289
  def initialize(**args)
1029
1290
  update!(**args)
@@ -1031,225 +1292,554 @@ module Google
1031
1292
 
1032
1293
  # Update properties of this object
1033
1294
  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)
1295
+ @code = args[:code] if args.key?(:code)
1296
+ @message = args[:message] if args.key?(:message)
1297
+ @details = args[:details] if args.key?(:details)
1038
1298
  end
1039
1299
  end
1040
1300
 
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": [
1301
+ # Response message for the ListModels method.
1302
+ class GoogleCloudMlV1ListModelsResponse
1303
+ include Google::Apis::Core::Hashable
1304
+
1305
+ # Optional. Pass this token as the `page_token` field of the request for a
1306
+ # subsequent call.
1307
+ # Corresponds to the JSON property `nextPageToken`
1308
+ # @return [String]
1309
+ attr_accessor :next_page_token
1310
+
1311
+ # The list of models.
1312
+ # Corresponds to the JSON property `models`
1313
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Model>]
1314
+ attr_accessor :models
1315
+
1316
+ def initialize(**args)
1317
+ update!(**args)
1318
+ end
1319
+
1320
+ # Update properties of this object
1321
+ def update!(**args)
1322
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1323
+ @models = args[:models] if args.key?(:models)
1324
+ end
1325
+ end
1326
+
1327
+ # Represents input parameters for a training job.
1328
+ class GoogleCloudMlV1TrainingInput
1329
+ include Google::Apis::Core::Hashable
1330
+
1331
+ # Optional. The number of worker replicas to use for the training job. Each
1332
+ # replica in the cluster will be of the type specified in `worker_type`.
1333
+ # This value can only be used when `scale_tier` is set to `CUSTOM`. If you
1334
+ # set this value, you must also set `worker_type`.
1335
+ # Corresponds to the JSON property `workerCount`
1336
+ # @return [Fixnum]
1337
+ attr_accessor :worker_count
1338
+
1339
+ # Optional. Specifies the type of virtual machine to use for your training
1340
+ # job's master worker.
1341
+ # The following types are supported:
1342
+ # <dl>
1343
+ # <dt>standard</dt>
1344
+ # <dd>
1345
+ # A basic machine configuration suitable for training simple models with
1346
+ # small to moderate datasets.
1347
+ # </dd>
1348
+ # <dt>large_model</dt>
1349
+ # <dd>
1350
+ # A machine with a lot of memory, specially suited for parameter servers
1351
+ # when your model is large (having many hidden layers or layers with very
1352
+ # large numbers of nodes).
1353
+ # </dd>
1354
+ # <dt>complex_model_s</dt>
1355
+ # <dd>
1356
+ # A machine suitable for the master and workers of the cluster when your
1357
+ # model requires more computation than the standard machine can handle
1358
+ # satisfactorily.
1359
+ # </dd>
1360
+ # <dt>complex_model_m</dt>
1361
+ # <dd>
1362
+ # A machine with roughly twice the number of cores and roughly double the
1363
+ # memory of <code suppresswarning="true">complex_model_s</code>.
1364
+ # </dd>
1365
+ # <dt>complex_model_l</dt>
1366
+ # <dd>
1367
+ # A machine with roughly twice the number of cores and roughly double the
1368
+ # memory of <code suppresswarning="true">complex_model_m</code>.
1369
+ # </dd>
1370
+ # <dt>standard_gpu</dt>
1371
+ # <dd>
1372
+ # A machine equivalent to <code suppresswarning="true">standard</code> that
1373
+ # also includes a
1374
+ # <a href="/ml-engine/docs/how-tos/using-gpus">
1375
+ # GPU that you can use in your trainer</a>.
1376
+ # </dd>
1377
+ # <dt>complex_model_m_gpu</dt>
1378
+ # <dd>
1379
+ # A machine equivalent to
1380
+ # <code suppresswarning="true">complex_model_m</code> that also includes
1381
+ # four GPUs.
1382
+ # </dd>
1383
+ # </dl>
1384
+ # You must set this value when `scaleTier` is set to `CUSTOM`.
1385
+ # Corresponds to the JSON property `masterType`
1386
+ # @return [String]
1387
+ attr_accessor :master_type
1388
+
1389
+ # Optional. The Google Cloud ML runtime version to use for training. If not
1390
+ # set, Google Cloud ML will choose the latest stable version.
1391
+ # Corresponds to the JSON property `runtimeVersion`
1392
+ # @return [String]
1393
+ attr_accessor :runtime_version
1394
+
1395
+ # Required. The Python module name to run after installing the packages.
1396
+ # Corresponds to the JSON property `pythonModule`
1397
+ # @return [String]
1398
+ attr_accessor :python_module
1399
+
1400
+ # Required. The Google Compute Engine region to run the training job in.
1401
+ # Corresponds to the JSON property `region`
1402
+ # @return [String]
1403
+ attr_accessor :region
1404
+
1405
+ # Optional. Command line arguments to pass to the program.
1406
+ # Corresponds to the JSON property `args`
1407
+ # @return [Array<String>]
1408
+ attr_accessor :args
1409
+
1410
+ # Optional. Specifies the type of virtual machine to use for your training
1411
+ # job's worker nodes.
1412
+ # The supported values are the same as those described in the entry for
1413
+ # `masterType`.
1414
+ # This value must be present when `scaleTier` is set to `CUSTOM` and
1415
+ # `workerCount` is greater than zero.
1416
+ # Corresponds to the JSON property `workerType`
1417
+ # @return [String]
1418
+ attr_accessor :worker_type
1419
+
1420
+ # Optional. Specifies the type of virtual machine to use for your training
1421
+ # job's parameter server.
1422
+ # The supported values are the same as those described in the entry for
1423
+ # `master_type`.
1424
+ # This value must be present when `scaleTier` is set to `CUSTOM` and
1425
+ # `parameter_server_count` is greater than zero.
1426
+ # Corresponds to the JSON property `parameterServerType`
1427
+ # @return [String]
1428
+ attr_accessor :parameter_server_type
1429
+
1430
+ # Required. Specifies the machine types, the number of replicas for workers
1431
+ # and parameter servers.
1432
+ # Corresponds to the JSON property `scaleTier`
1433
+ # @return [String]
1434
+ attr_accessor :scale_tier
1435
+
1436
+ # Optional. A Google Cloud Storage path in which to store training outputs
1437
+ # and other data needed for training. This path is passed to your TensorFlow
1438
+ # program as the 'job_dir' command-line argument. The benefit of specifying
1439
+ # this field is that Cloud ML validates the path for use in training.
1440
+ # Corresponds to the JSON property `jobDir`
1441
+ # @return [String]
1442
+ attr_accessor :job_dir
1443
+
1444
+ # Represents a set of hyperparameters to optimize.
1445
+ # Corresponds to the JSON property `hyperparameters`
1446
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec]
1447
+ attr_accessor :hyperparameters
1448
+
1449
+ # Optional. The number of parameter server replicas to use for the training
1450
+ # job. Each replica in the cluster will be of the type specified in
1451
+ # `parameter_server_type`.
1452
+ # This value can only be used when `scale_tier` is set to `CUSTOM`.If you
1453
+ # set this value, you must also set `parameter_server_type`.
1454
+ # Corresponds to the JSON property `parameterServerCount`
1455
+ # @return [Fixnum]
1456
+ attr_accessor :parameter_server_count
1457
+
1458
+ # Required. The Google Cloud Storage location of the packages with
1459
+ # the training program and any additional dependencies.
1460
+ # The maximum number of package URIs is 100.
1461
+ # Corresponds to the JSON property `packageUris`
1462
+ # @return [Array<String>]
1463
+ attr_accessor :package_uris
1464
+
1465
+ def initialize(**args)
1466
+ update!(**args)
1467
+ end
1468
+
1469
+ # Update properties of this object
1470
+ def update!(**args)
1471
+ @worker_count = args[:worker_count] if args.key?(:worker_count)
1472
+ @master_type = args[:master_type] if args.key?(:master_type)
1473
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
1474
+ @python_module = args[:python_module] if args.key?(:python_module)
1475
+ @region = args[:region] if args.key?(:region)
1476
+ @args = args[:args] if args.key?(:args)
1477
+ @worker_type = args[:worker_type] if args.key?(:worker_type)
1478
+ @parameter_server_type = args[:parameter_server_type] if args.key?(:parameter_server_type)
1479
+ @scale_tier = args[:scale_tier] if args.key?(:scale_tier)
1480
+ @job_dir = args[:job_dir] if args.key?(:job_dir)
1481
+ @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
1482
+ @parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count)
1483
+ @package_uris = args[:package_uris] if args.key?(:package_uris)
1484
+ end
1485
+ end
1486
+
1487
+ # Represents a training or prediction job.
1488
+ class GoogleCloudMlV1Job
1489
+ include Google::Apis::Core::Hashable
1490
+
1491
+ # Output only. When the job processing was completed.
1492
+ # Corresponds to the JSON property `endTime`
1493
+ # @return [String]
1494
+ attr_accessor :end_time
1495
+
1496
+ # Output only. When the job processing was started.
1497
+ # Corresponds to the JSON property `startTime`
1498
+ # @return [String]
1499
+ attr_accessor :start_time
1500
+
1501
+ # Represents results of a prediction job.
1502
+ # Corresponds to the JSON property `predictionOutput`
1503
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput]
1504
+ attr_accessor :prediction_output
1505
+
1506
+ # Represents results of a training job. Output only.
1507
+ # Corresponds to the JSON property `trainingOutput`
1508
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput]
1509
+ attr_accessor :training_output
1510
+
1511
+ # Output only. When the job was created.
1512
+ # Corresponds to the JSON property `createTime`
1513
+ # @return [String]
1514
+ attr_accessor :create_time
1515
+
1516
+ # Represents input parameters for a training job.
1517
+ # Corresponds to the JSON property `trainingInput`
1518
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput]
1519
+ attr_accessor :training_input
1520
+
1521
+ # Represents input parameters for a prediction job.
1522
+ # Corresponds to the JSON property `predictionInput`
1523
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput]
1524
+ attr_accessor :prediction_input
1525
+
1526
+ # Output only. The detailed state of a job.
1527
+ # Corresponds to the JSON property `state`
1528
+ # @return [String]
1529
+ attr_accessor :state
1530
+
1531
+ # Output only. The details of a failure or a cancellation.
1532
+ # Corresponds to the JSON property `errorMessage`
1533
+ # @return [String]
1534
+ attr_accessor :error_message
1535
+
1536
+ # Required. The user-specified id of the job.
1537
+ # Corresponds to the JSON property `jobId`
1538
+ # @return [String]
1539
+ attr_accessor :job_id
1540
+
1541
+ def initialize(**args)
1542
+ update!(**args)
1543
+ end
1544
+
1545
+ # Update properties of this object
1546
+ def update!(**args)
1547
+ @end_time = args[:end_time] if args.key?(:end_time)
1548
+ @start_time = args[:start_time] if args.key?(:start_time)
1549
+ @prediction_output = args[:prediction_output] if args.key?(:prediction_output)
1550
+ @training_output = args[:training_output] if args.key?(:training_output)
1551
+ @create_time = args[:create_time] if args.key?(:create_time)
1552
+ @training_input = args[:training_input] if args.key?(:training_input)
1553
+ @prediction_input = args[:prediction_input] if args.key?(:prediction_input)
1554
+ @state = args[:state] if args.key?(:state)
1555
+ @error_message = args[:error_message] if args.key?(:error_message)
1556
+ @job_id = args[:job_id] if args.key?(:job_id)
1557
+ end
1558
+ end
1559
+
1560
+ # Message that represents an arbitrary HTTP body. It should only be used for
1561
+ # payload formats that can't be represented as JSON, such as raw binary or
1562
+ # an HTML page.
1563
+ # This message can be used both in streaming and non-streaming API methods in
1564
+ # the request as well as the response.
1565
+ # It can be used as a top-level request field, which is convenient if one
1566
+ # wants to extract parameters from either the URL or HTTP template into the
1567
+ # request fields and also want access to the raw HTTP body.
1568
+ # Example:
1569
+ # message GetResourceRequest `
1570
+ # // A unique request id.
1571
+ # string request_id = 1;
1572
+ # // The raw HTTP body is bound to this field.
1573
+ # google.api.HttpBody http_body = 2;
1179
1574
  # `
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
- # `,
1575
+ # service ResourceService `
1576
+ # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
1577
+ # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
1195
1578
  # `
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
- # ]
1579
+ # Example with streaming methods:
1580
+ # service CaldavService `
1581
+ # rpc GetCalendar(stream google.api.HttpBody)
1582
+ # returns (stream google.api.HttpBody);
1583
+ # rpc UpdateCalendar(stream google.api.HttpBody)
1584
+ # returns (stream google.api.HttpBody);
1213
1585
  # `
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
1586
+ # Use of this type only changes how the request and response bodies are
1587
+ # handled, all other features will continue to work unchanged.
1588
+ class GoogleApiHttpBody
1220
1589
  include Google::Apis::Core::Hashable
1221
1590
 
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;
1591
+ # Application specific response metadata. Must be set in the first response
1592
+ # for streaming APIs.
1593
+ # Corresponds to the JSON property `extensions`
1594
+ # @return [Array<Hash<String,Object>>]
1595
+ attr_accessor :extensions
1596
+
1597
+ # HTTP body binary data.
1598
+ # Corresponds to the JSON property `data`
1599
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1600
+ # @return [String]
1601
+ attr_accessor :data
1602
+
1603
+ # The HTTP Content-Type string representing the content type of the body.
1604
+ # Corresponds to the JSON property `contentType`
1605
+ # @return [String]
1606
+ attr_accessor :content_type
1607
+
1608
+ def initialize(**args)
1609
+ update!(**args)
1610
+ end
1611
+
1612
+ # Update properties of this object
1613
+ def update!(**args)
1614
+ @extensions = args[:extensions] if args.key?(:extensions)
1615
+ @data = args[:data] if args.key?(:data)
1616
+ @content_type = args[:content_type] if args.key?(:content_type)
1617
+ end
1618
+ end
1619
+
1620
+ # Represents a version of the model.
1621
+ # Each version is a trained model deployed in the cloud, ready to handle
1622
+ # prediction requests. A model can have multiple versions. You can get
1623
+ # information about all of the versions of a given model by calling
1624
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
1625
+ # models.versions/list).
1626
+ class GoogleCloudMlV1beta1Version
1627
+ include Google::Apis::Core::Hashable
1628
+
1629
+ # Options for automatically scaling a model.
1630
+ # Corresponds to the JSON property `automaticScaling`
1631
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1AutomaticScaling]
1632
+ attr_accessor :automatic_scaling
1633
+
1634
+ # Optional. The Google Cloud ML runtime version to use for this deployment.
1635
+ # If not set, Google Cloud ML will choose a version.
1636
+ # Corresponds to the JSON property `runtimeVersion`
1637
+ # @return [String]
1638
+ attr_accessor :runtime_version
1639
+
1640
+ # Output only. The time the version was last used for prediction.
1641
+ # Corresponds to the JSON property `lastUseTime`
1642
+ # @return [String]
1643
+ attr_accessor :last_use_time
1644
+
1645
+ # Optional. The description specified for the version when it was created.
1646
+ # Corresponds to the JSON property `description`
1647
+ # @return [String]
1648
+ attr_accessor :description
1649
+
1650
+ # Required. The Google Cloud Storage location of the trained model used to
1651
+ # create the version. See the
1652
+ # [overview of model
1653
+ # deployment](/ml-engine/docs/concepts/deployment-overview) for more
1654
+ # informaiton.
1655
+ # When passing Version to
1656
+ # [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects.
1657
+ # models.versions/create)
1658
+ # the model service uses the specified location as the source of the model.
1659
+ # Once deployed, the model version is hosted by the prediction service, so
1660
+ # this location is useful only as a historical record.
1661
+ # The total number of model files can't exceed 1000.
1662
+ # Corresponds to the JSON property `deploymentUri`
1663
+ # @return [String]
1664
+ attr_accessor :deployment_uri
1665
+
1666
+ # Output only. If true, this version will be used to handle prediction
1667
+ # requests that do not specify a version.
1668
+ # You can change the default version by calling
1669
+ # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/
1670
+ # projects.models.versions/setDefault).
1671
+ # Corresponds to the JSON property `isDefault`
1672
+ # @return [Boolean]
1673
+ attr_accessor :is_default
1674
+ alias_method :is_default?, :is_default
1675
+
1676
+ # Output only. The time the version was created.
1677
+ # Corresponds to the JSON property `createTime`
1678
+ # @return [String]
1679
+ attr_accessor :create_time
1680
+
1681
+ # Options for manually scaling a model.
1682
+ # Corresponds to the JSON property `manualScaling`
1683
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling]
1684
+ attr_accessor :manual_scaling
1685
+
1686
+ # Output only. The state of a version.
1687
+ # Corresponds to the JSON property `state`
1688
+ # @return [String]
1689
+ attr_accessor :state
1690
+
1691
+ # Required.The name specified for the version when it was created.
1692
+ # The version name must be unique within the model it is created in.
1693
+ # Corresponds to the JSON property `name`
1694
+ # @return [String]
1695
+ attr_accessor :name
1696
+
1697
+ def initialize(**args)
1698
+ update!(**args)
1699
+ end
1700
+
1701
+ # Update properties of this object
1702
+ def update!(**args)
1703
+ @automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling)
1704
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
1705
+ @last_use_time = args[:last_use_time] if args.key?(:last_use_time)
1706
+ @description = args[:description] if args.key?(:description)
1707
+ @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri)
1708
+ @is_default = args[:is_default] if args.key?(:is_default)
1709
+ @create_time = args[:create_time] if args.key?(:create_time)
1710
+ @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
1711
+ @state = args[:state] if args.key?(:state)
1712
+ @name = args[:name] if args.key?(:name)
1713
+ end
1714
+ end
1715
+
1716
+ # Returns service account information associated with a project.
1717
+ class GoogleCloudMlV1GetConfigResponse
1718
+ include Google::Apis::Core::Hashable
1719
+
1720
+ # The project number for `service_account`.
1721
+ # Corresponds to the JSON property `serviceAccountProject`
1722
+ # @return [Fixnum]
1723
+ attr_accessor :service_account_project
1724
+
1725
+ # The service account Cloud ML uses to access resources in the project.
1726
+ # Corresponds to the JSON property `serviceAccount`
1727
+ # @return [String]
1728
+ attr_accessor :service_account
1729
+
1730
+ def initialize(**args)
1731
+ update!(**args)
1732
+ end
1733
+
1734
+ # Update properties of this object
1735
+ def update!(**args)
1736
+ @service_account_project = args[:service_account_project] if args.key?(:service_account_project)
1737
+ @service_account = args[:service_account] if args.key?(:service_account)
1738
+ end
1739
+ end
1740
+
1741
+ # Response message for `TestIamPermissions` method.
1742
+ class GoogleIamV1TestIamPermissionsResponse
1743
+ include Google::Apis::Core::Hashable
1744
+
1745
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
1746
+ # allowed.
1747
+ # Corresponds to the JSON property `permissions`
1748
+ # @return [Array<String>]
1749
+ attr_accessor :permissions
1750
+
1751
+ def initialize(**args)
1752
+ update!(**args)
1753
+ end
1754
+
1755
+ # Update properties of this object
1756
+ def update!(**args)
1757
+ @permissions = args[:permissions] if args.key?(:permissions)
1758
+ end
1759
+ end
1760
+
1761
+ # Represents the result of a single hyperparameter tuning trial from a
1762
+ # training job. The TrainingOutput object that is returned on successful
1763
+ # completion of a training job with hyperparameter tuning includes a list
1764
+ # of HyperparameterOutput objects, one for each successful trial.
1765
+ class GoogleCloudMlV1HyperparameterOutput
1766
+ include Google::Apis::Core::Hashable
1767
+
1768
+ # An observed value of a metric.
1769
+ # Corresponds to the JSON property `finalMetric`
1770
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric]
1771
+ attr_accessor :final_metric
1772
+
1773
+ # The hyperparameters given to this trial.
1774
+ # Corresponds to the JSON property `hyperparameters`
1775
+ # @return [Hash<String,String>]
1776
+ attr_accessor :hyperparameters
1777
+
1778
+ # The trial id for these results.
1779
+ # Corresponds to the JSON property `trialId`
1780
+ # @return [String]
1781
+ attr_accessor :trial_id
1782
+
1783
+ # All recorded object metrics for this trial.
1784
+ # Corresponds to the JSON property `allMetrics`
1785
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>]
1786
+ attr_accessor :all_metrics
1787
+
1788
+ def initialize(**args)
1789
+ update!(**args)
1790
+ end
1791
+
1792
+ # Update properties of this object
1793
+ def update!(**args)
1794
+ @final_metric = args[:final_metric] if args.key?(:final_metric)
1795
+ @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
1796
+ @trial_id = args[:trial_id] if args.key?(:trial_id)
1797
+ @all_metrics = args[:all_metrics] if args.key?(:all_metrics)
1798
+ end
1799
+ end
1800
+
1801
+ # Request message for `SetIamPolicy` method.
1802
+ class GoogleIamV1SetIamPolicyRequest
1803
+ include Google::Apis::Core::Hashable
1804
+
1805
+ # Defines an Identity and Access Management (IAM) policy. It is used to
1806
+ # specify access control policies for Cloud Platform resources.
1807
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
1808
+ # `members` to a `role`, where the members can be user accounts, Google groups,
1809
+ # Google domains, and service accounts. A `role` is a named list of permissions
1810
+ # defined by IAM.
1811
+ # **Example**
1236
1812
  # `
1237
- # service ResourceService `
1238
- # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
1239
- # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
1813
+ # "bindings": [
1240
1814
  # `
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);
1815
+ # "role": "roles/owner",
1816
+ # "members": [
1817
+ # "user:mike@example.com",
1818
+ # "group:admins@example.com",
1819
+ # "domain:google.com",
1820
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
1821
+ # ]
1822
+ # `,
1247
1823
  # `
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
1824
+ # "role": "roles/viewer",
1825
+ # "members": ["user:sean@example.com"]
1826
+ # `
1827
+ # ]
1828
+ # `
1829
+ # For a description of IAM and its features, see the
1830
+ # [IAM developer's guide](https://cloud.google.com/iam).
1831
+ # Corresponds to the JSON property `policy`
1832
+ # @return [Google::Apis::MlV1::GoogleIamV1Policy]
1833
+ attr_accessor :policy
1834
+
1835
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1836
+ # the fields in the mask will be modified. If no mask is provided, the
1837
+ # following default mask is used:
1838
+ # paths: "bindings, etag"
1839
+ # This field is only used by Cloud IAM.
1840
+ # Corresponds to the JSON property `updateMask`
1841
+ # @return [String]
1842
+ attr_accessor :update_mask
1253
1843
 
1254
1844
  def initialize(**args)
1255
1845
  update!(**args)
@@ -1257,23 +1847,34 @@ module Google
1257
1847
 
1258
1848
  # Update properties of this object
1259
1849
  def update!(**args)
1260
- @http_body = args[:http_body] if args.key?(:http_body)
1850
+ @policy = args[:policy] if args.key?(:policy)
1851
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1261
1852
  end
1262
1853
  end
1263
1854
 
1264
- # An observed value of a metric.
1265
- class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
1855
+ # Options for automatically scaling a model.
1856
+ class GoogleCloudMlV1AutomaticScaling
1266
1857
  include Google::Apis::Core::Hashable
1267
1858
 
1268
- # The global training step for this metric.
1269
- # Corresponds to the JSON property `trainingStep`
1859
+ # Optional. The minimum number of nodes to allocate for this model. These
1860
+ # nodes are always up, starting from the time the model is deployed, so the
1861
+ # cost of operating this model will be at least
1862
+ # `rate` * `min_nodes` * number of hours since last billing cycle,
1863
+ # where `rate` is the cost per node-hour as documented in
1864
+ # [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing),
1865
+ # even if no predictions are performed. There is additional cost for each
1866
+ # prediction performed.
1867
+ # Unlike manual scaling, if the load gets too heavy for the nodes
1868
+ # that are up, the service will automatically add nodes to handle the
1869
+ # increased load as well as scale back as traffic drops, always maintaining
1870
+ # at least `min_nodes`. You will be charged for the time in which additional
1871
+ # nodes are used.
1872
+ # If not specified, `min_nodes` defaults to 0, in which case, when traffic
1873
+ # to a model stops (and after a cool-down period), nodes will be shut down
1874
+ # and no charges will be incurred until traffic to the model resumes.
1875
+ # Corresponds to the JSON property `minNodes`
1270
1876
  # @return [Fixnum]
1271
- attr_accessor :training_step
1272
-
1273
- # The objective value at this training step.
1274
- # Corresponds to the JSON property `objectiveValue`
1275
- # @return [Float]
1276
- attr_accessor :objective_value
1877
+ attr_accessor :min_nodes
1277
1878
 
1278
1879
  def initialize(**args)
1279
1880
  update!(**args)
@@ -1281,82 +1882,124 @@ module Google
1281
1882
 
1282
1883
  # Update properties of this object
1283
1884
  def update!(**args)
1284
- @training_step = args[:training_step] if args.key?(:training_step)
1285
- @objective_value = args[:objective_value] if args.key?(:objective_value)
1885
+ @min_nodes = args[:min_nodes] if args.key?(:min_nodes)
1286
1886
  end
1287
1887
  end
1288
1888
 
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
1889
+ # Represents results of a prediction job.
1890
+ class GoogleCloudMlV1PredictionOutput
1296
1891
  include Google::Apis::Core::Hashable
1297
1892
 
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
1893
+ # The number of data instances which resulted in errors.
1894
+ # Corresponds to the JSON property `errorCount`
1895
+ # @return [Fixnum]
1896
+ attr_accessor :error_count
1302
1897
 
1303
- # Output only. The time the version was last used for prediction.
1304
- # Corresponds to the JSON property `lastUseTime`
1898
+ # The output Google Cloud Storage location provided at the job creation time.
1899
+ # Corresponds to the JSON property `outputPath`
1305
1900
  # @return [String]
1306
- attr_accessor :last_use_time
1901
+ attr_accessor :output_path
1307
1902
 
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
1903
+ # Node hours used by the batch prediction job.
1904
+ # Corresponds to the JSON property `nodeHours`
1905
+ # @return [Float]
1906
+ attr_accessor :node_hours
1313
1907
 
1314
- # Optional. The description specified for the version when it was created.
1315
- # Corresponds to the JSON property `description`
1316
- # @return [String]
1317
- attr_accessor :description
1908
+ # The number of generated predictions.
1909
+ # Corresponds to the JSON property `predictionCount`
1910
+ # @return [Fixnum]
1911
+ attr_accessor :prediction_count
1318
1912
 
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`
1332
- # @return [String]
1333
- attr_accessor :deployment_uri
1913
+ def initialize(**args)
1914
+ update!(**args)
1915
+ end
1334
1916
 
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
1917
+ # Update properties of this object
1918
+ def update!(**args)
1919
+ @error_count = args[:error_count] if args.key?(:error_count)
1920
+ @output_path = args[:output_path] if args.key?(:output_path)
1921
+ @node_hours = args[:node_hours] if args.key?(:node_hours)
1922
+ @prediction_count = args[:prediction_count] if args.key?(:prediction_count)
1923
+ end
1924
+ end
1344
1925
 
1345
- # Output only. The time the version was created.
1346
- # Corresponds to the JSON property `createTime`
1926
+ # Defines an Identity and Access Management (IAM) policy. It is used to
1927
+ # specify access control policies for Cloud Platform resources.
1928
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
1929
+ # `members` to a `role`, where the members can be user accounts, Google groups,
1930
+ # Google domains, and service accounts. A `role` is a named list of permissions
1931
+ # defined by IAM.
1932
+ # **Example**
1933
+ # `
1934
+ # "bindings": [
1935
+ # `
1936
+ # "role": "roles/owner",
1937
+ # "members": [
1938
+ # "user:mike@example.com",
1939
+ # "group:admins@example.com",
1940
+ # "domain:google.com",
1941
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
1942
+ # ]
1943
+ # `,
1944
+ # `
1945
+ # "role": "roles/viewer",
1946
+ # "members": ["user:sean@example.com"]
1947
+ # `
1948
+ # ]
1949
+ # `
1950
+ # For a description of IAM and its features, see the
1951
+ # [IAM developer's guide](https://cloud.google.com/iam).
1952
+ class GoogleIamV1Policy
1953
+ include Google::Apis::Core::Hashable
1954
+
1955
+ # `etag` is used for optimistic concurrency control as a way to help
1956
+ # prevent simultaneous updates of a policy from overwriting each other.
1957
+ # It is strongly suggested that systems make use of the `etag` in the
1958
+ # read-modify-write cycle to perform policy updates in order to avoid race
1959
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1960
+ # systems are expected to put that etag in the request to `setIamPolicy` to
1961
+ # ensure that their change will be applied to the same version of the policy.
1962
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
1963
+ # policy is overwritten blindly.
1964
+ # Corresponds to the JSON property `etag`
1965
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1347
1966
  # @return [String]
1348
- attr_accessor :create_time
1967
+ attr_accessor :etag
1349
1968
 
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
1969
+ #
1970
+ # Corresponds to the JSON property `iamOwned`
1971
+ # @return [Boolean]
1972
+ attr_accessor :iam_owned
1973
+ alias_method :iam_owned?, :iam_owned
1974
+
1975
+ # If more than one rule is specified, the rules are applied in the following
1976
+ # manner:
1977
+ # - All matching LOG rules are always applied.
1978
+ # - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
1979
+ # Logging will be applied if one or more matching rule requires logging.
1980
+ # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
1981
+ # granted.
1982
+ # Logging will be applied if one or more matching rule requires logging.
1983
+ # - Otherwise, if no rule applies, permission is denied.
1984
+ # Corresponds to the JSON property `rules`
1985
+ # @return [Array<Google::Apis::MlV1::GoogleIamV1Rule>]
1986
+ attr_accessor :rules
1987
+
1988
+ # Version of the `Policy`. The default version is 0.
1989
+ # Corresponds to the JSON property `version`
1990
+ # @return [Fixnum]
1991
+ attr_accessor :version
1354
1992
 
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
1993
+ # Specifies cloud audit logging configuration for this policy.
1994
+ # Corresponds to the JSON property `auditConfigs`
1995
+ # @return [Array<Google::Apis::MlV1::GoogleIamV1AuditConfig>]
1996
+ attr_accessor :audit_configs
1997
+
1998
+ # Associates a list of `members` to a `role`.
1999
+ # `bindings` with no members will result in an error.
2000
+ # Corresponds to the JSON property `bindings`
2001
+ # @return [Array<Google::Apis::MlV1::GoogleIamV1Binding>]
2002
+ attr_accessor :bindings
1360
2003
 
1361
2004
  def initialize(**args)
1362
2005
  update!(**args)
@@ -1364,68 +2007,62 @@ module Google
1364
2007
 
1365
2008
  # Update properties of this object
1366
2009
  def update!(**args)
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)
2010
+ @etag = args[:etag] if args.key?(:etag)
2011
+ @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
2012
+ @rules = args[:rules] if args.key?(:rules)
2013
+ @version = args[:version] if args.key?(:version)
2014
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
2015
+ @bindings = args[:bindings] if args.key?(:bindings)
1376
2016
  end
1377
2017
  end
1378
2018
 
1379
- # Represents a single hyperparameter to optimize.
1380
- class GoogleCloudMlV1ParameterSpec
2019
+ # Options for automatically scaling a model.
2020
+ class GoogleCloudMlV1beta1AutomaticScaling
1381
2021
  include Google::Apis::Core::Hashable
1382
2022
 
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
1389
-
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
2023
+ # Optional. The minimum number of nodes to allocate for this model. These
2024
+ # nodes are always up, starting from the time the model is deployed, so the
2025
+ # cost of operating this model will be at least
2026
+ # `rate` * `min_nodes` * number of hours since last billing cycle,
2027
+ # where `rate` is the cost per node-hour as documented in
2028
+ # [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing),
2029
+ # even if no predictions are performed. There is additional cost for each
2030
+ # prediction performed.
2031
+ # Unlike manual scaling, if the load gets too heavy for the nodes
2032
+ # that are up, the service will automatically add nodes to handle the
2033
+ # increased load as well as scale back as traffic drops, always maintaining
2034
+ # at least `min_nodes`. You will be charged for the time in which additional
2035
+ # nodes are used.
2036
+ # If not specified, `min_nodes` defaults to 0, in which case, when traffic
2037
+ # to a model stops (and after a cool-down period), nodes will be shut down
2038
+ # and no charges will be incurred until traffic to the model resumes.
2039
+ # Corresponds to the JSON property `minNodes`
2040
+ # @return [Fixnum]
2041
+ attr_accessor :min_nodes
1398
2042
 
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`
1404
- # @return [String]
1405
- attr_accessor :scale_type
2043
+ def initialize(**args)
2044
+ update!(**args)
2045
+ end
1406
2046
 
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
2047
+ # Update properties of this object
2048
+ def update!(**args)
2049
+ @min_nodes = args[:min_nodes] if args.key?(:min_nodes)
2050
+ end
2051
+ end
1413
2052
 
1414
- # Required. The type of the parameter.
1415
- # Corresponds to the JSON property `type`
1416
- # @return [String]
1417
- attr_accessor :type
2053
+ # The response message for Operations.ListOperations.
2054
+ class GoogleLongrunningListOperationsResponse
2055
+ include Google::Apis::Core::Hashable
1418
2056
 
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
2057
+ # A list of operations that matches the specified filter in the request.
2058
+ # Corresponds to the JSON property `operations`
2059
+ # @return [Array<Google::Apis::MlV1::GoogleLongrunningOperation>]
2060
+ attr_accessor :operations
1423
2061
 
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`
2062
+ # The standard List next-page token.
2063
+ # Corresponds to the JSON property `nextPageToken`
1427
2064
  # @return [String]
1428
- attr_accessor :parameter_name
2065
+ attr_accessor :next_page_token
1429
2066
 
1430
2067
  def initialize(**args)
1431
2068
  update!(**args)
@@ -1433,77 +2070,72 @@ module Google
1433
2070
 
1434
2071
  # Update properties of this object
1435
2072
  def update!(**args)
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)
2073
+ @operations = args[:operations] if args.key?(:operations)
2074
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1443
2075
  end
1444
2076
  end
1445
2077
 
1446
- # Represents input parameters for a prediction job.
1447
- class GoogleCloudMlV1PredictionInput
2078
+ # A condition to be met.
2079
+ class GoogleIamV1Condition
1448
2080
  include Google::Apis::Core::Hashable
1449
2081
 
1450
- # Required. The Google Compute Engine region to run the prediction job in.
1451
- # Corresponds to the JSON property `region`
2082
+ # An operator to apply the subject with.
2083
+ # Corresponds to the JSON property `op`
1452
2084
  # @return [String]
1453
- attr_accessor :region
2085
+ attr_accessor :op
1454
2086
 
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`
2087
+ # Trusted attributes discharged by the service.
2088
+ # Corresponds to the JSON property `svc`
1461
2089
  # @return [String]
1462
- attr_accessor :version_name
2090
+ attr_accessor :svc
1463
2091
 
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`
2092
+ # DEPRECATED. Use 'values' instead.
2093
+ # Corresponds to the JSON property `value`
1468
2094
  # @return [String]
1469
- attr_accessor :model_name
2095
+ attr_accessor :value
1470
2096
 
1471
- # Required. The output Google Cloud Storage location.
1472
- # Corresponds to the JSON property `outputPath`
2097
+ # Trusted attributes supplied by any service that owns resources and uses
2098
+ # the IAM system for access control.
2099
+ # Corresponds to the JSON property `sys`
1473
2100
  # @return [String]
1474
- attr_accessor :output_path
2101
+ attr_accessor :sys
1475
2102
 
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`
2103
+ # The objects of the condition. This is mutually exclusive with 'value'.
2104
+ # Corresponds to the JSON property `values`
2105
+ # @return [Array<String>]
2106
+ attr_accessor :values
2107
+
2108
+ # Trusted attributes supplied by the IAM system.
2109
+ # Corresponds to the JSON property `iam`
1479
2110
  # @return [String]
1480
- attr_accessor :uri
2111
+ attr_accessor :iam
1481
2112
 
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
2113
+ def initialize(**args)
2114
+ update!(**args)
2115
+ end
1487
2116
 
1488
- # Required. The format of the input data files.
1489
- # Corresponds to the JSON property `dataFormat`
1490
- # @return [String]
1491
- attr_accessor :data_format
2117
+ # Update properties of this object
2118
+ def update!(**args)
2119
+ @op = args[:op] if args.key?(:op)
2120
+ @svc = args[:svc] if args.key?(:svc)
2121
+ @value = args[:value] if args.key?(:value)
2122
+ @sys = args[:sys] if args.key?(:sys)
2123
+ @values = args[:values] if args.key?(:values)
2124
+ @iam = args[:iam] if args.key?(:iam)
2125
+ end
2126
+ end
1492
2127
 
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`
1499
- # @return [String]
1500
- attr_accessor :runtime_version
2128
+ # Options for manually scaling a model.
2129
+ class GoogleCloudMlV1ManualScaling
2130
+ include Google::Apis::Core::Hashable
1501
2131
 
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
2132
+ # The number of nodes to allocate for this model. These nodes are always up,
2133
+ # starting from the time the model is deployed, so the cost of operating
2134
+ # this model will be proportional to `nodes` * number of hours since
2135
+ # last billing cycle plus the cost for each prediction performed.
2136
+ # Corresponds to the JSON property `nodes`
2137
+ # @return [Fixnum]
2138
+ attr_accessor :nodes
1507
2139
 
1508
2140
  def initialize(**args)
1509
2141
  update!(**args)
@@ -1511,62 +2143,85 @@ module Google
1511
2143
 
1512
2144
  # Update properties of this object
1513
2145
  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)
2146
+ @nodes = args[:nodes] if args.key?(:nodes)
1523
2147
  end
1524
2148
  end
1525
2149
 
1526
- # Represents the metadata of the long-running operation.
1527
- class GoogleCloudMlV1beta1OperationMetadata
2150
+ # Associates `members` with a `role`.
2151
+ class GoogleIamV1Binding
1528
2152
  include Google::Apis::Core::Hashable
1529
2153
 
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
2154
+ # Specifies the identities requesting access for a Cloud Platform resource.
2155
+ # `members` can have the following values:
2156
+ # * `allUsers`: A special identifier that represents anyone who is
2157
+ # on the internet; with or without a Google account.
2158
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
2159
+ # who is authenticated with a Google account or a service account.
2160
+ # * `user:`emailid``: An email address that represents a specific Google
2161
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
2162
+ # * `serviceAccount:`emailid``: An email address that represents a service
2163
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
2164
+ # * `group:`emailid``: An email address that represents a Google group.
2165
+ # For example, `admins@example.com`.
2166
+ # * `domain:`domain``: A Google Apps domain name that represents all the
2167
+ # users of that domain. For example, `google.com` or `example.com`.
2168
+ # Corresponds to the JSON property `members`
2169
+ # @return [Array<String>]
2170
+ attr_accessor :members
1535
2171
 
1536
- # The time the operation was submitted.
1537
- # Corresponds to the JSON property `createTime`
2172
+ # Role that is assigned to `members`.
2173
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2174
+ # Required
2175
+ # Corresponds to the JSON property `role`
1538
2176
  # @return [String]
1539
- attr_accessor :create_time
2177
+ attr_accessor :role
1540
2178
 
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
2179
+ # Represents an expression text. Example:
2180
+ # title: "User account presence"
2181
+ # description: "Determines whether the request has a user account"
2182
+ # expression: "size(request.user) > 0"
2183
+ # Corresponds to the JSON property `condition`
2184
+ # @return [Google::Apis::MlV1::GoogleTypeExpr]
2185
+ attr_accessor :condition
1545
2186
 
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
2187
+ def initialize(**args)
2188
+ update!(**args)
2189
+ end
1555
2190
 
1556
- # The time operation processing completed.
1557
- # Corresponds to the JSON property `endTime`
1558
- # @return [String]
1559
- attr_accessor :end_time
2191
+ # Update properties of this object
2192
+ def update!(**args)
2193
+ @members = args[:members] if args.key?(:members)
2194
+ @role = args[:role] if args.key?(:role)
2195
+ @condition = args[:condition] if args.key?(:condition)
2196
+ end
2197
+ end
1560
2198
 
1561
- # The operation type.
1562
- # Corresponds to the JSON property `operationType`
1563
- # @return [String]
1564
- attr_accessor :operation_type
2199
+ # Represents results of a training job. Output only.
2200
+ class GoogleCloudMlV1TrainingOutput
2201
+ include Google::Apis::Core::Hashable
1565
2202
 
1566
- # The time operation processing started.
1567
- # Corresponds to the JSON property `startTime`
1568
- # @return [String]
1569
- attr_accessor :start_time
2203
+ # The number of hyperparameter tuning trials that completed successfully.
2204
+ # Only set for hyperparameter tuning jobs.
2205
+ # Corresponds to the JSON property `completedTrialCount`
2206
+ # @return [Fixnum]
2207
+ attr_accessor :completed_trial_count
2208
+
2209
+ # Whether this job is a hyperparameter tuning job.
2210
+ # Corresponds to the JSON property `isHyperparameterTuningJob`
2211
+ # @return [Boolean]
2212
+ attr_accessor :is_hyperparameter_tuning_job
2213
+ alias_method :is_hyperparameter_tuning_job?, :is_hyperparameter_tuning_job
2214
+
2215
+ # The amount of ML units consumed by the job.
2216
+ # Corresponds to the JSON property `consumedMLUnits`
2217
+ # @return [Float]
2218
+ attr_accessor :consumed_ml_units
2219
+
2220
+ # Results for individual Hyperparameter trials.
2221
+ # Only set for hyperparameter tuning jobs.
2222
+ # Corresponds to the JSON property `trials`
2223
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput>]
2224
+ attr_accessor :trials
1570
2225
 
1571
2226
  def initialize(**args)
1572
2227
  update!(**args)
@@ -1574,60 +2229,58 @@ module Google
1574
2229
 
1575
2230
  # Update properties of this object
1576
2231
  def update!(**args)
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)
2232
+ @completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count)
2233
+ @is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job)
2234
+ @consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units)
2235
+ @trials = args[:trials] if args.key?(:trials)
1584
2236
  end
1585
2237
  end
1586
2238
 
1587
- # Represents the metadata of the long-running operation.
1588
- class GoogleCloudMlV1OperationMetadata
2239
+ # A rule to be applied in a Policy.
2240
+ class GoogleIamV1Rule
1589
2241
  include Google::Apis::Core::Hashable
1590
2242
 
1591
- # The time operation processing completed.
1592
- # Corresponds to the JSON property `endTime`
1593
- # @return [String]
1594
- attr_accessor :end_time
1595
-
1596
- # The operation type.
1597
- # Corresponds to the JSON property `operationType`
1598
- # @return [String]
1599
- attr_accessor :operation_type
2243
+ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
2244
+ # that match the LOG action.
2245
+ # Corresponds to the JSON property `logConfig`
2246
+ # @return [Array<Google::Apis::MlV1::GoogleIamV1LogConfig>]
2247
+ attr_accessor :log_config
1600
2248
 
1601
- # The time operation processing started.
1602
- # Corresponds to the JSON property `startTime`
1603
- # @return [String]
1604
- attr_accessor :start_time
2249
+ # If one or more 'in' clauses are specified, the rule matches if
2250
+ # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
2251
+ # Corresponds to the JSON property `in`
2252
+ # @return [Array<String>]
2253
+ attr_accessor :in
1605
2254
 
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
2255
+ # A permission is a string of form '<service>.<resource type>.<verb>'
2256
+ # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
2257
+ # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
2258
+ # Corresponds to the JSON property `permissions`
2259
+ # @return [Array<String>]
2260
+ attr_accessor :permissions
1611
2261
 
1612
- # The time the operation was submitted.
1613
- # Corresponds to the JSON property `createTime`
2262
+ # Required
2263
+ # Corresponds to the JSON property `action`
1614
2264
  # @return [String]
1615
- attr_accessor :create_time
2265
+ attr_accessor :action
1616
2266
 
1617
- # Contains the name of the model associated with the operation.
1618
- # Corresponds to the JSON property `modelName`
2267
+ # If one or more 'not_in' clauses are specified, the rule matches
2268
+ # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
2269
+ # The format for in and not_in entries is the same as for members in a
2270
+ # Binding (see google/iam/v1/policy.proto).
2271
+ # Corresponds to the JSON property `notIn`
2272
+ # @return [Array<String>]
2273
+ attr_accessor :not_in
2274
+
2275
+ # Human-readable description of the rule.
2276
+ # Corresponds to the JSON property `description`
1619
2277
  # @return [String]
1620
- attr_accessor :model_name
2278
+ attr_accessor :description
1621
2279
 
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
2280
+ # Additional restrictions that must be met
2281
+ # Corresponds to the JSON property `conditions`
2282
+ # @return [Array<Google::Apis::MlV1::GoogleIamV1Condition>]
2283
+ attr_accessor :conditions
1631
2284
 
1632
2285
  def initialize(**args)
1633
2286
  update!(**args)
@@ -1635,59 +2288,29 @@ module Google
1635
2288
 
1636
2289
  # Update properties of this object
1637
2290
  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)
2291
+ @log_config = args[:log_config] if args.key?(:log_config)
2292
+ @in = args[:in] if args.key?(:in)
2293
+ @permissions = args[:permissions] if args.key?(:permissions)
2294
+ @action = args[:action] if args.key?(:action)
2295
+ @not_in = args[:not_in] if args.key?(:not_in)
2296
+ @description = args[:description] if args.key?(:description)
2297
+ @conditions = args[:conditions] if args.key?(:conditions)
1645
2298
  end
1646
2299
  end
1647
2300
 
1648
- # Represents a set of hyperparameters to optimize.
1649
- class GoogleCloudMlV1HyperparameterSpec
2301
+ # Options for counters
2302
+ class GoogleIamV1LogConfigCounterOptions
1650
2303
  include Google::Apis::Core::Hashable
1651
2304
 
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`
2305
+ # The metric to update.
2306
+ # Corresponds to the JSON property `metric`
1656
2307
  # @return [String]
1657
- attr_accessor :goal
2308
+ attr_accessor :metric
1658
2309
 
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`
2310
+ # The field value to attribute.
2311
+ # Corresponds to the JSON property `field`
1665
2312
  # @return [String]
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
2313
+ attr_accessor :field
1691
2314
 
1692
2315
  def initialize(**args)
1693
2316
  update!(**args)
@@ -1695,11 +2318,8 @@ module Google
1695
2318
 
1696
2319
  # Update properties of this object
1697
2320
  def update!(**args)
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)
2321
+ @metric = args[:metric] if args.key?(:metric)
2322
+ @field = args[:field] if args.key?(:field)
1703
2323
  end
1704
2324
  end
1705
2325
  end