| 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.dataproc.v1beta1; | 3 library googleapis_beta.dataproc.v1beta1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 } | 726 } |
| 727 | 727 |
| 728 /** | 728 /** |
| 729 * Lists jobs in a project. | 729 * Lists jobs in a project. |
| 730 * | 730 * |
| 731 * Request parameters: | 731 * Request parameters: |
| 732 * | 732 * |
| 733 * [projectId] - Required The ID of the Google Cloud Platform project that the | 733 * [projectId] - Required The ID of the Google Cloud Platform project that the |
| 734 * job belongs to. | 734 * job belongs to. |
| 735 * | 735 * |
| 736 * [pageToken] - Optional The page token, returned by a previous call, to | |
| 737 * request the next page of results. | |
| 738 * | |
| 739 * [pageSize] - Optional The number of results to return in each response. | |
| 740 * | |
| 741 * [clusterName] - Optional If set, the returned jobs list includes only jobs | |
| 742 * that were submitted to the named cluster. | |
| 743 * | |
| 744 * [filter] - Optional A filter constraining which jobs to list. Valid filters | 736 * [filter] - Optional A filter constraining which jobs to list. Valid filters |
| 745 * contain job state and label terms such as: labels.key1 = val1 AND | 737 * contain job state and label terms such as: labels.key1 = val1 AND |
| 746 * (labels.k2 = val2 OR labels.k3 = val3) | 738 * (labels.k2 = val2 OR labels.k3 = val3) |
| 747 * | 739 * |
| 748 * [jobStateMatcher] - Optional Specifies enumerated categories of jobs to | 740 * [jobStateMatcher] - Optional Specifies enumerated categories of jobs to |
| 749 * list. | 741 * list. |
| 750 * Possible string values are: | 742 * Possible string values are: |
| 751 * - "ALL" : A ALL. | 743 * - "ALL" : A ALL. |
| 752 * - "ACTIVE" : A ACTIVE. | 744 * - "ACTIVE" : A ACTIVE. |
| 753 * - "NON_ACTIVE" : A NON_ACTIVE. | 745 * - "NON_ACTIVE" : A NON_ACTIVE. |
| 754 * | 746 * |
| 747 * [pageToken] - Optional The page token, returned by a previous call, to |
| 748 * request the next page of results. |
| 749 * |
| 750 * [pageSize] - Optional The number of results to return in each response. |
| 751 * |
| 752 * [clusterName] - Optional If set, the returned jobs list includes only jobs |
| 753 * that were submitted to the named cluster. |
| 754 * |
| 755 * Completes with a [ListJobsResponse]. | 755 * Completes with a [ListJobsResponse]. |
| 756 * | 756 * |
| 757 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 757 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 758 * error. | 758 * error. |
| 759 * | 759 * |
| 760 * If the used [http.Client] completes with an error when making a REST call, | 760 * If the used [http.Client] completes with an error when making a REST call, |
| 761 * this method will complete with the same error. | 761 * this method will complete with the same error. |
| 762 */ | 762 */ |
| 763 async.Future<ListJobsResponse> list(core.String projectId, {core.String pageTo
ken, core.int pageSize, core.String clusterName, core.String filter, core.String
jobStateMatcher}) { | 763 async.Future<ListJobsResponse> list(core.String projectId, {core.String filter
, core.String jobStateMatcher, core.String pageToken, core.int pageSize, core.St
ring clusterName}) { |
| 764 var _url = null; | 764 var _url = null; |
| 765 var _queryParams = new core.Map(); | 765 var _queryParams = new core.Map(); |
| 766 var _uploadMedia = null; | 766 var _uploadMedia = null; |
| 767 var _uploadOptions = null; | 767 var _uploadOptions = null; |
| 768 var _downloadOptions = commons.DownloadOptions.Metadata; | 768 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 769 var _body = null; | 769 var _body = null; |
| 770 | 770 |
| 771 if (projectId == null) { | 771 if (projectId == null) { |
| 772 throw new core.ArgumentError("Parameter projectId is required."); | 772 throw new core.ArgumentError("Parameter projectId is required."); |
| 773 } | 773 } |
| 774 if (filter != null) { |
| 775 _queryParams["filter"] = [filter]; |
| 776 } |
| 777 if (jobStateMatcher != null) { |
| 778 _queryParams["jobStateMatcher"] = [jobStateMatcher]; |
| 779 } |
| 774 if (pageToken != null) { | 780 if (pageToken != null) { |
| 775 _queryParams["pageToken"] = [pageToken]; | 781 _queryParams["pageToken"] = [pageToken]; |
| 776 } | 782 } |
| 777 if (pageSize != null) { | 783 if (pageSize != null) { |
| 778 _queryParams["pageSize"] = ["${pageSize}"]; | 784 _queryParams["pageSize"] = ["${pageSize}"]; |
| 779 } | 785 } |
| 780 if (clusterName != null) { | 786 if (clusterName != null) { |
| 781 _queryParams["clusterName"] = [clusterName]; | 787 _queryParams["clusterName"] = [clusterName]; |
| 782 } | 788 } |
| 783 if (filter != null) { | |
| 784 _queryParams["filter"] = [filter]; | |
| 785 } | |
| 786 if (jobStateMatcher != null) { | |
| 787 _queryParams["jobStateMatcher"] = [jobStateMatcher]; | |
| 788 } | |
| 789 | 789 |
| 790 _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '
/jobs'; | 790 _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '
/jobs'; |
| 791 | 791 |
| 792 var _response = _requester.request(_url, | 792 var _response = _requester.request(_url, |
| 793 "GET", | 793 "GET", |
| 794 body: _body, | 794 body: _body, |
| 795 queryParams: _queryParams, | 795 queryParams: _queryParams, |
| 796 uploadOptions: _uploadOptions, | 796 uploadOptions: _uploadOptions, |
| 797 uploadMedia: _uploadMedia, | 797 uploadMedia: _uploadMedia, |
| 798 downloadOptions: _downloadOptions); | 798 downloadOptions: _downloadOptions); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 uploadOptions: _uploadOptions, | 901 uploadOptions: _uploadOptions, |
| 902 uploadMedia: _uploadMedia, | 902 uploadMedia: _uploadMedia, |
| 903 downloadOptions: _downloadOptions); | 903 downloadOptions: _downloadOptions); |
| 904 return _response.then((data) => new Job.fromJson(data)); | 904 return _response.then((data) => new Job.fromJson(data)); |
| 905 } | 905 } |
| 906 | 906 |
| 907 } | 907 } |
| 908 | 908 |
| 909 | 909 |
| 910 | 910 |
| 911 /** |
| 912 * Specifies the type and number of accelerator cards attached to the instances |
| 913 * of an instance group (see GPUs on Compute Engine). |
| 914 */ |
| 915 class AcceleratorConfiguration { |
| 916 /** |
| 917 * The number of the accelerator cards of this type exposed to this instance. |
| 918 */ |
| 919 core.int acceleratorCount; |
| 920 /** |
| 921 * Full or partial URI of the accelerator type resource to expose to this |
| 922 * instance. See Google Compute Engine AcceleratorTypes( |
| 923 * /compute/docs/reference/beta/acceleratorTypes) |
| 924 */ |
| 925 core.String acceleratorTypeUri; |
| 926 |
| 927 AcceleratorConfiguration(); |
| 928 |
| 929 AcceleratorConfiguration.fromJson(core.Map _json) { |
| 930 if (_json.containsKey("acceleratorCount")) { |
| 931 acceleratorCount = _json["acceleratorCount"]; |
| 932 } |
| 933 if (_json.containsKey("acceleratorTypeUri")) { |
| 934 acceleratorTypeUri = _json["acceleratorTypeUri"]; |
| 935 } |
| 936 } |
| 937 |
| 938 core.Map toJson() { |
| 939 var _json = new core.Map(); |
| 940 if (acceleratorCount != null) { |
| 941 _json["acceleratorCount"] = acceleratorCount; |
| 942 } |
| 943 if (acceleratorTypeUri != null) { |
| 944 _json["acceleratorTypeUri"] = acceleratorTypeUri; |
| 945 } |
| 946 return _json; |
| 947 } |
| 948 } |
| 949 |
| 911 /** A request to cancel a job. */ | 950 /** A request to cancel a job. */ |
| 912 class CancelJobRequest { | 951 class CancelJobRequest { |
| 913 | 952 |
| 914 CancelJobRequest(); | 953 CancelJobRequest(); |
| 915 | 954 |
| 916 CancelJobRequest.fromJson(core.Map _json) { | 955 CancelJobRequest.fromJson(core.Map _json) { |
| 917 } | 956 } |
| 918 | 957 |
| 919 core.Map toJson() { | 958 core.Map toJson() { |
| 920 var _json = new core.Map(); | 959 var _json = new core.Map(); |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1339 if (state != null) { | 1378 if (state != null) { |
| 1340 _json["state"] = state; | 1379 _json["state"] = state; |
| 1341 } | 1380 } |
| 1342 if (stateStartTime != null) { | 1381 if (stateStartTime != null) { |
| 1343 _json["stateStartTime"] = stateStartTime; | 1382 _json["stateStartTime"] = stateStartTime; |
| 1344 } | 1383 } |
| 1345 return _json; | 1384 return _json; |
| 1346 } | 1385 } |
| 1347 } | 1386 } |
| 1348 | 1387 |
| 1349 /** The location where output from diagnostic command can be found. */ | 1388 /** The location of diagnostic output. */ |
| 1350 class DiagnoseClusterOutputLocation { | 1389 class DiagnoseClusterOutputLocation { |
| 1351 /** | 1390 /** |
| 1352 * Output-only The Google Cloud Storage URI of the diagnostic output. This | 1391 * Output-only The Google Cloud Storage URI of the diagnostic output. This is |
| 1353 * will be a plain text file with summary of collected diagnostics. | 1392 * a plain text file with a summary of collected diagnostics. |
| 1354 */ | 1393 */ |
| 1355 core.String outputUri; | 1394 core.String outputUri; |
| 1356 | 1395 |
| 1357 DiagnoseClusterOutputLocation(); | 1396 DiagnoseClusterOutputLocation(); |
| 1358 | 1397 |
| 1359 DiagnoseClusterOutputLocation.fromJson(core.Map _json) { | 1398 DiagnoseClusterOutputLocation.fromJson(core.Map _json) { |
| 1360 if (_json.containsKey("outputUri")) { | 1399 if (_json.containsKey("outputUri")) { |
| 1361 outputUri = _json["outputUri"]; | 1400 outputUri = _json["outputUri"]; |
| 1362 } | 1401 } |
| 1363 } | 1402 } |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1773 } | 1812 } |
| 1774 return _json; | 1813 return _json; |
| 1775 } | 1814 } |
| 1776 } | 1815 } |
| 1777 | 1816 |
| 1778 /** | 1817 /** |
| 1779 * The configuration settings for Google Compute Engine resources in an instance | 1818 * The configuration settings for Google Compute Engine resources in an instance |
| 1780 * group, such as a master or worker group. | 1819 * group, such as a master or worker group. |
| 1781 */ | 1820 */ |
| 1782 class InstanceGroupConfiguration { | 1821 class InstanceGroupConfiguration { |
| 1822 /** |
| 1823 * Optional The Google Compute Engine accelerator configuration for these |
| 1824 * instances. |
| 1825 */ |
| 1826 core.List<AcceleratorConfiguration> accelerators; |
| 1783 /** Disk option configuration settings. */ | 1827 /** Disk option configuration settings. */ |
| 1784 DiskConfiguration diskConfiguration; | 1828 DiskConfiguration diskConfiguration; |
| 1785 /** | 1829 /** |
| 1786 * Output-only The Google Compute Engine image resource used for cluster | 1830 * Output-only The Google Compute Engine image resource used for cluster |
| 1787 * instances. Inferred from SoftwareConfiguration.image_version. | 1831 * instances. Inferred from SoftwareConfiguration.image_version. |
| 1788 */ | 1832 */ |
| 1789 core.String imageUri; | 1833 core.String imageUri; |
| 1790 /** | 1834 /** |
| 1791 * The list of instance names. Dataproc derives the names from cluster_name, | 1835 * The list of instance names. Dataproc derives the names from cluster_name, |
| 1792 * num_instances, and the instance group if not set by user (recommended | 1836 * num_instances, and the instance group if not set by user (recommended |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1808 ManagedGroupConfiguration managedGroupConfiguration; | 1852 ManagedGroupConfiguration managedGroupConfiguration; |
| 1809 /** | 1853 /** |
| 1810 * The number of VM instances in the instance group. For master instance | 1854 * The number of VM instances in the instance group. For master instance |
| 1811 * groups, must be set to 1. | 1855 * groups, must be set to 1. |
| 1812 */ | 1856 */ |
| 1813 core.int numInstances; | 1857 core.int numInstances; |
| 1814 | 1858 |
| 1815 InstanceGroupConfiguration(); | 1859 InstanceGroupConfiguration(); |
| 1816 | 1860 |
| 1817 InstanceGroupConfiguration.fromJson(core.Map _json) { | 1861 InstanceGroupConfiguration.fromJson(core.Map _json) { |
| 1862 if (_json.containsKey("accelerators")) { |
| 1863 accelerators = _json["accelerators"].map((value) => new AcceleratorConfigu
ration.fromJson(value)).toList(); |
| 1864 } |
| 1818 if (_json.containsKey("diskConfiguration")) { | 1865 if (_json.containsKey("diskConfiguration")) { |
| 1819 diskConfiguration = new DiskConfiguration.fromJson(_json["diskConfiguratio
n"]); | 1866 diskConfiguration = new DiskConfiguration.fromJson(_json["diskConfiguratio
n"]); |
| 1820 } | 1867 } |
| 1821 if (_json.containsKey("imageUri")) { | 1868 if (_json.containsKey("imageUri")) { |
| 1822 imageUri = _json["imageUri"]; | 1869 imageUri = _json["imageUri"]; |
| 1823 } | 1870 } |
| 1824 if (_json.containsKey("instanceNames")) { | 1871 if (_json.containsKey("instanceNames")) { |
| 1825 instanceNames = _json["instanceNames"]; | 1872 instanceNames = _json["instanceNames"]; |
| 1826 } | 1873 } |
| 1827 if (_json.containsKey("isPreemptible")) { | 1874 if (_json.containsKey("isPreemptible")) { |
| 1828 isPreemptible = _json["isPreemptible"]; | 1875 isPreemptible = _json["isPreemptible"]; |
| 1829 } | 1876 } |
| 1830 if (_json.containsKey("machineTypeUri")) { | 1877 if (_json.containsKey("machineTypeUri")) { |
| 1831 machineTypeUri = _json["machineTypeUri"]; | 1878 machineTypeUri = _json["machineTypeUri"]; |
| 1832 } | 1879 } |
| 1833 if (_json.containsKey("managedGroupConfiguration")) { | 1880 if (_json.containsKey("managedGroupConfiguration")) { |
| 1834 managedGroupConfiguration = new ManagedGroupConfiguration.fromJson(_json["
managedGroupConfiguration"]); | 1881 managedGroupConfiguration = new ManagedGroupConfiguration.fromJson(_json["
managedGroupConfiguration"]); |
| 1835 } | 1882 } |
| 1836 if (_json.containsKey("numInstances")) { | 1883 if (_json.containsKey("numInstances")) { |
| 1837 numInstances = _json["numInstances"]; | 1884 numInstances = _json["numInstances"]; |
| 1838 } | 1885 } |
| 1839 } | 1886 } |
| 1840 | 1887 |
| 1841 core.Map toJson() { | 1888 core.Map toJson() { |
| 1842 var _json = new core.Map(); | 1889 var _json = new core.Map(); |
| 1890 if (accelerators != null) { |
| 1891 _json["accelerators"] = accelerators.map((value) => (value).toJson()).toLi
st(); |
| 1892 } |
| 1843 if (diskConfiguration != null) { | 1893 if (diskConfiguration != null) { |
| 1844 _json["diskConfiguration"] = (diskConfiguration).toJson(); | 1894 _json["diskConfiguration"] = (diskConfiguration).toJson(); |
| 1845 } | 1895 } |
| 1846 if (imageUri != null) { | 1896 if (imageUri != null) { |
| 1847 _json["imageUri"] = imageUri; | 1897 _json["imageUri"] = imageUri; |
| 1848 } | 1898 } |
| 1849 if (instanceNames != null) { | 1899 if (instanceNames != null) { |
| 1850 _json["instanceNames"] = instanceNames; | 1900 _json["instanceNames"] = instanceNames; |
| 1851 } | 1901 } |
| 1852 if (isPreemptible != null) { | 1902 if (isPreemptible != null) { |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2091 } | 2141 } |
| 2092 } | 2142 } |
| 2093 | 2143 |
| 2094 /** Encapsulates the full scoping used to reference a job. */ | 2144 /** Encapsulates the full scoping used to reference a job. */ |
| 2095 class JobReference { | 2145 class JobReference { |
| 2096 /** | 2146 /** |
| 2097 * Required The job ID, which must be unique within the project. The job ID is | 2147 * Required The job ID, which must be unique within the project. The job ID is |
| 2098 * generated by the server upon job submission or provided by the user as a | 2148 * generated by the server upon job submission or provided by the user as a |
| 2099 * means to perform retries without creating duplicate jobs. The ID must | 2149 * means to perform retries without creating duplicate jobs. The ID must |
| 2100 * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens | 2150 * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens |
| 2101 * (-). The maximum length is 512 characters. | 2151 * (-). The maximum length is 100 characters. |
| 2102 */ | 2152 */ |
| 2103 core.String jobId; | 2153 core.String jobId; |
| 2104 /** | 2154 /** |
| 2105 * Required The ID of the Google Cloud Platform project that the job belongs | 2155 * Required The ID of the Google Cloud Platform project that the job belongs |
| 2106 * to. | 2156 * to. |
| 2107 */ | 2157 */ |
| 2108 core.String projectId; | 2158 core.String projectId; |
| 2109 | 2159 |
| 2110 JobReference(); | 2160 JobReference(); |
| 2111 | 2161 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2494 } | 2544 } |
| 2495 | 2545 |
| 2496 /** Metadata describing the operation. */ | 2546 /** Metadata describing the operation. */ |
| 2497 class OperationMetadata { | 2547 class OperationMetadata { |
| 2498 /** Name of the cluster for the operation. */ | 2548 /** Name of the cluster for the operation. */ |
| 2499 core.String clusterName; | 2549 core.String clusterName; |
| 2500 /** Cluster UUId for the operation. */ | 2550 /** Cluster UUId for the operation. */ |
| 2501 core.String clusterUuid; | 2551 core.String clusterUuid; |
| 2502 /** Output-only Short description of operation. */ | 2552 /** Output-only Short description of operation. */ |
| 2503 core.String description; | 2553 core.String description; |
| 2504 /** A message containing any operation metadata details. */ | |
| 2505 core.String details; | |
| 2506 /** The time that the operation completed. */ | |
| 2507 core.String endTime; | |
| 2508 /** A message containing the detailed operation state. */ | |
| 2509 core.String innerState; | |
| 2510 /** The time that the operation was requested. */ | |
| 2511 core.String insertTime; | |
| 2512 /** Output-only The operation type. */ | 2554 /** Output-only The operation type. */ |
| 2513 core.String operationType; | 2555 core.String operationType; |
| 2514 /** The time that the operation was started by the server. */ | |
| 2515 core.String startTime; | |
| 2516 /** | |
| 2517 * A message containing the operation state. | |
| 2518 * Possible string values are: | |
| 2519 * - "UNKNOWN" : Unused. | |
| 2520 * - "PENDING" : The operation has been created. | |
| 2521 * - "RUNNING" : The operation is currently running. | |
| 2522 * - "DONE" : The operation is done, either cancelled or completed. | |
| 2523 */ | |
| 2524 core.String state; | |
| 2525 /** Output-only Current operation status. */ | 2556 /** Output-only Current operation status. */ |
| 2526 OperationStatus status; | 2557 OperationStatus status; |
| 2527 /** Output-only Previous operation status. */ | 2558 /** Output-only Previous operation status. */ |
| 2528 core.List<OperationStatus> statusHistory; | 2559 core.List<OperationStatus> statusHistory; |
| 2529 /** Output-only Errors encountered during operation execution. */ | 2560 /** Output-only Errors encountered during operation execution. */ |
| 2530 core.List<core.String> warnings; | 2561 core.List<core.String> warnings; |
| 2531 | 2562 |
| 2532 OperationMetadata(); | 2563 OperationMetadata(); |
| 2533 | 2564 |
| 2534 OperationMetadata.fromJson(core.Map _json) { | 2565 OperationMetadata.fromJson(core.Map _json) { |
| 2535 if (_json.containsKey("clusterName")) { | 2566 if (_json.containsKey("clusterName")) { |
| 2536 clusterName = _json["clusterName"]; | 2567 clusterName = _json["clusterName"]; |
| 2537 } | 2568 } |
| 2538 if (_json.containsKey("clusterUuid")) { | 2569 if (_json.containsKey("clusterUuid")) { |
| 2539 clusterUuid = _json["clusterUuid"]; | 2570 clusterUuid = _json["clusterUuid"]; |
| 2540 } | 2571 } |
| 2541 if (_json.containsKey("description")) { | 2572 if (_json.containsKey("description")) { |
| 2542 description = _json["description"]; | 2573 description = _json["description"]; |
| 2543 } | 2574 } |
| 2544 if (_json.containsKey("details")) { | |
| 2545 details = _json["details"]; | |
| 2546 } | |
| 2547 if (_json.containsKey("endTime")) { | |
| 2548 endTime = _json["endTime"]; | |
| 2549 } | |
| 2550 if (_json.containsKey("innerState")) { | |
| 2551 innerState = _json["innerState"]; | |
| 2552 } | |
| 2553 if (_json.containsKey("insertTime")) { | |
| 2554 insertTime = _json["insertTime"]; | |
| 2555 } | |
| 2556 if (_json.containsKey("operationType")) { | 2575 if (_json.containsKey("operationType")) { |
| 2557 operationType = _json["operationType"]; | 2576 operationType = _json["operationType"]; |
| 2558 } | 2577 } |
| 2559 if (_json.containsKey("startTime")) { | |
| 2560 startTime = _json["startTime"]; | |
| 2561 } | |
| 2562 if (_json.containsKey("state")) { | |
| 2563 state = _json["state"]; | |
| 2564 } | |
| 2565 if (_json.containsKey("status")) { | 2578 if (_json.containsKey("status")) { |
| 2566 status = new OperationStatus.fromJson(_json["status"]); | 2579 status = new OperationStatus.fromJson(_json["status"]); |
| 2567 } | 2580 } |
| 2568 if (_json.containsKey("statusHistory")) { | 2581 if (_json.containsKey("statusHistory")) { |
| 2569 statusHistory = _json["statusHistory"].map((value) => new OperationStatus.
fromJson(value)).toList(); | 2582 statusHistory = _json["statusHistory"].map((value) => new OperationStatus.
fromJson(value)).toList(); |
| 2570 } | 2583 } |
| 2571 if (_json.containsKey("warnings")) { | 2584 if (_json.containsKey("warnings")) { |
| 2572 warnings = _json["warnings"]; | 2585 warnings = _json["warnings"]; |
| 2573 } | 2586 } |
| 2574 } | 2587 } |
| 2575 | 2588 |
| 2576 core.Map toJson() { | 2589 core.Map toJson() { |
| 2577 var _json = new core.Map(); | 2590 var _json = new core.Map(); |
| 2578 if (clusterName != null) { | 2591 if (clusterName != null) { |
| 2579 _json["clusterName"] = clusterName; | 2592 _json["clusterName"] = clusterName; |
| 2580 } | 2593 } |
| 2581 if (clusterUuid != null) { | 2594 if (clusterUuid != null) { |
| 2582 _json["clusterUuid"] = clusterUuid; | 2595 _json["clusterUuid"] = clusterUuid; |
| 2583 } | 2596 } |
| 2584 if (description != null) { | 2597 if (description != null) { |
| 2585 _json["description"] = description; | 2598 _json["description"] = description; |
| 2586 } | 2599 } |
| 2587 if (details != null) { | |
| 2588 _json["details"] = details; | |
| 2589 } | |
| 2590 if (endTime != null) { | |
| 2591 _json["endTime"] = endTime; | |
| 2592 } | |
| 2593 if (innerState != null) { | |
| 2594 _json["innerState"] = innerState; | |
| 2595 } | |
| 2596 if (insertTime != null) { | |
| 2597 _json["insertTime"] = insertTime; | |
| 2598 } | |
| 2599 if (operationType != null) { | 2600 if (operationType != null) { |
| 2600 _json["operationType"] = operationType; | 2601 _json["operationType"] = operationType; |
| 2601 } | 2602 } |
| 2602 if (startTime != null) { | |
| 2603 _json["startTime"] = startTime; | |
| 2604 } | |
| 2605 if (state != null) { | |
| 2606 _json["state"] = state; | |
| 2607 } | |
| 2608 if (status != null) { | 2603 if (status != null) { |
| 2609 _json["status"] = (status).toJson(); | 2604 _json["status"] = (status).toJson(); |
| 2610 } | 2605 } |
| 2611 if (statusHistory != null) { | 2606 if (statusHistory != null) { |
| 2612 _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).to
List(); | 2607 _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).to
List(); |
| 2613 } | 2608 } |
| 2614 if (warnings != null) { | 2609 if (warnings != null) { |
| 2615 _json["warnings"] = warnings; | 2610 _json["warnings"] = warnings; |
| 2616 } | 2611 } |
| 2617 return _json; | 2612 return _json; |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3271 } | 3266 } |
| 3272 if (state != null) { | 3267 if (state != null) { |
| 3273 _json["state"] = state; | 3268 _json["state"] = state; |
| 3274 } | 3269 } |
| 3275 if (trackingUrl != null) { | 3270 if (trackingUrl != null) { |
| 3276 _json["trackingUrl"] = trackingUrl; | 3271 _json["trackingUrl"] = trackingUrl; |
| 3277 } | 3272 } |
| 3278 return _json; | 3273 return _json; |
| 3279 } | 3274 } |
| 3280 } | 3275 } |
| OLD | NEW |