google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -53,7 +53,6 @@ module Google
53
53
  # for training the model with Google Cloud Machine Learning.
54
54
  # @param [String] name
55
55
  # Required. The project name.
56
- # Authorization: requires `Viewer` role on the specified project.
57
56
  # @param [String] fields
58
57
  # Selector specifying which fields to include in a partial response.
59
58
  # @param [String] quota_user
@@ -85,7 +84,7 @@ module Google
85
84
  # **** REMOVE FROM GENERATED DOCUMENTATION
86
85
  # @param [String] name
87
86
  # Required. The resource name of a model or a version.
88
- # Authorization: requires `Viewer` role on the parent project.
87
+ # Authorization: requires the `predict` permission on the specified resource.
89
88
  # @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_request_object
90
89
  # @param [String] fields
91
90
  # Selector specifying which fields to include in a partial response.
@@ -116,21 +115,20 @@ module Google
116
115
  execute_or_queue_command(command, &block)
117
116
  end
118
117
 
119
- # Lists the jobs in the project.
118
+ # Lists the models in a project.
119
+ # Each project can contain multiple models, and each model can have multiple
120
+ # versions.
120
121
  # @param [String] parent
121
- # Required. The name of the project for which to list jobs.
122
- # Authorization: requires `Viewer` role on the specified project.
123
- # @param [Fixnum] page_size
124
- # Optional. The number of jobs to retrieve per "page" of results. If there
125
- # are more remaining results than this number, the response message will
126
- # contain a valid value in the `next_page_token` field.
127
- # The default value is 20, and the maximum page size is 100.
128
- # @param [String] filter
129
- # Optional. Specifies the subset of jobs to retrieve.
122
+ # Required. The name of the project whose models are to be listed.
130
123
  # @param [String] page_token
131
124
  # Optional. A page token to request the next page of results.
132
125
  # You get the token from the `next_page_token` field of the response from
133
126
  # the previous call.
127
+ # @param [Fixnum] page_size
128
+ # Optional. The number of models to retrieve per "page" of results. If there
129
+ # are more remaining results than this number, the response message will
130
+ # contain a valid value in the `next_page_token` field.
131
+ # The default value is 20, and the maximum page size is 100.
134
132
  # @param [String] fields
135
133
  # Selector specifying which fields to include in a partial response.
136
134
  # @param [String] quota_user
@@ -140,31 +138,32 @@ module Google
140
138
  # Request-specific options
141
139
  #
142
140
  # @yield [result, err] Result & error if block supplied
143
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] parsed result object
141
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse] parsed result object
144
142
  # @yieldparam err [StandardError] error object if request failed
145
143
  #
146
- # @return [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse]
144
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse]
147
145
  #
