google-api-client 0.10.3 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -32,52 +32,19 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/ml/
34
34
  class CloudMachineLearningEngineService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
35
  # @return [String]
41
36
  # Available to use for quota purposes for server-side applications. Can be any
42
37
  # arbitrary string assigned to a user, but should not exceed 40 characters.
43
38
  attr_accessor :quota_user
44
39
 
40
+ # @return [String]
41
+ # API key. Your API key identifies your project and provides you with API access,
42
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
+ attr_accessor :key
44
+
45
45
  def initialize
46
46
  super('https://ml.googleapis.com/', '')
47
- end
48
-
49
- # Get the service account information associated with your project. You need
50
- # this information in order to grant the service account persmissions for
51
- # the Google Cloud Storage location where you put your model training code
52
- # for training the model with Google Cloud Machine Learning.
53
- # @param [String] name
54
- # Required. The project name.
55
- # Authorization: requires `Viewer` role on the specified project.
56
- # @param [String] fields
57
- # Selector specifying which fields to include in a partial response.
58
- # @param [String] quota_user
59
- # Available to use for quota purposes for server-side applications. Can be any
60
- # arbitrary string assigned to a user, but should not exceed 40 characters.
61
- # @param [Google::Apis::RequestOptions] options
62
- # Request-specific options
63
- #
64
- # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse] parsed result object
66
- # @yieldparam err [StandardError] error object if request failed
67
- #
68
- # @return [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse]
69
- #
70
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
- # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def get_project_config(name, fields: nil, quota_user: nil, options: nil, &block)
74
- command = make_simple_command(:get, 'v1/{+name}:getConfig', options)
75
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse::Representation
76
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse
77
- command.params['name'] = name unless name.nil?
78
- command.query['fields'] = fields unless fields.nil?
79
- command.query['quotaUser'] = quota_user unless quota_user.nil?
80
- execute_or_queue_command(command, &block)
47
+ @batch_path = 'batch'
81
48
  end
82
49
 
83
50
  # Performs prediction on the data in the request.
@@ -86,11 +53,11 @@ module Google
86
53
  # Required. The resource name of a model or a version.
87
54
  # Authorization: requires `Viewer` role on the parent project.
88
55
  # @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_request_object
89
- # @param [String] fields
90
- # Selector specifying which fields to include in a partial response.
91
56
  # @param [String] quota_user
92
57
  # Available to use for quota purposes for server-side applications. Can be any
93
58
  # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
94
61
  # @param [Google::Apis::RequestOptions] options
95
62
  # Request-specific options
96
63
  #
@@ -103,159 +70,123 @@ module Google
103
70
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
71
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
72
  # @raise [Google::Apis::AuthorizationError] Authorization is required
106
- def predict_project(name, google_cloud_ml_v1__predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ def predict_project(name, google_cloud_ml_v1__predict_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
107
74
  command = make_simple_command(:post, 'v1/{+name}:predict', options)
108
75
  command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1PredictRequest::Representation
109
76
  command.request_object = google_cloud_ml_v1__predict_request_object
110
77
  command.response_representation = Google::Apis::MlV1::GoogleApiHttpBody::Representation
111
78
  command.response_class = Google::Apis::MlV1::GoogleApiHttpBody
112
79
  command.params['name'] = name unless name.nil?
113
- command.query['fields'] = fields unless fields.nil?
114
80
  command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ command.query['fields'] = fields unless fields.nil?
115
82
  execute_or_queue_command(command, &block)
116
83
  end
117
84
 
118
- # Cancels a running job.
85
+ # Get the service account information associated with your project. You need
86
+ # this information in order to grant the service account persmissions for
87
+ # the Google Cloud Storage location where you put your model training code
88
+ # for training the model with Google Cloud Machine Learning.
119
89
  # @param [String] name
120
- # Required. The name of the job to cancel.
121
- # Authorization: requires `Editor` role on the parent project.
122
- # @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object
123
- # @param [String] fields
124
- # Selector specifying which fields to include in a partial response.
90
+ # Required. The project name.
91
+ # Authorization: requires `Viewer` role on the specified project.
125
92
  # @param [String] quota_user
126
93
  # Available to use for quota purposes for server-side applications. Can be any
127
94
  # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
128
97
  # @param [Google::Apis::RequestOptions] options
129
98
  # Request-specific options
130
99
  #
131
100
  # @yield [result, err] Result & error if block supplied
132
- # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object
101
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse] parsed result object
133
102
  # @yieldparam err [StandardError] error object if request failed
134
103
  #
135
- # @return [Google::Apis::MlV1::GoogleProtobufEmpty]
104
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse]
136
105
  #
