| 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.container.v1; | 3 library googleapis.container.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 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 | 1223 |
| 1224 AddonsConfig.fromJson(core.Map _json) { | 1224 AddonsConfig.fromJson(core.Map _json) { |
| 1225 if (_json.containsKey("horizontalPodAutoscaling")) { | 1225 if (_json.containsKey("horizontalPodAutoscaling")) { |
| 1226 horizontalPodAutoscaling = new HorizontalPodAutoscaling.fromJson(_json["ho
rizontalPodAutoscaling"]); | 1226 horizontalPodAutoscaling = new HorizontalPodAutoscaling.fromJson(_json["ho
rizontalPodAutoscaling"]); |
| 1227 } | 1227 } |
| 1228 if (_json.containsKey("httpLoadBalancing")) { | 1228 if (_json.containsKey("httpLoadBalancing")) { |
| 1229 httpLoadBalancing = new HttpLoadBalancing.fromJson(_json["httpLoadBalancin
g"]); | 1229 httpLoadBalancing = new HttpLoadBalancing.fromJson(_json["httpLoadBalancin
g"]); |
| 1230 } | 1230 } |
| 1231 } | 1231 } |
| 1232 | 1232 |
| 1233 core.Map toJson() { | 1233 core.Map<core.String, core.Object> toJson() { |
| 1234 var _json = new core.Map(); | 1234 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1235 if (horizontalPodAutoscaling != null) { | 1235 if (horizontalPodAutoscaling != null) { |
| 1236 _json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson(); | 1236 _json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson(); |
| 1237 } | 1237 } |
| 1238 if (httpLoadBalancing != null) { | 1238 if (httpLoadBalancing != null) { |
| 1239 _json["httpLoadBalancing"] = (httpLoadBalancing).toJson(); | 1239 _json["httpLoadBalancing"] = (httpLoadBalancing).toJson(); |
| 1240 } | 1240 } |
| 1241 return _json; | 1241 return _json; |
| 1242 } | 1242 } |
| 1243 } | 1243 } |
| 1244 | 1244 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1263 | 1263 |
| 1264 AutoUpgradeOptions.fromJson(core.Map _json) { | 1264 AutoUpgradeOptions.fromJson(core.Map _json) { |
| 1265 if (_json.containsKey("autoUpgradeStartTime")) { | 1265 if (_json.containsKey("autoUpgradeStartTime")) { |
| 1266 autoUpgradeStartTime = _json["autoUpgradeStartTime"]; | 1266 autoUpgradeStartTime = _json["autoUpgradeStartTime"]; |
| 1267 } | 1267 } |
| 1268 if (_json.containsKey("description")) { | 1268 if (_json.containsKey("description")) { |
| 1269 description = _json["description"]; | 1269 description = _json["description"]; |
| 1270 } | 1270 } |
| 1271 } | 1271 } |
| 1272 | 1272 |
| 1273 core.Map toJson() { | 1273 core.Map<core.String, core.Object> toJson() { |
| 1274 var _json = new core.Map(); | 1274 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1275 if (autoUpgradeStartTime != null) { | 1275 if (autoUpgradeStartTime != null) { |
| 1276 _json["autoUpgradeStartTime"] = autoUpgradeStartTime; | 1276 _json["autoUpgradeStartTime"] = autoUpgradeStartTime; |
| 1277 } | 1277 } |
| 1278 if (description != null) { | 1278 if (description != null) { |
| 1279 _json["description"] = description; | 1279 _json["description"] = description; |
| 1280 } | 1280 } |
| 1281 return _json; | 1281 return _json; |
| 1282 } | 1282 } |
| 1283 } | 1283 } |
| 1284 | 1284 |
| 1285 /** CancelOperationRequest cancels a single operation. */ | 1285 /** CancelOperationRequest cancels a single operation. */ |
| 1286 class CancelOperationRequest { | 1286 class CancelOperationRequest { |
| 1287 | 1287 |
| 1288 CancelOperationRequest(); | 1288 CancelOperationRequest(); |
| 1289 | 1289 |
| 1290 CancelOperationRequest.fromJson(core.Map _json) { | 1290 CancelOperationRequest.fromJson(core.Map _json) { |
| 1291 } | 1291 } |
| 1292 | 1292 |
| 1293 core.Map toJson() { | 1293 core.Map<core.String, core.Object> toJson() { |
| 1294 var _json = new core.Map(); | 1294 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1295 return _json; | 1295 return _json; |
| 1296 } | 1296 } |
| 1297 } | 1297 } |
| 1298 | 1298 |
| 1299 /** A Google Container Engine cluster. */ | 1299 /** A Google Container Engine cluster. */ |
| 1300 class Cluster { | 1300 class Cluster { |
| 1301 /** Configurations for the various addons available to run in the cluster. */ | 1301 /** Configurations for the various addons available to run in the cluster. */ |
| 1302 AddonsConfig addonsConfig; | 1302 AddonsConfig addonsConfig; |
| 1303 /** | 1303 /** |
| 1304 * The IP address range of the container pods in this cluster, in | 1304 * The IP address range of the container pods in this cluster, in |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 * range. | 1436 * range. |
| 1437 */ | 1437 */ |
| 1438 core.int nodeIpv4CidrSize; | 1438 core.int nodeIpv4CidrSize; |
| 1439 /** | 1439 /** |
| 1440 * The node pools associated with this cluster. | 1440 * The node pools associated with this cluster. |
| 1441 * This field should not be set if "node_config" or "initial_node_count" are | 1441 * This field should not be set if "node_config" or "initial_node_count" are |
| 1442 * specified. | 1442 * specified. |
| 1443 */ | 1443 */ |
| 1444 core.List<NodePool> nodePools; | 1444 core.List<NodePool> nodePools; |
| 1445 /** | 1445 /** |
| 1446 * The resource labels for the cluster to use to annotate any related GCE | 1446 * The resource labels for the cluster to use to annotate any related |
| 1447 * resources. | 1447 * Google Compute Engine resources. |
| 1448 */ | 1448 */ |
| 1449 core.Map<core.String, core.String> resourceLabels; | 1449 core.Map<core.String, core.String> resourceLabels; |
| 1450 /** [Output only] Server-defined URL for the resource. */ | 1450 /** [Output only] Server-defined URL for the resource. */ |
| 1451 core.String selfLink; | 1451 core.String selfLink; |
| 1452 /** | 1452 /** |
| 1453 * [Output only] The IP address range of the Kubernetes services in | 1453 * [Output only] The IP address range of the Kubernetes services in |
| 1454 * this cluster, in | 1454 * this cluster, in |
| 1455 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) | 1455 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
| 1456 * notation (e.g. `1.2.3.4/29`). Service addresses are | 1456 * notation (e.g. `1.2.3.4/29`). Service addresses are |
| 1457 * typically put in the last `/16` from the container CIDR. | 1457 * typically put in the last `/16` from the container CIDR. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1584 statusMessage = _json["statusMessage"]; | 1584 statusMessage = _json["statusMessage"]; |
| 1585 } | 1585 } |
| 1586 if (_json.containsKey("subnetwork")) { | 1586 if (_json.containsKey("subnetwork")) { |
| 1587 subnetwork = _json["subnetwork"]; | 1587 subnetwork = _json["subnetwork"]; |
| 1588 } | 1588 } |
| 1589 if (_json.containsKey("zone")) { | 1589 if (_json.containsKey("zone")) { |
| 1590 zone = _json["zone"]; | 1590 zone = _json["zone"]; |
| 1591 } | 1591 } |
| 1592 } | 1592 } |
| 1593 | 1593 |
| 1594 core.Map toJson() { | 1594 core.Map<core.String, core.Object> toJson() { |
| 1595 var _json = new core.Map(); | 1595 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1596 if (addonsConfig != null) { | 1596 if (addonsConfig != null) { |
| 1597 _json["addonsConfig"] = (addonsConfig).toJson(); | 1597 _json["addonsConfig"] = (addonsConfig).toJson(); |
| 1598 } | 1598 } |
| 1599 if (clusterIpv4Cidr != null) { | 1599 if (clusterIpv4Cidr != null) { |
| 1600 _json["clusterIpv4Cidr"] = clusterIpv4Cidr; | 1600 _json["clusterIpv4Cidr"] = clusterIpv4Cidr; |
| 1601 } | 1601 } |
| 1602 if (createTime != null) { | 1602 if (createTime != null) { |
| 1603 _json["createTime"] = createTime; | 1603 _json["createTime"] = createTime; |
| 1604 } | 1604 } |
| 1605 if (currentMasterVersion != null) { | 1605 if (currentMasterVersion != null) { |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1770 desiredNodePoolAutoscaling = new NodePoolAutoscaling.fromJson(_json["desir
edNodePoolAutoscaling"]); | 1770 desiredNodePoolAutoscaling = new NodePoolAutoscaling.fromJson(_json["desir
edNodePoolAutoscaling"]); |
| 1771 } | 1771 } |
| 1772 if (_json.containsKey("desiredNodePoolId")) { | 1772 if (_json.containsKey("desiredNodePoolId")) { |
| 1773 desiredNodePoolId = _json["desiredNodePoolId"]; | 1773 desiredNodePoolId = _json["desiredNodePoolId"]; |
| 1774 } | 1774 } |
| 1775 if (_json.containsKey("desiredNodeVersion")) { | 1775 if (_json.containsKey("desiredNodeVersion")) { |
| 1776 desiredNodeVersion = _json["desiredNodeVersion"]; | 1776 desiredNodeVersion = _json["desiredNodeVersion"]; |
| 1777 } | 1777 } |
| 1778 } | 1778 } |
| 1779 | 1779 |
| 1780 core.Map toJson() { | 1780 core.Map<core.String, core.Object> toJson() { |
| 1781 var _json = new core.Map(); | 1781 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1782 if (desiredAddonsConfig != null) { | 1782 if (desiredAddonsConfig != null) { |
| 1783 _json["desiredAddonsConfig"] = (desiredAddonsConfig).toJson(); | 1783 _json["desiredAddonsConfig"] = (desiredAddonsConfig).toJson(); |
| 1784 } | 1784 } |
| 1785 if (desiredImageType != null) { | 1785 if (desiredImageType != null) { |
| 1786 _json["desiredImageType"] = desiredImageType; | 1786 _json["desiredImageType"] = desiredImageType; |
| 1787 } | 1787 } |
| 1788 if (desiredLocations != null) { | 1788 if (desiredLocations != null) { |
| 1789 _json["desiredLocations"] = desiredLocations; | 1789 _json["desiredLocations"] = desiredLocations; |
| 1790 } | 1790 } |
| 1791 if (desiredMasterVersion != null) { | 1791 if (desiredMasterVersion != null) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1810 /** | 1810 /** |
| 1811 * CompleteIPRotationRequest moves the cluster master back into single-IP mode. | 1811 * CompleteIPRotationRequest moves the cluster master back into single-IP mode. |
| 1812 */ | 1812 */ |
| 1813 class CompleteIPRotationRequest { | 1813 class CompleteIPRotationRequest { |
| 1814 | 1814 |
| 1815 CompleteIPRotationRequest(); | 1815 CompleteIPRotationRequest(); |
| 1816 | 1816 |
| 1817 CompleteIPRotationRequest.fromJson(core.Map _json) { | 1817 CompleteIPRotationRequest.fromJson(core.Map _json) { |
| 1818 } | 1818 } |
| 1819 | 1819 |
| 1820 core.Map toJson() { | 1820 core.Map<core.String, core.Object> toJson() { |
| 1821 var _json = new core.Map(); | 1821 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1822 return _json; | 1822 return _json; |
| 1823 } | 1823 } |
| 1824 } | 1824 } |
| 1825 | 1825 |
| 1826 /** CreateClusterRequest creates a cluster. */ | 1826 /** CreateClusterRequest creates a cluster. */ |
| 1827 class CreateClusterRequest { | 1827 class CreateClusterRequest { |
| 1828 /** | 1828 /** |
| 1829 * A [cluster | 1829 * A [cluster |
| 1830 * resource](/container-engine/reference/rest/v1/projects.zones.clusters) | 1830 * resource](/container-engine/reference/rest/v1/projects.zones.clusters) |
| 1831 */ | 1831 */ |
| 1832 Cluster cluster; | 1832 Cluster cluster; |
| 1833 | 1833 |
| 1834 CreateClusterRequest(); | 1834 CreateClusterRequest(); |
| 1835 | 1835 |
| 1836 CreateClusterRequest.fromJson(core.Map _json) { | 1836 CreateClusterRequest.fromJson(core.Map _json) { |
| 1837 if (_json.containsKey("cluster")) { | 1837 if (_json.containsKey("cluster")) { |
| 1838 cluster = new Cluster.fromJson(_json["cluster"]); | 1838 cluster = new Cluster.fromJson(_json["cluster"]); |
| 1839 } | 1839 } |
| 1840 } | 1840 } |
| 1841 | 1841 |
| 1842 core.Map toJson() { | 1842 core.Map<core.String, core.Object> toJson() { |
| 1843 var _json = new core.Map(); | 1843 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1844 if (cluster != null) { | 1844 if (cluster != null) { |
| 1845 _json["cluster"] = (cluster).toJson(); | 1845 _json["cluster"] = (cluster).toJson(); |
| 1846 } | 1846 } |
| 1847 return _json; | 1847 return _json; |
| 1848 } | 1848 } |
| 1849 } | 1849 } |
| 1850 | 1850 |
| 1851 /** CreateNodePoolRequest creates a node pool for a cluster. */ | 1851 /** CreateNodePoolRequest creates a node pool for a cluster. */ |
| 1852 class CreateNodePoolRequest { | 1852 class CreateNodePoolRequest { |
| 1853 /** The node pool to create. */ | 1853 /** The node pool to create. */ |
| 1854 NodePool nodePool; | 1854 NodePool nodePool; |
| 1855 | 1855 |
| 1856 CreateNodePoolRequest(); | 1856 CreateNodePoolRequest(); |
| 1857 | 1857 |
| 1858 CreateNodePoolRequest.fromJson(core.Map _json) { | 1858 CreateNodePoolRequest.fromJson(core.Map _json) { |
| 1859 if (_json.containsKey("nodePool")) { | 1859 if (_json.containsKey("nodePool")) { |
| 1860 nodePool = new NodePool.fromJson(_json["nodePool"]); | 1860 nodePool = new NodePool.fromJson(_json["nodePool"]); |
| 1861 } | 1861 } |
| 1862 } | 1862 } |
| 1863 | 1863 |
| 1864 core.Map toJson() { | 1864 core.Map<core.String, core.Object> toJson() { |
| 1865 var _json = new core.Map(); | 1865 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1866 if (nodePool != null) { | 1866 if (nodePool != null) { |
| 1867 _json["nodePool"] = (nodePool).toJson(); | 1867 _json["nodePool"] = (nodePool).toJson(); |
| 1868 } | 1868 } |
| 1869 return _json; | 1869 return _json; |
| 1870 } | 1870 } |
| 1871 } | 1871 } |
| 1872 | 1872 |
| 1873 /** | 1873 /** |
| 1874 * A generic empty message that you can re-use to avoid defining duplicated | 1874 * A generic empty message that you can re-use to avoid defining duplicated |
| 1875 * empty messages in your APIs. A typical example is to use it as the request | 1875 * empty messages in your APIs. A typical example is to use it as the request |
| 1876 * or the response type of an API method. For instance: | 1876 * or the response type of an API method. For instance: |
| 1877 * | 1877 * |
| 1878 * service Foo { | 1878 * service Foo { |
| 1879 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 1879 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 1880 * } | 1880 * } |
| 1881 * | 1881 * |
| 1882 * The JSON representation for `Empty` is empty JSON object `{}`. | 1882 * The JSON representation for `Empty` is empty JSON object `{}`. |
| 1883 */ | 1883 */ |
| 1884 class Empty { | 1884 class Empty { |
| 1885 | 1885 |
| 1886 Empty(); | 1886 Empty(); |
| 1887 | 1887 |
| 1888 Empty.fromJson(core.Map _json) { | 1888 Empty.fromJson(core.Map _json) { |
| 1889 } | 1889 } |
| 1890 | 1890 |
| 1891 core.Map toJson() { | 1891 core.Map<core.String, core.Object> toJson() { |
| 1892 var _json = new core.Map(); | 1892 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1893 return _json; | 1893 return _json; |
| 1894 } | 1894 } |
| 1895 } | 1895 } |
| 1896 | 1896 |
| 1897 /** | 1897 /** |
| 1898 * Configuration options for the horizontal pod autoscaling feature, which | 1898 * Configuration options for the horizontal pod autoscaling feature, which |
| 1899 * increases or decreases the number of replica pods a replication controller | 1899 * increases or decreases the number of replica pods a replication controller |
| 1900 * has based on the resource usage of the existing pods. | 1900 * has based on the resource usage of the existing pods. |
| 1901 */ | 1901 */ |
| 1902 class HorizontalPodAutoscaling { | 1902 class HorizontalPodAutoscaling { |
| 1903 /** | 1903 /** |
| 1904 * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. | 1904 * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. |
| 1905 * When enabled, it ensures that a Heapster pod is running in the cluster, | 1905 * When enabled, it ensures that a Heapster pod is running in the cluster, |
| 1906 * which is also used by the Cloud Monitoring service. | 1906 * which is also used by the Cloud Monitoring service. |
| 1907 */ | 1907 */ |
| 1908 core.bool disabled; | 1908 core.bool disabled; |
| 1909 | 1909 |
| 1910 HorizontalPodAutoscaling(); | 1910 HorizontalPodAutoscaling(); |
| 1911 | 1911 |
| 1912 HorizontalPodAutoscaling.fromJson(core.Map _json) { | 1912 HorizontalPodAutoscaling.fromJson(core.Map _json) { |
| 1913 if (_json.containsKey("disabled")) { | 1913 if (_json.containsKey("disabled")) { |
| 1914 disabled = _json["disabled"]; | 1914 disabled = _json["disabled"]; |
| 1915 } | 1915 } |
| 1916 } | 1916 } |
| 1917 | 1917 |
| 1918 core.Map toJson() { | 1918 core.Map<core.String, core.Object> toJson() { |
| 1919 var _json = new core.Map(); | 1919 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1920 if (disabled != null) { | 1920 if (disabled != null) { |
| 1921 _json["disabled"] = disabled; | 1921 _json["disabled"] = disabled; |
| 1922 } | 1922 } |
| 1923 return _json; | 1923 return _json; |
| 1924 } | 1924 } |
| 1925 } | 1925 } |
| 1926 | 1926 |
| 1927 /** | 1927 /** |
| 1928 * Configuration options for the HTTP (L7) load balancing controller addon, | 1928 * Configuration options for the HTTP (L7) load balancing controller addon, |
| 1929 * which makes it easy to set up HTTP load balancers for services in a cluster. | 1929 * which makes it easy to set up HTTP load balancers for services in a cluster. |
| 1930 */ | 1930 */ |
| 1931 class HttpLoadBalancing { | 1931 class HttpLoadBalancing { |
| 1932 /** | 1932 /** |
| 1933 * Whether the HTTP Load Balancing controller is enabled in the cluster. | 1933 * Whether the HTTP Load Balancing controller is enabled in the cluster. |
| 1934 * When enabled, it runs a small pod in the cluster that manages the load | 1934 * When enabled, it runs a small pod in the cluster that manages the load |
| 1935 * balancers. | 1935 * balancers. |
| 1936 */ | 1936 */ |
| 1937 core.bool disabled; | 1937 core.bool disabled; |
| 1938 | 1938 |
| 1939 HttpLoadBalancing(); | 1939 HttpLoadBalancing(); |
| 1940 | 1940 |
| 1941 HttpLoadBalancing.fromJson(core.Map _json) { | 1941 HttpLoadBalancing.fromJson(core.Map _json) { |
| 1942 if (_json.containsKey("disabled")) { | 1942 if (_json.containsKey("disabled")) { |
| 1943 disabled = _json["disabled"]; | 1943 disabled = _json["disabled"]; |
| 1944 } | 1944 } |
| 1945 } | 1945 } |
| 1946 | 1946 |
| 1947 core.Map toJson() { | 1947 core.Map<core.String, core.Object> toJson() { |
| 1948 var _json = new core.Map(); | 1948 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1949 if (disabled != null) { | 1949 if (disabled != null) { |
| 1950 _json["disabled"] = disabled; | 1950 _json["disabled"] = disabled; |
| 1951 } | 1951 } |
| 1952 return _json; | 1952 return _json; |
| 1953 } | 1953 } |
| 1954 } | 1954 } |
| 1955 | 1955 |
| 1956 /** | 1956 /** |
| 1957 * Configuration for the legacy Attribute Based Access Control authorization | 1957 * Configuration for the legacy Attribute Based Access Control authorization |
| 1958 * mode. | 1958 * mode. |
| 1959 */ | 1959 */ |
| 1960 class LegacyAbac { | 1960 class LegacyAbac { |
| 1961 /** | 1961 /** |
| 1962 * Whether the ABAC authorizer is enabled for this cluster. When enabled, | 1962 * Whether the ABAC authorizer is enabled for this cluster. When enabled, |
| 1963 * identities in the system, including service accounts, nodes, and | 1963 * identities in the system, including service accounts, nodes, and |
| 1964 * controllers, will have statically granted permissions beyond those | 1964 * controllers, will have statically granted permissions beyond those |
| 1965 * provided by the RBAC configuration or IAM. | 1965 * provided by the RBAC configuration or IAM. |
| 1966 */ | 1966 */ |
| 1967 core.bool enabled; | 1967 core.bool enabled; |
| 1968 | 1968 |
| 1969 LegacyAbac(); | 1969 LegacyAbac(); |
| 1970 | 1970 |
| 1971 LegacyAbac.fromJson(core.Map _json) { | 1971 LegacyAbac.fromJson(core.Map _json) { |
| 1972 if (_json.containsKey("enabled")) { | 1972 if (_json.containsKey("enabled")) { |
| 1973 enabled = _json["enabled"]; | 1973 enabled = _json["enabled"]; |
| 1974 } | 1974 } |
| 1975 } | 1975 } |
| 1976 | 1976 |
| 1977 core.Map toJson() { | 1977 core.Map<core.String, core.Object> toJson() { |
| 1978 var _json = new core.Map(); | 1978 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1979 if (enabled != null) { | 1979 if (enabled != null) { |
| 1980 _json["enabled"] = enabled; | 1980 _json["enabled"] = enabled; |
| 1981 } | 1981 } |
| 1982 return _json; | 1982 return _json; |
| 1983 } | 1983 } |
| 1984 } | 1984 } |
| 1985 | 1985 |
| 1986 /** ListClustersResponse is the result of ListClustersRequest. */ | 1986 /** ListClustersResponse is the result of ListClustersRequest. */ |
| 1987 class ListClustersResponse { | 1987 class ListClustersResponse { |
| 1988 /** | 1988 /** |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2000 | 2000 |
| 2001 ListClustersResponse.fromJson(core.Map _json) { | 2001 ListClustersResponse.fromJson(core.Map _json) { |
| 2002 if (_json.containsKey("clusters")) { | 2002 if (_json.containsKey("clusters")) { |
| 2003 clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).t
oList(); | 2003 clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).t
oList(); |
| 2004 } | 2004 } |
| 2005 if (_json.containsKey("missingZones")) { | 2005 if (_json.containsKey("missingZones")) { |
| 2006 missingZones = _json["missingZones"]; | 2006 missingZones = _json["missingZones"]; |
| 2007 } | 2007 } |
| 2008 } | 2008 } |
| 2009 | 2009 |
| 2010 core.Map toJson() { | 2010 core.Map<core.String, core.Object> toJson() { |
| 2011 var _json = new core.Map(); | 2011 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2012 if (clusters != null) { | 2012 if (clusters != null) { |
| 2013 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); | 2013 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); |
| 2014 } | 2014 } |
| 2015 if (missingZones != null) { | 2015 if (missingZones != null) { |
| 2016 _json["missingZones"] = missingZones; | 2016 _json["missingZones"] = missingZones; |
| 2017 } | 2017 } |
| 2018 return _json; | 2018 return _json; |
| 2019 } | 2019 } |
| 2020 } | 2020 } |
| 2021 | 2021 |
| 2022 /** ListNodePoolsResponse is the result of ListNodePoolsRequest. */ | 2022 /** ListNodePoolsResponse is the result of ListNodePoolsRequest. */ |
| 2023 class ListNodePoolsResponse { | 2023 class ListNodePoolsResponse { |
| 2024 /** A list of node pools for a cluster. */ | 2024 /** A list of node pools for a cluster. */ |
| 2025 core.List<NodePool> nodePools; | 2025 core.List<NodePool> nodePools; |
| 2026 | 2026 |
| 2027 ListNodePoolsResponse(); | 2027 ListNodePoolsResponse(); |
| 2028 | 2028 |
| 2029 ListNodePoolsResponse.fromJson(core.Map _json) { | 2029 ListNodePoolsResponse.fromJson(core.Map _json) { |
| 2030 if (_json.containsKey("nodePools")) { | 2030 if (_json.containsKey("nodePools")) { |
| 2031 nodePools = _json["nodePools"].map((value) => new NodePool.fromJson(value)
).toList(); | 2031 nodePools = _json["nodePools"].map((value) => new NodePool.fromJson(value)
).toList(); |
| 2032 } | 2032 } |
| 2033 } | 2033 } |
| 2034 | 2034 |
| 2035 core.Map toJson() { | 2035 core.Map<core.String, core.Object> toJson() { |
| 2036 var _json = new core.Map(); | 2036 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2037 if (nodePools != null) { | 2037 if (nodePools != null) { |
| 2038 _json["nodePools"] = nodePools.map((value) => (value).toJson()).toList(); | 2038 _json["nodePools"] = nodePools.map((value) => (value).toJson()).toList(); |
| 2039 } | 2039 } |
| 2040 return _json; | 2040 return _json; |
| 2041 } | 2041 } |
| 2042 } | 2042 } |
| 2043 | 2043 |
| 2044 /** ListOperationsResponse is the result of ListOperationsRequest. */ | 2044 /** ListOperationsResponse is the result of ListOperationsRequest. */ |
| 2045 class ListOperationsResponse { | 2045 class ListOperationsResponse { |
| 2046 /** | 2046 /** |
| 2047 * If any zones are listed here, the list of operations returned | 2047 * If any zones are listed here, the list of operations returned |
| 2048 * may be missing the operations from those zones. | 2048 * may be missing the operations from those zones. |
| 2049 */ | 2049 */ |
| 2050 core.List<core.String> missingZones; | 2050 core.List<core.String> missingZones; |
| 2051 /** A list of operations in the project in the specified zone. */ | 2051 /** A list of operations in the project in the specified zone. */ |
| 2052 core.List<Operation> operations; | 2052 core.List<Operation> operations; |
| 2053 | 2053 |
| 2054 ListOperationsResponse(); | 2054 ListOperationsResponse(); |
| 2055 | 2055 |
| 2056 ListOperationsResponse.fromJson(core.Map _json) { | 2056 ListOperationsResponse.fromJson(core.Map _json) { |
| 2057 if (_json.containsKey("missingZones")) { | 2057 if (_json.containsKey("missingZones")) { |
| 2058 missingZones = _json["missingZones"]; | 2058 missingZones = _json["missingZones"]; |
| 2059 } | 2059 } |
| 2060 if (_json.containsKey("operations")) { | 2060 if (_json.containsKey("operations")) { |
| 2061 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 2061 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
| 2062 } | 2062 } |
| 2063 } | 2063 } |
| 2064 | 2064 |
| 2065 core.Map toJson() { | 2065 core.Map<core.String, core.Object> toJson() { |
| 2066 var _json = new core.Map(); | 2066 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2067 if (missingZones != null) { | 2067 if (missingZones != null) { |
| 2068 _json["missingZones"] = missingZones; | 2068 _json["missingZones"] = missingZones; |
| 2069 } | 2069 } |
| 2070 if (operations != null) { | 2070 if (operations != null) { |
| 2071 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 2071 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
| 2072 } | 2072 } |
| 2073 return _json; | 2073 return _json; |
| 2074 } | 2074 } |
| 2075 } | 2075 } |
| 2076 | 2076 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2122 clusterCaCertificate = _json["clusterCaCertificate"]; | 2122 clusterCaCertificate = _json["clusterCaCertificate"]; |
| 2123 } | 2123 } |
| 2124 if (_json.containsKey("password")) { | 2124 if (_json.containsKey("password")) { |
| 2125 password = _json["password"]; | 2125 password = _json["password"]; |
| 2126 } | 2126 } |
| 2127 if (_json.containsKey("username")) { | 2127 if (_json.containsKey("username")) { |
| 2128 username = _json["username"]; | 2128 username = _json["username"]; |
| 2129 } | 2129 } |
| 2130 } | 2130 } |
| 2131 | 2131 |
| 2132 core.Map toJson() { | 2132 core.Map<core.String, core.Object> toJson() { |
| 2133 var _json = new core.Map(); | 2133 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2134 if (clientCertificate != null) { | 2134 if (clientCertificate != null) { |
| 2135 _json["clientCertificate"] = clientCertificate; | 2135 _json["clientCertificate"] = clientCertificate; |
| 2136 } | 2136 } |
| 2137 if (clientKey != null) { | 2137 if (clientKey != null) { |
| 2138 _json["clientKey"] = clientKey; | 2138 _json["clientKey"] = clientKey; |
| 2139 } | 2139 } |
| 2140 if (clusterCaCertificate != null) { | 2140 if (clusterCaCertificate != null) { |
| 2141 _json["clusterCaCertificate"] = clusterCaCertificate; | 2141 _json["clusterCaCertificate"] = clusterCaCertificate; |
| 2142 } | 2142 } |
| 2143 if (password != null) { | 2143 if (password != null) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2222 * communicating with **gcr.io** | 2222 * communicating with **gcr.io** |
| 2223 * (the [Google Container Registry](/container-registry/)). | 2223 * (the [Google Container Registry](/container-registry/)). |
| 2224 * | 2224 * |
| 2225 * If unspecified, no scopes are added, unless Cloud Logging or Cloud | 2225 * If unspecified, no scopes are added, unless Cloud Logging or Cloud |
| 2226 * Monitoring are enabled, in which case their required scopes will be added. | 2226 * Monitoring are enabled, in which case their required scopes will be added. |
| 2227 */ | 2227 */ |
| 2228 core.List<core.String> oauthScopes; | 2228 core.List<core.String> oauthScopes; |
| 2229 /** | 2229 /** |
| 2230 * Whether the nodes are created as preemptible VM instances. See: | 2230 * Whether the nodes are created as preemptible VM instances. See: |
| 2231 * https://cloud.google.com/compute/docs/instances/preemptible for more | 2231 * https://cloud.google.com/compute/docs/instances/preemptible for more |
| 2232 * inforamtion about preemptible VM instances. | 2232 * information about preemptible VM instances. |
| 2233 */ | 2233 */ |
| 2234 core.bool preemptible; | 2234 core.bool preemptible; |
| 2235 /** | 2235 /** |
| 2236 * The Google Cloud Platform Service Account to be used by the node VMs. If | 2236 * The Google Cloud Platform Service Account to be used by the node VMs. If |
| 2237 * no Service Account is specified, the "default" service account is used. | 2237 * no Service Account is specified, the "default" service account is used. |
| 2238 */ | 2238 */ |
| 2239 core.String serviceAccount; | 2239 core.String serviceAccount; |
| 2240 /** | 2240 /** |
| 2241 * The list of instance tags applied to all nodes. Tags are used to identify | 2241 * The list of instance tags applied to all nodes. Tags are used to identify |
| 2242 * valid sources or targets for network firewalls and are specified by | 2242 * valid sources or targets for network firewalls and are specified by |
| (...skipping 30 matching lines...) Expand all Loading... |
| 2273 preemptible = _json["preemptible"]; | 2273 preemptible = _json["preemptible"]; |
| 2274 } | 2274 } |
| 2275 if (_json.containsKey("serviceAccount")) { | 2275 if (_json.containsKey("serviceAccount")) { |
| 2276 serviceAccount = _json["serviceAccount"]; | 2276 serviceAccount = _json["serviceAccount"]; |
| 2277 } | 2277 } |
| 2278 if (_json.containsKey("tags")) { | 2278 if (_json.containsKey("tags")) { |
| 2279 tags = _json["tags"]; | 2279 tags = _json["tags"]; |
| 2280 } | 2280 } |
| 2281 } | 2281 } |
| 2282 | 2282 |
| 2283 core.Map toJson() { | 2283 core.Map<core.String, core.Object> toJson() { |
| 2284 var _json = new core.Map(); | 2284 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2285 if (diskSizeGb != null) { | 2285 if (diskSizeGb != null) { |
| 2286 _json["diskSizeGb"] = diskSizeGb; | 2286 _json["diskSizeGb"] = diskSizeGb; |
| 2287 } | 2287 } |
| 2288 if (imageType != null) { | 2288 if (imageType != null) { |
| 2289 _json["imageType"] = imageType; | 2289 _json["imageType"] = imageType; |
| 2290 } | 2290 } |
| 2291 if (labels != null) { | 2291 if (labels != null) { |
| 2292 _json["labels"] = labels; | 2292 _json["labels"] = labels; |
| 2293 } | 2293 } |
| 2294 if (localSsdCount != null) { | 2294 if (localSsdCount != null) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2344 autoRepair = _json["autoRepair"]; | 2344 autoRepair = _json["autoRepair"]; |
| 2345 } | 2345 } |
| 2346 if (_json.containsKey("autoUpgrade")) { | 2346 if (_json.containsKey("autoUpgrade")) { |
| 2347 autoUpgrade = _json["autoUpgrade"]; | 2347 autoUpgrade = _json["autoUpgrade"]; |
| 2348 } | 2348 } |
| 2349 if (_json.containsKey("upgradeOptions")) { | 2349 if (_json.containsKey("upgradeOptions")) { |
| 2350 upgradeOptions = new AutoUpgradeOptions.fromJson(_json["upgradeOptions"]); | 2350 upgradeOptions = new AutoUpgradeOptions.fromJson(_json["upgradeOptions"]); |
| 2351 } | 2351 } |
| 2352 } | 2352 } |
| 2353 | 2353 |
| 2354 core.Map toJson() { | 2354 core.Map<core.String, core.Object> toJson() { |
| 2355 var _json = new core.Map(); | 2355 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2356 if (autoRepair != null) { | 2356 if (autoRepair != null) { |
| 2357 _json["autoRepair"] = autoRepair; | 2357 _json["autoRepair"] = autoRepair; |
| 2358 } | 2358 } |
| 2359 if (autoUpgrade != null) { | 2359 if (autoUpgrade != null) { |
| 2360 _json["autoUpgrade"] = autoUpgrade; | 2360 _json["autoUpgrade"] = autoUpgrade; |
| 2361 } | 2361 } |
| 2362 if (upgradeOptions != null) { | 2362 if (upgradeOptions != null) { |
| 2363 _json["upgradeOptions"] = (upgradeOptions).toJson(); | 2363 _json["upgradeOptions"] = (upgradeOptions).toJson(); |
| 2364 } | 2364 } |
| 2365 return _json; | 2365 return _json; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2460 status = _json["status"]; | 2460 status = _json["status"]; |
| 2461 } | 2461 } |
| 2462 if (_json.containsKey("statusMessage")) { | 2462 if (_json.containsKey("statusMessage")) { |
| 2463 statusMessage = _json["statusMessage"]; | 2463 statusMessage = _json["statusMessage"]; |
| 2464 } | 2464 } |
| 2465 if (_json.containsKey("version")) { | 2465 if (_json.containsKey("version")) { |
| 2466 version = _json["version"]; | 2466 version = _json["version"]; |
| 2467 } | 2467 } |
| 2468 } | 2468 } |
| 2469 | 2469 |
| 2470 core.Map toJson() { | 2470 core.Map<core.String, core.Object> toJson() { |
| 2471 var _json = new core.Map(); | 2471 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2472 if (autoscaling != null) { | 2472 if (autoscaling != null) { |
| 2473 _json["autoscaling"] = (autoscaling).toJson(); | 2473 _json["autoscaling"] = (autoscaling).toJson(); |
| 2474 } | 2474 } |
| 2475 if (config != null) { | 2475 if (config != null) { |
| 2476 _json["config"] = (config).toJson(); | 2476 _json["config"] = (config).toJson(); |
| 2477 } | 2477 } |
| 2478 if (initialNodeCount != null) { | 2478 if (initialNodeCount != null) { |
| 2479 _json["initialNodeCount"] = initialNodeCount; | 2479 _json["initialNodeCount"] = initialNodeCount; |
| 2480 } | 2480 } |
| 2481 if (instanceGroupUrls != null) { | 2481 if (instanceGroupUrls != null) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2528 enabled = _json["enabled"]; | 2528 enabled = _json["enabled"]; |
| 2529 } | 2529 } |
| 2530 if (_json.containsKey("maxNodeCount")) { | 2530 if (_json.containsKey("maxNodeCount")) { |
| 2531 maxNodeCount = _json["maxNodeCount"]; | 2531 maxNodeCount = _json["maxNodeCount"]; |
| 2532 } | 2532 } |
| 2533 if (_json.containsKey("minNodeCount")) { | 2533 if (_json.containsKey("minNodeCount")) { |
| 2534 minNodeCount = _json["minNodeCount"]; | 2534 minNodeCount = _json["minNodeCount"]; |
| 2535 } | 2535 } |
| 2536 } | 2536 } |
| 2537 | 2537 |
| 2538 core.Map toJson() { | 2538 core.Map<core.String, core.Object> toJson() { |
| 2539 var _json = new core.Map(); | 2539 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2540 if (enabled != null) { | 2540 if (enabled != null) { |
| 2541 _json["enabled"] = enabled; | 2541 _json["enabled"] = enabled; |
| 2542 } | 2542 } |
| 2543 if (maxNodeCount != null) { | 2543 if (maxNodeCount != null) { |
| 2544 _json["maxNodeCount"] = maxNodeCount; | 2544 _json["maxNodeCount"] = maxNodeCount; |
| 2545 } | 2545 } |
| 2546 if (minNodeCount != null) { | 2546 if (minNodeCount != null) { |
| 2547 _json["minNodeCount"] = minNodeCount; | 2547 _json["minNodeCount"] = minNodeCount; |
| 2548 } | 2548 } |
| 2549 return _json; | 2549 return _json; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2623 statusMessage = _json["statusMessage"]; | 2623 statusMessage = _json["statusMessage"]; |
| 2624 } | 2624 } |
| 2625 if (_json.containsKey("targetLink")) { | 2625 if (_json.containsKey("targetLink")) { |
| 2626 targetLink = _json["targetLink"]; | 2626 targetLink = _json["targetLink"]; |
| 2627 } | 2627 } |
| 2628 if (_json.containsKey("zone")) { | 2628 if (_json.containsKey("zone")) { |
| 2629 zone = _json["zone"]; | 2629 zone = _json["zone"]; |
| 2630 } | 2630 } |
| 2631 } | 2631 } |
| 2632 | 2632 |
| 2633 core.Map toJson() { | 2633 core.Map<core.String, core.Object> toJson() { |
| 2634 var _json = new core.Map(); | 2634 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2635 if (detail != null) { | 2635 if (detail != null) { |
| 2636 _json["detail"] = detail; | 2636 _json["detail"] = detail; |
| 2637 } | 2637 } |
| 2638 if (name != null) { | 2638 if (name != null) { |
| 2639 _json["name"] = name; | 2639 _json["name"] = name; |
| 2640 } | 2640 } |
| 2641 if (operationType != null) { | 2641 if (operationType != null) { |
| 2642 _json["operationType"] = operationType; | 2642 _json["operationType"] = operationType; |
| 2643 } | 2643 } |
| 2644 if (selfLink != null) { | 2644 if (selfLink != null) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2665 * NodePool upgrade. This will be an no-op if the last upgrade successfully | 2665 * NodePool upgrade. This will be an no-op if the last upgrade successfully |
| 2666 * completed. | 2666 * completed. |
| 2667 */ | 2667 */ |
| 2668 class RollbackNodePoolUpgradeRequest { | 2668 class RollbackNodePoolUpgradeRequest { |
| 2669 | 2669 |
| 2670 RollbackNodePoolUpgradeRequest(); | 2670 RollbackNodePoolUpgradeRequest(); |
| 2671 | 2671 |
| 2672 RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) { | 2672 RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) { |
| 2673 } | 2673 } |
| 2674 | 2674 |
| 2675 core.Map toJson() { | 2675 core.Map<core.String, core.Object> toJson() { |
| 2676 var _json = new core.Map(); | 2676 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2677 return _json; | 2677 return _json; |
| 2678 } | 2678 } |
| 2679 } | 2679 } |
| 2680 | 2680 |
| 2681 /** Container Engine service configuration. */ | 2681 /** Container Engine service configuration. */ |
| 2682 class ServerConfig { | 2682 class ServerConfig { |
| 2683 /** Version of Kubernetes the service deploys by default. */ | 2683 /** Version of Kubernetes the service deploys by default. */ |
| 2684 core.String defaultClusterVersion; | 2684 core.String defaultClusterVersion; |
| 2685 /** Default image type. */ | 2685 /** Default image type. */ |
| 2686 core.String defaultImageType; | 2686 core.String defaultImageType; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2704 validImageTypes = _json["validImageTypes"]; | 2704 validImageTypes = _json["validImageTypes"]; |
| 2705 } | 2705 } |
| 2706 if (_json.containsKey("validMasterVersions")) { | 2706 if (_json.containsKey("validMasterVersions")) { |
| 2707 validMasterVersions = _json["validMasterVersions"]; | 2707 validMasterVersions = _json["validMasterVersions"]; |
| 2708 } | 2708 } |
| 2709 if (_json.containsKey("validNodeVersions")) { | 2709 if (_json.containsKey("validNodeVersions")) { |
| 2710 validNodeVersions = _json["validNodeVersions"]; | 2710 validNodeVersions = _json["validNodeVersions"]; |
| 2711 } | 2711 } |
| 2712 } | 2712 } |
| 2713 | 2713 |
| 2714 core.Map toJson() { | 2714 core.Map<core.String, core.Object> toJson() { |
| 2715 var _json = new core.Map(); | 2715 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2716 if (defaultClusterVersion != null) { | 2716 if (defaultClusterVersion != null) { |
| 2717 _json["defaultClusterVersion"] = defaultClusterVersion; | 2717 _json["defaultClusterVersion"] = defaultClusterVersion; |
| 2718 } | 2718 } |
| 2719 if (defaultImageType != null) { | 2719 if (defaultImageType != null) { |
| 2720 _json["defaultImageType"] = defaultImageType; | 2720 _json["defaultImageType"] = defaultImageType; |
| 2721 } | 2721 } |
| 2722 if (validImageTypes != null) { | 2722 if (validImageTypes != null) { |
| 2723 _json["validImageTypes"] = validImageTypes; | 2723 _json["validImageTypes"] = validImageTypes; |
| 2724 } | 2724 } |
| 2725 if (validMasterVersions != null) { | 2725 if (validMasterVersions != null) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 2754 | 2754 |
| 2755 SetLabelsRequest.fromJson(core.Map _json) { | 2755 SetLabelsRequest.fromJson(core.Map _json) { |
| 2756 if (_json.containsKey("labelFingerprint")) { | 2756 if (_json.containsKey("labelFingerprint")) { |
| 2757 labelFingerprint = _json["labelFingerprint"]; | 2757 labelFingerprint = _json["labelFingerprint"]; |
| 2758 } | 2758 } |
| 2759 if (_json.containsKey("resourceLabels")) { | 2759 if (_json.containsKey("resourceLabels")) { |
| 2760 resourceLabels = _json["resourceLabels"]; | 2760 resourceLabels = _json["resourceLabels"]; |
| 2761 } | 2761 } |
| 2762 } | 2762 } |
| 2763 | 2763 |
| 2764 core.Map toJson() { | 2764 core.Map<core.String, core.Object> toJson() { |
| 2765 var _json = new core.Map(); | 2765 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2766 if (labelFingerprint != null) { | 2766 if (labelFingerprint != null) { |
| 2767 _json["labelFingerprint"] = labelFingerprint; | 2767 _json["labelFingerprint"] = labelFingerprint; |
| 2768 } | 2768 } |
| 2769 if (resourceLabels != null) { | 2769 if (resourceLabels != null) { |
| 2770 _json["resourceLabels"] = resourceLabels; | 2770 _json["resourceLabels"] = resourceLabels; |
| 2771 } | 2771 } |
| 2772 return _json; | 2772 return _json; |
| 2773 } | 2773 } |
| 2774 } | 2774 } |
| 2775 | 2775 |
| 2776 /** | 2776 /** |
| 2777 * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for | 2777 * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for |
| 2778 * a cluster. | 2778 * a cluster. |
| 2779 */ | 2779 */ |
| 2780 class SetLegacyAbacRequest { | 2780 class SetLegacyAbacRequest { |
| 2781 /** Whether ABAC authorization will be enabled in the cluster. */ | 2781 /** Whether ABAC authorization will be enabled in the cluster. */ |
| 2782 core.bool enabled; | 2782 core.bool enabled; |
| 2783 | 2783 |
| 2784 SetLegacyAbacRequest(); | 2784 SetLegacyAbacRequest(); |
| 2785 | 2785 |
| 2786 SetLegacyAbacRequest.fromJson(core.Map _json) { | 2786 SetLegacyAbacRequest.fromJson(core.Map _json) { |
| 2787 if (_json.containsKey("enabled")) { | 2787 if (_json.containsKey("enabled")) { |
| 2788 enabled = _json["enabled"]; | 2788 enabled = _json["enabled"]; |
| 2789 } | 2789 } |
| 2790 } | 2790 } |
| 2791 | 2791 |
| 2792 core.Map toJson() { | 2792 core.Map<core.String, core.Object> toJson() { |
| 2793 var _json = new core.Map(); | 2793 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2794 if (enabled != null) { | 2794 if (enabled != null) { |
| 2795 _json["enabled"] = enabled; | 2795 _json["enabled"] = enabled; |
| 2796 } | 2796 } |
| 2797 return _json; | 2797 return _json; |
| 2798 } | 2798 } |
| 2799 } | 2799 } |
| 2800 | 2800 |
| 2801 /** SetMasterAuthRequest updates the admin password of a cluster. */ | 2801 /** SetMasterAuthRequest updates the admin password of a cluster. */ |
| 2802 class SetMasterAuthRequest { | 2802 class SetMasterAuthRequest { |
| 2803 /** | 2803 /** |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2815 | 2815 |
| 2816 SetMasterAuthRequest.fromJson(core.Map _json) { | 2816 SetMasterAuthRequest.fromJson(core.Map _json) { |
| 2817 if (_json.containsKey("action")) { | 2817 if (_json.containsKey("action")) { |
| 2818 action = _json["action"]; | 2818 action = _json["action"]; |
| 2819 } | 2819 } |
| 2820 if (_json.containsKey("update")) { | 2820 if (_json.containsKey("update")) { |
| 2821 update = new MasterAuth.fromJson(_json["update"]); | 2821 update = new MasterAuth.fromJson(_json["update"]); |
| 2822 } | 2822 } |
| 2823 } | 2823 } |
| 2824 | 2824 |
| 2825 core.Map toJson() { | 2825 core.Map<core.String, core.Object> toJson() { |
| 2826 var _json = new core.Map(); | 2826 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2827 if (action != null) { | 2827 if (action != null) { |
| 2828 _json["action"] = action; | 2828 _json["action"] = action; |
| 2829 } | 2829 } |
| 2830 if (update != null) { | 2830 if (update != null) { |
| 2831 _json["update"] = (update).toJson(); | 2831 _json["update"] = (update).toJson(); |
| 2832 } | 2832 } |
| 2833 return _json; | 2833 return _json; |
| 2834 } | 2834 } |
| 2835 } | 2835 } |
| 2836 | 2836 |
| 2837 /** | 2837 /** |
| 2838 * SetNodePoolManagementRequest sets the node management properties of a node | 2838 * SetNodePoolManagementRequest sets the node management properties of a node |
| 2839 * pool. | 2839 * pool. |
| 2840 */ | 2840 */ |
| 2841 class SetNodePoolManagementRequest { | 2841 class SetNodePoolManagementRequest { |
| 2842 /** NodeManagement configuration for the node pool. */ | 2842 /** NodeManagement configuration for the node pool. */ |
| 2843 NodeManagement management; | 2843 NodeManagement management; |
| 2844 | 2844 |
| 2845 SetNodePoolManagementRequest(); | 2845 SetNodePoolManagementRequest(); |
| 2846 | 2846 |
| 2847 SetNodePoolManagementRequest.fromJson(core.Map _json) { | 2847 SetNodePoolManagementRequest.fromJson(core.Map _json) { |
| 2848 if (_json.containsKey("management")) { | 2848 if (_json.containsKey("management")) { |
| 2849 management = new NodeManagement.fromJson(_json["management"]); | 2849 management = new NodeManagement.fromJson(_json["management"]); |
| 2850 } | 2850 } |
| 2851 } | 2851 } |
| 2852 | 2852 |
| 2853 core.Map toJson() { | 2853 core.Map<core.String, core.Object> toJson() { |
| 2854 var _json = new core.Map(); | 2854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2855 if (management != null) { | 2855 if (management != null) { |
| 2856 _json["management"] = (management).toJson(); | 2856 _json["management"] = (management).toJson(); |
| 2857 } | 2857 } |
| 2858 return _json; | 2858 return _json; |
| 2859 } | 2859 } |
| 2860 } | 2860 } |
| 2861 | 2861 |
| 2862 /** | 2862 /** |
| 2863 * StartIPRotationRequest creates a new IP for the cluster and then performs | 2863 * StartIPRotationRequest creates a new IP for the cluster and then performs |
| 2864 * a node upgrade on each node pool to point to the new IP. | 2864 * a node upgrade on each node pool to point to the new IP. |
| 2865 */ | 2865 */ |
| 2866 class StartIPRotationRequest { | 2866 class StartIPRotationRequest { |
| 2867 | 2867 |
| 2868 StartIPRotationRequest(); | 2868 StartIPRotationRequest(); |
| 2869 | 2869 |
| 2870 StartIPRotationRequest.fromJson(core.Map _json) { | 2870 StartIPRotationRequest.fromJson(core.Map _json) { |
| 2871 } | 2871 } |
| 2872 | 2872 |
| 2873 core.Map toJson() { | 2873 core.Map<core.String, core.Object> toJson() { |
| 2874 var _json = new core.Map(); | 2874 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2875 return _json; | 2875 return _json; |
| 2876 } | 2876 } |
| 2877 } | 2877 } |
| 2878 | 2878 |
| 2879 /** UpdateClusterRequest updates the settings of a cluster. */ | 2879 /** UpdateClusterRequest updates the settings of a cluster. */ |
| 2880 class UpdateClusterRequest { | 2880 class UpdateClusterRequest { |
| 2881 /** A description of the update. */ | 2881 /** A description of the update. */ |
| 2882 ClusterUpdate update; | 2882 ClusterUpdate update; |
| 2883 | 2883 |
| 2884 UpdateClusterRequest(); | 2884 UpdateClusterRequest(); |
| 2885 | 2885 |
| 2886 UpdateClusterRequest.fromJson(core.Map _json) { | 2886 UpdateClusterRequest.fromJson(core.Map _json) { |
| 2887 if (_json.containsKey("update")) { | 2887 if (_json.containsKey("update")) { |
| 2888 update = new ClusterUpdate.fromJson(_json["update"]); | 2888 update = new ClusterUpdate.fromJson(_json["update"]); |
| 2889 } | 2889 } |
| 2890 } | 2890 } |
| 2891 | 2891 |
| 2892 core.Map toJson() { | 2892 core.Map<core.String, core.Object> toJson() { |
| 2893 var _json = new core.Map(); | 2893 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2894 if (update != null) { | 2894 if (update != null) { |
| 2895 _json["update"] = (update).toJson(); | 2895 _json["update"] = (update).toJson(); |
| 2896 } | 2896 } |
| 2897 return _json; | 2897 return _json; |
| 2898 } | 2898 } |
| 2899 } | 2899 } |
| OLD | NEW |