148
146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
149
147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
150
148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
151
- def list_project_jobs(parent, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
152
- command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
153
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation
154
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse
149
+ def list_project_models(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
150
+ command = make_simple_command(:get, 'v1/{+parent}/models', options)
151
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse::Representation
152
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse
155
153
  command.params['parent'] = parent unless parent.nil?
156
- command.query['pageSize'] = page_size unless page_size.nil?
157
- command.query['filter'] = filter unless filter.nil?
158
154
  command.query['pageToken'] = page_token unless page_token.nil?
155
+ command.query['pageSize'] = page_size unless page_size.nil?
159
156
  command.query['fields'] = fields unless fields.nil?
160
157
  command.query['quotaUser'] = quota_user unless quota_user.nil?
161
158
  execute_or_queue_command(command, &block)
162
159
  end
163
160
 
164
- # Describes a job.
165
- # @param [String] name
166
- # Required. The name of the job to get the description of.
167
- # Authorization: requires `Viewer` role on the parent project.
161
+ # Sets the access control policy on the specified resource. Replaces any
162
+ # existing policy.
163
+ # @param [String] resource
164
+ # REQUIRED: The resource for which the policy is being specified.
165
+ # See the operation documentation for the appropriate value for this field.
166
+ # @param [Google::Apis::MlV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_request_object
168
167
  # @param [String] fields
169
168
  # Selector specifying which fields to include in a partial response.
170
169
  # @param [String] quota_user
@@ -174,29 +173,34 @@ module Google
174
173
  # Request-specific options
175
174
  #
176
175
  # @yield [result, err] Result & error if block supplied
177
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
176
+ # @yieldparam result [Google::Apis::MlV1::GoogleIamV1Policy] parsed result object
178
177
  # @yieldparam err [StandardError] error object if request failed
179
178
  #
180
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
179
+ # @return [Google::Apis::MlV1::GoogleIamV1Policy]
181
180
  #
182
181
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
182
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
183
  # @raise [Google::Apis::AuthorizationError] Authorization is required
185
- def get_project_job(name, fields: nil, quota_user: nil, options: nil, &block)
186
- command = make_simple_command(:get, 'v1/{+name}', options)
187
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
188
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
189
- command.params['name'] = name unless name.nil?
184
+ def set_project_model_iam_policy(resource, google_iam_v1__set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
185
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
186
+ command.request_representation = Google::Apis::MlV1::GoogleIamV1SetIamPolicyRequest::Representation
187
+ command.request_object = google_iam_v1__set_iam_policy_request_object
188
+ command.response_representation = Google::Apis::MlV1::GoogleIamV1Policy::Representation
189
+ command.response_class = Google::Apis::MlV1::GoogleIamV1Policy
190
+ command.params['resource'] = resource unless resource.nil?
190
191
  command.query['fields'] = fields unless fields.nil?
191
192
  command.query['quotaUser'] = quota_user unless quota_user.nil?
192
193
  execute_or_queue_command(command, &block)
193
194
  end
194
195
 
195
- # Creates a training or a batch prediction job.
196
+ # Creates a model which will later contain one or more versions.
197
+ # You must add at least one version before you can request predictions from
198
+ # the model. Add versions by calling
199
+ # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.
200
+ # versions/create).
196
201
  # @param [String] parent
197
202
  # Required. The project name.
198
- # Authorization: requires `Editor` role on the specified project.
199
- # @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
203
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object
200
204
  # @param [String] fields
201
205
  # Selector specifying which fields to include in a partial response.
202
206
  # @param [String] quota_user
@@ -206,77 +210,32 @@ module Google
206
210
  # Request-specific options
207
211
  #
208
212
  # @yield [result, err] Result & error if block supplied
209
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
213
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Model] parsed result object
210
214
  # @yieldparam err [StandardError] error object if request failed
211
215
  #
212
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
216
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Model]
213
217
  #
214
218
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
219
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
220
  # @raise [Google::Apis::AuthorizationError] Authorization is required
217
- def create_project_job(parent, google_cloud_ml_v1__job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
218
- command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
219
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
220
- command.request_object = google_cloud_ml_v1__job_object
221
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
222
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
221
+ def create_project_model(parent, google_cloud_ml_v1__model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
222
+ command = make_simple_command(:post, 'v1/{+parent}/models', options)
223
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
224
+ command.request_object = google_cloud_ml_v1__model_object
225
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
226
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
223
227
  command.params['parent'] = parent unless parent.nil?
224
228
  command.query['fields'] = fields unless fields.nil?
225
229
  command.query['quotaUser'] = quota_user unless quota_user.nil?
226
230
  execute_or_queue_command(command, &block)
227
231
  end
228
232
 
229
- # Cancels a running job.
230
- # @param [String] name
231
- # Required. The name of the job to cancel.
232
- # Authorization: requires `Editor` role on the parent project.
233
- # @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object
234
- # @param [String] fields
235
- # Selector specifying which fields to include in a partial response.
236
- # @param [String] quota_user
237
- # Available to use for quota purposes for server-side applications. Can be any
238
- # arbitrary string assigned to a user, but should not exceed 40 characters.
239
- # @param [Google::Apis::RequestOptions] options
240
- # Request-specific options
241
- #
242
- # @yield [result, err] Result & error if block supplied
243
- # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object
244
- # @yieldparam err [StandardError] error object if request failed
245
- #
246
- # @return [Google::Apis::MlV1::GoogleProtobufEmpty]
247
- #
248
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
249
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
250
- # @raise [Google::Apis::AuthorizationError] Authorization is required
251
- def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
252
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
253
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation
254
- command.request_object = google_cloud_ml_v1__cancel_job_request_object
255
- command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
256
- command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
257
- command.params['name'] = name unless name.nil?
258
- command.query['fields'] = fields unless fields.nil?
259
- command.query['quotaUser'] = quota_user unless quota_user.nil?
260
- execute_or_queue_command(command, &block)
261
- end
262
-
263
- # Lists operations that match the specified filter in the request. If the
264
- # server doesn't support this method, it returns `UNIMPLEMENTED`.
265
- # NOTE: the `name` binding allows API services to override the binding
266
- # to use different resource name schemes, such as `users/*/operations`. To
267
- # override the binding, API services can add a binding such as
268
- # `"/v1/`name=users/*`/operations"` to their service configuration.
269
- # For backwards compatibility, the default name includes the operations
270
- # collection id, however overriding users must ensure the name binding
271
- # is the parent resource, without the operations collection id.
272
- # @param [String] name
273
- # The name of the operation's parent resource.
274
- # @param [String] filter
275
- # The standard list filter.
276
- # @param [String] page_token
277
- # The standard list page token.
278
- # @param [Fixnum] page_size
279
- # The standard list page size.
233
+ # Gets the access control policy for a resource.
234
+ # Returns an empty policy if the resource exists and does not have a policy
235
+ # set.
236
+ # @param [String] resource
237
+ # REQUIRED: The resource for which the policy is being requested.
238
+ # See the operation documentation for the appropriate value for this field.
280
239
  # @param [String] fields
281
240
  # Selector specifying which fields to include in a partial response.
282
241
  # @param [String] quota_user
@@ -286,32 +245,29 @@ module Google
286
245
  # Request-specific options
287
246
  #
288
247
  # @yield [result, err] Result & error if block supplied
289
- # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse] parsed result object
248
+ # @yieldparam result [Google::Apis::MlV1::GoogleIamV1Policy] parsed result object
290
249
  # @yieldparam err [StandardError] error object if request failed
291
250
  #
292
- # @return [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse]
251
+ # @return [Google::Apis::MlV1::GoogleIamV1Policy]
293
252
  #
294
253
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
295
254
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
296
255
  # @raise [Google::Apis::AuthorizationError] Authorization is required
297
- def list_project_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
298
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
299
- command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation
300
- command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse
301
- command.params['name'] = name unless name.nil?
302
- command.query['filter'] = filter unless filter.nil?
303
- command.query['pageToken'] = page_token unless page_token.nil?
304
- command.query['pageSize'] = page_size unless page_size.nil?
256
+ def get_project_model_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
257
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
258
+ command.response_representation = Google::Apis::MlV1::GoogleIamV1Policy::Representation
259
+ command.response_class = Google::Apis::MlV1::GoogleIamV1Policy
260
+ command.params['resource'] = resource unless resource.nil?
305
261
  command.query['fields'] = fields unless fields.nil?
306
262
  command.query['quotaUser'] = quota_user unless quota_user.nil?
307
263
  execute_or_queue_command(command, &block)
308
264
  end
309
265
 
310
- # Gets the latest state of a long-running operation. Clients can use this
311
- # method to poll the operation result at intervals as recommended by the API
312
- # service.
266
+ # Gets information about a model, including its name, the description (if
267
+ # set), and the default version (if at least one version of the model has
268
+ # been deployed).
313
269
  # @param [String] name
314
- # The name of the operation resource.
270
+ # Required. The name of the model.
315
271
  # @param [String] fields
316
272
  # Selector specifying which fields to include in a partial response.
317
273
  # @param [String] quota_user
@@ -321,90 +277,18 @@ module Google
321
277
  # Request-specific options
322
278
  #
323
279
  # @yield [result, err] Result & error if block supplied
324
- # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
280
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Model] parsed result object
325
281
  # @yieldparam err [StandardError] error object if request failed
326
282
  #
327
- # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
283
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Model]
328
284
  #
329
285
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
330
286
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
331
287
  # @raise [Google::Apis::AuthorizationError] Authorization is required
332
- def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
288
+ def get_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
333
289
  command = make_simple_command(:get, 'v1/{+name}', options)
334
- command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
335
- command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
336
- command.params['name'] = name unless name.nil?
337
- command.query['fields'] = fields unless fields.nil?
338
- command.query['quotaUser'] = quota_user unless quota_user.nil?
339
- execute_or_queue_command(command, &block)
340
- end
341
-
342
- # Starts asynchronous cancellation on a long-running operation. The server
343
- # makes a best effort to cancel the operation, but success is not
344
- # guaranteed. If the server doesn't support this method, it returns
345
- # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
346
- # Operations.GetOperation or
347
- # other methods to check whether the cancellation succeeded or whether the
348
- # operation completed despite cancellation. On successful cancellation,
349
- # the operation is not deleted; instead, it becomes an operation with
350
- # an Operation.error value with a google.rpc.Status.code of 1,
351
- # corresponding to `Code.CANCELLED`.
352
- # @param [String] name
353
- # The name of the operation resource to be cancelled.
354
- # @param [String] fields
355
- # Selector specifying which fields to include in a partial response.
356
- # @param [String] quota_user
357
- # Available to use for quota purposes for server-side applications. Can be any
358
- # arbitrary string assigned to a user, but should not exceed 40 characters.
359
- # @param [Google::Apis::RequestOptions] options
360
- # Request-specific options
361
- #
362
- # @yield [result, err] Result & error if block supplied
363
- # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object
364
- # @yieldparam err [StandardError] error object if request failed
365
- #
366
- # @return [Google::Apis::MlV1::GoogleProtobufEmpty]
367
- #
368
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
369
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
370
- # @raise [Google::Apis::AuthorizationError] Authorization is required
371
- def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
372
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
373
- command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
374
- command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
375
- command.params['name'] = name unless name.nil?
376
- command.query['fields'] = fields unless fields.nil?
377
- command.query['quotaUser'] = quota_user unless quota_user.nil?
378
- execute_or_queue_command(command, &block)
379
- end
380
-
381
- # Deletes a long-running operation. This method indicates that the client is
382
- # no longer interested in the operation result. It does not cancel the
383
- # operation. If the server doesn't support this method, it returns
384
- # `google.rpc.Code.UNIMPLEMENTED`.
385
- # @param [String] name
386
- # The name of the operation resource to be deleted.
387
- # @param [String] fields
388
- # Selector specifying which fields to include in a partial response.
389
- # @param [String] quota_user
390
- # Available to use for quota purposes for server-side applications. Can be any
391
- # arbitrary string assigned to a user, but should not exceed 40 characters.
392
- # @param [Google::Apis::RequestOptions] options
393
- # Request-specific options
394
- #
395
- # @yield [result, err] Result & error if block supplied
396
- # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object
397
- # @yieldparam err [StandardError] error object if request failed
398
- #
399
- # @return [Google::Apis::MlV1::GoogleProtobufEmpty]
400
- #
401
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
402
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
403
- # @raise [Google::Apis::AuthorizationError] Authorization is required
404
- def delete_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
405
- command = make_simple_command(:delete, 'v1/{+name}', options)
406
- command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
407
- command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
290
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
291
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
408
292
  command.params['name'] = name unless name.nil?
409
293
  command.query['fields'] = fields unless fields.nil?
410
294
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -457,7 +341,6 @@ module Google
457
341
  # versions/delete).
458
342
  # @param [String] name
459
343
  # Required. The name of the model.
460
- # Authorization: requires `Editor` role on the parent project.
461
344
  # @param [String] fields
462
345
  # Selector specifying which fields to include in a partial response.
463
346
  # @param [String] quota_user
@@ -485,21 +368,17 @@ module Google
485
368
  execute_or_queue_command(command, &block)
486
369
  end
487
370
 
488
- # Lists the models in a project.
489
- # Each project can contain multiple models, and each model can have multiple
490
- # versions.
371
+ # Creates a new version of a model from a trained TensorFlow model.
372
+ # If the version created in the cloud by this call is the first deployed
373
+ # version of the specified model, it will be made the default version of the
374
+ # model. When you add a version to a model that already has one or more
375
+ # versions, the default version does not automatically change. If you want a
376
+ # new version to be the default, you must call
377
+ # [projects.models.versions.setDefault](/ml-engine/reference/rest/v1/projects.
378
+ # models.versions/setDefault).
491
379
  # @param [String] parent
492
- # Required. The name of the project whose models are to be listed.
493
- # Authorization: requires `Viewer` role on the specified project.
494
- # @param [String] page_token
495
- # Optional. A page token to request the next page of results.
496
- # You get the token from the `next_page_token` field of the response from
497
- # the previous call.
498
- # @param [Fixnum] page_size
499
- # Optional. The number of models to retrieve per "page" of results. If there
500
- # are more remaining results than this number, the response message will
501
- # contain a valid value in the `next_page_token` field.
502
- # The default value is 20, and the maximum page size is 100.
380
+ # Required. The name of the model.
381
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
503
382
  # @param [String] fields
504
383
  # Selector specifying which fields to include in a partial response.
505
384
  # @param [String] quota_user
@@ -509,32 +388,39 @@ module Google
509
388
  # Request-specific options
510
389
  #
511
390
  # @yield [result, err] Result & error if block supplied
512
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse] parsed result object
391
+ # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
513
392
  # @yieldparam err [StandardError] error object if request failed