137
106
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
138
107
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
139
108
  # @raise [Google::Apis::AuthorizationError] Authorization is required
140
- def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
141
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
142
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation
143
- command.request_object = google_cloud_ml_v1__cancel_job_request_object
144
- command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
145
- command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
109
+ def get_project_config(name, quota_user: nil, fields: nil, options: nil, &block)
110
+ command = make_simple_command(:get, 'v1/{+name}:getConfig', options)
111
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse::Representation
112
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse
146
113
  command.params['name'] = name unless name.nil?
147
- command.query['fields'] = fields unless fields.nil?
148
114
  command.query['quotaUser'] = quota_user unless quota_user.nil?
115
+ command.query['fields'] = fields unless fields.nil?
149
116
  execute_or_queue_command(command, &block)
150
117
  end
151
118
 
152
- # Lists the jobs in the project.
153
- # @param [String] parent
154
- # Required. The name of the project for which to list jobs.
155
- # Authorization: requires `Viewer` role on the specified project.
119
+ # Lists operations that match the specified filter in the request. If the
120
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
121
+ # NOTE: the `name` binding below allows API services to override the binding
122
+ # to use different resource name schemes, such as `users/*/operations`.
123
+ # @param [String] name
124
+ # The name of the operation collection.
125
+ # @param [String] filter
126
+ # The standard list filter.
156
127
  # @param [String] page_token
157
- # Optional. A page token to request the next page of results.
158
- # You get the token from the `next_page_token` field of the response from
159
- # the previous call.
128
+ # The standard list page token.
160
129
  # @param [Fixnum] page_size
161
- # Optional. The number of jobs to retrieve per "page" of results. If there
162
- # are more remaining results than this number, the response message will
163
- # contain a valid value in the `next_page_token` field.
164
- # The default value is 20, and the maximum page size is 100.
165
- # @param [String] filter
166
- # Optional. Specifies the subset of jobs to retrieve.
167
- # @param [String] fields
168
- # Selector specifying which fields to include in a partial response.
130
+ # The standard list page size.
169
131
  # @param [String] quota_user
170
132
  # Available to use for quota purposes for server-side applications. Can be any
171
133
  # arbitrary string assigned to a user, but should not exceed 40 characters.
134
+ # @param [String] fields
135
+ # Selector specifying which fields to include in a partial response.
172
136
  # @param [Google::Apis::RequestOptions] options
173
137
  # Request-specific options
174
138
  #
175
139
  # @yield [result, err] Result & error if block supplied
176
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] parsed result object
140
+ # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse] parsed result object
177
141
  # @yieldparam err [StandardError] error object if request failed
178
142
  #
179
- # @return [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse]
143
+ # @return [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse]
180
144
  #
