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_beta.ml.v1beta1; | 3 library googleapis_beta.ml.v1beta1; |
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 * | |
293 * [pageToken] - Optional. A page token to request the next page of results. | 291 * [pageToken] - Optional. A page token to request the next page of results. |
294 * | 292 * |
295 * You get the token from the `next_page_token` field of the response from | 293 * You get the token from the `next_page_token` field of the response from |
296 * the previous call. | 294 * the previous call. |
297 * | 295 * |
298 * [pageSize] - Optional. The number of jobs to retrieve per "page" of | 296 * [pageSize] - Optional. The number of jobs to retrieve per "page" of |
299 * results. If there | 297 * results. If there |
300 * are more remaining results than this number, the response message will | 298 * are more remaining results than this number, the response message will |
301 * contain a valid value in the `next_page_token` field. | 299 * contain a valid value in the `next_page_token` field. |
302 * | 300 * |
303 * The default value is 20, and the maximum page size is 100. | 301 * The default value is 20, and the maximum page size is 100. |
304 * | 302 * |
| 303 * [filter] - Optional. Specifies the subset of jobs to retrieve. |
| 304 * |
305 * Completes with a [GoogleCloudMlV1beta1ListJobsResponse]. | 305 * Completes with a [GoogleCloudMlV1beta1ListJobsResponse]. |
306 * | 306 * |
307 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 307 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
308 * error. | 308 * error. |
309 * | 309 * |
310 * If the used [http.Client] completes with an error when making a REST call, | 310 * If the used [http.Client] completes with an error when making a REST call, |
311 * this method will complete with the same error. | 311 * this method will complete with the same error. |
312 */ | 312 */ |
313 async.Future<GoogleCloudMlV1beta1ListJobsResponse> list(core.String parent, {c
ore.String filter, core.String pageToken, core.int pageSize}) { | 313 async.Future<GoogleCloudMlV1beta1ListJobsResponse> list(core.String parent, {c
ore.String pageToken, core.int pageSize, core.String filter}) { |
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 } | |
327 if (pageToken != null) { | 324 if (pageToken != null) { |
328 _queryParams["pageToken"] = [pageToken]; | 325 _queryParams["pageToken"] = [pageToken]; |
329 } | 326 } |
330 if (pageSize != null) { | 327 if (pageSize != null) { |
331 _queryParams["pageSize"] = ["${pageSize}"]; | 328 _queryParams["pageSize"] = ["${pageSize}"]; |
332 } | 329 } |
| 330 if (filter != null) { |
| 331 _queryParams["filter"] = [filter]; |
| 332 } |
333 | 333 |
334 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/job
s'; | 334 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/job
s'; |
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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 * server doesn't support this method, it returns `UNIMPLEMENTED`. | 988 * server doesn't support this method, it returns `UNIMPLEMENTED`. |
989 * | 989 * |
990 * NOTE: the `name` binding below allows API services to override the binding | 990 * NOTE: the `name` binding below allows API services to override the binding |
991 * to use different resource name schemes, such as `users / * /operations`. | 991 * to use different resource name schemes, such as `users / * /operations`. |
992 * | 992 * |
993 * Request parameters: | 993 * Request parameters: |
994 * | 994 * |
995 * [name] - The name of the operation collection. | 995 * [name] - The name of the operation collection. |
996 * Value must have pattern "^projects/[^/]+$". | 996 * Value must have pattern "^projects/[^/]+$". |
997 * | 997 * |
998 * [filter] - The standard list filter. | |
999 * | |
1000 * [pageToken] - The standard list page token. | 998 * [pageToken] - The standard list page token. |
1001 * | 999 * |
1002 * [pageSize] - The standard list page size. | 1000 * [pageSize] - The standard list page size. |
1003 * | 1001 * |
| 1002 * [filter] - The standard list filter. |
| 1003 * |
1004 * Completes with a [GoogleLongrunningListOperationsResponse]. | 1004 * Completes with a [GoogleLongrunningListOperationsResponse]. |
1005 * | 1005 * |
1006 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1006 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1007 * error. | 1007 * error. |
1008 * | 1008 * |
1009 * If the used [http.Client] completes with an error when making a REST call, | 1009 * If the used [http.Client] completes with an error when making a REST call, |
1010 * this method will complete with the same error. | 1010 * this method will complete with the same error. |
1011 */ | 1011 */ |
1012 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, {
core.String filter, core.String pageToken, core.int pageSize}) { | 1012 async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, {
core.String pageToken, core.int pageSize, core.String filter}) { |
1013 var _url = null; | 1013 var _url = null; |
1014 var _queryParams = new core.Map(); | 1014 var _queryParams = new core.Map(); |
1015 var _uploadMedia = null; | 1015 var _uploadMedia = null; |
1016 var _uploadOptions = null; | 1016 var _uploadOptions = null; |
1017 var _downloadOptions = commons.DownloadOptions.Metadata; | 1017 var _downloadOptions = commons.DownloadOptions.Metadata; |
1018 var _body = null; | 1018 var _body = null; |
1019 | 1019 |
1020 if (name == null) { | 1020 if (name == null) { |
1021 throw new core.ArgumentError("Parameter name is required."); | 1021 throw new core.ArgumentError("Parameter name is required."); |
1022 } | 1022 } |
1023 if (filter != null) { | |
1024 _queryParams["filter"] = [filter]; | |
1025 } | |
1026 if (pageToken != null) { | 1023 if (pageToken != null) { |
1027 _queryParams["pageToken"] = [pageToken]; | 1024 _queryParams["pageToken"] = [pageToken]; |
1028 } | 1025 } |
1029 if (pageSize != null) { | 1026 if (pageSize != null) { |
1030 _queryParams["pageSize"] = ["${pageSize}"]; | 1027 _queryParams["pageSize"] = ["${pageSize}"]; |
1031 } | 1028 } |
| 1029 if (filter != null) { |
| 1030 _queryParams["filter"] = [filter]; |
| 1031 } |
1032 | 1032 |
1033 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/opera
tions'; | 1033 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/opera
tions'; |
1034 | 1034 |
1035 var _response = _requester.request(_url, | 1035 var _response = _requester.request(_url, |
1036 "GET", | 1036 "GET", |
1037 body: _body, | 1037 body: _body, |
1038 queryParams: _queryParams, | 1038 queryParams: _queryParams, |
1039 uploadOptions: _uploadOptions, | 1039 uploadOptions: _uploadOptions, |
1040 uploadMedia: _uploadMedia, | 1040 uploadMedia: _uploadMedia, |
1041 downloadOptions: _downloadOptions); | 1041 downloadOptions: _downloadOptions); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 if (contentType != null) { | 1117 if (contentType != null) { |
1118 _json["contentType"] = contentType; | 1118 _json["contentType"] = contentType; |
1119 } | 1119 } |
1120 if (data != null) { | 1120 if (data != null) { |
1121 _json["data"] = data; | 1121 _json["data"] = data; |
1122 } | 1122 } |
1123 return _json; | 1123 return _json; |
1124 } | 1124 } |
1125 } | 1125 } |
1126 | 1126 |
| 1127 /** Options for manually scaling a model. */ |
| 1128 class GoogleCloudMlV1ManualScaling { |
| 1129 /** |
| 1130 * The number of nodes to allocate for this model. These nodes are always up, |
| 1131 * starting from the time the model is deployed, so the cost of operating |
| 1132 * this model will be proportional to nodes * number of hours since |
| 1133 * deployment. |
| 1134 */ |
| 1135 core.int nodes; |
| 1136 |
| 1137 GoogleCloudMlV1ManualScaling(); |
| 1138 |
| 1139 GoogleCloudMlV1ManualScaling.fromJson(core.Map _json) { |
| 1140 if (_json.containsKey("nodes")) { |
| 1141 nodes = _json["nodes"]; |
| 1142 } |
| 1143 } |
| 1144 |
| 1145 core.Map toJson() { |
| 1146 var _json = new core.Map(); |
| 1147 if (nodes != null) { |
| 1148 _json["nodes"] = nodes; |
| 1149 } |
| 1150 return _json; |
| 1151 } |
| 1152 } |
| 1153 |
1127 /** Represents the metadata of the long-running operation. */ | 1154 /** Represents the metadata of the long-running operation. */ |
1128 class GoogleCloudMlV1OperationMetadata { | 1155 class GoogleCloudMlV1OperationMetadata { |
1129 /** The time the operation was submitted. */ | 1156 /** The time the operation was submitted. */ |
1130 core.String createTime; | 1157 core.String createTime; |
1131 /** The time operation processing completed. */ | 1158 /** The time operation processing completed. */ |
1132 core.String endTime; | 1159 core.String endTime; |
1133 /** Indicates whether a request to cancel this operation has been made. */ | 1160 /** Indicates whether a request to cancel this operation has been made. */ |
1134 core.bool isCancellationRequested; | 1161 core.bool isCancellationRequested; |
1135 /** Contains the name of the model associated with the operation. */ | 1162 /** Contains the name of the model associated with the operation. */ |
1136 core.String modelName; | 1163 core.String modelName; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 * Output only. If true, this version will be used to handle prediction | 1260 * Output only. If true, this version will be used to handle prediction |
1234 * requests that do not specify a version. | 1261 * requests that do not specify a version. |
1235 * | 1262 * |
1236 * You can change the default version by calling | 1263 * You can change the default version by calling |
1237 * [projects.methods.versions.setDefault](/ml/reference/rest/v1/projects.model
s.versions/setDefault). | 1264 * [projects.methods.versions.setDefault](/ml/reference/rest/v1/projects.model
s.versions/setDefault). |
1238 */ | 1265 */ |
1239 core.bool isDefault; | 1266 core.bool isDefault; |
1240 /** Output only. The time the version was last used for prediction. */ | 1267 /** Output only. The time the version was last used for prediction. */ |
1241 core.String lastUseTime; | 1268 core.String lastUseTime; |
1242 /** | 1269 /** |
| 1270 * Optional. Manually select the number of nodes to use for serving the |
| 1271 * model. If unset (i.e., by default), the number of nodes used to serve |
| 1272 * the model automatically scales with traffic. However, care should be |
| 1273 * taken to ramp up traffic according to the model's ability to scale. If |
| 1274 * your model needs to handle bursts of traffic beyond it's ability to |
| 1275 * scale, it is recommended you set this field appropriately. |
| 1276 */ |
| 1277 GoogleCloudMlV1ManualScaling manualScaling; |
| 1278 /** |
1243 * Required.The name specified for the version when it was created. | 1279 * Required.The name specified for the version when it was created. |
1244 * | 1280 * |
1245 * The version name must be unique within the model it is created in. | 1281 * The version name must be unique within the model it is created in. |
1246 */ | 1282 */ |
1247 core.String name; | 1283 core.String name; |
1248 /** | 1284 /** |
1249 * Optional. The Google Cloud ML runtime version to use for this deployment. | 1285 * Optional. The Google Cloud ML runtime version to use for this deployment. |
1250 * If not set, Google Cloud ML will choose a version. | 1286 * If not set, Google Cloud ML will choose a version. |
1251 */ | 1287 */ |
1252 core.String runtimeVersion; | 1288 core.String runtimeVersion; |
1253 | 1289 |
1254 GoogleCloudMlV1Version(); | 1290 GoogleCloudMlV1Version(); |
1255 | 1291 |
1256 GoogleCloudMlV1Version.fromJson(core.Map _json) { | 1292 GoogleCloudMlV1Version.fromJson(core.Map _json) { |
1257 if (_json.containsKey("createTime")) { | 1293 if (_json.containsKey("createTime")) { |
1258 createTime = _json["createTime"]; | 1294 createTime = _json["createTime"]; |
1259 } | 1295 } |
1260 if (_json.containsKey("deploymentUri")) { | 1296 if (_json.containsKey("deploymentUri")) { |
1261 deploymentUri = _json["deploymentUri"]; | 1297 deploymentUri = _json["deploymentUri"]; |
1262 } | 1298 } |
1263 if (_json.containsKey("description")) { | 1299 if (_json.containsKey("description")) { |
1264 description = _json["description"]; | 1300 description = _json["description"]; |
1265 } | 1301 } |
1266 if (_json.containsKey("isDefault")) { | 1302 if (_json.containsKey("isDefault")) { |
1267 isDefault = _json["isDefault"]; | 1303 isDefault = _json["isDefault"]; |
1268 } | 1304 } |
1269 if (_json.containsKey("lastUseTime")) { | 1305 if (_json.containsKey("lastUseTime")) { |
1270 lastUseTime = _json["lastUseTime"]; | 1306 lastUseTime = _json["lastUseTime"]; |
1271 } | 1307 } |
| 1308 if (_json.containsKey("manualScaling")) { |
| 1309 manualScaling = new GoogleCloudMlV1ManualScaling.fromJson(_json["manualSca
ling"]); |
| 1310 } |
1272 if (_json.containsKey("name")) { | 1311 if (_json.containsKey("name")) { |
1273 name = _json["name"]; | 1312 name = _json["name"]; |
1274 } | 1313 } |
1275 if (_json.containsKey("runtimeVersion")) { | 1314 if (_json.containsKey("runtimeVersion")) { |
1276 runtimeVersion = _json["runtimeVersion"]; | 1315 runtimeVersion = _json["runtimeVersion"]; |
1277 } | 1316 } |
1278 } | 1317 } |
1279 | 1318 |
1280 core.Map toJson() { | 1319 core.Map toJson() { |
1281 var _json = new core.Map(); | 1320 var _json = new core.Map(); |
1282 if (createTime != null) { | 1321 if (createTime != null) { |
1283 _json["createTime"] = createTime; | 1322 _json["createTime"] = createTime; |
1284 } | 1323 } |
1285 if (deploymentUri != null) { | 1324 if (deploymentUri != null) { |
1286 _json["deploymentUri"] = deploymentUri; | 1325 _json["deploymentUri"] = deploymentUri; |
1287 } | 1326 } |
1288 if (description != null) { | 1327 if (description != null) { |
1289 _json["description"] = description; | 1328 _json["description"] = description; |
1290 } | 1329 } |
1291 if (isDefault != null) { | 1330 if (isDefault != null) { |
1292 _json["isDefault"] = isDefault; | 1331 _json["isDefault"] = isDefault; |
1293 } | 1332 } |
1294 if (lastUseTime != null) { | 1333 if (lastUseTime != null) { |
1295 _json["lastUseTime"] = lastUseTime; | 1334 _json["lastUseTime"] = lastUseTime; |
1296 } | 1335 } |
| 1336 if (manualScaling != null) { |
| 1337 _json["manualScaling"] = (manualScaling).toJson(); |
| 1338 } |
1297 if (name != null) { | 1339 if (name != null) { |
1298 _json["name"] = name; | 1340 _json["name"] = name; |
1299 } | 1341 } |
1300 if (runtimeVersion != null) { | 1342 if (runtimeVersion != null) { |
1301 _json["runtimeVersion"] = runtimeVersion; | 1343 _json["runtimeVersion"] = runtimeVersion; |
1302 } | 1344 } |
1303 return _json; | 1345 return _json; |
1304 } | 1346 } |
1305 } | 1347 } |
1306 | 1348 |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1715 if (nextPageToken != null) { | 1757 if (nextPageToken != null) { |
1716 _json["nextPageToken"] = nextPageToken; | 1758 _json["nextPageToken"] = nextPageToken; |
1717 } | 1759 } |
1718 if (versions != null) { | 1760 if (versions != null) { |
1719 _json["versions"] = versions.map((value) => (value).toJson()).toList(); | 1761 _json["versions"] = versions.map((value) => (value).toJson()).toList(); |
1720 } | 1762 } |
1721 return _json; | 1763 return _json; |
1722 } | 1764 } |
1723 } | 1765 } |
1724 | 1766 |
| 1767 /** Options for manually scaling a model. */ |
| 1768 class GoogleCloudMlV1beta1ManualScaling { |
| 1769 /** |
| 1770 * The number of nodes to allocate for this model. These nodes are always up, |
| 1771 * starting from the time the model is deployed, so the cost of operating |
| 1772 * this model will be proportional to nodes * number of hours since |
| 1773 * deployment. |
| 1774 */ |
| 1775 core.int nodes; |
| 1776 |
| 1777 GoogleCloudMlV1beta1ManualScaling(); |
| 1778 |
| 1779 GoogleCloudMlV1beta1ManualScaling.fromJson(core.Map _json) { |
| 1780 if (_json.containsKey("nodes")) { |
| 1781 nodes = _json["nodes"]; |
| 1782 } |
| 1783 } |
| 1784 |
| 1785 core.Map toJson() { |
| 1786 var _json = new core.Map(); |
| 1787 if (nodes != null) { |
| 1788 _json["nodes"] = nodes; |
| 1789 } |
| 1790 return _json; |
| 1791 } |
| 1792 } |
| 1793 |
1725 /** | 1794 /** |
1726 * Represents a machine learning solution. | 1795 * Represents a machine learning solution. |
1727 * | 1796 * |
1728 * A model can have multiple versions, each of which is a deployed, trained | 1797 * A model can have multiple versions, each of which is a deployed, trained |
1729 * model ready to receive prediction requests. The model itself is just a | 1798 * model ready to receive prediction requests. The model itself is just a |
1730 * container. | 1799 * container. |
1731 */ | 1800 */ |
1732 class GoogleCloudMlV1beta1Model { | 1801 class GoogleCloudMlV1beta1Model { |
1733 /** | 1802 /** |
1734 * Output only. The default version of the model. This version will be used to | 1803 * Output only. The default version of the model. This version will be used to |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2242 */ | 2311 */ |
2243 core.String region; | 2312 core.String region; |
2244 /** | 2313 /** |
2245 * Optional. The Google Cloud ML runtime version to use for this batch | 2314 * Optional. The Google Cloud ML runtime version to use for this batch |
2246 * prediction. If not set, Google Cloud ML will pick the runtime version used | 2315 * prediction. If not set, Google Cloud ML will pick the runtime version used |
2247 * during the CreateVersion request for this model version, or choose the | 2316 * during the CreateVersion request for this model version, or choose the |
2248 * latest stable version when model version information is not available | 2317 * latest stable version when model version information is not available |
2249 * such as when the model is specified by uri. | 2318 * such as when the model is specified by uri. |
2250 */ | 2319 */ |
2251 core.String runtimeVersion; | 2320 core.String runtimeVersion; |
2252 /** Use this field if you want to specify a GCS path to the model to use. */ | 2321 /** |
| 2322 * Use this field if you want to specify a Google Cloud Storage path for |
| 2323 * the model to use. |
| 2324 */ |
2253 core.String uri; | 2325 core.String uri; |
2254 /** | 2326 /** |
2255 * Use this field if you want to specify a version of the model to use. The | 2327 * Use this field if you want to specify a version of the model to use. The |
2256 * string is formatted the same way as `model_version`, with the addition | 2328 * string is formatted the same way as `model_version`, with the addition |
2257 * of the version information: | 2329 * of the version information: |
2258 * | 2330 * |
2259 * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[
YOUR_VERSION]</var>"` | 2331 * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[
YOUR_VERSION]</var>"` |
2260 */ | 2332 */ |
2261 core.String versionName; | 2333 core.String versionName; |
2262 | 2334 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2387 } | 2459 } |
2388 } | 2460 } |
2389 | 2461 |
2390 /** Represents input parameters for a training job. */ | 2462 /** Represents input parameters for a training job. */ |
2391 class GoogleCloudMlV1beta1TrainingInput { | 2463 class GoogleCloudMlV1beta1TrainingInput { |
2392 /** Optional. Command line arguments to pass to the program. */ | 2464 /** Optional. Command line arguments to pass to the program. */ |
2393 core.List<core.String> args; | 2465 core.List<core.String> args; |
2394 /** Optional. The set of Hyperparameters to tune. */ | 2466 /** Optional. The set of Hyperparameters to tune. */ |
2395 GoogleCloudMlV1beta1HyperparameterSpec hyperparameters; | 2467 GoogleCloudMlV1beta1HyperparameterSpec hyperparameters; |
2396 /** | 2468 /** |
2397 * Optional. A GCS path in which to store training outputs and other data | 2469 * Optional. A Google Cloud Storage path in which to store training outputs |
2398 * needed for training. This path will be passed to your TensorFlow program as | 2470 * and other data needed for training. This path is passed to your TensorFlow |
2399 * the 'job_dir' command-line arg. The benefit of specifying this field is | 2471 * program as the 'job_dir' command-line argument. The benefit of specifying |
2400 * that | 2472 * this field is that Cloud ML validates the path for use in training. |
2401 * Cloud ML will validate the path for use in training. | |
2402 */ | 2473 */ |
2403 core.String jobDir; | 2474 core.String jobDir; |
2404 /** | 2475 /** |
2405 * Optional. Specifies the type of virtual machine to use for your training | 2476 * Optional. Specifies the type of virtual machine to use for your training |
2406 * job's master worker. | 2477 * job's master worker. |
2407 * | 2478 * |
2408 * The following types are supported: | 2479 * The following types are supported: |
2409 * | 2480 * |
2410 * <dl> | 2481 * <dl> |
2411 * <dt>standard</dt> | 2482 * <dt>standard</dt> |
(...skipping 16 matching lines...) Expand all Loading... |
2428 * <dt>complex_model_m</dt> | 2499 * <dt>complex_model_m</dt> |
2429 * <dd> | 2500 * <dd> |
2430 * A machine with roughly twice the number of cores and roughly double the | 2501 * A machine with roughly twice the number of cores and roughly double the |
2431 * memory of <code suppresswarning="true">complex_model_s</code>. | 2502 * memory of <code suppresswarning="true">complex_model_s</code>. |
2432 * </dd> | 2503 * </dd> |
2433 * <dt>complex_model_l</dt> | 2504 * <dt>complex_model_l</dt> |
2434 * <dd> | 2505 * <dd> |
2435 * A machine with roughly twice the number of cores and roughly double the | 2506 * A machine with roughly twice the number of cores and roughly double the |
2436 * memory of <code suppresswarning="true">complex_model_m</code>. | 2507 * memory of <code suppresswarning="true">complex_model_m</code>. |
2437 * </dd> | 2508 * </dd> |
| 2509 * <dt>standard_gpu</dt> |
| 2510 * <dd> |
| 2511 * A machine equivalent to <code suppresswarning="true">standard</code> that |
| 2512 * also includes a |
| 2513 * <a href="ml/docs/how-tos/using-gpus"> |
| 2514 * GPU that you can use in your trainer</a>. |
| 2515 * </dd> |
| 2516 * <dt>complex_model_m_gpu</dt> |
| 2517 * <dd> |
| 2518 * A machine equivalent to |
| 2519 * <code suppresswarning="true">coplex_model_m</code> that also includes |
| 2520 * four GPUs. |
| 2521 * </dd> |
2438 * </dl> | 2522 * </dl> |
2439 * | 2523 * |
2440 * You must set this value when `scaleTier` is set to `CUSTOM`. | 2524 * You must set this value when `scaleTier` is set to `CUSTOM`. |
2441 */ | 2525 */ |
2442 core.String masterType; | 2526 core.String masterType; |
2443 /** | 2527 /** |
2444 * Required. The Google Cloud Storage location of the packages with | 2528 * Required. The Google Cloud Storage location of the packages with |
2445 * the training program and any additional dependencies. | 2529 * the training program and any additional dependencies. |
2446 */ | 2530 */ |
2447 core.List<core.String> packageUris; | 2531 core.List<core.String> packageUris; |
(...skipping 28 matching lines...) Expand all Loading... |
2476 core.String runtimeVersion; | 2560 core.String runtimeVersion; |
2477 /** | 2561 /** |
2478 * Required. Specifies the machine types, the number of replicas for workers | 2562 * Required. Specifies the machine types, the number of replicas for workers |
2479 * and parameter servers. | 2563 * and parameter servers. |
2480 * Possible string values are: | 2564 * Possible string values are: |
2481 * - "BASIC" : A single worker instance. This tier is suitable for learning | 2565 * - "BASIC" : A single worker instance. This tier is suitable for learning |
2482 * how to use | 2566 * how to use |
2483 * Cloud ML, and for experimenting with new models using small datasets. | 2567 * Cloud ML, and for experimenting with new models using small datasets. |
2484 * - "STANDARD_1" : Many workers and a few parameter servers. | 2568 * - "STANDARD_1" : Many workers and a few parameter servers. |
2485 * - "PREMIUM_1" : A large number of workers with many parameter servers. | 2569 * - "PREMIUM_1" : A large number of workers with many parameter servers. |
2486 * - "BASIC_GPU" : A single worker instance with a GPU. | 2570 * - "BASIC_GPU" : A single worker instance [with a |
| 2571 * GPU](ml/docs/how-tos/using-gpus). |
2487 * - "CUSTOM" : The CUSTOM tier is not a set tier, but rather enables you to | 2572 * - "CUSTOM" : The CUSTOM tier is not a set tier, but rather enables you to |
2488 * use your | 2573 * use your |
2489 * own cluster specification. When you use this tier, set values to | 2574 * own cluster specification. When you use this tier, set values to |
2490 * configure your processing cluster according to these guidelines: | 2575 * configure your processing cluster according to these guidelines: |
2491 * | 2576 * |
2492 * * You _must_ set `TrainingInput.masterType` to specify the type | 2577 * * You _must_ set `TrainingInput.masterType` to specify the type |
2493 * of machine to use for your master node. This is the only required | 2578 * of machine to use for your master node. This is the only required |
2494 * setting. | 2579 * setting. |
2495 * | 2580 * |
2496 * * You _may_ set `TrainingInput.workerCount` to specify the number of | 2581 * * You _may_ set `TrainingInput.workerCount` to specify the number of |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2703 * Output only. If true, this version will be used to handle prediction | 2788 * Output only. If true, this version will be used to handle prediction |
2704 * requests that do not specify a version. | 2789 * requests that do not specify a version. |
2705 * | 2790 * |
2706 * You can change the default version by calling | 2791 * You can change the default version by calling |
2707 * [projects.methods.versions.setDefault](/ml/reference/rest/v1beta1/projects.
models.versions/setDefault). | 2792 * [projects.methods.versions.setDefault](/ml/reference/rest/v1beta1/projects.
models.versions/setDefault). |
2708 */ | 2793 */ |
2709 core.bool isDefault; | 2794 core.bool isDefault; |
2710 /** Output only. The time the version was last used for prediction. */ | 2795 /** Output only. The time the version was last used for prediction. */ |
2711 core.String lastUseTime; | 2796 core.String lastUseTime; |
2712 /** | 2797 /** |
| 2798 * Optional. Manually select the number of nodes to use for serving the |
| 2799 * model. If unset (i.e., by default), the number of nodes used to serve |
| 2800 * the model automatically scales with traffic. However, care should be |
| 2801 * taken to ramp up traffic according to the model's ability to scale. If |
| 2802 * your model needs to handle bursts of traffic beyond it's ability to |
| 2803 * scale, it is recommended you set this field appropriately. |
| 2804 */ |
| 2805 GoogleCloudMlV1beta1ManualScaling manualScaling; |
| 2806 /** |
2713 * Required.The name specified for the version when it was created. | 2807 * Required.The name specified for the version when it was created. |
2714 * | 2808 * |
2715 * The version name must be unique within the model it is created in. | 2809 * The version name must be unique within the model it is created in. |
2716 */ | 2810 */ |
2717 core.String name; | 2811 core.String name; |
2718 /** | 2812 /** |
2719 * Optional. The Google Cloud ML runtime version to use for this deployment. | 2813 * Optional. The Google Cloud ML runtime version to use for this deployment. |
2720 * If not set, Google Cloud ML will choose a version. | 2814 * If not set, Google Cloud ML will choose a version. |
2721 */ | 2815 */ |
2722 core.String runtimeVersion; | 2816 core.String runtimeVersion; |
2723 | 2817 |
2724 GoogleCloudMlV1beta1Version(); | 2818 GoogleCloudMlV1beta1Version(); |
2725 | 2819 |
2726 GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { | 2820 GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { |
2727 if (_json.containsKey("createTime")) { | 2821 if (_json.containsKey("createTime")) { |
2728 createTime = _json["createTime"]; | 2822 createTime = _json["createTime"]; |
2729 } | 2823 } |
2730 if (_json.containsKey("deploymentUri")) { | 2824 if (_json.containsKey("deploymentUri")) { |
2731 deploymentUri = _json["deploymentUri"]; | 2825 deploymentUri = _json["deploymentUri"]; |
2732 } | 2826 } |
2733 if (_json.containsKey("description")) { | 2827 if (_json.containsKey("description")) { |
2734 description = _json["description"]; | 2828 description = _json["description"]; |
2735 } | 2829 } |
2736 if (_json.containsKey("isDefault")) { | 2830 if (_json.containsKey("isDefault")) { |
2737 isDefault = _json["isDefault"]; | 2831 isDefault = _json["isDefault"]; |
2738 } | 2832 } |
2739 if (_json.containsKey("lastUseTime")) { | 2833 if (_json.containsKey("lastUseTime")) { |
2740 lastUseTime = _json["lastUseTime"]; | 2834 lastUseTime = _json["lastUseTime"]; |
2741 } | 2835 } |
| 2836 if (_json.containsKey("manualScaling")) { |
| 2837 manualScaling = new GoogleCloudMlV1beta1ManualScaling.fromJson(_json["manu
alScaling"]); |
| 2838 } |
2742 if (_json.containsKey("name")) { | 2839 if (_json.containsKey("name")) { |
2743 name = _json["name"]; | 2840 name = _json["name"]; |
2744 } | 2841 } |
2745 if (_json.containsKey("runtimeVersion")) { | 2842 if (_json.containsKey("runtimeVersion")) { |
2746 runtimeVersion = _json["runtimeVersion"]; | 2843 runtimeVersion = _json["runtimeVersion"]; |
2747 } | 2844 } |
2748 } | 2845 } |
2749 | 2846 |
2750 core.Map toJson() { | 2847 core.Map toJson() { |
2751 var _json = new core.Map(); | 2848 var _json = new core.Map(); |
2752 if (createTime != null) { | 2849 if (createTime != null) { |
2753 _json["createTime"] = createTime; | 2850 _json["createTime"] = createTime; |
2754 } | 2851 } |
2755 if (deploymentUri != null) { | 2852 if (deploymentUri != null) { |
2756 _json["deploymentUri"] = deploymentUri; | 2853 _json["deploymentUri"] = deploymentUri; |
2757 } | 2854 } |
2758 if (description != null) { | 2855 if (description != null) { |
2759 _json["description"] = description; | 2856 _json["description"] = description; |
2760 } | 2857 } |
2761 if (isDefault != null) { | 2858 if (isDefault != null) { |
2762 _json["isDefault"] = isDefault; | 2859 _json["isDefault"] = isDefault; |
2763 } | 2860 } |
2764 if (lastUseTime != null) { | 2861 if (lastUseTime != null) { |
2765 _json["lastUseTime"] = lastUseTime; | 2862 _json["lastUseTime"] = lastUseTime; |
2766 } | 2863 } |
| 2864 if (manualScaling != null) { |
| 2865 _json["manualScaling"] = (manualScaling).toJson(); |
| 2866 } |
2767 if (name != null) { | 2867 if (name != null) { |
2768 _json["name"] = name; | 2868 _json["name"] = name; |
2769 } | 2869 } |
2770 if (runtimeVersion != null) { | 2870 if (runtimeVersion != null) { |
2771 _json["runtimeVersion"] = runtimeVersion; | 2871 _json["runtimeVersion"] = runtimeVersion; |
2772 } | 2872 } |
2773 return _json; | 2873 return _json; |
2774 } | 2874 } |
2775 } | 2875 } |
2776 | 2876 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3008 } | 3108 } |
3009 if (details != null) { | 3109 if (details != null) { |
3010 _json["details"] = details; | 3110 _json["details"] = details; |
3011 } | 3111 } |
3012 if (message != null) { | 3112 if (message != null) { |
3013 _json["message"] = message; | 3113 _json["message"] = message; |
3014 } | 3114 } |
3015 return _json; | 3115 return _json; |
3016 } | 3116 } |
3017 } | 3117 } |
OLD | NEW |