514
393
  #
515
- # @return [Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse]
394
+ # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
516
395
  #
517
396
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
518
397
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
519
398
  # @raise [Google::Apis::AuthorizationError] Authorization is required
520
- def list_project_models(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
521
- command = make_simple_command(:get, 'v1/{+parent}/models', options)
522
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse::Representation
523
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse
399
+ def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
400
+ command = make_simple_command(:post, 'v1/{+parent}/versions', options)
401
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
402
+ command.request_object = google_cloud_ml_v1__version_object
403
+ command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
404
+ command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
524
405
  command.params['parent'] = parent unless parent.nil?
525
- command.query['pageToken'] = page_token unless page_token.nil?
526
- command.query['pageSize'] = page_size unless page_size.nil?
527
406
  command.query['fields'] = fields unless fields.nil?
528
407
  command.query['quotaUser'] = quota_user unless quota_user.nil?
529
408
  execute_or_queue_command(command, &block)
530
409
  end
531
410
 
532
- # Sets the access control policy on the specified resource. Replaces any
533
- # existing policy.
534
- # @param [String] resource
535
- # REQUIRED: The resource for which the policy is being specified.
536
- # See the operation documentation for the appropriate value for this field.
537
- # @param [Google::Apis::MlV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_request_object
411
+ # Designates a version to be the default for the model.
412
+ # The default version is used for prediction requests made against the model
413
+ # that don't specify a version.
414
+ # The first version to be created for a model is automatically set as the
415
+ # default. You must make any subsequent changes to the default version
416
+ # setting manually using this method.
417
+ # @param [String] name
418
+ # Required. The name of the version to make the default for the model. You
419
+ # can get the names of all the versions of a model by calling
420
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
421
+ # versions/list).
422
+ # Authorization: `ml.models.update` permission is required on the parent model.
423
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object
538
424
  # @param [String] fields
539
425
  # Selector specifying which fields to include in a partial response.
540
426
  # @param [String] quota_user
@@ -544,35 +430,36 @@ module Google
544
430
  # Request-specific options
545
431
  #
546
432
  # @yield [result, err] Result & error if block supplied
547
- # @yieldparam result [Google::Apis::MlV1::GoogleIamV1Policy] parsed result object
433
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Version] parsed result object
548
434
  # @yieldparam err [StandardError] error object if request failed
