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 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1723 uploadOptions: _uploadOptions, | 1723 uploadOptions: _uploadOptions, |
1724 uploadMedia: _uploadMedia, | 1724 uploadMedia: _uploadMedia, |
1725 downloadOptions: _downloadOptions); | 1725 downloadOptions: _downloadOptions); |
1726 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 1726 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
1727 } | 1727 } |
1728 | 1728 |
1729 } | 1729 } |
1730 | 1730 |
1731 | 1731 |
1732 | 1732 |
| 1733 /** AcceleratorConfig represents a Hardware Accelerator request. */ |
| 1734 class AcceleratorConfig { |
| 1735 /** The number of the accelerator cards exposed to an instance. */ |
| 1736 core.String acceleratorCount; |
| 1737 /** |
| 1738 * The accelerator type resource name. List of supported accelerators |
| 1739 * [here](/compute/docs/gpus/#Introduction) |
| 1740 */ |
| 1741 core.String acceleratorType; |
| 1742 |
| 1743 AcceleratorConfig(); |
| 1744 |
| 1745 AcceleratorConfig.fromJson(core.Map _json) { |
| 1746 if (_json.containsKey("acceleratorCount")) { |
| 1747 acceleratorCount = _json["acceleratorCount"]; |
| 1748 } |
| 1749 if (_json.containsKey("acceleratorType")) { |
| 1750 acceleratorType = _json["acceleratorType"]; |
| 1751 } |
| 1752 } |
| 1753 |
| 1754 core.Map<core.String, core.Object> toJson() { |
| 1755 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1756 if (acceleratorCount != null) { |
| 1757 _json["acceleratorCount"] = acceleratorCount; |
| 1758 } |
| 1759 if (acceleratorType != null) { |
| 1760 _json["acceleratorType"] = acceleratorType; |
| 1761 } |
| 1762 return _json; |
| 1763 } |
| 1764 } |
| 1765 |
1733 /** | 1766 /** |
1734 * Configuration for the addons that can be automatically spun up in the | 1767 * Configuration for the addons that can be automatically spun up in the |
1735 * cluster, enabling additional functionality. | 1768 * cluster, enabling additional functionality. |
1736 */ | 1769 */ |
1737 class AddonsConfig { | 1770 class AddonsConfig { |
1738 /** | 1771 /** |
1739 * Configuration for the horizontal pod autoscaling feature, which | 1772 * Configuration for the horizontal pod autoscaling feature, which |
1740 * increases or decreases the number of replica pods a replication controller | 1773 * increases or decreases the number of replica pods a replication controller |
1741 * has based on the resource usage of the existing pods. | 1774 * has based on the resource usage of the existing pods. |
1742 */ | 1775 */ |
1743 HorizontalPodAutoscaling horizontalPodAutoscaling; | 1776 HorizontalPodAutoscaling horizontalPodAutoscaling; |
1744 /** | 1777 /** |
1745 * Configuration for the HTTP (L7) load balancing controller addon, which | 1778 * Configuration for the HTTP (L7) load balancing controller addon, which |
1746 * makes it easy to set up HTTP load balancers for services in a cluster. | 1779 * makes it easy to set up HTTP load balancers for services in a cluster. |
1747 */ | 1780 */ |
1748 HttpLoadBalancing httpLoadBalancing; | 1781 HttpLoadBalancing httpLoadBalancing; |
| 1782 /** Configuration for the Kubernetes Dashboard. */ |
| 1783 KubernetesDashboard kubernetesDashboard; |
1749 | 1784 |
1750 AddonsConfig(); | 1785 AddonsConfig(); |
1751 | 1786 |
1752 AddonsConfig.fromJson(core.Map _json) { | 1787 AddonsConfig.fromJson(core.Map _json) { |
1753 if (_json.containsKey("horizontalPodAutoscaling")) { | 1788 if (_json.containsKey("horizontalPodAutoscaling")) { |
1754 horizontalPodAutoscaling = new HorizontalPodAutoscaling.fromJson(_json["ho
rizontalPodAutoscaling"]); | 1789 horizontalPodAutoscaling = new HorizontalPodAutoscaling.fromJson(_json["ho
rizontalPodAutoscaling"]); |
1755 } | 1790 } |
1756 if (_json.containsKey("httpLoadBalancing")) { | 1791 if (_json.containsKey("httpLoadBalancing")) { |
1757 httpLoadBalancing = new HttpLoadBalancing.fromJson(_json["httpLoadBalancin
g"]); | 1792 httpLoadBalancing = new HttpLoadBalancing.fromJson(_json["httpLoadBalancin
g"]); |
1758 } | 1793 } |
| 1794 if (_json.containsKey("kubernetesDashboard")) { |
| 1795 kubernetesDashboard = new KubernetesDashboard.fromJson(_json["kubernetesDa
shboard"]); |
| 1796 } |
1759 } | 1797 } |
1760 | 1798 |
1761 core.Map<core.String, core.Object> toJson() { | 1799 core.Map<core.String, core.Object> toJson() { |
1762 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1800 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1763 if (horizontalPodAutoscaling != null) { | 1801 if (horizontalPodAutoscaling != null) { |
1764 _json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson(); | 1802 _json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson(); |
1765 } | 1803 } |
1766 if (httpLoadBalancing != null) { | 1804 if (httpLoadBalancing != null) { |
1767 _json["httpLoadBalancing"] = (httpLoadBalancing).toJson(); | 1805 _json["httpLoadBalancing"] = (httpLoadBalancing).toJson(); |
1768 } | 1806 } |
| 1807 if (kubernetesDashboard != null) { |
| 1808 _json["kubernetesDashboard"] = (kubernetesDashboard).toJson(); |
| 1809 } |
1769 return _json; | 1810 return _json; |
1770 } | 1811 } |
1771 } | 1812 } |
1772 | 1813 |
1773 /** | 1814 /** |
1774 * AutoUpgradeOptions defines the set of options for the user to control how | 1815 * AutoUpgradeOptions defines the set of options for the user to control how |
1775 * the Auto Upgrades will proceed. | 1816 * the Auto Upgrades will proceed. |
1776 */ | 1817 */ |
1777 class AutoUpgradeOptions { | 1818 class AutoUpgradeOptions { |
1778 /** | 1819 /** |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1817 | 1858 |
1818 CancelOperationRequest.fromJson(core.Map _json) { | 1859 CancelOperationRequest.fromJson(core.Map _json) { |
1819 } | 1860 } |
1820 | 1861 |
1821 core.Map<core.String, core.Object> toJson() { | 1862 core.Map<core.String, core.Object> toJson() { |
1822 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1863 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1823 return _json; | 1864 return _json; |
1824 } | 1865 } |
1825 } | 1866 } |
1826 | 1867 |
| 1868 /** CidrBlock contains an optional name and one CIDR block. */ |
| 1869 class CidrBlock { |
| 1870 /** cidr_block must be specified in CIDR notation. */ |
| 1871 core.String cidrBlock; |
| 1872 /** display_name is an optional field for users to identify CIDR blocks. */ |
| 1873 core.String displayName; |
| 1874 |
| 1875 CidrBlock(); |
| 1876 |
| 1877 CidrBlock.fromJson(core.Map _json) { |
| 1878 if (_json.containsKey("cidrBlock")) { |
| 1879 cidrBlock = _json["cidrBlock"]; |
| 1880 } |
| 1881 if (_json.containsKey("displayName")) { |
| 1882 displayName = _json["displayName"]; |
| 1883 } |
| 1884 } |
| 1885 |
| 1886 core.Map<core.String, core.Object> toJson() { |
| 1887 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1888 if (cidrBlock != null) { |
| 1889 _json["cidrBlock"] = cidrBlock; |
| 1890 } |
| 1891 if (displayName != null) { |
| 1892 _json["displayName"] = displayName; |
| 1893 } |
| 1894 return _json; |
| 1895 } |
| 1896 } |
| 1897 |
1827 /** Configuration for client certificates on the cluster. */ | 1898 /** Configuration for client certificates on the cluster. */ |
1828 class ClientCertificateConfig { | 1899 class ClientCertificateConfig { |
1829 /** Issue a client certificate. */ | 1900 /** Issue a client certificate. */ |
1830 core.bool issueClientCertificate; | 1901 core.bool issueClientCertificate; |
1831 | 1902 |
1832 ClientCertificateConfig(); | 1903 ClientCertificateConfig(); |
1833 | 1904 |
1834 ClientCertificateConfig.fromJson(core.Map _json) { | 1905 ClientCertificateConfig.fromJson(core.Map _json) { |
1835 if (_json.containsKey("issueClientCertificate")) { | 1906 if (_json.containsKey("issueClientCertificate")) { |
1836 issueClientCertificate = _json["issueClientCertificate"]; | 1907 issueClientCertificate = _json["issueClientCertificate"]; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1938 * Currently available options: | 2009 * Currently available options: |
1939 * | 2010 * |
1940 * * `logging.googleapis.com` - the Google Cloud Logging service. | 2011 * * `logging.googleapis.com` - the Google Cloud Logging service. |
1941 * * `none` - no logs will be exported from the cluster. | 2012 * * `none` - no logs will be exported from the cluster. |
1942 * * if left as an empty string,`logging.googleapis.com` will be used. | 2013 * * if left as an empty string,`logging.googleapis.com` will be used. |
1943 */ | 2014 */ |
1944 core.String loggingService; | 2015 core.String loggingService; |
1945 /** The authentication information for accessing the master endpoint. */ | 2016 /** The authentication information for accessing the master endpoint. */ |
1946 MasterAuth masterAuth; | 2017 MasterAuth masterAuth; |
1947 /** | 2018 /** |
| 2019 * Master authorized networks is a Beta feature. |
| 2020 * The configuration options for master authorized networks feature. |
| 2021 */ |
| 2022 MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig; |
| 2023 /** |
1948 * The monitoring service the cluster should use to write metrics. | 2024 * The monitoring service the cluster should use to write metrics. |
1949 * Currently available options: | 2025 * Currently available options: |
1950 * | 2026 * |
1951 * * `monitoring.googleapis.com` - the Google Cloud Monitoring service. | 2027 * * `monitoring.googleapis.com` - the Google Cloud Monitoring service. |
1952 * * `none` - no metrics will be exported from the cluster. | 2028 * * `none` - no metrics will be exported from the cluster. |
1953 * * if left as an empty string, `monitoring.googleapis.com` will be used. | 2029 * * if left as an empty string, `monitoring.googleapis.com` will be used. |
1954 */ | 2030 */ |
1955 core.String monitoringService; | 2031 core.String monitoringService; |
1956 /** | 2032 /** |
1957 * The name of this cluster. The name must be unique within this project | 2033 * The name of this cluster. The name must be unique within this project |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2100 } | 2176 } |
2101 if (_json.containsKey("locations")) { | 2177 if (_json.containsKey("locations")) { |
2102 locations = _json["locations"]; | 2178 locations = _json["locations"]; |
2103 } | 2179 } |
2104 if (_json.containsKey("loggingService")) { | 2180 if (_json.containsKey("loggingService")) { |
2105 loggingService = _json["loggingService"]; | 2181 loggingService = _json["loggingService"]; |
2106 } | 2182 } |
2107 if (_json.containsKey("masterAuth")) { | 2183 if (_json.containsKey("masterAuth")) { |
2108 masterAuth = new MasterAuth.fromJson(_json["masterAuth"]); | 2184 masterAuth = new MasterAuth.fromJson(_json["masterAuth"]); |
2109 } | 2185 } |
| 2186 if (_json.containsKey("masterAuthorizedNetworksConfig")) { |
| 2187 masterAuthorizedNetworksConfig = new MasterAuthorizedNetworksConfig.fromJs
on(_json["masterAuthorizedNetworksConfig"]); |
| 2188 } |
2110 if (_json.containsKey("monitoringService")) { | 2189 if (_json.containsKey("monitoringService")) { |
2111 monitoringService = _json["monitoringService"]; | 2190 monitoringService = _json["monitoringService"]; |
2112 } | 2191 } |
2113 if (_json.containsKey("name")) { | 2192 if (_json.containsKey("name")) { |
2114 name = _json["name"]; | 2193 name = _json["name"]; |
2115 } | 2194 } |
2116 if (_json.containsKey("network")) { | 2195 if (_json.containsKey("network")) { |
2117 network = _json["network"]; | 2196 network = _json["network"]; |
2118 } | 2197 } |
2119 if (_json.containsKey("networkPolicy")) { | 2198 if (_json.containsKey("networkPolicy")) { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2203 } | 2282 } |
2204 if (locations != null) { | 2283 if (locations != null) { |
2205 _json["locations"] = locations; | 2284 _json["locations"] = locations; |
2206 } | 2285 } |
2207 if (loggingService != null) { | 2286 if (loggingService != null) { |
2208 _json["loggingService"] = loggingService; | 2287 _json["loggingService"] = loggingService; |
2209 } | 2288 } |
2210 if (masterAuth != null) { | 2289 if (masterAuth != null) { |
2211 _json["masterAuth"] = (masterAuth).toJson(); | 2290 _json["masterAuth"] = (masterAuth).toJson(); |
2212 } | 2291 } |
| 2292 if (masterAuthorizedNetworksConfig != null) { |
| 2293 _json["masterAuthorizedNetworksConfig"] = (masterAuthorizedNetworksConfig)
.toJson(); |
| 2294 } |
2213 if (monitoringService != null) { | 2295 if (monitoringService != null) { |
2214 _json["monitoringService"] = monitoringService; | 2296 _json["monitoringService"] = monitoringService; |
2215 } | 2297 } |
2216 if (name != null) { | 2298 if (name != null) { |
2217 _json["name"] = name; | 2299 _json["name"] = name; |
2218 } | 2300 } |
2219 if (network != null) { | 2301 if (network != null) { |
2220 _json["network"] = network; | 2302 _json["network"] = network; |
2221 } | 2303 } |
2222 if (networkPolicy != null) { | 2304 if (networkPolicy != null) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2273 * The desired list of Google Compute Engine | 2355 * The desired list of Google Compute Engine |
2274 * [locations](/compute/docs/zones#available) in which the cluster's nodes | 2356 * [locations](/compute/docs/zones#available) in which the cluster's nodes |
2275 * should be located. Changing the locations a cluster is in will result | 2357 * should be located. Changing the locations a cluster is in will result |
2276 * in nodes being either created or removed from the cluster, depending on | 2358 * in nodes being either created or removed from the cluster, depending on |
2277 * whether locations are being added or removed. | 2359 * whether locations are being added or removed. |
2278 * | 2360 * |
2279 * This list must always include the cluster's primary zone. | 2361 * This list must always include the cluster's primary zone. |
2280 */ | 2362 */ |
2281 core.List<core.String> desiredLocations; | 2363 core.List<core.String> desiredLocations; |
2282 /** | 2364 /** |
| 2365 * Master authorized networks is a Beta feature. |
| 2366 * The desired configuration options for master authorized networks feature. |
| 2367 */ |
| 2368 MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig; |
| 2369 /** |
2283 * The Kubernetes version to change the master to. The only valid value is the | 2370 * The Kubernetes version to change the master to. The only valid value is the |
2284 * latest supported version. Use "-" to have the server automatically select | 2371 * latest supported version. Use "-" to have the server automatically select |
2285 * the latest version. | 2372 * the latest version. |
2286 */ | 2373 */ |
2287 core.String desiredMasterVersion; | 2374 core.String desiredMasterVersion; |
2288 /** | 2375 /** |
2289 * The monitoring service the cluster should use to write metrics. | 2376 * The monitoring service the cluster should use to write metrics. |
2290 * Currently available options: | 2377 * Currently available options: |
2291 * | 2378 * |
2292 * * "monitoring.googleapis.com" - the Google Cloud Monitoring service | 2379 * * "monitoring.googleapis.com" - the Google Cloud Monitoring service |
(...skipping 26 matching lines...) Expand all Loading... |
2319 ClusterUpdate.fromJson(core.Map _json) { | 2406 ClusterUpdate.fromJson(core.Map _json) { |
2320 if (_json.containsKey("desiredAddonsConfig")) { | 2407 if (_json.containsKey("desiredAddonsConfig")) { |
2321 desiredAddonsConfig = new AddonsConfig.fromJson(_json["desiredAddonsConfig
"]); | 2408 desiredAddonsConfig = new AddonsConfig.fromJson(_json["desiredAddonsConfig
"]); |
2322 } | 2409 } |
2323 if (_json.containsKey("desiredImageType")) { | 2410 if (_json.containsKey("desiredImageType")) { |
2324 desiredImageType = _json["desiredImageType"]; | 2411 desiredImageType = _json["desiredImageType"]; |
2325 } | 2412 } |
2326 if (_json.containsKey("desiredLocations")) { | 2413 if (_json.containsKey("desiredLocations")) { |
2327 desiredLocations = _json["desiredLocations"]; | 2414 desiredLocations = _json["desiredLocations"]; |
2328 } | 2415 } |
| 2416 if (_json.containsKey("desiredMasterAuthorizedNetworksConfig")) { |
| 2417 desiredMasterAuthorizedNetworksConfig = new MasterAuthorizedNetworksConfig
.fromJson(_json["desiredMasterAuthorizedNetworksConfig"]); |
| 2418 } |
2329 if (_json.containsKey("desiredMasterVersion")) { | 2419 if (_json.containsKey("desiredMasterVersion")) { |
2330 desiredMasterVersion = _json["desiredMasterVersion"]; | 2420 desiredMasterVersion = _json["desiredMasterVersion"]; |
2331 } | 2421 } |
2332 if (_json.containsKey("desiredMonitoringService")) { | 2422 if (_json.containsKey("desiredMonitoringService")) { |
2333 desiredMonitoringService = _json["desiredMonitoringService"]; | 2423 desiredMonitoringService = _json["desiredMonitoringService"]; |
2334 } | 2424 } |
2335 if (_json.containsKey("desiredNodePoolAutoscaling")) { | 2425 if (_json.containsKey("desiredNodePoolAutoscaling")) { |
2336 desiredNodePoolAutoscaling = new NodePoolAutoscaling.fromJson(_json["desir
edNodePoolAutoscaling"]); | 2426 desiredNodePoolAutoscaling = new NodePoolAutoscaling.fromJson(_json["desir
edNodePoolAutoscaling"]); |
2337 } | 2427 } |
2338 if (_json.containsKey("desiredNodePoolId")) { | 2428 if (_json.containsKey("desiredNodePoolId")) { |
2339 desiredNodePoolId = _json["desiredNodePoolId"]; | 2429 desiredNodePoolId = _json["desiredNodePoolId"]; |
2340 } | 2430 } |
2341 if (_json.containsKey("desiredNodeVersion")) { | 2431 if (_json.containsKey("desiredNodeVersion")) { |
2342 desiredNodeVersion = _json["desiredNodeVersion"]; | 2432 desiredNodeVersion = _json["desiredNodeVersion"]; |
2343 } | 2433 } |
2344 } | 2434 } |
2345 | 2435 |
2346 core.Map<core.String, core.Object> toJson() { | 2436 core.Map<core.String, core.Object> toJson() { |
2347 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2437 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2348 if (desiredAddonsConfig != null) { | 2438 if (desiredAddonsConfig != null) { |
2349 _json["desiredAddonsConfig"] = (desiredAddonsConfig).toJson(); | 2439 _json["desiredAddonsConfig"] = (desiredAddonsConfig).toJson(); |
2350 } | 2440 } |
2351 if (desiredImageType != null) { | 2441 if (desiredImageType != null) { |
2352 _json["desiredImageType"] = desiredImageType; | 2442 _json["desiredImageType"] = desiredImageType; |
2353 } | 2443 } |
2354 if (desiredLocations != null) { | 2444 if (desiredLocations != null) { |
2355 _json["desiredLocations"] = desiredLocations; | 2445 _json["desiredLocations"] = desiredLocations; |
2356 } | 2446 } |
| 2447 if (desiredMasterAuthorizedNetworksConfig != null) { |
| 2448 _json["desiredMasterAuthorizedNetworksConfig"] = (desiredMasterAuthorizedN
etworksConfig).toJson(); |
| 2449 } |
2357 if (desiredMasterVersion != null) { | 2450 if (desiredMasterVersion != null) { |
2358 _json["desiredMasterVersion"] = desiredMasterVersion; | 2451 _json["desiredMasterVersion"] = desiredMasterVersion; |
2359 } | 2452 } |
2360 if (desiredMonitoringService != null) { | 2453 if (desiredMonitoringService != null) { |
2361 _json["desiredMonitoringService"] = desiredMonitoringService; | 2454 _json["desiredMonitoringService"] = desiredMonitoringService; |
2362 } | 2455 } |
2363 if (desiredNodePoolAutoscaling != null) { | 2456 if (desiredNodePoolAutoscaling != null) { |
2364 _json["desiredNodePoolAutoscaling"] = (desiredNodePoolAutoscaling).toJson(
); | 2457 _json["desiredNodePoolAutoscaling"] = (desiredNodePoolAutoscaling).toJson(
); |
2365 } | 2458 } |
2366 if (desiredNodePoolId != null) { | 2459 if (desiredNodePoolId != null) { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2629 if (subnetworkName != null) { | 2722 if (subnetworkName != null) { |
2630 _json["subnetworkName"] = subnetworkName; | 2723 _json["subnetworkName"] = subnetworkName; |
2631 } | 2724 } |
2632 if (useIpAliases != null) { | 2725 if (useIpAliases != null) { |
2633 _json["useIpAliases"] = useIpAliases; | 2726 _json["useIpAliases"] = useIpAliases; |
2634 } | 2727 } |
2635 return _json; | 2728 return _json; |
2636 } | 2729 } |
2637 } | 2730 } |
2638 | 2731 |
| 2732 /** Configuration for the Kubernetes Dashboard. */ |
| 2733 class KubernetesDashboard { |
| 2734 /** Whether the Kubernetes Dashboard is enabled for this cluster. */ |
| 2735 core.bool disabled; |
| 2736 |
| 2737 KubernetesDashboard(); |
| 2738 |
| 2739 KubernetesDashboard.fromJson(core.Map _json) { |
| 2740 if (_json.containsKey("disabled")) { |
| 2741 disabled = _json["disabled"]; |
| 2742 } |
| 2743 } |
| 2744 |
| 2745 core.Map<core.String, core.Object> toJson() { |
| 2746 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2747 if (disabled != null) { |
| 2748 _json["disabled"] = disabled; |
| 2749 } |
| 2750 return _json; |
| 2751 } |
| 2752 } |
| 2753 |
2639 /** | 2754 /** |
2640 * Configuration for the legacy Attribute Based Access Control authorization | 2755 * Configuration for the legacy Attribute Based Access Control authorization |
2641 * mode. | 2756 * mode. |
2642 */ | 2757 */ |
2643 class LegacyAbac { | 2758 class LegacyAbac { |
2644 /** | 2759 /** |
2645 * Whether the ABAC authorizer is enabled for this cluster. When enabled, | 2760 * Whether the ABAC authorizer is enabled for this cluster. When enabled, |
2646 * identities in the system, including service accounts, nodes, and | 2761 * identities in the system, including service accounts, nodes, and |
2647 * controllers, will have statically granted permissions beyond those | 2762 * controllers, will have statically granted permissions beyond those |
2648 * provided by the RBAC configuration or IAM. | 2763 * provided by the RBAC configuration or IAM. |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2838 _json["password"] = password; | 2953 _json["password"] = password; |
2839 } | 2954 } |
2840 if (username != null) { | 2955 if (username != null) { |
2841 _json["username"] = username; | 2956 _json["username"] = username; |
2842 } | 2957 } |
2843 return _json; | 2958 return _json; |
2844 } | 2959 } |
2845 } | 2960 } |
2846 | 2961 |
2847 /** | 2962 /** |
| 2963 * Master authorized networks is a Beta feature. |
| 2964 * Configuration options for the master authorized networks feature. Enabled |
| 2965 * master authorized networks will disallow all external traffic to access |
| 2966 * Kubernetes master through HTTPS except traffic from the given CIDR blocks, |
| 2967 * Google Compute Engine Public IPs and Google Prod IPs. |
| 2968 */ |
| 2969 class MasterAuthorizedNetworksConfig { |
| 2970 /** |
| 2971 * cidr_blocks define up to 10 external networks that could access |
| 2972 * Kubernetes master through HTTPS. |
| 2973 */ |
| 2974 core.List<CidrBlock> cidrBlocks; |
| 2975 /** Whether or not master authorized networks is enabled. */ |
| 2976 core.bool enabled; |
| 2977 |
| 2978 MasterAuthorizedNetworksConfig(); |
| 2979 |
| 2980 MasterAuthorizedNetworksConfig.fromJson(core.Map _json) { |
| 2981 if (_json.containsKey("cidrBlocks")) { |
| 2982 cidrBlocks = _json["cidrBlocks"].map((value) => new CidrBlock.fromJson(val
ue)).toList(); |
| 2983 } |
| 2984 if (_json.containsKey("enabled")) { |
| 2985 enabled = _json["enabled"]; |
| 2986 } |
| 2987 } |
| 2988 |
| 2989 core.Map<core.String, core.Object> toJson() { |
| 2990 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2991 if (cidrBlocks != null) { |
| 2992 _json["cidrBlocks"] = cidrBlocks.map((value) => (value).toJson()).toList()
; |
| 2993 } |
| 2994 if (enabled != null) { |
| 2995 _json["enabled"] = enabled; |
| 2996 } |
| 2997 return _json; |
| 2998 } |
| 2999 } |
| 3000 |
| 3001 /** |
2848 * Configuration options for the NetworkPolicy feature. | 3002 * Configuration options for the NetworkPolicy feature. |
2849 * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ | 3003 * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ |
2850 */ | 3004 */ |
2851 class NetworkPolicy { | 3005 class NetworkPolicy { |
2852 /** Whether network policy is enabled on the cluster. */ | 3006 /** Whether network policy is enabled on the cluster. */ |
2853 core.bool enabled; | 3007 core.bool enabled; |
2854 /** | 3008 /** |
2855 * The selected network policy provider. | 3009 * The selected network policy provider. |
2856 * Possible string values are: | 3010 * Possible string values are: |
2857 * - "UNKNOWN" : Not set | 3011 * - "PROVIDER_UNSPECIFIED" : Not set |
2858 * - "CALICO" : Tigera (Calico Felix). | 3012 * - "CALICO" : Tigera (Calico Felix). |
2859 */ | 3013 */ |
2860 core.String provider; | 3014 core.String provider; |
2861 | 3015 |
2862 NetworkPolicy(); | 3016 NetworkPolicy(); |
2863 | 3017 |
2864 NetworkPolicy.fromJson(core.Map _json) { | 3018 NetworkPolicy.fromJson(core.Map _json) { |
2865 if (_json.containsKey("enabled")) { | 3019 if (_json.containsKey("enabled")) { |
2866 enabled = _json["enabled"]; | 3020 enabled = _json["enabled"]; |
2867 } | 3021 } |
(...skipping 10 matching lines...) Expand all Loading... |
2878 if (provider != null) { | 3032 if (provider != null) { |
2879 _json["provider"] = provider; | 3033 _json["provider"] = provider; |
2880 } | 3034 } |
2881 return _json; | 3035 return _json; |
2882 } | 3036 } |
2883 } | 3037 } |
2884 | 3038 |
2885 /** Parameters that describe the nodes in a cluster. */ | 3039 /** Parameters that describe the nodes in a cluster. */ |
2886 class NodeConfig { | 3040 class NodeConfig { |
2887 /** | 3041 /** |
| 3042 * A list of hardware accelerators to be attached to each node. |
| 3043 * See https://cloud.google.com/compute/docs/gpus for more information about |
| 3044 * support for GPUs. |
| 3045 */ |
| 3046 core.List<AcceleratorConfig> accelerators; |
| 3047 /** |
2888 * Size of the disk attached to each node, specified in GB. | 3048 * Size of the disk attached to each node, specified in GB. |
2889 * The smallest allowed disk size is 10GB. | 3049 * The smallest allowed disk size is 10GB. |
2890 * | 3050 * |
2891 * If unspecified, the default disk size is 100GB. | 3051 * If unspecified, the default disk size is 100GB. |
2892 */ | 3052 */ |
2893 core.int diskSizeGb; | 3053 core.int diskSizeGb; |
2894 /** | 3054 /** |
2895 * The image type to use for this node. Note that for a given image type, | 3055 * The image type to use for this node. Note that for a given image type, |
2896 * the latest version of it will be used. | 3056 * the latest version of it will be used. |
2897 */ | 3057 */ |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2973 * The list of instance tags applied to all nodes. Tags are used to identify | 3133 * The list of instance tags applied to all nodes. Tags are used to identify |
2974 * valid sources or targets for network firewalls and are specified by | 3134 * valid sources or targets for network firewalls and are specified by |
2975 * the client during cluster or node pool creation. Each tag within the list | 3135 * the client during cluster or node pool creation. Each tag within the list |
2976 * must comply with RFC1035. | 3136 * must comply with RFC1035. |
2977 */ | 3137 */ |
2978 core.List<core.String> tags; | 3138 core.List<core.String> tags; |
2979 | 3139 |
2980 NodeConfig(); | 3140 NodeConfig(); |
2981 | 3141 |
2982 NodeConfig.fromJson(core.Map _json) { | 3142 NodeConfig.fromJson(core.Map _json) { |
| 3143 if (_json.containsKey("accelerators")) { |
| 3144 accelerators = _json["accelerators"].map((value) => new AcceleratorConfig.
fromJson(value)).toList(); |
| 3145 } |
2983 if (_json.containsKey("diskSizeGb")) { | 3146 if (_json.containsKey("diskSizeGb")) { |
2984 diskSizeGb = _json["diskSizeGb"]; | 3147 diskSizeGb = _json["diskSizeGb"]; |
2985 } | 3148 } |
2986 if (_json.containsKey("imageType")) { | 3149 if (_json.containsKey("imageType")) { |
2987 imageType = _json["imageType"]; | 3150 imageType = _json["imageType"]; |
2988 } | 3151 } |
2989 if (_json.containsKey("labels")) { | 3152 if (_json.containsKey("labels")) { |
2990 labels = _json["labels"]; | 3153 labels = _json["labels"]; |
2991 } | 3154 } |
2992 if (_json.containsKey("localSsdCount")) { | 3155 if (_json.containsKey("localSsdCount")) { |
(...skipping 14 matching lines...) Expand all Loading... |
3007 if (_json.containsKey("serviceAccount")) { | 3170 if (_json.containsKey("serviceAccount")) { |
3008 serviceAccount = _json["serviceAccount"]; | 3171 serviceAccount = _json["serviceAccount"]; |
3009 } | 3172 } |
3010 if (_json.containsKey("tags")) { | 3173 if (_json.containsKey("tags")) { |
3011 tags = _json["tags"]; | 3174 tags = _json["tags"]; |
3012 } | 3175 } |
3013 } | 3176 } |
3014 | 3177 |
3015 core.Map<core.String, core.Object> toJson() { | 3178 core.Map<core.String, core.Object> toJson() { |
3016 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3179 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3180 if (accelerators != null) { |
| 3181 _json["accelerators"] = accelerators.map((value) => (value).toJson()).toLi
st(); |
| 3182 } |
3017 if (diskSizeGb != null) { | 3183 if (diskSizeGb != null) { |
3018 _json["diskSizeGb"] = diskSizeGb; | 3184 _json["diskSizeGb"] = diskSizeGb; |
3019 } | 3185 } |
3020 if (imageType != null) { | 3186 if (imageType != null) { |
3021 _json["imageType"] = imageType; | 3187 _json["imageType"] = imageType; |
3022 } | 3188 } |
3023 if (labels != null) { | 3189 if (labels != null) { |
3024 _json["labels"] = labels; | 3190 _json["labels"] = labels; |
3025 } | 3191 } |
3026 if (localSsdCount != null) { | 3192 if (localSsdCount != null) { |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3866 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4032 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3867 if (imageType != null) { | 4033 if (imageType != null) { |
3868 _json["imageType"] = imageType; | 4034 _json["imageType"] = imageType; |
3869 } | 4035 } |
3870 if (nodeVersion != null) { | 4036 if (nodeVersion != null) { |
3871 _json["nodeVersion"] = nodeVersion; | 4037 _json["nodeVersion"] = nodeVersion; |
3872 } | 4038 } |
3873 return _json; | 4039 return _json; |
3874 } | 4040 } |
3875 } | 4041 } |
OLD | NEW |