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.dataproc.v1; | 3 library googleapis.dataproc.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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 * Lists all regions/{region}/clusters in a project. | 271 * Lists all regions/{region}/clusters in a project. |
272 * | 272 * |
273 * Request parameters: | 273 * Request parameters: |
274 * | 274 * |
275 * [projectId] - Required. The ID of the Google Cloud Platform project that | 275 * [projectId] - Required. The ID of the Google Cloud Platform project that |
276 * the cluster belongs to. | 276 * the cluster belongs to. |
277 * | 277 * |
278 * [region] - Required. The Cloud Dataproc region in which to handle the | 278 * [region] - Required. The Cloud Dataproc region in which to handle the |
279 * request. | 279 * request. |
280 * | 280 * |
281 * [pageToken] - Optional. The standard List page token. | |
282 * | |
283 * [pageSize] - Optional. The standard List page size. | |
284 * | |
285 * [filter] - Optional. A filter constraining the clusters to list. Filters | 281 * [filter] - Optional. A filter constraining the clusters to list. Filters |
286 * are case-sensitive and have the following syntax:field = value AND field = | 282 * are case-sensitive and have the following syntax:field = value AND field = |
287 * value ...where field is one of status.state, clusterName, or labels.[KEY], | 283 * value ...where field is one of status.state, clusterName, or labels.[KEY], |
288 * and [KEY] is a label key. value can be * to match all values. status.state | 284 * and [KEY] is a label key. value can be * to match all values. status.state |
289 * can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, | 285 * can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, |
290 * DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING | 286 * DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING |
291 * states. INACTIVE contains the DELETING and ERROR states. clusterName is the | 287 * states. INACTIVE contains the DELETING and ERROR states. clusterName is the |
292 * name of the cluster provided at creation time. Only the logical AND | 288 * name of the cluster provided at creation time. Only the logical AND |
293 * operator is supported; space-separated items are treated as having an | 289 * operator is supported; space-separated items are treated as having an |
294 * implicit AND operator.Example filter:status.state = ACTIVE AND clusterName | 290 * implicit AND operator.Example filter:status.state = ACTIVE AND clusterName |
295 * = mycluster AND labels.env = staging AND labels.starred = * | 291 * = mycluster AND labels.env = staging AND labels.starred = * |
296 * | 292 * |
| 293 * [pageToken] - Optional. The standard List page token. |
| 294 * |
| 295 * [pageSize] - Optional. The standard List page size. |
| 296 * |
297 * Completes with a [ListClustersResponse]. | 297 * Completes with a [ListClustersResponse]. |
298 * | 298 * |
299 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 299 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
300 * error. | 300 * error. |
301 * | 301 * |
302 * If the used [http.Client] completes with an error when making a REST call, | 302 * If the used [http.Client] completes with an error when making a REST call, |
303 * this method will complete with the same error. | 303 * this method will complete with the same error. |
304 */ | 304 */ |
305 async.Future<ListClustersResponse> list(core.String projectId, core.String reg
ion, {core.String pageToken, core.int pageSize, core.String filter}) { | 305 async.Future<ListClustersResponse> list(core.String projectId, core.String reg
ion, {core.String filter, core.String pageToken, core.int pageSize}) { |
306 var _url = null; | 306 var _url = null; |
307 var _queryParams = new core.Map(); | 307 var _queryParams = new core.Map(); |
308 var _uploadMedia = null; | 308 var _uploadMedia = null; |
309 var _uploadOptions = null; | 309 var _uploadOptions = null; |
310 var _downloadOptions = commons.DownloadOptions.Metadata; | 310 var _downloadOptions = commons.DownloadOptions.Metadata; |
311 var _body = null; | 311 var _body = null; |
312 | 312 |
313 if (projectId == null) { | 313 if (projectId == null) { |
314 throw new core.ArgumentError("Parameter projectId is required."); | 314 throw new core.ArgumentError("Parameter projectId is required."); |
315 } | 315 } |
316 if (region == null) { | 316 if (region == null) { |
317 throw new core.ArgumentError("Parameter region is required."); | 317 throw new core.ArgumentError("Parameter region is required."); |
318 } | 318 } |
| 319 if (filter != null) { |
| 320 _queryParams["filter"] = [filter]; |
| 321 } |
319 if (pageToken != null) { | 322 if (pageToken != null) { |
320 _queryParams["pageToken"] = [pageToken]; | 323 _queryParams["pageToken"] = [pageToken]; |
321 } | 324 } |
322 if (pageSize != null) { | 325 if (pageSize != null) { |
323 _queryParams["pageSize"] = ["${pageSize}"]; | 326 _queryParams["pageSize"] = ["${pageSize}"]; |
324 } | 327 } |
325 if (filter != null) { | |
326 _queryParams["filter"] = [filter]; | |
327 } | |
328 | 328 |
329 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regi
ons/' + commons.Escaper.ecapeVariable('$region') + '/clusters'; | 329 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regi
ons/' + commons.Escaper.ecapeVariable('$region') + '/clusters'; |
330 | 330 |
331 var _response = _requester.request(_url, | 331 var _response = _requester.request(_url, |
332 "GET", | 332 "GET", |
333 body: _body, | 333 body: _body, |
334 queryParams: _queryParams, | 334 queryParams: _queryParams, |
335 uploadOptions: _uploadOptions, | 335 uploadOptions: _uploadOptions, |
336 uploadMedia: _uploadMedia, | 336 uploadMedia: _uploadMedia, |
337 downloadOptions: _downloadOptions); | 337 downloadOptions: _downloadOptions); |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 queryParams: _queryParams, | 938 queryParams: _queryParams, |
939 uploadOptions: _uploadOptions, | 939 uploadOptions: _uploadOptions, |
940 uploadMedia: _uploadMedia, | 940 uploadMedia: _uploadMedia, |
941 downloadOptions: _downloadOptions); | 941 downloadOptions: _downloadOptions); |
942 return _response.then((data) => new Operation.fromJson(data)); | 942 return _response.then((data) => new Operation.fromJson(data)); |
943 } | 943 } |
944 | 944 |
945 /** | 945 /** |
946 * Lists operations that match the specified filter in the request. If the | 946 * Lists operations that match the specified filter in the request. If the |
947 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name | 947 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name |
948 * binding below allows API services to override the binding to use different | 948 * binding allows API services to override the binding to use different |
949 * resource name schemes, such as users / * /operations. | 949 * resource name schemes, such as users / * /operations. To override the |
| 950 * binding, API services can add a binding such as "/v1/{name=users / * |
| 951 * }/operations" to their service configuration. For backwards compatibility, |
| 952 * the default name includes the operations collection id, however overriding |
| 953 * users must ensure the name binding is the parent resource, without the |
| 954 * operations collection id. |
950 * | 955 * |
951 * Request parameters: | 956 * Request parameters: |
952 * | 957 * |
953 * [name] - The name of the operation collection. | 958 * [name] - The name of the operation's parent resource. |
954 * Value must have pattern "^projects/[^/]+/regions/[^/]+/operations$". | 959 * Value must have pattern "^projects/[^/]+/regions/[^/]+/operations$". |
955 * | 960 * |
| 961 * [pageToken] - The standard list page token. |
| 962 * |
956 * [pageSize] - The standard list page size. | 963 * [pageSize] - The standard list page size. |
957 * | 964 * |
958 * [filter] - The standard list filter. | 965 * [filter] - The standard list filter. |
959 * | 966 * |
960 * [pageToken] - The standard list page token. | |
961 * | |
962 * Completes with a [ListOperationsResponse]. | 967 * Completes with a [ListOperationsResponse]. |
963 * | 968 * |
964 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 969 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
965 * error. | 970 * error. |
966 * | 971 * |
967 * If the used [http.Client] completes with an error when making a REST call, | 972 * If the used [http.Client] completes with an error when making a REST call, |
968 * this method will complete with the same error. | 973 * this method will complete with the same error. |
969 */ | 974 */ |
970 async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize
, core.String filter, core.String pageToken}) { | 975 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT
oken, core.int pageSize, core.String filter}) { |
971 var _url = null; | 976 var _url = null; |
972 var _queryParams = new core.Map(); | 977 var _queryParams = new core.Map(); |
973 var _uploadMedia = null; | 978 var _uploadMedia = null; |
974 var _uploadOptions = null; | 979 var _uploadOptions = null; |
975 var _downloadOptions = commons.DownloadOptions.Metadata; | 980 var _downloadOptions = commons.DownloadOptions.Metadata; |
976 var _body = null; | 981 var _body = null; |
977 | 982 |
978 if (name == null) { | 983 if (name == null) { |
979 throw new core.ArgumentError("Parameter name is required."); | 984 throw new core.ArgumentError("Parameter name is required."); |
980 } | 985 } |
| 986 if (pageToken != null) { |
| 987 _queryParams["pageToken"] = [pageToken]; |
| 988 } |
981 if (pageSize != null) { | 989 if (pageSize != null) { |
982 _queryParams["pageSize"] = ["${pageSize}"]; | 990 _queryParams["pageSize"] = ["${pageSize}"]; |
983 } | 991 } |
984 if (filter != null) { | 992 if (filter != null) { |
985 _queryParams["filter"] = [filter]; | 993 _queryParams["filter"] = [filter]; |
986 } | 994 } |
987 if (pageToken != null) { | |
988 _queryParams["pageToken"] = [pageToken]; | |
989 } | |
990 | 995 |
991 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 996 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
992 | 997 |
993 var _response = _requester.request(_url, | 998 var _response = _requester.request(_url, |
994 "GET", | 999 "GET", |
995 body: _body, | 1000 body: _body, |
996 queryParams: _queryParams, | 1001 queryParams: _queryParams, |
997 uploadOptions: _uploadOptions, | 1002 uploadOptions: _uploadOptions, |
998 uploadMedia: _uploadMedia, | 1003 uploadMedia: _uploadMedia, |
999 downloadOptions: _downloadOptions); | 1004 downloadOptions: _downloadOptions); |
(...skipping 24 matching lines...) Expand all Loading... |
1024 | 1029 |
1025 AcceleratorConfig.fromJson(core.Map _json) { | 1030 AcceleratorConfig.fromJson(core.Map _json) { |
1026 if (_json.containsKey("acceleratorCount")) { | 1031 if (_json.containsKey("acceleratorCount")) { |
1027 acceleratorCount = _json["acceleratorCount"]; | 1032 acceleratorCount = _json["acceleratorCount"]; |
1028 } | 1033 } |
1029 if (_json.containsKey("acceleratorTypeUri")) { | 1034 if (_json.containsKey("acceleratorTypeUri")) { |
1030 acceleratorTypeUri = _json["acceleratorTypeUri"]; | 1035 acceleratorTypeUri = _json["acceleratorTypeUri"]; |
1031 } | 1036 } |
1032 } | 1037 } |
1033 | 1038 |
1034 core.Map toJson() { | 1039 core.Map<core.String, core.Object> toJson() { |
1035 var _json = new core.Map(); | 1040 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1036 if (acceleratorCount != null) { | 1041 if (acceleratorCount != null) { |
1037 _json["acceleratorCount"] = acceleratorCount; | 1042 _json["acceleratorCount"] = acceleratorCount; |
1038 } | 1043 } |
1039 if (acceleratorTypeUri != null) { | 1044 if (acceleratorTypeUri != null) { |
1040 _json["acceleratorTypeUri"] = acceleratorTypeUri; | 1045 _json["acceleratorTypeUri"] = acceleratorTypeUri; |
1041 } | 1046 } |
1042 return _json; | 1047 return _json; |
1043 } | 1048 } |
1044 } | 1049 } |
1045 | 1050 |
1046 /** A request to cancel a job. */ | 1051 /** A request to cancel a job. */ |
1047 class CancelJobRequest { | 1052 class CancelJobRequest { |
1048 | 1053 |
1049 CancelJobRequest(); | 1054 CancelJobRequest(); |
1050 | 1055 |
1051 CancelJobRequest.fromJson(core.Map _json) { | 1056 CancelJobRequest.fromJson(core.Map _json) { |
1052 } | 1057 } |
1053 | 1058 |
1054 core.Map toJson() { | 1059 core.Map<core.String, core.Object> toJson() { |
1055 var _json = new core.Map(); | 1060 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1056 return _json; | 1061 return _json; |
1057 } | 1062 } |
1058 } | 1063 } |
1059 | 1064 |
1060 /** | 1065 /** |
1061 * Describes the identifying information, config, and status of a cluster of | 1066 * Describes the identifying information, config, and status of a cluster of |
1062 * Google Compute Engine instances. | 1067 * Google Compute Engine instances. |
1063 */ | 1068 */ |
1064 class Cluster { | 1069 class Cluster { |
1065 /** | 1070 /** |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1123 projectId = _json["projectId"]; | 1128 projectId = _json["projectId"]; |
1124 } | 1129 } |
1125 if (_json.containsKey("status")) { | 1130 if (_json.containsKey("status")) { |
1126 status = new ClusterStatus.fromJson(_json["status"]); | 1131 status = new ClusterStatus.fromJson(_json["status"]); |
1127 } | 1132 } |
1128 if (_json.containsKey("statusHistory")) { | 1133 if (_json.containsKey("statusHistory")) { |
1129 statusHistory = _json["statusHistory"].map((value) => new ClusterStatus.fr
omJson(value)).toList(); | 1134 statusHistory = _json["statusHistory"].map((value) => new ClusterStatus.fr
omJson(value)).toList(); |
1130 } | 1135 } |
1131 } | 1136 } |
1132 | 1137 |
1133 core.Map toJson() { | 1138 core.Map<core.String, core.Object> toJson() { |
1134 var _json = new core.Map(); | 1139 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1135 if (clusterName != null) { | 1140 if (clusterName != null) { |
1136 _json["clusterName"] = clusterName; | 1141 _json["clusterName"] = clusterName; |
1137 } | 1142 } |
1138 if (clusterUuid != null) { | 1143 if (clusterUuid != null) { |
1139 _json["clusterUuid"] = clusterUuid; | 1144 _json["clusterUuid"] = clusterUuid; |
1140 } | 1145 } |
1141 if (config != null) { | 1146 if (config != null) { |
1142 _json["config"] = (config).toJson(); | 1147 _json["config"] = (config).toJson(); |
1143 } | 1148 } |
1144 if (labels != null) { | 1149 if (labels != null) { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 secondaryWorkerConfig = new InstanceGroupConfig.fromJson(_json["secondaryW
orkerConfig"]); | 1232 secondaryWorkerConfig = new InstanceGroupConfig.fromJson(_json["secondaryW
orkerConfig"]); |
1228 } | 1233 } |
1229 if (_json.containsKey("softwareConfig")) { | 1234 if (_json.containsKey("softwareConfig")) { |
1230 softwareConfig = new SoftwareConfig.fromJson(_json["softwareConfig"]); | 1235 softwareConfig = new SoftwareConfig.fromJson(_json["softwareConfig"]); |
1231 } | 1236 } |
1232 if (_json.containsKey("workerConfig")) { | 1237 if (_json.containsKey("workerConfig")) { |
1233 workerConfig = new InstanceGroupConfig.fromJson(_json["workerConfig"]); | 1238 workerConfig = new InstanceGroupConfig.fromJson(_json["workerConfig"]); |
1234 } | 1239 } |
1235 } | 1240 } |
1236 | 1241 |
1237 core.Map toJson() { | 1242 core.Map<core.String, core.Object> toJson() { |
1238 var _json = new core.Map(); | 1243 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1239 if (configBucket != null) { | 1244 if (configBucket != null) { |
1240 _json["configBucket"] = configBucket; | 1245 _json["configBucket"] = configBucket; |
1241 } | 1246 } |
1242 if (gceClusterConfig != null) { | 1247 if (gceClusterConfig != null) { |
1243 _json["gceClusterConfig"] = (gceClusterConfig).toJson(); | 1248 _json["gceClusterConfig"] = (gceClusterConfig).toJson(); |
1244 } | 1249 } |
1245 if (initializationActions != null) { | 1250 if (initializationActions != null) { |
1246 _json["initializationActions"] = initializationActions.map((value) => (val
ue).toJson()).toList(); | 1251 _json["initializationActions"] = initializationActions.map((value) => (val
ue).toJson()).toList(); |
1247 } | 1252 } |
1248 if (masterConfig != null) { | 1253 if (masterConfig != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
1276 | 1281 |
1277 ClusterMetrics.fromJson(core.Map _json) { | 1282 ClusterMetrics.fromJson(core.Map _json) { |
1278 if (_json.containsKey("hdfsMetrics")) { | 1283 if (_json.containsKey("hdfsMetrics")) { |
1279 hdfsMetrics = _json["hdfsMetrics"]; | 1284 hdfsMetrics = _json["hdfsMetrics"]; |
1280 } | 1285 } |
1281 if (_json.containsKey("yarnMetrics")) { | 1286 if (_json.containsKey("yarnMetrics")) { |
1282 yarnMetrics = _json["yarnMetrics"]; | 1287 yarnMetrics = _json["yarnMetrics"]; |
1283 } | 1288 } |
1284 } | 1289 } |
1285 | 1290 |
1286 core.Map toJson() { | 1291 core.Map<core.String, core.Object> toJson() { |
1287 var _json = new core.Map(); | 1292 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1288 if (hdfsMetrics != null) { | 1293 if (hdfsMetrics != null) { |
1289 _json["hdfsMetrics"] = hdfsMetrics; | 1294 _json["hdfsMetrics"] = hdfsMetrics; |
1290 } | 1295 } |
1291 if (yarnMetrics != null) { | 1296 if (yarnMetrics != null) { |
1292 _json["yarnMetrics"] = yarnMetrics; | 1297 _json["yarnMetrics"] = yarnMetrics; |
1293 } | 1298 } |
1294 return _json; | 1299 return _json; |
1295 } | 1300 } |
1296 } | 1301 } |
1297 | 1302 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 status = new ClusterOperationStatus.fromJson(_json["status"]); | 1341 status = new ClusterOperationStatus.fromJson(_json["status"]); |
1337 } | 1342 } |
1338 if (_json.containsKey("statusHistory")) { | 1343 if (_json.containsKey("statusHistory")) { |
1339 statusHistory = _json["statusHistory"].map((value) => new ClusterOperation
Status.fromJson(value)).toList(); | 1344 statusHistory = _json["statusHistory"].map((value) => new ClusterOperation
Status.fromJson(value)).toList(); |
1340 } | 1345 } |
1341 if (_json.containsKey("warnings")) { | 1346 if (_json.containsKey("warnings")) { |
1342 warnings = _json["warnings"]; | 1347 warnings = _json["warnings"]; |
1343 } | 1348 } |
1344 } | 1349 } |
1345 | 1350 |
1346 core.Map toJson() { | 1351 core.Map<core.String, core.Object> toJson() { |
1347 var _json = new core.Map(); | 1352 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1348 if (clusterName != null) { | 1353 if (clusterName != null) { |
1349 _json["clusterName"] = clusterName; | 1354 _json["clusterName"] = clusterName; |
1350 } | 1355 } |
1351 if (clusterUuid != null) { | 1356 if (clusterUuid != null) { |
1352 _json["clusterUuid"] = clusterUuid; | 1357 _json["clusterUuid"] = clusterUuid; |
1353 } | 1358 } |
1354 if (description != null) { | 1359 if (description != null) { |
1355 _json["description"] = description; | 1360 _json["description"] = description; |
1356 } | 1361 } |
1357 if (labels != null) { | 1362 if (labels != null) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1401 innerState = _json["innerState"]; | 1406 innerState = _json["innerState"]; |
1402 } | 1407 } |
1403 if (_json.containsKey("state")) { | 1408 if (_json.containsKey("state")) { |
1404 state = _json["state"]; | 1409 state = _json["state"]; |
1405 } | 1410 } |
1406 if (_json.containsKey("stateStartTime")) { | 1411 if (_json.containsKey("stateStartTime")) { |
1407 stateStartTime = _json["stateStartTime"]; | 1412 stateStartTime = _json["stateStartTime"]; |
1408 } | 1413 } |
1409 } | 1414 } |
1410 | 1415 |
1411 core.Map toJson() { | 1416 core.Map<core.String, core.Object> toJson() { |
1412 var _json = new core.Map(); | 1417 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1413 if (details != null) { | 1418 if (details != null) { |
1414 _json["details"] = details; | 1419 _json["details"] = details; |
1415 } | 1420 } |
1416 if (innerState != null) { | 1421 if (innerState != null) { |
1417 _json["innerState"] = innerState; | 1422 _json["innerState"] = innerState; |
1418 } | 1423 } |
1419 if (state != null) { | 1424 if (state != null) { |
1420 _json["state"] = state; | 1425 _json["state"] = state; |
1421 } | 1426 } |
1422 if (stateStartTime != null) { | 1427 if (stateStartTime != null) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1469 state = _json["state"]; | 1474 state = _json["state"]; |
1470 } | 1475 } |
1471 if (_json.containsKey("stateStartTime")) { | 1476 if (_json.containsKey("stateStartTime")) { |
1472 stateStartTime = _json["stateStartTime"]; | 1477 stateStartTime = _json["stateStartTime"]; |
1473 } | 1478 } |
1474 if (_json.containsKey("substate")) { | 1479 if (_json.containsKey("substate")) { |
1475 substate = _json["substate"]; | 1480 substate = _json["substate"]; |
1476 } | 1481 } |
1477 } | 1482 } |
1478 | 1483 |
1479 core.Map toJson() { | 1484 core.Map<core.String, core.Object> toJson() { |
1480 var _json = new core.Map(); | 1485 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1481 if (detail != null) { | 1486 if (detail != null) { |
1482 _json["detail"] = detail; | 1487 _json["detail"] = detail; |
1483 } | 1488 } |
1484 if (state != null) { | 1489 if (state != null) { |
1485 _json["state"] = state; | 1490 _json["state"] = state; |
1486 } | 1491 } |
1487 if (stateStartTime != null) { | 1492 if (stateStartTime != null) { |
1488 _json["stateStartTime"] = stateStartTime; | 1493 _json["stateStartTime"] = stateStartTime; |
1489 } | 1494 } |
1490 if (substate != null) { | 1495 if (substate != null) { |
1491 _json["substate"] = substate; | 1496 _json["substate"] = substate; |
1492 } | 1497 } |
1493 return _json; | 1498 return _json; |
1494 } | 1499 } |
1495 } | 1500 } |
1496 | 1501 |
1497 /** The location where output from diagnostic command can be found. */ | |
1498 class DiagnoseClusterOutputLocation { | |
1499 /** | |
1500 * Output-only The Google Cloud Storage URI of the diagnostic output. This | |
1501 * will be a plain text file with summary of collected diagnostics. | |
1502 */ | |
1503 core.String outputUri; | |
1504 | |
1505 DiagnoseClusterOutputLocation(); | |
1506 | |
1507 DiagnoseClusterOutputLocation.fromJson(core.Map _json) { | |
1508 if (_json.containsKey("outputUri")) { | |
1509 outputUri = _json["outputUri"]; | |
1510 } | |
1511 } | |
1512 | |
1513 core.Map toJson() { | |
1514 var _json = new core.Map(); | |
1515 if (outputUri != null) { | |
1516 _json["outputUri"] = outputUri; | |
1517 } | |
1518 return _json; | |
1519 } | |
1520 } | |
1521 | |
1522 /** A request to collect cluster diagnostic information. */ | 1502 /** A request to collect cluster diagnostic information. */ |
1523 class DiagnoseClusterRequest { | 1503 class DiagnoseClusterRequest { |
1524 | 1504 |
1525 DiagnoseClusterRequest(); | 1505 DiagnoseClusterRequest(); |
1526 | 1506 |
1527 DiagnoseClusterRequest.fromJson(core.Map _json) { | 1507 DiagnoseClusterRequest.fromJson(core.Map _json) { |
1528 } | 1508 } |
1529 | 1509 |
1530 core.Map toJson() { | 1510 core.Map<core.String, core.Object> toJson() { |
1531 var _json = new core.Map(); | 1511 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1532 return _json; | 1512 return _json; |
1533 } | 1513 } |
1534 } | 1514 } |
1535 | 1515 |
1536 /** The location of diagnostic output. */ | 1516 /** The location of diagnostic output. */ |
1537 class DiagnoseClusterResults { | 1517 class DiagnoseClusterResults { |
1538 /** | 1518 /** |
1539 * Output-only. The Google Cloud Storage URI of the diagnostic output. The | 1519 * Output-only. The Google Cloud Storage URI of the diagnostic output. The |
1540 * output report is a plain text file with a summary of collected diagnostics. | 1520 * output report is a plain text file with a summary of collected diagnostics. |
1541 */ | 1521 */ |
1542 core.String outputUri; | 1522 core.String outputUri; |
1543 | 1523 |
1544 DiagnoseClusterResults(); | 1524 DiagnoseClusterResults(); |
1545 | 1525 |
1546 DiagnoseClusterResults.fromJson(core.Map _json) { | 1526 DiagnoseClusterResults.fromJson(core.Map _json) { |
1547 if (_json.containsKey("outputUri")) { | 1527 if (_json.containsKey("outputUri")) { |
1548 outputUri = _json["outputUri"]; | 1528 outputUri = _json["outputUri"]; |
1549 } | 1529 } |
1550 } | 1530 } |
1551 | 1531 |
1552 core.Map toJson() { | 1532 core.Map<core.String, core.Object> toJson() { |
1553 var _json = new core.Map(); | 1533 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1554 if (outputUri != null) { | 1534 if (outputUri != null) { |
1555 _json["outputUri"] = outputUri; | 1535 _json["outputUri"] = outputUri; |
1556 } | 1536 } |
1557 return _json; | 1537 return _json; |
1558 } | 1538 } |
1559 } | 1539 } |
1560 | 1540 |
1561 /** Specifies the config of disk options for a group of VM instances. */ | 1541 /** Specifies the config of disk options for a group of VM instances. */ |
1562 class DiskConfig { | 1542 class DiskConfig { |
1563 /** Optional. Size in GB of the boot disk (default is 500GB). */ | 1543 /** Optional. Size in GB of the boot disk (default is 500GB). */ |
(...skipping 11 matching lines...) Expand all Loading... |
1575 | 1555 |
1576 DiskConfig.fromJson(core.Map _json) { | 1556 DiskConfig.fromJson(core.Map _json) { |
1577 if (_json.containsKey("bootDiskSizeGb")) { | 1557 if (_json.containsKey("bootDiskSizeGb")) { |
1578 bootDiskSizeGb = _json["bootDiskSizeGb"]; | 1558 bootDiskSizeGb = _json["bootDiskSizeGb"]; |
1579 } | 1559 } |
1580 if (_json.containsKey("numLocalSsds")) { | 1560 if (_json.containsKey("numLocalSsds")) { |
1581 numLocalSsds = _json["numLocalSsds"]; | 1561 numLocalSsds = _json["numLocalSsds"]; |
1582 } | 1562 } |
1583 } | 1563 } |
1584 | 1564 |
1585 core.Map toJson() { | 1565 core.Map<core.String, core.Object> toJson() { |
1586 var _json = new core.Map(); | 1566 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1587 if (bootDiskSizeGb != null) { | 1567 if (bootDiskSizeGb != null) { |
1588 _json["bootDiskSizeGb"] = bootDiskSizeGb; | 1568 _json["bootDiskSizeGb"] = bootDiskSizeGb; |
1589 } | 1569 } |
1590 if (numLocalSsds != null) { | 1570 if (numLocalSsds != null) { |
1591 _json["numLocalSsds"] = numLocalSsds; | 1571 _json["numLocalSsds"] = numLocalSsds; |
1592 } | 1572 } |
1593 return _json; | 1573 return _json; |
1594 } | 1574 } |
1595 } | 1575 } |
1596 | 1576 |
1597 /** | 1577 /** |
1598 * A generic empty message that you can re-use to avoid defining duplicated | 1578 * A generic empty message that you can re-use to avoid defining duplicated |
1599 * empty messages in your APIs. A typical example is to use it as the request or | 1579 * empty messages in your APIs. A typical example is to use it as the request or |
1600 * the response type of an API method. For instance: | 1580 * the response type of an API method. For instance: |
1601 * service Foo { | 1581 * service Foo { |
1602 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 1582 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
1603 * } | 1583 * } |
1604 * The JSON representation for Empty is empty JSON object {}. | 1584 * The JSON representation for Empty is empty JSON object {}. |
1605 */ | 1585 */ |
1606 class Empty { | 1586 class Empty { |
1607 | 1587 |
1608 Empty(); | 1588 Empty(); |
1609 | 1589 |
1610 Empty.fromJson(core.Map _json) { | 1590 Empty.fromJson(core.Map _json) { |
1611 } | 1591 } |
1612 | 1592 |
1613 core.Map toJson() { | 1593 core.Map<core.String, core.Object> toJson() { |
1614 var _json = new core.Map(); | 1594 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1615 return _json; | 1595 return _json; |
1616 } | 1596 } |
1617 } | 1597 } |
1618 | 1598 |
1619 /** | 1599 /** |
1620 * Common config settings for resources of Google Compute Engine cluster | 1600 * Common config settings for resources of Google Compute Engine cluster |
1621 * instances, applicable to all instances in the cluster. | 1601 * instances, applicable to all instances in the cluster. |
1622 */ | 1602 */ |
1623 class GceClusterConfig { | 1603 class GceClusterConfig { |
1624 /** | 1604 /** |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1710 subnetworkUri = _json["subnetworkUri"]; | 1690 subnetworkUri = _json["subnetworkUri"]; |
1711 } | 1691 } |
1712 if (_json.containsKey("tags")) { | 1692 if (_json.containsKey("tags")) { |
1713 tags = _json["tags"]; | 1693 tags = _json["tags"]; |
1714 } | 1694 } |
1715 if (_json.containsKey("zoneUri")) { | 1695 if (_json.containsKey("zoneUri")) { |
1716 zoneUri = _json["zoneUri"]; | 1696 zoneUri = _json["zoneUri"]; |
1717 } | 1697 } |
1718 } | 1698 } |
1719 | 1699 |
1720 core.Map toJson() { | 1700 core.Map<core.String, core.Object> toJson() { |
1721 var _json = new core.Map(); | 1701 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1722 if (internalIpOnly != null) { | 1702 if (internalIpOnly != null) { |
1723 _json["internalIpOnly"] = internalIpOnly; | 1703 _json["internalIpOnly"] = internalIpOnly; |
1724 } | 1704 } |
1725 if (metadata != null) { | 1705 if (metadata != null) { |
1726 _json["metadata"] = metadata; | 1706 _json["metadata"] = metadata; |
1727 } | 1707 } |
1728 if (networkUri != null) { | 1708 if (networkUri != null) { |
1729 _json["networkUri"] = networkUri; | 1709 _json["networkUri"] = networkUri; |
1730 } | 1710 } |
1731 if (serviceAccount != null) { | 1711 if (serviceAccount != null) { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1821 mainClass = _json["mainClass"]; | 1801 mainClass = _json["mainClass"]; |
1822 } | 1802 } |
1823 if (_json.containsKey("mainJarFileUri")) { | 1803 if (_json.containsKey("mainJarFileUri")) { |
1824 mainJarFileUri = _json["mainJarFileUri"]; | 1804 mainJarFileUri = _json["mainJarFileUri"]; |
1825 } | 1805 } |
1826 if (_json.containsKey("properties")) { | 1806 if (_json.containsKey("properties")) { |
1827 properties = _json["properties"]; | 1807 properties = _json["properties"]; |
1828 } | 1808 } |
1829 } | 1809 } |
1830 | 1810 |
1831 core.Map toJson() { | 1811 core.Map<core.String, core.Object> toJson() { |
1832 var _json = new core.Map(); | 1812 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1833 if (archiveUris != null) { | 1813 if (archiveUris != null) { |
1834 _json["archiveUris"] = archiveUris; | 1814 _json["archiveUris"] = archiveUris; |
1835 } | 1815 } |
1836 if (args != null) { | 1816 if (args != null) { |
1837 _json["args"] = args; | 1817 _json["args"] = args; |
1838 } | 1818 } |
1839 if (fileUris != null) { | 1819 if (fileUris != null) { |
1840 _json["fileUris"] = fileUris; | 1820 _json["fileUris"] = fileUris; |
1841 } | 1821 } |
1842 if (jarFileUris != null) { | 1822 if (jarFileUris != null) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1907 queryFileUri = _json["queryFileUri"]; | 1887 queryFileUri = _json["queryFileUri"]; |
1908 } | 1888 } |
1909 if (_json.containsKey("queryList")) { | 1889 if (_json.containsKey("queryList")) { |
1910 queryList = new QueryList.fromJson(_json["queryList"]); | 1890 queryList = new QueryList.fromJson(_json["queryList"]); |
1911 } | 1891 } |
1912 if (_json.containsKey("scriptVariables")) { | 1892 if (_json.containsKey("scriptVariables")) { |
1913 scriptVariables = _json["scriptVariables"]; | 1893 scriptVariables = _json["scriptVariables"]; |
1914 } | 1894 } |
1915 } | 1895 } |
1916 | 1896 |
1917 core.Map toJson() { | 1897 core.Map<core.String, core.Object> toJson() { |
1918 var _json = new core.Map(); | 1898 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1919 if (continueOnFailure != null) { | 1899 if (continueOnFailure != null) { |
1920 _json["continueOnFailure"] = continueOnFailure; | 1900 _json["continueOnFailure"] = continueOnFailure; |
1921 } | 1901 } |
1922 if (jarFileUris != null) { | 1902 if (jarFileUris != null) { |
1923 _json["jarFileUris"] = jarFileUris; | 1903 _json["jarFileUris"] = jarFileUris; |
1924 } | 1904 } |
1925 if (properties != null) { | 1905 if (properties != null) { |
1926 _json["properties"] = properties; | 1906 _json["properties"] = properties; |
1927 } | 1907 } |
1928 if (queryFileUri != null) { | 1908 if (queryFileUri != null) { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2006 machineTypeUri = _json["machineTypeUri"]; | 1986 machineTypeUri = _json["machineTypeUri"]; |
2007 } | 1987 } |
2008 if (_json.containsKey("managedGroupConfig")) { | 1988 if (_json.containsKey("managedGroupConfig")) { |
2009 managedGroupConfig = new ManagedGroupConfig.fromJson(_json["managedGroupCo
nfig"]); | 1989 managedGroupConfig = new ManagedGroupConfig.fromJson(_json["managedGroupCo
nfig"]); |
2010 } | 1990 } |
2011 if (_json.containsKey("numInstances")) { | 1991 if (_json.containsKey("numInstances")) { |
2012 numInstances = _json["numInstances"]; | 1992 numInstances = _json["numInstances"]; |
2013 } | 1993 } |
2014 } | 1994 } |
2015 | 1995 |
2016 core.Map toJson() { | 1996 core.Map<core.String, core.Object> toJson() { |
2017 var _json = new core.Map(); | 1997 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2018 if (accelerators != null) { | 1998 if (accelerators != null) { |
2019 _json["accelerators"] = accelerators.map((value) => (value).toJson()).toLi
st(); | 1999 _json["accelerators"] = accelerators.map((value) => (value).toJson()).toLi
st(); |
2020 } | 2000 } |
2021 if (diskConfig != null) { | 2001 if (diskConfig != null) { |
2022 _json["diskConfig"] = (diskConfig).toJson(); | 2002 _json["diskConfig"] = (diskConfig).toJson(); |
2023 } | 2003 } |
2024 if (imageUri != null) { | 2004 if (imageUri != null) { |
2025 _json["imageUri"] = imageUri; | 2005 _json["imageUri"] = imageUri; |
2026 } | 2006 } |
2027 if (instanceNames != null) { | 2007 if (instanceNames != null) { |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2148 status = new JobStatus.fromJson(_json["status"]); | 2128 status = new JobStatus.fromJson(_json["status"]); |
2149 } | 2129 } |
2150 if (_json.containsKey("statusHistory")) { | 2130 if (_json.containsKey("statusHistory")) { |
2151 statusHistory = _json["statusHistory"].map((value) => new JobStatus.fromJs
on(value)).toList(); | 2131 statusHistory = _json["statusHistory"].map((value) => new JobStatus.fromJs
on(value)).toList(); |
2152 } | 2132 } |
2153 if (_json.containsKey("yarnApplications")) { | 2133 if (_json.containsKey("yarnApplications")) { |
2154 yarnApplications = _json["yarnApplications"].map((value) => new YarnApplic
ation.fromJson(value)).toList(); | 2134 yarnApplications = _json["yarnApplications"].map((value) => new YarnApplic
ation.fromJson(value)).toList(); |
2155 } | 2135 } |
2156 } | 2136 } |
2157 | 2137 |
2158 core.Map toJson() { | 2138 core.Map<core.String, core.Object> toJson() { |
2159 var _json = new core.Map(); | 2139 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2160 if (driverControlFilesUri != null) { | 2140 if (driverControlFilesUri != null) { |
2161 _json["driverControlFilesUri"] = driverControlFilesUri; | 2141 _json["driverControlFilesUri"] = driverControlFilesUri; |
2162 } | 2142 } |
2163 if (driverOutputResourceUri != null) { | 2143 if (driverOutputResourceUri != null) { |
2164 _json["driverOutputResourceUri"] = driverOutputResourceUri; | 2144 _json["driverOutputResourceUri"] = driverOutputResourceUri; |
2165 } | 2145 } |
2166 if (hadoopJob != null) { | 2146 if (hadoopJob != null) { |
2167 _json["hadoopJob"] = (hadoopJob).toJson(); | 2147 _json["hadoopJob"] = (hadoopJob).toJson(); |
2168 } | 2148 } |
2169 if (hiveJob != null) { | 2149 if (hiveJob != null) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2220 | 2200 |
2221 JobPlacement.fromJson(core.Map _json) { | 2201 JobPlacement.fromJson(core.Map _json) { |
2222 if (_json.containsKey("clusterName")) { | 2202 if (_json.containsKey("clusterName")) { |
2223 clusterName = _json["clusterName"]; | 2203 clusterName = _json["clusterName"]; |
2224 } | 2204 } |
2225 if (_json.containsKey("clusterUuid")) { | 2205 if (_json.containsKey("clusterUuid")) { |
2226 clusterUuid = _json["clusterUuid"]; | 2206 clusterUuid = _json["clusterUuid"]; |
2227 } | 2207 } |
2228 } | 2208 } |
2229 | 2209 |
2230 core.Map toJson() { | 2210 core.Map<core.String, core.Object> toJson() { |
2231 var _json = new core.Map(); | 2211 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2232 if (clusterName != null) { | 2212 if (clusterName != null) { |
2233 _json["clusterName"] = clusterName; | 2213 _json["clusterName"] = clusterName; |
2234 } | 2214 } |
2235 if (clusterUuid != null) { | 2215 if (clusterUuid != null) { |
2236 _json["clusterUuid"] = clusterUuid; | 2216 _json["clusterUuid"] = clusterUuid; |
2237 } | 2217 } |
2238 return _json; | 2218 return _json; |
2239 } | 2219 } |
2240 } | 2220 } |
2241 | 2221 |
(...skipping 17 matching lines...) Expand all Loading... |
2259 | 2239 |
2260 JobReference.fromJson(core.Map _json) { | 2240 JobReference.fromJson(core.Map _json) { |
2261 if (_json.containsKey("jobId")) { | 2241 if (_json.containsKey("jobId")) { |
2262 jobId = _json["jobId"]; | 2242 jobId = _json["jobId"]; |
2263 } | 2243 } |
2264 if (_json.containsKey("projectId")) { | 2244 if (_json.containsKey("projectId")) { |
2265 projectId = _json["projectId"]; | 2245 projectId = _json["projectId"]; |
2266 } | 2246 } |
2267 } | 2247 } |
2268 | 2248 |
2269 core.Map toJson() { | 2249 core.Map<core.String, core.Object> toJson() { |
2270 var _json = new core.Map(); | 2250 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2271 if (jobId != null) { | 2251 if (jobId != null) { |
2272 _json["jobId"] = jobId; | 2252 _json["jobId"] = jobId; |
2273 } | 2253 } |
2274 if (projectId != null) { | 2254 if (projectId != null) { |
2275 _json["projectId"] = projectId; | 2255 _json["projectId"] = projectId; |
2276 } | 2256 } |
2277 return _json; | 2257 return _json; |
2278 } | 2258 } |
2279 } | 2259 } |
2280 | 2260 |
(...skipping 11 matching lines...) Expand all Loading... |
2292 core.int maxFailuresPerHour; | 2272 core.int maxFailuresPerHour; |
2293 | 2273 |
2294 JobScheduling(); | 2274 JobScheduling(); |
2295 | 2275 |
2296 JobScheduling.fromJson(core.Map _json) { | 2276 JobScheduling.fromJson(core.Map _json) { |
2297 if (_json.containsKey("maxFailuresPerHour")) { | 2277 if (_json.containsKey("maxFailuresPerHour")) { |
2298 maxFailuresPerHour = _json["maxFailuresPerHour"]; | 2278 maxFailuresPerHour = _json["maxFailuresPerHour"]; |
2299 } | 2279 } |
2300 } | 2280 } |
2301 | 2281 |
2302 core.Map toJson() { | 2282 core.Map<core.String, core.Object> toJson() { |
2303 var _json = new core.Map(); | 2283 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2304 if (maxFailuresPerHour != null) { | 2284 if (maxFailuresPerHour != null) { |
2305 _json["maxFailuresPerHour"] = maxFailuresPerHour; | 2285 _json["maxFailuresPerHour"] = maxFailuresPerHour; |
2306 } | 2286 } |
2307 return _json; | 2287 return _json; |
2308 } | 2288 } |
2309 } | 2289 } |
2310 | 2290 |
2311 /** Cloud Dataproc job status. */ | 2291 /** Cloud Dataproc job status. */ |
2312 class JobStatus { | 2292 class JobStatus { |
2313 /** | 2293 /** |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2362 state = _json["state"]; | 2342 state = _json["state"]; |
2363 } | 2343 } |
2364 if (_json.containsKey("stateStartTime")) { | 2344 if (_json.containsKey("stateStartTime")) { |
2365 stateStartTime = _json["stateStartTime"]; | 2345 stateStartTime = _json["stateStartTime"]; |
2366 } | 2346 } |
2367 if (_json.containsKey("substate")) { | 2347 if (_json.containsKey("substate")) { |
2368 substate = _json["substate"]; | 2348 substate = _json["substate"]; |
2369 } | 2349 } |
2370 } | 2350 } |
2371 | 2351 |
2372 core.Map toJson() { | 2352 core.Map<core.String, core.Object> toJson() { |
2373 var _json = new core.Map(); | 2353 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2374 if (details != null) { | 2354 if (details != null) { |
2375 _json["details"] = details; | 2355 _json["details"] = details; |
2376 } | 2356 } |
2377 if (state != null) { | 2357 if (state != null) { |
2378 _json["state"] = state; | 2358 _json["state"] = state; |
2379 } | 2359 } |
2380 if (stateStartTime != null) { | 2360 if (stateStartTime != null) { |
2381 _json["stateStartTime"] = stateStartTime; | 2361 _json["stateStartTime"] = stateStartTime; |
2382 } | 2362 } |
2383 if (substate != null) { | 2363 if (substate != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
2402 | 2382 |
2403 ListClustersResponse.fromJson(core.Map _json) { | 2383 ListClustersResponse.fromJson(core.Map _json) { |
2404 if (_json.containsKey("clusters")) { | 2384 if (_json.containsKey("clusters")) { |
2405 clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).t
oList(); | 2385 clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).t
oList(); |
2406 } | 2386 } |
2407 if (_json.containsKey("nextPageToken")) { | 2387 if (_json.containsKey("nextPageToken")) { |
2408 nextPageToken = _json["nextPageToken"]; | 2388 nextPageToken = _json["nextPageToken"]; |
2409 } | 2389 } |
2410 } | 2390 } |
2411 | 2391 |
2412 core.Map toJson() { | 2392 core.Map<core.String, core.Object> toJson() { |
2413 var _json = new core.Map(); | 2393 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2414 if (clusters != null) { | 2394 if (clusters != null) { |
2415 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); | 2395 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); |
2416 } | 2396 } |
2417 if (nextPageToken != null) { | 2397 if (nextPageToken != null) { |
2418 _json["nextPageToken"] = nextPageToken; | 2398 _json["nextPageToken"] = nextPageToken; |
2419 } | 2399 } |
2420 return _json; | 2400 return _json; |
2421 } | 2401 } |
2422 } | 2402 } |
2423 | 2403 |
(...skipping 12 matching lines...) Expand all Loading... |
2436 | 2416 |
2437 ListJobsResponse.fromJson(core.Map _json) { | 2417 ListJobsResponse.fromJson(core.Map _json) { |
2438 if (_json.containsKey("jobs")) { | 2418 if (_json.containsKey("jobs")) { |
2439 jobs = _json["jobs"].map((value) => new Job.fromJson(value)).toList(); | 2419 jobs = _json["jobs"].map((value) => new Job.fromJson(value)).toList(); |
2440 } | 2420 } |
2441 if (_json.containsKey("nextPageToken")) { | 2421 if (_json.containsKey("nextPageToken")) { |
2442 nextPageToken = _json["nextPageToken"]; | 2422 nextPageToken = _json["nextPageToken"]; |
2443 } | 2423 } |
2444 } | 2424 } |
2445 | 2425 |
2446 core.Map toJson() { | 2426 core.Map<core.String, core.Object> toJson() { |
2447 var _json = new core.Map(); | 2427 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2448 if (jobs != null) { | 2428 if (jobs != null) { |
2449 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); | 2429 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); |
2450 } | 2430 } |
2451 if (nextPageToken != null) { | 2431 if (nextPageToken != null) { |
2452 _json["nextPageToken"] = nextPageToken; | 2432 _json["nextPageToken"] = nextPageToken; |
2453 } | 2433 } |
2454 return _json; | 2434 return _json; |
2455 } | 2435 } |
2456 } | 2436 } |
2457 | 2437 |
2458 /** The response message for Operations.ListOperations. */ | 2438 /** The response message for Operations.ListOperations. */ |
2459 class ListOperationsResponse { | 2439 class ListOperationsResponse { |
2460 /** The standard List next-page token. */ | 2440 /** The standard List next-page token. */ |
2461 core.String nextPageToken; | 2441 core.String nextPageToken; |
2462 /** A list of operations that matches the specified filter in the request. */ | 2442 /** A list of operations that matches the specified filter in the request. */ |
2463 core.List<Operation> operations; | 2443 core.List<Operation> operations; |
2464 | 2444 |
2465 ListOperationsResponse(); | 2445 ListOperationsResponse(); |
2466 | 2446 |
2467 ListOperationsResponse.fromJson(core.Map _json) { | 2447 ListOperationsResponse.fromJson(core.Map _json) { |
2468 if (_json.containsKey("nextPageToken")) { | 2448 if (_json.containsKey("nextPageToken")) { |
2469 nextPageToken = _json["nextPageToken"]; | 2449 nextPageToken = _json["nextPageToken"]; |
2470 } | 2450 } |
2471 if (_json.containsKey("operations")) { | 2451 if (_json.containsKey("operations")) { |
2472 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 2452 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
2473 } | 2453 } |
2474 } | 2454 } |
2475 | 2455 |
2476 core.Map toJson() { | 2456 core.Map<core.String, core.Object> toJson() { |
2477 var _json = new core.Map(); | 2457 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2478 if (nextPageToken != null) { | 2458 if (nextPageToken != null) { |
2479 _json["nextPageToken"] = nextPageToken; | 2459 _json["nextPageToken"] = nextPageToken; |
2480 } | 2460 } |
2481 if (operations != null) { | 2461 if (operations != null) { |
2482 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 2462 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
2483 } | 2463 } |
2484 return _json; | 2464 return _json; |
2485 } | 2465 } |
2486 } | 2466 } |
2487 | 2467 |
2488 /** The runtime logging config of the job. */ | 2468 /** The runtime logging config of the job. */ |
2489 class LoggingConfig { | 2469 class LoggingConfig { |
2490 /** | 2470 /** |
2491 * The per-package log levels for the driver. This may include "root" package | 2471 * The per-package log levels for the driver. This may include "root" package |
2492 * name to configure rootLogger. Examples: 'com.google = FATAL', 'root = | 2472 * name to configure rootLogger. Examples: 'com.google = FATAL', 'root = |
2493 * INFO', 'org.apache = DEBUG' | 2473 * INFO', 'org.apache = DEBUG' |
2494 */ | 2474 */ |
2495 core.Map<core.String, core.String> driverLogLevels; | 2475 core.Map<core.String, core.String> driverLogLevels; |
2496 | 2476 |
2497 LoggingConfig(); | 2477 LoggingConfig(); |
2498 | 2478 |
2499 LoggingConfig.fromJson(core.Map _json) { | 2479 LoggingConfig.fromJson(core.Map _json) { |
2500 if (_json.containsKey("driverLogLevels")) { | 2480 if (_json.containsKey("driverLogLevels")) { |
2501 driverLogLevels = _json["driverLogLevels"]; | 2481 driverLogLevels = _json["driverLogLevels"]; |
2502 } | 2482 } |
2503 } | 2483 } |
2504 | 2484 |
2505 core.Map toJson() { | 2485 core.Map<core.String, core.Object> toJson() { |
2506 var _json = new core.Map(); | 2486 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2507 if (driverLogLevels != null) { | 2487 if (driverLogLevels != null) { |
2508 _json["driverLogLevels"] = driverLogLevels; | 2488 _json["driverLogLevels"] = driverLogLevels; |
2509 } | 2489 } |
2510 return _json; | 2490 return _json; |
2511 } | 2491 } |
2512 } | 2492 } |
2513 | 2493 |
2514 /** Specifies the resources used to actively manage an instance group. */ | 2494 /** Specifies the resources used to actively manage an instance group. */ |
2515 class ManagedGroupConfig { | 2495 class ManagedGroupConfig { |
2516 /** Output-only. The name of the Instance Group Manager for this group. */ | 2496 /** Output-only. The name of the Instance Group Manager for this group. */ |
2517 core.String instanceGroupManagerName; | 2497 core.String instanceGroupManagerName; |
2518 /** | 2498 /** |
2519 * Output-only. The name of the Instance Template used for the Managed | 2499 * Output-only. The name of the Instance Template used for the Managed |
2520 * Instance Group. | 2500 * Instance Group. |
2521 */ | 2501 */ |
2522 core.String instanceTemplateName; | 2502 core.String instanceTemplateName; |
2523 | 2503 |
2524 ManagedGroupConfig(); | 2504 ManagedGroupConfig(); |
2525 | 2505 |
2526 ManagedGroupConfig.fromJson(core.Map _json) { | 2506 ManagedGroupConfig.fromJson(core.Map _json) { |
2527 if (_json.containsKey("instanceGroupManagerName")) { | 2507 if (_json.containsKey("instanceGroupManagerName")) { |
2528 instanceGroupManagerName = _json["instanceGroupManagerName"]; | 2508 instanceGroupManagerName = _json["instanceGroupManagerName"]; |
2529 } | 2509 } |
2530 if (_json.containsKey("instanceTemplateName")) { | 2510 if (_json.containsKey("instanceTemplateName")) { |
2531 instanceTemplateName = _json["instanceTemplateName"]; | 2511 instanceTemplateName = _json["instanceTemplateName"]; |
2532 } | 2512 } |
2533 } | 2513 } |
2534 | 2514 |
2535 core.Map toJson() { | 2515 core.Map<core.String, core.Object> toJson() { |
2536 var _json = new core.Map(); | 2516 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2537 if (instanceGroupManagerName != null) { | 2517 if (instanceGroupManagerName != null) { |
2538 _json["instanceGroupManagerName"] = instanceGroupManagerName; | 2518 _json["instanceGroupManagerName"] = instanceGroupManagerName; |
2539 } | 2519 } |
2540 if (instanceTemplateName != null) { | 2520 if (instanceTemplateName != null) { |
2541 _json["instanceTemplateName"] = instanceTemplateName; | 2521 _json["instanceTemplateName"] = instanceTemplateName; |
2542 } | 2522 } |
2543 return _json; | 2523 return _json; |
2544 } | 2524 } |
2545 } | 2525 } |
2546 | 2526 |
(...skipping 16 matching lines...) Expand all Loading... |
2563 | 2543 |
2564 NodeInitializationAction.fromJson(core.Map _json) { | 2544 NodeInitializationAction.fromJson(core.Map _json) { |
2565 if (_json.containsKey("executableFile")) { | 2545 if (_json.containsKey("executableFile")) { |
2566 executableFile = _json["executableFile"]; | 2546 executableFile = _json["executableFile"]; |
2567 } | 2547 } |
2568 if (_json.containsKey("executionTimeout")) { | 2548 if (_json.containsKey("executionTimeout")) { |
2569 executionTimeout = _json["executionTimeout"]; | 2549 executionTimeout = _json["executionTimeout"]; |
2570 } | 2550 } |
2571 } | 2551 } |
2572 | 2552 |
2573 core.Map toJson() { | 2553 core.Map<core.String, core.Object> toJson() { |
2574 var _json = new core.Map(); | 2554 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2575 if (executableFile != null) { | 2555 if (executableFile != null) { |
2576 _json["executableFile"] = executableFile; | 2556 _json["executableFile"] = executableFile; |
2577 } | 2557 } |
2578 if (executionTimeout != null) { | 2558 if (executionTimeout != null) { |
2579 _json["executionTimeout"] = executionTimeout; | 2559 _json["executionTimeout"] = executionTimeout; |
2580 } | 2560 } |
2581 return _json; | 2561 return _json; |
2582 } | 2562 } |
2583 } | 2563 } |
2584 | 2564 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2638 metadata = _json["metadata"]; | 2618 metadata = _json["metadata"]; |
2639 } | 2619 } |
2640 if (_json.containsKey("name")) { | 2620 if (_json.containsKey("name")) { |
2641 name = _json["name"]; | 2621 name = _json["name"]; |
2642 } | 2622 } |
2643 if (_json.containsKey("response")) { | 2623 if (_json.containsKey("response")) { |
2644 response = _json["response"]; | 2624 response = _json["response"]; |
2645 } | 2625 } |
2646 } | 2626 } |
2647 | 2627 |
2648 core.Map toJson() { | 2628 core.Map<core.String, core.Object> toJson() { |
2649 var _json = new core.Map(); | 2629 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2650 if (done != null) { | 2630 if (done != null) { |
2651 _json["done"] = done; | 2631 _json["done"] = done; |
2652 } | 2632 } |
2653 if (error != null) { | 2633 if (error != null) { |
2654 _json["error"] = (error).toJson(); | 2634 _json["error"] = (error).toJson(); |
2655 } | 2635 } |
2656 if (metadata != null) { | 2636 if (metadata != null) { |
2657 _json["metadata"] = metadata; | 2637 _json["metadata"] = metadata; |
2658 } | 2638 } |
2659 if (name != null) { | 2639 if (name != null) { |
2660 _json["name"] = name; | 2640 _json["name"] = name; |
2661 } | 2641 } |
2662 if (response != null) { | 2642 if (response != null) { |
2663 _json["response"] = response; | 2643 _json["response"] = response; |
2664 } | 2644 } |
2665 return _json; | 2645 return _json; |
2666 } | 2646 } |
2667 } | 2647 } |
2668 | 2648 |
2669 /** Metadata describing the operation. */ | |
2670 class OperationMetadata { | |
2671 /** Name of the cluster for the operation. */ | |
2672 core.String clusterName; | |
2673 /** Cluster UUId for the operation. */ | |
2674 core.String clusterUuid; | |
2675 /** Output-only Short description of operation. */ | |
2676 core.String description; | |
2677 /** A message containing any operation metadata details. */ | |
2678 core.String details; | |
2679 /** The time that the operation completed. */ | |
2680 core.String endTime; | |
2681 /** A message containing the detailed operation state. */ | |
2682 core.String innerState; | |
2683 /** The time that the operation was requested. */ | |
2684 core.String insertTime; | |
2685 /** Output-only The operation type. */ | |
2686 core.String operationType; | |
2687 /** The time that the operation was started by the server. */ | |
2688 core.String startTime; | |
2689 /** | |
2690 * A message containing the operation state. | |
2691 * Possible string values are: | |
2692 * - "UNKNOWN" : Unused. | |
2693 * - "PENDING" : The operation has been created. | |
2694 * - "RUNNING" : The operation is currently running. | |
2695 * - "DONE" : The operation is done, either cancelled or completed. | |
2696 */ | |
2697 core.String state; | |
2698 /** Output-only Current operation status. */ | |
2699 OperationStatus status; | |
2700 /** Output-only Previous operation status. */ | |
2701 core.List<OperationStatus> statusHistory; | |
2702 /** Output-only Errors encountered during operation execution. */ | |
2703 core.List<core.String> warnings; | |
2704 | |
2705 OperationMetadata(); | |
2706 | |
2707 OperationMetadata.fromJson(core.Map _json) { | |
2708 if (_json.containsKey("clusterName")) { | |
2709 clusterName = _json["clusterName"]; | |
2710 } | |
2711 if (_json.containsKey("clusterUuid")) { | |
2712 clusterUuid = _json["clusterUuid"]; | |
2713 } | |
2714 if (_json.containsKey("description")) { | |
2715 description = _json["description"]; | |
2716 } | |
2717 if (_json.containsKey("details")) { | |
2718 details = _json["details"]; | |
2719 } | |
2720 if (_json.containsKey("endTime")) { | |
2721 endTime = _json["endTime"]; | |
2722 } | |
2723 if (_json.containsKey("innerState")) { | |
2724 innerState = _json["innerState"]; | |
2725 } | |
2726 if (_json.containsKey("insertTime")) { | |
2727 insertTime = _json["insertTime"]; | |
2728 } | |
2729 if (_json.containsKey("operationType")) { | |
2730 operationType = _json["operationType"]; | |
2731 } | |
2732 if (_json.containsKey("startTime")) { | |
2733 startTime = _json["startTime"]; | |
2734 } | |
2735 if (_json.containsKey("state")) { | |
2736 state = _json["state"]; | |
2737 } | |
2738 if (_json.containsKey("status")) { | |
2739 status = new OperationStatus.fromJson(_json["status"]); | |
2740 } | |
2741 if (_json.containsKey("statusHistory")) { | |
2742 statusHistory = _json["statusHistory"].map((value) => new OperationStatus.
fromJson(value)).toList(); | |
2743 } | |
2744 if (_json.containsKey("warnings")) { | |
2745 warnings = _json["warnings"]; | |
2746 } | |
2747 } | |
2748 | |
2749 core.Map toJson() { | |
2750 var _json = new core.Map(); | |
2751 if (clusterName != null) { | |
2752 _json["clusterName"] = clusterName; | |
2753 } | |
2754 if (clusterUuid != null) { | |
2755 _json["clusterUuid"] = clusterUuid; | |
2756 } | |
2757 if (description != null) { | |
2758 _json["description"] = description; | |
2759 } | |
2760 if (details != null) { | |
2761 _json["details"] = details; | |
2762 } | |
2763 if (endTime != null) { | |
2764 _json["endTime"] = endTime; | |
2765 } | |
2766 if (innerState != null) { | |
2767 _json["innerState"] = innerState; | |
2768 } | |
2769 if (insertTime != null) { | |
2770 _json["insertTime"] = insertTime; | |
2771 } | |
2772 if (operationType != null) { | |
2773 _json["operationType"] = operationType; | |
2774 } | |
2775 if (startTime != null) { | |
2776 _json["startTime"] = startTime; | |
2777 } | |
2778 if (state != null) { | |
2779 _json["state"] = state; | |
2780 } | |
2781 if (status != null) { | |
2782 _json["status"] = (status).toJson(); | |
2783 } | |
2784 if (statusHistory != null) { | |
2785 _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).to
List(); | |
2786 } | |
2787 if (warnings != null) { | |
2788 _json["warnings"] = warnings; | |
2789 } | |
2790 return _json; | |
2791 } | |
2792 } | |
2793 | |
2794 /** The status of the operation. */ | |
2795 class OperationStatus { | |
2796 /** A message containing any operation metadata details. */ | |
2797 core.String details; | |
2798 /** A message containing the detailed operation state. */ | |
2799 core.String innerState; | |
2800 /** | |
2801 * A message containing the operation state. | |
2802 * Possible string values are: | |
2803 * - "UNKNOWN" : Unused. | |
2804 * - "PENDING" : The operation has been created. | |
2805 * - "RUNNING" : The operation is running. | |
2806 * - "DONE" : The operation is done; either cancelled or completed. | |
2807 */ | |
2808 core.String state; | |
2809 /** The time this state was entered. */ | |
2810 core.String stateStartTime; | |
2811 | |
2812 OperationStatus(); | |
2813 | |
2814 OperationStatus.fromJson(core.Map _json) { | |
2815 if (_json.containsKey("details")) { | |
2816 details = _json["details"]; | |
2817 } | |
2818 if (_json.containsKey("innerState")) { | |
2819 innerState = _json["innerState"]; | |
2820 } | |
2821 if (_json.containsKey("state")) { | |
2822 state = _json["state"]; | |
2823 } | |
2824 if (_json.containsKey("stateStartTime")) { | |
2825 stateStartTime = _json["stateStartTime"]; | |
2826 } | |
2827 } | |
2828 | |
2829 core.Map toJson() { | |
2830 var _json = new core.Map(); | |
2831 if (details != null) { | |
2832 _json["details"] = details; | |
2833 } | |
2834 if (innerState != null) { | |
2835 _json["innerState"] = innerState; | |
2836 } | |
2837 if (state != null) { | |
2838 _json["state"] = state; | |
2839 } | |
2840 if (stateStartTime != null) { | |
2841 _json["stateStartTime"] = stateStartTime; | |
2842 } | |
2843 return _json; | |
2844 } | |
2845 } | |
2846 | |
2847 /** | 2649 /** |
2848 * A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries | 2650 * A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries |
2849 * on YARN. | 2651 * on YARN. |
2850 */ | 2652 */ |
2851 class PigJob { | 2653 class PigJob { |
2852 /** | 2654 /** |
2853 * Optional. Whether to continue executing queries if a query fails. The | 2655 * Optional. Whether to continue executing queries if a query fails. The |
2854 * default value is false. Setting to true can be useful when executing | 2656 * default value is false. Setting to true can be useful when executing |
2855 * independent parallel queries. | 2657 * independent parallel queries. |
2856 */ | 2658 */ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2898 queryFileUri = _json["queryFileUri"]; | 2700 queryFileUri = _json["queryFileUri"]; |
2899 } | 2701 } |
2900 if (_json.containsKey("queryList")) { | 2702 if (_json.containsKey("queryList")) { |
2901 queryList = new QueryList.fromJson(_json["queryList"]); | 2703 queryList = new QueryList.fromJson(_json["queryList"]); |
2902 } | 2704 } |
2903 if (_json.containsKey("scriptVariables")) { | 2705 if (_json.containsKey("scriptVariables")) { |
2904 scriptVariables = _json["scriptVariables"]; | 2706 scriptVariables = _json["scriptVariables"]; |
2905 } | 2707 } |
2906 } | 2708 } |
2907 | 2709 |
2908 core.Map toJson() { | 2710 core.Map<core.String, core.Object> toJson() { |
2909 var _json = new core.Map(); | 2711 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2910 if (continueOnFailure != null) { | 2712 if (continueOnFailure != null) { |
2911 _json["continueOnFailure"] = continueOnFailure; | 2713 _json["continueOnFailure"] = continueOnFailure; |
2912 } | 2714 } |
2913 if (jarFileUris != null) { | 2715 if (jarFileUris != null) { |
2914 _json["jarFileUris"] = jarFileUris; | 2716 _json["jarFileUris"] = jarFileUris; |
2915 } | 2717 } |
2916 if (loggingConfig != null) { | 2718 if (loggingConfig != null) { |
2917 _json["loggingConfig"] = (loggingConfig).toJson(); | 2719 _json["loggingConfig"] = (loggingConfig).toJson(); |
2918 } | 2720 } |
2919 if (properties != null) { | 2721 if (properties != null) { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3001 mainPythonFileUri = _json["mainPythonFileUri"]; | 2803 mainPythonFileUri = _json["mainPythonFileUri"]; |
3002 } | 2804 } |
3003 if (_json.containsKey("properties")) { | 2805 if (_json.containsKey("properties")) { |
3004 properties = _json["properties"]; | 2806 properties = _json["properties"]; |
3005 } | 2807 } |
3006 if (_json.containsKey("pythonFileUris")) { | 2808 if (_json.containsKey("pythonFileUris")) { |
3007 pythonFileUris = _json["pythonFileUris"]; | 2809 pythonFileUris = _json["pythonFileUris"]; |
3008 } | 2810 } |
3009 } | 2811 } |
3010 | 2812 |
3011 core.Map toJson() { | 2813 core.Map<core.String, core.Object> toJson() { |
3012 var _json = new core.Map(); | 2814 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3013 if (archiveUris != null) { | 2815 if (archiveUris != null) { |
3014 _json["archiveUris"] = archiveUris; | 2816 _json["archiveUris"] = archiveUris; |
3015 } | 2817 } |
3016 if (args != null) { | 2818 if (args != null) { |
3017 _json["args"] = args; | 2819 _json["args"] = args; |
3018 } | 2820 } |
3019 if (fileUris != null) { | 2821 if (fileUris != null) { |
3020 _json["fileUris"] = fileUris; | 2822 _json["fileUris"] = fileUris; |
3021 } | 2823 } |
3022 if (jarFileUris != null) { | 2824 if (jarFileUris != null) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3058 core.List<core.String> queries; | 2860 core.List<core.String> queries; |
3059 | 2861 |
3060 QueryList(); | 2862 QueryList(); |
3061 | 2863 |
3062 QueryList.fromJson(core.Map _json) { | 2864 QueryList.fromJson(core.Map _json) { |
3063 if (_json.containsKey("queries")) { | 2865 if (_json.containsKey("queries")) { |
3064 queries = _json["queries"]; | 2866 queries = _json["queries"]; |
3065 } | 2867 } |
3066 } | 2868 } |
3067 | 2869 |
3068 core.Map toJson() { | 2870 core.Map<core.String, core.Object> toJson() { |
3069 var _json = new core.Map(); | 2871 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3070 if (queries != null) { | 2872 if (queries != null) { |
3071 _json["queries"] = queries; | 2873 _json["queries"] = queries; |
3072 } | 2874 } |
3073 return _json; | 2875 return _json; |
3074 } | 2876 } |
3075 } | 2877 } |
3076 | 2878 |
3077 /** Specifies the selection and config of software inside the cluster. */ | 2879 /** Specifies the selection and config of software inside the cluster. */ |
3078 class SoftwareConfig { | 2880 class SoftwareConfig { |
3079 /** | 2881 /** |
(...skipping 22 matching lines...) Expand all Loading... |
3102 | 2904 |
3103 SoftwareConfig.fromJson(core.Map _json) { | 2905 SoftwareConfig.fromJson(core.Map _json) { |
3104 if (_json.containsKey("imageVersion")) { | 2906 if (_json.containsKey("imageVersion")) { |
3105 imageVersion = _json["imageVersion"]; | 2907 imageVersion = _json["imageVersion"]; |
3106 } | 2908 } |
3107 if (_json.containsKey("properties")) { | 2909 if (_json.containsKey("properties")) { |
3108 properties = _json["properties"]; | 2910 properties = _json["properties"]; |
3109 } | 2911 } |
3110 } | 2912 } |
3111 | 2913 |
3112 core.Map toJson() { | 2914 core.Map<core.String, core.Object> toJson() { |
3113 var _json = new core.Map(); | 2915 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3114 if (imageVersion != null) { | 2916 if (imageVersion != null) { |
3115 _json["imageVersion"] = imageVersion; | 2917 _json["imageVersion"] = imageVersion; |
3116 } | 2918 } |
3117 if (properties != null) { | 2919 if (properties != null) { |
3118 _json["properties"] = properties; | 2920 _json["properties"] = properties; |
3119 } | 2921 } |
3120 return _json; | 2922 return _json; |
3121 } | 2923 } |
3122 } | 2924 } |
3123 | 2925 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3187 mainClass = _json["mainClass"]; | 2989 mainClass = _json["mainClass"]; |
3188 } | 2990 } |
3189 if (_json.containsKey("mainJarFileUri")) { | 2991 if (_json.containsKey("mainJarFileUri")) { |
3190 mainJarFileUri = _json["mainJarFileUri"]; | 2992 mainJarFileUri = _json["mainJarFileUri"]; |
3191 } | 2993 } |
3192 if (_json.containsKey("properties")) { | 2994 if (_json.containsKey("properties")) { |
3193 properties = _json["properties"]; | 2995 properties = _json["properties"]; |
3194 } | 2996 } |
3195 } | 2997 } |
3196 | 2998 |
3197 core.Map toJson() { | 2999 core.Map<core.String, core.Object> toJson() { |
3198 var _json = new core.Map(); | 3000 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3199 if (archiveUris != null) { | 3001 if (archiveUris != null) { |
3200 _json["archiveUris"] = archiveUris; | 3002 _json["archiveUris"] = archiveUris; |
3201 } | 3003 } |
3202 if (args != null) { | 3004 if (args != null) { |
3203 _json["args"] = args; | 3005 _json["args"] = args; |
3204 } | 3006 } |
3205 if (fileUris != null) { | 3007 if (fileUris != null) { |
3206 _json["fileUris"] = fileUris; | 3008 _json["fileUris"] = fileUris; |
3207 } | 3009 } |
3208 if (jarFileUris != null) { | 3010 if (jarFileUris != null) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3265 queryFileUri = _json["queryFileUri"]; | 3067 queryFileUri = _json["queryFileUri"]; |
3266 } | 3068 } |
3267 if (_json.containsKey("queryList")) { | 3069 if (_json.containsKey("queryList")) { |
3268 queryList = new QueryList.fromJson(_json["queryList"]); | 3070 queryList = new QueryList.fromJson(_json["queryList"]); |
3269 } | 3071 } |
3270 if (_json.containsKey("scriptVariables")) { | 3072 if (_json.containsKey("scriptVariables")) { |
3271 scriptVariables = _json["scriptVariables"]; | 3073 scriptVariables = _json["scriptVariables"]; |
3272 } | 3074 } |
3273 } | 3075 } |
3274 | 3076 |
3275 core.Map toJson() { | 3077 core.Map<core.String, core.Object> toJson() { |
3276 var _json = new core.Map(); | 3078 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3277 if (jarFileUris != null) { | 3079 if (jarFileUris != null) { |
3278 _json["jarFileUris"] = jarFileUris; | 3080 _json["jarFileUris"] = jarFileUris; |
3279 } | 3081 } |
3280 if (loggingConfig != null) { | 3082 if (loggingConfig != null) { |
3281 _json["loggingConfig"] = (loggingConfig).toJson(); | 3083 _json["loggingConfig"] = (loggingConfig).toJson(); |
3282 } | 3084 } |
3283 if (properties != null) { | 3085 if (properties != null) { |
3284 _json["properties"] = properties; | 3086 _json["properties"] = properties; |
3285 } | 3087 } |
3286 if (queryFileUri != null) { | 3088 if (queryFileUri != null) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3357 code = _json["code"]; | 3159 code = _json["code"]; |
3358 } | 3160 } |
3359 if (_json.containsKey("details")) { | 3161 if (_json.containsKey("details")) { |
3360 details = _json["details"]; | 3162 details = _json["details"]; |
3361 } | 3163 } |
3362 if (_json.containsKey("message")) { | 3164 if (_json.containsKey("message")) { |
3363 message = _json["message"]; | 3165 message = _json["message"]; |
3364 } | 3166 } |
3365 } | 3167 } |
3366 | 3168 |
3367 core.Map toJson() { | 3169 core.Map<core.String, core.Object> toJson() { |
3368 var _json = new core.Map(); | 3170 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3369 if (code != null) { | 3171 if (code != null) { |
3370 _json["code"] = code; | 3172 _json["code"] = code; |
3371 } | 3173 } |
3372 if (details != null) { | 3174 if (details != null) { |
3373 _json["details"] = details; | 3175 _json["details"] = details; |
3374 } | 3176 } |
3375 if (message != null) { | 3177 if (message != null) { |
3376 _json["message"] = message; | 3178 _json["message"] = message; |
3377 } | 3179 } |
3378 return _json; | 3180 return _json; |
3379 } | 3181 } |
3380 } | 3182 } |
3381 | 3183 |
3382 /** A request to submit a job. */ | 3184 /** A request to submit a job. */ |
3383 class SubmitJobRequest { | 3185 class SubmitJobRequest { |
3384 /** Required. The job resource. */ | 3186 /** Required. The job resource. */ |
3385 Job job; | 3187 Job job; |
3386 | 3188 |
3387 SubmitJobRequest(); | 3189 SubmitJobRequest(); |
3388 | 3190 |
3389 SubmitJobRequest.fromJson(core.Map _json) { | 3191 SubmitJobRequest.fromJson(core.Map _json) { |
3390 if (_json.containsKey("job")) { | 3192 if (_json.containsKey("job")) { |
3391 job = new Job.fromJson(_json["job"]); | 3193 job = new Job.fromJson(_json["job"]); |
3392 } | 3194 } |
3393 } | 3195 } |
3394 | 3196 |
3395 core.Map toJson() { | 3197 core.Map<core.String, core.Object> toJson() { |
3396 var _json = new core.Map(); | 3198 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3397 if (job != null) { | 3199 if (job != null) { |
3398 _json["job"] = (job).toJson(); | 3200 _json["job"] = (job).toJson(); |
3399 } | 3201 } |
3400 return _json; | 3202 return _json; |
3401 } | 3203 } |
3402 } | 3204 } |
3403 | 3205 |
3404 /** | 3206 /** |
3405 * A YARN application created by a job. Application information is a subset of | 3207 * A YARN application created by a job. Application information is a subset of |
3406 * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.B
eta | 3208 * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.B
eta |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3444 progress = _json["progress"]; | 3246 progress = _json["progress"]; |
3445 } | 3247 } |
3446 if (_json.containsKey("state")) { | 3248 if (_json.containsKey("state")) { |
3447 state = _json["state"]; | 3249 state = _json["state"]; |
3448 } | 3250 } |
3449 if (_json.containsKey("trackingUrl")) { | 3251 if (_json.containsKey("trackingUrl")) { |
3450 trackingUrl = _json["trackingUrl"]; | 3252 trackingUrl = _json["trackingUrl"]; |
3451 } | 3253 } |
3452 } | 3254 } |
3453 | 3255 |
3454 core.Map toJson() { | 3256 core.Map<core.String, core.Object> toJson() { |
3455 var _json = new core.Map(); | 3257 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3456 if (name != null) { | 3258 if (name != null) { |
3457 _json["name"] = name; | 3259 _json["name"] = name; |
3458 } | 3260 } |
3459 if (progress != null) { | 3261 if (progress != null) { |
3460 _json["progress"] = progress; | 3262 _json["progress"] = progress; |
3461 } | 3263 } |
3462 if (state != null) { | 3264 if (state != null) { |
3463 _json["state"] = state; | 3265 _json["state"] = state; |
3464 } | 3266 } |
3465 if (trackingUrl != null) { | 3267 if (trackingUrl != null) { |
3466 _json["trackingUrl"] = trackingUrl; | 3268 _json["trackingUrl"] = trackingUrl; |
3467 } | 3269 } |
3468 return _json; | 3270 return _json; |
3469 } | 3271 } |
3470 } | 3272 } |
OLD | NEW |