549
435
  #
550
- # @return [Google::Apis::MlV1::GoogleIamV1Policy]
436
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
551
437
  #
552
438
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
553
439
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
554
440
  # @raise [Google::Apis::AuthorizationError] Authorization is required
555
- def set_project_model_iam_policy(resource, google_iam_v1__set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
556
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
557
- command.request_representation = Google::Apis::MlV1::GoogleIamV1SetIamPolicyRequest::Representation
558
- command.request_object = google_iam_v1__set_iam_policy_request_object
559
- command.response_representation = Google::Apis::MlV1::GoogleIamV1Policy::Representation
560
- command.response_class = Google::Apis::MlV1::GoogleIamV1Policy
561
- command.params['resource'] = resource unless resource.nil?
441
+ 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)
442
+ command = make_simple_command(:post, 'v1/{+name}:setDefault', options)
443
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest::Representation
444
+ command.request_object = google_cloud_ml_v1__set_default_version_request_object
445
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
446
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
447
+ command.params['name'] = name unless name.nil?
562
448
  command.query['fields'] = fields unless fields.nil?
563
449
  command.query['quotaUser'] = quota_user unless quota_user.nil?
564
450
  execute_or_queue_command(command, &block)
565
451
  end
566
452
 
567
- # Creates a model which will later contain one or more versions.
568
- # You must add at least one version before you can request predictions from
569
- # the model. Add versions by calling
570
- # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.
571
- # versions/create).
572
- # @param [String] parent
573
- # Required. The project name.
574
- # Authorization: requires `Editor` role on the specified project.
575
- # @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object
453
+ # Deletes a model version.
454
+ # Each model can have multiple versions deployed and in use at any given
455
+ # time. Use this method to remove a single version.
456
+ # Note: You cannot delete the version that is set as the default version
457
+ # of the model unless it is the only remaining version.
458
+ # @param [String] name
459
+ # Required. The name of the version. You can get the names of all the
460
+ # versions of a model by calling
461
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
462
+ # versions/list).
576
463
  # @param [String] fields
