| OLD | NEW |
| 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 Loading... |
| 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. | |
| 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 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 = '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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 * |
| 736 * [pageSize] - Optional. The number of versions to retrieve per "page" of | 741 * [pageSize] - Optional. The number of versions to retrieve per "page" of |
| 737 * results. If | 742 * results. If |
| 738 * there are more remaining results than this number, the response message | 743 * there are more remaining results than this number, the response message |
| 739 * will contain a valid value in the `next_page_token` field. | 744 * will contain a valid value in the `next_page_token` field. |
| 740 * | 745 * |
| 741 * 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. |
| 742 * | 747 * |
| 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.int pageSize, core.String pageToken}) { | 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) { |
| 768 _queryParams["pageToken"] = [pageToken]; |
| 769 } |
| 767 if (pageSize != null) { | 770 if (pageSize != null) { |
| 768 _queryParams["pageSize"] = ["${pageSize}"]; | 771 _queryParams["pageSize"] = ["${pageSize}"]; |
| 769 } | 772 } |
| 770 if (pageToken != null) { | |
| 771 _queryParams["pageToken"] = [pageToken]; | |
| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 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`. To |
| 992 * override the binding, API services can add a binding such as |
| 993 * `"/v1/{name=users / * }/operations"` to their service configuration. |
| 994 * For backwards compatibility, the default name includes the operations |
| 995 * collection id, however overriding users must ensure the name binding |
| 996 * is the parent resource, without the operations collection id. |
| 992 * | 997 * |
| 993 * Request parameters: | 998 * Request parameters: |
| 994 * | 999 * |
| 995 * [name] - The name of the operation collection. | 1000 * [name] - The name of the operation's parent resource. |
| 996 * Value must have pattern "^projects/[^/]+$". | 1001 * Value must have pattern "^projects/[^/]+$". |
| 997 * | 1002 * |
| 998 * [pageSize] - The standard list page size. | |
| 999 * | |
| 1000 * [filter] - The standard list filter. | 1003 * [filter] - The standard list filter. |
| 1001 * | 1004 * |
| 1002 * [pageToken] - The standard list page token. | 1005 * [pageToken] - The standard list page token. |
| 1003 * | 1006 * |
| 1007 * [pageSize] - The standard list page size. |
| 1008 * |
| 1004 * Completes with a [GoogleLongrunningListOperationsResponse]. | 1009 * Completes with a [GoogleLongrunningListOperationsResponse]. |
| 1005 * | 1010 * |
| 1006 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1011 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1007 * error. | 1012 * error. |
| 1008 * | 1013 * |
| 1009 * If the used [http.Client] completes with an error when making a REST call, | 1014 * If the used [http.Client] completes with an error when making a REST call, |
| 1010 * this method will complete with the same error. | 1015 * this method will complete with the same error. |
| 1011 */ | 1016 */ |
| 1012 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, {
core.int pageSize, core.String filter, core.String pageToken}) { | 1017 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, {
core.String filter, core.String pageToken, core.int pageSize}) { |
| 1013 var _url = null; | 1018 var _url = null; |
| 1014 var _queryParams = new core.Map(); | 1019 var _queryParams = new core.Map(); |
| 1015 var _uploadMedia = null; | 1020 var _uploadMedia = null; |
| 1016 var _uploadOptions = null; | 1021 var _uploadOptions = null; |
| 1017 var _downloadOptions = commons.DownloadOptions.Metadata; | 1022 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1018 var _body = null; | 1023 var _body = null; |
| 1019 | 1024 |
| 1020 if (name == null) { | 1025 if (name == null) { |
| 1021 throw new core.ArgumentError("Parameter name is required."); | 1026 throw new core.ArgumentError("Parameter name is required."); |
| 1022 } | 1027 } |
| 1023 if (pageSize != null) { | |
| 1024 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1025 } | |
| 1026 if (filter != null) { | 1028 if (filter != null) { |
| 1027 _queryParams["filter"] = [filter]; | 1029 _queryParams["filter"] = [filter]; |
| 1028 } | 1030 } |
| 1029 if (pageToken != null) { | 1031 if (pageToken != null) { |
| 1030 _queryParams["pageToken"] = [pageToken]; | 1032 _queryParams["pageToken"] = [pageToken]; |
| 1031 } | 1033 } |
| 1034 if (pageSize != null) { |
| 1035 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1036 } |
| 1032 | 1037 |
| 1033 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/operations
'; | 1038 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/operations
'; |
| 1034 | 1039 |
| 1035 var _response = _requester.request(_url, | 1040 var _response = _requester.request(_url, |
| 1036 "GET", | 1041 "GET", |
| 1037 body: _body, | 1042 body: _body, |
| 1038 queryParams: _queryParams, | 1043 queryParams: _queryParams, |
| 1039 uploadOptions: _uploadOptions, | 1044 uploadOptions: _uploadOptions, |
| 1040 uploadMedia: _uploadMedia, | 1045 uploadMedia: _uploadMedia, |
| 1041 downloadOptions: _downloadOptions); | 1046 downloadOptions: _downloadOptions); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 core.String contentType; | 1098 core.String contentType; |
| 1094 /** HTTP body binary data. */ | 1099 /** HTTP body binary data. */ |
| 1095 core.String data; | 1100 core.String data; |
| 1096 core.List<core.int> get dataAsBytes { | 1101 core.List<core.int> get dataAsBytes { |
| 1097 return convert.BASE64.decode(data); | 1102 return convert.BASE64.decode(data); |
| 1098 } | 1103 } |
| 1099 | 1104 |
| 1100 void set dataAsBytes(core.List<core.int> _bytes) { | 1105 void set dataAsBytes(core.List<core.int> _bytes) { |
| 1101 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); | 1106 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); |
| 1102 } | 1107 } |
| 1108 /** |
| 1109 * Application specific response metadata. Must be set in the first response |
| 1110 * for streaming APIs. |
| 1111 * |
| 1112 * The values for Object must be JSON objects. It can consist of `num`, |
| 1113 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 1114 */ |
| 1115 core.List<core.Map<core.String, core.Object>> extensions; |
| 1103 | 1116 |
| 1104 GoogleApiHttpBody(); | 1117 GoogleApiHttpBody(); |
| 1105 | 1118 |
| 1106 GoogleApiHttpBody.fromJson(core.Map _json) { | 1119 GoogleApiHttpBody.fromJson(core.Map _json) { |
| 1107 if (_json.containsKey("contentType")) { | 1120 if (_json.containsKey("contentType")) { |
| 1108 contentType = _json["contentType"]; | 1121 contentType = _json["contentType"]; |
| 1109 } | 1122 } |
| 1110 if (_json.containsKey("data")) { | 1123 if (_json.containsKey("data")) { |
| 1111 data = _json["data"]; | 1124 data = _json["data"]; |
| 1112 } | 1125 } |
| 1126 if (_json.containsKey("extensions")) { |
| 1127 extensions = _json["extensions"]; |
| 1128 } |
| 1113 } | 1129 } |
| 1114 | 1130 |
| 1115 core.Map toJson() { | 1131 core.Map<core.String, core.Object> toJson() { |
| 1116 var _json = new core.Map(); | 1132 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1117 if (contentType != null) { | 1133 if (contentType != null) { |
| 1118 _json["contentType"] = contentType; | 1134 _json["contentType"] = contentType; |
| 1119 } | 1135 } |
| 1120 if (data != null) { | 1136 if (data != null) { |
| 1121 _json["data"] = data; | 1137 _json["data"] = data; |
| 1122 } | 1138 } |
| 1139 if (extensions != null) { |
| 1140 _json["extensions"] = extensions; |
| 1141 } |
| 1123 return _json; | 1142 return _json; |
| 1124 } | 1143 } |
| 1125 } | 1144 } |
| 1126 | 1145 |
| 1127 /** An observed value of a metric. */ | 1146 /** An observed value of a metric. */ |
| 1128 class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric { | 1147 class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric { |
| 1129 /** The objective value at this training step. */ | 1148 /** The objective value at this training step. */ |
| 1130 core.double objectiveValue; | 1149 core.double objectiveValue; |
| 1131 /** The global training step for this metric. */ | 1150 /** The global training step for this metric. */ |
| 1132 core.String trainingStep; | 1151 core.String trainingStep; |
| 1133 | 1152 |
| 1134 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric(); | 1153 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric(); |
| 1135 | 1154 |
| 1136 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.fromJson(core.Map _jso
n) { | 1155 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.fromJson(core.Map _jso
n) { |
| 1137 if (_json.containsKey("objectiveValue")) { | 1156 if (_json.containsKey("objectiveValue")) { |
| 1138 objectiveValue = _json["objectiveValue"]; | 1157 objectiveValue = _json["objectiveValue"]; |
| 1139 } | 1158 } |
| 1140 if (_json.containsKey("trainingStep")) { | 1159 if (_json.containsKey("trainingStep")) { |
| 1141 trainingStep = _json["trainingStep"]; | 1160 trainingStep = _json["trainingStep"]; |
| 1142 } | 1161 } |
| 1143 } | 1162 } |
| 1144 | 1163 |
| 1145 core.Map toJson() { | 1164 core.Map<core.String, core.Object> toJson() { |
| 1146 var _json = new core.Map(); | 1165 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1147 if (objectiveValue != null) { | 1166 if (objectiveValue != null) { |
| 1148 _json["objectiveValue"] = objectiveValue; | 1167 _json["objectiveValue"] = objectiveValue; |
| 1149 } | 1168 } |
| 1150 if (trainingStep != null) { | 1169 if (trainingStep != null) { |
| 1151 _json["trainingStep"] = trainingStep; | 1170 _json["trainingStep"] = trainingStep; |
| 1152 } | 1171 } |
| 1153 return _json; | 1172 return _json; |
| 1154 } | 1173 } |
| 1155 } | 1174 } |
| 1156 | 1175 |
| 1176 /** Options for automatically scaling a model. */ |
| 1177 class GoogleCloudMlV1AutomaticScaling { |
| 1178 /** |
| 1179 * Optional. The minimum number of nodes to allocate for this model. These |
| 1180 * nodes are always up, starting from the time the model is deployed, so the |
| 1181 * cost of operating this model will be at least |
| 1182 * `rate` * `min_nodes` * number of hours since last billing cycle, |
| 1183 * where `rate` is the cost per node-hour as documented in |
| 1184 * [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), |
| 1185 * even if no predictions are performed. There is additional cost for each |
| 1186 * prediction performed. |
| 1187 * |
| 1188 * Unlike manual scaling, if the load gets too heavy for the nodes |
| 1189 * that are up, the service will automatically add nodes to handle the |
| 1190 * increased load as well as scale back as traffic drops, always maintaining |
| 1191 * at least `min_nodes`. You will be charged for the time in which additional |
| 1192 * nodes are used. |
| 1193 * |
| 1194 * If not specified, `min_nodes` defaults to 0, in which case, when traffic |
| 1195 * to a model stops (and after a cool-down period), nodes will be shut down |
| 1196 * and no charges will be incurred until traffic to the model resumes. |
| 1197 */ |
| 1198 core.int minNodes; |
| 1199 |
| 1200 GoogleCloudMlV1AutomaticScaling(); |
| 1201 |
| 1202 GoogleCloudMlV1AutomaticScaling.fromJson(core.Map _json) { |
| 1203 if (_json.containsKey("minNodes")) { |
| 1204 minNodes = _json["minNodes"]; |
| 1205 } |
| 1206 } |
| 1207 |
| 1208 core.Map<core.String, core.Object> toJson() { |
| 1209 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1210 if (minNodes != null) { |
| 1211 _json["minNodes"] = minNodes; |
| 1212 } |
| 1213 return _json; |
| 1214 } |
| 1215 } |
| 1216 |
| 1157 /** Request message for the CancelJob method. */ | 1217 /** Request message for the CancelJob method. */ |
| 1158 class GoogleCloudMlV1CancelJobRequest { | 1218 class GoogleCloudMlV1CancelJobRequest { |
| 1159 | 1219 |
| 1160 GoogleCloudMlV1CancelJobRequest(); | 1220 GoogleCloudMlV1CancelJobRequest(); |
| 1161 | 1221 |
| 1162 GoogleCloudMlV1CancelJobRequest.fromJson(core.Map _json) { | 1222 GoogleCloudMlV1CancelJobRequest.fromJson(core.Map _json) { |
| 1163 } | 1223 } |
| 1164 | 1224 |
| 1165 core.Map toJson() { | 1225 core.Map<core.String, core.Object> toJson() { |
| 1166 var _json = new core.Map(); | 1226 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1167 return _json; | 1227 return _json; |
| 1168 } | 1228 } |
| 1169 } | 1229 } |
| 1170 | 1230 |
| 1171 /** Returns service account information associated with a project. */ | 1231 /** Returns service account information associated with a project. */ |
| 1172 class GoogleCloudMlV1GetConfigResponse { | 1232 class GoogleCloudMlV1GetConfigResponse { |
| 1173 /** The service account Cloud ML uses to access resources in the project. */ | 1233 /** The service account Cloud ML uses to access resources in the project. */ |
| 1174 core.String serviceAccount; | 1234 core.String serviceAccount; |
| 1175 /** The project number for `service_account`. */ | 1235 /** The project number for `service_account`. */ |
| 1176 core.String serviceAccountProject; | 1236 core.String serviceAccountProject; |
| 1177 | 1237 |
| 1178 GoogleCloudMlV1GetConfigResponse(); | 1238 GoogleCloudMlV1GetConfigResponse(); |
| 1179 | 1239 |
| 1180 GoogleCloudMlV1GetConfigResponse.fromJson(core.Map _json) { | 1240 GoogleCloudMlV1GetConfigResponse.fromJson(core.Map _json) { |
| 1181 if (_json.containsKey("serviceAccount")) { | 1241 if (_json.containsKey("serviceAccount")) { |
| 1182 serviceAccount = _json["serviceAccount"]; | 1242 serviceAccount = _json["serviceAccount"]; |
| 1183 } | 1243 } |
| 1184 if (_json.containsKey("serviceAccountProject")) { | 1244 if (_json.containsKey("serviceAccountProject")) { |
| 1185 serviceAccountProject = _json["serviceAccountProject"]; | 1245 serviceAccountProject = _json["serviceAccountProject"]; |
| 1186 } | 1246 } |
| 1187 } | 1247 } |
| 1188 | 1248 |
| 1189 core.Map toJson() { | 1249 core.Map<core.String, core.Object> toJson() { |
| 1190 var _json = new core.Map(); | 1250 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1191 if (serviceAccount != null) { | 1251 if (serviceAccount != null) { |
| 1192 _json["serviceAccount"] = serviceAccount; | 1252 _json["serviceAccount"] = serviceAccount; |
| 1193 } | 1253 } |
| 1194 if (serviceAccountProject != null) { | 1254 if (serviceAccountProject != null) { |
| 1195 _json["serviceAccountProject"] = serviceAccountProject; | 1255 _json["serviceAccountProject"] = serviceAccountProject; |
| 1196 } | 1256 } |
| 1197 return _json; | 1257 return _json; |
| 1198 } | 1258 } |
| 1199 } | 1259 } |
| 1200 | 1260 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1224 finalMetric = new GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.
fromJson(_json["finalMetric"]); | 1284 finalMetric = new GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.
fromJson(_json["finalMetric"]); |
| 1225 } | 1285 } |
| 1226 if (_json.containsKey("hyperparameters")) { | 1286 if (_json.containsKey("hyperparameters")) { |
| 1227 hyperparameters = _json["hyperparameters"]; | 1287 hyperparameters = _json["hyperparameters"]; |
| 1228 } | 1288 } |
| 1229 if (_json.containsKey("trialId")) { | 1289 if (_json.containsKey("trialId")) { |
| 1230 trialId = _json["trialId"]; | 1290 trialId = _json["trialId"]; |
| 1231 } | 1291 } |
| 1232 } | 1292 } |
| 1233 | 1293 |
| 1234 core.Map toJson() { | 1294 core.Map<core.String, core.Object> toJson() { |
| 1235 var _json = new core.Map(); | 1295 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1236 if (allMetrics != null) { | 1296 if (allMetrics != null) { |
| 1237 _json["allMetrics"] = allMetrics.map((value) => (value).toJson()).toList()
; | 1297 _json["allMetrics"] = allMetrics.map((value) => (value).toJson()).toList()
; |
| 1238 } | 1298 } |
| 1239 if (finalMetric != null) { | 1299 if (finalMetric != null) { |
| 1240 _json["finalMetric"] = (finalMetric).toJson(); | 1300 _json["finalMetric"] = (finalMetric).toJson(); |
| 1241 } | 1301 } |
| 1242 if (hyperparameters != null) { | 1302 if (hyperparameters != null) { |
| 1243 _json["hyperparameters"] = hyperparameters; | 1303 _json["hyperparameters"] = hyperparameters; |
| 1244 } | 1304 } |
| 1245 if (trialId != null) { | 1305 if (trialId != null) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1306 maxParallelTrials = _json["maxParallelTrials"]; | 1366 maxParallelTrials = _json["maxParallelTrials"]; |
| 1307 } | 1367 } |
| 1308 if (_json.containsKey("maxTrials")) { | 1368 if (_json.containsKey("maxTrials")) { |
| 1309 maxTrials = _json["maxTrials"]; | 1369 maxTrials = _json["maxTrials"]; |
| 1310 } | 1370 } |
| 1311 if (_json.containsKey("params")) { | 1371 if (_json.containsKey("params")) { |
| 1312 params = _json["params"].map((value) => new GoogleCloudMlV1ParameterSpec.f
romJson(value)).toList(); | 1372 params = _json["params"].map((value) => new GoogleCloudMlV1ParameterSpec.f
romJson(value)).toList(); |
| 1313 } | 1373 } |
| 1314 } | 1374 } |
| 1315 | 1375 |
| 1316 core.Map toJson() { | 1376 core.Map<core.String, core.Object> toJson() { |
| 1317 var _json = new core.Map(); | 1377 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1318 if (goal != null) { | 1378 if (goal != null) { |
| 1319 _json["goal"] = goal; | 1379 _json["goal"] = goal; |
| 1320 } | 1380 } |
| 1321 if (hyperparameterMetricTag != null) { | 1381 if (hyperparameterMetricTag != null) { |
| 1322 _json["hyperparameterMetricTag"] = hyperparameterMetricTag; | 1382 _json["hyperparameterMetricTag"] = hyperparameterMetricTag; |
| 1323 } | 1383 } |
| 1324 if (maxParallelTrials != null) { | 1384 if (maxParallelTrials != null) { |
| 1325 _json["maxParallelTrials"] = maxParallelTrials; | 1385 _json["maxParallelTrials"] = maxParallelTrials; |
| 1326 } | 1386 } |
| 1327 if (maxTrials != null) { | 1387 if (maxTrials != null) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1400 state = _json["state"]; | 1460 state = _json["state"]; |
| 1401 } | 1461 } |
| 1402 if (_json.containsKey("trainingInput")) { | 1462 if (_json.containsKey("trainingInput")) { |
| 1403 trainingInput = new GoogleCloudMlV1TrainingInput.fromJson(_json["trainingI
nput"]); | 1463 trainingInput = new GoogleCloudMlV1TrainingInput.fromJson(_json["trainingI
nput"]); |
| 1404 } | 1464 } |
| 1405 if (_json.containsKey("trainingOutput")) { | 1465 if (_json.containsKey("trainingOutput")) { |
| 1406 trainingOutput = new GoogleCloudMlV1TrainingOutput.fromJson(_json["trainin
gOutput"]); | 1466 trainingOutput = new GoogleCloudMlV1TrainingOutput.fromJson(_json["trainin
gOutput"]); |
| 1407 } | 1467 } |
| 1408 } | 1468 } |
| 1409 | 1469 |
| 1410 core.Map toJson() { | 1470 core.Map<core.String, core.Object> toJson() { |
| 1411 var _json = new core.Map(); | 1471 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1412 if (createTime != null) { | 1472 if (createTime != null) { |
| 1413 _json["createTime"] = createTime; | 1473 _json["createTime"] = createTime; |
| 1414 } | 1474 } |
| 1415 if (endTime != null) { | 1475 if (endTime != null) { |
| 1416 _json["endTime"] = endTime; | 1476 _json["endTime"] = endTime; |
| 1417 } | 1477 } |
| 1418 if (errorMessage != null) { | 1478 if (errorMessage != null) { |
| 1419 _json["errorMessage"] = errorMessage; | 1479 _json["errorMessage"] = errorMessage; |
| 1420 } | 1480 } |
| 1421 if (jobId != null) { | 1481 if (jobId != null) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 | 1517 |
| 1458 GoogleCloudMlV1ListJobsResponse.fromJson(core.Map _json) { | 1518 GoogleCloudMlV1ListJobsResponse.fromJson(core.Map _json) { |
| 1459 if (_json.containsKey("jobs")) { | 1519 if (_json.containsKey("jobs")) { |
| 1460 jobs = _json["jobs"].map((value) => new GoogleCloudMlV1Job.fromJson(value)
).toList(); | 1520 jobs = _json["jobs"].map((value) => new GoogleCloudMlV1Job.fromJson(value)
).toList(); |
| 1461 } | 1521 } |
| 1462 if (_json.containsKey("nextPageToken")) { | 1522 if (_json.containsKey("nextPageToken")) { |
| 1463 nextPageToken = _json["nextPageToken"]; | 1523 nextPageToken = _json["nextPageToken"]; |
| 1464 } | 1524 } |
| 1465 } | 1525 } |
| 1466 | 1526 |
| 1467 core.Map toJson() { | 1527 core.Map<core.String, core.Object> toJson() { |
| 1468 var _json = new core.Map(); | 1528 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1469 if (jobs != null) { | 1529 if (jobs != null) { |
| 1470 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); | 1530 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); |
| 1471 } | 1531 } |
| 1472 if (nextPageToken != null) { | 1532 if (nextPageToken != null) { |
| 1473 _json["nextPageToken"] = nextPageToken; | 1533 _json["nextPageToken"] = nextPageToken; |
| 1474 } | 1534 } |
| 1475 return _json; | 1535 return _json; |
| 1476 } | 1536 } |
| 1477 } | 1537 } |
| 1478 | 1538 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1490 | 1550 |
| 1491 GoogleCloudMlV1ListModelsResponse.fromJson(core.Map _json) { | 1551 GoogleCloudMlV1ListModelsResponse.fromJson(core.Map _json) { |
| 1492 if (_json.containsKey("models")) { | 1552 if (_json.containsKey("models")) { |
| 1493 models = _json["models"].map((value) => new GoogleCloudMlV1Model.fromJson(
value)).toList(); | 1553 models = _json["models"].map((value) => new GoogleCloudMlV1Model.fromJson(
value)).toList(); |
| 1494 } | 1554 } |
| 1495 if (_json.containsKey("nextPageToken")) { | 1555 if (_json.containsKey("nextPageToken")) { |
| 1496 nextPageToken = _json["nextPageToken"]; | 1556 nextPageToken = _json["nextPageToken"]; |
| 1497 } | 1557 } |
| 1498 } | 1558 } |
| 1499 | 1559 |
| 1500 core.Map toJson() { | 1560 core.Map<core.String, core.Object> toJson() { |
| 1501 var _json = new core.Map(); | 1561 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1502 if (models != null) { | 1562 if (models != null) { |
| 1503 _json["models"] = models.map((value) => (value).toJson()).toList(); | 1563 _json["models"] = models.map((value) => (value).toJson()).toList(); |
| 1504 } | 1564 } |
| 1505 if (nextPageToken != null) { | 1565 if (nextPageToken != null) { |
| 1506 _json["nextPageToken"] = nextPageToken; | 1566 _json["nextPageToken"] = nextPageToken; |
| 1507 } | 1567 } |
| 1508 return _json; | 1568 return _json; |
| 1509 } | 1569 } |
| 1510 } | 1570 } |
| 1511 | 1571 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1523 | 1583 |
| 1524 GoogleCloudMlV1ListVersionsResponse.fromJson(core.Map _json) { | 1584 GoogleCloudMlV1ListVersionsResponse.fromJson(core.Map _json) { |
| 1525 if (_json.containsKey("nextPageToken")) { | 1585 if (_json.containsKey("nextPageToken")) { |
| 1526 nextPageToken = _json["nextPageToken"]; | 1586 nextPageToken = _json["nextPageToken"]; |
| 1527 } | 1587 } |
| 1528 if (_json.containsKey("versions")) { | 1588 if (_json.containsKey("versions")) { |
| 1529 versions = _json["versions"].map((value) => new GoogleCloudMlV1Version.fro
mJson(value)).toList(); | 1589 versions = _json["versions"].map((value) => new GoogleCloudMlV1Version.fro
mJson(value)).toList(); |
| 1530 } | 1590 } |
| 1531 } | 1591 } |
| 1532 | 1592 |
| 1533 core.Map toJson() { | 1593 core.Map<core.String, core.Object> toJson() { |
| 1534 var _json = new core.Map(); | 1594 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1535 if (nextPageToken != null) { | 1595 if (nextPageToken != null) { |
| 1536 _json["nextPageToken"] = nextPageToken; | 1596 _json["nextPageToken"] = nextPageToken; |
| 1537 } | 1597 } |
| 1538 if (versions != null) { | 1598 if (versions != null) { |
| 1539 _json["versions"] = versions.map((value) => (value).toJson()).toList(); | 1599 _json["versions"] = versions.map((value) => (value).toJson()).toList(); |
| 1540 } | 1600 } |
| 1541 return _json; | 1601 return _json; |
| 1542 } | 1602 } |
| 1543 } | 1603 } |
| 1544 | 1604 |
| 1545 /** Options for manually scaling a model. */ | 1605 /** Options for manually scaling a model. */ |
| 1546 class GoogleCloudMlV1ManualScaling { | 1606 class GoogleCloudMlV1ManualScaling { |
| 1547 /** | 1607 /** |
| 1548 * The number of nodes to allocate for this model. These nodes are always up, | 1608 * The number of nodes to allocate for this model. These nodes are always up, |
| 1549 * starting from the time the model is deployed, so the cost of operating | 1609 * starting from the time the model is deployed, so the cost of operating |
| 1550 * this model will be proportional to nodes * number of hours since | 1610 * this model will be proportional to `nodes` * number of hours since |
| 1551 * deployment. | 1611 * last billing cycle plus the cost for each prediction performed. |
| 1552 */ | 1612 */ |
| 1553 core.int nodes; | 1613 core.int nodes; |
| 1554 | 1614 |
| 1555 GoogleCloudMlV1ManualScaling(); | 1615 GoogleCloudMlV1ManualScaling(); |
| 1556 | 1616 |
| 1557 GoogleCloudMlV1ManualScaling.fromJson(core.Map _json) { | 1617 GoogleCloudMlV1ManualScaling.fromJson(core.Map _json) { |
| 1558 if (_json.containsKey("nodes")) { | 1618 if (_json.containsKey("nodes")) { |
| 1559 nodes = _json["nodes"]; | 1619 nodes = _json["nodes"]; |
| 1560 } | 1620 } |
| 1561 } | 1621 } |
| 1562 | 1622 |
| 1563 core.Map toJson() { | 1623 core.Map<core.String, core.Object> toJson() { |
| 1564 var _json = new core.Map(); | 1624 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1565 if (nodes != null) { | 1625 if (nodes != null) { |
| 1566 _json["nodes"] = nodes; | 1626 _json["nodes"] = nodes; |
| 1567 } | 1627 } |
| 1568 return _json; | 1628 return _json; |
| 1569 } | 1629 } |
| 1570 } | 1630 } |
| 1571 | 1631 |
| 1572 /** | 1632 /** |
| 1573 * Represents a machine learning solution. | 1633 * Represents a machine learning solution. |
| 1574 * | 1634 * |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 name = _json["name"]; | 1684 name = _json["name"]; |
| 1625 } | 1685 } |
| 1626 if (_json.containsKey("onlinePredictionLogging")) { | 1686 if (_json.containsKey("onlinePredictionLogging")) { |
| 1627 onlinePredictionLogging = _json["onlinePredictionLogging"]; | 1687 onlinePredictionLogging = _json["onlinePredictionLogging"]; |
| 1628 } | 1688 } |
| 1629 if (_json.containsKey("regions")) { | 1689 if (_json.containsKey("regions")) { |
| 1630 regions = _json["regions"]; | 1690 regions = _json["regions"]; |
| 1631 } | 1691 } |
| 1632 } | 1692 } |
| 1633 | 1693 |
| 1634 core.Map toJson() { | 1694 core.Map<core.String, core.Object> toJson() { |
| 1635 var _json = new core.Map(); | 1695 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1636 if (defaultVersion != null) { | 1696 if (defaultVersion != null) { |
| 1637 _json["defaultVersion"] = (defaultVersion).toJson(); | 1697 _json["defaultVersion"] = (defaultVersion).toJson(); |
| 1638 } | 1698 } |
| 1639 if (description != null) { | 1699 if (description != null) { |
| 1640 _json["description"] = description; | 1700 _json["description"] = description; |
| 1641 } | 1701 } |
| 1642 if (name != null) { | 1702 if (name != null) { |
| 1643 _json["name"] = name; | 1703 _json["name"] = name; |
| 1644 } | 1704 } |
| 1645 if (onlinePredictionLogging != null) { | 1705 if (onlinePredictionLogging != null) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1695 operationType = _json["operationType"]; | 1755 operationType = _json["operationType"]; |
| 1696 } | 1756 } |
| 1697 if (_json.containsKey("startTime")) { | 1757 if (_json.containsKey("startTime")) { |
| 1698 startTime = _json["startTime"]; | 1758 startTime = _json["startTime"]; |
| 1699 } | 1759 } |
| 1700 if (_json.containsKey("version")) { | 1760 if (_json.containsKey("version")) { |
| 1701 version = new GoogleCloudMlV1Version.fromJson(_json["version"]); | 1761 version = new GoogleCloudMlV1Version.fromJson(_json["version"]); |
| 1702 } | 1762 } |
| 1703 } | 1763 } |
| 1704 | 1764 |
| 1705 core.Map toJson() { | 1765 core.Map<core.String, core.Object> toJson() { |
| 1706 var _json = new core.Map(); | 1766 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1707 if (createTime != null) { | 1767 if (createTime != null) { |
| 1708 _json["createTime"] = createTime; | 1768 _json["createTime"] = createTime; |
| 1709 } | 1769 } |
| 1710 if (endTime != null) { | 1770 if (endTime != null) { |
| 1711 _json["endTime"] = endTime; | 1771 _json["endTime"] = endTime; |
| 1712 } | 1772 } |
| 1713 if (isCancellationRequested != null) { | 1773 if (isCancellationRequested != null) { |
| 1714 _json["isCancellationRequested"] = isCancellationRequested; | 1774 _json["isCancellationRequested"] = isCancellationRequested; |
| 1715 } | 1775 } |
| 1716 if (modelName != null) { | 1776 if (modelName != null) { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1813 parameterName = _json["parameterName"]; | 1873 parameterName = _json["parameterName"]; |
| 1814 } | 1874 } |
| 1815 if (_json.containsKey("scaleType")) { | 1875 if (_json.containsKey("scaleType")) { |
| 1816 scaleType = _json["scaleType"]; | 1876 scaleType = _json["scaleType"]; |
| 1817 } | 1877 } |
| 1818 if (_json.containsKey("type")) { | 1878 if (_json.containsKey("type")) { |
| 1819 type = _json["type"]; | 1879 type = _json["type"]; |
| 1820 } | 1880 } |
| 1821 } | 1881 } |
| 1822 | 1882 |
| 1823 core.Map toJson() { | 1883 core.Map<core.String, core.Object> toJson() { |
| 1824 var _json = new core.Map(); | 1884 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1825 if (categoricalValues != null) { | 1885 if (categoricalValues != null) { |
| 1826 _json["categoricalValues"] = categoricalValues; | 1886 _json["categoricalValues"] = categoricalValues; |
| 1827 } | 1887 } |
| 1828 if (discreteValues != null) { | 1888 if (discreteValues != null) { |
| 1829 _json["discreteValues"] = discreteValues; | 1889 _json["discreteValues"] = discreteValues; |
| 1830 } | 1890 } |
| 1831 if (maxValue != null) { | 1891 if (maxValue != null) { |
| 1832 _json["maxValue"] = maxValue; | 1892 _json["maxValue"] = maxValue; |
| 1833 } | 1893 } |
| 1834 if (minValue != null) { | 1894 if (minValue != null) { |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2043 GoogleApiHttpBody httpBody; | 2103 GoogleApiHttpBody httpBody; |
| 2044 | 2104 |
| 2045 GoogleCloudMlV1PredictRequest(); | 2105 GoogleCloudMlV1PredictRequest(); |
| 2046 | 2106 |
| 2047 GoogleCloudMlV1PredictRequest.fromJson(core.Map _json) { | 2107 GoogleCloudMlV1PredictRequest.fromJson(core.Map _json) { |
| 2048 if (_json.containsKey("httpBody")) { | 2108 if (_json.containsKey("httpBody")) { |
| 2049 httpBody = new GoogleApiHttpBody.fromJson(_json["httpBody"]); | 2109 httpBody = new GoogleApiHttpBody.fromJson(_json["httpBody"]); |
| 2050 } | 2110 } |
| 2051 } | 2111 } |
| 2052 | 2112 |
| 2053 core.Map toJson() { | 2113 core.Map<core.String, core.Object> toJson() { |
| 2054 var _json = new core.Map(); | 2114 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2055 if (httpBody != null) { | 2115 if (httpBody != null) { |
| 2056 _json["httpBody"] = (httpBody).toJson(); | 2116 _json["httpBody"] = (httpBody).toJson(); |
| 2057 } | 2117 } |
| 2058 return _json; | 2118 return _json; |
| 2059 } | 2119 } |
| 2060 } | 2120 } |
| 2061 | 2121 |
| 2062 /** Represents input parameters for a prediction job. */ | 2122 /** Represents input parameters for a prediction job. */ |
| 2063 class GoogleCloudMlV1PredictionInput { | 2123 class GoogleCloudMlV1PredictionInput { |
| 2064 /** | 2124 /** |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2141 runtimeVersion = _json["runtimeVersion"]; | 2201 runtimeVersion = _json["runtimeVersion"]; |
| 2142 } | 2202 } |
| 2143 if (_json.containsKey("uri")) { | 2203 if (_json.containsKey("uri")) { |
| 2144 uri = _json["uri"]; | 2204 uri = _json["uri"]; |
| 2145 } | 2205 } |
| 2146 if (_json.containsKey("versionName")) { | 2206 if (_json.containsKey("versionName")) { |
| 2147 versionName = _json["versionName"]; | 2207 versionName = _json["versionName"]; |
| 2148 } | 2208 } |
| 2149 } | 2209 } |
| 2150 | 2210 |
| 2151 core.Map toJson() { | 2211 core.Map<core.String, core.Object> toJson() { |
| 2152 var _json = new core.Map(); | 2212 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2153 if (dataFormat != null) { | 2213 if (dataFormat != null) { |
| 2154 _json["dataFormat"] = dataFormat; | 2214 _json["dataFormat"] = dataFormat; |
| 2155 } | 2215 } |
| 2156 if (inputPaths != null) { | 2216 if (inputPaths != null) { |
| 2157 _json["inputPaths"] = inputPaths; | 2217 _json["inputPaths"] = inputPaths; |
| 2158 } | 2218 } |
| 2159 if (maxWorkerCount != null) { | 2219 if (maxWorkerCount != null) { |
| 2160 _json["maxWorkerCount"] = maxWorkerCount; | 2220 _json["maxWorkerCount"] = maxWorkerCount; |
| 2161 } | 2221 } |
| 2162 if (modelName != null) { | 2222 if (modelName != null) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2204 nodeHours = _json["nodeHours"]; | 2264 nodeHours = _json["nodeHours"]; |
| 2205 } | 2265 } |
| 2206 if (_json.containsKey("outputPath")) { | 2266 if (_json.containsKey("outputPath")) { |
| 2207 outputPath = _json["outputPath"]; | 2267 outputPath = _json["outputPath"]; |
| 2208 } | 2268 } |
| 2209 if (_json.containsKey("predictionCount")) { | 2269 if (_json.containsKey("predictionCount")) { |
| 2210 predictionCount = _json["predictionCount"]; | 2270 predictionCount = _json["predictionCount"]; |
| 2211 } | 2271 } |
| 2212 } | 2272 } |
| 2213 | 2273 |
| 2214 core.Map toJson() { | 2274 core.Map<core.String, core.Object> toJson() { |
| 2215 var _json = new core.Map(); | 2275 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2216 if (errorCount != null) { | 2276 if (errorCount != null) { |
| 2217 _json["errorCount"] = errorCount; | 2277 _json["errorCount"] = errorCount; |
| 2218 } | 2278 } |
| 2219 if (nodeHours != null) { | 2279 if (nodeHours != null) { |
| 2220 _json["nodeHours"] = nodeHours; | 2280 _json["nodeHours"] = nodeHours; |
| 2221 } | 2281 } |
| 2222 if (outputPath != null) { | 2282 if (outputPath != null) { |
| 2223 _json["outputPath"] = outputPath; | 2283 _json["outputPath"] = outputPath; |
| 2224 } | 2284 } |
| 2225 if (predictionCount != null) { | 2285 if (predictionCount != null) { |
| 2226 _json["predictionCount"] = predictionCount; | 2286 _json["predictionCount"] = predictionCount; |
| 2227 } | 2287 } |
| 2228 return _json; | 2288 return _json; |
| 2229 } | 2289 } |
| 2230 } | 2290 } |
| 2231 | 2291 |
| 2232 /** Request message for the SetDefaultVersion request. */ | 2292 /** Request message for the SetDefaultVersion request. */ |
| 2233 class GoogleCloudMlV1SetDefaultVersionRequest { | 2293 class GoogleCloudMlV1SetDefaultVersionRequest { |
| 2234 | 2294 |
| 2235 GoogleCloudMlV1SetDefaultVersionRequest(); | 2295 GoogleCloudMlV1SetDefaultVersionRequest(); |
| 2236 | 2296 |
| 2237 GoogleCloudMlV1SetDefaultVersionRequest.fromJson(core.Map _json) { | 2297 GoogleCloudMlV1SetDefaultVersionRequest.fromJson(core.Map _json) { |
| 2238 } | 2298 } |
| 2239 | 2299 |
| 2240 core.Map toJson() { | 2300 core.Map<core.String, core.Object> toJson() { |
| 2241 var _json = new core.Map(); | 2301 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2242 return _json; | 2302 return _json; |
| 2243 } | 2303 } |
| 2244 } | 2304 } |
| 2245 | 2305 |
| 2246 /** Represents input parameters for a training job. */ | 2306 /** Represents input parameters for a training job. */ |
| 2247 class GoogleCloudMlV1TrainingInput { | 2307 class GoogleCloudMlV1TrainingInput { |
| 2248 /** Optional. Command line arguments to pass to the program. */ | 2308 /** Optional. Command line arguments to pass to the program. */ |
| 2249 core.List<core.String> args; | 2309 core.List<core.String> args; |
| 2250 /** Optional. The set of Hyperparameters to tune. */ | 2310 /** Optional. The set of Hyperparameters to tune. */ |
| 2251 GoogleCloudMlV1HyperparameterSpec hyperparameters; | 2311 GoogleCloudMlV1HyperparameterSpec hyperparameters; |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2437 scaleTier = _json["scaleTier"]; | 2497 scaleTier = _json["scaleTier"]; |
| 2438 } | 2498 } |
| 2439 if (_json.containsKey("workerCount")) { | 2499 if (_json.containsKey("workerCount")) { |
| 2440 workerCount = _json["workerCount"]; | 2500 workerCount = _json["workerCount"]; |
| 2441 } | 2501 } |
| 2442 if (_json.containsKey("workerType")) { | 2502 if (_json.containsKey("workerType")) { |
| 2443 workerType = _json["workerType"]; | 2503 workerType = _json["workerType"]; |
| 2444 } | 2504 } |
| 2445 } | 2505 } |
| 2446 | 2506 |
| 2447 core.Map toJson() { | 2507 core.Map<core.String, core.Object> toJson() { |
| 2448 var _json = new core.Map(); | 2508 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2449 if (args != null) { | 2509 if (args != null) { |
| 2450 _json["args"] = args; | 2510 _json["args"] = args; |
| 2451 } | 2511 } |
| 2452 if (hyperparameters != null) { | 2512 if (hyperparameters != null) { |
| 2453 _json["hyperparameters"] = (hyperparameters).toJson(); | 2513 _json["hyperparameters"] = (hyperparameters).toJson(); |
| 2454 } | 2514 } |
| 2455 if (jobDir != null) { | 2515 if (jobDir != null) { |
| 2456 _json["jobDir"] = jobDir; | 2516 _json["jobDir"] = jobDir; |
| 2457 } | 2517 } |
| 2458 if (masterType != null) { | 2518 if (masterType != null) { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2516 consumedMLUnits = _json["consumedMLUnits"]; | 2576 consumedMLUnits = _json["consumedMLUnits"]; |
| 2517 } | 2577 } |
| 2518 if (_json.containsKey("isHyperparameterTuningJob")) { | 2578 if (_json.containsKey("isHyperparameterTuningJob")) { |
| 2519 isHyperparameterTuningJob = _json["isHyperparameterTuningJob"]; | 2579 isHyperparameterTuningJob = _json["isHyperparameterTuningJob"]; |
| 2520 } | 2580 } |
| 2521 if (_json.containsKey("trials")) { | 2581 if (_json.containsKey("trials")) { |
| 2522 trials = _json["trials"].map((value) => new GoogleCloudMlV1HyperparameterO
utput.fromJson(value)).toList(); | 2582 trials = _json["trials"].map((value) => new GoogleCloudMlV1HyperparameterO
utput.fromJson(value)).toList(); |
| 2523 } | 2583 } |
| 2524 } | 2584 } |
| 2525 | 2585 |
| 2526 core.Map toJson() { | 2586 core.Map<core.String, core.Object> toJson() { |
| 2527 var _json = new core.Map(); | 2587 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2528 if (completedTrialCount != null) { | 2588 if (completedTrialCount != null) { |
| 2529 _json["completedTrialCount"] = completedTrialCount; | 2589 _json["completedTrialCount"] = completedTrialCount; |
| 2530 } | 2590 } |
| 2531 if (consumedMLUnits != null) { | 2591 if (consumedMLUnits != null) { |
| 2532 _json["consumedMLUnits"] = consumedMLUnits; | 2592 _json["consumedMLUnits"] = consumedMLUnits; |
| 2533 } | 2593 } |
| 2534 if (isHyperparameterTuningJob != null) { | 2594 if (isHyperparameterTuningJob != null) { |
| 2535 _json["isHyperparameterTuningJob"] = isHyperparameterTuningJob; | 2595 _json["isHyperparameterTuningJob"] = isHyperparameterTuningJob; |
| 2536 } | 2596 } |
| 2537 if (trials != null) { | 2597 if (trials != null) { |
| 2538 _json["trials"] = trials.map((value) => (value).toJson()).toList(); | 2598 _json["trials"] = trials.map((value) => (value).toJson()).toList(); |
| 2539 } | 2599 } |
| 2540 return _json; | 2600 return _json; |
| 2541 } | 2601 } |
| 2542 } | 2602 } |
| 2543 | 2603 |
| 2544 /** | 2604 /** |
| 2545 * Represents a version of the model. | 2605 * Represents a version of the model. |
| 2546 * | 2606 * |
| 2547 * Each version is a trained model deployed in the cloud, ready to handle | 2607 * Each version is a trained model deployed in the cloud, ready to handle |
| 2548 * prediction requests. A model can have multiple versions. You can get | 2608 * prediction requests. A model can have multiple versions. You can get |
| 2549 * information about all of the versions of a given model by calling | 2609 * information about all of the versions of a given model by calling |
| 2550 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
versions/list). | 2610 * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
versions/list). |
| 2551 */ | 2611 */ |
| 2552 class GoogleCloudMlV1Version { | 2612 class GoogleCloudMlV1Version { |
| 2613 /** |
| 2614 * Automatically scale the number of nodes used to serve the model in |
| 2615 * response to increases and decreases in traffic. Care should be |
| 2616 * taken to ramp up traffic according to the model's ability to scale |
| 2617 * or you will start seeing increases in latency and 429 response codes. |
| 2618 */ |
| 2619 GoogleCloudMlV1AutomaticScaling automaticScaling; |
| 2553 /** Output only. The time the version was created. */ | 2620 /** Output only. The time the version was created. */ |
| 2554 core.String createTime; | 2621 core.String createTime; |
| 2555 /** | 2622 /** |
| 2556 * Required. The Google Cloud Storage location of the trained model used to | 2623 * Required. The Google Cloud Storage location of the trained model used to |
| 2557 * create the version. See the | 2624 * create the version. See the |
| 2558 * [overview of model | 2625 * [overview of model |
| 2559 * deployment](/ml-engine/docs/concepts/deployment-overview) for more | 2626 * deployment](/ml-engine/docs/concepts/deployment-overview) for more |
| 2560 * informaiton. | 2627 * informaiton. |
| 2561 * | 2628 * |
| 2562 * When passing Version to | 2629 * When passing Version to |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2575 * Output only. If true, this version will be used to handle prediction | 2642 * Output only. If true, this version will be used to handle prediction |
| 2576 * requests that do not specify a version. | 2643 * requests that do not specify a version. |
| 2577 * | 2644 * |
| 2578 * You can change the default version by calling | 2645 * You can change the default version by calling |
| 2579 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/project
s.models.versions/setDefault). | 2646 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/project
s.models.versions/setDefault). |
| 2580 */ | 2647 */ |
| 2581 core.bool isDefault; | 2648 core.bool isDefault; |
| 2582 /** Output only. The time the version was last used for prediction. */ | 2649 /** Output only. The time the version was last used for prediction. */ |
| 2583 core.String lastUseTime; | 2650 core.String lastUseTime; |
| 2584 /** | 2651 /** |
| 2585 * Optional. Manually select the number of nodes to use for serving the | 2652 * Manually select the number of nodes to use for serving the |
| 2586 * model. If unset (i.e., by default), the number of nodes used to serve | 2653 * model. You should generally use `automatic_scaling` with an appropriate |
| 2587 * the model automatically scales with traffic. However, care should be | 2654 * `min_nodes` instead, but this option is available if you want more |
| 2588 * taken to ramp up traffic according to the model's ability to scale. If | 2655 * predictable billing. Beware that latency and error rates will increase |
| 2589 * your model needs to handle bursts of traffic beyond it's ability to | 2656 * if the traffic exceeds that capability of the system to serve it based |
| 2590 * scale, it is recommended you set this field appropriately. | 2657 * on the selected number of nodes. |
| 2591 */ | 2658 */ |
| 2592 GoogleCloudMlV1ManualScaling manualScaling; | 2659 GoogleCloudMlV1ManualScaling manualScaling; |
| 2593 /** | 2660 /** |
| 2594 * Required.The name specified for the version when it was created. | 2661 * Required.The name specified for the version when it was created. |
| 2595 * | 2662 * |
| 2596 * The version name must be unique within the model it is created in. | 2663 * The version name must be unique within the model it is created in. |
| 2597 */ | 2664 */ |
| 2598 core.String name; | 2665 core.String name; |
| 2599 /** | 2666 /** |
| 2600 * Optional. The Google Cloud ML runtime version to use for this deployment. | 2667 * Optional. The Google Cloud ML runtime version to use for this deployment. |
| 2601 * If not set, Google Cloud ML will choose a version. | 2668 * If not set, Google Cloud ML will choose a version. |
| 2602 */ | 2669 */ |
| 2603 core.String runtimeVersion; | 2670 core.String runtimeVersion; |
| 2604 | 2671 |
| 2605 GoogleCloudMlV1Version(); | 2672 GoogleCloudMlV1Version(); |
| 2606 | 2673 |
| 2607 GoogleCloudMlV1Version.fromJson(core.Map _json) { | 2674 GoogleCloudMlV1Version.fromJson(core.Map _json) { |
| 2675 if (_json.containsKey("automaticScaling")) { |
| 2676 automaticScaling = new GoogleCloudMlV1AutomaticScaling.fromJson(_json["aut
omaticScaling"]); |
| 2677 } |
| 2608 if (_json.containsKey("createTime")) { | 2678 if (_json.containsKey("createTime")) { |
| 2609 createTime = _json["createTime"]; | 2679 createTime = _json["createTime"]; |
| 2610 } | 2680 } |
| 2611 if (_json.containsKey("deploymentUri")) { | 2681 if (_json.containsKey("deploymentUri")) { |
| 2612 deploymentUri = _json["deploymentUri"]; | 2682 deploymentUri = _json["deploymentUri"]; |
| 2613 } | 2683 } |
| 2614 if (_json.containsKey("description")) { | 2684 if (_json.containsKey("description")) { |
| 2615 description = _json["description"]; | 2685 description = _json["description"]; |
| 2616 } | 2686 } |
| 2617 if (_json.containsKey("isDefault")) { | 2687 if (_json.containsKey("isDefault")) { |
| 2618 isDefault = _json["isDefault"]; | 2688 isDefault = _json["isDefault"]; |
| 2619 } | 2689 } |
| 2620 if (_json.containsKey("lastUseTime")) { | 2690 if (_json.containsKey("lastUseTime")) { |
| 2621 lastUseTime = _json["lastUseTime"]; | 2691 lastUseTime = _json["lastUseTime"]; |
| 2622 } | 2692 } |
| 2623 if (_json.containsKey("manualScaling")) { | 2693 if (_json.containsKey("manualScaling")) { |
| 2624 manualScaling = new GoogleCloudMlV1ManualScaling.fromJson(_json["manualSca
ling"]); | 2694 manualScaling = new GoogleCloudMlV1ManualScaling.fromJson(_json["manualSca
ling"]); |
| 2625 } | 2695 } |
| 2626 if (_json.containsKey("name")) { | 2696 if (_json.containsKey("name")) { |
| 2627 name = _json["name"]; | 2697 name = _json["name"]; |
| 2628 } | 2698 } |
| 2629 if (_json.containsKey("runtimeVersion")) { | 2699 if (_json.containsKey("runtimeVersion")) { |
| 2630 runtimeVersion = _json["runtimeVersion"]; | 2700 runtimeVersion = _json["runtimeVersion"]; |
| 2631 } | 2701 } |
| 2632 } | 2702 } |
| 2633 | 2703 |
| 2634 core.Map toJson() { | 2704 core.Map<core.String, core.Object> toJson() { |
| 2635 var _json = new core.Map(); | 2705 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2706 if (automaticScaling != null) { |
| 2707 _json["automaticScaling"] = (automaticScaling).toJson(); |
| 2708 } |
| 2636 if (createTime != null) { | 2709 if (createTime != null) { |
| 2637 _json["createTime"] = createTime; | 2710 _json["createTime"] = createTime; |
| 2638 } | 2711 } |
| 2639 if (deploymentUri != null) { | 2712 if (deploymentUri != null) { |
| 2640 _json["deploymentUri"] = deploymentUri; | 2713 _json["deploymentUri"] = deploymentUri; |
| 2641 } | 2714 } |
| 2642 if (description != null) { | 2715 if (description != null) { |
| 2643 _json["description"] = description; | 2716 _json["description"] = description; |
| 2644 } | 2717 } |
| 2645 if (isDefault != null) { | 2718 if (isDefault != null) { |
| 2646 _json["isDefault"] = isDefault; | 2719 _json["isDefault"] = isDefault; |
| 2647 } | 2720 } |
| 2648 if (lastUseTime != null) { | 2721 if (lastUseTime != null) { |
| 2649 _json["lastUseTime"] = lastUseTime; | 2722 _json["lastUseTime"] = lastUseTime; |
| 2650 } | 2723 } |
| 2651 if (manualScaling != null) { | 2724 if (manualScaling != null) { |
| 2652 _json["manualScaling"] = (manualScaling).toJson(); | 2725 _json["manualScaling"] = (manualScaling).toJson(); |
| 2653 } | 2726 } |
| 2654 if (name != null) { | 2727 if (name != null) { |
| 2655 _json["name"] = name; | 2728 _json["name"] = name; |
| 2656 } | 2729 } |
| 2657 if (runtimeVersion != null) { | 2730 if (runtimeVersion != null) { |
| 2658 _json["runtimeVersion"] = runtimeVersion; | 2731 _json["runtimeVersion"] = runtimeVersion; |
| 2659 } | 2732 } |
| 2660 return _json; | 2733 return _json; |
| 2661 } | 2734 } |
| 2662 } | 2735 } |
| 2663 | 2736 |
| 2737 /** Options for automatically scaling a model. */ |
| 2738 class GoogleCloudMlV1beta1AutomaticScaling { |
| 2739 /** |
| 2740 * Optional. The minimum number of nodes to allocate for this model. These |
| 2741 * nodes are always up, starting from the time the model is deployed, so the |
| 2742 * cost of operating this model will be at least |
| 2743 * `rate` * `min_nodes` * number of hours since last billing cycle, |
| 2744 * where `rate` is the cost per node-hour as documented in |
| 2745 * [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), |
| 2746 * even if no predictions are performed. There is additional cost for each |
| 2747 * prediction performed. |
| 2748 * |
| 2749 * Unlike manual scaling, if the load gets too heavy for the nodes |
| 2750 * that are up, the service will automatically add nodes to handle the |
| 2751 * increased load as well as scale back as traffic drops, always maintaining |
| 2752 * at least `min_nodes`. You will be charged for the time in which additional |
| 2753 * nodes are used. |
| 2754 * |
| 2755 * If not specified, `min_nodes` defaults to 0, in which case, when traffic |
| 2756 * to a model stops (and after a cool-down period), nodes will be shut down |
| 2757 * and no charges will be incurred until traffic to the model resumes. |
| 2758 */ |
| 2759 core.int minNodes; |
| 2760 |
| 2761 GoogleCloudMlV1beta1AutomaticScaling(); |
| 2762 |
| 2763 GoogleCloudMlV1beta1AutomaticScaling.fromJson(core.Map _json) { |
| 2764 if (_json.containsKey("minNodes")) { |
| 2765 minNodes = _json["minNodes"]; |
| 2766 } |
| 2767 } |
| 2768 |
| 2769 core.Map<core.String, core.Object> toJson() { |
| 2770 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2771 if (minNodes != null) { |
| 2772 _json["minNodes"] = minNodes; |
| 2773 } |
| 2774 return _json; |
| 2775 } |
| 2776 } |
| 2777 |
| 2664 /** Options for manually scaling a model. */ | 2778 /** Options for manually scaling a model. */ |
| 2665 class GoogleCloudMlV1beta1ManualScaling { | 2779 class GoogleCloudMlV1beta1ManualScaling { |
| 2666 /** | 2780 /** |
| 2667 * The number of nodes to allocate for this model. These nodes are always up, | 2781 * The number of nodes to allocate for this model. These nodes are always up, |
| 2668 * starting from the time the model is deployed, so the cost of operating | 2782 * starting from the time the model is deployed, so the cost of operating |
| 2669 * this model will be proportional to nodes * number of hours since | 2783 * this model will be proportional to `nodes` * number of hours since |
| 2670 * deployment. | 2784 * last billing cycle. |
| 2671 */ | 2785 */ |
| 2672 core.int nodes; | 2786 core.int nodes; |
| 2673 | 2787 |
| 2674 GoogleCloudMlV1beta1ManualScaling(); | 2788 GoogleCloudMlV1beta1ManualScaling(); |
| 2675 | 2789 |
| 2676 GoogleCloudMlV1beta1ManualScaling.fromJson(core.Map _json) { | 2790 GoogleCloudMlV1beta1ManualScaling.fromJson(core.Map _json) { |
| 2677 if (_json.containsKey("nodes")) { | 2791 if (_json.containsKey("nodes")) { |
| 2678 nodes = _json["nodes"]; | 2792 nodes = _json["nodes"]; |
| 2679 } | 2793 } |
| 2680 } | 2794 } |
| 2681 | 2795 |
| 2682 core.Map toJson() { | 2796 core.Map<core.String, core.Object> toJson() { |
| 2683 var _json = new core.Map(); | 2797 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2684 if (nodes != null) { | 2798 if (nodes != null) { |
| 2685 _json["nodes"] = nodes; | 2799 _json["nodes"] = nodes; |
| 2686 } | 2800 } |
| 2687 return _json; | 2801 return _json; |
| 2688 } | 2802 } |
| 2689 } | 2803 } |
| 2690 | 2804 |
| 2691 /** Represents the metadata of the long-running operation. */ | 2805 /** Represents the metadata of the long-running operation. */ |
| 2692 class GoogleCloudMlV1beta1OperationMetadata { | 2806 class GoogleCloudMlV1beta1OperationMetadata { |
| 2693 /** The time the operation was submitted. */ | 2807 /** The time the operation was submitted. */ |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2731 operationType = _json["operationType"]; | 2845 operationType = _json["operationType"]; |
| 2732 } | 2846 } |
| 2733 if (_json.containsKey("startTime")) { | 2847 if (_json.containsKey("startTime")) { |
| 2734 startTime = _json["startTime"]; | 2848 startTime = _json["startTime"]; |
| 2735 } | 2849 } |
| 2736 if (_json.containsKey("version")) { | 2850 if (_json.containsKey("version")) { |
| 2737 version = new GoogleCloudMlV1beta1Version.fromJson(_json["version"]); | 2851 version = new GoogleCloudMlV1beta1Version.fromJson(_json["version"]); |
| 2738 } | 2852 } |
| 2739 } | 2853 } |
| 2740 | 2854 |
| 2741 core.Map toJson() { | 2855 core.Map<core.String, core.Object> toJson() { |
| 2742 var _json = new core.Map(); | 2856 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2743 if (createTime != null) { | 2857 if (createTime != null) { |
| 2744 _json["createTime"] = createTime; | 2858 _json["createTime"] = createTime; |
| 2745 } | 2859 } |
| 2746 if (endTime != null) { | 2860 if (endTime != null) { |
| 2747 _json["endTime"] = endTime; | 2861 _json["endTime"] = endTime; |
| 2748 } | 2862 } |
| 2749 if (isCancellationRequested != null) { | 2863 if (isCancellationRequested != null) { |
| 2750 _json["isCancellationRequested"] = isCancellationRequested; | 2864 _json["isCancellationRequested"] = isCancellationRequested; |
| 2751 } | 2865 } |
| 2752 if (modelName != null) { | 2866 if (modelName != null) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2767 | 2881 |
| 2768 /** | 2882 /** |
| 2769 * Represents a version of the model. | 2883 * Represents a version of the model. |
| 2770 * | 2884 * |
| 2771 * Each version is a trained model deployed in the cloud, ready to handle | 2885 * Each version is a trained model deployed in the cloud, ready to handle |
| 2772 * prediction requests. A model can have multiple versions. You can get | 2886 * prediction requests. A model can have multiple versions. You can get |
| 2773 * information about all of the versions of a given model by calling | 2887 * information about all of the versions of a given model by calling |
| 2774 * [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.mo
dels.versions/list). | 2888 * [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.mo
dels.versions/list). |
| 2775 */ | 2889 */ |
| 2776 class GoogleCloudMlV1beta1Version { | 2890 class GoogleCloudMlV1beta1Version { |
| 2891 /** |
| 2892 * Automatically scale the number of nodes used to serve the model in |
| 2893 * response to increases and decreases in traffic. Care should be |
| 2894 * taken to ramp up traffic according to the model's ability to scale |
| 2895 * or you will start seeing increases in latency and 429 response codes. |
| 2896 */ |
| 2897 GoogleCloudMlV1beta1AutomaticScaling automaticScaling; |
| 2777 /** Output only. The time the version was created. */ | 2898 /** Output only. The time the version was created. */ |
| 2778 core.String createTime; | 2899 core.String createTime; |
| 2779 /** | 2900 /** |
| 2780 * Required. The Google Cloud Storage location of the trained model used to | 2901 * Required. The Google Cloud Storage location of the trained model used to |
| 2781 * create the version. See the | 2902 * create the version. See the |
| 2782 * [overview of model | 2903 * [overview of model |
| 2783 * deployment](/ml-engine/docs/concepts/deployment-overview) for more | 2904 * deployment](/ml-engine/docs/concepts/deployment-overview) for more |
| 2784 * informaiton. | 2905 * informaiton. |
| 2785 * | 2906 * |
| 2786 * When passing Version to | 2907 * When passing Version to |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2799 * Output only. If true, this version will be used to handle prediction | 2920 * Output only. If true, this version will be used to handle prediction |
| 2800 * requests that do not specify a version. | 2921 * requests that do not specify a version. |
| 2801 * | 2922 * |
| 2802 * You can change the default version by calling | 2923 * You can change the default version by calling |
| 2803 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/pr
ojects.models.versions/setDefault). | 2924 * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/pr
ojects.models.versions/setDefault). |
| 2804 */ | 2925 */ |
| 2805 core.bool isDefault; | 2926 core.bool isDefault; |
| 2806 /** Output only. The time the version was last used for prediction. */ | 2927 /** Output only. The time the version was last used for prediction. */ |
| 2807 core.String lastUseTime; | 2928 core.String lastUseTime; |
| 2808 /** | 2929 /** |
| 2809 * Optional. Manually select the number of nodes to use for serving the | 2930 * Manually select the number of nodes to use for serving the |
| 2810 * model. If unset (i.e., by default), the number of nodes used to serve | 2931 * model. You should generally use `automatic_scaling` with an appropriate |
| 2811 * the model automatically scales with traffic. However, care should be | 2932 * `min_nodes` instead, but this option is available if you want predictable |
| 2812 * taken to ramp up traffic according to the model's ability to scale. If | 2933 * billing. Beware that latency and error rates will increase if the |
| 2813 * your model needs to handle bursts of traffic beyond it's ability to | 2934 * traffic exceeds that capability of the system to serve it based on |
| 2814 * scale, it is recommended you set this field appropriately. | 2935 * the selected number of nodes. |
| 2815 */ | 2936 */ |
| 2816 GoogleCloudMlV1beta1ManualScaling manualScaling; | 2937 GoogleCloudMlV1beta1ManualScaling manualScaling; |
| 2817 /** | 2938 /** |
| 2818 * Required.The name specified for the version when it was created. | 2939 * Required.The name specified for the version when it was created. |
| 2819 * | 2940 * |
| 2820 * The version name must be unique within the model it is created in. | 2941 * The version name must be unique within the model it is created in. |
| 2821 */ | 2942 */ |
| 2822 core.String name; | 2943 core.String name; |
| 2823 /** | 2944 /** |
| 2824 * Optional. The Google Cloud ML runtime version to use for this deployment. | 2945 * Optional. The Google Cloud ML runtime version to use for this deployment. |
| 2825 * If not set, Google Cloud ML will choose a version. | 2946 * If not set, Google Cloud ML will choose a version. |
| 2826 */ | 2947 */ |
| 2827 core.String runtimeVersion; | 2948 core.String runtimeVersion; |
| 2828 | 2949 |
| 2829 GoogleCloudMlV1beta1Version(); | 2950 GoogleCloudMlV1beta1Version(); |
| 2830 | 2951 |
| 2831 GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { | 2952 GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { |
| 2953 if (_json.containsKey("automaticScaling")) { |
| 2954 automaticScaling = new GoogleCloudMlV1beta1AutomaticScaling.fromJson(_json
["automaticScaling"]); |
| 2955 } |
| 2832 if (_json.containsKey("createTime")) { | 2956 if (_json.containsKey("createTime")) { |
| 2833 createTime = _json["createTime"]; | 2957 createTime = _json["createTime"]; |
| 2834 } | 2958 } |
| 2835 if (_json.containsKey("deploymentUri")) { | 2959 if (_json.containsKey("deploymentUri")) { |
| 2836 deploymentUri = _json["deploymentUri"]; | 2960 deploymentUri = _json["deploymentUri"]; |
| 2837 } | 2961 } |
| 2838 if (_json.containsKey("description")) { | 2962 if (_json.containsKey("description")) { |
| 2839 description = _json["description"]; | 2963 description = _json["description"]; |
| 2840 } | 2964 } |
| 2841 if (_json.containsKey("isDefault")) { | 2965 if (_json.containsKey("isDefault")) { |
| 2842 isDefault = _json["isDefault"]; | 2966 isDefault = _json["isDefault"]; |
| 2843 } | 2967 } |
| 2844 if (_json.containsKey("lastUseTime")) { | 2968 if (_json.containsKey("lastUseTime")) { |
| 2845 lastUseTime = _json["lastUseTime"]; | 2969 lastUseTime = _json["lastUseTime"]; |
| 2846 } | 2970 } |
| 2847 if (_json.containsKey("manualScaling")) { | 2971 if (_json.containsKey("manualScaling")) { |
| 2848 manualScaling = new GoogleCloudMlV1beta1ManualScaling.fromJson(_json["manu
alScaling"]); | 2972 manualScaling = new GoogleCloudMlV1beta1ManualScaling.fromJson(_json["manu
alScaling"]); |
| 2849 } | 2973 } |
| 2850 if (_json.containsKey("name")) { | 2974 if (_json.containsKey("name")) { |
| 2851 name = _json["name"]; | 2975 name = _json["name"]; |
| 2852 } | 2976 } |
| 2853 if (_json.containsKey("runtimeVersion")) { | 2977 if (_json.containsKey("runtimeVersion")) { |
| 2854 runtimeVersion = _json["runtimeVersion"]; | 2978 runtimeVersion = _json["runtimeVersion"]; |
| 2855 } | 2979 } |
| 2856 } | 2980 } |
| 2857 | 2981 |
| 2858 core.Map toJson() { | 2982 core.Map<core.String, core.Object> toJson() { |
| 2859 var _json = new core.Map(); | 2983 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2984 if (automaticScaling != null) { |
| 2985 _json["automaticScaling"] = (automaticScaling).toJson(); |
| 2986 } |
| 2860 if (createTime != null) { | 2987 if (createTime != null) { |
| 2861 _json["createTime"] = createTime; | 2988 _json["createTime"] = createTime; |
| 2862 } | 2989 } |
| 2863 if (deploymentUri != null) { | 2990 if (deploymentUri != null) { |
| 2864 _json["deploymentUri"] = deploymentUri; | 2991 _json["deploymentUri"] = deploymentUri; |
| 2865 } | 2992 } |
| 2866 if (description != null) { | 2993 if (description != null) { |
| 2867 _json["description"] = description; | 2994 _json["description"] = description; |
| 2868 } | 2995 } |
| 2869 if (isDefault != null) { | 2996 if (isDefault != null) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 2896 | 3023 |
| 2897 GoogleLongrunningListOperationsResponse.fromJson(core.Map _json) { | 3024 GoogleLongrunningListOperationsResponse.fromJson(core.Map _json) { |
| 2898 if (_json.containsKey("nextPageToken")) { | 3025 if (_json.containsKey("nextPageToken")) { |
| 2899 nextPageToken = _json["nextPageToken"]; | 3026 nextPageToken = _json["nextPageToken"]; |
| 2900 } | 3027 } |
| 2901 if (_json.containsKey("operations")) { | 3028 if (_json.containsKey("operations")) { |
| 2902 operations = _json["operations"].map((value) => new GoogleLongrunningOpera
tion.fromJson(value)).toList(); | 3029 operations = _json["operations"].map((value) => new GoogleLongrunningOpera
tion.fromJson(value)).toList(); |
| 2903 } | 3030 } |
| 2904 } | 3031 } |
| 2905 | 3032 |
| 2906 core.Map toJson() { | 3033 core.Map<core.String, core.Object> toJson() { |
| 2907 var _json = new core.Map(); | 3034 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2908 if (nextPageToken != null) { | 3035 if (nextPageToken != null) { |
| 2909 _json["nextPageToken"] = nextPageToken; | 3036 _json["nextPageToken"] = nextPageToken; |
| 2910 } | 3037 } |
| 2911 if (operations != null) { | 3038 if (operations != null) { |
| 2912 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 3039 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
| 2913 } | 3040 } |
| 2914 return _json; | 3041 return _json; |
| 2915 } | 3042 } |
| 2916 } | 3043 } |
| 2917 | 3044 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2972 metadata = _json["metadata"]; | 3099 metadata = _json["metadata"]; |
| 2973 } | 3100 } |
| 2974 if (_json.containsKey("name")) { | 3101 if (_json.containsKey("name")) { |
| 2975 name = _json["name"]; | 3102 name = _json["name"]; |
| 2976 } | 3103 } |
| 2977 if (_json.containsKey("response")) { | 3104 if (_json.containsKey("response")) { |
| 2978 response = _json["response"]; | 3105 response = _json["response"]; |
| 2979 } | 3106 } |
| 2980 } | 3107 } |
| 2981 | 3108 |
| 2982 core.Map toJson() { | 3109 core.Map<core.String, core.Object> toJson() { |
| 2983 var _json = new core.Map(); | 3110 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2984 if (done != null) { | 3111 if (done != null) { |
| 2985 _json["done"] = done; | 3112 _json["done"] = done; |
| 2986 } | 3113 } |
| 2987 if (error != null) { | 3114 if (error != null) { |
| 2988 _json["error"] = (error).toJson(); | 3115 _json["error"] = (error).toJson(); |
| 2989 } | 3116 } |
| 2990 if (metadata != null) { | 3117 if (metadata != null) { |
| 2991 _json["metadata"] = metadata; | 3118 _json["metadata"] = metadata; |
| 2992 } | 3119 } |
| 2993 if (name != null) { | 3120 if (name != null) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 3011 * | 3138 * |
| 3012 * The JSON representation for `Empty` is empty JSON object `{}`. | 3139 * The JSON representation for `Empty` is empty JSON object `{}`. |
| 3013 */ | 3140 */ |
| 3014 class GoogleProtobufEmpty { | 3141 class GoogleProtobufEmpty { |
| 3015 | 3142 |
| 3016 GoogleProtobufEmpty(); | 3143 GoogleProtobufEmpty(); |
| 3017 | 3144 |
| 3018 GoogleProtobufEmpty.fromJson(core.Map _json) { | 3145 GoogleProtobufEmpty.fromJson(core.Map _json) { |
| 3019 } | 3146 } |
| 3020 | 3147 |
| 3021 core.Map toJson() { | 3148 core.Map<core.String, core.Object> toJson() { |
| 3022 var _json = new core.Map(); | 3149 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3023 return _json; | 3150 return _json; |
| 3024 } | 3151 } |
| 3025 } | 3152 } |
| 3026 | 3153 |
| 3027 /** | 3154 /** |
| 3028 * The `Status` type defines a logical error model that is suitable for | 3155 * The `Status` type defines a logical error model that is suitable for |
| 3029 * different | 3156 * different |
| 3030 * programming environments, including REST APIs and RPC APIs. It is used by | 3157 * programming environments, including REST APIs and RPC APIs. It is used by |
| 3031 * [gRPC](https://github.com/grpc). The error model is designed to be: | 3158 * [gRPC](https://github.com/grpc). The error model is designed to be: |
| 3032 * | 3159 * |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3105 code = _json["code"]; | 3232 code = _json["code"]; |
| 3106 } | 3233 } |
| 3107 if (_json.containsKey("details")) { | 3234 if (_json.containsKey("details")) { |
| 3108 details = _json["details"]; | 3235 details = _json["details"]; |
| 3109 } | 3236 } |
| 3110 if (_json.containsKey("message")) { | 3237 if (_json.containsKey("message")) { |
| 3111 message = _json["message"]; | 3238 message = _json["message"]; |
| 3112 } | 3239 } |
| 3113 } | 3240 } |
| 3114 | 3241 |
| 3115 core.Map toJson() { | 3242 core.Map<core.String, core.Object> toJson() { |
| 3116 var _json = new core.Map(); | 3243 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3117 if (code != null) { | 3244 if (code != null) { |
| 3118 _json["code"] = code; | 3245 _json["code"] = code; |
| 3119 } | 3246 } |
| 3120 if (details != null) { | 3247 if (details != null) { |
| 3121 _json["details"] = details; | 3248 _json["details"] = details; |
| 3122 } | 3249 } |
| 3123 if (message != null) { | 3250 if (message != null) { |
| 3124 _json["message"] = message; | 3251 _json["message"] = message; |
| 3125 } | 3252 } |
| 3126 return _json; | 3253 return _json; |
| 3127 } | 3254 } |
| 3128 } | 3255 } |
| OLD | NEW |