181
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
182
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
183
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
184
- def list_project_jobs(parent, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
185
- command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
186
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation
187
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse
188
- command.params['parent'] = parent unless parent.nil?
148
+ def list_project_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
149
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
150
+ command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation
151
+ command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse
152
+ command.params['name'] = name unless name.nil?
153
+ command.query['filter'] = filter unless filter.nil?
189
154
  command.query['pageToken'] = page_token unless page_token.nil?
190
155
  command.query['pageSize'] = page_size unless page_size.nil?
191
- command.query['filter'] = filter unless filter.nil?
192
- command.query['fields'] = fields unless fields.nil?
193
156
  command.query['quotaUser'] = quota_user unless quota_user.nil?
157
+ command.query['fields'] = fields unless fields.nil?
194
158
  execute_or_queue_command(command, &block)
195
159
  end
196
160
 
197
- # Describes a job.
161
+ # Gets the latest state of a long-running operation. Clients can use this
162
+ # method to poll the operation result at intervals as recommended by the API
163
+ # service.
198
164
  # @param [String] name
199
- # Required. The name of the job to get the description of.
200
- # Authorization: requires `Viewer` role on the parent project.
201
- # @param [String] fields
202
- # Selector specifying which fields to include in a partial response.
165
+ # The name of the operation resource.
203
166
  # @param [String] quota_user
204
167
  # Available to use for quota purposes for server-side applications. Can be any
205
168
  # arbitrary string assigned to a user, but should not exceed 40 characters.
169
+ # @param [String] fields
170
+ # Selector specifying which fields to include in a partial response.
206
171
  # @param [Google::Apis::RequestOptions] options
207
172
  # Request-specific options
208
173
  #
209
174
  # @yield [result, err] Result & error if block supplied
210
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
175
+ # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
211
176
  # @yieldparam err [StandardError] error object if request failed
212
177
  #
213
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
178
+ # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
214
179
  #
215
180
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
216
181
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
217
182
  # @raise [Google::Apis::AuthorizationError] Authorization is required
218
- def get_project_job(name, fields: nil, quota_user: nil, options: nil, &block)
183
+ def get_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
219
184
  command = make_simple_command(:get, 'v1/{+name}', options)
220
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
221
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
185
+ command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
186
+ command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
222
187
  command.params['name'] = name unless name.nil?
223
- command.query['fields'] = fields unless fields.nil?
224
188
  command.query['quotaUser'] = quota_user unless quota_user.nil?
225
- execute_or_queue_command(command, &block)
226
- end
227
-
228
- # Creates a training or a batch prediction job.
229
- # @param [String] parent
230
- # Required. The project name.
231
- # Authorization: requires `Editor` role on the specified project.
232
- # @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
233
- # @param [String] fields
234
- # Selector specifying which fields to include in a partial response.
235
- # @param [String] quota_user
236
- # Available to use for quota purposes for server-side applications. Can be any
237
- # arbitrary string assigned to a user, but should not exceed 40 characters.
238
- # @param [Google::Apis::RequestOptions] options
239
- # Request-specific options
240
- #
241
- # @yield [result, err] Result & error if block supplied
242
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
243
- # @yieldparam err [StandardError] error object if request failed
244
- #
245
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
246
- #
247
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
248
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
249
- # @raise [Google::Apis::AuthorizationError] Authorization is required
250
- def create_project_job(parent, google_cloud_ml_v1__job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
251
- command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
252
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
253
- command.request_object = google_cloud_ml_v1__job_object
254
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
255
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
256
- command.params['parent'] = parent unless parent.nil?
257
189
  command.query['fields'] = fields unless fields.nil?
258
- command.query['quotaUser'] = quota_user unless quota_user.nil?
259
190
  execute_or_queue_command(command, &block)
260
191
  end
261
192
 
@@ -271,11 +202,11 @@ module Google
271
202
  # corresponding to `Code.CANCELLED`.
272
203
  # @param [String] name
273
204
  # The name of the operation resource to be cancelled.
274
- # @param [String] fields
275
- # Selector specifying which fields to include in a partial response.
276
205
  # @param [String] quota_user
277
206
  # Available to use for quota purposes for server-side applications. Can be any
278
207
  # arbitrary string assigned to a user, but should not exceed 40 characters.
208
+ # @param [String] fields
209
+ # Selector specifying which fields to include in a partial response.
279
210
  # @param [Google::Apis::RequestOptions] options
280
211
  # Request-specific options
281
212
  #
@@ -288,13 +219,13 @@ module Google
288
219
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
289
220
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
290
221
  # @raise [Google::Apis::AuthorizationError] Authorization is required
291
- def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
222
+ def cancel_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
292
223
  command = make_simple_command(:post, 'v1/{+name}:cancel', options)
293
224
  command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
294
225
  command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
295
226
  command.params['name'] = name unless name.nil?
296
- command.query['fields'] = fields unless fields.nil?
297
227
  command.query['quotaUser'] = quota_user unless quota_user.nil?
228
+ command.query['fields'] = fields unless fields.nil?
298
229
  execute_or_queue_command(command, &block)
299
230
  end
300
231
 
@@ -304,11 +235,11 @@ module Google
304
235
  # `google.rpc.Code.UNIMPLEMENTED`.
305
236
  # @param [String] name
306
237
  # The name of the operation resource to be deleted.
307
- # @param [String] fields
308
- # Selector specifying which fields to include in a partial response.
309
238
  # @param [String] quota_user
310
239
  # Available to use for quota purposes for server-side applications. Can be any
311
240
  # arbitrary string assigned to a user, but should not exceed 40 characters.
241
+ # @param [String] fields
242
+ # Selector specifying which fields to include in a partial response.
312
243
  # @param [Google::Apis::RequestOptions] options
313
244
  # Request-specific options
314
245
  #
@@ -321,87 +252,13 @@ module Google
321
252
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
322
253
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
323
254
  # @raise [Google::Apis::AuthorizationError] Authorization is required
324
- def delete_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
255
+ def delete_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
325
256
  command = make_simple_command(:delete, 'v1/{+name}', options)
326
257
  command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
327
258
  command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
328
259
  command.params['name'] = name unless name.nil?
329
- command.query['fields'] = fields unless fields.nil?
330
- command.query['quotaUser'] = quota_user unless quota_user.nil?
331
- execute_or_queue_command(command, &block)
332
- end
333
-
334
- # Lists operations that match the specified filter in the request. If the
335
- # server doesn't support this method, it returns `UNIMPLEMENTED`.
336
- # NOTE: the `name` binding below allows API services to override the binding
337
- # to use different resource name schemes, such as `users/*/operations`.
338
- # @param [String] name
339
- # The name of the operation collection.
340
- # @param [String] page_token
341
- # The standard list page token.
342
- # @param [Fixnum] page_size
343
- # The standard list page size.
344
- # @param [String] filter
345
- # The standard list filter.
346
- # @param [String] fields
347
- # Selector specifying which fields to include in a partial response.
348
- # @param [String] quota_user
349
- # Available to use for quota purposes for server-side applications. Can be any
350
- # arbitrary string assigned to a user, but should not exceed 40 characters.
351
- # @param [Google::Apis::RequestOptions] options
352
- # Request-specific options
353
- #
354
- # @yield [result, err] Result & error if block supplied
355
- # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse] parsed result object
356
- # @yieldparam err [StandardError] error object if request failed
357
- #
358
- # @return [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse]
359
- #
360
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
361
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
362
- # @raise [Google::Apis::AuthorizationError] Authorization is required
363
- def list_project_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
364
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
365
- command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation
366
- command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse
367
- command.params['name'] = name unless name.nil?
368
- command.query['pageToken'] = page_token unless page_token.nil?
369
- command.query['pageSize'] = page_size unless page_size.nil?
370
- command.query['filter'] = filter unless filter.nil?
371
- command.query['fields'] = fields unless fields.nil?
372
260
  command.query['quotaUser'] = quota_user unless quota_user.nil?
373
- execute_or_queue_command(command, &block)
374
- end
375
-
376
- # Gets the latest state of a long-running operation. Clients can use this
377
- # method to poll the operation result at intervals as recommended by the API
378
- # service.
379
- # @param [String] name
380
- # The name of the operation resource.
381
- # @param [String] fields
382
- # Selector specifying which fields to include in a partial response.
383
- # @param [String] quota_user
384
- # Available to use for quota purposes for server-side applications. Can be any
385
- # arbitrary string assigned to a user, but should not exceed 40 characters.
386
- # @param [Google::Apis::RequestOptions] options
387
- # Request-specific options
388
- #
389
- # @yield [result, err] Result & error if block supplied
390
- # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
391
- # @yieldparam err [StandardError] error object if request failed
392
- #
393
- # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
394
- #
395
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
396
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
397
- # @raise [Google::Apis::AuthorizationError] Authorization is required
398
- def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
399
- command = make_simple_command(:get, 'v1/{+name}', options)
400
- command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
401
- command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
402
- command.params['name'] = name unless name.nil?
403
261
  command.query['fields'] = fields unless fields.nil?
404
- command.query['quotaUser'] = quota_user unless quota_user.nil?
405
262
  execute_or_queue_command(command, &block)
406
263
  end
407
264
 
@@ -413,11 +270,11 @@ module Google
413
270
  # @param [String] name
414
271
  # Required. The name of the model.
415
272
  # Authorization: requires `Editor` role on the parent project.
416
- # @param [String] fields
417
- # Selector specifying which fields to include in a partial response.
418
273
  # @param [String] quota_user
419
274
  # Available to use for quota purposes for server-side applications. Can be any
420
275
  # arbitrary string assigned to a user, but should not exceed 40 characters.
276
+ # @param [String] fields
277
+ # Selector specifying which fields to include in a partial response.
421
278
  # @param [Google::Apis::RequestOptions] options
422
279
  # Request-specific options
423
280
  #
@@ -430,13 +287,13 @@ module Google
430
287
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
431
288
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
432
289
  # @raise [Google::Apis::AuthorizationError] Authorization is required
433
- def delete_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
290
+ def delete_project_model(name, quota_user: nil, fields: nil, options: nil, &block)
434
291
  command = make_simple_command(:delete, 'v1/{+name}', options)
435
292
  command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
436
293
  command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
437
294
  command.params['name'] = name unless name.nil?
438
- command.query['fields'] = fields unless fields.nil?
439
295
  command.query['quotaUser'] = quota_user unless quota_user.nil?
296
+ command.query['fields'] = fields unless fields.nil?
440
297
  execute_or_queue_command(command, &block)
441
298
  end
442
299
 
@@ -446,20 +303,20 @@ module Google
446
303
  # @param [String] parent
447
304
  # Required. The name of the project whose models are to be listed.
448
305
  # Authorization: requires `Viewer` role on the specified project.
449
- # @param [String] page_token
450
- # Optional. A page token to request the next page of results.
451
- # You get the token from the `next_page_token` field of the response from
452
- # the previous call.
453
306
  # @param [Fixnum] page_size
454
307
  # Optional. The number of models to retrieve per "page" of results. If there
455
308
  # are more remaining results than this number, the response message will
456
309
  # contain a valid value in the `next_page_token` field.
457
310
  # The default value is 20, and the maximum page size is 100.
458
- # @param [String] fields
459
- # Selector specifying which fields to include in a partial response.
311
+ # @param [String] page_token
312
+ # Optional. A page token to request the next page of results.
313
+ # You get the token from the `next_page_token` field of the response from
314
+ # the previous call.
460
315
  # @param [String] quota_user
461
316
  # Available to use for quota purposes for server-side applications. Can be any
462
317
  # arbitrary string assigned to a user, but should not exceed 40 characters.
318
+ # @param [String] fields
319
+ # Selector specifying which fields to include in a partial response.
463
320
  # @param [Google::Apis::RequestOptions] options
464
321
  # Request-specific options
465
322
  #
@@ -472,15 +329,15 @@ module Google
472
329
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
473
330
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
474
331
  # @raise [Google::Apis::AuthorizationError] Authorization is required
475
- def list_project_models(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
332
+ def list_project_models(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
476
333
  command = make_simple_command(:get, 'v1/{+parent}/models', options)
477
334
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse::Representation
478
335
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse
479
336
  command.params['parent'] = parent unless parent.nil?
480
- command.query['pageToken'] = page_token unless page_token.nil?
481
337
  command.query['pageSize'] = page_size unless page_size.nil?
482
- command.query['fields'] = fields unless fields.nil?
338
+ command.query['pageToken'] = page_token unless page_token.nil?
483
339
  command.query['quotaUser'] = quota_user unless quota_user.nil?
340
+ command.query['fields'] = fields unless fields.nil?
484
341
  execute_or_queue_command(command, &block)
485
342
  end
486
343
 
@@ -490,11 +347,11 @@ module Google
490
347
  # @param [String] name
491
348
  # Required. The name of the model.
492
349
  # Authorization: requires `Viewer` role on the parent project.
493
- # @param [String] fields
494
- # Selector specifying which fields to include in a partial response.
495
350
  # @param [String] quota_user
496
351
  # Available to use for quota purposes for server-side applications. Can be any
497
352
  # arbitrary string assigned to a user, but should not exceed 40 characters.
353
+ # @param [String] fields
354
+ # Selector specifying which fields to include in a partial response.
498
355
  # @param [Google::Apis::RequestOptions] options
499
356
  # Request-specific options
500
357
  #
@@ -507,13 +364,13 @@ module Google
507
364
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
508
365
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
509
366
  # @raise [Google::Apis::AuthorizationError] Authorization is required
510
- def get_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
367
+ def get_project_model(name, quota_user: nil, fields: nil, options: nil, &block)
511
368
  command = make_simple_command(:get, 'v1/{+name}', options)
512
369
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
513
370
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
514
371
  command.params['name'] = name unless name.nil?
515
- command.query['fields'] = fields unless fields.nil?
516
372
  command.query['quotaUser'] = quota_user unless quota_user.nil?
373
+ command.query['fields'] = fields unless fields.nil?
517
374
  execute_or_queue_command(command, &block)
518
375
  end
519
376
 
@@ -526,11 +383,11 @@ module Google
526
383
  # Required. The project name.
527
384
  # Authorization: requires `Editor` role on the specified project.
528
385
  # @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object
529
- # @param [String] fields
530
- # Selector specifying which fields to include in a partial response.
531
386
  # @param [String] quota_user
532
387
  # Available to use for quota purposes for server-side applications. Can be any
533
388
  # arbitrary string assigned to a user, but should not exceed 40 characters.
389
+ # @param [String] fields
390
+ # Selector specifying which fields to include in a partial response.
534
391
  # @param [Google::Apis::RequestOptions] options
535
392
  # Request-specific options
536
393
  #
@@ -543,53 +400,15 @@ module Google
543
400
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
544
401
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
545
402
  # @raise [Google::Apis::AuthorizationError] Authorization is required
546
- def create_project_model(parent, google_cloud_ml_v1__model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
403
+ def create_project_model(parent, google_cloud_ml_v1__model_object = nil, quota_user: nil, fields: nil, options: nil, &block)
547
404
  command = make_simple_command(:post, 'v1/{+parent}/models', options)
548
405
  command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
549
406
  command.request_object = google_cloud_ml_v1__model_object
550
407
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
551
408
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
552
409
  command.params['parent'] = parent unless parent.nil?
553
- command.query['fields'] = fields unless fields.nil?
554
410
  command.query['quotaUser'] = quota_user unless quota_user.nil?
555
- execute_or_queue_command(command, &block)
556
- end
557
-
558
- # Deletes a model version.
559
- # Each model can have multiple versions deployed and in use at any given
560
- # time. Use this method to remove a single version.
561
- # Note: You cannot delete the version that is set as the default version
562
- # of the model unless it is the only remaining version.
563
- # @param [String] name
564
- # Required. The name of the version. You can get the names of all the
565
- # versions of a model by calling
566
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
567
- # versions/list).
568
- # Authorization: requires `Editor` role on the parent project.
569
- # @param [String] fields
570
- # Selector specifying which fields to include in a partial response.
571
- # @param [String] quota_user
572
- # Available to use for quota purposes for server-side applications. Can be any
573
- # arbitrary string assigned to a user, but should not exceed 40 characters.
574
- # @param [Google::Apis::RequestOptions] options
575
- # Request-specific options
576
- #
577
- # @yield [result, err] Result & error if block supplied
578
- # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
579
- # @yieldparam err [StandardError] error object if request failed
580
- #
581
- # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
582
- #
583
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
584
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
585
- # @raise [Google::Apis::AuthorizationError] Authorization is required
586
- def delete_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
587
- command = make_simple_command(:delete, 'v1/{+name}', options)
588
- command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
589
- command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
590
- command.params['name'] = name unless name.nil?
591
411
  command.query['fields'] = fields unless fields.nil?
592
- command.query['quotaUser'] = quota_user unless quota_user.nil?
593
412
  execute_or_queue_command(command, &block)
594
413
  end
595
414
 
@@ -609,11 +428,11 @@ module Google
609
428
  # there are more remaining results than this number, the response message
610
429
  # will contain a valid value in the `next_page_token` field.
611
430
  # The default value is 20, and the maximum page size is 100.
612
- # @param [String] fields
613
- # Selector specifying which fields to include in a partial response.
614
431
  # @param [String] quota_user
615
432
  # Available to use for quota purposes for server-side applications. Can be any
616
433
  # arbitrary string assigned to a user, but should not exceed 40 characters.
434
+ # @param [String] fields
435
+ # Selector specifying which fields to include in a partial response.
617
436
  # @param [Google::Apis::RequestOptions] options
618
437
  # Request-specific options
619
438
  #
@@ -626,15 +445,15 @@ module Google
626
445
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
627
446
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
628
447
  # @raise [Google::Apis::AuthorizationError] Authorization is required
629
- def list_project_model_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
448
+ def list_project_model_versions(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
630
449
  command = make_simple_command(:get, 'v1/{+parent}/versions', options)
631
450
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation
632
451
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse
633
452
  command.params['parent'] = parent unless parent.nil?
634
453
  command.query['pageToken'] = page_token unless page_token.nil?
635
454
  command.query['pageSize'] = page_size unless page_size.nil?
636
- command.query['fields'] = fields unless fields.nil?
637
455
  command.query['quotaUser'] = quota_user unless quota_user.nil?
456
+ command.query['fields'] = fields unless fields.nil?
638
457
  execute_or_queue_command(command, &block)
639
458
  end
640
459
 
@@ -647,11 +466,11 @@ module Google
647
466
  # @param [String] name
648
467
  # Required. The name of the version.
649
468
  # Authorization: requires `Viewer` role on the parent project.
650
- # @param [String] fields
651
- # Selector specifying which fields to include in a partial response.
652
469
  # @param [String] quota_user
653
470
  # Available to use for quota purposes for server-side applications. Can be any
654
471
  # arbitrary string assigned to a user, but should not exceed 40 characters.
472
+ # @param [String] fields
473
+ # Selector specifying which fields to include in a partial response.
655
474
  # @param [Google::Apis::RequestOptions] options
656
475
  # Request-specific options
657
476
  #
@@ -664,13 +483,13 @@ module Google
664
483
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
665
484
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
666
485
  # @raise [Google::Apis::AuthorizationError] Authorization is required
667
- def get_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
486
+ def get_project_model_version(name, quota_user: nil, fields: nil, options: nil, &block)
668
487
  command = make_simple_command(:get, 'v1/{+name}', options)
669
488
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
670
489
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
671
490
  command.params['name'] = name unless name.nil?
672
- command.query['fields'] = fields unless fields.nil?
673
491
  command.query['quotaUser'] = quota_user unless quota_user.nil?
492
+ command.query['fields'] = fields unless fields.nil?
674
493
  execute_or_queue_command(command, &block)
675
494
  end
676
495
 
@@ -686,11 +505,11 @@ module Google
686
505
  # Required. The name of the model.
687
506
  # Authorization: requires `Editor` role on the parent project.
688
507
  # @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
689
- # @param [String] fields
690
- # Selector specifying which fields to include in a partial response.
691
508
  # @param [String] quota_user
692
509
  # Available to use for quota purposes for server-side applications. Can be any
693
510
  # arbitrary string assigned to a user, but should not exceed 40 characters.
511
+ # @param [String] fields
512
+ # Selector specifying which fields to include in a partial response.
694
513
  # @param [Google::Apis::RequestOptions] options
695
514
  # Request-specific options
696
515
  #
@@ -703,15 +522,15 @@ module Google
703
522
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
704
523
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
705
524
  # @raise [Google::Apis::AuthorizationError] Authorization is required
706
- def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
525
+ def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, quota_user: nil, fields: nil, options: nil, &block)
707
526
  command = make_simple_command(:post, 'v1/{+parent}/versions', options)
708
527
  command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
709
528
  command.request_object = google_cloud_ml_v1__version_object
710
529
  command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
711
530
  command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
712
531
  command.params['parent'] = parent unless parent.nil?
713
- command.query['fields'] = fields unless fields.nil?
714
532
  command.query['quotaUser'] = quota_user unless quota_user.nil?
533
+ command.query['fields'] = fields unless fields.nil?
715
534
  execute_or_queue_command(command, &block)
716
535
  end
717
536
 
@@ -728,11 +547,11 @@ module Google
728
547
  # versions/list).
729
548
  # Authorization: requires `Editor` role on the parent project.
730
549
  # @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object
731
- # @param [String] fields
732
- # Selector specifying which fields to include in a partial response.
733
550
  # @param [String] quota_user
734
551
  # Available to use for quota purposes for server-side applications. Can be any
735
552
  # arbitrary string assigned to a user, but should not exceed 40 characters.
553
+ # @param [String] fields
554
+ # Selector specifying which fields to include in a partial response.
736
555
  # @param [Google::Apis::RequestOptions] options
737
556
  # Request-specific options
738
557
  #
@@ -745,23 +564,205 @@ module Google
745
564
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
746
565
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
747
566
  # @raise [Google::Apis::AuthorizationError] Authorization is required
748
- def set_project_model_version_default(name, google_cloud_ml_v1__set_default_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
567
+ def set_project_model_version_default(name, google_cloud_ml_v1__set_default_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
749
568
  command = make_simple_command(:post, 'v1/{+name}:setDefault', options)
750
569
  command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest::Representation
751
570
  command.request_object = google_cloud_ml_v1__set_default_version_request_object
752
571
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
753
572
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
754
573
  command.params['name'] = name unless name.nil?
574
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
575
+ command.query['fields'] = fields unless fields.nil?
576
+ execute_or_queue_command(command, &block)
577
+ end
578
+
579
+ # Deletes a model version.
580
+ # Each model can have multiple versions deployed and in use at any given
581
+ # time. Use this method to remove a single version.
582
+ # Note: You cannot delete the version that is set as the default version
583
+ # of the model unless it is the only remaining version.
584
+ # @param [String] name
585
+ # Required. The name of the version. You can get the names of all the
586
+ # versions of a model by calling
587
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
588
+ # versions/list).
589
+ # Authorization: requires `Editor` role on the parent project.
590
+ # @param [String] quota_user
591
+ # Available to use for quota purposes for server-side applications. Can be any
592
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
593
+ # @param [String] fields
594
+ # Selector specifying which fields to include in a partial response.
595
+ # @param [Google::Apis::RequestOptions] options
596
+ # Request-specific options
597
+ #
598
+ # @yield [result, err] Result & error if block supplied
599
+ # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
600
+ # @yieldparam err [StandardError] error object if request failed
601
+ #
602
+ # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
603
+ #
604
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
607
+ def delete_project_model_version(name, quota_user: nil, fields: nil, options: nil, &block)
608
+ command = make_simple_command(:delete, 'v1/{+name}', options)
609
+ command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
610
+ command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
611
+ command.params['name'] = name unless name.nil?
612
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
613
+ command.query['fields'] = fields unless fields.nil?
614
+ execute_or_queue_command(command, &block)
615
+ end
616
+
617
+ # Lists the jobs in the project.
618
+ # @param [String] parent
619
+ # Required. The name of the project for which to list jobs.
620
+ # Authorization: requires `Viewer` role on the specified project.
621
+ # @param [Fixnum] page_size
622
+ # Optional. The number of jobs to retrieve per "page" of results. If there
623
+ # are more remaining results than this number, the response message will
624
+ # contain a valid value in the `next_page_token` field.
625
+ # The default value is 20, and the maximum page size is 100.
626
+ # @param [String] filter
627
+ # Optional. Specifies the subset of jobs to retrieve.
628
+ # @param [String] page_token
629
+ # Optional. A page token to request the next page of results.
630
+ # You get the token from the `next_page_token` field of the response from
631
+ # the previous call.
632
+ # @param [String] quota_user
633
+ # Available to use for quota purposes for server-side applications. Can be any
634
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
635
+ # @param [String] fields
636
+ # Selector specifying which fields to include in a partial response.
637
+ # @param [Google::Apis::RequestOptions] options
638
+ # Request-specific options
639
+ #
640
+ # @yield [result, err] Result & error if block supplied
641
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] parsed result object
642
+ # @yieldparam err [StandardError] error object if request failed
643
+ #
644
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse]
645
+ #
646
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
647
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
648
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
649
+ def list_project_jobs(parent, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
650
+ command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
651
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation
652
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse
653
+ command.params['parent'] = parent unless parent.nil?
654
+ command.query['pageSize'] = page_size unless page_size.nil?
655
+ command.query['filter'] = filter unless filter.nil?
656
+ command.query['pageToken'] = page_token unless page_token.nil?
657
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
658
+ command.query['fields'] = fields unless fields.nil?
659
+ execute_or_queue_command(command, &block)
660
+ end
661
+
662
+ # Describes a job.
663
+ # @param [String] name
664
+ # Required. The name of the job to get the description of.
665
+ # Authorization: requires `Viewer` role on the parent project.
666
+ # @param [String] quota_user
667
+ # Available to use for quota purposes for server-side applications. Can be any
668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
669
+ # @param [String] fields
670
+ # Selector specifying which fields to include in a partial response.
671
+ # @param [Google::Apis::RequestOptions] options
672
+ # Request-specific options
673
+ #
674
+ # @yield [result, err] Result & error if block supplied
675
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
676
+ # @yieldparam err [StandardError] error object if request failed
677
+ #
678
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
679
+ #
680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
683
+ def get_project_job(name, quota_user: nil, fields: nil, options: nil, &block)
684
+ command = make_simple_command(:get, 'v1/{+name}', options)
685
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
686
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
687
+ command.params['name'] = name unless name.nil?
688
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
689
+ command.query['fields'] = fields unless fields.nil?
690
+ execute_or_queue_command(command, &block)
691
+ end
692
+
693
+ # Creates a training or a batch prediction job.
694
+ # @param [String] parent
695
+ # Required. The project name.
696
+ # Authorization: requires `Editor` role on the specified project.
697
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
698
+ # @param [String] quota_user
699
+ # Available to use for quota purposes for server-side applications. Can be any
700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
701
+ # @param [String] fields
702
+ # Selector specifying which fields to include in a partial response.
703
+ # @param [Google::Apis::RequestOptions] options
704
+ # Request-specific options
705
+ #
706
+ # @yield [result, err] Result & error if block supplied
707
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
708
+ # @yieldparam err [StandardError] error object if request failed
709
+ #
710
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
711
+ #
712
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
713
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
714
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
715
+ def create_project_job(parent, google_cloud_ml_v1__job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
716
+ command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
717
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
718
+ command.request_object = google_cloud_ml_v1__job_object
719
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
720
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
721
+ command.params['parent'] = parent unless parent.nil?
722
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
755
723
  command.query['fields'] = fields unless fields.nil?
724
+ execute_or_queue_command(command, &block)
725
+ end
726
+
727
+ # Cancels a running job.
728
+ # @param [String] name
729
+ # Required. The name of the job to cancel.
730
+ # Authorization: requires `Editor` role on the parent project.
731
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object
732
+ # @param [String] quota_user
733
+ # Available to use for quota purposes for server-side applications. Can be any
734
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
735
+ # @param [String] fields
736
+ # Selector specifying which fields to include in a partial response.
737
+ # @param [Google::Apis::RequestOptions] options
738
+ # Request-specific options
739
+ #
740
+ # @yield [result, err] Result & error if block supplied
741
+ # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object
742
+ # @yieldparam err [StandardError] error object if request failed
743
+ #
744
+ # @return [Google::Apis::MlV1::GoogleProtobufEmpty]
745
+ #
746
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
749
+ def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
750
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
751
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation
752
+ command.request_object = google_cloud_ml_v1__cancel_job_request_object
753
+ command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
754
+ command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
755
+ command.params['name'] = name unless name.nil?
756
756
  command.query['quotaUser'] = quota_user unless quota_user.nil?
757
+ command.query['fields'] = fields unless fields.nil?
757
758
  execute_or_queue_command(command, &block)
758
759
  end
759
760
 
760
761
  protected
761
762
 
762
763
  def apply_command_defaults(command)
763
- command.query['key'] = key unless key.nil?
764
764
  command.query['quotaUser'] = quota_user unless quota_user.nil?
765
+ command.query['key'] = key unless key.nil?
765
766
  end
766
767
  end
767
768
  end