577
464
  # Selector specifying which fields to include in a partial response.
578
465
  # @param [String] quota_user
@@ -582,32 +469,32 @@ module Google
582
469
  # Request-specific options
583
470
  #
584
471
  # @yield [result, err] Result & error if block supplied
585
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Model] parsed result object
472
+ # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
586
473
  # @yieldparam err [StandardError] error object if request failed
587
474
  #
588
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Model]
475
+ # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
589
476
  #
590
477
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
591
478
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
592
479
  # @raise [Google::Apis::AuthorizationError] Authorization is required
593
- def create_project_model(parent, google_cloud_ml_v1__model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
594
- command = make_simple_command(:post, 'v1/{+parent}/models', options)
595
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
596
- command.request_object = google_cloud_ml_v1__model_object
597
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
598
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
599
- command.params['parent'] = parent unless parent.nil?
480
+ def delete_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
481
+ command = make_simple_command(:delete, 'v1/{+name}', options)
482
+ command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
483
+ command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
484
+ command.params['name'] = name unless name.nil?
600
485
  command.query['fields'] = fields unless fields.nil?
601
486
  command.query['quotaUser'] = quota_user unless quota_user.nil?
602
487
  execute_or_queue_command(command, &block)
603
488
  end
604
489
 
605
- # Gets the access control policy for a resource.
606
- # Returns an empty policy if the resource exists and does not have a policy
607
- # set.
608
- # @param [String] resource
609
- # REQUIRED: The resource for which the policy is being requested.
610
- # See the operation documentation for the appropriate value for this field.
490
+ # Gets information about a model version.
491
+ # Models can have multiple versions. You can call
492
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
493
+ # versions/list)
494
+ # to get the same information that this method returns for all of the
495
+ # versions of a model.
496
+ # @param [String] name
497
+ # Required. The name of the version.
611
498
  # @param [String] fields
612
499
  # Selector specifying which fields to include in a partial response.
613
500
  # @param [String] quota_user
@@ -617,30 +504,39 @@ module Google
617
504
  # Request-specific options
618
505
  #
619
506
  # @yield [result, err] Result & error if block supplied
620
- # @yieldparam result [Google::Apis::MlV1::GoogleIamV1Policy] parsed result object
507
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Version] parsed result object
621
508
  # @yieldparam err [StandardError] error object if request failed
622
509
  #
623
- # @return [Google::Apis::MlV1::GoogleIamV1Policy]
510
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
624
511
  #
625
512
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
626
513
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
627
514
  # @raise [Google::Apis::AuthorizationError] Authorization is required
628
- def get_project_model_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
629
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
630
- command.response_representation = Google::Apis::MlV1::GoogleIamV1Policy::Representation
631
- command.response_class = Google::Apis::MlV1::GoogleIamV1Policy
632
- command.params['resource'] = resource unless resource.nil?
515
+ def get_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
516
+ command = make_simple_command(:get, 'v1/{+name}', options)
517
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
518
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
519
+ command.params['name'] = name unless name.nil?
633
520
  command.query['fields'] = fields unless fields.nil?
634
521
  command.query['quotaUser'] = quota_user unless quota_user.nil?
635
522
  execute_or_queue_command(command, &block)
636
523
  end
637
524
 
638
- # Gets information about a model, including its name, the description (if
639
- # set), and the default version (if at least one version of the model has
640
- # been deployed).
641
- # @param [String] name
642
- # Required. The name of the model.
643
- # Authorization: requires `Viewer` role on the parent project.
525
+ # Gets basic information about all the versions of a model.
526
+ # If you expect that a model has a lot of versions, or if you need to handle
527
+ # only a limited number of results at a time, you can request that the list
528
+ # be retrieved in batches (called pages):
529
+ # @param [String] parent
530
+ # Required. The name of the model for which to list the version.
531
+ # @param [Fixnum] page_size
532
+ # Optional. The number of versions to retrieve per "page" of results. If
533
+ # there are more remaining results than this number, the response message
534
+ # will contain a valid value in the `next_page_token` field.
535
+ # The default value is 20, and the maximum page size is 100.
536
+ # @param [String] page_token
537
+ # Optional. A page token to request the next page of results.
538
+ # You get the token from the `next_page_token` field of the response from
539
+ # the previous call.
644
540
  # @param [String] fields
