| 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.dataflow.v1b3; | 3 library googleapis_beta.dataflow.v1b3; |
| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 DataflowApi(http.Client client, {core.String rootUrl: "https://dataflow.google
apis.com/", core.String servicePath: ""}) : | 33 DataflowApi(http.Client client, {core.String rootUrl: "https://dataflow.google
apis.com/", core.String servicePath: ""}) : |
| 34 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 34 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 35 } | 35 } |
| 36 | 36 |
| 37 | 37 |
| 38 class ProjectsResourceApi { | 38 class ProjectsResourceApi { |
| 39 final commons.ApiRequester _requester; | 39 final commons.ApiRequester _requester; |
| 40 | 40 |
| 41 ProjectsJobsResourceApi get jobs => new ProjectsJobsResourceApi(_requester); | 41 ProjectsJobsResourceApi get jobs => new ProjectsJobsResourceApi(_requester); |
| 42 ProjectsTemplatesResourceApi get templates => new ProjectsTemplatesResourceApi
(_requester); |
| 42 | 43 |
| 43 ProjectsResourceApi(commons.ApiRequester client) : | 44 ProjectsResourceApi(commons.ApiRequester client) : |
| 44 _requester = client; | 45 _requester = client; |
| 45 | 46 |
| 46 /** | 47 /** |
| 47 * Send a worker_message to the service. | 48 * Send a worker_message to the service. |
| 48 * | 49 * |
| 49 * [request] - The metadata request object. | 50 * [request] - The metadata request object. |
| 50 * | 51 * |
| 51 * Request parameters: | 52 * Request parameters: |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 downloadOptions: _downloadOptions); | 87 downloadOptions: _downloadOptions); |
| 87 return _response.then((data) => new SendWorkerMessagesResponse.fromJson(data
)); | 88 return _response.then((data) => new SendWorkerMessagesResponse.fromJson(data
)); |
| 88 } | 89 } |
| 89 | 90 |
| 90 } | 91 } |
| 91 | 92 |
| 92 | 93 |
| 93 class ProjectsJobsResourceApi { | 94 class ProjectsJobsResourceApi { |
| 94 final commons.ApiRequester _requester; | 95 final commons.ApiRequester _requester; |
| 95 | 96 |
| 97 ProjectsJobsDebugResourceApi get debug => new ProjectsJobsDebugResourceApi(_re
quester); |
| 96 ProjectsJobsMessagesResourceApi get messages => new ProjectsJobsMessagesResour
ceApi(_requester); | 98 ProjectsJobsMessagesResourceApi get messages => new ProjectsJobsMessagesResour
ceApi(_requester); |
| 97 ProjectsJobsWorkItemsResourceApi get workItems => new ProjectsJobsWorkItemsRes
ourceApi(_requester); | 99 ProjectsJobsWorkItemsResourceApi get workItems => new ProjectsJobsWorkItemsRes
ourceApi(_requester); |
| 98 | 100 |
| 99 ProjectsJobsResourceApi(commons.ApiRequester client) : | 101 ProjectsJobsResourceApi(commons.ApiRequester client) : |
| 100 _requester = client; | 102 _requester = client; |
| 101 | 103 |
| 102 /** | 104 /** |
| 103 * Creates a dataflow job. | 105 * Creates a dataflow job. |
| 104 * | 106 * |
| 105 * [request] - The metadata request object. | 107 * [request] - The metadata request object. |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 queryParams: _queryParams, | 378 queryParams: _queryParams, |
| 377 uploadOptions: _uploadOptions, | 379 uploadOptions: _uploadOptions, |
| 378 uploadMedia: _uploadMedia, | 380 uploadMedia: _uploadMedia, |
| 379 downloadOptions: _downloadOptions); | 381 downloadOptions: _downloadOptions); |
| 380 return _response.then((data) => new Job.fromJson(data)); | 382 return _response.then((data) => new Job.fromJson(data)); |
| 381 } | 383 } |
| 382 | 384 |
| 383 } | 385 } |
| 384 | 386 |
| 385 | 387 |
| 388 class ProjectsJobsDebugResourceApi { |
| 389 final commons.ApiRequester _requester; |
| 390 |
| 391 ProjectsJobsDebugResourceApi(commons.ApiRequester client) : |
| 392 _requester = client; |
| 393 |
| 394 /** |
| 395 * Get encoded debug configuration for component. Not cacheable. |
| 396 * |
| 397 * [request] - The metadata request object. |
| 398 * |
| 399 * Request parameters: |
| 400 * |
| 401 * [projectId] - The project id. |
| 402 * |
| 403 * [jobId] - The job id. |
| 404 * |
| 405 * Completes with a [GetDebugConfigResponse]. |
| 406 * |
| 407 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 408 * error. |
| 409 * |
| 410 * If the used [http.Client] completes with an error when making a REST call, |
| 411 * this method will complete with the same error. |
| 412 */ |
| 413 async.Future<GetDebugConfigResponse> getConfig(GetDebugConfigRequest request,
core.String projectId, core.String jobId) { |
| 414 var _url = null; |
| 415 var _queryParams = new core.Map(); |
| 416 var _uploadMedia = null; |
| 417 var _uploadOptions = null; |
| 418 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 419 var _body = null; |
| 420 |
| 421 if (request != null) { |
| 422 _body = convert.JSON.encode((request).toJson()); |
| 423 } |
| 424 if (projectId == null) { |
| 425 throw new core.ArgumentError("Parameter projectId is required."); |
| 426 } |
| 427 if (jobId == null) { |
| 428 throw new core.ArgumentError("Parameter jobId is required."); |
| 429 } |
| 430 |
| 431 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/debug/getConfig'; |
| 432 |
| 433 var _response = _requester.request(_url, |
| 434 "POST", |
| 435 body: _body, |
| 436 queryParams: _queryParams, |
| 437 uploadOptions: _uploadOptions, |
| 438 uploadMedia: _uploadMedia, |
| 439 downloadOptions: _downloadOptions); |
| 440 return _response.then((data) => new GetDebugConfigResponse.fromJson(data)); |
| 441 } |
| 442 |
| 443 /** |
| 444 * Send encoded debug capture data for component. |
| 445 * |
| 446 * [request] - The metadata request object. |
| 447 * |
| 448 * Request parameters: |
| 449 * |
| 450 * [projectId] - The project id. |
| 451 * |
| 452 * [jobId] - The job id. |
| 453 * |
| 454 * Completes with a [SendDebugCaptureResponse]. |
| 455 * |
| 456 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 457 * error. |
| 458 * |
| 459 * If the used [http.Client] completes with an error when making a REST call, |
| 460 * this method will complete with the same error. |
| 461 */ |
| 462 async.Future<SendDebugCaptureResponse> sendCapture(SendDebugCaptureRequest req
uest, core.String projectId, core.String jobId) { |
| 463 var _url = null; |
| 464 var _queryParams = new core.Map(); |
| 465 var _uploadMedia = null; |
| 466 var _uploadOptions = null; |
| 467 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 468 var _body = null; |
| 469 |
| 470 if (request != null) { |
| 471 _body = convert.JSON.encode((request).toJson()); |
| 472 } |
| 473 if (projectId == null) { |
| 474 throw new core.ArgumentError("Parameter projectId is required."); |
| 475 } |
| 476 if (jobId == null) { |
| 477 throw new core.ArgumentError("Parameter jobId is required."); |
| 478 } |
| 479 |
| 480 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jo
bs/' + commons.Escaper.ecapeVariable('$jobId') + '/debug/sendCapture'; |
| 481 |
| 482 var _response = _requester.request(_url, |
| 483 "POST", |
| 484 body: _body, |
| 485 queryParams: _queryParams, |
| 486 uploadOptions: _uploadOptions, |
| 487 uploadMedia: _uploadMedia, |
| 488 downloadOptions: _downloadOptions); |
| 489 return _response.then((data) => new SendDebugCaptureResponse.fromJson(data))
; |
| 490 } |
| 491 |
| 492 } |
| 493 |
| 494 |
| 386 class ProjectsJobsMessagesResourceApi { | 495 class ProjectsJobsMessagesResourceApi { |
| 387 final commons.ApiRequester _requester; | 496 final commons.ApiRequester _requester; |
| 388 | 497 |
| 389 ProjectsJobsMessagesResourceApi(commons.ApiRequester client) : | 498 ProjectsJobsMessagesResourceApi(commons.ApiRequester client) : |
| 390 _requester = client; | 499 _requester = client; |
| 391 | 500 |
| 392 /** | 501 /** |
| 393 * Request the job status. | 502 * Request the job status. |
| 394 * | 503 * |
| 395 * Request parameters: | 504 * Request parameters: |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 queryParams: _queryParams, | 684 queryParams: _queryParams, |
| 576 uploadOptions: _uploadOptions, | 685 uploadOptions: _uploadOptions, |
| 577 uploadMedia: _uploadMedia, | 686 uploadMedia: _uploadMedia, |
| 578 downloadOptions: _downloadOptions); | 687 downloadOptions: _downloadOptions); |
| 579 return _response.then((data) => new ReportWorkItemStatusResponse.fromJson(da
ta)); | 688 return _response.then((data) => new ReportWorkItemStatusResponse.fromJson(da
ta)); |
| 580 } | 689 } |
| 581 | 690 |
| 582 } | 691 } |
| 583 | 692 |
| 584 | 693 |
| 694 class ProjectsTemplatesResourceApi { |
| 695 final commons.ApiRequester _requester; |
| 696 |
| 697 ProjectsTemplatesResourceApi(commons.ApiRequester client) : |
| 698 _requester = client; |
| 699 |
| 700 /** |
| 701 * Creates a dataflow job from a template. |
| 702 * |
| 703 * [request] - The metadata request object. |
| 704 * |
| 705 * Request parameters: |
| 706 * |
| 707 * [projectId] - The project which owns the job. |
| 708 * |
| 709 * Completes with a [Job]. |
| 710 * |
| 711 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 712 * error. |
| 713 * |
| 714 * If the used [http.Client] completes with an error when making a REST call, |
| 715 * this method will complete with the same error. |
| 716 */ |
| 717 async.Future<Job> create(CreateJobFromTemplateRequest request, core.String pro
jectId) { |
| 718 var _url = null; |
| 719 var _queryParams = new core.Map(); |
| 720 var _uploadMedia = null; |
| 721 var _uploadOptions = null; |
| 722 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 723 var _body = null; |
| 724 |
| 725 if (request != null) { |
| 726 _body = convert.JSON.encode((request).toJson()); |
| 727 } |
| 728 if (projectId == null) { |
| 729 throw new core.ArgumentError("Parameter projectId is required."); |
| 730 } |
| 731 |
| 732 _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/te
mplates'; |
| 733 |
| 734 var _response = _requester.request(_url, |
| 735 "POST", |
| 736 body: _body, |
| 737 queryParams: _queryParams, |
| 738 uploadOptions: _uploadOptions, |
| 739 uploadMedia: _uploadMedia, |
| 740 downloadOptions: _downloadOptions); |
| 741 return _response.then((data) => new Job.fromJson(data)); |
| 742 } |
| 743 |
| 744 } |
| 745 |
| 746 |
| 585 | 747 |
| 586 /** | 748 /** |
| 587 * Obsolete in favor of ApproximateReportedProgress and ApproximateSplitRequest. | 749 * Obsolete in favor of ApproximateReportedProgress and ApproximateSplitRequest. |
| 588 */ | 750 */ |
| 589 class ApproximateProgress { | 751 class ApproximateProgress { |
| 590 /** Obsolete. */ | 752 /** Obsolete. */ |
| 591 core.double percentComplete; | 753 core.double percentComplete; |
| 592 /** Obsolete. */ | 754 /** Obsolete. */ |
| 593 Position position; | 755 Position position; |
| 594 /** Obsolete. */ | 756 /** Obsolete. */ |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 if (stringList != null) { | 1361 if (stringList != null) { |
| 1200 _json["stringList"] = (stringList).toJson(); | 1362 _json["stringList"] = (stringList).toJson(); |
| 1201 } | 1363 } |
| 1202 if (structuredNameAndMetadata != null) { | 1364 if (structuredNameAndMetadata != null) { |
| 1203 _json["structuredNameAndMetadata"] = (structuredNameAndMetadata).toJson(); | 1365 _json["structuredNameAndMetadata"] = (structuredNameAndMetadata).toJson(); |
| 1204 } | 1366 } |
| 1205 return _json; | 1367 return _json; |
| 1206 } | 1368 } |
| 1207 } | 1369 } |
| 1208 | 1370 |
| 1371 /** Request to create a Dataflow job. */ |
| 1372 class CreateJobFromTemplateRequest { |
| 1373 /** A path to the serialized JSON representation of the job. */ |
| 1374 core.String gcsPath; |
| 1375 /** Dynamic parameterization of the job's runtime environment. */ |
| 1376 core.Map<core.String, core.String> parameters; |
| 1377 |
| 1378 CreateJobFromTemplateRequest(); |
| 1379 |
| 1380 CreateJobFromTemplateRequest.fromJson(core.Map _json) { |
| 1381 if (_json.containsKey("gcsPath")) { |
| 1382 gcsPath = _json["gcsPath"]; |
| 1383 } |
| 1384 if (_json.containsKey("parameters")) { |
| 1385 parameters = _json["parameters"]; |
| 1386 } |
| 1387 } |
| 1388 |
| 1389 core.Map toJson() { |
| 1390 var _json = new core.Map(); |
| 1391 if (gcsPath != null) { |
| 1392 _json["gcsPath"] = gcsPath; |
| 1393 } |
| 1394 if (parameters != null) { |
| 1395 _json["parameters"] = parameters; |
| 1396 } |
| 1397 return _json; |
| 1398 } |
| 1399 } |
| 1400 |
| 1209 /** Identifies the location of a custom souce. */ | 1401 /** Identifies the location of a custom souce. */ |
| 1210 class CustomSourceLocation { | 1402 class CustomSourceLocation { |
| 1211 /** Whether this source is stateful. */ | 1403 /** Whether this source is stateful. */ |
| 1212 core.bool stateful; | 1404 core.bool stateful; |
| 1213 | 1405 |
| 1214 CustomSourceLocation(); | 1406 CustomSourceLocation(); |
| 1215 | 1407 |
| 1216 CustomSourceLocation.fromJson(core.Map _json) { | 1408 CustomSourceLocation.fromJson(core.Map _json) { |
| 1217 if (_json.containsKey("stateful")) { | 1409 if (_json.containsKey("stateful")) { |
| 1218 stateful = _json["stateful"]; | 1410 stateful = _json["stateful"]; |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1604 if (count != null) { | 1796 if (count != null) { |
| 1605 _json["count"] = (count).toJson(); | 1797 _json["count"] = (count).toJson(); |
| 1606 } | 1798 } |
| 1607 if (sum != null) { | 1799 if (sum != null) { |
| 1608 _json["sum"] = sum; | 1800 _json["sum"] = sum; |
| 1609 } | 1801 } |
| 1610 return _json; | 1802 return _json; |
| 1611 } | 1803 } |
| 1612 } | 1804 } |
| 1613 | 1805 |
| 1806 /** Request to get updated debug configuration for component. */ |
| 1807 class GetDebugConfigRequest { |
| 1808 /** The internal component id for which debug configuration is requested. */ |
| 1809 core.String componentId; |
| 1810 /** The worker id, i.e., VM hostname. */ |
| 1811 core.String workerId; |
| 1812 |
| 1813 GetDebugConfigRequest(); |
| 1814 |
| 1815 GetDebugConfigRequest.fromJson(core.Map _json) { |
| 1816 if (_json.containsKey("componentId")) { |
| 1817 componentId = _json["componentId"]; |
| 1818 } |
| 1819 if (_json.containsKey("workerId")) { |
| 1820 workerId = _json["workerId"]; |
| 1821 } |
| 1822 } |
| 1823 |
| 1824 core.Map toJson() { |
| 1825 var _json = new core.Map(); |
| 1826 if (componentId != null) { |
| 1827 _json["componentId"] = componentId; |
| 1828 } |
| 1829 if (workerId != null) { |
| 1830 _json["workerId"] = workerId; |
| 1831 } |
| 1832 return _json; |
| 1833 } |
| 1834 } |
| 1835 |
| 1836 /** Response to a get debug configuration request. */ |
| 1837 class GetDebugConfigResponse { |
| 1838 /** The encoded debug configuration for the requested component. */ |
| 1839 core.String config; |
| 1840 |
| 1841 GetDebugConfigResponse(); |
| 1842 |
| 1843 GetDebugConfigResponse.fromJson(core.Map _json) { |
| 1844 if (_json.containsKey("config")) { |
| 1845 config = _json["config"]; |
| 1846 } |
| 1847 } |
| 1848 |
| 1849 core.Map toJson() { |
| 1850 var _json = new core.Map(); |
| 1851 if (config != null) { |
| 1852 _json["config"] = config; |
| 1853 } |
| 1854 return _json; |
| 1855 } |
| 1856 } |
| 1857 |
| 1614 /** | 1858 /** |
| 1615 * An input of an instruction, as a reference to an output of a producer | 1859 * An input of an instruction, as a reference to an output of a producer |
| 1616 * instruction. | 1860 * instruction. |
| 1617 */ | 1861 */ |
| 1618 class InstructionInput { | 1862 class InstructionInput { |
| 1619 /** The output index (origin zero) within the producer. */ | 1863 /** The output index (origin zero) within the producer. */ |
| 1620 core.int outputNum; | 1864 core.int outputNum; |
| 1621 /** | 1865 /** |
| 1622 * The index (origin zero) of the parallel instruction that produces the | 1866 * The index (origin zero) of the parallel instruction that produces the |
| 1623 * output to be consumed by this input. This index is relative to the list of | 1867 * output to be consumed by this input. This index is relative to the list of |
| (...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3321 if (isInfinite != null) { | 3565 if (isInfinite != null) { |
| 3322 _json["isInfinite"] = isInfinite; | 3566 _json["isInfinite"] = isInfinite; |
| 3323 } | 3567 } |
| 3324 if (value != null) { | 3568 if (value != null) { |
| 3325 _json["value"] = value; | 3569 _json["value"] = value; |
| 3326 } | 3570 } |
| 3327 return _json; | 3571 return _json; |
| 3328 } | 3572 } |
| 3329 } | 3573 } |
| 3330 | 3574 |
| 3575 /** Request to send encoded debug information. */ |
| 3576 class SendDebugCaptureRequest { |
| 3577 /** The internal component id for which debug information is sent. */ |
| 3578 core.String componentId; |
| 3579 /** The encoded debug information. */ |
| 3580 core.String data; |
| 3581 /** The worker id, i.e., VM hostname. */ |
| 3582 core.String workerId; |
| 3583 |
| 3584 SendDebugCaptureRequest(); |
| 3585 |
| 3586 SendDebugCaptureRequest.fromJson(core.Map _json) { |
| 3587 if (_json.containsKey("componentId")) { |
| 3588 componentId = _json["componentId"]; |
| 3589 } |
| 3590 if (_json.containsKey("data")) { |
| 3591 data = _json["data"]; |
| 3592 } |
| 3593 if (_json.containsKey("workerId")) { |
| 3594 workerId = _json["workerId"]; |
| 3595 } |
| 3596 } |
| 3597 |
| 3598 core.Map toJson() { |
| 3599 var _json = new core.Map(); |
| 3600 if (componentId != null) { |
| 3601 _json["componentId"] = componentId; |
| 3602 } |
| 3603 if (data != null) { |
| 3604 _json["data"] = data; |
| 3605 } |
| 3606 if (workerId != null) { |
| 3607 _json["workerId"] = workerId; |
| 3608 } |
| 3609 return _json; |
| 3610 } |
| 3611 } |
| 3612 |
| 3613 /** Response to a send capture request. nothing */ |
| 3614 class SendDebugCaptureResponse { |
| 3615 |
| 3616 SendDebugCaptureResponse(); |
| 3617 |
| 3618 SendDebugCaptureResponse.fromJson(core.Map _json) { |
| 3619 } |
| 3620 |
| 3621 core.Map toJson() { |
| 3622 var _json = new core.Map(); |
| 3623 return _json; |
| 3624 } |
| 3625 } |
| 3626 |
| 3331 /** A request for sending worker messages to the service. */ | 3627 /** A request for sending worker messages to the service. */ |
| 3332 class SendWorkerMessagesRequest { | 3628 class SendWorkerMessagesRequest { |
| 3333 /** The WorkerMessages to send. */ | 3629 /** The WorkerMessages to send. */ |
| 3334 core.List<WorkerMessage> workerMessages; | 3630 core.List<WorkerMessage> workerMessages; |
| 3335 | 3631 |
| 3336 SendWorkerMessagesRequest(); | 3632 SendWorkerMessagesRequest(); |
| 3337 | 3633 |
| 3338 SendWorkerMessagesRequest.fromJson(core.Map _json) { | 3634 SendWorkerMessagesRequest.fromJson(core.Map _json) { |
| 3339 if (_json.containsKey("workerMessages")) { | 3635 if (_json.containsKey("workerMessages")) { |
| 3340 workerMessages = _json["workerMessages"].map((value) => new WorkerMessage.
fromJson(value)).toList(); | 3636 workerMessages = _json["workerMessages"].map((value) => new WorkerMessage.
fromJson(value)).toList(); |
| (...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5514 */ | 5810 */ |
| 5515 core.int diskSizeGb; | 5811 core.int diskSizeGb; |
| 5516 /** Fully qualified source image for disks. */ | 5812 /** Fully qualified source image for disks. */ |
| 5517 core.String diskSourceImage; | 5813 core.String diskSourceImage; |
| 5518 /** | 5814 /** |
| 5519 * Type of root disk for VMs. If empty or unspecified, the service will | 5815 * Type of root disk for VMs. If empty or unspecified, the service will |
| 5520 * attempt to choose a reasonable default. | 5816 * attempt to choose a reasonable default. |
| 5521 */ | 5817 */ |
| 5522 core.String diskType; | 5818 core.String diskType; |
| 5523 /** | 5819 /** |
| 5820 * Configuration for VM IPs. |
| 5821 * Possible string values are: |
| 5822 * - "WORKER_IP_UNSPECIFIED" : A WORKER_IP_UNSPECIFIED. |
| 5823 * - "WORKER_IP_PUBLIC" : A WORKER_IP_PUBLIC. |
| 5824 * - "WORKER_IP_PRIVATE" : A WORKER_IP_PRIVATE. |
| 5825 */ |
| 5826 core.String ipConfiguration; |
| 5827 /** |
| 5524 * The kind of the worker pool; currently only 'harness' and 'shuffle' are | 5828 * The kind of the worker pool; currently only 'harness' and 'shuffle' are |
| 5525 * supported. | 5829 * supported. |
| 5526 */ | 5830 */ |
| 5527 core.String kind; | 5831 core.String kind; |
| 5528 /** | 5832 /** |
| 5529 * Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service | 5833 * Machine type (e.g. "n1-standard-1"). If empty or unspecified, the service |
| 5530 * will attempt to choose a reasonable default. | 5834 * will attempt to choose a reasonable default. |
| 5531 */ | 5835 */ |
| 5532 core.String machineType; | 5836 core.String machineType; |
| 5533 /** Metadata to set on the Google Compute Engine VMs. */ | 5837 /** Metadata to set on the Google Compute Engine VMs. */ |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5617 } | 5921 } |
| 5618 if (_json.containsKey("diskSizeGb")) { | 5922 if (_json.containsKey("diskSizeGb")) { |
| 5619 diskSizeGb = _json["diskSizeGb"]; | 5923 diskSizeGb = _json["diskSizeGb"]; |
| 5620 } | 5924 } |
| 5621 if (_json.containsKey("diskSourceImage")) { | 5925 if (_json.containsKey("diskSourceImage")) { |
| 5622 diskSourceImage = _json["diskSourceImage"]; | 5926 diskSourceImage = _json["diskSourceImage"]; |
| 5623 } | 5927 } |
| 5624 if (_json.containsKey("diskType")) { | 5928 if (_json.containsKey("diskType")) { |
| 5625 diskType = _json["diskType"]; | 5929 diskType = _json["diskType"]; |
| 5626 } | 5930 } |
| 5931 if (_json.containsKey("ipConfiguration")) { |
| 5932 ipConfiguration = _json["ipConfiguration"]; |
| 5933 } |
| 5627 if (_json.containsKey("kind")) { | 5934 if (_json.containsKey("kind")) { |
| 5628 kind = _json["kind"]; | 5935 kind = _json["kind"]; |
| 5629 } | 5936 } |
| 5630 if (_json.containsKey("machineType")) { | 5937 if (_json.containsKey("machineType")) { |
| 5631 machineType = _json["machineType"]; | 5938 machineType = _json["machineType"]; |
| 5632 } | 5939 } |
| 5633 if (_json.containsKey("metadata")) { | 5940 if (_json.containsKey("metadata")) { |
| 5634 metadata = _json["metadata"]; | 5941 metadata = _json["metadata"]; |
| 5635 } | 5942 } |
| 5636 if (_json.containsKey("network")) { | 5943 if (_json.containsKey("network")) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5681 } | 5988 } |
| 5682 if (diskSizeGb != null) { | 5989 if (diskSizeGb != null) { |
| 5683 _json["diskSizeGb"] = diskSizeGb; | 5990 _json["diskSizeGb"] = diskSizeGb; |
| 5684 } | 5991 } |
| 5685 if (diskSourceImage != null) { | 5992 if (diskSourceImage != null) { |
| 5686 _json["diskSourceImage"] = diskSourceImage; | 5993 _json["diskSourceImage"] = diskSourceImage; |
| 5687 } | 5994 } |
| 5688 if (diskType != null) { | 5995 if (diskType != null) { |
| 5689 _json["diskType"] = diskType; | 5996 _json["diskType"] = diskType; |
| 5690 } | 5997 } |
| 5998 if (ipConfiguration != null) { |
| 5999 _json["ipConfiguration"] = ipConfiguration; |
| 6000 } |
| 5691 if (kind != null) { | 6001 if (kind != null) { |
| 5692 _json["kind"] = kind; | 6002 _json["kind"] = kind; |
| 5693 } | 6003 } |
| 5694 if (machineType != null) { | 6004 if (machineType != null) { |
| 5695 _json["machineType"] = machineType; | 6005 _json["machineType"] = machineType; |
| 5696 } | 6006 } |
| 5697 if (metadata != null) { | 6007 if (metadata != null) { |
| 5698 _json["metadata"] = metadata; | 6008 _json["metadata"] = metadata; |
| 5699 } | 6009 } |
| 5700 if (network != null) { | 6010 if (network != null) { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5838 var _json = new core.Map(); | 6148 var _json = new core.Map(); |
| 5839 if (input != null) { | 6149 if (input != null) { |
| 5840 _json["input"] = (input).toJson(); | 6150 _json["input"] = (input).toJson(); |
| 5841 } | 6151 } |
| 5842 if (sink != null) { | 6152 if (sink != null) { |
| 5843 _json["sink"] = (sink).toJson(); | 6153 _json["sink"] = (sink).toJson(); |
| 5844 } | 6154 } |
| 5845 return _json; | 6155 return _json; |
| 5846 } | 6156 } |
| 5847 } | 6157 } |
| OLD | NEW |