Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: generated/googleapis/lib/container/v1.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/compute/v1.dart ('k') | generated/googleapis/lib/content/v2.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 var _response = _requester.request(_url, 597 var _response = _requester.request(_url,
598 "GET", 598 "GET",
599 body: _body, 599 body: _body,
600 queryParams: _queryParams, 600 queryParams: _queryParams,
601 uploadOptions: _uploadOptions, 601 uploadOptions: _uploadOptions,
602 uploadMedia: _uploadMedia, 602 uploadMedia: _uploadMedia,
603 downloadOptions: _downloadOptions); 603 downloadOptions: _downloadOptions);
604 return _response.then((data) => new ListNodePoolsResponse.fromJson(data)); 604 return _response.then((data) => new ListNodePoolsResponse.fromJson(data));
605 } 605 }
606 606
607 /**
608 * Roll back the previously Aborted or Failed NodePool upgrade. This will be
609 * an no-op if the last upgrade successfully completed.
610 *
611 * [request] - The metadata request object.
612 *
613 * Request parameters:
614 *
615 * [projectId] - The Google Developers Console [project ID or project
616 * number](https://support.google.com/cloud/answer/6158840).
617 *
618 * [zone] - The name of the Google Compute Engine
619 * [zone](/compute/docs/zones#available) in which the cluster resides.
620 *
621 * [clusterId] - The name of the cluster to rollback.
622 *
623 * [nodePoolId] - The name of the node pool to rollback.
624 *
625 * Completes with a [Operation].
626 *
627 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
628 * error.
629 *
630 * If the used [http.Client] completes with an error when making a REST call,
631 * this method will complete with the same error.
632 */
633 async.Future<Operation> rollback(RollbackNodePoolUpgradeRequest request, core. String projectId, core.String zone, core.String clusterId, core.String nodePoolI d) {
634 var _url = null;
635 var _queryParams = new core.Map();
636 var _uploadMedia = null;
637 var _uploadOptions = null;
638 var _downloadOptions = commons.DownloadOptions.Metadata;
639 var _body = null;
640
641 if (request != null) {
642 _body = convert.JSON.encode((request).toJson());
643 }
644 if (projectId == null) {
645 throw new core.ArgumentError("Parameter projectId is required.");
646 }
647 if (zone == null) {
648 throw new core.ArgumentError("Parameter zone is required.");
649 }
650 if (clusterId == null) {
651 throw new core.ArgumentError("Parameter clusterId is required.");
652 }
653 if (nodePoolId == null) {
654 throw new core.ArgumentError("Parameter nodePoolId is required.");
655 }
656
657 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec apeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$node PoolId') + ':rollback';
658
659 var _response = _requester.request(_url,
660 "POST",
661 body: _body,
662 queryParams: _queryParams,
663 uploadOptions: _uploadOptions,
664 uploadMedia: _uploadMedia,
665 downloadOptions: _downloadOptions);
666 return _response.then((data) => new Operation.fromJson(data));
667 }
668
669 /**
670 * Sets the NodeManagement options for a node pool.
671 *
672 * [request] - The metadata request object.
673 *
674 * Request parameters:
675 *
676 * [projectId] - The Google Developers Console [project ID or project
677 * number](https://support.google.com/cloud/answer/6158840).
678 *
679 * [zone] - The name of the Google Compute Engine
680 * [zone](/compute/docs/zones#available) in which the cluster resides.
681 *
682 * [clusterId] - The name of the cluster to update.
683 *
684 * [nodePoolId] - The name of the node pool to update.
685 *
686 * Completes with a [Operation].
687 *
688 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
689 * error.
690 *
691 * If the used [http.Client] completes with an error when making a REST call,
692 * this method will complete with the same error.
693 */
694 async.Future<Operation> setManagement(SetNodePoolManagementRequest request, co re.String projectId, core.String zone, core.String clusterId, core.String nodePo olId) {
695 var _url = null;
696 var _queryParams = new core.Map();
697 var _uploadMedia = null;
698 var _uploadOptions = null;
699 var _downloadOptions = commons.DownloadOptions.Metadata;
700 var _body = null;
701
702 if (request != null) {
703 _body = convert.JSON.encode((request).toJson());
704 }
705 if (projectId == null) {
706 throw new core.ArgumentError("Parameter projectId is required.");
707 }
708 if (zone == null) {
709 throw new core.ArgumentError("Parameter zone is required.");
710 }
711 if (clusterId == null) {
712 throw new core.ArgumentError("Parameter clusterId is required.");
713 }
714 if (nodePoolId == null) {
715 throw new core.ArgumentError("Parameter nodePoolId is required.");
716 }
717
718 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec apeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$node PoolId') + '/setManagement';
719
720 var _response = _requester.request(_url,
721 "POST",
722 body: _body,
723 queryParams: _queryParams,
724 uploadOptions: _uploadOptions,
725 uploadMedia: _uploadMedia,
726 downloadOptions: _downloadOptions);
727 return _response.then((data) => new Operation.fromJson(data));
728 }
729
607 } 730 }
608 731
609 732
610 class ProjectsZonesOperationsResourceApi { 733 class ProjectsZonesOperationsResourceApi {
611 final commons.ApiRequester _requester; 734 final commons.ApiRequester _requester;
612 735
613 ProjectsZonesOperationsResourceApi(commons.ApiRequester client) : 736 ProjectsZonesOperationsResourceApi(commons.ApiRequester client) :
614 _requester = client; 737 _requester = client;
615 738
616 /** 739 /**
740 * Cancels the specified operation.
741 *
742 * [request] - The metadata request object.
743 *
744 * Request parameters:
745 *
746 * [projectId] - The Google Developers Console [project ID or project
747 * number](https://support.google.com/cloud/answer/6158840).
748 *
749 * [zone] - The name of the Google Compute Engine
750 * [zone](/compute/docs/zones#available) in which the operation resides.
751 *
752 * [operationId] - The server-assigned `name` of the operation.
753 *
754 * Completes with a [Empty].
755 *
756 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
757 * error.
758 *
759 * If the used [http.Client] completes with an error when making a REST call,
760 * this method will complete with the same error.
761 */
762 async.Future<Empty> cancel(CancelOperationRequest request, core.String project Id, core.String zone, core.String operationId) {
763 var _url = null;
764 var _queryParams = new core.Map();
765 var _uploadMedia = null;
766 var _uploadOptions = null;
767 var _downloadOptions = commons.DownloadOptions.Metadata;
768 var _body = null;
769
770 if (request != null) {
771 _body = convert.JSON.encode((request).toJson());
772 }
773 if (projectId == null) {
774 throw new core.ArgumentError("Parameter projectId is required.");
775 }
776 if (zone == null) {
777 throw new core.ArgumentError("Parameter zone is required.");
778 }
779 if (operationId == null) {
780 throw new core.ArgumentError("Parameter operationId is required.");
781 }
782
783 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone s/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper. ecapeVariable('$operationId') + ':cancel';
784
785 var _response = _requester.request(_url,
786 "POST",
787 body: _body,
788 queryParams: _queryParams,
789 uploadOptions: _uploadOptions,
790 uploadMedia: _uploadMedia,
791 downloadOptions: _downloadOptions);
792 return _response.then((data) => new Empty.fromJson(data));
793 }
794
795 /**
617 * Gets the specified operation. 796 * Gets the specified operation.
618 * 797 *
619 * Request parameters: 798 * Request parameters:
620 * 799 *
621 * [projectId] - The Google Developers Console [project ID or project 800 * [projectId] - The Google Developers Console [project ID or project
622 * number](https://support.google.com/cloud/answer/6158840). 801 * number](https://support.google.com/cloud/answer/6158840).
623 * 802 *
624 * [zone] - The name of the Google Compute Engine 803 * [zone] - The name of the Google Compute Engine
625 * [zone](/compute/docs/zones#available) in which the cluster resides. 804 * [zone](/compute/docs/zones#available) in which the cluster resides.
626 * 805 *
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 if (horizontalPodAutoscaling != null) { 927 if (horizontalPodAutoscaling != null) {
749 _json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson(); 928 _json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson();
750 } 929 }
751 if (httpLoadBalancing != null) { 930 if (httpLoadBalancing != null) {
752 _json["httpLoadBalancing"] = (httpLoadBalancing).toJson(); 931 _json["httpLoadBalancing"] = (httpLoadBalancing).toJson();
753 } 932 }
754 return _json; 933 return _json;
755 } 934 }
756 } 935 }
757 936
937 /**
938 * AutoUpgradeOptions defines the set of options for the user to control how the
939 * Auto Upgrades will proceed.
940 */
941 class AutoUpgradeOptions {
942 /**
943 * [Output only] This field is set when upgrades are about to commence with
944 * the approximate start time for the upgrades, in
945 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
946 */
947 core.String autoUpgradeStartTime;
948 /**
949 * [Output only] This field is set when upgrades are about to commence with
950 * the description of the upgrade.
951 */
952 core.String description;
953
954 AutoUpgradeOptions();
955
956 AutoUpgradeOptions.fromJson(core.Map _json) {
957 if (_json.containsKey("autoUpgradeStartTime")) {
958 autoUpgradeStartTime = _json["autoUpgradeStartTime"];
959 }
960 if (_json.containsKey("description")) {
961 description = _json["description"];
962 }
963 }
964
965 core.Map toJson() {
966 var _json = new core.Map();
967 if (autoUpgradeStartTime != null) {
968 _json["autoUpgradeStartTime"] = autoUpgradeStartTime;
969 }
970 if (description != null) {
971 _json["description"] = description;
972 }
973 return _json;
974 }
975 }
976
977 /** CancelOperationRequest cancels a single operation. */
978 class CancelOperationRequest {
979
980 CancelOperationRequest();
981
982 CancelOperationRequest.fromJson(core.Map _json) {
983 }
984
985 core.Map toJson() {
986 var _json = new core.Map();
987 return _json;
988 }
989 }
990
758 /** A Google Container Engine cluster. */ 991 /** A Google Container Engine cluster. */
759 class Cluster { 992 class Cluster {
760 /** Configurations for the various addons available to run in the cluster. */ 993 /** Configurations for the various addons available to run in the cluster. */
761 AddonsConfig addonsConfig; 994 AddonsConfig addonsConfig;
762 /** 995 /**
763 * The IP address range of the container pods in this cluster, in 996 * The IP address range of the container pods in this cluster, in
764 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 997 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
765 * notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically 998 * notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically
766 * chosen or specify a `/14` block in `10.0.0.0/8`. 999 * chosen or specify a `/14` block in `10.0.0.0/8`.
767 */ 1000 */
768 core.String clusterIpv4Cidr; 1001 core.String clusterIpv4Cidr;
769 /** 1002 /**
770 * [Output only] The time the cluster was created, in 1003 * [Output only] The time the cluster was created, in
771 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 1004 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
772 */ 1005 */
773 core.String createTime; 1006 core.String createTime;
774 /** [Output only] The current software version of the master endpoint. */ 1007 /** [Output only] The current software version of the master endpoint. */
775 core.String currentMasterVersion; 1008 core.String currentMasterVersion;
776 /** [Output only] The number of nodes currently in the cluster. */ 1009 /** [Output only] The number of nodes currently in the cluster. */
777 core.int currentNodeCount; 1010 core.int currentNodeCount;
778 /** 1011 /**
779 * [Output only] The current version of the node software components. If they 1012 * [Output only] The current version of the node software components. If they
780 * are currently at multiple versions because they're in the process of being 1013 * are currently at multiple versions because they're in the process of being
781 * upgraded, this reflects the minimum version of all nodes. 1014 * upgraded, this reflects the minimum version of all nodes.
782 */ 1015 */
783 core.String currentNodeVersion; 1016 core.String currentNodeVersion;
784 /** An optional description of this cluster. */ 1017 /** An optional description of this cluster. */
785 core.String description; 1018 core.String description;
786 /** 1019 /**
1020 * Kubernetes alpha features are enabled on this cluster. This includes alpha
1021 * API groups (e.g. v1alpha1) and features that may not be production ready in
1022 * the kubernetes version of the master and nodes. The cluster has no SLA for
1023 * uptime and master/node upgrades are disabled. Alpha enabled clusters are
1024 * automatically deleted thirty days after creation.
1025 */
1026 core.bool enableKubernetesAlpha;
1027 /**
787 * [Output only] The IP address of this cluster's master endpoint. The 1028 * [Output only] The IP address of this cluster's master endpoint. The
788 * endpoint can be accessed from the internet at 1029 * endpoint can be accessed from the internet at
789 * `https://username:password@endpoint/`. See the `masterAuth` property of 1030 * `https://username:password@endpoint/`. See the `masterAuth` property of
790 * this resource for username and password information. 1031 * this resource for username and password information.
791 */ 1032 */
792 core.String endpoint; 1033 core.String endpoint;
793 /** 1034 /**
1035 * [Output only] The time the cluster will be automatically deleted in
1036 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1037 */
1038 core.String expireTime;
1039 /**
794 * [Output only] The software version of the master endpoint and kubelets used 1040 * [Output only] The software version of the master endpoint and kubelets used
795 * in the cluster when it was first created. The version can be upgraded over 1041 * in the cluster when it was first created. The version can be upgraded over
796 * time. 1042 * time.
797 */ 1043 */
798 core.String initialClusterVersion; 1044 core.String initialClusterVersion;
799 /** 1045 /**
800 * The number of nodes to create in this cluster. You must ensure that your 1046 * The number of nodes to create in this cluster. You must ensure that your
801 * Compute Engine resource quota is sufficient for this number of instances. 1047 * Compute Engine resource quota is sufficient for this number of instances.
802 * You must also have available firewall and routes quota. For requests, this 1048 * You must also have available firewall and routes quota. For requests, this
803 * field should only be used in lieu of a "node_pool" object, since this 1049 * field should only be used in lieu of a "node_pool" object, since this
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 * first node pool. If unspecified, the defaults are used. 1104 * first node pool. If unspecified, the defaults are used.
859 */ 1105 */
860 NodeConfig nodeConfig; 1106 NodeConfig nodeConfig;
861 /** 1107 /**
862 * [Output only] The size of the address space on each node for hosting 1108 * [Output only] The size of the address space on each node for hosting
863 * containers. This is provisioned from within the `container_ipv4_cidr` 1109 * containers. This is provisioned from within the `container_ipv4_cidr`
864 * range. 1110 * range.
865 */ 1111 */
866 core.int nodeIpv4CidrSize; 1112 core.int nodeIpv4CidrSize;
867 /** 1113 /**
868 * The node pools associated with this cluster. When creating a new cluster, 1114 * The node pools associated with this cluster. This field should not be set
869 * only a single node pool should be specified. This field should not be set
870 * if "node_config" or "initial_node_count" are specified. 1115 * if "node_config" or "initial_node_count" are specified.
871 */ 1116 */
872 core.List<NodePool> nodePools; 1117 core.List<NodePool> nodePools;
873 /** [Output only] Server-defined URL for the resource. */ 1118 /** [Output only] Server-defined URL for the resource. */
874 core.String selfLink; 1119 core.String selfLink;
875 /** 1120 /**
876 * [Output only] The IP address range of the Kubernetes services in this 1121 * [Output only] The IP address range of the Kubernetes services in this
877 * cluster, in 1122 * cluster, in
878 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 1123 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
879 * notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the 1124 * notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 } 1169 }
925 if (_json.containsKey("currentNodeCount")) { 1170 if (_json.containsKey("currentNodeCount")) {
926 currentNodeCount = _json["currentNodeCount"]; 1171 currentNodeCount = _json["currentNodeCount"];
927 } 1172 }
928 if (_json.containsKey("currentNodeVersion")) { 1173 if (_json.containsKey("currentNodeVersion")) {
929 currentNodeVersion = _json["currentNodeVersion"]; 1174 currentNodeVersion = _json["currentNodeVersion"];
930 } 1175 }
931 if (_json.containsKey("description")) { 1176 if (_json.containsKey("description")) {
932 description = _json["description"]; 1177 description = _json["description"];
933 } 1178 }
1179 if (_json.containsKey("enableKubernetesAlpha")) {
1180 enableKubernetesAlpha = _json["enableKubernetesAlpha"];
1181 }
934 if (_json.containsKey("endpoint")) { 1182 if (_json.containsKey("endpoint")) {
935 endpoint = _json["endpoint"]; 1183 endpoint = _json["endpoint"];
936 } 1184 }
1185 if (_json.containsKey("expireTime")) {
1186 expireTime = _json["expireTime"];
1187 }
937 if (_json.containsKey("initialClusterVersion")) { 1188 if (_json.containsKey("initialClusterVersion")) {
938 initialClusterVersion = _json["initialClusterVersion"]; 1189 initialClusterVersion = _json["initialClusterVersion"];
939 } 1190 }
940 if (_json.containsKey("initialNodeCount")) { 1191 if (_json.containsKey("initialNodeCount")) {
941 initialNodeCount = _json["initialNodeCount"]; 1192 initialNodeCount = _json["initialNodeCount"];
942 } 1193 }
943 if (_json.containsKey("instanceGroupUrls")) { 1194 if (_json.containsKey("instanceGroupUrls")) {
944 instanceGroupUrls = _json["instanceGroupUrls"]; 1195 instanceGroupUrls = _json["instanceGroupUrls"];
945 } 1196 }
946 if (_json.containsKey("locations")) { 1197 if (_json.containsKey("locations")) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 } 1257 }
1007 if (currentNodeCount != null) { 1258 if (currentNodeCount != null) {
1008 _json["currentNodeCount"] = currentNodeCount; 1259 _json["currentNodeCount"] = currentNodeCount;
1009 } 1260 }
1010 if (currentNodeVersion != null) { 1261 if (currentNodeVersion != null) {
1011 _json["currentNodeVersion"] = currentNodeVersion; 1262 _json["currentNodeVersion"] = currentNodeVersion;
1012 } 1263 }
1013 if (description != null) { 1264 if (description != null) {
1014 _json["description"] = description; 1265 _json["description"] = description;
1015 } 1266 }
1267 if (enableKubernetesAlpha != null) {
1268 _json["enableKubernetesAlpha"] = enableKubernetesAlpha;
1269 }
1016 if (endpoint != null) { 1270 if (endpoint != null) {
1017 _json["endpoint"] = endpoint; 1271 _json["endpoint"] = endpoint;
1018 } 1272 }
1273 if (expireTime != null) {
1274 _json["expireTime"] = expireTime;
1275 }
1019 if (initialClusterVersion != null) { 1276 if (initialClusterVersion != null) {
1020 _json["initialClusterVersion"] = initialClusterVersion; 1277 _json["initialClusterVersion"] = initialClusterVersion;
1021 } 1278 }
1022 if (initialNodeCount != null) { 1279 if (initialNodeCount != null) {
1023 _json["initialNodeCount"] = initialNodeCount; 1280 _json["initialNodeCount"] = initialNodeCount;
1024 } 1281 }
1025 if (instanceGroupUrls != null) { 1282 if (instanceGroupUrls != null) {
1026 _json["instanceGroupUrls"] = instanceGroupUrls; 1283 _json["instanceGroupUrls"] = instanceGroupUrls;
1027 } 1284 }
1028 if (locations != null) { 1285 if (locations != null) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 } 1332 }
1076 1333
1077 /** 1334 /**
1078 * ClusterUpdate describes an update to the cluster. Exactly one update can be 1335 * ClusterUpdate describes an update to the cluster. Exactly one update can be
1079 * applied to a cluster with each request, so at most one field can be provided. 1336 * applied to a cluster with each request, so at most one field can be provided.
1080 */ 1337 */
1081 class ClusterUpdate { 1338 class ClusterUpdate {
1082 /** Configurations for the various addons available to run in the cluster. */ 1339 /** Configurations for the various addons available to run in the cluster. */
1083 AddonsConfig desiredAddonsConfig; 1340 AddonsConfig desiredAddonsConfig;
1084 /** 1341 /**
1342 * The desired image type for the node pool. NOTE: Set the "desired_node_pool"
1343 * field as well.
1344 */
1345 core.String desiredImageType;
1346 /**
1347 * The desired list of Google Compute Engine
1348 * [locations](/compute/docs/zones#available) in which the cluster's nodes
1349 * should be located. Changing the locations a cluster is in will result in
1350 * nodes being either created or removed from the cluster, depending on
1351 * whether locations are being added or removed. This list must always include
1352 * the cluster's primary zone.
1353 */
1354 core.List<core.String> desiredLocations;
1355 /**
1085 * The Kubernetes version to change the master to. The only valid value is the 1356 * The Kubernetes version to change the master to. The only valid value is the
1086 * latest supported version. Use "-" to have the server automatically select 1357 * latest supported version. Use "-" to have the server automatically select
1087 * the latest version. 1358 * the latest version.
1088 */ 1359 */
1089 core.String desiredMasterVersion; 1360 core.String desiredMasterVersion;
1090 /** 1361 /**
1091 * The monitoring service the cluster should use to write metrics. Currently 1362 * The monitoring service the cluster should use to write metrics. Currently
1092 * available options: * "monitoring.googleapis.com" - the Google Cloud 1363 * available options: * "monitoring.googleapis.com" - the Google Cloud
1093 * Monitoring service * "none" - no metrics will be exported from the cluster 1364 * Monitoring service * "none" - no metrics will be exported from the cluster
1094 */ 1365 */
1095 core.String desiredMonitoringService; 1366 core.String desiredMonitoringService;
1096 /** 1367 /**
1097 * The node pool to be upgraded. This field is mandatory if the 1368 * Autoscaler configuration for the node pool specified in
1098 * "desired_node_version" or "desired_image_family" is specified and there is 1369 * desired_node_pool_id. If there is only one pool in the cluster and
1099 * more than one node pool on the cluster. 1370 * desired_node_pool_id is not provided then the change applies to that single
1371 * node pool.
1372 */
1373 NodePoolAutoscaling desiredNodePoolAutoscaling;
1374 /**
1375 * The node pool to be upgraded. This field is mandatory if
1376 * "desired_node_version", "desired_image_family" or
1377 * "desired_node_pool_autoscaling" is specified and there is more than one
1378 * node pool on the cluster.
1100 */ 1379 */
1101 core.String desiredNodePoolId; 1380 core.String desiredNodePoolId;
1102 /** 1381 /**
1103 * The Kubernetes version to change the nodes to (typically an upgrade). Use 1382 * The Kubernetes version to change the nodes to (typically an upgrade). Use
1104 * `-` to upgrade to the latest version supported by the server. 1383 * `-` to upgrade to the latest version supported by the server.
1105 */ 1384 */
1106 core.String desiredNodeVersion; 1385 core.String desiredNodeVersion;
1107 1386
1108 ClusterUpdate(); 1387 ClusterUpdate();
1109 1388
1110 ClusterUpdate.fromJson(core.Map _json) { 1389 ClusterUpdate.fromJson(core.Map _json) {
1111 if (_json.containsKey("desiredAddonsConfig")) { 1390 if (_json.containsKey("desiredAddonsConfig")) {
1112 desiredAddonsConfig = new AddonsConfig.fromJson(_json["desiredAddonsConfig "]); 1391 desiredAddonsConfig = new AddonsConfig.fromJson(_json["desiredAddonsConfig "]);
1113 } 1392 }
1393 if (_json.containsKey("desiredImageType")) {
1394 desiredImageType = _json["desiredImageType"];
1395 }
1396 if (_json.containsKey("desiredLocations")) {
1397 desiredLocations = _json["desiredLocations"];
1398 }
1114 if (_json.containsKey("desiredMasterVersion")) { 1399 if (_json.containsKey("desiredMasterVersion")) {
1115 desiredMasterVersion = _json["desiredMasterVersion"]; 1400 desiredMasterVersion = _json["desiredMasterVersion"];
1116 } 1401 }
1117 if (_json.containsKey("desiredMonitoringService")) { 1402 if (_json.containsKey("desiredMonitoringService")) {
1118 desiredMonitoringService = _json["desiredMonitoringService"]; 1403 desiredMonitoringService = _json["desiredMonitoringService"];
1119 } 1404 }
1405 if (_json.containsKey("desiredNodePoolAutoscaling")) {
1406 desiredNodePoolAutoscaling = new NodePoolAutoscaling.fromJson(_json["desir edNodePoolAutoscaling"]);
1407 }
1120 if (_json.containsKey("desiredNodePoolId")) { 1408 if (_json.containsKey("desiredNodePoolId")) {
1121 desiredNodePoolId = _json["desiredNodePoolId"]; 1409 desiredNodePoolId = _json["desiredNodePoolId"];
1122 } 1410 }
1123 if (_json.containsKey("desiredNodeVersion")) { 1411 if (_json.containsKey("desiredNodeVersion")) {
1124 desiredNodeVersion = _json["desiredNodeVersion"]; 1412 desiredNodeVersion = _json["desiredNodeVersion"];
1125 } 1413 }
1126 } 1414 }
1127 1415
1128 core.Map toJson() { 1416 core.Map toJson() {
1129 var _json = new core.Map(); 1417 var _json = new core.Map();
1130 if (desiredAddonsConfig != null) { 1418 if (desiredAddonsConfig != null) {
1131 _json["desiredAddonsConfig"] = (desiredAddonsConfig).toJson(); 1419 _json["desiredAddonsConfig"] = (desiredAddonsConfig).toJson();
1132 } 1420 }
1421 if (desiredImageType != null) {
1422 _json["desiredImageType"] = desiredImageType;
1423 }
1424 if (desiredLocations != null) {
1425 _json["desiredLocations"] = desiredLocations;
1426 }
1133 if (desiredMasterVersion != null) { 1427 if (desiredMasterVersion != null) {
1134 _json["desiredMasterVersion"] = desiredMasterVersion; 1428 _json["desiredMasterVersion"] = desiredMasterVersion;
1135 } 1429 }
1136 if (desiredMonitoringService != null) { 1430 if (desiredMonitoringService != null) {
1137 _json["desiredMonitoringService"] = desiredMonitoringService; 1431 _json["desiredMonitoringService"] = desiredMonitoringService;
1138 } 1432 }
1433 if (desiredNodePoolAutoscaling != null) {
1434 _json["desiredNodePoolAutoscaling"] = (desiredNodePoolAutoscaling).toJson( );
1435 }
1139 if (desiredNodePoolId != null) { 1436 if (desiredNodePoolId != null) {
1140 _json["desiredNodePoolId"] = desiredNodePoolId; 1437 _json["desiredNodePoolId"] = desiredNodePoolId;
1141 } 1438 }
1142 if (desiredNodeVersion != null) { 1439 if (desiredNodeVersion != null) {
1143 _json["desiredNodeVersion"] = desiredNodeVersion; 1440 _json["desiredNodeVersion"] = desiredNodeVersion;
1144 } 1441 }
1145 return _json; 1442 return _json;
1146 } 1443 }
1147 } 1444 }
1148 1445
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 core.Map toJson() { 1484 core.Map toJson() {
1188 var _json = new core.Map(); 1485 var _json = new core.Map();
1189 if (nodePool != null) { 1486 if (nodePool != null) {
1190 _json["nodePool"] = (nodePool).toJson(); 1487 _json["nodePool"] = (nodePool).toJson();
1191 } 1488 }
1192 return _json; 1489 return _json;
1193 } 1490 }
1194 } 1491 }
1195 1492
1196 /** 1493 /**
1494 * A generic empty message that you can re-use to avoid defining duplicated
1495 * empty messages in your APIs. A typical example is to use it as the request or
1496 * the response type of an API method. For instance: service Foo { rpc
1497 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON
1498 * representation for `Empty` is empty JSON object `{}`.
1499 */
1500 class Empty {
1501
1502 Empty();
1503
1504 Empty.fromJson(core.Map _json) {
1505 }
1506
1507 core.Map toJson() {
1508 var _json = new core.Map();
1509 return _json;
1510 }
1511 }
1512
1513 /**
1197 * Configuration options for the horizontal pod autoscaling feature, which 1514 * Configuration options for the horizontal pod autoscaling feature, which
1198 * increases or decreases the number of replica pods a replication controller 1515 * increases or decreases the number of replica pods a replication controller
1199 * has based on the resource usage of the existing pods. 1516 * has based on the resource usage of the existing pods.
1200 */ 1517 */
1201 class HorizontalPodAutoscaling { 1518 class HorizontalPodAutoscaling {
1202 /** 1519 /**
1203 * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. 1520 * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
1204 * When enabled, it ensures that a Heapster pod is running in the cluster, 1521 * When enabled, it ensures that a Heapster pod is running in the cluster,
1205 * which is also used by the Cloud Monitoring service. 1522 * which is also used by the Cloud Monitoring service.
1206 */ 1523 */
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 } 1734 }
1418 1735
1419 /** Parameters that describe the nodes in a cluster. */ 1736 /** Parameters that describe the nodes in a cluster. */
1420 class NodeConfig { 1737 class NodeConfig {
1421 /** 1738 /**
1422 * Size of the disk attached to each node, specified in GB. The smallest 1739 * Size of the disk attached to each node, specified in GB. The smallest
1423 * allowed disk size is 10GB. If unspecified, the default disk size is 100GB. 1740 * allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
1424 */ 1741 */
1425 core.int diskSizeGb; 1742 core.int diskSizeGb;
1426 /** 1743 /**
1744 * The image type to use for this node. Note that for a given image type, the
1745 * latest version of it will be used.
1746 */
1747 core.String imageType;
1748 /**
1749 * The map of Kubernetes labels (key/value pairs) to be applied to each node.
1750 * These will added in addition to any default label(s) that Kubernetes may
1751 * apply to the node. In case of conflict in label keys, the applied set may
1752 * differ depending on the Kubernetes version -- it's best to assume the
1753 * behavior is undefined and conflicts should be avoided. For more
1754 * information, including usage and the valid values, see:
1755 * http://kubernetes.io/v1.1/docs/user-guide/labels.html
1756 */
1757 core.Map<core.String, core.String> labels;
1758 /**
1759 * The number of local SSD disks to be attached to the node. The limit for
1760 * this value is dependant upon the maximum number of disks available on a
1761 * machine per zone. See:
1762 * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits for
1763 * more information.
1764 */
1765 core.int localSsdCount;
1766 /**
1427 * The name of a Google Compute Engine [machine 1767 * The name of a Google Compute Engine [machine
1428 * type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified, 1768 * type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified,
1429 * the default machine type is `n1-standard-1`. 1769 * the default machine type is `n1-standard-1`.
1430 */ 1770 */
1431 core.String machineType; 1771 core.String machineType;
1432 /** 1772 /**
1433 * The metadata key/value pairs assigned to instances in the cluster. Keys 1773 * The metadata key/value pairs assigned to instances in the cluster. Keys
1434 * must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in 1774 * must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in
1435 * length. These are reflected as part of a URL in the metadata server. 1775 * length. These are reflected as part of a URL in the metadata server.
1436 * Additionally, to avoid ambiguity, keys must not conflict with any other 1776 * Additionally, to avoid ambiguity, keys must not conflict with any other
(...skipping 11 matching lines...) Expand all
1448 * but not required, and by default are not included: * 1788 * but not required, and by default are not included: *
1449 * `https://www.googleapis.com/auth/compute` is required for mounting 1789 * `https://www.googleapis.com/auth/compute` is required for mounting
1450 * persistent storage on your nodes. * 1790 * persistent storage on your nodes. *
1451 * `https://www.googleapis.com/auth/devstorage.read_only` is required for 1791 * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1452 * communicating with **gcr.io** (the [Google Container 1792 * communicating with **gcr.io** (the [Google Container
1453 * Registry](/container-registry/)). If unspecified, no scopes are added, 1793 * Registry](/container-registry/)). If unspecified, no scopes are added,
1454 * unless Cloud Logging or Cloud Monitoring are enabled, in which case their 1794 * unless Cloud Logging or Cloud Monitoring are enabled, in which case their
1455 * required scopes will be added. 1795 * required scopes will be added.
1456 */ 1796 */
1457 core.List<core.String> oauthScopes; 1797 core.List<core.String> oauthScopes;
1798 /**
1799 * Whether the nodes are created as preemptible VM instances. See:
1800 * https://cloud.google.com/compute/docs/instances/preemptible for more
1801 * inforamtion about preemptible VM instances.
1802 */
1803 core.bool preemptible;
1804 /**
1805 * The Google Cloud Platform Service Account to be used by the node VMs. If no
1806 * Service Account is specified, the "default" service account is used.
1807 */
1808 core.String serviceAccount;
1809 /**
1810 * The list of instance tags applied to all nodes. Tags are used to identify
1811 * valid sources or targets for network firewalls and are specified by the
1812 * client during cluster or node pool creation. Each tag within the list must
1813 * comply with RFC1035.
1814 */
1815 core.List<core.String> tags;
1458 1816
1459 NodeConfig(); 1817 NodeConfig();
1460 1818
1461 NodeConfig.fromJson(core.Map _json) { 1819 NodeConfig.fromJson(core.Map _json) {
1462 if (_json.containsKey("diskSizeGb")) { 1820 if (_json.containsKey("diskSizeGb")) {
1463 diskSizeGb = _json["diskSizeGb"]; 1821 diskSizeGb = _json["diskSizeGb"];
1464 } 1822 }
1823 if (_json.containsKey("imageType")) {
1824 imageType = _json["imageType"];
1825 }
1826 if (_json.containsKey("labels")) {
1827 labels = _json["labels"];
1828 }
1829 if (_json.containsKey("localSsdCount")) {
1830 localSsdCount = _json["localSsdCount"];
1831 }
1465 if (_json.containsKey("machineType")) { 1832 if (_json.containsKey("machineType")) {
1466 machineType = _json["machineType"]; 1833 machineType = _json["machineType"];
1467 } 1834 }
1468 if (_json.containsKey("metadata")) { 1835 if (_json.containsKey("metadata")) {
1469 metadata = _json["metadata"]; 1836 metadata = _json["metadata"];
1470 } 1837 }
1471 if (_json.containsKey("oauthScopes")) { 1838 if (_json.containsKey("oauthScopes")) {
1472 oauthScopes = _json["oauthScopes"]; 1839 oauthScopes = _json["oauthScopes"];
1473 } 1840 }
1841 if (_json.containsKey("preemptible")) {
1842 preemptible = _json["preemptible"];
1843 }
1844 if (_json.containsKey("serviceAccount")) {
1845 serviceAccount = _json["serviceAccount"];
1846 }
1847 if (_json.containsKey("tags")) {
1848 tags = _json["tags"];
1849 }
1474 } 1850 }
1475 1851
1476 core.Map toJson() { 1852 core.Map toJson() {
1477 var _json = new core.Map(); 1853 var _json = new core.Map();
1478 if (diskSizeGb != null) { 1854 if (diskSizeGb != null) {
1479 _json["diskSizeGb"] = diskSizeGb; 1855 _json["diskSizeGb"] = diskSizeGb;
1480 } 1856 }
1857 if (imageType != null) {
1858 _json["imageType"] = imageType;
1859 }
1860 if (labels != null) {
1861 _json["labels"] = labels;
1862 }
1863 if (localSsdCount != null) {
1864 _json["localSsdCount"] = localSsdCount;
1865 }
1481 if (machineType != null) { 1866 if (machineType != null) {
1482 _json["machineType"] = machineType; 1867 _json["machineType"] = machineType;
1483 } 1868 }
1484 if (metadata != null) { 1869 if (metadata != null) {
1485 _json["metadata"] = metadata; 1870 _json["metadata"] = metadata;
1486 } 1871 }
1487 if (oauthScopes != null) { 1872 if (oauthScopes != null) {
1488 _json["oauthScopes"] = oauthScopes; 1873 _json["oauthScopes"] = oauthScopes;
1489 } 1874 }
1875 if (preemptible != null) {
1876 _json["preemptible"] = preemptible;
1877 }
1878 if (serviceAccount != null) {
1879 _json["serviceAccount"] = serviceAccount;
1880 }
1881 if (tags != null) {
1882 _json["tags"] = tags;
1883 }
1490 return _json; 1884 return _json;
1491 } 1885 }
1492 } 1886 }
1887
1888 /**
1889 * NodeManagement defines the set of node management services turned on for the
1890 * node pool.
1891 */
1892 class NodeManagement {
1893 /** Whether the nodes will be automatically upgraded. */
1894 core.bool autoUpgrade;
1895 /** Specifies the Auto Upgrade knobs for the node pool. */
1896 AutoUpgradeOptions upgradeOptions;
1897
1898 NodeManagement();
1899
1900 NodeManagement.fromJson(core.Map _json) {
1901 if (_json.containsKey("autoUpgrade")) {
1902 autoUpgrade = _json["autoUpgrade"];
1903 }
1904 if (_json.containsKey("upgradeOptions")) {
1905 upgradeOptions = new AutoUpgradeOptions.fromJson(_json["upgradeOptions"]);
1906 }
1907 }
1908
1909 core.Map toJson() {
1910 var _json = new core.Map();
1911 if (autoUpgrade != null) {
1912 _json["autoUpgrade"] = autoUpgrade;
1913 }
1914 if (upgradeOptions != null) {
1915 _json["upgradeOptions"] = (upgradeOptions).toJson();
1916 }
1917 return _json;
1918 }
1919 }
1493 1920
1494 /** 1921 /**
1495 * NodePool contains the name and configuration for a cluster's node pool. Node 1922 * NodePool contains the name and configuration for a cluster's node pool. Node
1496 * pools are a set of nodes (i.e. VM's), with a common configuration and 1923 * pools are a set of nodes (i.e. VM's), with a common configuration and
1497 * specification, under the control of the cluster master. They may have a set 1924 * specification, under the control of the cluster master. They may have a set
1498 * of Kubernetes labels applied to them, which may be used to reference them 1925 * of Kubernetes labels applied to them, which may be used to reference them
1499 * during pod scheduling. They may also be resized up or down, to accommodate 1926 * during pod scheduling. They may also be resized up or down, to accommodate
1500 * the workload. 1927 * the workload.
1501 */ 1928 */
1502 class NodePool { 1929 class NodePool {
1930 /**
1931 * Autoscaler configuration for this NodePool. Autoscaler is enabled only if a
1932 * valid configuration is present.
1933 */
1934 NodePoolAutoscaling autoscaling;
1503 /** The node configuration of the pool. */ 1935 /** The node configuration of the pool. */
1504 NodeConfig config; 1936 NodeConfig config;
1505 /** 1937 /**
1506 * The initial node count for the pool. You must ensure that your Compute 1938 * The initial node count for the pool. You must ensure that your Compute
1507 * Engine resource quota is sufficient for this number of instances. You must 1939 * Engine resource quota is sufficient for this number of instances. You must
1508 * also have available firewall and routes quota. 1940 * also have available firewall and routes quota.
1509 */ 1941 */
1510 core.int initialNodeCount; 1942 core.int initialNodeCount;
1511 /** 1943 /**
1512 * [Output only] The resource URLs of [instance 1944 * [Output only] The resource URLs of [instance
1513 * groups](/compute/docs/instance-groups/) associated with this node pool. 1945 * groups](/compute/docs/instance-groups/) associated with this node pool.
1514 */ 1946 */
1515 core.List<core.String> instanceGroupUrls; 1947 core.List<core.String> instanceGroupUrls;
1948 /** NodeManagement configuration for this NodePool. */
1949 NodeManagement management;
1516 /** The name of the node pool. */ 1950 /** The name of the node pool. */
1517 core.String name; 1951 core.String name;
1518 /** Server-defined URL for the resource. */ 1952 /** [Output only] Server-defined URL for the resource. */
1519 core.String selfLink; 1953 core.String selfLink;
1520 /** 1954 /**
1521 * The status of the nodes in this pool instance. 1955 * [Output only] The status of the nodes in this pool instance.
1522 * Possible string values are: 1956 * Possible string values are:
1523 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. 1957 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED.
1524 * - "PROVISIONING" : A PROVISIONING. 1958 * - "PROVISIONING" : A PROVISIONING.
1525 * - "RUNNING" : A RUNNING. 1959 * - "RUNNING" : A RUNNING.
1526 * - "RUNNING_WITH_ERROR" : A RUNNING_WITH_ERROR. 1960 * - "RUNNING_WITH_ERROR" : A RUNNING_WITH_ERROR.
1527 * - "RECONCILING" : A RECONCILING. 1961 * - "RECONCILING" : A RECONCILING.
1528 * - "STOPPING" : A STOPPING. 1962 * - "STOPPING" : A STOPPING.
1529 * - "ERROR" : A ERROR. 1963 * - "ERROR" : A ERROR.
1530 */ 1964 */
1531 core.String status; 1965 core.String status;
1532 /** 1966 /**
1533 * [Output only] Additional information about the current status of this node 1967 * [Output only] Additional information about the current status of this node
1534 * pool instance, if available. 1968 * pool instance, if available.
1535 */ 1969 */
1536 core.String statusMessage; 1970 core.String statusMessage;
1537 /** The version of the Kubernetes of this node. */ 1971 /** [Output only] The version of the Kubernetes of this node. */
1538 core.String version; 1972 core.String version;
1539 1973
1540 NodePool(); 1974 NodePool();
1541 1975
1542 NodePool.fromJson(core.Map _json) { 1976 NodePool.fromJson(core.Map _json) {
1977 if (_json.containsKey("autoscaling")) {
1978 autoscaling = new NodePoolAutoscaling.fromJson(_json["autoscaling"]);
1979 }
1543 if (_json.containsKey("config")) { 1980 if (_json.containsKey("config")) {
1544 config = new NodeConfig.fromJson(_json["config"]); 1981 config = new NodeConfig.fromJson(_json["config"]);
1545 } 1982 }
1546 if (_json.containsKey("initialNodeCount")) { 1983 if (_json.containsKey("initialNodeCount")) {
1547 initialNodeCount = _json["initialNodeCount"]; 1984 initialNodeCount = _json["initialNodeCount"];
1548 } 1985 }
1549 if (_json.containsKey("instanceGroupUrls")) { 1986 if (_json.containsKey("instanceGroupUrls")) {
1550 instanceGroupUrls = _json["instanceGroupUrls"]; 1987 instanceGroupUrls = _json["instanceGroupUrls"];
1551 } 1988 }
1989 if (_json.containsKey("management")) {
1990 management = new NodeManagement.fromJson(_json["management"]);
1991 }
1552 if (_json.containsKey("name")) { 1992 if (_json.containsKey("name")) {
1553 name = _json["name"]; 1993 name = _json["name"];
1554 } 1994 }
1555 if (_json.containsKey("selfLink")) { 1995 if (_json.containsKey("selfLink")) {
1556 selfLink = _json["selfLink"]; 1996 selfLink = _json["selfLink"];
1557 } 1997 }
1558 if (_json.containsKey("status")) { 1998 if (_json.containsKey("status")) {
1559 status = _json["status"]; 1999 status = _json["status"];
1560 } 2000 }
1561 if (_json.containsKey("statusMessage")) { 2001 if (_json.containsKey("statusMessage")) {
1562 statusMessage = _json["statusMessage"]; 2002 statusMessage = _json["statusMessage"];
1563 } 2003 }
1564 if (_json.containsKey("version")) { 2004 if (_json.containsKey("version")) {
1565 version = _json["version"]; 2005 version = _json["version"];
1566 } 2006 }
1567 } 2007 }
1568 2008
1569 core.Map toJson() { 2009 core.Map toJson() {
1570 var _json = new core.Map(); 2010 var _json = new core.Map();
2011 if (autoscaling != null) {
2012 _json["autoscaling"] = (autoscaling).toJson();
2013 }
1571 if (config != null) { 2014 if (config != null) {
1572 _json["config"] = (config).toJson(); 2015 _json["config"] = (config).toJson();
1573 } 2016 }
1574 if (initialNodeCount != null) { 2017 if (initialNodeCount != null) {
1575 _json["initialNodeCount"] = initialNodeCount; 2018 _json["initialNodeCount"] = initialNodeCount;
1576 } 2019 }
1577 if (instanceGroupUrls != null) { 2020 if (instanceGroupUrls != null) {
1578 _json["instanceGroupUrls"] = instanceGroupUrls; 2021 _json["instanceGroupUrls"] = instanceGroupUrls;
1579 } 2022 }
2023 if (management != null) {
2024 _json["management"] = (management).toJson();
2025 }
1580 if (name != null) { 2026 if (name != null) {
1581 _json["name"] = name; 2027 _json["name"] = name;
1582 } 2028 }
1583 if (selfLink != null) { 2029 if (selfLink != null) {
1584 _json["selfLink"] = selfLink; 2030 _json["selfLink"] = selfLink;
1585 } 2031 }
1586 if (status != null) { 2032 if (status != null) {
1587 _json["status"] = status; 2033 _json["status"] = status;
1588 } 2034 }
1589 if (statusMessage != null) { 2035 if (statusMessage != null) {
1590 _json["statusMessage"] = statusMessage; 2036 _json["statusMessage"] = statusMessage;
1591 } 2037 }
1592 if (version != null) { 2038 if (version != null) {
1593 _json["version"] = version; 2039 _json["version"] = version;
1594 } 2040 }
1595 return _json; 2041 return _json;
1596 } 2042 }
1597 } 2043 }
1598 2044
1599 /** 2045 /**
2046 * NodePoolAutoscaling contains information required by cluster autoscaler to
2047 * adjust the size of the node pool to the current cluster usage.
2048 */
2049 class NodePoolAutoscaling {
2050 /** Is autoscaling enabled for this node pool. */
2051 core.bool enabled;
2052 /**
2053 * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
2054 * has to enough quota to scale up the cluster.
2055 */
2056 core.int maxNodeCount;
2057 /**
2058 * Minimum number of nodes in the NodePool. Must be >= 1 and <=
2059 * max_node_count.
2060 */
2061 core.int minNodeCount;
2062
2063 NodePoolAutoscaling();
2064
2065 NodePoolAutoscaling.fromJson(core.Map _json) {
2066 if (_json.containsKey("enabled")) {
2067 enabled = _json["enabled"];
2068 }
2069 if (_json.containsKey("maxNodeCount")) {
2070 maxNodeCount = _json["maxNodeCount"];
2071 }
2072 if (_json.containsKey("minNodeCount")) {
2073 minNodeCount = _json["minNodeCount"];
2074 }
2075 }
2076
2077 core.Map toJson() {
2078 var _json = new core.Map();
2079 if (enabled != null) {
2080 _json["enabled"] = enabled;
2081 }
2082 if (maxNodeCount != null) {
2083 _json["maxNodeCount"] = maxNodeCount;
2084 }
2085 if (minNodeCount != null) {
2086 _json["minNodeCount"] = minNodeCount;
2087 }
2088 return _json;
2089 }
2090 }
2091
2092 /**
1600 * This operation resource represents operations that may have happened or are 2093 * This operation resource represents operations that may have happened or are
1601 * happening on the cluster. All fields are output only. 2094 * happening on the cluster. All fields are output only.
1602 */ 2095 */
1603 class Operation { 2096 class Operation {
1604 /** Detailed operation progress, if available. */ 2097 /** Detailed operation progress, if available. */
1605 core.String detail; 2098 core.String detail;
1606 /** The server-assigned ID for the operation. */ 2099 /** The server-assigned ID for the operation. */
1607 core.String name; 2100 core.String name;
1608 /** 2101 /**
1609 * The operation type. 2102 * The operation type.
1610 * Possible string values are: 2103 * Possible string values are:
1611 * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED. 2104 * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED.
1612 * - "CREATE_CLUSTER" : A CREATE_CLUSTER. 2105 * - "CREATE_CLUSTER" : A CREATE_CLUSTER.
1613 * - "DELETE_CLUSTER" : A DELETE_CLUSTER. 2106 * - "DELETE_CLUSTER" : A DELETE_CLUSTER.
1614 * - "UPGRADE_MASTER" : A UPGRADE_MASTER. 2107 * - "UPGRADE_MASTER" : A UPGRADE_MASTER.
1615 * - "UPGRADE_NODES" : A UPGRADE_NODES. 2108 * - "UPGRADE_NODES" : A UPGRADE_NODES.
1616 * - "REPAIR_CLUSTER" : A REPAIR_CLUSTER. 2109 * - "REPAIR_CLUSTER" : A REPAIR_CLUSTER.
1617 * - "UPDATE_CLUSTER" : A UPDATE_CLUSTER. 2110 * - "UPDATE_CLUSTER" : A UPDATE_CLUSTER.
1618 * - "CREATE_NODE_POOL" : A CREATE_NODE_POOL. 2111 * - "CREATE_NODE_POOL" : A CREATE_NODE_POOL.
1619 * - "DELETE_NODE_POOL" : A DELETE_NODE_POOL. 2112 * - "DELETE_NODE_POOL" : A DELETE_NODE_POOL.
2113 * - "SET_NODE_POOL_MANAGEMENT" : A SET_NODE_POOL_MANAGEMENT.
1620 */ 2114 */
1621 core.String operationType; 2115 core.String operationType;
1622 /** Server-defined URL for the resource. */ 2116 /** Server-defined URL for the resource. */
1623 core.String selfLink; 2117 core.String selfLink;
1624 /** 2118 /**
1625 * The current status of the operation. 2119 * The current status of the operation.
1626 * Possible string values are: 2120 * Possible string values are:
1627 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. 2121 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED.
1628 * - "PENDING" : A PENDING. 2122 * - "PENDING" : A PENDING.
1629 * - "RUNNING" : A RUNNING. 2123 * - "RUNNING" : A RUNNING.
1630 * - "DONE" : A DONE. 2124 * - "DONE" : A DONE.
2125 * - "ABORTING" : A ABORTING.
1631 */ 2126 */
1632 core.String status; 2127 core.String status;
1633 /** If an error has occurred, a textual description of the error. */ 2128 /** If an error has occurred, a textual description of the error. */
1634 core.String statusMessage; 2129 core.String statusMessage;
1635 /** Server-defined URL for the target of the operation. */ 2130 /** Server-defined URL for the target of the operation. */
1636 core.String targetLink; 2131 core.String targetLink;
1637 /** 2132 /**
1638 * The name of the Google Compute Engine [zone](/compute/docs/zones#available) 2133 * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
1639 * in which the operation is taking place. 2134 * in which the operation is taking place.
1640 */ 2135 */
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1692 if (targetLink != null) { 2187 if (targetLink != null) {
1693 _json["targetLink"] = targetLink; 2188 _json["targetLink"] = targetLink;
1694 } 2189 }
1695 if (zone != null) { 2190 if (zone != null) {
1696 _json["zone"] = zone; 2191 _json["zone"] = zone;
1697 } 2192 }
1698 return _json; 2193 return _json;
1699 } 2194 }
1700 } 2195 }
1701 2196
2197 /**
2198 * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
2199 * NodePool upgrade. This will be an no-op if the last upgrade successfully
2200 * completed.
2201 */
2202 class RollbackNodePoolUpgradeRequest {
2203
2204 RollbackNodePoolUpgradeRequest();
2205
2206 RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) {
2207 }
2208
2209 core.Map toJson() {
2210 var _json = new core.Map();
2211 return _json;
2212 }
2213 }
2214
1702 /** Container Engine service configuration. */ 2215 /** Container Engine service configuration. */
1703 class ServerConfig { 2216 class ServerConfig {
1704 /** Version of Kubernetes the service deploys by default. */ 2217 /** Version of Kubernetes the service deploys by default. */
1705 core.String defaultClusterVersion; 2218 core.String defaultClusterVersion;
1706 /** Default image family. */ 2219 /** Default image type. */
1707 core.String defaultImageFamily; 2220 core.String defaultImageType;
1708 /** List of valid image families. */ 2221 /** List of valid image types. */
1709 core.List<core.String> validImageFamilies; 2222 core.List<core.String> validImageTypes;
2223 /** List of valid master versions. */
2224 core.List<core.String> validMasterVersions;
1710 /** List of valid node upgrade target versions. */ 2225 /** List of valid node upgrade target versions. */
1711 core.List<core.String> validNodeVersions; 2226 core.List<core.String> validNodeVersions;
1712 2227
1713 ServerConfig(); 2228 ServerConfig();
1714 2229
1715 ServerConfig.fromJson(core.Map _json) { 2230 ServerConfig.fromJson(core.Map _json) {
1716 if (_json.containsKey("defaultClusterVersion")) { 2231 if (_json.containsKey("defaultClusterVersion")) {
1717 defaultClusterVersion = _json["defaultClusterVersion"]; 2232 defaultClusterVersion = _json["defaultClusterVersion"];
1718 } 2233 }
1719 if (_json.containsKey("defaultImageFamily")) { 2234 if (_json.containsKey("defaultImageType")) {
1720 defaultImageFamily = _json["defaultImageFamily"]; 2235 defaultImageType = _json["defaultImageType"];
1721 } 2236 }
1722 if (_json.containsKey("validImageFamilies")) { 2237 if (_json.containsKey("validImageTypes")) {
1723 validImageFamilies = _json["validImageFamilies"]; 2238 validImageTypes = _json["validImageTypes"];
2239 }
2240 if (_json.containsKey("validMasterVersions")) {
2241 validMasterVersions = _json["validMasterVersions"];
1724 } 2242 }
1725 if (_json.containsKey("validNodeVersions")) { 2243 if (_json.containsKey("validNodeVersions")) {
1726 validNodeVersions = _json["validNodeVersions"]; 2244 validNodeVersions = _json["validNodeVersions"];
1727 } 2245 }
1728 } 2246 }
1729 2247
1730 core.Map toJson() { 2248 core.Map toJson() {
1731 var _json = new core.Map(); 2249 var _json = new core.Map();
1732 if (defaultClusterVersion != null) { 2250 if (defaultClusterVersion != null) {
1733 _json["defaultClusterVersion"] = defaultClusterVersion; 2251 _json["defaultClusterVersion"] = defaultClusterVersion;
1734 } 2252 }
1735 if (defaultImageFamily != null) { 2253 if (defaultImageType != null) {
1736 _json["defaultImageFamily"] = defaultImageFamily; 2254 _json["defaultImageType"] = defaultImageType;
1737 } 2255 }
1738 if (validImageFamilies != null) { 2256 if (validImageTypes != null) {
1739 _json["validImageFamilies"] = validImageFamilies; 2257 _json["validImageTypes"] = validImageTypes;
2258 }
2259 if (validMasterVersions != null) {
2260 _json["validMasterVersions"] = validMasterVersions;
1740 } 2261 }
1741 if (validNodeVersions != null) { 2262 if (validNodeVersions != null) {
1742 _json["validNodeVersions"] = validNodeVersions; 2263 _json["validNodeVersions"] = validNodeVersions;
1743 } 2264 }
1744 return _json; 2265 return _json;
1745 } 2266 }
1746 } 2267 }
1747 2268
2269 /**
2270 * SetNodePoolManagementRequest sets the node management properties of a node
2271 * pool.
2272 */
2273 class SetNodePoolManagementRequest {
2274 /** NodeManagement configuration for the node pool. */
2275 NodeManagement management;
2276
2277 SetNodePoolManagementRequest();
2278
2279 SetNodePoolManagementRequest.fromJson(core.Map _json) {
2280 if (_json.containsKey("management")) {
2281 management = new NodeManagement.fromJson(_json["management"]);
2282 }
2283 }
2284
2285 core.Map toJson() {
2286 var _json = new core.Map();
2287 if (management != null) {
2288 _json["management"] = (management).toJson();
2289 }
2290 return _json;
2291 }
2292 }
2293
1748 /** UpdateClusterRequest updates the settings of a cluster. */ 2294 /** UpdateClusterRequest updates the settings of a cluster. */
1749 class UpdateClusterRequest { 2295 class UpdateClusterRequest {
1750 /** A description of the update. */ 2296 /** A description of the update. */
1751 ClusterUpdate update; 2297 ClusterUpdate update;
1752 2298
1753 UpdateClusterRequest(); 2299 UpdateClusterRequest();
1754 2300
1755 UpdateClusterRequest.fromJson(core.Map _json) { 2301 UpdateClusterRequest.fromJson(core.Map _json) {
1756 if (_json.containsKey("update")) { 2302 if (_json.containsKey("update")) {
1757 update = new ClusterUpdate.fromJson(_json["update"]); 2303 update = new ClusterUpdate.fromJson(_json["update"]);
1758 } 2304 }
1759 } 2305 }
1760 2306
1761 core.Map toJson() { 2307 core.Map toJson() {
1762 var _json = new core.Map(); 2308 var _json = new core.Map();
1763 if (update != null) { 2309 if (update != null) {
1764 _json["update"] = (update).toJson(); 2310 _json["update"] = (update).toJson();
1765 } 2311 }
1766 return _json; 2312 return _json;
1767 } 2313 }
1768 } 2314 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/compute/v1.dart ('k') | generated/googleapis/lib/content/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698