645
541
  # Selector specifying which fields to include in a partial response.
646
542
  # @param [String] quota_user
@@ -650,35 +546,31 @@ module Google
650
546
  # Request-specific options
651
547
  #
652
548
  # @yield [result, err] Result & error if block supplied
653
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Model] parsed result object
549
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse] parsed result object
654
550
  # @yieldparam err [StandardError] error object if request failed
655
551
  #
656
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Model]
552
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse]
657
553
  #
658
554
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
659
555
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
660
556
  # @raise [Google::Apis::AuthorizationError] Authorization is required
661
- def get_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
662
- command = make_simple_command(:get, 'v1/{+name}', options)
663
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
664
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
665
- command.params['name'] = name unless name.nil?
557
+ def list_project_model_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
558
+ command = make_simple_command(:get, 'v1/{+parent}/versions', options)
559
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation
560
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse
561
+ command.params['parent'] = parent unless parent.nil?
562
+ command.query['pageSize'] = page_size unless page_size.nil?
563
+ command.query['pageToken'] = page_token unless page_token.nil?
666
564
  command.query['fields'] = fields unless fields.nil?
667
565
  command.query['quotaUser'] = quota_user unless quota_user.nil?
668
566
  execute_or_queue_command(command, &block)
669
567
  end
670
568
 
671
- # Deletes a model version.
672
- # Each model can have multiple versions deployed and in use at any given
673
- # time. Use this method to remove a single version.
674
- # Note: You cannot delete the version that is set as the default version
675
- # of the model unless it is the only remaining version.
569
+ # Gets the latest state of a long-running operation. Clients can use this
570
+ # method to poll the operation result at intervals as recommended by the API
571
+ # service.
676
572
  # @param [String] name
677
- # Required. The name of the version. You can get the names of all the
678
- # versions of a model by calling
679
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
680
- # versions/list).
681
- # Authorization: requires `Editor` role on the parent project.
573
+ # The name of the operation resource.
682
574
  # @param [String] fields
683
575
  # Selector specifying which fields to include in a partial response.
684
576
  # @param [String] quota_user
@@ -696,8 +588,8 @@ module Google
696
588
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
697
589
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
698
590
  # @raise [Google::Apis::AuthorizationError] Authorization is required
699
- def delete_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
700
- command = make_simple_command(:delete, 'v1/{+name}', options)
591
+ def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
592
+ command = make_simple_command(:get, 'v1/{+name}', options)
701
593
  command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
702
594
  command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
703
595
  command.params['name'] = name unless name.nil?
@@ -706,22 +598,23 @@ module Google
706
598
  execute_or_queue_command(command, &block)
707
599
  end
708
600
 
709
- # Gets basic information about all the versions of a model.
710
- # If you expect that a model has a lot of versions, or if you need to handle
711
- # only a limited number of results at a time, you can request that the list
712
- # be retrieved in batches (called pages):
713
- # @param [String] parent
714
- # Required. The name of the model for which to list the version.
715
- # Authorization: requires `Viewer` role on the parent project.
716
- # @param [String] page_token
717
- # Optional. A page token to request the next page of results.
718
- # You get the token from the `next_page_token` field of the response from
719
- # the previous call.
601
+ # Lists operations that match the specified filter in the request. If the
602
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
603
+ # NOTE: the `name` binding allows API services to override the binding
604
+ # to use different resource name schemes, such as `users/*/operations`. To
605
+ # override the binding, API services can add a binding such as
606
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
607
+ # For backwards compatibility, the default name includes the operations
608
+ # collection id, however overriding users must ensure the name binding
609
+ # is the parent resource, without the operations collection id.
610
+ # @param [String] name
611
+ # The name of the operation's parent resource.
720
612
  # @param [Fixnum] page_size
721
- # Optional. The number of versions to retrieve per "page" of results. If
722
- # there are more remaining results than this number, the response message
723
- # will contain a valid value in the `next_page_token` field.
724
- # The default value is 20, and the maximum page size is 100.
613
+ # The standard list page size.
614
+ # @param [String] filter
615
+ # The standard list filter.
616
+ # @param [String] page_token
617
+ # The standard list page token.
725
618
  # @param [String] fields
726
619
  # Selector specifying which fields to include in a partial response.
727
620
  # @param [String] quota_user
@@ -731,35 +624,39 @@ module Google
731
624
  # Request-specific options
732
625
  #
733
626
  # @yield [result, err] Result & error if block supplied
734
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse] parsed result object
627
+ # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse] parsed result object
735
628
  # @yieldparam err [StandardError] error object if request failed
736
629
  #
737
- # @return [Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse]
630
+ # @return [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse]
738
631
  #
739
632
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
740
633
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
741
634
  # @raise [Google::Apis::AuthorizationError] Authorization is required
