Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: generated/googleapis/lib/ml/v1.dart

Issue 2779563003: Api-roll 47: 2017-03-27 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis_beta.ml.v1beta1; 3 library googleapis.ml.v1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
13 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client ml/v1beta1'; 15 const core.String USER_AGENT = 'dart-api-client ml/v1';
16 16
17 /** An API to enable creating and using machine learning models. */ 17 /** An API to enable creating and using machine learning models. */
18 class MlApi { 18 class MlApi {
19 /** View and manage your data across Google Cloud Platform services */ 19 /** View and manage your data across Google Cloud Platform services */
20 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 20 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
21 21
22 22
23 final commons.ApiRequester _requester; 23 final commons.ApiRequester _requester;
24 24
25 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 25 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
(...skipping 19 matching lines...) Expand all
45 * the Google Cloud Storage location where you put your model training code 45 * the Google Cloud Storage location where you put your model training code
46 * for training the model with Google Cloud Machine Learning. 46 * for training the model with Google Cloud Machine Learning.
47 * 47 *
48 * Request parameters: 48 * Request parameters:
49 * 49 *
50 * [name] - Required. The project name. 50 * [name] - Required. The project name.
51 * 51 *
52 * Authorization: requires `Viewer` role on the specified project. 52 * Authorization: requires `Viewer` role on the specified project.
53 * Value must have pattern "^projects/[^/]+$". 53 * Value must have pattern "^projects/[^/]+$".
54 * 54 *
55 * Completes with a [GoogleCloudMlV1beta1GetConfigResponse]. 55 * Completes with a [GoogleCloudMlV1GetConfigResponse].
56 * 56 *
57 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 57 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
58 * error. 58 * error.
59 * 59 *
60 * If the used [http.Client] completes with an error when making a REST call, 60 * If the used [http.Client] completes with an error when making a REST call,
61 * this method will complete with the same error. 61 * this method will complete with the same error.
62 */ 62 */
63 async.Future<GoogleCloudMlV1beta1GetConfigResponse> getConfig(core.String name ) { 63 async.Future<GoogleCloudMlV1GetConfigResponse> getConfig(core.String name) {
64 var _url = null; 64 var _url = null;
65 var _queryParams = new core.Map(); 65 var _queryParams = new core.Map();
66 var _uploadMedia = null; 66 var _uploadMedia = null;
67 var _uploadOptions = null; 67 var _uploadOptions = null;
68 var _downloadOptions = commons.DownloadOptions.Metadata; 68 var _downloadOptions = commons.DownloadOptions.Metadata;
69 var _body = null; 69 var _body = null;
70 70
71 if (name == null) { 71 if (name == null) {
72 throw new core.ArgumentError("Parameter name is required."); 72 throw new core.ArgumentError("Parameter name is required.");
73 } 73 }
74 74
75 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':getCo nfig'; 75 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':getConfig' ;
76 76
77 var _response = _requester.request(_url, 77 var _response = _requester.request(_url,
78 "GET", 78 "GET",
79 body: _body, 79 body: _body,
80 queryParams: _queryParams, 80 queryParams: _queryParams,
81 uploadOptions: _uploadOptions, 81 uploadOptions: _uploadOptions,
82 uploadMedia: _uploadMedia, 82 uploadMedia: _uploadMedia,
83 downloadOptions: _downloadOptions); 83 downloadOptions: _downloadOptions);
84 return _response.then((data) => new GoogleCloudMlV1beta1GetConfigResponse.fr omJson(data)); 84 return _response.then((data) => new GoogleCloudMlV1GetConfigResponse.fromJso n(data));
85 } 85 }
86 86
87 /** 87 /**
88 * Performs prediction on the data in the request. 88 * Performs prediction on the data in the request.
89 * 89 *
90 * **** REMOVE FROM GENERATED DOCUMENTATION 90 * **** REMOVE FROM GENERATED DOCUMENTATION
91 * 91 *
92 * [request] - The metadata request object. 92 * [request] - The metadata request object.
93 * 93 *
94 * Request parameters: 94 * Request parameters:
95 * 95 *
96 * [name] - Required. The resource name of a model or a version. 96 * [name] - Required. The resource name of a model or a version.
97 * 97 *
98 * Authorization: requires `Viewer` role on the parent project. 98 * Authorization: requires `Viewer` role on the parent project.
99 * Value must have pattern "^projects/.+$". 99 * Value must have pattern "^projects/.+$".
100 * 100 *
101 * Completes with a [GoogleApiHttpBody]. 101 * Completes with a [GoogleApiHttpBody].
102 * 102 *
103 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 103 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
104 * error. 104 * error.
105 * 105 *
106 * If the used [http.Client] completes with an error when making a REST call, 106 * If the used [http.Client] completes with an error when making a REST call,
107 * this method will complete with the same error. 107 * this method will complete with the same error.
108 */ 108 */
109 async.Future<GoogleApiHttpBody> predict(GoogleCloudMlV1beta1PredictRequest req uest, core.String name) { 109 async.Future<GoogleApiHttpBody> predict(GoogleCloudMlV1PredictRequest request, core.String name) {
110 var _url = null; 110 var _url = null;
111 var _queryParams = new core.Map(); 111 var _queryParams = new core.Map();
112 var _uploadMedia = null; 112 var _uploadMedia = null;
113 var _uploadOptions = null; 113 var _uploadOptions = null;
114 var _downloadOptions = commons.DownloadOptions.Metadata; 114 var _downloadOptions = commons.DownloadOptions.Metadata;
115 var _body = null; 115 var _body = null;
116 116
117 if (request != null) { 117 if (request != null) {
118 _body = convert.JSON.encode((request).toJson()); 118 _body = convert.JSON.encode((request).toJson());
119 } 119 }
120 if (name == null) { 120 if (name == null) {
121 throw new core.ArgumentError("Parameter name is required."); 121 throw new core.ArgumentError("Parameter name is required.");
122 } 122 }
123 123
124 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':predi ct'; 124 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':predict';
125 125
126 var _response = _requester.request(_url, 126 var _response = _requester.request(_url,
127 "POST", 127 "POST",
128 body: _body, 128 body: _body,
129 queryParams: _queryParams, 129 queryParams: _queryParams,
130 uploadOptions: _uploadOptions, 130 uploadOptions: _uploadOptions,
131 uploadMedia: _uploadMedia, 131 uploadMedia: _uploadMedia,
132 downloadOptions: _downloadOptions); 132 downloadOptions: _downloadOptions);
133 return _response.then((data) => new GoogleApiHttpBody.fromJson(data)); 133 return _response.then((data) => new GoogleApiHttpBody.fromJson(data));
134 } 134 }
(...skipping 20 matching lines...) Expand all
155 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". 155 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$".
156 * 156 *
157 * Completes with a [GoogleProtobufEmpty]. 157 * Completes with a [GoogleProtobufEmpty].
158 * 158 *
159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
160 * error. 160 * error.
161 * 161 *
162 * If the used [http.Client] completes with an error when making a REST call, 162 * If the used [http.Client] completes with an error when making a REST call,
163 * this method will complete with the same error. 163 * this method will complete with the same error.
164 */ 164 */
165 async.Future<GoogleProtobufEmpty> cancel(GoogleCloudMlV1beta1CancelJobRequest request, core.String name) { 165 async.Future<GoogleProtobufEmpty> cancel(GoogleCloudMlV1CancelJobRequest reque st, core.String name) {
166 var _url = null; 166 var _url = null;
167 var _queryParams = new core.Map(); 167 var _queryParams = new core.Map();
168 var _uploadMedia = null; 168 var _uploadMedia = null;
169 var _uploadOptions = null; 169 var _uploadOptions = null;
170 var _downloadOptions = commons.DownloadOptions.Metadata; 170 var _downloadOptions = commons.DownloadOptions.Metadata;
171 var _body = null; 171 var _body = null;
172 172
173 if (request != null) { 173 if (request != null) {
174 _body = convert.JSON.encode((request).toJson()); 174 _body = convert.JSON.encode((request).toJson());
175 } 175 }
176 if (name == null) { 176 if (name == null) {
177 throw new core.ArgumentError("Parameter name is required."); 177 throw new core.ArgumentError("Parameter name is required.");
178 } 178 }
179 179
180 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cance l'; 180 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel';
181 181
182 var _response = _requester.request(_url, 182 var _response = _requester.request(_url,
183 "POST", 183 "POST",
184 body: _body, 184 body: _body,
185 queryParams: _queryParams, 185 queryParams: _queryParams,
186 uploadOptions: _uploadOptions, 186 uploadOptions: _uploadOptions,
187 uploadMedia: _uploadMedia, 187 uploadMedia: _uploadMedia,
188 downloadOptions: _downloadOptions); 188 downloadOptions: _downloadOptions);
189 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); 189 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data));
190 } 190 }
191 191
192 /** 192 /**
193 * Creates a training or a batch prediction job. 193 * Creates a training or a batch prediction job.
194 * 194 *
195 * [request] - The metadata request object. 195 * [request] - The metadata request object.
196 * 196 *
197 * Request parameters: 197 * Request parameters:
198 * 198 *
199 * [parent] - Required. The project name. 199 * [parent] - Required. The project name.
200 * 200 *
201 * Authorization: requires `Editor` role on the specified project. 201 * Authorization: requires `Editor` role on the specified project.
202 * Value must have pattern "^projects/[^/]+$". 202 * Value must have pattern "^projects/[^/]+$".
203 * 203 *
204 * Completes with a [GoogleCloudMlV1beta1Job]. 204 * Completes with a [GoogleCloudMlV1Job].
205 * 205 *
206 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 206 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
207 * error. 207 * error.
208 * 208 *
209 * If the used [http.Client] completes with an error when making a REST call, 209 * If the used [http.Client] completes with an error when making a REST call,
210 * this method will complete with the same error. 210 * this method will complete with the same error.
211 */ 211 */
212 async.Future<GoogleCloudMlV1beta1Job> create(GoogleCloudMlV1beta1Job request, core.String parent) { 212 async.Future<GoogleCloudMlV1Job> create(GoogleCloudMlV1Job request, core.Strin g parent) {
213 var _url = null; 213 var _url = null;
214 var _queryParams = new core.Map(); 214 var _queryParams = new core.Map();
215 var _uploadMedia = null; 215 var _uploadMedia = null;
216 var _uploadOptions = null; 216 var _uploadOptions = null;
217 var _downloadOptions = commons.DownloadOptions.Metadata; 217 var _downloadOptions = commons.DownloadOptions.Metadata;
218 var _body = null; 218 var _body = null;
219 219
220 if (request != null) { 220 if (request != null) {
221 _body = convert.JSON.encode((request).toJson()); 221 _body = convert.JSON.encode((request).toJson());
222 } 222 }
223 if (parent == null) { 223 if (parent == null) {
224 throw new core.ArgumentError("Parameter parent is required."); 224 throw new core.ArgumentError("Parameter parent is required.");
225 } 225 }
226 226
227 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/job s'; 227 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/jobs';
228 228
229 var _response = _requester.request(_url, 229 var _response = _requester.request(_url,
230 "POST", 230 "POST",
231 body: _body, 231 body: _body,
232 queryParams: _queryParams, 232 queryParams: _queryParams,
233 uploadOptions: _uploadOptions, 233 uploadOptions: _uploadOptions,
234 uploadMedia: _uploadMedia, 234 uploadMedia: _uploadMedia,
235 downloadOptions: _downloadOptions); 235 downloadOptions: _downloadOptions);
236 return _response.then((data) => new GoogleCloudMlV1beta1Job.fromJson(data)); 236 return _response.then((data) => new GoogleCloudMlV1Job.fromJson(data));
237 } 237 }
238 238
239 /** 239 /**
240 * Describes a job. 240 * Describes a job.
241 * 241 *
242 * Request parameters: 242 * Request parameters:
243 * 243 *
244 * [name] - Required. The name of the job to get the description of. 244 * [name] - Required. The name of the job to get the description of.
245 * 245 *
246 * Authorization: requires `Viewer` role on the parent project. 246 * Authorization: requires `Viewer` role on the parent project.
247 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". 247 * Value must have pattern "^projects/[^/]+/jobs/[^/]+$".
248 * 248 *
249 * Completes with a [GoogleCloudMlV1beta1Job]. 249 * Completes with a [GoogleCloudMlV1Job].
250 * 250 *
251 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 251 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
252 * error. 252 * error.
253 * 253 *
254 * If the used [http.Client] completes with an error when making a REST call, 254 * If the used [http.Client] completes with an error when making a REST call,
255 * this method will complete with the same error. 255 * this method will complete with the same error.
256 */ 256 */
257 async.Future<GoogleCloudMlV1beta1Job> get(core.String name) { 257 async.Future<GoogleCloudMlV1Job> get(core.String name) {
258 var _url = null; 258 var _url = null;
259 var _queryParams = new core.Map(); 259 var _queryParams = new core.Map();
260 var _uploadMedia = null; 260 var _uploadMedia = null;
261 var _uploadOptions = null; 261 var _uploadOptions = null;
262 var _downloadOptions = commons.DownloadOptions.Metadata; 262 var _downloadOptions = commons.DownloadOptions.Metadata;
263 var _body = null; 263 var _body = null;
264 264
265 if (name == null) { 265 if (name == null) {
266 throw new core.ArgumentError("Parameter name is required."); 266 throw new core.ArgumentError("Parameter name is required.");
267 } 267 }
268 268
269 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 269 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
270 270
271 var _response = _requester.request(_url, 271 var _response = _requester.request(_url,
272 "GET", 272 "GET",
273 body: _body, 273 body: _body,
274 queryParams: _queryParams, 274 queryParams: _queryParams,
275 uploadOptions: _uploadOptions, 275 uploadOptions: _uploadOptions,
276 uploadMedia: _uploadMedia, 276 uploadMedia: _uploadMedia,
277 downloadOptions: _downloadOptions); 277 downloadOptions: _downloadOptions);
278 return _response.then((data) => new GoogleCloudMlV1beta1Job.fromJson(data)); 278 return _response.then((data) => new GoogleCloudMlV1Job.fromJson(data));
279 } 279 }
280 280
281 /** 281 /**
282 * Lists the jobs in the project. 282 * Lists the jobs in the project.
283 * 283 *
284 * Request parameters: 284 * Request parameters:
285 * 285 *
286 * [parent] - Required. The name of the project for which to list jobs. 286 * [parent] - Required. The name of the project for which to list jobs.
287 * 287 *
288 * Authorization: requires `Viewer` role on the specified project. 288 * Authorization: requires `Viewer` role on the specified project.
289 * Value must have pattern "^projects/[^/]+$". 289 * Value must have pattern "^projects/[^/]+$".
290 * 290 *
291 * [filter] - Optional. Specifies the subset of jobs to retrieve.
292 *
291 * [pageToken] - Optional. A page token to request the next page of results. 293 * [pageToken] - Optional. A page token to request the next page of results.
292 * 294 *
293 * You get the token from the `next_page_token` field of the response from 295 * You get the token from the `next_page_token` field of the response from
294 * the previous call. 296 * the previous call.
295 * 297 *
296 * [pageSize] - Optional. The number of jobs to retrieve per "page" of 298 * [pageSize] - Optional. The number of jobs to retrieve per "page" of
297 * results. If there 299 * results. If there
298 * are more remaining results than this number, the response message will 300 * are more remaining results than this number, the response message will
299 * contain a valid value in the `next_page_token` field. 301 * contain a valid value in the `next_page_token` field.
300 * 302 *
301 * The default value is 20, and the maximum page size is 100. 303 * The default value is 20, and the maximum page size is 100.
302 * 304 *
303 * [filter] - Optional. Specifies the subset of jobs to retrieve. 305 * Completes with a [GoogleCloudMlV1ListJobsResponse].
304 *
305 * Completes with a [GoogleCloudMlV1beta1ListJobsResponse].
306 * 306 *
307 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 307 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
308 * error. 308 * error.
309 * 309 *
310 * If the used [http.Client] completes with an error when making a REST call, 310 * If the used [http.Client] completes with an error when making a REST call,
311 * this method will complete with the same error. 311 * this method will complete with the same error.
312 */ 312 */
313 async.Future<GoogleCloudMlV1beta1ListJobsResponse> list(core.String parent, {c ore.String pageToken, core.int pageSize, core.String filter}) { 313 async.Future<GoogleCloudMlV1ListJobsResponse> list(core.String parent, {core.S tring filter, core.String pageToken, core.int pageSize}) {
314 var _url = null; 314 var _url = null;
315 var _queryParams = new core.Map(); 315 var _queryParams = new core.Map();
316 var _uploadMedia = null; 316 var _uploadMedia = null;
317 var _uploadOptions = null; 317 var _uploadOptions = null;
318 var _downloadOptions = commons.DownloadOptions.Metadata; 318 var _downloadOptions = commons.DownloadOptions.Metadata;
319 var _body = null; 319 var _body = null;
320 320
321 if (parent == null) { 321 if (parent == null) {
322 throw new core.ArgumentError("Parameter parent is required."); 322 throw new core.ArgumentError("Parameter parent is required.");
323 } 323 }
324 if (filter != null) {
325 _queryParams["filter"] = [filter];
326 }
324 if (pageToken != null) { 327 if (pageToken != null) {
325 _queryParams["pageToken"] = [pageToken]; 328 _queryParams["pageToken"] = [pageToken];
326 } 329 }
327 if (pageSize != null) { 330 if (pageSize != null) {
328 _queryParams["pageSize"] = ["${pageSize}"]; 331 _queryParams["pageSize"] = ["${pageSize}"];
329 } 332 }
330 if (filter != null) {
331 _queryParams["filter"] = [filter];
332 }
333 333
334 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/job s'; 334 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/jobs';
335 335
336 var _response = _requester.request(_url, 336 var _response = _requester.request(_url,
337 "GET", 337 "GET",
338 body: _body, 338 body: _body,
339 queryParams: _queryParams, 339 queryParams: _queryParams,
340 uploadOptions: _uploadOptions, 340 uploadOptions: _uploadOptions,
341 uploadMedia: _uploadMedia, 341 uploadMedia: _uploadMedia,
342 downloadOptions: _downloadOptions); 342 downloadOptions: _downloadOptions);
343 return _response.then((data) => new GoogleCloudMlV1beta1ListJobsResponse.fro mJson(data)); 343 return _response.then((data) => new GoogleCloudMlV1ListJobsResponse.fromJson (data));
344 } 344 }
345 345
346 } 346 }
347 347
348 348
349 class ProjectsModelsResourceApi { 349 class ProjectsModelsResourceApi {
350 final commons.ApiRequester _requester; 350 final commons.ApiRequester _requester;
351 351
352 ProjectsModelsVersionsResourceApi get versions => new ProjectsModelsVersionsRe sourceApi(_requester); 352 ProjectsModelsVersionsResourceApi get versions => new ProjectsModelsVersionsRe sourceApi(_requester);
353 353
354 ProjectsModelsResourceApi(commons.ApiRequester client) : 354 ProjectsModelsResourceApi(commons.ApiRequester client) :
355 _requester = client; 355 _requester = client;
356 356
357 /** 357 /**
358 * Creates a model which will later contain one or more versions. 358 * Creates a model which will later contain one or more versions.
359 * 359 *
360 * You must add at least one version before you can request predictions from 360 * You must add at least one version before you can request predictions from
361 * the model. Add versions by calling 361 * the model. Add versions by calling
362 * [projects.models.versions.create](/ml/reference/rest/v1beta1/projects.model s.versions/create). 362 * [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.mod els.versions/create).
363 * 363 *
364 * [request] - The metadata request object. 364 * [request] - The metadata request object.
365 * 365 *
366 * Request parameters: 366 * Request parameters:
367 * 367 *
368 * [parent] - Required. The project name. 368 * [parent] - Required. The project name.
369 * 369 *
370 * Authorization: requires `Editor` role on the specified project. 370 * Authorization: requires `Editor` role on the specified project.
371 * Value must have pattern "^projects/[^/]+$". 371 * Value must have pattern "^projects/[^/]+$".
372 * 372 *
373 * Completes with a [GoogleCloudMlV1beta1Model]. 373 * Completes with a [GoogleCloudMlV1Model].
374 * 374 *
375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
376 * error. 376 * error.
377 * 377 *
378 * If the used [http.Client] completes with an error when making a REST call, 378 * If the used [http.Client] completes with an error when making a REST call,
379 * this method will complete with the same error. 379 * this method will complete with the same error.
380 */ 380 */
381 async.Future<GoogleCloudMlV1beta1Model> create(GoogleCloudMlV1beta1Model reque st, core.String parent) { 381 async.Future<GoogleCloudMlV1Model> create(GoogleCloudMlV1Model request, core.S tring parent) {
382 var _url = null; 382 var _url = null;
383 var _queryParams = new core.Map(); 383 var _queryParams = new core.Map();
384 var _uploadMedia = null; 384 var _uploadMedia = null;
385 var _uploadOptions = null; 385 var _uploadOptions = null;
386 var _downloadOptions = commons.DownloadOptions.Metadata; 386 var _downloadOptions = commons.DownloadOptions.Metadata;
387 var _body = null; 387 var _body = null;
388 388
389 if (request != null) { 389 if (request != null) {
390 _body = convert.JSON.encode((request).toJson()); 390 _body = convert.JSON.encode((request).toJson());
391 } 391 }
392 if (parent == null) { 392 if (parent == null) {
393 throw new core.ArgumentError("Parameter parent is required."); 393 throw new core.ArgumentError("Parameter parent is required.");
394 } 394 }
395 395
396 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/mod els'; 396 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/models';
397 397
398 var _response = _requester.request(_url, 398 var _response = _requester.request(_url,
399 "POST", 399 "POST",
400 body: _body, 400 body: _body,
401 queryParams: _queryParams, 401 queryParams: _queryParams,
402 uploadOptions: _uploadOptions, 402 uploadOptions: _uploadOptions,
403 uploadMedia: _uploadMedia, 403 uploadMedia: _uploadMedia,
404 downloadOptions: _downloadOptions); 404 downloadOptions: _downloadOptions);
405 return _response.then((data) => new GoogleCloudMlV1beta1Model.fromJson(data) ); 405 return _response.then((data) => new GoogleCloudMlV1Model.fromJson(data));
406 } 406 }
407 407
408 /** 408 /**
409 * Deletes a model. 409 * Deletes a model.
410 * 410 *
411 * You can only delete a model if there are no versions in it. You can delete 411 * You can only delete a model if there are no versions in it. You can delete
412 * versions by calling 412 * versions by calling
413 * [projects.models.versions.delete](/ml/reference/rest/v1beta1/projects.model s.versions/delete). 413 * [projects.models.versions.delete](/ml-engine/reference/rest/v1/projects.mod els.versions/delete).
414 * 414 *
415 * Request parameters: 415 * Request parameters:
416 * 416 *
417 * [name] - Required. The name of the model. 417 * [name] - Required. The name of the model.
418 * 418 *
419 * Authorization: requires `Editor` role on the parent project. 419 * Authorization: requires `Editor` role on the parent project.
420 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 420 * Value must have pattern "^projects/[^/]+/models/[^/]+$".
421 * 421 *
422 * Completes with a [GoogleLongrunningOperation]. 422 * Completes with a [GoogleLongrunningOperation].
423 * 423 *
424 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 424 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
425 * error. 425 * error.
426 * 426 *
427 * If the used [http.Client] completes with an error when making a REST call, 427 * If the used [http.Client] completes with an error when making a REST call,
428 * this method will complete with the same error. 428 * this method will complete with the same error.
429 */ 429 */
430 async.Future<GoogleLongrunningOperation> delete(core.String name) { 430 async.Future<GoogleLongrunningOperation> delete(core.String name) {
431 var _url = null; 431 var _url = null;
432 var _queryParams = new core.Map(); 432 var _queryParams = new core.Map();
433 var _uploadMedia = null; 433 var _uploadMedia = null;
434 var _uploadOptions = null; 434 var _uploadOptions = null;
435 var _downloadOptions = commons.DownloadOptions.Metadata; 435 var _downloadOptions = commons.DownloadOptions.Metadata;
436 var _body = null; 436 var _body = null;
437 437
438 if (name == null) { 438 if (name == null) {
439 throw new core.ArgumentError("Parameter name is required."); 439 throw new core.ArgumentError("Parameter name is required.");
440 } 440 }
441 441
442 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 442 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
443 443
444 var _response = _requester.request(_url, 444 var _response = _requester.request(_url,
445 "DELETE", 445 "DELETE",
446 body: _body, 446 body: _body,
447 queryParams: _queryParams, 447 queryParams: _queryParams,
448 uploadOptions: _uploadOptions, 448 uploadOptions: _uploadOptions,
449 uploadMedia: _uploadMedia, 449 uploadMedia: _uploadMedia,
450 downloadOptions: _downloadOptions); 450 downloadOptions: _downloadOptions);
451 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data )); 451 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data ));
452 } 452 }
453 453
454 /** 454 /**
455 * Gets information about a model, including its name, the description (if 455 * Gets information about a model, including its name, the description (if
456 * set), and the default version (if at least one version of the model has 456 * set), and the default version (if at least one version of the model has
457 * been deployed). 457 * been deployed).
458 * 458 *
459 * Request parameters: 459 * Request parameters:
460 * 460 *
461 * [name] - Required. The name of the model. 461 * [name] - Required. The name of the model.
462 * 462 *
463 * Authorization: requires `Viewer` role on the parent project. 463 * Authorization: requires `Viewer` role on the parent project.
464 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 464 * Value must have pattern "^projects/[^/]+/models/[^/]+$".
465 * 465 *
466 * Completes with a [GoogleCloudMlV1beta1Model]. 466 * Completes with a [GoogleCloudMlV1Model].
467 * 467 *
468 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 468 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
469 * error. 469 * error.
470 * 470 *
471 * If the used [http.Client] completes with an error when making a REST call, 471 * If the used [http.Client] completes with an error when making a REST call,
472 * this method will complete with the same error. 472 * this method will complete with the same error.
473 */ 473 */
474 async.Future<GoogleCloudMlV1beta1Model> get(core.String name) { 474 async.Future<GoogleCloudMlV1Model> get(core.String name) {
475 var _url = null; 475 var _url = null;
476 var _queryParams = new core.Map(); 476 var _queryParams = new core.Map();
477 var _uploadMedia = null; 477 var _uploadMedia = null;
478 var _uploadOptions = null; 478 var _uploadOptions = null;
479 var _downloadOptions = commons.DownloadOptions.Metadata; 479 var _downloadOptions = commons.DownloadOptions.Metadata;
480 var _body = null; 480 var _body = null;
481 481
482 if (name == null) { 482 if (name == null) {
483 throw new core.ArgumentError("Parameter name is required."); 483 throw new core.ArgumentError("Parameter name is required.");
484 } 484 }
485 485
486 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 486 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
487 487
488 var _response = _requester.request(_url, 488 var _response = _requester.request(_url,
489 "GET", 489 "GET",
490 body: _body, 490 body: _body,
491 queryParams: _queryParams, 491 queryParams: _queryParams,
492 uploadOptions: _uploadOptions, 492 uploadOptions: _uploadOptions,
493 uploadMedia: _uploadMedia, 493 uploadMedia: _uploadMedia,
494 downloadOptions: _downloadOptions); 494 downloadOptions: _downloadOptions);
495 return _response.then((data) => new GoogleCloudMlV1beta1Model.fromJson(data) ); 495 return _response.then((data) => new GoogleCloudMlV1Model.fromJson(data));
496 } 496 }
497 497
498 /** 498 /**
499 * Lists the models in a project. 499 * Lists the models in a project.
500 * 500 *
501 * Each project can contain multiple models, and each model can have multiple 501 * Each project can contain multiple models, and each model can have multiple
502 * versions. 502 * versions.
503 * 503 *
504 * Request parameters: 504 * Request parameters:
505 * 505 *
506 * [parent] - Required. The name of the project whose models are to be listed. 506 * [parent] - Required. The name of the project whose models are to be listed.
507 * 507 *
508 * Authorization: requires `Viewer` role on the specified project. 508 * Authorization: requires `Viewer` role on the specified project.
509 * Value must have pattern "^projects/[^/]+$". 509 * Value must have pattern "^projects/[^/]+$".
510 * 510 *
511 * [pageToken] - Optional. A page token to request the next page of results. 511 * [pageToken] - Optional. A page token to request the next page of results.
512 * 512 *
513 * You get the token from the `next_page_token` field of the response from 513 * You get the token from the `next_page_token` field of the response from
514 * the previous call. 514 * the previous call.
515 * 515 *
516 * [pageSize] - Optional. The number of models to retrieve per "page" of 516 * [pageSize] - Optional. The number of models to retrieve per "page" of
517 * results. If there 517 * results. If there
518 * are more remaining results than this number, the response message will 518 * are more remaining results than this number, the response message will
519 * contain a valid value in the `next_page_token` field. 519 * contain a valid value in the `next_page_token` field.
520 * 520 *
521 * The default value is 20, and the maximum page size is 100. 521 * The default value is 20, and the maximum page size is 100.
522 * 522 *
523 * Completes with a [GoogleCloudMlV1beta1ListModelsResponse]. 523 * Completes with a [GoogleCloudMlV1ListModelsResponse].
524 * 524 *
525 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 525 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
526 * error. 526 * error.
527 * 527 *
528 * If the used [http.Client] completes with an error when making a REST call, 528 * If the used [http.Client] completes with an error when making a REST call,
529 * this method will complete with the same error. 529 * this method will complete with the same error.
530 */ 530 */
531 async.Future<GoogleCloudMlV1beta1ListModelsResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) { 531 async.Future<GoogleCloudMlV1ListModelsResponse> list(core.String parent, {core .String pageToken, core.int pageSize}) {
532 var _url = null; 532 var _url = null;
533 var _queryParams = new core.Map(); 533 var _queryParams = new core.Map();
534 var _uploadMedia = null; 534 var _uploadMedia = null;
535 var _uploadOptions = null; 535 var _uploadOptions = null;
536 var _downloadOptions = commons.DownloadOptions.Metadata; 536 var _downloadOptions = commons.DownloadOptions.Metadata;
537 var _body = null; 537 var _body = null;
538 538
539 if (parent == null) { 539 if (parent == null) {
540 throw new core.ArgumentError("Parameter parent is required."); 540 throw new core.ArgumentError("Parameter parent is required.");
541 } 541 }
542 if (pageToken != null) { 542 if (pageToken != null) {
543 _queryParams["pageToken"] = [pageToken]; 543 _queryParams["pageToken"] = [pageToken];
544 } 544 }
545 if (pageSize != null) { 545 if (pageSize != null) {
546 _queryParams["pageSize"] = ["${pageSize}"]; 546 _queryParams["pageSize"] = ["${pageSize}"];
547 } 547 }
548 548
549 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/mod els'; 549 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/models';
550 550
551 var _response = _requester.request(_url, 551 var _response = _requester.request(_url,
552 "GET", 552 "GET",
553 body: _body, 553 body: _body,
554 queryParams: _queryParams, 554 queryParams: _queryParams,
555 uploadOptions: _uploadOptions, 555 uploadOptions: _uploadOptions,
556 uploadMedia: _uploadMedia, 556 uploadMedia: _uploadMedia,
557 downloadOptions: _downloadOptions); 557 downloadOptions: _downloadOptions);
558 return _response.then((data) => new GoogleCloudMlV1beta1ListModelsResponse.f romJson(data)); 558 return _response.then((data) => new GoogleCloudMlV1ListModelsResponse.fromJs on(data));
559 } 559 }
560 560
561 } 561 }
562 562
563 563
564 class ProjectsModelsVersionsResourceApi { 564 class ProjectsModelsVersionsResourceApi {
565 final commons.ApiRequester _requester; 565 final commons.ApiRequester _requester;
566 566
567 ProjectsModelsVersionsResourceApi(commons.ApiRequester client) : 567 ProjectsModelsVersionsResourceApi(commons.ApiRequester client) :
568 _requester = client; 568 _requester = client;
569 569
570 /** 570 /**
571 * Creates a new version of a model from a trained TensorFlow model. 571 * Creates a new version of a model from a trained TensorFlow model.
572 * 572 *
573 * If the version created in the cloud by this call is the first deployed 573 * If the version created in the cloud by this call is the first deployed
574 * version of the specified model, it will be made the default version of the 574 * version of the specified model, it will be made the default version of the
575 * model. When you add a version to a model that already has one or more 575 * model. When you add a version to a model that already has one or more
576 * versions, the default version does not automatically change. If you want a 576 * versions, the default version does not automatically change. If you want a
577 * new version to be the default, you must call 577 * new version to be the default, you must call
578 * [projects.models.versions.setDefault](/ml/reference/rest/v1beta1/projects.m odels.versions/setDefault). 578 * [projects.models.versions.setDefault](/ml-engine/reference/rest/v1/projects .models.versions/setDefault).
579 * 579 *
580 * [request] - The metadata request object. 580 * [request] - The metadata request object.
581 * 581 *
582 * Request parameters: 582 * Request parameters:
583 * 583 *
584 * [parent] - Required. The name of the model. 584 * [parent] - Required. The name of the model.
585 * 585 *
586 * Authorization: requires `Editor` role on the parent project. 586 * Authorization: requires `Editor` role on the parent project.
587 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 587 * Value must have pattern "^projects/[^/]+/models/[^/]+$".
588 * 588 *
589 * Completes with a [GoogleLongrunningOperation]. 589 * Completes with a [GoogleLongrunningOperation].
590 * 590 *
591 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 591 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
592 * error. 592 * error.
593 * 593 *
594 * If the used [http.Client] completes with an error when making a REST call, 594 * If the used [http.Client] completes with an error when making a REST call,
595 * this method will complete with the same error. 595 * this method will complete with the same error.
596 */ 596 */
597 async.Future<GoogleLongrunningOperation> create(GoogleCloudMlV1beta1Version re quest, core.String parent) { 597 async.Future<GoogleLongrunningOperation> create(GoogleCloudMlV1Version request , core.String parent) {
598 var _url = null; 598 var _url = null;
599 var _queryParams = new core.Map(); 599 var _queryParams = new core.Map();
600 var _uploadMedia = null; 600 var _uploadMedia = null;
601 var _uploadOptions = null; 601 var _uploadOptions = null;
602 var _downloadOptions = commons.DownloadOptions.Metadata; 602 var _downloadOptions = commons.DownloadOptions.Metadata;
603 var _body = null; 603 var _body = null;
604 604
605 if (request != null) { 605 if (request != null) {
606 _body = convert.JSON.encode((request).toJson()); 606 _body = convert.JSON.encode((request).toJson());
607 } 607 }
608 if (parent == null) { 608 if (parent == null) {
609 throw new core.ArgumentError("Parameter parent is required."); 609 throw new core.ArgumentError("Parameter parent is required.");
610 } 610 }
611 611
612 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/ver sions'; 612 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/versions ';
613 613
614 var _response = _requester.request(_url, 614 var _response = _requester.request(_url,
615 "POST", 615 "POST",
616 body: _body, 616 body: _body,
617 queryParams: _queryParams, 617 queryParams: _queryParams,
618 uploadOptions: _uploadOptions, 618 uploadOptions: _uploadOptions,
619 uploadMedia: _uploadMedia, 619 uploadMedia: _uploadMedia,
620 downloadOptions: _downloadOptions); 620 downloadOptions: _downloadOptions);
621 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data )); 621 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data ));
622 } 622 }
623 623
624 /** 624 /**
625 * Deletes a model version. 625 * Deletes a model version.
626 * 626 *
627 * Each model can have multiple versions deployed and in use at any given 627 * Each model can have multiple versions deployed and in use at any given
628 * time. Use this method to remove a single version. 628 * time. Use this method to remove a single version.
629 * 629 *
630 * Note: You cannot delete the version that is set as the default version 630 * Note: You cannot delete the version that is set as the default version
631 * of the model unless it is the only remaining version. 631 * of the model unless it is the only remaining version.
632 * 632 *
633 * Request parameters: 633 * Request parameters:
634 * 634 *
635 * [name] - Required. The name of the version. You can get the names of all 635 * [name] - Required. The name of the version. You can get the names of all
636 * the 636 * the
637 * versions of a model by calling 637 * versions of a model by calling
638 * [projects.models.versions.list](/ml/reference/rest/v1beta1/projects.models. versions/list). 638 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.model s.versions/list).
639 * 639 *
640 * Authorization: requires `Editor` role on the parent project. 640 * Authorization: requires `Editor` role on the parent project.
641 * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$". 641 * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$".
642 * 642 *
643 * Completes with a [GoogleLongrunningOperation]. 643 * Completes with a [GoogleLongrunningOperation].
644 * 644 *
645 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 645 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
646 * error. 646 * error.
647 * 647 *
648 * If the used [http.Client] completes with an error when making a REST call, 648 * If the used [http.Client] completes with an error when making a REST call,
649 * this method will complete with the same error. 649 * this method will complete with the same error.
650 */ 650 */
651 async.Future<GoogleLongrunningOperation> delete(core.String name) { 651 async.Future<GoogleLongrunningOperation> delete(core.String name) {
652 var _url = null; 652 var _url = null;
653 var _queryParams = new core.Map(); 653 var _queryParams = new core.Map();
654 var _uploadMedia = null; 654 var _uploadMedia = null;
655 var _uploadOptions = null; 655 var _uploadOptions = null;
656 var _downloadOptions = commons.DownloadOptions.Metadata; 656 var _downloadOptions = commons.DownloadOptions.Metadata;
657 var _body = null; 657 var _body = null;
658 658
659 if (name == null) { 659 if (name == null) {
660 throw new core.ArgumentError("Parameter name is required."); 660 throw new core.ArgumentError("Parameter name is required.");
661 } 661 }
662 662
663 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 663 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
664 664
665 var _response = _requester.request(_url, 665 var _response = _requester.request(_url,
666 "DELETE", 666 "DELETE",
667 body: _body, 667 body: _body,
668 queryParams: _queryParams, 668 queryParams: _queryParams,
669 uploadOptions: _uploadOptions, 669 uploadOptions: _uploadOptions,
670 uploadMedia: _uploadMedia, 670 uploadMedia: _uploadMedia,
671 downloadOptions: _downloadOptions); 671 downloadOptions: _downloadOptions);
672 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data )); 672 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data ));
673 } 673 }
674 674
675 /** 675 /**
676 * Gets information about a model version. 676 * Gets information about a model version.
677 * 677 *
678 * Models can have multiple versions. You can call 678 * Models can have multiple versions. You can call
679 * [projects.models.versions.list](/ml/reference/rest/v1beta1/projects.models. versions/list) 679 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.model s.versions/list)
680 * to get the same information that this method returns for all of the 680 * to get the same information that this method returns for all of the
681 * versions of a model. 681 * versions of a model.
682 * 682 *
683 * Request parameters: 683 * Request parameters:
684 * 684 *
685 * [name] - Required. The name of the version. 685 * [name] - Required. The name of the version.
686 * 686 *
687 * Authorization: requires `Viewer` role on the parent project. 687 * Authorization: requires `Viewer` role on the parent project.
688 * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$". 688 * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$".
689 * 689 *
690 * Completes with a [GoogleCloudMlV1beta1Version]. 690 * Completes with a [GoogleCloudMlV1Version].
691 * 691 *
692 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 692 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
693 * error. 693 * error.
694 * 694 *
695 * If the used [http.Client] completes with an error when making a REST call, 695 * If the used [http.Client] completes with an error when making a REST call,
696 * this method will complete with the same error. 696 * this method will complete with the same error.
697 */ 697 */
698 async.Future<GoogleCloudMlV1beta1Version> get(core.String name) { 698 async.Future<GoogleCloudMlV1Version> get(core.String name) {
699 var _url = null; 699 var _url = null;
700 var _queryParams = new core.Map(); 700 var _queryParams = new core.Map();
701 var _uploadMedia = null; 701 var _uploadMedia = null;
702 var _uploadOptions = null; 702 var _uploadOptions = null;
703 var _downloadOptions = commons.DownloadOptions.Metadata; 703 var _downloadOptions = commons.DownloadOptions.Metadata;
704 var _body = null; 704 var _body = null;
705 705
706 if (name == null) { 706 if (name == null) {
707 throw new core.ArgumentError("Parameter name is required."); 707 throw new core.ArgumentError("Parameter name is required.");
708 } 708 }
709 709
710 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 710 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
711 711
712 var _response = _requester.request(_url, 712 var _response = _requester.request(_url,
713 "GET", 713 "GET",
714 body: _body, 714 body: _body,
715 queryParams: _queryParams, 715 queryParams: _queryParams,
716 uploadOptions: _uploadOptions, 716 uploadOptions: _uploadOptions,
717 uploadMedia: _uploadMedia, 717 uploadMedia: _uploadMedia,
718 downloadOptions: _downloadOptions); 718 downloadOptions: _downloadOptions);
719 return _response.then((data) => new GoogleCloudMlV1beta1Version.fromJson(dat a)); 719 return _response.then((data) => new GoogleCloudMlV1Version.fromJson(data));
720 } 720 }
721 721
722 /** 722 /**
723 * Gets basic information about all the versions of a model. 723 * Gets basic information about all the versions of a model.
724 * 724 *
725 * If you expect that a model has a lot of versions, or if you need to handle 725 * If you expect that a model has a lot of versions, or if you need to handle
726 * only a limited number of results at a time, you can request that the list 726 * only a limited number of results at a time, you can request that the list
727 * be retrieved in batches (called pages): 727 * be retrieved in batches (called pages):
728 * 728 *
729 * Request parameters: 729 * Request parameters:
730 * 730 *
731 * [parent] - Required. The name of the model for which to list the version. 731 * [parent] - Required. The name of the model for which to list the version.
732 * 732 *
733 * Authorization: requires `Viewer` role on the parent project. 733 * Authorization: requires `Viewer` role on the parent project.
734 * Value must have pattern "^projects/[^/]+/models/[^/]+$". 734 * Value must have pattern "^projects/[^/]+/models/[^/]+$".
735 * 735 *
736 * [pageToken] - Optional. A page token to request the next page of results. 736 * [pageToken] - Optional. A page token to request the next page of results.
737 * 737 *
738 * You get the token from the `next_page_token` field of the response from 738 * You get the token from the `next_page_token` field of the response from
739 * the previous call. 739 * the previous call.
740 * 740 *
741 * [pageSize] - Optional. The number of versions to retrieve per "page" of 741 * [pageSize] - Optional. The number of versions to retrieve per "page" of
742 * results. If 742 * results. If
743 * there are more remaining results than this number, the response message 743 * there are more remaining results than this number, the response message
744 * will contain a valid value in the `next_page_token` field. 744 * will contain a valid value in the `next_page_token` field.
745 * 745 *
746 * The default value is 20, and the maximum page size is 100. 746 * The default value is 20, and the maximum page size is 100.
747 * 747 *
748 * Completes with a [GoogleCloudMlV1beta1ListVersionsResponse]. 748 * Completes with a [GoogleCloudMlV1ListVersionsResponse].
749 * 749 *
750 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 750 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
751 * error. 751 * error.
752 * 752 *
753 * If the used [http.Client] completes with an error when making a REST call, 753 * If the used [http.Client] completes with an error when making a REST call,
754 * this method will complete with the same error. 754 * this method will complete with the same error.
755 */ 755 */
756 async.Future<GoogleCloudMlV1beta1ListVersionsResponse> list(core.String parent , {core.String pageToken, core.int pageSize}) { 756 async.Future<GoogleCloudMlV1ListVersionsResponse> list(core.String parent, {co re.String pageToken, core.int pageSize}) {
757 var _url = null; 757 var _url = null;
758 var _queryParams = new core.Map(); 758 var _queryParams = new core.Map();
759 var _uploadMedia = null; 759 var _uploadMedia = null;
760 var _uploadOptions = null; 760 var _uploadOptions = null;
761 var _downloadOptions = commons.DownloadOptions.Metadata; 761 var _downloadOptions = commons.DownloadOptions.Metadata;
762 var _body = null; 762 var _body = null;
763 763
764 if (parent == null) { 764 if (parent == null) {
765 throw new core.ArgumentError("Parameter parent is required."); 765 throw new core.ArgumentError("Parameter parent is required.");
766 } 766 }
767 if (pageToken != null) { 767 if (pageToken != null) {
768 _queryParams["pageToken"] = [pageToken]; 768 _queryParams["pageToken"] = [pageToken];
769 } 769 }
770 if (pageSize != null) { 770 if (pageSize != null) {
771 _queryParams["pageSize"] = ["${pageSize}"]; 771 _queryParams["pageSize"] = ["${pageSize}"];
772 } 772 }
773 773
774 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/ver sions'; 774 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/versions ';
775 775
776 var _response = _requester.request(_url, 776 var _response = _requester.request(_url,
777 "GET", 777 "GET",
778 body: _body, 778 body: _body,
779 queryParams: _queryParams, 779 queryParams: _queryParams,
780 uploadOptions: _uploadOptions, 780 uploadOptions: _uploadOptions,
781 uploadMedia: _uploadMedia, 781 uploadMedia: _uploadMedia,
782 downloadOptions: _downloadOptions); 782 downloadOptions: _downloadOptions);
783 return _response.then((data) => new GoogleCloudMlV1beta1ListVersionsResponse .fromJson(data)); 783 return _response.then((data) => new GoogleCloudMlV1ListVersionsResponse.from Json(data));
784 } 784 }
785 785
786 /** 786 /**
787 * Designates a version to be the default for the model. 787 * Designates a version to be the default for the model.
788 * 788 *
789 * The default version is used for prediction requests made against the model 789 * The default version is used for prediction requests made against the model
790 * that don't specify a version. 790 * that don't specify a version.
791 * 791 *
792 * The first version to be created for a model is automatically set as the 792 * The first version to be created for a model is automatically set as the
793 * default. You must make any subsequent changes to the default version 793 * default. You must make any subsequent changes to the default version
794 * setting manually using this method. 794 * setting manually using this method.
795 * 795 *
796 * [request] - The metadata request object. 796 * [request] - The metadata request object.
797 * 797 *
798 * Request parameters: 798 * Request parameters:
799 * 799 *
800 * [name] - Required. The name of the version to make the default for the 800 * [name] - Required. The name of the version to make the default for the
801 * model. You 801 * model. You
802 * can get the names of all the versions of a model by calling 802 * can get the names of all the versions of a model by calling
803 * [projects.models.versions.list](/ml/reference/rest/v1beta1/projects.models. versions/list). 803 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.model s.versions/list).
804 * 804 *
805 * Authorization: requires `Editor` role on the parent project. 805 * Authorization: requires `Editor` role on the parent project.
806 * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$". 806 * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$".
807 * 807 *
808 * Completes with a [GoogleCloudMlV1beta1Version]. 808 * Completes with a [GoogleCloudMlV1Version].
809 * 809 *
810 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 810 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
811 * error. 811 * error.
812 * 812 *
813 * If the used [http.Client] completes with an error when making a REST call, 813 * If the used [http.Client] completes with an error when making a REST call,
814 * this method will complete with the same error. 814 * this method will complete with the same error.
815 */ 815 */
816 async.Future<GoogleCloudMlV1beta1Version> setDefault(GoogleCloudMlV1beta1SetDe faultVersionRequest request, core.String name) { 816 async.Future<GoogleCloudMlV1Version> setDefault(GoogleCloudMlV1SetDefaultVersi onRequest request, core.String name) {
817 var _url = null; 817 var _url = null;
818 var _queryParams = new core.Map(); 818 var _queryParams = new core.Map();
819 var _uploadMedia = null; 819 var _uploadMedia = null;
820 var _uploadOptions = null; 820 var _uploadOptions = null;
821 var _downloadOptions = commons.DownloadOptions.Metadata; 821 var _downloadOptions = commons.DownloadOptions.Metadata;
822 var _body = null; 822 var _body = null;
823 823
824 if (request != null) { 824 if (request != null) {
825 _body = convert.JSON.encode((request).toJson()); 825 _body = convert.JSON.encode((request).toJson());
826 } 826 }
827 if (name == null) { 827 if (name == null) {
828 throw new core.ArgumentError("Parameter name is required."); 828 throw new core.ArgumentError("Parameter name is required.");
829 } 829 }
830 830
831 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':setDe fault'; 831 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':setDefault ';
832 832
833 var _response = _requester.request(_url, 833 var _response = _requester.request(_url,
834 "POST", 834 "POST",
835 body: _body, 835 body: _body,
836 queryParams: _queryParams, 836 queryParams: _queryParams,
837 uploadOptions: _uploadOptions, 837 uploadOptions: _uploadOptions,
838 uploadMedia: _uploadMedia, 838 uploadMedia: _uploadMedia,
839 downloadOptions: _downloadOptions); 839 downloadOptions: _downloadOptions);
840 return _response.then((data) => new GoogleCloudMlV1beta1Version.fromJson(dat a)); 840 return _response.then((data) => new GoogleCloudMlV1Version.fromJson(data));
841 } 841 }
842 842
843 } 843 }
844 844
845 845
846 class ProjectsOperationsResourceApi { 846 class ProjectsOperationsResourceApi {
847 final commons.ApiRequester _requester; 847 final commons.ApiRequester _requester;
848 848
849 ProjectsOperationsResourceApi(commons.ApiRequester client) : 849 ProjectsOperationsResourceApi(commons.ApiRequester client) :
850 _requester = client; 850 _requester = client;
(...skipping 28 matching lines...) Expand all
879 var _queryParams = new core.Map(); 879 var _queryParams = new core.Map();
880 var _uploadMedia = null; 880 var _uploadMedia = null;
881 var _uploadOptions = null; 881 var _uploadOptions = null;
882 var _downloadOptions = commons.DownloadOptions.Metadata; 882 var _downloadOptions = commons.DownloadOptions.Metadata;
883 var _body = null; 883 var _body = null;
884 884
885 if (name == null) { 885 if (name == null) {
886 throw new core.ArgumentError("Parameter name is required."); 886 throw new core.ArgumentError("Parameter name is required.");
887 } 887 }
888 888
889 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cance l'; 889 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel';
890 890
891 var _response = _requester.request(_url, 891 var _response = _requester.request(_url,
892 "POST", 892 "POST",
893 body: _body, 893 body: _body,
894 queryParams: _queryParams, 894 queryParams: _queryParams,
895 uploadOptions: _uploadOptions, 895 uploadOptions: _uploadOptions,
896 uploadMedia: _uploadMedia, 896 uploadMedia: _uploadMedia,
897 downloadOptions: _downloadOptions); 897 downloadOptions: _downloadOptions);
898 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); 898 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data));
899 } 899 }
(...skipping 22 matching lines...) Expand all
922 var _queryParams = new core.Map(); 922 var _queryParams = new core.Map();
923 var _uploadMedia = null; 923 var _uploadMedia = null;
924 var _uploadOptions = null; 924 var _uploadOptions = null;
925 var _downloadOptions = commons.DownloadOptions.Metadata; 925 var _downloadOptions = commons.DownloadOptions.Metadata;
926 var _body = null; 926 var _body = null;
927 927
928 if (name == null) { 928 if (name == null) {
929 throw new core.ArgumentError("Parameter name is required."); 929 throw new core.ArgumentError("Parameter name is required.");
930 } 930 }
931 931
932 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 932 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
933 933
934 var _response = _requester.request(_url, 934 var _response = _requester.request(_url,
935 "DELETE", 935 "DELETE",
936 body: _body, 936 body: _body,
937 queryParams: _queryParams, 937 queryParams: _queryParams,
938 uploadOptions: _uploadOptions, 938 uploadOptions: _uploadOptions,
939 uploadMedia: _uploadMedia, 939 uploadMedia: _uploadMedia,
940 downloadOptions: _downloadOptions); 940 downloadOptions: _downloadOptions);
941 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data)); 941 return _response.then((data) => new GoogleProtobufEmpty.fromJson(data));
942 } 942 }
(...skipping 21 matching lines...) Expand all
964 var _queryParams = new core.Map(); 964 var _queryParams = new core.Map();
965 var _uploadMedia = null; 965 var _uploadMedia = null;
966 var _uploadOptions = null; 966 var _uploadOptions = null;
967 var _downloadOptions = commons.DownloadOptions.Metadata; 967 var _downloadOptions = commons.DownloadOptions.Metadata;
968 var _body = null; 968 var _body = null;
969 969
970 if (name == null) { 970 if (name == null) {
971 throw new core.ArgumentError("Parameter name is required."); 971 throw new core.ArgumentError("Parameter name is required.");
972 } 972 }
973 973
974 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); 974 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
975 975
976 var _response = _requester.request(_url, 976 var _response = _requester.request(_url,
977 "GET", 977 "GET",
978 body: _body, 978 body: _body,
979 queryParams: _queryParams, 979 queryParams: _queryParams,
980 uploadOptions: _uploadOptions, 980 uploadOptions: _uploadOptions,
981 uploadMedia: _uploadMedia, 981 uploadMedia: _uploadMedia,
982 downloadOptions: _downloadOptions); 982 downloadOptions: _downloadOptions);
983 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data )); 983 return _response.then((data) => new GoogleLongrunningOperation.fromJson(data ));
984 } 984 }
985 985
986 /** 986 /**
987 * Lists operations that match the specified filter in the request. If the 987 * Lists operations that match the specified filter in the request. If the
988 * server doesn't support this method, it returns `UNIMPLEMENTED`. 988 * server doesn't support this method, it returns `UNIMPLEMENTED`.
989 * 989 *
990 * NOTE: the `name` binding below allows API services to override the binding 990 * NOTE: the `name` binding below allows API services to override the binding
991 * to use different resource name schemes, such as `users / * /operations`. 991 * to use different resource name schemes, such as `users / * /operations`.
992 * 992 *
993 * Request parameters: 993 * Request parameters:
994 * 994 *
995 * [name] - The name of the operation collection. 995 * [name] - The name of the operation collection.
996 * Value must have pattern "^projects/[^/]+$". 996 * Value must have pattern "^projects/[^/]+$".
997 * 997 *
998 * [filter] - The standard list filter.
999 *
998 * [pageToken] - The standard list page token. 1000 * [pageToken] - The standard list page token.
999 * 1001 *
1000 * [pageSize] - The standard list page size. 1002 * [pageSize] - The standard list page size.
1001 * 1003 *
1002 * [filter] - The standard list filter.
1003 *
1004 * Completes with a [GoogleLongrunningListOperationsResponse]. 1004 * Completes with a [GoogleLongrunningListOperationsResponse].
1005 * 1005 *
1006 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1006 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1007 * error. 1007 * error.
1008 * 1008 *
1009 * If the used [http.Client] completes with an error when making a REST call, 1009 * If the used [http.Client] completes with an error when making a REST call,
1010 * this method will complete with the same error. 1010 * this method will complete with the same error.
1011 */ 1011 */
1012 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, { core.String pageToken, core.int pageSize, core.String filter}) { 1012 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, { core.String filter, core.String pageToken, core.int pageSize}) {
1013 var _url = null; 1013 var _url = null;
1014 var _queryParams = new core.Map(); 1014 var _queryParams = new core.Map();
1015 var _uploadMedia = null; 1015 var _uploadMedia = null;
1016 var _uploadOptions = null; 1016 var _uploadOptions = null;
1017 var _downloadOptions = commons.DownloadOptions.Metadata; 1017 var _downloadOptions = commons.DownloadOptions.Metadata;
1018 var _body = null; 1018 var _body = null;
1019 1019
1020 if (name == null) { 1020 if (name == null) {
1021 throw new core.ArgumentError("Parameter name is required."); 1021 throw new core.ArgumentError("Parameter name is required.");
1022 } 1022 }
1023 if (filter != null) {
1024 _queryParams["filter"] = [filter];
1025 }
1023 if (pageToken != null) { 1026 if (pageToken != null) {
1024 _queryParams["pageToken"] = [pageToken]; 1027 _queryParams["pageToken"] = [pageToken];
1025 } 1028 }
1026 if (pageSize != null) { 1029 if (pageSize != null) {
1027 _queryParams["pageSize"] = ["${pageSize}"]; 1030 _queryParams["pageSize"] = ["${pageSize}"];
1028 } 1031 }
1029 if (filter != null) {
1030 _queryParams["filter"] = [filter];
1031 }
1032 1032
1033 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/opera tions'; 1033 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/operations ';
1034 1034
1035 var _response = _requester.request(_url, 1035 var _response = _requester.request(_url,
1036 "GET", 1036 "GET",
1037 body: _body, 1037 body: _body,
1038 queryParams: _queryParams, 1038 queryParams: _queryParams,
1039 uploadOptions: _uploadOptions, 1039 uploadOptions: _uploadOptions,
1040 uploadMedia: _uploadMedia, 1040 uploadMedia: _uploadMedia,
1041 downloadOptions: _downloadOptions); 1041 downloadOptions: _downloadOptions);
1042 return _response.then((data) => new GoogleLongrunningListOperationsResponse. fromJson(data)); 1042 return _response.then((data) => new GoogleLongrunningListOperationsResponse. fromJson(data));
1043 } 1043 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 if (contentType != null) { 1117 if (contentType != null) {
1118 _json["contentType"] = contentType; 1118 _json["contentType"] = contentType;
1119 } 1119 }
1120 if (data != null) { 1120 if (data != null) {
1121 _json["data"] = data; 1121 _json["data"] = data;
1122 } 1122 }
1123 return _json; 1123 return _json;
1124 } 1124 }
1125 } 1125 }
1126 1126
1127 /** Options for manually scaling a model. */
1128 class GoogleCloudMlV1ManualScaling {
1129 /**
1130 * The number of nodes to allocate for this model. These nodes are always up,
1131 * starting from the time the model is deployed, so the cost of operating
1132 * this model will be proportional to nodes * number of hours since
1133 * deployment.
1134 */
1135 core.int nodes;
1136
1137 GoogleCloudMlV1ManualScaling();
1138
1139 GoogleCloudMlV1ManualScaling.fromJson(core.Map _json) {
1140 if (_json.containsKey("nodes")) {
1141 nodes = _json["nodes"];
1142 }
1143 }
1144
1145 core.Map toJson() {
1146 var _json = new core.Map();
1147 if (nodes != null) {
1148 _json["nodes"] = nodes;
1149 }
1150 return _json;
1151 }
1152 }
1153
1154 /** Represents the metadata of the long-running operation. */
1155 class GoogleCloudMlV1OperationMetadata {
1156 /** The time the operation was submitted. */
1157 core.String createTime;
1158 /** The time operation processing completed. */
1159 core.String endTime;
1160 /** Indicates whether a request to cancel this operation has been made. */
1161 core.bool isCancellationRequested;
1162 /** Contains the name of the model associated with the operation. */
1163 core.String modelName;
1164 /**
1165 * The operation type.
1166 * Possible string values are:
1167 * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type.
1168 * - "CREATE_VERSION" : An operation to create a new version.
1169 * - "DELETE_VERSION" : An operation to delete an existing version.
1170 * - "DELETE_MODEL" : An operation to delete an existing model.
1171 */
1172 core.String operationType;
1173 /** The time operation processing started. */
1174 core.String startTime;
1175 /** Contains the version associated with the operation. */
1176 GoogleCloudMlV1Version version;
1177
1178 GoogleCloudMlV1OperationMetadata();
1179
1180 GoogleCloudMlV1OperationMetadata.fromJson(core.Map _json) {
1181 if (_json.containsKey("createTime")) {
1182 createTime = _json["createTime"];
1183 }
1184 if (_json.containsKey("endTime")) {
1185 endTime = _json["endTime"];
1186 }
1187 if (_json.containsKey("isCancellationRequested")) {
1188 isCancellationRequested = _json["isCancellationRequested"];
1189 }
1190 if (_json.containsKey("modelName")) {
1191 modelName = _json["modelName"];
1192 }
1193 if (_json.containsKey("operationType")) {
1194 operationType = _json["operationType"];
1195 }
1196 if (_json.containsKey("startTime")) {
1197 startTime = _json["startTime"];
1198 }
1199 if (_json.containsKey("version")) {
1200 version = new GoogleCloudMlV1Version.fromJson(_json["version"]);
1201 }
1202 }
1203
1204 core.Map toJson() {
1205 var _json = new core.Map();
1206 if (createTime != null) {
1207 _json["createTime"] = createTime;
1208 }
1209 if (endTime != null) {
1210 _json["endTime"] = endTime;
1211 }
1212 if (isCancellationRequested != null) {
1213 _json["isCancellationRequested"] = isCancellationRequested;
1214 }
1215 if (modelName != null) {
1216 _json["modelName"] = modelName;
1217 }
1218 if (operationType != null) {
1219 _json["operationType"] = operationType;
1220 }
1221 if (startTime != null) {
1222 _json["startTime"] = startTime;
1223 }
1224 if (version != null) {
1225 _json["version"] = (version).toJson();
1226 }
1227 return _json;
1228 }
1229 }
1230
1231 /**
1232 * Represents a version of the model.
1233 *
1234 * Each version is a trained model deployed in the cloud, ready to handle
1235 * prediction requests. A model can have multiple versions. You can get
1236 * information about all of the versions of a given model by calling
1237 * [projects.models.versions.list](/ml/reference/rest/v1/projects.models.version s/list).
1238 */
1239 class GoogleCloudMlV1Version {
1240 /** Output only. The time the version was created. */
1241 core.String createTime;
1242 /**
1243 * Required. The Google Cloud Storage location of the trained model used to
1244 * create the version. See the
1245 * [overview of model deployment](/ml/docs/concepts/deployment-overview) for
1246 * more informaiton.
1247 *
1248 * When passing Version to
1249 * [projects.models.versions.create](/ml/reference/rest/v1/projects.models.ver sions/create)
1250 * the model service uses the specified location as the source of the model.
1251 * Once deployed, the model version is hosted by the prediction service, so
1252 * this location is useful only as a historical record.
1253 */
1254 core.String deploymentUri;
1255 /**
1256 * Optional. The description specified for the version when it was created.
1257 */
1258 core.String description;
1259 /**
1260 * Output only. If true, this version will be used to handle prediction
1261 * requests that do not specify a version.
1262 *
1263 * You can change the default version by calling
1264 * [projects.methods.versions.setDefault](/ml/reference/rest/v1/projects.model s.versions/setDefault).
1265 */
1266 core.bool isDefault;
1267 /** Output only. The time the version was last used for prediction. */
1268 core.String lastUseTime;
1269 /**
1270 * Optional. Manually select the number of nodes to use for serving the
1271 * model. If unset (i.e., by default), the number of nodes used to serve
1272 * the model automatically scales with traffic. However, care should be
1273 * taken to ramp up traffic according to the model's ability to scale. If
1274 * your model needs to handle bursts of traffic beyond it's ability to
1275 * scale, it is recommended you set this field appropriately.
1276 */
1277 GoogleCloudMlV1ManualScaling manualScaling;
1278 /**
1279 * Required.The name specified for the version when it was created.
1280 *
1281 * The version name must be unique within the model it is created in.
1282 */
1283 core.String name;
1284 /**
1285 * Optional. The Google Cloud ML runtime version to use for this deployment.
1286 * If not set, Google Cloud ML will choose a version.
1287 */
1288 core.String runtimeVersion;
1289
1290 GoogleCloudMlV1Version();
1291
1292 GoogleCloudMlV1Version.fromJson(core.Map _json) {
1293 if (_json.containsKey("createTime")) {
1294 createTime = _json["createTime"];
1295 }
1296 if (_json.containsKey("deploymentUri")) {
1297 deploymentUri = _json["deploymentUri"];
1298 }
1299 if (_json.containsKey("description")) {
1300 description = _json["description"];
1301 }
1302 if (_json.containsKey("isDefault")) {
1303 isDefault = _json["isDefault"];
1304 }
1305 if (_json.containsKey("lastUseTime")) {
1306 lastUseTime = _json["lastUseTime"];
1307 }
1308 if (_json.containsKey("manualScaling")) {
1309 manualScaling = new GoogleCloudMlV1ManualScaling.fromJson(_json["manualSca ling"]);
1310 }
1311 if (_json.containsKey("name")) {
1312 name = _json["name"];
1313 }
1314 if (_json.containsKey("runtimeVersion")) {
1315 runtimeVersion = _json["runtimeVersion"];
1316 }
1317 }
1318
1319 core.Map toJson() {
1320 var _json = new core.Map();
1321 if (createTime != null) {
1322 _json["createTime"] = createTime;
1323 }
1324 if (deploymentUri != null) {
1325 _json["deploymentUri"] = deploymentUri;
1326 }
1327 if (description != null) {
1328 _json["description"] = description;
1329 }
1330 if (isDefault != null) {
1331 _json["isDefault"] = isDefault;
1332 }
1333 if (lastUseTime != null) {
1334 _json["lastUseTime"] = lastUseTime;
1335 }
1336 if (manualScaling != null) {
1337 _json["manualScaling"] = (manualScaling).toJson();
1338 }
1339 if (name != null) {
1340 _json["name"] = name;
1341 }
1342 if (runtimeVersion != null) {
1343 _json["runtimeVersion"] = runtimeVersion;
1344 }
1345 return _json;
1346 }
1347 }
1348
1349 /** An observed value of a metric. */ 1127 /** An observed value of a metric. */
1350 class GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric { 1128 class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric {
1351 /** The objective value at this training step. */ 1129 /** The objective value at this training step. */
1352 core.double objectiveValue; 1130 core.double objectiveValue;
1353 /** The global training step for this metric. */ 1131 /** The global training step for this metric. */
1354 core.String trainingStep; 1132 core.String trainingStep;
1355 1133
1356 GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(); 1134 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric();
1357 1135
1358 GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric.fromJson(core.Map _json) { 1136 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.fromJson(core.Map _jso n) {
1359 if (_json.containsKey("objectiveValue")) { 1137 if (_json.containsKey("objectiveValue")) {
1360 objectiveValue = _json["objectiveValue"]; 1138 objectiveValue = _json["objectiveValue"];
1361 } 1139 }
1362 if (_json.containsKey("trainingStep")) { 1140 if (_json.containsKey("trainingStep")) {
1363 trainingStep = _json["trainingStep"]; 1141 trainingStep = _json["trainingStep"];
1364 } 1142 }
1365 } 1143 }
1366 1144
1367 core.Map toJson() { 1145 core.Map toJson() {
1368 var _json = new core.Map(); 1146 var _json = new core.Map();
1369 if (objectiveValue != null) { 1147 if (objectiveValue != null) {
1370 _json["objectiveValue"] = objectiveValue; 1148 _json["objectiveValue"] = objectiveValue;
1371 } 1149 }
1372 if (trainingStep != null) { 1150 if (trainingStep != null) {
1373 _json["trainingStep"] = trainingStep; 1151 _json["trainingStep"] = trainingStep;
1374 } 1152 }
1375 return _json; 1153 return _json;
1376 } 1154 }
1377 } 1155 }
1378 1156
1379 /** Request message for the CancelJob method. */ 1157 /** Request message for the CancelJob method. */
1380 class GoogleCloudMlV1beta1CancelJobRequest { 1158 class GoogleCloudMlV1CancelJobRequest {
1381 1159
1382 GoogleCloudMlV1beta1CancelJobRequest(); 1160 GoogleCloudMlV1CancelJobRequest();
1383 1161
1384 GoogleCloudMlV1beta1CancelJobRequest.fromJson(core.Map _json) { 1162 GoogleCloudMlV1CancelJobRequest.fromJson(core.Map _json) {
1385 } 1163 }
1386 1164
1387 core.Map toJson() { 1165 core.Map toJson() {
1388 var _json = new core.Map(); 1166 var _json = new core.Map();
1389 return _json; 1167 return _json;
1390 } 1168 }
1391 } 1169 }
1392 1170
1393 /** Returns service account information associated with a project. */ 1171 /** Returns service account information associated with a project. */
1394 class GoogleCloudMlV1beta1GetConfigResponse { 1172 class GoogleCloudMlV1GetConfigResponse {
1395 /** The service account Cloud ML uses to access resources in the project. */ 1173 /** The service account Cloud ML uses to access resources in the project. */
1396 core.String serviceAccount; 1174 core.String serviceAccount;
1397 /** The project number for `service_account`. */ 1175 /** The project number for `service_account`. */
1398 core.String serviceAccountProject; 1176 core.String serviceAccountProject;
1399 1177
1400 GoogleCloudMlV1beta1GetConfigResponse(); 1178 GoogleCloudMlV1GetConfigResponse();
1401 1179
1402 GoogleCloudMlV1beta1GetConfigResponse.fromJson(core.Map _json) { 1180 GoogleCloudMlV1GetConfigResponse.fromJson(core.Map _json) {
1403 if (_json.containsKey("serviceAccount")) { 1181 if (_json.containsKey("serviceAccount")) {
1404 serviceAccount = _json["serviceAccount"]; 1182 serviceAccount = _json["serviceAccount"];
1405 } 1183 }
1406 if (_json.containsKey("serviceAccountProject")) { 1184 if (_json.containsKey("serviceAccountProject")) {
1407 serviceAccountProject = _json["serviceAccountProject"]; 1185 serviceAccountProject = _json["serviceAccountProject"];
1408 } 1186 }
1409 } 1187 }
1410 1188
1411 core.Map toJson() { 1189 core.Map toJson() {
1412 var _json = new core.Map(); 1190 var _json = new core.Map();
1413 if (serviceAccount != null) { 1191 if (serviceAccount != null) {
1414 _json["serviceAccount"] = serviceAccount; 1192 _json["serviceAccount"] = serviceAccount;
1415 } 1193 }
1416 if (serviceAccountProject != null) { 1194 if (serviceAccountProject != null) {
1417 _json["serviceAccountProject"] = serviceAccountProject; 1195 _json["serviceAccountProject"] = serviceAccountProject;
1418 } 1196 }
1419 return _json; 1197 return _json;
1420 } 1198 }
1421 } 1199 }
1422 1200
1423 /** 1201 /**
1424 * Represents the result of a single hyperparameter tuning trial from a 1202 * Represents the result of a single hyperparameter tuning trial from a
1425 * training job. The TrainingOutput object that is returned on successful 1203 * training job. The TrainingOutput object that is returned on successful
1426 * completion of a training job with hyperparameter tuning includes a list 1204 * completion of a training job with hyperparameter tuning includes a list
1427 * of HyperparameterOutput objects, one for each successful trial. 1205 * of HyperparameterOutput objects, one for each successful trial.
1428 */ 1206 */
1429 class GoogleCloudMlV1beta1HyperparameterOutput { 1207 class GoogleCloudMlV1HyperparameterOutput {
1430 /** All recorded object metrics for this trial. */ 1208 /** All recorded object metrics for this trial. */
1431 core.List<GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric> allMet rics; 1209 core.List<GoogleCloudMlV1HyperparameterOutputHyperparameterMetric> allMetrics;
1432 /** The final objective metric seen for this trial. */ 1210 /** The final objective metric seen for this trial. */
1433 GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric finalMetric; 1211 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric finalMetric;
1434 /** The hyperparameters given to this trial. */ 1212 /** The hyperparameters given to this trial. */
1435 core.Map<core.String, core.String> hyperparameters; 1213 core.Map<core.String, core.String> hyperparameters;
1436 /** The trial id for these results. */ 1214 /** The trial id for these results. */
1437 core.String trialId; 1215 core.String trialId;
1438 1216
1439 GoogleCloudMlV1beta1HyperparameterOutput(); 1217 GoogleCloudMlV1HyperparameterOutput();
1440 1218
1441 GoogleCloudMlV1beta1HyperparameterOutput.fromJson(core.Map _json) { 1219 GoogleCloudMlV1HyperparameterOutput.fromJson(core.Map _json) {
1442 if (_json.containsKey("allMetrics")) { 1220 if (_json.containsKey("allMetrics")) {
1443 allMetrics = _json["allMetrics"].map((value) => new GoogleCloudMlV1beta1Hy perparameterOutputHyperparameterMetric.fromJson(value)).toList(); 1221 allMetrics = _json["allMetrics"].map((value) => new GoogleCloudMlV1Hyperpa rameterOutputHyperparameterMetric.fromJson(value)).toList();
1444 } 1222 }
1445 if (_json.containsKey("finalMetric")) { 1223 if (_json.containsKey("finalMetric")) {
1446 finalMetric = new GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMe tric.fromJson(_json["finalMetric"]); 1224 finalMetric = new GoogleCloudMlV1HyperparameterOutputHyperparameterMetric. fromJson(_json["finalMetric"]);
1447 } 1225 }
1448 if (_json.containsKey("hyperparameters")) { 1226 if (_json.containsKey("hyperparameters")) {
1449 hyperparameters = _json["hyperparameters"]; 1227 hyperparameters = _json["hyperparameters"];
1450 } 1228 }
1451 if (_json.containsKey("trialId")) { 1229 if (_json.containsKey("trialId")) {
1452 trialId = _json["trialId"]; 1230 trialId = _json["trialId"];
1453 } 1231 }
1454 } 1232 }
1455 1233
1456 core.Map toJson() { 1234 core.Map toJson() {
1457 var _json = new core.Map(); 1235 var _json = new core.Map();
1458 if (allMetrics != null) { 1236 if (allMetrics != null) {
1459 _json["allMetrics"] = allMetrics.map((value) => (value).toJson()).toList() ; 1237 _json["allMetrics"] = allMetrics.map((value) => (value).toJson()).toList() ;
1460 } 1238 }
1461 if (finalMetric != null) { 1239 if (finalMetric != null) {
1462 _json["finalMetric"] = (finalMetric).toJson(); 1240 _json["finalMetric"] = (finalMetric).toJson();
1463 } 1241 }
1464 if (hyperparameters != null) { 1242 if (hyperparameters != null) {
1465 _json["hyperparameters"] = hyperparameters; 1243 _json["hyperparameters"] = hyperparameters;
1466 } 1244 }
1467 if (trialId != null) { 1245 if (trialId != null) {
1468 _json["trialId"] = trialId; 1246 _json["trialId"] = trialId;
1469 } 1247 }
1470 return _json; 1248 return _json;
1471 } 1249 }
1472 } 1250 }
1473 1251
1474 /** Represents a set of hyperparameters to optimize. */ 1252 /** Represents a set of hyperparameters to optimize. */
1475 class GoogleCloudMlV1beta1HyperparameterSpec { 1253 class GoogleCloudMlV1HyperparameterSpec {
1476 /** 1254 /**
1477 * Required. The type of goal to use for tuning. Available types are 1255 * Required. The type of goal to use for tuning. Available types are
1478 * `MAXIMIZE` and `MINIMIZE`. 1256 * `MAXIMIZE` and `MINIMIZE`.
1479 * 1257 *
1480 * Defaults to `MAXIMIZE`. 1258 * Defaults to `MAXIMIZE`.
1481 * Possible string values are: 1259 * Possible string values are:
1482 * - "GOAL_TYPE_UNSPECIFIED" : Goal Type will default to maximize. 1260 * - "GOAL_TYPE_UNSPECIFIED" : Goal Type will default to maximize.
1483 * - "MAXIMIZE" : Maximize the goal metric. 1261 * - "MAXIMIZE" : Maximize the goal metric.
1484 * - "MINIMIZE" : Minimize the goal metric. 1262 * - "MINIMIZE" : Minimize the goal metric.
1485 */ 1263 */
(...skipping 20 matching lines...) Expand all
1506 */ 1284 */
1507 core.int maxParallelTrials; 1285 core.int maxParallelTrials;
1508 /** 1286 /**
1509 * Optional. How many training trials should be attempted to optimize 1287 * Optional. How many training trials should be attempted to optimize
1510 * the specified hyperparameters. 1288 * the specified hyperparameters.
1511 * 1289 *
1512 * Defaults to one. 1290 * Defaults to one.
1513 */ 1291 */
1514 core.int maxTrials; 1292 core.int maxTrials;
1515 /** Required. The set of parameters to tune. */ 1293 /** Required. The set of parameters to tune. */
1516 core.List<GoogleCloudMlV1beta1ParameterSpec> params; 1294 core.List<GoogleCloudMlV1ParameterSpec> params;
1517 1295
1518 GoogleCloudMlV1beta1HyperparameterSpec(); 1296 GoogleCloudMlV1HyperparameterSpec();
1519 1297
1520 GoogleCloudMlV1beta1HyperparameterSpec.fromJson(core.Map _json) { 1298 GoogleCloudMlV1HyperparameterSpec.fromJson(core.Map _json) {
1521 if (_json.containsKey("goal")) { 1299 if (_json.containsKey("goal")) {
1522 goal = _json["goal"]; 1300 goal = _json["goal"];
1523 } 1301 }
1524 if (_json.containsKey("hyperparameterMetricTag")) { 1302 if (_json.containsKey("hyperparameterMetricTag")) {
1525 hyperparameterMetricTag = _json["hyperparameterMetricTag"]; 1303 hyperparameterMetricTag = _json["hyperparameterMetricTag"];
1526 } 1304 }
1527 if (_json.containsKey("maxParallelTrials")) { 1305 if (_json.containsKey("maxParallelTrials")) {
1528 maxParallelTrials = _json["maxParallelTrials"]; 1306 maxParallelTrials = _json["maxParallelTrials"];
1529 } 1307 }
1530 if (_json.containsKey("maxTrials")) { 1308 if (_json.containsKey("maxTrials")) {
1531 maxTrials = _json["maxTrials"]; 1309 maxTrials = _json["maxTrials"];
1532 } 1310 }
1533 if (_json.containsKey("params")) { 1311 if (_json.containsKey("params")) {
1534 params = _json["params"].map((value) => new GoogleCloudMlV1beta1ParameterS pec.fromJson(value)).toList(); 1312 params = _json["params"].map((value) => new GoogleCloudMlV1ParameterSpec.f romJson(value)).toList();
1535 } 1313 }
1536 } 1314 }
1537 1315
1538 core.Map toJson() { 1316 core.Map toJson() {
1539 var _json = new core.Map(); 1317 var _json = new core.Map();
1540 if (goal != null) { 1318 if (goal != null) {
1541 _json["goal"] = goal; 1319 _json["goal"] = goal;
1542 } 1320 }
1543 if (hyperparameterMetricTag != null) { 1321 if (hyperparameterMetricTag != null) {
1544 _json["hyperparameterMetricTag"] = hyperparameterMetricTag; 1322 _json["hyperparameterMetricTag"] = hyperparameterMetricTag;
1545 } 1323 }
1546 if (maxParallelTrials != null) { 1324 if (maxParallelTrials != null) {
1547 _json["maxParallelTrials"] = maxParallelTrials; 1325 _json["maxParallelTrials"] = maxParallelTrials;
1548 } 1326 }
1549 if (maxTrials != null) { 1327 if (maxTrials != null) {
1550 _json["maxTrials"] = maxTrials; 1328 _json["maxTrials"] = maxTrials;
1551 } 1329 }
1552 if (params != null) { 1330 if (params != null) {
1553 _json["params"] = params.map((value) => (value).toJson()).toList(); 1331 _json["params"] = params.map((value) => (value).toJson()).toList();
1554 } 1332 }
1555 return _json; 1333 return _json;
1556 } 1334 }
1557 } 1335 }
1558 1336
1559 /** Represents a training or prediction job. */ 1337 /** Represents a training or prediction job. */
1560 class GoogleCloudMlV1beta1Job { 1338 class GoogleCloudMlV1Job {
1561 /** Output only. When the job was created. */ 1339 /** Output only. When the job was created. */
1562 core.String createTime; 1340 core.String createTime;
1563 /** Output only. When the job processing was completed. */ 1341 /** Output only. When the job processing was completed. */
1564 core.String endTime; 1342 core.String endTime;
1565 /** Output only. The details of a failure or a cancellation. */ 1343 /** Output only. The details of a failure or a cancellation. */
1566 core.String errorMessage; 1344 core.String errorMessage;
1567 /** Required. The user-specified id of the job. */ 1345 /** Required. The user-specified id of the job. */
1568 core.String jobId; 1346 core.String jobId;
1569 /** Input parameters to create a prediction job. */ 1347 /** Input parameters to create a prediction job. */
1570 GoogleCloudMlV1beta1PredictionInput predictionInput; 1348 GoogleCloudMlV1PredictionInput predictionInput;
1571 /** The current prediction job result. */ 1349 /** The current prediction job result. */
1572 GoogleCloudMlV1beta1PredictionOutput predictionOutput; 1350 GoogleCloudMlV1PredictionOutput predictionOutput;
1573 /** Output only. When the job processing was started. */ 1351 /** Output only. When the job processing was started. */
1574 core.String startTime; 1352 core.String startTime;
1575 /** 1353 /**
1576 * Output only. The detailed state of a job. 1354 * Output only. The detailed state of a job.
1577 * Possible string values are: 1355 * Possible string values are:
1578 * - "STATE_UNSPECIFIED" : The job state is unspecified. 1356 * - "STATE_UNSPECIFIED" : The job state is unspecified.
1579 * - "QUEUED" : The job has been just created and processing has not yet 1357 * - "QUEUED" : The job has been just created and processing has not yet
1580 * begun. 1358 * begun.
1581 * - "PREPARING" : The service is preparing to run the job. 1359 * - "PREPARING" : The service is preparing to run the job.
1582 * - "RUNNING" : The job is in progress. 1360 * - "RUNNING" : The job is in progress.
1583 * - "SUCCEEDED" : The job completed successfully. 1361 * - "SUCCEEDED" : The job completed successfully.
1584 * - "FAILED" : The job failed. 1362 * - "FAILED" : The job failed.
1585 * `error_message` should contain the details of the failure. 1363 * `error_message` should contain the details of the failure.
1586 * - "CANCELLING" : The job is being cancelled. 1364 * - "CANCELLING" : The job is being cancelled.
1587 * `error_message` should describe the reason for the cancellation. 1365 * `error_message` should describe the reason for the cancellation.
1588 * - "CANCELLED" : The job has been cancelled. 1366 * - "CANCELLED" : The job has been cancelled.
1589 * `error_message` should describe the reason for the cancellation. 1367 * `error_message` should describe the reason for the cancellation.
1590 */ 1368 */
1591 core.String state; 1369 core.String state;
1592 /** Input parameters to create a training job. */ 1370 /** Input parameters to create a training job. */
1593 GoogleCloudMlV1beta1TrainingInput trainingInput; 1371 GoogleCloudMlV1TrainingInput trainingInput;
1594 /** The current training job result. */ 1372 /** The current training job result. */
1595 GoogleCloudMlV1beta1TrainingOutput trainingOutput; 1373 GoogleCloudMlV1TrainingOutput trainingOutput;
1596 1374
1597 GoogleCloudMlV1beta1Job(); 1375 GoogleCloudMlV1Job();
1598 1376
1599 GoogleCloudMlV1beta1Job.fromJson(core.Map _json) { 1377 GoogleCloudMlV1Job.fromJson(core.Map _json) {
1600 if (_json.containsKey("createTime")) { 1378 if (_json.containsKey("createTime")) {
1601 createTime = _json["createTime"]; 1379 createTime = _json["createTime"];
1602 } 1380 }
1603 if (_json.containsKey("endTime")) { 1381 if (_json.containsKey("endTime")) {
1604 endTime = _json["endTime"]; 1382 endTime = _json["endTime"];
1605 } 1383 }
1606 if (_json.containsKey("errorMessage")) { 1384 if (_json.containsKey("errorMessage")) {
1607 errorMessage = _json["errorMessage"]; 1385 errorMessage = _json["errorMessage"];
1608 } 1386 }
1609 if (_json.containsKey("jobId")) { 1387 if (_json.containsKey("jobId")) {
1610 jobId = _json["jobId"]; 1388 jobId = _json["jobId"];
1611 } 1389 }
1612 if (_json.containsKey("predictionInput")) { 1390 if (_json.containsKey("predictionInput")) {
1613 predictionInput = new GoogleCloudMlV1beta1PredictionInput.fromJson(_json[" predictionInput"]); 1391 predictionInput = new GoogleCloudMlV1PredictionInput.fromJson(_json["predi ctionInput"]);
1614 } 1392 }
1615 if (_json.containsKey("predictionOutput")) { 1393 if (_json.containsKey("predictionOutput")) {
1616 predictionOutput = new GoogleCloudMlV1beta1PredictionOutput.fromJson(_json ["predictionOutput"]); 1394 predictionOutput = new GoogleCloudMlV1PredictionOutput.fromJson(_json["pre dictionOutput"]);
1617 } 1395 }
1618 if (_json.containsKey("startTime")) { 1396 if (_json.containsKey("startTime")) {
1619 startTime = _json["startTime"]; 1397 startTime = _json["startTime"];
1620 } 1398 }
1621 if (_json.containsKey("state")) { 1399 if (_json.containsKey("state")) {
1622 state = _json["state"]; 1400 state = _json["state"];
1623 } 1401 }
1624 if (_json.containsKey("trainingInput")) { 1402 if (_json.containsKey("trainingInput")) {
1625 trainingInput = new GoogleCloudMlV1beta1TrainingInput.fromJson(_json["trai ningInput"]); 1403 trainingInput = new GoogleCloudMlV1TrainingInput.fromJson(_json["trainingI nput"]);
1626 } 1404 }
1627 if (_json.containsKey("trainingOutput")) { 1405 if (_json.containsKey("trainingOutput")) {
1628 trainingOutput = new GoogleCloudMlV1beta1TrainingOutput.fromJson(_json["tr ainingOutput"]); 1406 trainingOutput = new GoogleCloudMlV1TrainingOutput.fromJson(_json["trainin gOutput"]);
1629 } 1407 }
1630 } 1408 }
1631 1409
1632 core.Map toJson() { 1410 core.Map toJson() {
1633 var _json = new core.Map(); 1411 var _json = new core.Map();
1634 if (createTime != null) { 1412 if (createTime != null) {
1635 _json["createTime"] = createTime; 1413 _json["createTime"] = createTime;
1636 } 1414 }
1637 if (endTime != null) { 1415 if (endTime != null) {
1638 _json["endTime"] = endTime; 1416 _json["endTime"] = endTime;
(...skipping 20 matching lines...) Expand all
1659 _json["trainingInput"] = (trainingInput).toJson(); 1437 _json["trainingInput"] = (trainingInput).toJson();
1660 } 1438 }
1661 if (trainingOutput != null) { 1439 if (trainingOutput != null) {
1662 _json["trainingOutput"] = (trainingOutput).toJson(); 1440 _json["trainingOutput"] = (trainingOutput).toJson();
1663 } 1441 }
1664 return _json; 1442 return _json;
1665 } 1443 }
1666 } 1444 }
1667 1445
1668 /** Response message for the ListJobs method. */ 1446 /** Response message for the ListJobs method. */
1669 class GoogleCloudMlV1beta1ListJobsResponse { 1447 class GoogleCloudMlV1ListJobsResponse {
1670 /** The list of jobs. */ 1448 /** The list of jobs. */
1671 core.List<GoogleCloudMlV1beta1Job> jobs; 1449 core.List<GoogleCloudMlV1Job> jobs;
1672 /** 1450 /**
1673 * Optional. Pass this token as the `page_token` field of the request for a 1451 * Optional. Pass this token as the `page_token` field of the request for a
1674 * subsequent call. 1452 * subsequent call.
1675 */ 1453 */
1676 core.String nextPageToken; 1454 core.String nextPageToken;
1677 1455
1678 GoogleCloudMlV1beta1ListJobsResponse(); 1456 GoogleCloudMlV1ListJobsResponse();
1679 1457
1680 GoogleCloudMlV1beta1ListJobsResponse.fromJson(core.Map _json) { 1458 GoogleCloudMlV1ListJobsResponse.fromJson(core.Map _json) {
1681 if (_json.containsKey("jobs")) { 1459 if (_json.containsKey("jobs")) {
1682 jobs = _json["jobs"].map((value) => new GoogleCloudMlV1beta1Job.fromJson(v alue)).toList(); 1460 jobs = _json["jobs"].map((value) => new GoogleCloudMlV1Job.fromJson(value) ).toList();
1683 } 1461 }
1684 if (_json.containsKey("nextPageToken")) { 1462 if (_json.containsKey("nextPageToken")) {
1685 nextPageToken = _json["nextPageToken"]; 1463 nextPageToken = _json["nextPageToken"];
1686 } 1464 }
1687 } 1465 }
1688 1466
1689 core.Map toJson() { 1467 core.Map toJson() {
1690 var _json = new core.Map(); 1468 var _json = new core.Map();
1691 if (jobs != null) { 1469 if (jobs != null) {
1692 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); 1470 _json["jobs"] = jobs.map((value) => (value).toJson()).toList();
1693 } 1471 }
1694 if (nextPageToken != null) { 1472 if (nextPageToken != null) {
1695 _json["nextPageToken"] = nextPageToken; 1473 _json["nextPageToken"] = nextPageToken;
1696 } 1474 }
1697 return _json; 1475 return _json;
1698 } 1476 }
1699 } 1477 }
1700 1478
1701 /** Response message for the ListModels method. */ 1479 /** Response message for the ListModels method. */
1702 class GoogleCloudMlV1beta1ListModelsResponse { 1480 class GoogleCloudMlV1ListModelsResponse {
1703 /** The list of models. */ 1481 /** The list of models. */
1704 core.List<GoogleCloudMlV1beta1Model> models; 1482 core.List<GoogleCloudMlV1Model> models;
1705 /** 1483 /**
1706 * Optional. Pass this token as the `page_token` field of the request for a 1484 * Optional. Pass this token as the `page_token` field of the request for a
1707 * subsequent call. 1485 * subsequent call.
1708 */ 1486 */
1709 core.String nextPageToken; 1487 core.String nextPageToken;
1710 1488
1711 GoogleCloudMlV1beta1ListModelsResponse(); 1489 GoogleCloudMlV1ListModelsResponse();
1712 1490
1713 GoogleCloudMlV1beta1ListModelsResponse.fromJson(core.Map _json) { 1491 GoogleCloudMlV1ListModelsResponse.fromJson(core.Map _json) {
1714 if (_json.containsKey("models")) { 1492 if (_json.containsKey("models")) {
1715 models = _json["models"].map((value) => new GoogleCloudMlV1beta1Model.from Json(value)).toList(); 1493 models = _json["models"].map((value) => new GoogleCloudMlV1Model.fromJson( value)).toList();
1716 } 1494 }
1717 if (_json.containsKey("nextPageToken")) { 1495 if (_json.containsKey("nextPageToken")) {
1718 nextPageToken = _json["nextPageToken"]; 1496 nextPageToken = _json["nextPageToken"];
1719 } 1497 }
1720 } 1498 }
1721 1499
1722 core.Map toJson() { 1500 core.Map toJson() {
1723 var _json = new core.Map(); 1501 var _json = new core.Map();
1724 if (models != null) { 1502 if (models != null) {
1725 _json["models"] = models.map((value) => (value).toJson()).toList(); 1503 _json["models"] = models.map((value) => (value).toJson()).toList();
1726 } 1504 }
1727 if (nextPageToken != null) { 1505 if (nextPageToken != null) {
1728 _json["nextPageToken"] = nextPageToken; 1506 _json["nextPageToken"] = nextPageToken;
1729 } 1507 }
1730 return _json; 1508 return _json;
1731 } 1509 }
1732 } 1510 }
1733 1511
1734 /** Response message for the ListVersions method. */ 1512 /** Response message for the ListVersions method. */
1735 class GoogleCloudMlV1beta1ListVersionsResponse { 1513 class GoogleCloudMlV1ListVersionsResponse {
1736 /** 1514 /**
1737 * Optional. Pass this token as the `page_token` field of the request for a 1515 * Optional. Pass this token as the `page_token` field of the request for a
1738 * subsequent call. 1516 * subsequent call.
1739 */ 1517 */
1740 core.String nextPageToken; 1518 core.String nextPageToken;
1741 /** The list of versions. */ 1519 /** The list of versions. */
1742 core.List<GoogleCloudMlV1beta1Version> versions; 1520 core.List<GoogleCloudMlV1Version> versions;
1743 1521
1744 GoogleCloudMlV1beta1ListVersionsResponse(); 1522 GoogleCloudMlV1ListVersionsResponse();
1745 1523
1746 GoogleCloudMlV1beta1ListVersionsResponse.fromJson(core.Map _json) { 1524 GoogleCloudMlV1ListVersionsResponse.fromJson(core.Map _json) {
1747 if (_json.containsKey("nextPageToken")) { 1525 if (_json.containsKey("nextPageToken")) {
1748 nextPageToken = _json["nextPageToken"]; 1526 nextPageToken = _json["nextPageToken"];
1749 } 1527 }
1750 if (_json.containsKey("versions")) { 1528 if (_json.containsKey("versions")) {
1751 versions = _json["versions"].map((value) => new GoogleCloudMlV1beta1Versio n.fromJson(value)).toList(); 1529 versions = _json["versions"].map((value) => new GoogleCloudMlV1Version.fro mJson(value)).toList();
1752 } 1530 }
1753 } 1531 }
1754 1532
1755 core.Map toJson() { 1533 core.Map toJson() {
1756 var _json = new core.Map(); 1534 var _json = new core.Map();
1757 if (nextPageToken != null) { 1535 if (nextPageToken != null) {
1758 _json["nextPageToken"] = nextPageToken; 1536 _json["nextPageToken"] = nextPageToken;
1759 } 1537 }
1760 if (versions != null) { 1538 if (versions != null) {
1761 _json["versions"] = versions.map((value) => (value).toJson()).toList(); 1539 _json["versions"] = versions.map((value) => (value).toJson()).toList();
1762 } 1540 }
1763 return _json; 1541 return _json;
1764 } 1542 }
1765 } 1543 }
1766 1544
1767 /** Options for manually scaling a model. */ 1545 /** Options for manually scaling a model. */
1768 class GoogleCloudMlV1beta1ManualScaling { 1546 class GoogleCloudMlV1ManualScaling {
1769 /** 1547 /**
1770 * The number of nodes to allocate for this model. These nodes are always up, 1548 * The number of nodes to allocate for this model. These nodes are always up,
1771 * starting from the time the model is deployed, so the cost of operating 1549 * starting from the time the model is deployed, so the cost of operating
1772 * this model will be proportional to nodes * number of hours since 1550 * this model will be proportional to nodes * number of hours since
1773 * deployment. 1551 * deployment.
1774 */ 1552 */
1775 core.int nodes; 1553 core.int nodes;
1776 1554
1777 GoogleCloudMlV1beta1ManualScaling(); 1555 GoogleCloudMlV1ManualScaling();
1778 1556
1779 GoogleCloudMlV1beta1ManualScaling.fromJson(core.Map _json) { 1557 GoogleCloudMlV1ManualScaling.fromJson(core.Map _json) {
1780 if (_json.containsKey("nodes")) { 1558 if (_json.containsKey("nodes")) {
1781 nodes = _json["nodes"]; 1559 nodes = _json["nodes"];
1782 } 1560 }
1783 } 1561 }
1784 1562
1785 core.Map toJson() { 1563 core.Map toJson() {
1786 var _json = new core.Map(); 1564 var _json = new core.Map();
1787 if (nodes != null) { 1565 if (nodes != null) {
1788 _json["nodes"] = nodes; 1566 _json["nodes"] = nodes;
1789 } 1567 }
1790 return _json; 1568 return _json;
1791 } 1569 }
1792 } 1570 }
1793 1571
1794 /** 1572 /**
1795 * Represents a machine learning solution. 1573 * Represents a machine learning solution.
1796 * 1574 *
1797 * A model can have multiple versions, each of which is a deployed, trained 1575 * A model can have multiple versions, each of which is a deployed, trained
1798 * model ready to receive prediction requests. The model itself is just a 1576 * model ready to receive prediction requests. The model itself is just a
1799 * container. 1577 * container.
1800 */ 1578 */
1801 class GoogleCloudMlV1beta1Model { 1579 class GoogleCloudMlV1Model {
1802 /** 1580 /**
1803 * Output only. The default version of the model. This version will be used to 1581 * Output only. The default version of the model. This version will be used to
1804 * handle prediction requests that do not specify a version. 1582 * handle prediction requests that do not specify a version.
1805 * 1583 *
1806 * You can change the default version by calling 1584 * You can change the default version by calling
1807 * [projects.methods.versions.setDefault](/ml/reference/rest/v1beta1/projects. models.versions/setDefault). 1585 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/project s.models.versions/setDefault).
1808 */ 1586 */
1809 GoogleCloudMlV1beta1Version defaultVersion; 1587 GoogleCloudMlV1Version defaultVersion;
1810 /** Optional. The description specified for the model when it was created. */ 1588 /** Optional. The description specified for the model when it was created. */
1811 core.String description; 1589 core.String description;
1812 /** 1590 /**
1813 * Required. The name specified for the model when it was created. 1591 * Required. The name specified for the model when it was created.
1814 * 1592 *
1815 * The model name must be unique within the project it is created in. 1593 * The model name must be unique within the project it is created in.
1816 */ 1594 */
1817 core.String name; 1595 core.String name;
1818 /** 1596 /**
1819 * Optional. If true, enables StackDriver Logging for online prediction. 1597 * Optional. If true, enables StackDriver Logging for online prediction.
1820 * Default is false. 1598 * Default is false.
1821 */ 1599 */
1822 core.bool onlinePredictionLogging; 1600 core.bool onlinePredictionLogging;
1823 /** 1601 /**
1824 * Optional. The list of regions where the model is going to be deployed. 1602 * Optional. The list of regions where the model is going to be deployed.
1825 * Currently only one region per model is supported. 1603 * Currently only one region per model is supported.
1826 * Defaults to 'us-central1' if nothing is set. 1604 * Defaults to 'us-central1' if nothing is set.
1605 * Note:
1606 * * No matter where a model is deployed, it can always be accessed by
1607 * users from anywhere, both for online and batch prediction.
1608 * * The region for a batch prediction job is set by the region field when
1609 * submitting the batch prediction job and does not take its value from
1610 * this field.
1827 */ 1611 */
1828 core.List<core.String> regions; 1612 core.List<core.String> regions;
1829 1613
1830 GoogleCloudMlV1beta1Model(); 1614 GoogleCloudMlV1Model();
1831 1615
1832 GoogleCloudMlV1beta1Model.fromJson(core.Map _json) { 1616 GoogleCloudMlV1Model.fromJson(core.Map _json) {
1833 if (_json.containsKey("defaultVersion")) { 1617 if (_json.containsKey("defaultVersion")) {
1834 defaultVersion = new GoogleCloudMlV1beta1Version.fromJson(_json["defaultVe rsion"]); 1618 defaultVersion = new GoogleCloudMlV1Version.fromJson(_json["defaultVersion "]);
1835 } 1619 }
1836 if (_json.containsKey("description")) { 1620 if (_json.containsKey("description")) {
1837 description = _json["description"]; 1621 description = _json["description"];
1838 } 1622 }
1839 if (_json.containsKey("name")) { 1623 if (_json.containsKey("name")) {
1840 name = _json["name"]; 1624 name = _json["name"];
1841 } 1625 }
1842 if (_json.containsKey("onlinePredictionLogging")) { 1626 if (_json.containsKey("onlinePredictionLogging")) {
1843 onlinePredictionLogging = _json["onlinePredictionLogging"]; 1627 onlinePredictionLogging = _json["onlinePredictionLogging"];
1844 } 1628 }
(...skipping 17 matching lines...) Expand all
1862 _json["onlinePredictionLogging"] = onlinePredictionLogging; 1646 _json["onlinePredictionLogging"] = onlinePredictionLogging;
1863 } 1647 }
1864 if (regions != null) { 1648 if (regions != null) {
1865 _json["regions"] = regions; 1649 _json["regions"] = regions;
1866 } 1650 }
1867 return _json; 1651 return _json;
1868 } 1652 }
1869 } 1653 }
1870 1654
1871 /** Represents the metadata of the long-running operation. */ 1655 /** Represents the metadata of the long-running operation. */
1872 class GoogleCloudMlV1beta1OperationMetadata { 1656 class GoogleCloudMlV1OperationMetadata {
1873 /** The time the operation was submitted. */ 1657 /** The time the operation was submitted. */
1874 core.String createTime; 1658 core.String createTime;
1875 /** The time operation processing completed. */ 1659 /** The time operation processing completed. */
1876 core.String endTime; 1660 core.String endTime;
1877 /** Indicates whether a request to cancel this operation has been made. */ 1661 /** Indicates whether a request to cancel this operation has been made. */
1878 core.bool isCancellationRequested; 1662 core.bool isCancellationRequested;
1879 /** Contains the name of the model associated with the operation. */ 1663 /** Contains the name of the model associated with the operation. */
1880 core.String modelName; 1664 core.String modelName;
1881 /** 1665 /**
1882 * The operation type. 1666 * The operation type.
1883 * Possible string values are: 1667 * Possible string values are:
1884 * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type. 1668 * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type.
1885 * - "CREATE_VERSION" : An operation to create a new version. 1669 * - "CREATE_VERSION" : An operation to create a new version.
1886 * - "DELETE_VERSION" : An operation to delete an existing version. 1670 * - "DELETE_VERSION" : An operation to delete an existing version.
1887 * - "DELETE_MODEL" : An operation to delete an existing model. 1671 * - "DELETE_MODEL" : An operation to delete an existing model.
1888 */ 1672 */
1889 core.String operationType; 1673 core.String operationType;
1890 /** The time operation processing started. */ 1674 /** The time operation processing started. */
1891 core.String startTime; 1675 core.String startTime;
1892 /** Contains the version associated with the operation. */ 1676 /** Contains the version associated with the operation. */
1893 GoogleCloudMlV1beta1Version version; 1677 GoogleCloudMlV1Version version;
1894 1678
1895 GoogleCloudMlV1beta1OperationMetadata(); 1679 GoogleCloudMlV1OperationMetadata();
1896 1680
1897 GoogleCloudMlV1beta1OperationMetadata.fromJson(core.Map _json) { 1681 GoogleCloudMlV1OperationMetadata.fromJson(core.Map _json) {
1898 if (_json.containsKey("createTime")) { 1682 if (_json.containsKey("createTime")) {
1899 createTime = _json["createTime"]; 1683 createTime = _json["createTime"];
1900 } 1684 }
1901 if (_json.containsKey("endTime")) { 1685 if (_json.containsKey("endTime")) {
1902 endTime = _json["endTime"]; 1686 endTime = _json["endTime"];
1903 } 1687 }
1904 if (_json.containsKey("isCancellationRequested")) { 1688 if (_json.containsKey("isCancellationRequested")) {
1905 isCancellationRequested = _json["isCancellationRequested"]; 1689 isCancellationRequested = _json["isCancellationRequested"];
1906 } 1690 }
1907 if (_json.containsKey("modelName")) { 1691 if (_json.containsKey("modelName")) {
1908 modelName = _json["modelName"]; 1692 modelName = _json["modelName"];
1909 } 1693 }
1910 if (_json.containsKey("operationType")) { 1694 if (_json.containsKey("operationType")) {
1911 operationType = _json["operationType"]; 1695 operationType = _json["operationType"];
1912 } 1696 }
1913 if (_json.containsKey("startTime")) { 1697 if (_json.containsKey("startTime")) {
1914 startTime = _json["startTime"]; 1698 startTime = _json["startTime"];
1915 } 1699 }
1916 if (_json.containsKey("version")) { 1700 if (_json.containsKey("version")) {
1917 version = new GoogleCloudMlV1beta1Version.fromJson(_json["version"]); 1701 version = new GoogleCloudMlV1Version.fromJson(_json["version"]);
1918 } 1702 }
1919 } 1703 }
1920 1704
1921 core.Map toJson() { 1705 core.Map toJson() {
1922 var _json = new core.Map(); 1706 var _json = new core.Map();
1923 if (createTime != null) { 1707 if (createTime != null) {
1924 _json["createTime"] = createTime; 1708 _json["createTime"] = createTime;
1925 } 1709 }
1926 if (endTime != null) { 1710 if (endTime != null) {
1927 _json["endTime"] = endTime; 1711 _json["endTime"] = endTime;
(...skipping 11 matching lines...) Expand all
1939 _json["startTime"] = startTime; 1723 _json["startTime"] = startTime;
1940 } 1724 }
1941 if (version != null) { 1725 if (version != null) {
1942 _json["version"] = (version).toJson(); 1726 _json["version"] = (version).toJson();
1943 } 1727 }
1944 return _json; 1728 return _json;
1945 } 1729 }
1946 } 1730 }
1947 1731
1948 /** Represents a single hyperparameter to optimize. */ 1732 /** Represents a single hyperparameter to optimize. */
1949 class GoogleCloudMlV1beta1ParameterSpec { 1733 class GoogleCloudMlV1ParameterSpec {
1950 /** Required if type is `CATEGORICAL`. The list of possible categories. */ 1734 /** Required if type is `CATEGORICAL`. The list of possible categories. */
1951 core.List<core.String> categoricalValues; 1735 core.List<core.String> categoricalValues;
1952 /** 1736 /**
1953 * Required if type is `DISCRETE`. 1737 * Required if type is `DISCRETE`.
1954 * A list of feasible points. 1738 * A list of feasible points.
1955 * The list should be in strictly increasing order. For instance, this 1739 * The list should be in strictly increasing order. For instance, this
1956 * parameter might have possible settings of 1.5, 2.5, and 4.0. This list 1740 * parameter might have possible settings of 1.5, 2.5, and 4.0. This list
1957 * should not contain more than 1,000 values. 1741 * should not contain more than 1,000 values.
1958 */ 1742 */
1959 core.List<core.double> discreteValues; 1743 core.List<core.double> discreteValues;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 * - "CATEGORICAL" : The parameter is categorical, with a value chosen from 1787 * - "CATEGORICAL" : The parameter is categorical, with a value chosen from
2004 * the categories 1788 * the categories
2005 * field. 1789 * field.
2006 * - "DISCRETE" : The parameter is real valued, with a fixed set of feasible 1790 * - "DISCRETE" : The parameter is real valued, with a fixed set of feasible
2007 * points. If 1791 * points. If
2008 * `type==DISCRETE`, feasible_points must be provided, and 1792 * `type==DISCRETE`, feasible_points must be provided, and
2009 * {`min_value`, `max_value`} will be ignored. 1793 * {`min_value`, `max_value`} will be ignored.
2010 */ 1794 */
2011 core.String type; 1795 core.String type;
2012 1796
2013 GoogleCloudMlV1beta1ParameterSpec(); 1797 GoogleCloudMlV1ParameterSpec();
2014 1798
2015 GoogleCloudMlV1beta1ParameterSpec.fromJson(core.Map _json) { 1799 GoogleCloudMlV1ParameterSpec.fromJson(core.Map _json) {
2016 if (_json.containsKey("categoricalValues")) { 1800 if (_json.containsKey("categoricalValues")) {
2017 categoricalValues = _json["categoricalValues"]; 1801 categoricalValues = _json["categoricalValues"];
2018 } 1802 }
2019 if (_json.containsKey("discreteValues")) { 1803 if (_json.containsKey("discreteValues")) {
2020 discreteValues = _json["discreteValues"]; 1804 discreteValues = _json["discreteValues"];
2021 } 1805 }
2022 if (_json.containsKey("maxValue")) { 1806 if (_json.containsKey("maxValue")) {
2023 maxValue = _json["maxValue"]; 1807 maxValue = _json["maxValue"];
2024 } 1808 }
2025 if (_json.containsKey("minValue")) { 1809 if (_json.containsKey("minValue")) {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
2244 * }, 2028 * },
2245 * ... 2029 * ...
2246 * ] 2030 * ]
2247 * } 2031 * }
2248 * </pre> 2032 * </pre>
2249 * If the call is successful, the response body will contain one prediction 2033 * If the call is successful, the response body will contain one prediction
2250 * entry per instance in the request body. If prediction fails for any 2034 * entry per instance in the request body. If prediction fails for any
2251 * instance, the response body will contain no predictions and will contian 2035 * instance, the response body will contain no predictions and will contian
2252 * a single error entry instead. 2036 * a single error entry instead.
2253 */ 2037 */
2254 class GoogleCloudMlV1beta1PredictRequest { 2038 class GoogleCloudMlV1PredictRequest {
2255 /** 2039 /**
2256 * 2040 *
2257 * Required. The prediction request body. 2041 * Required. The prediction request body.
2258 */ 2042 */
2259 GoogleApiHttpBody httpBody; 2043 GoogleApiHttpBody httpBody;
2260 2044
2261 GoogleCloudMlV1beta1PredictRequest(); 2045 GoogleCloudMlV1PredictRequest();
2262 2046
2263 GoogleCloudMlV1beta1PredictRequest.fromJson(core.Map _json) { 2047 GoogleCloudMlV1PredictRequest.fromJson(core.Map _json) {
2264 if (_json.containsKey("httpBody")) { 2048 if (_json.containsKey("httpBody")) {
2265 httpBody = new GoogleApiHttpBody.fromJson(_json["httpBody"]); 2049 httpBody = new GoogleApiHttpBody.fromJson(_json["httpBody"]);
2266 } 2050 }
2267 } 2051 }
2268 2052
2269 core.Map toJson() { 2053 core.Map toJson() {
2270 var _json = new core.Map(); 2054 var _json = new core.Map();
2271 if (httpBody != null) { 2055 if (httpBody != null) {
2272 _json["httpBody"] = (httpBody).toJson(); 2056 _json["httpBody"] = (httpBody).toJson();
2273 } 2057 }
2274 return _json; 2058 return _json;
2275 } 2059 }
2276 } 2060 }
2277 2061
2278 /** Represents input parameters for a prediction job. */ 2062 /** Represents input parameters for a prediction job. */
2279 class GoogleCloudMlV1beta1PredictionInput { 2063 class GoogleCloudMlV1PredictionInput {
2280 /** 2064 /**
2281 * Required. The format of the input data files. 2065 * Required. The format of the input data files.
2282 * Possible string values are: 2066 * Possible string values are:
2283 * - "DATA_FORMAT_UNSPECIFIED" : Unspecified format. 2067 * - "DATA_FORMAT_UNSPECIFIED" : Unspecified format.
2284 * - "TEXT" : The source file is a text file with instances separated by the 2068 * - "TEXT" : The source file is a text file with instances separated by the
2285 * new-line character. 2069 * new-line character.
2286 * - "TF_RECORD" : The source file is a TFRecord file. 2070 * - "TF_RECORD" : The source file is a TFRecord file.
2287 * - "TF_RECORD_GZIP" : The source file is a GZIP-compressed TFRecord file. 2071 * - "TF_RECORD_GZIP" : The source file is a GZIP-compressed TFRecord file.
2288 */ 2072 */
2289 core.String dataFormat; 2073 core.String dataFormat;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
2325 core.String uri; 2109 core.String uri;
2326 /** 2110 /**
2327 * Use this field if you want to specify a version of the model to use. The 2111 * Use this field if you want to specify a version of the model to use. The
2328 * string is formatted the same way as `model_version`, with the addition 2112 * string is formatted the same way as `model_version`, with the addition
2329 * of the version information: 2113 * of the version information:
2330 * 2114 *
2331 * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[ YOUR_VERSION]</var>"` 2115 * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[ YOUR_VERSION]</var>"`
2332 */ 2116 */
2333 core.String versionName; 2117 core.String versionName;
2334 2118
2335 GoogleCloudMlV1beta1PredictionInput(); 2119 GoogleCloudMlV1PredictionInput();
2336 2120
2337 GoogleCloudMlV1beta1PredictionInput.fromJson(core.Map _json) { 2121 GoogleCloudMlV1PredictionInput.fromJson(core.Map _json) {
2338 if (_json.containsKey("dataFormat")) { 2122 if (_json.containsKey("dataFormat")) {
2339 dataFormat = _json["dataFormat"]; 2123 dataFormat = _json["dataFormat"];
2340 } 2124 }
2341 if (_json.containsKey("inputPaths")) { 2125 if (_json.containsKey("inputPaths")) {
2342 inputPaths = _json["inputPaths"]; 2126 inputPaths = _json["inputPaths"];
2343 } 2127 }
2344 if (_json.containsKey("maxWorkerCount")) { 2128 if (_json.containsKey("maxWorkerCount")) {
2345 maxWorkerCount = _json["maxWorkerCount"]; 2129 maxWorkerCount = _json["maxWorkerCount"];
2346 } 2130 }
2347 if (_json.containsKey("modelName")) { 2131 if (_json.containsKey("modelName")) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2391 _json["uri"] = uri; 2175 _json["uri"] = uri;
2392 } 2176 }
2393 if (versionName != null) { 2177 if (versionName != null) {
2394 _json["versionName"] = versionName; 2178 _json["versionName"] = versionName;
2395 } 2179 }
2396 return _json; 2180 return _json;
2397 } 2181 }
2398 } 2182 }
2399 2183
2400 /** Represents results of a prediction job. */ 2184 /** Represents results of a prediction job. */
2401 class GoogleCloudMlV1beta1PredictionOutput { 2185 class GoogleCloudMlV1PredictionOutput {
2402 /** The number of data instances which resulted in errors. */ 2186 /** The number of data instances which resulted in errors. */
2403 core.String errorCount; 2187 core.String errorCount;
2404 /** Node hours used by the batch prediction job. */ 2188 /** Node hours used by the batch prediction job. */
2405 core.double nodeHours; 2189 core.double nodeHours;
2406 /** 2190 /**
2407 * The output Google Cloud Storage location provided at the job creation time. 2191 * The output Google Cloud Storage location provided at the job creation time.
2408 */ 2192 */
2409 core.String outputPath; 2193 core.String outputPath;
2410 /** The number of generated predictions. */ 2194 /** The number of generated predictions. */
2411 core.String predictionCount; 2195 core.String predictionCount;
2412 2196
2413 GoogleCloudMlV1beta1PredictionOutput(); 2197 GoogleCloudMlV1PredictionOutput();
2414 2198
2415 GoogleCloudMlV1beta1PredictionOutput.fromJson(core.Map _json) { 2199 GoogleCloudMlV1PredictionOutput.fromJson(core.Map _json) {
2416 if (_json.containsKey("errorCount")) { 2200 if (_json.containsKey("errorCount")) {
2417 errorCount = _json["errorCount"]; 2201 errorCount = _json["errorCount"];
2418 } 2202 }
2419 if (_json.containsKey("nodeHours")) { 2203 if (_json.containsKey("nodeHours")) {
2420 nodeHours = _json["nodeHours"]; 2204 nodeHours = _json["nodeHours"];
2421 } 2205 }
2422 if (_json.containsKey("outputPath")) { 2206 if (_json.containsKey("outputPath")) {
2423 outputPath = _json["outputPath"]; 2207 outputPath = _json["outputPath"];
2424 } 2208 }
2425 if (_json.containsKey("predictionCount")) { 2209 if (_json.containsKey("predictionCount")) {
(...skipping 13 matching lines...) Expand all
2439 _json["outputPath"] = outputPath; 2223 _json["outputPath"] = outputPath;
2440 } 2224 }
2441 if (predictionCount != null) { 2225 if (predictionCount != null) {
2442 _json["predictionCount"] = predictionCount; 2226 _json["predictionCount"] = predictionCount;
2443 } 2227 }
2444 return _json; 2228 return _json;
2445 } 2229 }
2446 } 2230 }
2447 2231
2448 /** Request message for the SetDefaultVersion request. */ 2232 /** Request message for the SetDefaultVersion request. */
2449 class GoogleCloudMlV1beta1SetDefaultVersionRequest { 2233 class GoogleCloudMlV1SetDefaultVersionRequest {
2450 2234
2451 GoogleCloudMlV1beta1SetDefaultVersionRequest(); 2235 GoogleCloudMlV1SetDefaultVersionRequest();
2452 2236
2453 GoogleCloudMlV1beta1SetDefaultVersionRequest.fromJson(core.Map _json) { 2237 GoogleCloudMlV1SetDefaultVersionRequest.fromJson(core.Map _json) {
2454 } 2238 }
2455 2239
2456 core.Map toJson() { 2240 core.Map toJson() {
2457 var _json = new core.Map(); 2241 var _json = new core.Map();
2458 return _json; 2242 return _json;
2459 } 2243 }
2460 } 2244 }
2461 2245
2462 /** Represents input parameters for a training job. */ 2246 /** Represents input parameters for a training job. */
2463 class GoogleCloudMlV1beta1TrainingInput { 2247 class GoogleCloudMlV1TrainingInput {
2464 /** Optional. Command line arguments to pass to the program. */ 2248 /** Optional. Command line arguments to pass to the program. */
2465 core.List<core.String> args; 2249 core.List<core.String> args;
2466 /** Optional. The set of Hyperparameters to tune. */ 2250 /** Optional. The set of Hyperparameters to tune. */
2467 GoogleCloudMlV1beta1HyperparameterSpec hyperparameters; 2251 GoogleCloudMlV1HyperparameterSpec hyperparameters;
2468 /** 2252 /**
2469 * Optional. A Google Cloud Storage path in which to store training outputs 2253 * Optional. A Google Cloud Storage path in which to store training outputs
2470 * and other data needed for training. This path is passed to your TensorFlow 2254 * and other data needed for training. This path is passed to your TensorFlow
2471 * program as the 'job_dir' command-line argument. The benefit of specifying 2255 * program as the 'job_dir' command-line argument. The benefit of specifying
2472 * this field is that Cloud ML validates the path for use in training. 2256 * this field is that Cloud ML validates the path for use in training.
2473 */ 2257 */
2474 core.String jobDir; 2258 core.String jobDir;
2475 /** 2259 /**
2476 * Optional. Specifies the type of virtual machine to use for your training 2260 * Optional. Specifies the type of virtual machine to use for your training
2477 * job's master worker. 2261 * job's master worker.
(...skipping 25 matching lines...) Expand all
2503 * </dd> 2287 * </dd>
2504 * <dt>complex_model_l</dt> 2288 * <dt>complex_model_l</dt>
2505 * <dd> 2289 * <dd>
2506 * A machine with roughly twice the number of cores and roughly double the 2290 * A machine with roughly twice the number of cores and roughly double the
2507 * memory of <code suppresswarning="true">complex_model_m</code>. 2291 * memory of <code suppresswarning="true">complex_model_m</code>.
2508 * </dd> 2292 * </dd>
2509 * <dt>standard_gpu</dt> 2293 * <dt>standard_gpu</dt>
2510 * <dd> 2294 * <dd>
2511 * A machine equivalent to <code suppresswarning="true">standard</code> that 2295 * A machine equivalent to <code suppresswarning="true">standard</code> that
2512 * also includes a 2296 * also includes a
2513 * <a href="ml/docs/how-tos/using-gpus"> 2297 * <a href="/ml-engine/docs/how-tos/using-gpus">
2514 * GPU that you can use in your trainer</a>. 2298 * GPU that you can use in your trainer</a>.
2515 * </dd> 2299 * </dd>
2516 * <dt>complex_model_m_gpu</dt> 2300 * <dt>complex_model_m_gpu</dt>
2517 * <dd> 2301 * <dd>
2518 * A machine equivalent to 2302 * A machine equivalent to
2519 * <code suppresswarning="true">coplex_model_m</code> that also includes 2303 * <code suppresswarning="true">coplex_model_m</code> that also includes
2520 * four GPUs. 2304 * four GPUs.
2521 * </dd> 2305 * </dd>
2522 * </dl> 2306 * </dl>
2523 * 2307 *
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2561 /** 2345 /**
2562 * Required. Specifies the machine types, the number of replicas for workers 2346 * Required. Specifies the machine types, the number of replicas for workers
2563 * and parameter servers. 2347 * and parameter servers.
2564 * Possible string values are: 2348 * Possible string values are:
2565 * - "BASIC" : A single worker instance. This tier is suitable for learning 2349 * - "BASIC" : A single worker instance. This tier is suitable for learning
2566 * how to use 2350 * how to use
2567 * Cloud ML, and for experimenting with new models using small datasets. 2351 * Cloud ML, and for experimenting with new models using small datasets.
2568 * - "STANDARD_1" : Many workers and a few parameter servers. 2352 * - "STANDARD_1" : Many workers and a few parameter servers.
2569 * - "PREMIUM_1" : A large number of workers with many parameter servers. 2353 * - "PREMIUM_1" : A large number of workers with many parameter servers.
2570 * - "BASIC_GPU" : A single worker instance [with a 2354 * - "BASIC_GPU" : A single worker instance [with a
2571 * GPU](ml/docs/how-tos/using-gpus). 2355 * GPU](/ml-engine/docs/how-tos/using-gpus).
2572 * - "CUSTOM" : The CUSTOM tier is not a set tier, but rather enables you to 2356 * - "CUSTOM" : The CUSTOM tier is not a set tier, but rather enables you to
2573 * use your 2357 * use your
2574 * own cluster specification. When you use this tier, set values to 2358 * own cluster specification. When you use this tier, set values to
2575 * configure your processing cluster according to these guidelines: 2359 * configure your processing cluster according to these guidelines:
2576 * 2360 *
2577 * * You _must_ set `TrainingInput.masterType` to specify the type 2361 * * You _must_ set `TrainingInput.masterType` to specify the type
2578 * of machine to use for your master node. This is the only required 2362 * of machine to use for your master node. This is the only required
2579 * setting. 2363 * setting.
2580 * 2364 *
2581 * * You _may_ set `TrainingInput.workerCount` to specify the number of 2365 * * You _may_ set `TrainingInput.workerCount` to specify the number of
(...skipping 26 matching lines...) Expand all
2608 * job's worker nodes. 2392 * job's worker nodes.
2609 * 2393 *
2610 * The supported values are the same as those described in the entry for 2394 * The supported values are the same as those described in the entry for
2611 * `masterType`. 2395 * `masterType`.
2612 * 2396 *
2613 * This value must be present when `scaleTier` is set to `CUSTOM` and 2397 * This value must be present when `scaleTier` is set to `CUSTOM` and
2614 * `workerCount` is greater than zero. 2398 * `workerCount` is greater than zero.
2615 */ 2399 */
2616 core.String workerType; 2400 core.String workerType;
2617 2401
2618 GoogleCloudMlV1beta1TrainingInput(); 2402 GoogleCloudMlV1TrainingInput();
2619 2403
2620 GoogleCloudMlV1beta1TrainingInput.fromJson(core.Map _json) { 2404 GoogleCloudMlV1TrainingInput.fromJson(core.Map _json) {
2621 if (_json.containsKey("args")) { 2405 if (_json.containsKey("args")) {
2622 args = _json["args"]; 2406 args = _json["args"];
2623 } 2407 }
2624 if (_json.containsKey("hyperparameters")) { 2408 if (_json.containsKey("hyperparameters")) {
2625 hyperparameters = new GoogleCloudMlV1beta1HyperparameterSpec.fromJson(_jso n["hyperparameters"]); 2409 hyperparameters = new GoogleCloudMlV1HyperparameterSpec.fromJson(_json["hy perparameters"]);
2626 } 2410 }
2627 if (_json.containsKey("jobDir")) { 2411 if (_json.containsKey("jobDir")) {
2628 jobDir = _json["jobDir"]; 2412 jobDir = _json["jobDir"];
2629 } 2413 }
2630 if (_json.containsKey("masterType")) { 2414 if (_json.containsKey("masterType")) {
2631 masterType = _json["masterType"]; 2415 masterType = _json["masterType"];
2632 } 2416 }
2633 if (_json.containsKey("packageUris")) { 2417 if (_json.containsKey("packageUris")) {
2634 packageUris = _json["packageUris"]; 2418 packageUris = _json["packageUris"];
2635 } 2419 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
2698 _json["workerCount"] = workerCount; 2482 _json["workerCount"] = workerCount;
2699 } 2483 }
2700 if (workerType != null) { 2484 if (workerType != null) {
2701 _json["workerType"] = workerType; 2485 _json["workerType"] = workerType;
2702 } 2486 }
2703 return _json; 2487 return _json;
2704 } 2488 }
2705 } 2489 }
2706 2490
2707 /** Represents results of a training job. Output only. */ 2491 /** Represents results of a training job. Output only. */
2708 class GoogleCloudMlV1beta1TrainingOutput { 2492 class GoogleCloudMlV1TrainingOutput {
2709 /** 2493 /**
2710 * The number of hyperparameter tuning trials that completed successfully. 2494 * The number of hyperparameter tuning trials that completed successfully.
2711 * Only set for hyperparameter tuning jobs. 2495 * Only set for hyperparameter tuning jobs.
2712 */ 2496 */
2713 core.String completedTrialCount; 2497 core.String completedTrialCount;
2714 /** The amount of ML units consumed by the job. */ 2498 /** The amount of ML units consumed by the job. */
2715 core.double consumedMLUnits; 2499 core.double consumedMLUnits;
2716 /** Whether this job is a hyperparameter tuning job. */ 2500 /** Whether this job is a hyperparameter tuning job. */
2717 core.bool isHyperparameterTuningJob; 2501 core.bool isHyperparameterTuningJob;
2718 /** 2502 /**
2719 * Results for individual Hyperparameter trials. 2503 * Results for individual Hyperparameter trials.
2720 * Only set for hyperparameter tuning jobs. 2504 * Only set for hyperparameter tuning jobs.
2721 */ 2505 */
2722 core.List<GoogleCloudMlV1beta1HyperparameterOutput> trials; 2506 core.List<GoogleCloudMlV1HyperparameterOutput> trials;
2723 2507
2724 GoogleCloudMlV1beta1TrainingOutput(); 2508 GoogleCloudMlV1TrainingOutput();
2725 2509
2726 GoogleCloudMlV1beta1TrainingOutput.fromJson(core.Map _json) { 2510 GoogleCloudMlV1TrainingOutput.fromJson(core.Map _json) {
2727 if (_json.containsKey("completedTrialCount")) { 2511 if (_json.containsKey("completedTrialCount")) {
2728 completedTrialCount = _json["completedTrialCount"]; 2512 completedTrialCount = _json["completedTrialCount"];
2729 } 2513 }
2730 if (_json.containsKey("consumedMLUnits")) { 2514 if (_json.containsKey("consumedMLUnits")) {
2731 consumedMLUnits = _json["consumedMLUnits"]; 2515 consumedMLUnits = _json["consumedMLUnits"];
2732 } 2516 }
2733 if (_json.containsKey("isHyperparameterTuningJob")) { 2517 if (_json.containsKey("isHyperparameterTuningJob")) {
2734 isHyperparameterTuningJob = _json["isHyperparameterTuningJob"]; 2518 isHyperparameterTuningJob = _json["isHyperparameterTuningJob"];
2735 } 2519 }
2736 if (_json.containsKey("trials")) { 2520 if (_json.containsKey("trials")) {
2737 trials = _json["trials"].map((value) => new GoogleCloudMlV1beta1Hyperparam eterOutput.fromJson(value)).toList(); 2521 trials = _json["trials"].map((value) => new GoogleCloudMlV1HyperparameterO utput.fromJson(value)).toList();
2738 } 2522 }
2739 } 2523 }
2740 2524
2741 core.Map toJson() { 2525 core.Map toJson() {
2742 var _json = new core.Map(); 2526 var _json = new core.Map();
2743 if (completedTrialCount != null) { 2527 if (completedTrialCount != null) {
2744 _json["completedTrialCount"] = completedTrialCount; 2528 _json["completedTrialCount"] = completedTrialCount;
2745 } 2529 }
2746 if (consumedMLUnits != null) { 2530 if (consumedMLUnits != null) {
2747 _json["consumedMLUnits"] = consumedMLUnits; 2531 _json["consumedMLUnits"] = consumedMLUnits;
2748 } 2532 }
2749 if (isHyperparameterTuningJob != null) { 2533 if (isHyperparameterTuningJob != null) {
2750 _json["isHyperparameterTuningJob"] = isHyperparameterTuningJob; 2534 _json["isHyperparameterTuningJob"] = isHyperparameterTuningJob;
2751 } 2535 }
2752 if (trials != null) { 2536 if (trials != null) {
2753 _json["trials"] = trials.map((value) => (value).toJson()).toList(); 2537 _json["trials"] = trials.map((value) => (value).toJson()).toList();
2754 } 2538 }
2755 return _json; 2539 return _json;
2756 } 2540 }
2757 } 2541 }
2758 2542
2759 /** 2543 /**
2760 * Represents a version of the model. 2544 * Represents a version of the model.
2761 * 2545 *
2762 * Each version is a trained model deployed in the cloud, ready to handle 2546 * Each version is a trained model deployed in the cloud, ready to handle
2763 * prediction requests. A model can have multiple versions. You can get 2547 * prediction requests. A model can have multiple versions. You can get
2764 * information about all of the versions of a given model by calling 2548 * information about all of the versions of a given model by calling
2765 * [projects.models.versions.list](/ml/reference/rest/v1beta1/projects.models.ve rsions/list). 2549 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. versions/list).
2550 */
2551 class GoogleCloudMlV1Version {
2552 /** Output only. The time the version was created. */
2553 core.String createTime;
2554 /**
2555 * Required. The Google Cloud Storage location of the trained model used to
2556 * create the version. See the
2557 * [overview of model
2558 * deployment](/ml-engine/docs/concepts/deployment-overview) for
2559 * more informaiton.
2560 *
2561 * When passing Version to
2562 * [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.mod els.versions/create)
2563 * the model service uses the specified location as the source of the model.
2564 * Once deployed, the model version is hosted by the prediction service, so
2565 * this location is useful only as a historical record.
2566 */
2567 core.String deploymentUri;
2568 /**
2569 * Optional. The description specified for the version when it was created.
2570 */
2571 core.String description;
2572 /**
2573 * Output only. If true, this version will be used to handle prediction
2574 * requests that do not specify a version.
2575 *
2576 * You can change the default version by calling
2577 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/project s.models.versions/setDefault).
2578 */
2579 core.bool isDefault;
2580 /** Output only. The time the version was last used for prediction. */
2581 core.String lastUseTime;
2582 /**
2583 * Optional. Manually select the number of nodes to use for serving the
2584 * model. If unset (i.e., by default), the number of nodes used to serve
2585 * the model automatically scales with traffic. However, care should be
2586 * taken to ramp up traffic according to the model's ability to scale. If
2587 * your model needs to handle bursts of traffic beyond it's ability to
2588 * scale, it is recommended you set this field appropriately.
2589 */
2590 GoogleCloudMlV1ManualScaling manualScaling;
2591 /**
2592 * Required.The name specified for the version when it was created.
2593 *
2594 * The version name must be unique within the model it is created in.
2595 */
2596 core.String name;
2597 /**
2598 * Optional. The Google Cloud ML runtime version to use for this deployment.
2599 * If not set, Google Cloud ML will choose a version.
2600 */
2601 core.String runtimeVersion;
2602
2603 GoogleCloudMlV1Version();
2604
2605 GoogleCloudMlV1Version.fromJson(core.Map _json) {
2606 if (_json.containsKey("createTime")) {
2607 createTime = _json["createTime"];
2608 }
2609 if (_json.containsKey("deploymentUri")) {
2610 deploymentUri = _json["deploymentUri"];
2611 }
2612 if (_json.containsKey("description")) {
2613 description = _json["description"];
2614 }
2615 if (_json.containsKey("isDefault")) {
2616 isDefault = _json["isDefault"];
2617 }
2618 if (_json.containsKey("lastUseTime")) {
2619 lastUseTime = _json["lastUseTime"];
2620 }
2621 if (_json.containsKey("manualScaling")) {
2622 manualScaling = new GoogleCloudMlV1ManualScaling.fromJson(_json["manualSca ling"]);
2623 }
2624 if (_json.containsKey("name")) {
2625 name = _json["name"];
2626 }
2627 if (_json.containsKey("runtimeVersion")) {
2628 runtimeVersion = _json["runtimeVersion"];
2629 }
2630 }
2631
2632 core.Map toJson() {
2633 var _json = new core.Map();
2634 if (createTime != null) {
2635 _json["createTime"] = createTime;
2636 }
2637 if (deploymentUri != null) {
2638 _json["deploymentUri"] = deploymentUri;
2639 }
2640 if (description != null) {
2641 _json["description"] = description;
2642 }
2643 if (isDefault != null) {
2644 _json["isDefault"] = isDefault;
2645 }
2646 if (lastUseTime != null) {
2647 _json["lastUseTime"] = lastUseTime;
2648 }
2649 if (manualScaling != null) {
2650 _json["manualScaling"] = (manualScaling).toJson();
2651 }
2652 if (name != null) {
2653 _json["name"] = name;
2654 }
2655 if (runtimeVersion != null) {
2656 _json["runtimeVersion"] = runtimeVersion;
2657 }
2658 return _json;
2659 }
2660 }
2661
2662 /** Options for manually scaling a model. */
2663 class GoogleCloudMlV1beta1ManualScaling {
2664 /**
2665 * The number of nodes to allocate for this model. These nodes are always up,
2666 * starting from the time the model is deployed, so the cost of operating
2667 * this model will be proportional to nodes * number of hours since
2668 * deployment.
2669 */
2670 core.int nodes;
2671
2672 GoogleCloudMlV1beta1ManualScaling();
2673
2674 GoogleCloudMlV1beta1ManualScaling.fromJson(core.Map _json) {
2675 if (_json.containsKey("nodes")) {
2676 nodes = _json["nodes"];
2677 }
2678 }
2679
2680 core.Map toJson() {
2681 var _json = new core.Map();
2682 if (nodes != null) {
2683 _json["nodes"] = nodes;
2684 }
2685 return _json;
2686 }
2687 }
2688
2689 /** Represents the metadata of the long-running operation. */
2690 class GoogleCloudMlV1beta1OperationMetadata {
2691 /** The time the operation was submitted. */
2692 core.String createTime;
2693 /** The time operation processing completed. */
2694 core.String endTime;
2695 /** Indicates whether a request to cancel this operation has been made. */
2696 core.bool isCancellationRequested;
2697 /** Contains the name of the model associated with the operation. */
2698 core.String modelName;
2699 /**
2700 * The operation type.
2701 * Possible string values are:
2702 * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type.
2703 * - "CREATE_VERSION" : An operation to create a new version.
2704 * - "DELETE_VERSION" : An operation to delete an existing version.
2705 * - "DELETE_MODEL" : An operation to delete an existing model.
2706 */
2707 core.String operationType;
2708 /** The time operation processing started. */
2709 core.String startTime;
2710 /** Contains the version associated with the operation. */
2711 GoogleCloudMlV1beta1Version version;
2712
2713 GoogleCloudMlV1beta1OperationMetadata();
2714
2715 GoogleCloudMlV1beta1OperationMetadata.fromJson(core.Map _json) {
2716 if (_json.containsKey("createTime")) {
2717 createTime = _json["createTime"];
2718 }
2719 if (_json.containsKey("endTime")) {
2720 endTime = _json["endTime"];
2721 }
2722 if (_json.containsKey("isCancellationRequested")) {
2723 isCancellationRequested = _json["isCancellationRequested"];
2724 }
2725 if (_json.containsKey("modelName")) {
2726 modelName = _json["modelName"];
2727 }
2728 if (_json.containsKey("operationType")) {
2729 operationType = _json["operationType"];
2730 }
2731 if (_json.containsKey("startTime")) {
2732 startTime = _json["startTime"];
2733 }
2734 if (_json.containsKey("version")) {
2735 version = new GoogleCloudMlV1beta1Version.fromJson(_json["version"]);
2736 }
2737 }
2738
2739 core.Map toJson() {
2740 var _json = new core.Map();
2741 if (createTime != null) {
2742 _json["createTime"] = createTime;
2743 }
2744 if (endTime != null) {
2745 _json["endTime"] = endTime;
2746 }
2747 if (isCancellationRequested != null) {
2748 _json["isCancellationRequested"] = isCancellationRequested;
2749 }
2750 if (modelName != null) {
2751 _json["modelName"] = modelName;
2752 }
2753 if (operationType != null) {
2754 _json["operationType"] = operationType;
2755 }
2756 if (startTime != null) {
2757 _json["startTime"] = startTime;
2758 }
2759 if (version != null) {
2760 _json["version"] = (version).toJson();
2761 }
2762 return _json;
2763 }
2764 }
2765
2766 /**
2767 * Represents a version of the model.
2768 *
2769 * Each version is a trained model deployed in the cloud, ready to handle
2770 * prediction requests. A model can have multiple versions. You can get
2771 * information about all of the versions of a given model by calling
2772 * [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.mo dels.versions/list).
2766 */ 2773 */
2767 class GoogleCloudMlV1beta1Version { 2774 class GoogleCloudMlV1beta1Version {
2768 /** Output only. The time the version was created. */ 2775 /** Output only. The time the version was created. */
2769 core.String createTime; 2776 core.String createTime;
2770 /** 2777 /**
2771 * Required. The Google Cloud Storage location of the trained model used to 2778 * Required. The Google Cloud Storage location of the trained model used to
2772 * create the version. See the 2779 * create the version. See the
2773 * [overview of model deployment](/ml/docs/concepts/deployment-overview) for 2780 * [overview of model
2781 * deployment](/ml-engine/docs/concepts/deployment-overview) for
2774 * more informaiton. 2782 * more informaiton.
2775 * 2783 *
2776 * When passing Version to 2784 * When passing Version to
2777 * [projects.models.versions.create](/ml/reference/rest/v1beta1/projects.model s.versions/create) 2785 * [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/project s.models.versions/create)
2778 * the model service uses the specified location as the source of the model. 2786 * the model service uses the specified location as the source of the model.
2779 * Once deployed, the model version is hosted by the prediction service, so 2787 * Once deployed, the model version is hosted by the prediction service, so
2780 * this location is useful only as a historical record. 2788 * this location is useful only as a historical record.
2781 */ 2789 */
2782 core.String deploymentUri; 2790 core.String deploymentUri;
2783 /** 2791 /**
2784 * Optional. The description specified for the version when it was created. 2792 * Optional. The description specified for the version when it was created.
2785 */ 2793 */
2786 core.String description; 2794 core.String description;
2787 /** 2795 /**
2788 * Output only. If true, this version will be used to handle prediction 2796 * Output only. If true, this version will be used to handle prediction
2789 * requests that do not specify a version. 2797 * requests that do not specify a version.
2790 * 2798 *
2791 * You can change the default version by calling 2799 * You can change the default version by calling
2792 * [projects.methods.versions.setDefault](/ml/reference/rest/v1beta1/projects. models.versions/setDefault). 2800 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/pr ojects.models.versions/setDefault).
2793 */ 2801 */
2794 core.bool isDefault; 2802 core.bool isDefault;
2795 /** Output only. The time the version was last used for prediction. */ 2803 /** Output only. The time the version was last used for prediction. */
2796 core.String lastUseTime; 2804 core.String lastUseTime;
2797 /** 2805 /**
2798 * Optional. Manually select the number of nodes to use for serving the 2806 * Optional. Manually select the number of nodes to use for serving the
2799 * model. If unset (i.e., by default), the number of nodes used to serve 2807 * model. If unset (i.e., by default), the number of nodes used to serve
2800 * the model automatically scales with traffic. However, care should be 2808 * the model automatically scales with traffic. However, care should be
2801 * taken to ramp up traffic according to the model's ability to scale. If 2809 * taken to ramp up traffic according to the model's ability to scale. If
2802 * your model needs to handle bursts of traffic beyond it's ability to 2810 * your model needs to handle bursts of traffic beyond it's ability to
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
3108 } 3116 }
3109 if (details != null) { 3117 if (details != null) {
3110 _json["details"] = details; 3118 _json["details"] = details;
3111 } 3119 }
3112 if (message != null) { 3120 if (message != null) {
3113 _json["message"] = message; 3121 _json["message"] = message;
3114 } 3122 }
3115 return _json; 3123 return _json;
3116 } 3124 }
3117 } 3125 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/manufacturers/v1.dart ('k') | generated/googleapis/lib/monitoring/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698