google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -22,37 +22,19 @@ module Google
22
22
  module Apis
23
23
  module MlV1
24
24
 
25
- class GoogleCloudMlV1ListModelsResponse
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class GoogleCloudMlV1TrainingInput
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class GoogleCloudMlV1Job
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
25
  class GoogleApiHttpBody
44
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
27
 
46
28
  include Google::Apis::Core::JsonObjectSupport
47
29
  end
48
30
 
49
- class GoogleCloudMlV1beta1Version
31
+ class GoogleCloudMlV1GetConfigResponse
50
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
33
 
52
34
  include Google::Apis::Core::JsonObjectSupport
53
35
  end
54
36
 
55
- class GoogleCloudMlV1GetConfigResponse
37
+ class GoogleCloudMlV1beta1Version
56
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
39
 
58
40
  include Google::Apis::Core::JsonObjectSupport
@@ -166,13 +148,13 @@ module Google
166
148
  include Google::Apis::Core::JsonObjectSupport
167
149
  end
168
150
 
169
- class GoogleCloudMlV1CancelJobRequest
151
+ class GoogleCloudMlV1ListVersionsResponse
170
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
153
 
172
154
  include Google::Apis::Core::JsonObjectSupport
173
155
  end
174
156
 
175
- class GoogleCloudMlV1ListVersionsResponse
157
+ class GoogleCloudMlV1CancelJobRequest
176
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
159
 
178
160
  include Google::Apis::Core::JsonObjectSupport
@@ -191,82 +173,52 @@ module Google
191
173
  end
192
174
 
193
175
  class GoogleCloudMlV1ListModelsResponse
194
- # @private
195
- class Representation < Google::Apis::Core::JsonRepresentation
196
- collection :models, as: 'models', class: Google::Apis::MlV1::GoogleCloudMlV1Model, decorator: Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
197
177
 
198
- property :next_page_token, as: 'nextPageToken'
199
- end
178
+ include Google::Apis::Core::JsonObjectSupport
200
179
  end
201
180
 
202
181
  class GoogleCloudMlV1TrainingInput
203
- # @private
204
- class Representation < Google::Apis::Core::JsonRepresentation
205
- property :parameter_server_count, :numeric_string => true, as: 'parameterServerCount'
206
- collection :package_uris, as: 'packageUris'
207
- property :worker_count, :numeric_string => true, as: 'workerCount'
208
- property :master_type, as: 'masterType'
209
- property :runtime_version, as: 'runtimeVersion'
210
- property :python_module, as: 'pythonModule'
211
- property :worker_type, as: 'workerType'
212
- collection :args, as: 'args'
213
- property :region, as: 'region'
214
- property :parameter_server_type, as: 'parameterServerType'
215
- property :scale_tier, as: 'scaleTier'
216
- property :job_dir, as: 'jobDir'
217
- property :hyperparameters, as: 'hyperparameters', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec::Representation
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
218
183
 
219
- end
184
+ include Google::Apis::Core::JsonObjectSupport
220
185
  end
221
186
 
222
187
  class GoogleCloudMlV1Job
223
- # @private
224
- class Representation < Google::Apis::Core::JsonRepresentation
225
- property :training_output, as: 'trainingOutput', class: Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput::Representation
226
-
227
- property :create_time, as: 'createTime'
228
- property :training_input, as: 'trainingInput', class: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput::Representation
229
-
230
- property :state, as: 'state'
231
- property :prediction_input, as: 'predictionInput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput::Representation
232
-
233
- property :error_message, as: 'errorMessage'
234
- property :job_id, as: 'jobId'
235
- property :end_time, as: 'endTime'
236
- property :start_time, as: 'startTime'
237
- property :prediction_output, as: 'predictionOutput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput::Representation
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
238
189
 
239
- end
190
+ include Google::Apis::Core::JsonObjectSupport
240
191
  end
241
192
 
242
193
  class GoogleApiHttpBody
243
194
  # @private
244
195
  class Representation < Google::Apis::Core::JsonRepresentation
245
- property :data, :base64 => true, as: 'data'
246
196
  property :content_type, as: 'contentType'
197
+ collection :extensions, as: 'extensions'
198
+ property :data, :base64 => true, as: 'data'
199
+ end
200
+ end
201
+
202
+ class GoogleCloudMlV1GetConfigResponse
203
+ # @private
204
+ class Representation < Google::Apis::Core::JsonRepresentation
205
+ property :service_account_project, :numeric_string => true, as: 'serviceAccountProject'
206
+ property :service_account, as: 'serviceAccount'
247
207
  end
248
208
  end
249
209
 
250
210
  class GoogleCloudMlV1beta1Version
251
211
  # @private
252
212
  class Representation < Google::Apis::Core::JsonRepresentation
253
- property :runtime_version, as: 'runtimeVersion'
254
- property :last_use_time, as: 'lastUseTime'
255
- property :description, as: 'description'
256
- property :deployment_uri, as: 'deploymentUri'
257
213
  property :is_default, as: 'isDefault'
258
214
  property :create_time, as: 'createTime'
259
215
  property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling::Representation
260
216
 
261
217
  property :name, as: 'name'
262
- end
263
- end
264
-
265
- class GoogleCloudMlV1GetConfigResponse
266
- # @private
267
- class Representation < Google::Apis::Core::JsonRepresentation
268
- property :service_account_project, :numeric_string => true, as: 'serviceAccountProject'
269
- property :service_account, as: 'serviceAccount'
218
+ property :last_use_time, as: 'lastUseTime'
219
+ property :runtime_version, as: 'runtimeVersion'
220
+ property :description, as: 'description'
221
+ property :deployment_uri, as: 'deploymentUri'
270
222
  end
271
223
  end
272
224
 
