google-api-client 0.13.2 → 0.13.3

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