742
- def list_project_model_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
743
- command = make_simple_command(:get, 'v1/{+parent}/versions', options)
744
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation
745
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse
746
- command.params['parent'] = parent unless parent.nil?
747
- command.query['pageToken'] = page_token unless page_token.nil?
635
+ def list_project_operations(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
636
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
637
+ command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation
638
+ command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse
639
+ command.params['name'] = name unless name.nil?
748
640
  command.query['pageSize'] = page_size unless page_size.nil?
641
+ command.query['filter'] = filter unless filter.nil?
642
+ command.query['pageToken'] = page_token unless page_token.nil?
749
643
  command.query['fields'] = fields unless fields.nil?
750
644
  command.query['quotaUser'] = quota_user unless quota_user.nil?
751
645
  execute_or_queue_command(command, &block)
752
646
  end
753
647
 
754
- # Gets information about a model version.
755
- # Models can have multiple versions. You can call
756
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
757
- # versions/list)
758
- # to get the same information that this method returns for all of the
759
- # versions of a model.
648
+ # Starts asynchronous cancellation on a long-running operation. The server
649
+ # makes a best effort to cancel the operation, but success is not
650
+ # guaranteed. If the server doesn't support this method, it returns
651
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
652
+ # Operations.GetOperation or
653
+ # other methods to check whether the cancellation succeeded or whether the
654
+ # operation completed despite cancellation. On successful cancellation,
655
+ # the operation is not deleted; instead, it becomes an operation with
656
+ # an Operation.error value with a google.rpc.Status.code of 1,
657
+ # corresponding to `Code.CANCELLED`.
760
658
  # @param [String] name
761
- # Required. The name of the version.
762
- # Authorization: requires `Viewer` role on the parent project.
659
+ # The name of the operation resource to be cancelled.
763
660
  # @param [String] fields
764
661
  # Selector specifying which fields to include in a partial response.
765
662
  # @param [String] quota_user
@@ -769,36 +666,61 @@ module Google
769
666
  # Request-specific options
770
667
  #
771
668
  # @yield [result, err] Result & error if block supplied
772
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Version] parsed result object
669
+ # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object
773
670
  # @yieldparam err [StandardError] error object if request failed
774
671
  #
775
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
672
+ # @return [Google::Apis::MlV1::GoogleProtobufEmpty]
776
673
  #
777
674
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
778
675
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
779
676
  # @raise [Google::Apis::AuthorizationError] Authorization is required
780
- def get_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
781
- command = make_simple_command(:get, 'v1/{+name}', options)
782
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
783
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
677
+ def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
678
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
679
+ command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
680
+ command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
784
681
  command.params['name'] = name unless name.nil?
785
682
  command.query['fields'] = fields unless fields.nil?
786
683
  command.query['quotaUser'] = quota_user unless quota_user.nil?
787
684
  execute_or_queue_command(command, &block)
788
685
  end
789
686
 
790
- # Creates a new version of a model from a trained TensorFlow model.
791
- # If the version created in the cloud by this call is the first deployed
792
- # version of the specified model, it will be made the default version of the
793
- # model. When you add a version to a model that already has one or more
794
- # versions, the default version does not automatically change. If you want a
795
- # new version to be the default, you must call
796
- # [projects.models.versions.setDefault](/ml-engine/reference/rest/v1/projects.
797
- # models.versions/setDefault).
687
+ # Deletes a long-running operation. This method indicates that the client is
688
+ # no longer interested in the operation result. It does not cancel the
689
+ # operation. If the server doesn't support this method, it returns
690
+ # `google.rpc.Code.UNIMPLEMENTED`.
691
+ # @param [String] name
692
+ # The name of the operation resource to be deleted.
693
+ # @param [String] fields
694
+ # Selector specifying which fields to include in a partial response.
695
+ # @param [String] quota_user
696
+ # Available to use for quota purposes for server-side applications. Can be any
697
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
698
+ # @param [Google::Apis::RequestOptions] options
699
+ # Request-specific options
700
+ #
701
+ # @yield [result, err] Result & error if block supplied
702
+ # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object
703
+ # @yieldparam err [StandardError] error object if request failed
704
+ #
705
+ # @return [Google::Apis::MlV1::GoogleProtobufEmpty]
706
+ #
707
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
708
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
709
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
710
+ def delete_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
711
+ command = make_simple_command(:delete, 'v1/{+name}', options)
712
+ command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
713
+ command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
714
+ command.params['name'] = name unless name.nil?
715
+ command.query['fields'] = fields unless fields.nil?
716
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
717
+ execute_or_queue_command(command, &block)
718
+ end
719
+
720
+ # Creates a training or a batch prediction job.
798
721
  # @param [String] parent
799
- # Required. The name of the model.
800
- # Authorization: requires `Editor` role on the parent project.
801
- # @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
722
+ # Required. The project name.
723
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
802
724
  # @param [String] fields
803
725
  # Selector specifying which fields to include in a partial response.
804
726
  # @param [String] quota_user
@@ -808,39 +730,30 @@ module Google
808
730
  # Request-specific options
809
731
  #
810
732
  # @yield [result, err] Result & error if block supplied
811
- # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
733
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
812
734
  # @yieldparam err [StandardError] error object if request failed
813
735
  #
814
- # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
736
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
815
737
  #
816
738
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
817
739
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
818
740
  # @raise [Google::Apis::AuthorizationError] Authorization is required