@@ -285,19 +237,19 @@ module Google
285
237
  class GoogleCloudMlV1PredictionOutput
286
238
  # @private
287
239
  class Representation < Google::Apis::Core::JsonRepresentation
240
+ property :prediction_count, :numeric_string => true, as: 'predictionCount'
288
241
  property :error_count, :numeric_string => true, as: 'errorCount'
289
242
  property :output_path, as: 'outputPath'
290
243
  property :node_hours, as: 'nodeHours'
291
- property :prediction_count, :numeric_string => true, as: 'predictionCount'
292
244
  end
293
245
  end
294
246
 
295
247
  class GoogleLongrunningListOperationsResponse
296
248
  # @private
297
249
  class Representation < Google::Apis::Core::JsonRepresentation
298
- property :next_page_token, as: 'nextPageToken'
299
250
  collection :operations, as: 'operations', class: Google::Apis::MlV1::GoogleLongrunningOperation, decorator: Google::Apis::MlV1::GoogleLongrunningOperation::Representation
300
251
 
252
+ property :next_page_token, as: 'nextPageToken'
301
253
  end
302
254
  end
303
255
 
@@ -311,11 +263,11 @@ module Google
311
263
  class GoogleCloudMlV1TrainingOutput
312
264
  # @private
313
265
  class Representation < Google::Apis::Core::JsonRepresentation
266
+ collection :trials, as: 'trials', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput::Representation
267
+
314
268
  property :completed_trial_count, :numeric_string => true, as: 'completedTrialCount'
315
269
  property :is_hyperparameter_tuning_job, as: 'isHyperparameterTuningJob'
316
270
  property :consumed_ml_units, as: 'consumedMLUnits'
317
- collection :trials, as: 'trials', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput::Representation
318
-
319
271
  end
320
272
  end
321
273
 
@@ -330,8 +282,8 @@ module Google
330
282
  class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
331
283
  # @private
332
284
  class Representation < Google::Apis::Core::JsonRepresentation
333
- property :objective_value, as: 'objectiveValue'
334
285
  property :training_step, :numeric_string => true, as: 'trainingStep'
286
+ property :objective_value, as: 'objectiveValue'
335
287
  end
336
288
  end
337
289
 
@@ -366,15 +318,15 @@ module Google
366
318
  class GoogleCloudMlV1PredictionInput
367
319
  # @private
368
320
  class Representation < Google::Apis::Core::JsonRepresentation
321
+ property :data_format, as: 'dataFormat'
322
+ property :runtime_version, as: 'runtimeVersion'
323
+ collection :input_paths, as: 'inputPaths'
324
+ property :region, as: 'region'
369
325
  property :version_name, as: 'versionName'
370
326
  property :model_name, as: 'modelName'
371
327
  property :output_path, as: 'outputPath'
372
328
  property :max_worker_count, :numeric_string => true, as: 'maxWorkerCount'
373
329
  property :uri, as: 'uri'
374
- property :data_format, as: 'dataFormat'
375
- property :runtime_version, as: 'runtimeVersion'
376
- collection :input_paths, as: 'inputPaths'
377
- property :region, as: 'region'
378
330
  end
379
331
  end
380
332
 
@@ -409,21 +361,21 @@ module Google
409
361
  class GoogleCloudMlV1HyperparameterSpec
410
362
  # @private
411
363
  class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :goal, as: 'goal'
365
+ property :hyperparameter_metric_tag, as: 'hyperparameterMetricTag'
412
366
  collection :params, as: 'params', class: Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec, decorator: Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec::Representation
413
367
 
414
368
  property :max_trials, as: 'maxTrials'
415
369
  property :max_parallel_trials, as: 'maxParallelTrials'
416
- property :goal, as: 'goal'
417
- property :hyperparameter_metric_tag, as: 'hyperparameterMetricTag'
418
370
  end
419
371
  end
420
372
 
421
373
  class GoogleCloudMlV1ListJobsResponse
422
374
  # @private
423
375
  class Representation < Google::Apis::Core::JsonRepresentation
376
+ property :next_page_token, as: 'nextPageToken'
424
377
  collection :jobs, as: 'jobs', class: Google::Apis::MlV1::GoogleCloudMlV1Job, decorator: Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
425
378
 
426
- property :next_page_token, as: 'nextPageToken'
427
379
  end
428
380
  end
429
381
 
@@ -448,12 +400,12 @@ module Google
448
400
  class GoogleCloudMlV1Model
449
401
  # @private
450
402
  class Representation < Google::Apis::Core::JsonRepresentation
451
- collection :regions, as: 'regions'
452
403
  property :name, as: 'name'
453
404
  property :description, as: 'description'
454
405
  property :online_prediction_logging, as: 'onlinePredictionLogging'
455
406
  property :default_version, as: 'defaultVersion', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
456
407
 
408
+ collection :regions, as: 'regions'
457
409
  end
458
410
  end
459
411
 
@@ -463,18 +415,18 @@ module Google
463
415
  end
464
416
  end
465
417
 
466
- class GoogleCloudMlV1CancelJobRequest
418
+ class GoogleCloudMlV1ListVersionsResponse
467
419
  # @private
468
420
  class Representation < Google::Apis::Core::JsonRepresentation
421
+ collection :versions, as: 'versions', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
422
+
423
+ property :next_page_token, as: 'nextPageToken'
469
424
  end
470
425
  end
471
426
 
472
- class GoogleCloudMlV1ListVersionsResponse
427
+ class GoogleCloudMlV1CancelJobRequest
473
428
  # @private
474
429
  class Representation < Google::Apis::Core::JsonRepresentation
475
- property :next_page_token, as: 'nextPageToken'
476
- collection :versions, as: 'versions', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
477
-
478
430
  end
479
431
  end
480
432
 
@@ -488,9 +440,58 @@ module Google
488
440
  class GoogleRpcStatus
