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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs 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.ml.v1; 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;
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 *
293 * [pageToken] - Optional. A page token to request the next page of results.
294 *
295 * You get the token from the `next_page_token` field of the response from
296 * the previous call.
297 *
298 * [pageSize] - Optional. The number of jobs to retrieve per "page" of 291 * [pageSize] - Optional. The number of jobs to retrieve per "page" of
299 * results. If there 292 * results. If there
300 * are more remaining results than this number, the response message will 293 * are more remaining results than this number, the response message will
301 * contain a valid value in the `next_page_token` field. 294 * contain a valid value in the `next_page_token` field.
302 * 295 *
303 * The default value is 20, and the maximum page size is 100. 296 * The default value is 20, and the maximum page size is 100.
304 * 297 *
298 * [filter] - Optional. Specifies the subset of jobs to retrieve.
299 *
300 * [pageToken] - Optional. A page token to request the next page of results.
301 *
302 * You get the token from the `next_page_token` field of the response from
303 * the previous call.
304 *
305 * Completes with a [GoogleCloudMlV1ListJobsResponse]. 305 * Completes with a [GoogleCloudMlV1ListJobsResponse].
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<GoogleCloudMlV1ListJobsResponse> list(core.String parent, {core.S tring filter, core.String pageToken, core.int pageSize}) { 313 async.Future<GoogleCloudMlV1ListJobsResponse> list(core.String parent, {core.i nt pageSize, core.String filter, core.String pageToken}) {
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 (pageSize != null) {
325 _queryParams["pageSize"] = ["${pageSize}"];
326 }
324 if (filter != null) { 327 if (filter != null) {
325 _queryParams["filter"] = [filter]; 328 _queryParams["filter"] = [filter];
326 } 329 }
327 if (pageToken != null) { 330 if (pageToken != null) {
328 _queryParams["pageToken"] = [pageToken]; 331 _queryParams["pageToken"] = [pageToken];
329 } 332 }
330 if (pageSize != null) {
331 _queryParams["pageSize"] = ["${pageSize}"];
332 }
333 333
334 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/jobs'; 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);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
512 *
513 * You get the token from the `next_page_token` field of the response from
514 * the previous call.
515 *
516 * [pageSize] - Optional. The number of models to retrieve per "page" of 511 * [pageSize] - Optional. The number of models to retrieve per "page" of
517 * results. If there 512 * results. If there
518 * are more remaining results than this number, the response message will 513 * are more remaining results than this number, the response message will
519 * contain a valid value in the `next_page_token` field. 514 * contain a valid value in the `next_page_token` field.
520 * 515 *
521 * The default value is 20, and the maximum page size is 100. 516 * The default value is 20, and the maximum page size is 100.
522 * 517 *
518 * [pageToken] - Optional. A page token to request the next page of results.
519 *
520 * You get the token from the `next_page_token` field of the response from
521 * the previous call.
522 *
523 * Completes with a [GoogleCloudMlV1ListModelsResponse]. 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<GoogleCloudMlV1ListModelsResponse> list(core.String parent, {core .String pageToken, core.int pageSize}) { 531 async.Future<GoogleCloudMlV1ListModelsResponse> list(core.String parent, {core .int pageSize, core.String pageToken}) {
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 (pageSize != null) {
543 _queryParams["pageSize"] = ["${pageSize}"];
544 }
542 if (pageToken != null) { 545 if (pageToken != null) {
543 _queryParams["pageToken"] = [pageToken]; 546 _queryParams["pageToken"] = [pageToken];
544 } 547 }
545 if (pageSize != null) {
546 _queryParams["pageSize"] = ["${pageSize}"];
547 }
548 548
549 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/models'; 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);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
737 *
738 * You get the token from the `next_page_token` field of the response from
739 * the previous call.
740 *
741 * [pageSize] - Optional. The number of versions to retrieve per "page" of 736 * [pageSize] - Optional. The number of versions to retrieve per "page" of
742 * results. If 737 * results. If
743 * there are more remaining results than this number, the response message 738 * there are more remaining results than this number, the response message
744 * will contain a valid value in the `next_page_token` field. 739 * will contain a valid value in the `next_page_token` field.
745 * 740 *
746 * The default value is 20, and the maximum page size is 100. 741 * The default value is 20, and the maximum page size is 100.
747 * 742 *
743 * [pageToken] - Optional. A page token to request the next page of results.
744 *
745 * You get the token from the `next_page_token` field of the response from
746 * the previous call.
747 *
748 * Completes with a [GoogleCloudMlV1ListVersionsResponse]. 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<GoogleCloudMlV1ListVersionsResponse> list(core.String parent, {co re.String pageToken, core.int pageSize}) { 756 async.Future<GoogleCloudMlV1ListVersionsResponse> list(core.String parent, {co re.int pageSize, core.String pageToken}) {
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 (pageSize != null) {
768 _queryParams["pageSize"] = ["${pageSize}"];
769 }
767 if (pageToken != null) { 770 if (pageToken != null) {
768 _queryParams["pageToken"] = [pageToken]; 771 _queryParams["pageToken"] = [pageToken];
769 } 772 }
770 if (pageSize != null) {
771 _queryParams["pageSize"] = ["${pageSize}"];
772 }
773 773
774 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/versions '; 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);
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
2304 * four GPUs. 2304 * four GPUs.
2305 * </dd> 2305 * </dd>
2306 * </dl> 2306 * </dl>
2307 * 2307 *
2308 * You must set this value when `scaleTier` is set to `CUSTOM`. 2308 * You must set this value when `scaleTier` is set to `CUSTOM`.
2309 */ 2309 */
2310 core.String masterType; 2310 core.String masterType;
2311 /** 2311 /**
2312 * Required. The Google Cloud Storage location of the packages with 2312 * Required. The Google Cloud Storage location of the packages with
2313 * the training program and any additional dependencies. 2313 * the training program and any additional dependencies.
2314 * The maximum number of package URIs is 100.
2314 */ 2315 */
2315 core.List<core.String> packageUris; 2316 core.List<core.String> packageUris;
2316 /** 2317 /**
2317 * Optional. The number of parameter server replicas to use for the training 2318 * Optional. The number of parameter server replicas to use for the training
2318 * job. Each replica in the cluster will be of the type specified in 2319 * job. Each replica in the cluster will be of the type specified in
2319 * `parameter_server_type`. 2320 * `parameter_server_type`.
2320 * 2321 *
2321 * This value can only be used when `scale_tier` is set to `CUSTOM`.If you 2322 * This value can only be used when `scale_tier` is set to `CUSTOM`.If you
2322 * set this value, you must also set `parameter_server_type`. 2323 * set this value, you must also set `parameter_server_type`.
2323 */ 2324 */
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
2548 * information about all of the versions of a given model by calling 2549 * information about all of the versions of a given model by calling
2549 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. versions/list). 2550 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. versions/list).
2550 */ 2551 */
2551 class GoogleCloudMlV1Version { 2552 class GoogleCloudMlV1Version {
2552 /** Output only. The time the version was created. */ 2553 /** Output only. The time the version was created. */
2553 core.String createTime; 2554 core.String createTime;
2554 /** 2555 /**
2555 * Required. The Google Cloud Storage location of the trained model used to 2556 * Required. The Google Cloud Storage location of the trained model used to
2556 * create the version. See the 2557 * create the version. See the
2557 * [overview of model 2558 * [overview of model
2558 * deployment](/ml-engine/docs/concepts/deployment-overview) for 2559 * deployment](/ml-engine/docs/concepts/deployment-overview) for more
2559 * more informaiton. 2560 * informaiton.
2560 * 2561 *
2561 * When passing Version to 2562 * When passing Version to
2562 * [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.mod els.versions/create) 2563 * [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 * 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 * Once deployed, the model version is hosted by the prediction service, so
2565 * this location is useful only as a historical record. 2566 * this location is useful only as a historical record.
2567 * The total number of model files can't exceed 1000.
2566 */ 2568 */
2567 core.String deploymentUri; 2569 core.String deploymentUri;
2568 /** 2570 /**
2569 * Optional. The description specified for the version when it was created. 2571 * Optional. The description specified for the version when it was created.
2570 */ 2572 */
2571 core.String description; 2573 core.String description;
2572 /** 2574 /**
2573 * Output only. If true, this version will be used to handle prediction 2575 * Output only. If true, this version will be used to handle prediction
2574 * requests that do not specify a version. 2576 * requests that do not specify a version.
2575 * 2577 *
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
2771 * information about all of the versions of a given model by calling 2773 * 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). 2774 * [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.mo dels.versions/list).
2773 */ 2775 */
2774 class GoogleCloudMlV1beta1Version { 2776 class GoogleCloudMlV1beta1Version {
2775 /** Output only. The time the version was created. */ 2777 /** Output only. The time the version was created. */
2776 core.String createTime; 2778 core.String createTime;
2777 /** 2779 /**
2778 * Required. The Google Cloud Storage location of the trained model used to 2780 * Required. The Google Cloud Storage location of the trained model used to
2779 * create the version. See the 2781 * create the version. See the
2780 * [overview of model 2782 * [overview of model
2781 * deployment](/ml-engine/docs/concepts/deployment-overview) for 2783 * deployment](/ml-engine/docs/concepts/deployment-overview) for more
2782 * more informaiton. 2784 * informaiton.
2783 * 2785 *
2784 * When passing Version to 2786 * When passing Version to
2785 * [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/project s.models.versions/create) 2787 * [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/project s.models.versions/create)
2786 * the model service uses the specified location as the source of the model. 2788 * the model service uses the specified location as the source of the model.
2787 * Once deployed, the model version is hosted by the prediction service, so 2789 * Once deployed, the model version is hosted by the prediction service, so
2788 * this location is useful only as a historical record. 2790 * this location is useful only as a historical record.
2791 * The total number of model files can't exceed 1000.
2789 */ 2792 */
2790 core.String deploymentUri; 2793 core.String deploymentUri;
2791 /** 2794 /**
2792 * Optional. The description specified for the version when it was created. 2795 * Optional. The description specified for the version when it was created.
2793 */ 2796 */
2794 core.String description; 2797 core.String description;
2795 /** 2798 /**
2796 * Output only. If true, this version will be used to handle prediction 2799 * Output only. If true, this version will be used to handle prediction
2797 * requests that do not specify a version. 2800 * requests that do not specify a version.
2798 * 2801 *
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
3116 } 3119 }
3117 if (details != null) { 3120 if (details != null) {
3118 _json["details"] = details; 3121 _json["details"] = details;
3119 } 3122 }
3120 if (message != null) { 3123 if (message != null) {
3121 _json["message"] = message; 3124 _json["message"] = message;
3122 } 3125 }
3123 return _json; 3126 return _json;
3124 } 3127 }
3125 } 3128 }
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