819
- def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
820
- command = make_simple_command(:post, 'v1/{+parent}/versions', options)
821
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
822
- command.request_object = google_cloud_ml_v1__version_object
823
- command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
824
- command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
741
+ def create_project_job(parent, google_cloud_ml_v1__job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
742
+ command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
743
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
744
+ command.request_object = google_cloud_ml_v1__job_object
745
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
746
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
825
747
  command.params['parent'] = parent unless parent.nil?
826
748
  command.query['fields'] = fields unless fields.nil?
827
749
  command.query['quotaUser'] = quota_user unless quota_user.nil?
828
750
  execute_or_queue_command(command, &block)
829
751
  end
830
752
 
831
- # Designates a version to be the default for the model.
832
- # The default version is used for prediction requests made against the model
833
- # that don't specify a version.
834
- # The first version to be created for a model is automatically set as the
835
- # default. You must make any subsequent changes to the default version
836
- # setting manually using this method.
753
+ # Cancels a running job.
837
754
  # @param [String] name
838
- # Required. The name of the version to make the default for the model. You
839
- # can get the names of all the versions of a model by calling
840
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
841
- # versions/list).
842
- # Authorization: requires `Editor` role on the parent project.
843
- # @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object
755
+ # Required. The name of the job to cancel.
756
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object
844
757
  # @param [String] fields
845
758
  # Selector specifying which fields to include in a partial response.
846
759
  # @param [String] quota_user
@@ -850,25 +763,99 @@ module Google
850
763
  # Request-specific options
851
764
  #
852
765
  # @yield [result, err] Result & error if block supplied
853
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Version] parsed result object
766
+ # @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object
854
767
  # @yieldparam err [StandardError] error object if request failed
855
768
  #
856
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
769
+ # @return [Google::Apis::MlV1::GoogleProtobufEmpty]
857
770
  #
858
771
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
859
772
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
860
773
  # @raise [Google::Apis::AuthorizationError] Authorization is required
861
- 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)
862
- command = make_simple_command(:post, 'v1/{+name}:setDefault', options)
863
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest::Representation
864
- command.request_object = google_cloud_ml_v1__set_default_version_request_object
865
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
866
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
774
+ def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
775
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
776
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation
777
+ command.request_object = google_cloud_ml_v1__cancel_job_request_object
778
+ command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
779
+ command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
780
+ command.params['name'] = name unless name.nil?
781
+ command.query['fields'] = fields unless fields.nil?
782
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
783
+ execute_or_queue_command(command, &block)
784
+ end
785
+
786
+ # Describes a job.
787
+ # @param [String] name
788
+ # Required. The name of the job to get the description of.
789
+ # @param [String] fields
790
+ # Selector specifying which fields to include in a partial response.
791
+ # @param [String] quota_user
792
+ # Available to use for quota purposes for server-side applications. Can be any
793
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
794
+ # @param [Google::Apis::RequestOptions] options
795
+ # Request-specific options
796
+ #
797
+ # @yield [result, err] Result & error if block supplied
798
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
799
+ # @yieldparam err [StandardError] error object if request failed
800
+ #
801
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
802
+ #
803
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
804
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
806
+ def get_project_job(name, fields: nil, quota_user: nil, options: nil, &block)
807
+ command = make_simple_command(:get, 'v1/{+name}', options)
808
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
809
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
867
810
  command.params['name'] = name unless name.nil?
868
811
  command.query['fields'] = fields unless fields.nil?
869
812
  command.query['quotaUser'] = quota_user unless quota_user.nil?
870
813
  execute_or_queue_command(command, &block)
871
814
  end
815
+
816
+ # Lists the jobs in the project.
817
+ # @param [String] parent
818
+ # Required. The name of the project for which to list jobs.
819
+ # @param [String] page_token
820
+ # Optional. A page token to request the next page of results.
821
+ # You get the token from the `next_page_token` field of the response from
822
+ # the previous call.
823
+ # @param [Fixnum] page_size
824
+ # Optional. The number of jobs to retrieve per "page" of results. If there
825
+ # are more remaining results than this number, the response message will
826
+ # contain a valid value in the `next_page_token` field.
827
+ # The default value is 20, and the maximum page size is 100.
828
+ # @param [String] filter
829
+ # Optional. Specifies the subset of jobs to retrieve.
830
+ # @param [String] fields
831
+ # Selector specifying which fields to include in a partial response.
832
+ # @param [String] quota_user
833
+ # Available to use for quota purposes for server-side applications. Can be any
834
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
835
+ # @param [Google::Apis::RequestOptions] options
836
+ # Request-specific options
837
+ #
838
+ # @yield [result, err] Result & error if block supplied
839
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] parsed result object
840
+ # @yieldparam err [StandardError] error object if request failed
841
+ #
842
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse]
843
+ #
844
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
845
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
846
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
847
+ def list_project_jobs(parent, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
848
+ command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
849
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation
850
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse
851
+ command.params['parent'] = parent unless parent.nil?
852
+ command.query['pageToken'] = page_token unless page_token.nil?
853
+ command.query['pageSize'] = page_size unless page_size.nil?
854
+ command.query['filter'] = filter unless filter.nil?
855
+ command.query['fields'] = fields unless fields.nil?
856
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
857
+ execute_or_queue_command(command, &block)
858
+ end
872
859
 
873
860
  protected
874
861