489
441
  # @private
490
442
  class Representation < Google::Apis::Core::JsonRepresentation
443
+ collection :details, as: 'details'
491
444
  property :code, as: 'code'
492
445
  property :message, as: 'message'
493
- collection :details, as: 'details'
446
+ end
447
+ end
448
+
449
+ class GoogleCloudMlV1ListModelsResponse
450
+ # @private
451
+ class Representation < Google::Apis::Core::JsonRepresentation
452
+ collection :models, as: 'models', class: Google::Apis::MlV1::GoogleCloudMlV1Model, decorator: Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
453
+
454
+ property :next_page_token, as: 'nextPageToken'
455
+ end
456
+ end
457
+
458
+ class GoogleCloudMlV1TrainingInput
459
+ # @private
460
+ class Representation < Google::Apis::Core::JsonRepresentation
461
+ property :runtime_version, as: 'runtimeVersion'
462
+ property :python_module, as: 'pythonModule'
463
+ property :worker_type, as: 'workerType'
464
+ collection :args, as: 'args'
465
+ property :region, as: 'region'
466
+ property :parameter_server_type, as: 'parameterServerType'
467
+ property :scale_tier, as: 'scaleTier'
468
+ property :job_dir, as: 'jobDir'
469
+ property :hyperparameters, as: 'hyperparameters', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec::Representation
470
+
471
+ property :parameter_server_count, :numeric_string => true, as: 'parameterServerCount'
472
+ collection :package_uris, as: 'packageUris'
473
+ property :worker_count, :numeric_string => true, as: 'workerCount'
474
+ property :master_type, as: 'masterType'
475
+ end
476
+ end
477
+
478
+ class GoogleCloudMlV1Job
479
+ # @private
480
+ class Representation < Google::Apis::Core::JsonRepresentation
481
+ property :end_time, as: 'endTime'
482
+ property :start_time, as: 'startTime'
483
+ property :prediction_output, as: 'predictionOutput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput::Representation
484
+
485
+ property :training_output, as: 'trainingOutput', class: Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput::Representation
486
+
487
+ property :create_time, as: 'createTime'
488
+ property :training_input, as: 'trainingInput', class: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1TrainingInput::Representation
489
+
490
+ property :prediction_input, as: 'predictionInput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput::Representation
491
+
492
+ property :state, as: 'state'
493
+ property :error_message, as: 'errorMessage'
494
+ property :job_id, as: 'jobId'
494
495
  end
495
496
  end
496
497
  end
@@ -47,72 +47,72 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
- # Get the service account information associated with your project. You need
51
- # this information in order to grant the service account persmissions for
52
- # the Google Cloud Storage location where you put your model training code
53
- # for training the model with Google Cloud Machine Learning.
50
+ # Performs prediction on the data in the request.
51
+ # **** REMOVE FROM GENERATED DOCUMENTATION
54
52
  # @param [String] name
55
- # Required. The project name.
56
- # Authorization: requires `Viewer` role on the specified project.
57
- # @param [String] fields
58
- # Selector specifying which fields to include in a partial response.
53
+ # Required. The resource name of a model or a version.
54
+ # Authorization: requires `Viewer` role on the parent project.
55
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_request_object
59
56
  # @param [String] quota_user
60
57
  # Available to use for quota purposes for server-side applications. Can be any
61
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.
62
61
  # @param [Google::Apis::RequestOptions] options
63
62
  # Request-specific options
64
63
  #
65
64
  # @yield [result, err] Result & error if block supplied
66
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse] parsed result object
65
+ # @yieldparam result [Google::Apis::MlV1::GoogleApiHttpBody] parsed result object
67
66
  # @yieldparam err [StandardError] error object if request failed
68
67
  #
69
- # @return [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse]
68
+ # @return [Google::Apis::MlV1::GoogleApiHttpBody]
70
69
  #
71
70
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
71
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
72
  # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def get_project_config(name, fields: nil, quota_user: nil, options: nil, &block)
75
- command = make_simple_command(:get, 'v1/{+name}:getConfig', options)
76
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse::Representation
77
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse
73
+ def predict_project(name, google_cloud_ml_v1__predict_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1/{+name}:predict', options)
75
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1PredictRequest::Representation
76
+ command.request_object = google_cloud_ml_v1__predict_request_object
77
+ command.response_representation = Google::Apis::MlV1::GoogleApiHttpBody::Representation
78
+ command.response_class = Google::Apis::MlV1::GoogleApiHttpBody
78
79
  command.params['name'] = name unless name.nil?
79
- command.query['fields'] = fields unless fields.nil?
80
80
  command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ command.query['fields'] = fields unless fields.nil?
81
82
  execute_or_queue_command(command, &block)
82
83
  end
83
84
 
84
- # Performs prediction on the data in the request.
85
- # **** REMOVE FROM GENERATED DOCUMENTATION
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.
86
89
  # @param [String] name
87
- # Required. The resource name of a model or a version.
88
- # Authorization: requires `Viewer` role on the parent project.
89
- # @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_request_object
90
- # @param [String] fields
91
- # Selector specifying which fields to include in a partial response.
90
+ # Required. The project name.
91
+ # Authorization: requires `Viewer` role on the specified project.
92
92
  # @param [String] quota_user
93
93
  # Available to use for quota purposes for server-side applications. Can be any
94
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.
95
97
  # @param [Google::Apis::RequestOptions] options
96
98
  # Request-specific options
97
99
  #
98
100
  # @yield [result, err] Result & error if block supplied
99
- # @yieldparam result [Google::Apis::MlV1::GoogleApiHttpBody] parsed result object
101
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse] parsed result object
100
102
  # @yieldparam err [StandardError] error object if request failed
101
103
  #
102
- # @return [Google::Apis::MlV1::GoogleApiHttpBody]
104
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse]
103
105
  #
104
106
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
107
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
108
  # @raise [Google::Apis::AuthorizationError] Authorization is required
107
- def predict_project(name, google_cloud_ml_v1__predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
108
- command = make_simple_command(:post, 'v1/{+name}:predict', options)
109
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1PredictRequest::Representation
110
- command.request_object = google_cloud_ml_v1__predict_request_object
111
- command.response_representation = Google::Apis::MlV1::GoogleApiHttpBody::Representation
112
- command.response_class = Google::Apis::MlV1::GoogleApiHttpBody
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
113
113
  command.params['name'] = name unless name.nil?
114
- command.query['fields'] = fields unless fields.nil?
115
114
  command.query['quotaUser'] = quota_user unless quota_user.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
116
  execute_or_queue_command(command, &block)
117
117
  end
118
118
 
@@ -128,11 +128,11 @@ module Google
128
128
  # corresponding to `Code.CANCELLED`.
129
129
  # @param [String] name
130
130
  # The name of the operation resource to be cancelled.
131
- # @param [String] fields
132
- # Selector specifying which fields to include in a partial response.
133
131
  # @param [String] quota_user
134
132
  # Available to use for quota purposes for server-side applications. Can be any
135
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.
136
136
  # @param [Google::Apis::RequestOptions] options
137
137
  # Request-specific options
138
138
  #
@@ -145,13 +145,13 @@ module Google
145
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
148
- def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
148
+ def cancel_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
149
149
  command = make_simple_command(:post, 'v1/{+name}:cancel', options)
150
150
  command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
151
151
  command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
152
152
  command.params['name'] = name unless name.nil?
153
- command.query['fields'] = fields unless fields.nil?
154
153
  command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ command.query['fields'] = fields unless fields.nil?
155
155
  execute_or_queue_command(command, &block)
156
156
  end
157
157
 
@@ -161,11 +161,11 @@ module Google
161
161
  # `google.rpc.Code.UNIMPLEMENTED`.
162
162
  # @param [String] name
163
163
  # The name of the operation resource to be deleted.
164
- # @param [String] fields
165
- # Selector specifying which fields to include in a partial response.
166
164
  # @param [String] quota_user
167
165
  # Available to use for quota purposes for server-side applications. Can be any
168
166
  # arbitrary string assigned to a user, but should not exceed 40 characters.
167
+ # @param [String] fields
168
+ # Selector specifying which fields to include in a partial response.
169
169
  # @param [Google::Apis::RequestOptions] options
170
170
  # Request-specific options
171
171
  #
@@ -178,13 +178,13 @@ module Google
178
178
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
179
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
180
  # @raise [Google::Apis::AuthorizationError] Authorization is required
181
- def delete_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
181
+ def delete_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
182
182
  command = make_simple_command(:delete, 'v1/{+name}', options)
183
183
  command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
184
184
  command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
185
185
  command.params['name'] = name unless name.nil?
186
- command.query['fields'] = fields unless fields.nil?
187
186
  command.query['quotaUser'] = quota_user unless quota_user.nil?
187
+ command.query['fields'] = fields unless fields.nil?
188
188
  execute_or_queue_command(command, &block)
189
189
  end
190
190
 
@@ -194,17 +194,17 @@ module Google
194
194
  # to use different resource name schemes, such as `users/*/operations`.
195
195
  # @param [String] name
196
196
  # The name of the operation collection.
197
+ # @param [String] filter
198
+ # The standard list filter.
197
199
  # @param [String] page_token
198
200
  # The standard list page token.
199
201
  # @param [Fixnum] page_size
200
202
  # The standard list page size.
201
- # @param [String] filter
202
- # The standard list filter.
203
- # @param [String] fields
204
- # Selector specifying which fields to include in a partial response.
205
203
  # @param [String] quota_user
206
204
  # Available to use for quota purposes for server-side applications. Can be any
207
205
  # arbitrary string assigned to a user, but should not exceed 40 characters.
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
208
  # @param [Google::Apis::RequestOptions] options
209
209
  # Request-specific options
210
210
  #
@@ -217,16 +217,16 @@ module Google
217
217
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
218
218
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
219
219
  # @raise [Google::Apis::AuthorizationError] Authorization is required
220
- def list_project_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
220
+ def list_project_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
221
221
  command = make_simple_command(:get, 'v1/{+name}/operations', options)
222
222
  command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation
223
223
  command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse
224
224
  command.params['name'] = name unless name.nil?
225
+ command.query['filter'] = filter unless filter.nil?
225
226
  command.query['pageToken'] = page_token unless page_token.nil?
226
227
  command.query['pageSize'] = page_size unless page_size.nil?
227
- command.query['filter'] = filter unless filter.nil?
228
- command.query['fields'] = fields unless fields.nil?
229
228
  command.query['quotaUser'] = quota_user unless quota_user.nil?
229
+ command.query['fields'] = fields unless fields.nil?
230
230
  execute_or_queue_command(command, &block)
231
231
  end
232
232
 
@@ -235,11 +235,11 @@ module Google
235
235
  # service.
236
236
  # @param [String] name
237
237
  # The name of the operation resource.
238
- # @param [String] fields
239
- # Selector specifying which fields to include in a partial response.
240
238
  # @param [String] quota_user
241
239
  # Available to use for quota purposes for server-side applications. Can be any
242
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.
243
243
  # @param [Google::Apis::RequestOptions] options
244
244
  # Request-specific options
245
245
  #
@@ -252,13 +252,13 @@ module Google
252
252
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
253
253
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254
254
  # @raise [Google::Apis::AuthorizationError] Authorization is required
255
- def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
255
+ def get_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
256
256
  command = make_simple_command(:get, 'v1/{+name}', options)
257
257
  command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
258
258
  command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
259
259
  command.params['name'] = name unless name.nil?
260
- command.query['fields'] = fields unless fields.nil?
261
260
  command.query['quotaUser'] = quota_user unless quota_user.nil?
261
+ command.query['fields'] = fields unless fields.nil?
262
262
  execute_or_queue_command(command, &block)
263
263
  end
264
264
 
@@ -277,11 +277,11 @@ module Google
277
277
  # are more remaining results than this number, the response message will
278
278
  # contain a valid value in the `next_page_token` field.
279
279
  # The default value is 20, and the maximum page size is 100.
280
- # @param [String] fields
281
- # Selector specifying which fields to include in a partial response.
282
280
  # @param [String] quota_user
283
281
  # Available to use for quota purposes for server-side applications. Can be any
284
282
  # arbitrary string assigned to a user, but should not exceed 40 characters.
283
+ # @param [String] fields
284
+ # Selector specifying which fields to include in a partial response.
285
285
  # @param [Google::Apis::RequestOptions] options
286
286
  # Request-specific options
287
287
  #
@@ -294,15 +294,15 @@ module Google
294
294
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
295
295
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
296
296
  # @raise [Google::Apis::AuthorizationError] Authorization is required
297
- def list_project_models(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
297
+ def list_project_models(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
298
298
  command = make_simple_command(:get, 'v1/{+parent}/models', options)
299
299
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse::Representation
300
300
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse
301
301
  command.params['parent'] = parent unless parent.nil?
302
302
  command.query['pageToken'] = page_token unless page_token.nil?
303
303
  command.query['pageSize'] = page_size unless page_size.nil?
304
- command.query['fields'] = fields unless fields.nil?
305
304
  command.query['quotaUser'] = quota_user unless quota_user.nil?
305
+ command.query['fields'] = fields unless fields.nil?
306
306
  execute_or_queue_command(command, &block)
307
307
  end
308
308
 
@@ -312,11 +312,11 @@ module Google
312
312
  # @param [String] name
313
313
  # Required. The name of the model.
314
314
  # Authorization: requires `Viewer` role on the parent project.
315
- # @param [String] fields
316
- # Selector specifying which fields to include in a partial response.
317
315
  # @param [String] quota_user
318
316
  # Available to use for quota purposes for server-side applications. Can be any
319
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.
320
320
  # @param [Google::Apis::RequestOptions] options
321
321
  # Request-specific options
322
322
  #
@@ -329,13 +329,13 @@ module Google
329
329
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
330
330
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
331
331
  # @raise [Google::Apis::AuthorizationError] Authorization is required
332
- def get_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
332
+ def get_project_model(name, quota_user: nil, fields: nil, options: nil, &block)
333
333
  command = make_simple_command(:get, 'v1/{+name}', options)
334
334
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
335
335
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
336
336
  command.params['name'] = name unless name.nil?
337
- command.query['fields'] = fields unless fields.nil?
338
337
  command.query['quotaUser'] = quota_user unless quota_user.nil?
338
+ command.query['fields'] = fields unless fields.nil?
339
339
  execute_or_queue_command(command, &block)
340
340
  end
341
341
 
@@ -348,11 +348,11 @@ module Google
348
348
  # Required. The project name.
349
349
  # Authorization: requires `Editor` role on the specified project.
350
350
  # @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object
351
- # @param [String] fields
352
- # Selector specifying which fields to include in a partial response.
353
351
  # @param [String] quota_user
354
352
  # Available to use for quota purposes for server-side applications. Can be any
355
353
  # arbitrary string assigned to a user, but should not exceed 40 characters.
354
+ # @param [String] fields
355
+ # Selector specifying which fields to include in a partial response.
356
356
  # @param [Google::Apis::RequestOptions] options
357
357
  # Request-specific options
358
358
  #
@@ -365,15 +365,15 @@ module Google
365
365
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
366
366
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
367
367
  # @raise [Google::Apis::AuthorizationError] Authorization is required
368
- def create_project_model(parent, google_cloud_ml_v1__model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
368
+ def create_project_model(parent, google_cloud_ml_v1__model_object = nil, quota_user: nil, fields: nil, options: nil, &block)
369
369
  command = make_simple_command(:post, 'v1/{+parent}/models', options)
370
370
  command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
371
371
  command.request_object = google_cloud_ml_v1__model_object
372
372
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
373
373
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
374
374
  command.params['parent'] = parent unless parent.nil?
375
- command.query['fields'] = fields unless fields.nil?
376
375
  command.query['quotaUser'] = quota_user unless quota_user.nil?
376
+ command.query['fields'] = fields unless fields.nil?
377
377
  execute_or_queue_command(command, &block)
378
378
  end
379
379
 
@@ -385,50 +385,11 @@ module Google
385
385
  # @param [String] name
386
386
  # Required. The name of the model.
387
387
  # Authorization: requires `Editor` role on the parent project.
388
- # @param [String] fields
389
- # Selector specifying which fields to include in a partial response.
390
388
  # @param [String] quota_user
391
389
  # Available to use for quota purposes for server-side applications. Can be any
392
390
  # arbitrary string assigned to a user, but should not exceed 40 characters.
393
- # @param [Google::Apis::RequestOptions] options
394
- # Request-specific options
395
- #
396
- # @yield [result, err] Result & error if block supplied
397
- # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
398
- # @yieldparam err [StandardError] error object if request failed
399
- #
400
- # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
401
- #
402
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
403
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
404
- # @raise [Google::Apis::AuthorizationError] Authorization is required
405
- def delete_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
406
- command = make_simple_command(:delete, 'v1/{+name}', options)
407
- command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
408
- command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
409
- command.params['name'] = name unless name.nil?
410
- command.query['fields'] = fields unless fields.nil?
411
- command.query['quotaUser'] = quota_user unless quota_user.nil?
412
- execute_or_queue_command(command, &block)
413
- end
414
-
415
- # Creates a new version of a model from a trained TensorFlow model.
416
- # If the version created in the cloud by this call is the first deployed
417
- # version of the specified model, it will be made the default version of the
418
- # model. When you add a version to a model that already has one or more
419
- # versions, the default version does not automatically change. If you want a
420
- # new version to be the default, you must call
421
- # [projects.models.versions.setDefault](/ml-engine/reference/rest/v1/projects.
422
- # models.versions/setDefault).
423
- # @param [String] parent
424
- # Required. The name of the model.
425
- # Authorization: requires `Editor` role on the parent project.
426
- # @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
427
391
  # @param [String] fields
428
392
  # Selector specifying which fields to include in a partial response.
429
- # @param [String] quota_user
430
- # Available to use for quota purposes for server-side applications. Can be any
431
- # arbitrary string assigned to a user, but should not exceed 40 characters.
432
393
  # @param [Google::Apis::RequestOptions] options
433
394
  # Request-specific options
434
395
  #
@@ -441,57 +402,13 @@ module Google
441
402
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
442
403
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
443
404
  # @raise [Google::Apis::AuthorizationError] Authorization is required
444
- def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
445
- command = make_simple_command(:post, 'v1/{+parent}/versions', options)
446
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
447
- command.request_object = google_cloud_ml_v1__version_object
405
+ def delete_project_model(name, quota_user: nil, fields: nil, options: nil, &block)
406
+ command = make_simple_command(:delete, 'v1/{+name}', options)
448
407
  command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
449
408
  command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
450
- command.params['parent'] = parent unless parent.nil?
451
- command.query['fields'] = fields unless fields.nil?
452
- command.query['quotaUser'] = quota_user unless quota_user.nil?
453
- execute_or_queue_command(command, &block)
454
- end
455
-
456
- # Designates a version to be the default for the model.
457
- # The default version is used for prediction requests made against the model
458
- # that don't specify a version.
459
- # The first version to be created for a model is automatically set as the
460
- # default. You must make any subsequent changes to the default version
461
- # setting manually using this method.
462
- # @param [String] name
463
- # Required. The name of the version to make the default for the model. You
464
- # can get the names of all the versions of a model by calling
465
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
466
- # versions/list).
467
- # Authorization: requires `Editor` role on the parent project.
468
- # @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object
469
- # @param [String] fields
470
- # Selector specifying which fields to include in a partial response.
471
- # @param [String] quota_user
472
- # Available to use for quota purposes for server-side applications. Can be any
473
- # arbitrary string assigned to a user, but should not exceed 40 characters.
474
- # @param [Google::Apis::RequestOptions] options
475
- # Request-specific options
476
- #
477
- # @yield [result, err] Result & error if block supplied
478
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Version] parsed result object
479
- # @yieldparam err [StandardError] error object if request failed
480
- #
481
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
482
- #
483
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
484
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
485
- # @raise [Google::Apis::AuthorizationError] Authorization is required
486
- 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)
487
- command = make_simple_command(:post, 'v1/{+name}:setDefault', options)
488
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest::Representation
489
- command.request_object = google_cloud_ml_v1__set_default_version_request_object
490
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
491
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
492
409
  command.params['name'] = name unless name.nil?
493
- command.query['fields'] = fields unless fields.nil?
494
410
  command.query['quotaUser'] = quota_user unless quota_user.nil?
411
+ command.query['fields'] = fields unless fields.nil?
495
412
  execute_or_queue_command(command, &block)
496
413
  end
497
414
 
@@ -506,11 +423,11 @@ module Google
506
423
  # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
507
424
  # versions/list).
508
425
  # Authorization: requires `Editor` role on the parent project.
509
- # @param [String] fields
510
- # Selector specifying which fields to include in a partial response.
511
426
  # @param [String] quota_user
512
427
  # Available to use for quota purposes for server-side applications. Can be any
513
428
  # arbitrary string assigned to a user, but should not exceed 40 characters.
429
+ # @param [String] fields
430
+ # Selector specifying which fields to include in a partial response.
514
431
  # @param [Google::Apis::RequestOptions] options
515
432
  # Request-specific options
516
433
  #
@@ -523,13 +440,13 @@ module Google
523
440
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
524
441
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
525
442
  # @raise [Google::Apis::AuthorizationError] Authorization is required
526
- def delete_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
443
+ def delete_project_model_version(name, quota_user: nil, fields: nil, options: nil, &block)
527
444
  command = make_simple_command(:delete, 'v1/{+name}', options)
528
445
  command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
529
446
  command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
530
447
  command.params['name'] = name unless name.nil?
531
- command.query['fields'] = fields unless fields.nil?
532
448
  command.query['quotaUser'] = quota_user unless quota_user.nil?
449
+ command.query['fields'] = fields unless fields.nil?
533
450
  execute_or_queue_command(command, &block)
534
451
  end
535
452
 
@@ -549,11 +466,11 @@ module Google
549
466
  # there are more remaining results than this number, the response message
550
467
  # will contain a valid value in the `next_page_token` field.
551
468
  # The default value is 20, and the maximum page size is 100.
552
- # @param [String] fields
553
- # Selector specifying which fields to include in a partial response.
554
469
  # @param [String] quota_user
555
470
  # Available to use for quota purposes for server-side applications. Can be any
556
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.
557
474
  # @param [Google::Apis::RequestOptions] options
558
475
  # Request-specific options
559
476
  #
@@ -566,15 +483,15 @@ module Google
566
483
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
484
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
485
  # @raise [Google::Apis::AuthorizationError] Authorization is required
569
- def list_project_model_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
486
+ def list_project_model_versions(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
570
487
  command = make_simple_command(:get, 'v1/{+parent}/versions', options)
571
488
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation
572
489
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse
573
490
  command.params['parent'] = parent unless parent.nil?
574
491
  command.query['pageToken'] = page_token unless page_token.nil?
575
492
  command.query['pageSize'] = page_size unless page_size.nil?
576
- command.query['fields'] = fields unless fields.nil?
577
493
  command.query['quotaUser'] = quota_user unless quota_user.nil?
494
+ command.query['fields'] = fields unless fields.nil?
578
495
  execute_or_queue_command(command, &block)
579
496
  end
580
497
 
@@ -587,11 +504,11 @@ module Google
587
504
  # @param [String] name
588
505
  # Required. The name of the version.
589
506
  # Authorization: requires `Viewer` role on the parent project.
590
- # @param [String] fields
591
- # Selector specifying which fields to include in a partial response.
592
507
  # @param [String] quota_user
593
508
  # Available to use for quota purposes for server-side applications. Can be any
594
509
  # arbitrary string assigned to a user, but should not exceed 40 characters.
510
+ # @param [String] fields
511
+ # Selector specifying which fields to include in a partial response.
595
512
  # @param [Google::Apis::RequestOptions] options
596
513
  # Request-specific options
597
514
  #
@@ -604,47 +521,96 @@ module Google
604
521
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
522
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
523
  # @raise [Google::Apis::AuthorizationError] Authorization is required
607
- def get_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
524
+ def get_project_model_version(name, quota_user: nil, fields: nil, options: nil, &block)
608
525
  command = make_simple_command(:get, 'v1/{+name}', options)
609
526
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
610
527
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
611
528
  command.params['name'] = name unless name.nil?
612
- command.query['fields'] = fields unless fields.nil?
613
529
  command.query['quotaUser'] = quota_user unless quota_user.nil?
530
+ command.query['fields'] = fields unless fields.nil?
614
531
  execute_or_queue_command(command, &block)
615
532
  end
616
533
 
617
- # Creates a training or a batch prediction job.
534
+ # Creates a new version of a model from a trained TensorFlow model.
535
+ # If the version created in the cloud by this call is the first deployed
536
+ # version of the specified model, it will be made the default version of the
537
+ # model. When you add a version to a model that already has one or more
538
+ # versions, the default version does not automatically change. If you want a
539
+ # new version to be the default, you must call
540
+ # [projects.models.versions.setDefault](/ml-engine/reference/rest/v1/projects.
541
+ # models.versions/setDefault).
618
542
  # @param [String] parent
619
- # Required. The project name.
620
- # Authorization: requires `Editor` role on the specified project.
621
- # @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
622
- # @param [String] fields
623
- # Selector specifying which fields to include in a partial response.
543
+ # Required. The name of the model.
544
+ # Authorization: requires `Editor` role on the parent project.
545
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
624
546
  # @param [String] quota_user
625
547
  # Available to use for quota purposes for server-side applications. Can be any
626
548
  # arbitrary string assigned to a user, but should not exceed 40 characters.
549
+ # @param [String] fields
550
+ # Selector specifying which fields to include in a partial response.
627
551
  # @param [Google::Apis::RequestOptions] options
628
552
  # Request-specific options
629
553
  #
630
554
  # @yield [result, err] Result & error if block supplied
631
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
555
+ # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
632
556
  # @yieldparam err [StandardError] error object if request failed
633
557
  #
634
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
558
+ # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
635
559
  #
636
560
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
637
561
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
638
562
  # @raise [Google::Apis::AuthorizationError] Authorization is required
639
- def create_project_job(parent, google_cloud_ml_v1__job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
640
- command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
641
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
642
- command.request_object = google_cloud_ml_v1__job_object
643
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
644
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
563
+ def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, quota_user: nil, fields: nil, options: nil, &block)
564
+ command = make_simple_command(:post, 'v1/{+parent}/versions', options)
565
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
566
+ command.request_object = google_cloud_ml_v1__version_object
567
+ command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
568
+ command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
645
569
  command.params['parent'] = parent unless parent.nil?
570
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
646
571
  command.query['fields'] = fields unless fields.nil?
572
+ execute_or_queue_command(command, &block)
573
+ end
574
+
575
+ # Designates a version to be the default for the model.
576
+ # The default version is used for prediction requests made against the model
577
+ # that don't specify a version.
578
+ # The first version to be created for a model is automatically set as the
579
+ # default. You must make any subsequent changes to the default version
580
+ # setting manually using this method.
581
+ # @param [String] name
582
+ # Required. The name of the version to make the default for the model. You
583
+ # can get the names of all the versions of a model by calling
584
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
585
+ # versions/list).
586
+ # Authorization: requires `Editor` role on the parent project.
587
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object
588
+ # @param [String] quota_user
589
+ # Available to use for quota purposes for server-side applications. Can be any
590
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
591
+ # @param [String] fields
592
+ # Selector specifying which fields to include in a partial response.
593
+ # @param [Google::Apis::RequestOptions] options
594
+ # Request-specific options
595
+ #
596
+ # @yield [result, err] Result & error if block supplied
597
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Version] parsed result object
598
+ # @yieldparam err [StandardError] error object if request failed
599
+ #
600
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
601
+ #
602
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
603
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
604
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
605
+ 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)
606
+ command = make_simple_command(:post, 'v1/{+name}:setDefault', options)
607
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest::Representation
608
+ command.request_object = google_cloud_ml_v1__set_default_version_request_object
609
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
610
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
611
+ command.params['name'] = name unless name.nil?
647
612
  command.query['quotaUser'] = quota_user unless quota_user.nil?
613
+ command.query['fields'] = fields unless fields.nil?
648
614
  execute_or_queue_command(command, &block)
649
615
  end
650
616
 
@@ -653,11 +619,11 @@ module Google
653
619
  # Required. The name of the job to cancel.
654
620
  # Authorization: requires `Editor` role on the parent project.
655
621
  # @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object
656
- # @param [String] fields
657
- # Selector specifying which fields to include in a partial response.
658
622
  # @param [String] quota_user
659
623
  # Available to use for quota purposes for server-side applications. Can be any
660
624
  # arbitrary string assigned to a user, but should not exceed 40 characters.
625
+ # @param [String] fields
626
+ # Selector specifying which fields to include in a partial response.
661
627
  # @param [Google::Apis::RequestOptions] options
662
628
  # Request-specific options
663
629
  #
@@ -670,15 +636,15 @@ module Google
670
636
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
671
637
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
672
638
  # @raise [Google::Apis::AuthorizationError] Authorization is required
673
- def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
639
+ def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
674
640
  command = make_simple_command(:post, 'v1/{+name}:cancel', options)
675
641
  command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation
676
642
  command.request_object = google_cloud_ml_v1__cancel_job_request_object
677
643
  command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
678
644
  command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
679
645
  command.params['name'] = name unless name.nil?
680
- command.query['fields'] = fields unless fields.nil?
681
646
  command.query['quotaUser'] = quota_user unless quota_user.nil?
647
+ command.query['fields'] = fields unless fields.nil?
682
648
  execute_or_queue_command(command, &block)
683
649
  end
684
650
 
@@ -686,10 +652,6 @@ module Google
686
652
  # @param [String] parent
687
653
  # Required. The name of the project for which to list jobs.
688
654
  # Authorization: requires `Viewer` role on the specified project.
689
- # @param [String] page_token
690
- # Optional. A page token to request the next page of results.
691
- # You get the token from the `next_page_token` field of the response from
692
- # the previous call.
693
655
  # @param [Fixnum] page_size
694
656
  # Optional. The number of jobs to retrieve per "page" of results. If there
695
657
  # are more remaining results than this number, the response message will
@@ -697,11 +659,15 @@ module Google
697
659
  # The default value is 20, and the maximum page size is 100.
698
660
  # @param [String] filter
699
661
  # Optional. Specifies the subset of jobs to retrieve.
700
- # @param [String] fields
701
- # Selector specifying which fields to include in a partial response.
662
+ # @param [String] page_token
663
+ # Optional. A page token to request the next page of results.
664
+ # You get the token from the `next_page_token` field of the response from
665
+ # the previous call.
702
666
  # @param [String] quota_user
703
667
  # Available to use for quota purposes for server-side applications. Can be any
704
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.
705
671
  # @param [Google::Apis::RequestOptions] options
706
672
  # Request-specific options
707
673
  #
@@ -714,16 +680,16 @@ module Google
714
680
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
715
681
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
716
682
  # @raise [Google::Apis::AuthorizationError] Authorization is required
717
- def list_project_jobs(parent, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
683
+ def list_project_jobs(parent, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
718
684
  command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
719
685
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation
720
686
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse
721
687
  command.params['parent'] = parent unless parent.nil?
722
- command.query['pageToken'] = page_token unless page_token.nil?
723
688
  command.query['pageSize'] = page_size unless page_size.nil?
724
689
  command.query['filter'] = filter unless filter.nil?
725
- command.query['fields'] = fields unless fields.nil?
690
+ command.query['pageToken'] = page_token unless page_token.nil?
726
691
  command.query['quotaUser'] = quota_user unless quota_user.nil?
692
+ command.query['fields'] = fields unless fields.nil?
727
693
  execute_or_queue_command(command, &block)
728
694
  end
729
695
 
@@ -731,11 +697,11 @@ module Google
731
697
  # @param [String] name
732
698
  # Required. The name of the job to get the description of.
733
699
  # Authorization: requires `Viewer` role on the parent project.
734
- # @param [String] fields
735
- # Selector specifying which fields to include in a partial response.
736
700
  # @param [String] quota_user
737
701
  # Available to use for quota purposes for server-side applications. Can be any
738
702
  # arbitrary string assigned to a user, but should not exceed 40 characters.
703
+ # @param [String] fields
704
+ # Selector specifying which fields to include in a partial response.
739
705
  # @param [Google::Apis::RequestOptions] options
740
706
  # Request-specific options
741
707
  #
@@ -748,13 +714,47 @@ module Google
748
714
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
749
715
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
750
716
  # @raise [Google::Apis::AuthorizationError] Authorization is required
751
- def get_project_job(name, fields: nil, quota_user: nil, options: nil, &block)
717
+ def get_project_job(name, quota_user: nil, fields: nil, options: nil, &block)
752
718
  command = make_simple_command(:get, 'v1/{+name}', options)
753
719
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
754
720
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
755
721
  command.params['name'] = name unless name.nil?
722
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
756
723
  command.query['fields'] = fields unless fields.nil?
724
+ execute_or_queue_command(command, &block)
725
+ end
726
+
727
+ # Creates a training or a batch prediction job.
728
+ # @param [String] parent
729
+ # Required. The project name.
730
+ # Authorization: requires `Editor` role on the specified project.
731
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_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::GoogleCloudMlV1Job] parsed result object
742
+ # @yieldparam err [StandardError] error object if request failed
743
+ #
744
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
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 create_project_job(parent, google_cloud_ml_v1__job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
750
+ command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
751
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
752
+ command.request_object = google_cloud_ml_v1__job_object
753
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
754
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
755
+ command.params['parent'] = parent unless parent.nil?
757
756
  command.query['quotaUser'] = quota_user unless quota_user.nil?
757
+ command.query['fields'] = fields unless fields.nil?
758
758
  execute_or_queue_command(command, &block)
759
759
  end
760
760