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

Unified Diff: generated/googleapis/lib/container/v1.dart

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/lib/consumersurveys/v2.dart ('k') | generated/googleapis/lib/content/v2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/container/v1.dart
diff --git a/generated/googleapis/lib/container/v1.dart b/generated/googleapis/lib/container/v1.dart
index 86bcca347a6274cf31c0c6ed9e9dd29501281256..c0f3c3082266a899704c19c972d1b994e55f0af4 100644
--- a/generated/googleapis/lib/container/v1.dart
+++ b/generated/googleapis/lib/container/v1.dart
@@ -15,8 +15,8 @@ export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
const core.String USER_AGENT = 'dart-api-client container/v1';
/**
- * Builds and manages clusters that run container-based applications, powered by
- * open source Kubernetes technology.
+ * The Google Container Engine API is used for building and managing container
+ * based applications, powered by the open source Kubernetes technology.
*/
class ContainerApi {
/** View and manage your data across Google Cloud Platform services */
@@ -60,7 +60,8 @@ class ProjectsZonesResourceApi {
* number](https://support.google.com/cloud/answer/6158840).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) to return operations for.
+ * [zone](/compute/docs/zones#available)
+ * to return operations for.
*
* Completes with a [ServerConfig].
*
@@ -110,13 +111,18 @@ class ProjectsZonesClustersResourceApi {
/**
* Creates a cluster, consisting of the specified number and type of Google
- * Compute Engine instances. By default, the cluster is created in the
- * project's [default network](/compute/docs/networks-and-firewalls#networks).
- * One firewall is added for the cluster. After cluster creation, the cluster
- * creates routes for each node to allow the containers on that node to
- * communicate with all other instances in the cluster. Finally, an entry is
- * added to the project's global metadata indicating which CIDR range is being
- * used by the cluster.
+ * Compute Engine instances.
+ *
+ * By default, the cluster is created in the project's
+ * [default network](/compute/docs/networks-and-firewalls#networks).
+ *
+ * One firewall is added for the cluster. After cluster creation,
+ * the cluster creates routes for each node to allow the containers
+ * on that node to communicate with all other instances in the
+ * cluster.
+ *
+ * Finally, an entry is added to the project's global metadata indicating
+ * which CIDR range is being used by the cluster.
*
* [request] - The metadata request object.
*
@@ -126,7 +132,8 @@ class ProjectsZonesClustersResourceApi {
* number](https://support.google.com/cloud/answer/6158840).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*
* Completes with a [Operation].
*
@@ -168,10 +175,14 @@ class ProjectsZonesClustersResourceApi {
/**
* Deletes the cluster, including the Kubernetes endpoint and all worker
- * nodes. Firewalls and routes that were configured during cluster creation
- * are also deleted. Other Google Compute Engine resources that might be in
- * use by the cluster (e.g. load balancer resources) will not be deleted if
- * they weren't present at the initial create time.
+ * nodes.
+ *
+ * Firewalls and routes that were configured during cluster creation
+ * are also deleted.
+ *
+ * Other Google Compute Engine resources that might be in use by the cluster
+ * (e.g. load balancer resources) will not be deleted if they weren't present
+ * at the initial create time.
*
* Request parameters:
*
@@ -179,7 +190,8 @@ class ProjectsZonesClustersResourceApi {
* number](https://support.google.com/cloud/answer/6158840).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*
* [clusterId] - The name of the cluster to delete.
*
@@ -230,7 +242,8 @@ class ProjectsZonesClustersResourceApi {
* number](https://support.google.com/cloud/answer/6158840).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*
* [clusterId] - The name of the cluster to retrieve.
*
@@ -273,6 +286,63 @@ class ProjectsZonesClustersResourceApi {
}
/**
+ * Enables or disables the ABAC authorization mechanism on a cluster.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * [projectId] - The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ *
+ * [zone] - The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
+ *
+ * [clusterId] - The name of the cluster to update.
+ *
+ * Completes with a [Operation].
+ *
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an
+ * error.
+ *
+ * If the used [http.Client] completes with an error when making a REST call,
+ * this method will complete with the same error.
+ */
+ async.Future<Operation> legacyAbac(SetLegacyAbacRequest request, core.String projectId, core.String zone, core.String clusterId) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
+ if (projectId == null) {
+ throw new core.ArgumentError("Parameter projectId is required.");
+ }
+ if (zone == null) {
+ throw new core.ArgumentError("Parameter zone is required.");
+ }
+ if (clusterId == null) {
+ throw new core.ArgumentError("Parameter clusterId is required.");
+ }
+
+ _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/legacyAbac';
+
+ var _response = _requester.request(_url,
+ "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new Operation.fromJson(data));
+ }
+
+ /**
* Lists all clusters owned by a project in either the specified zone or all
* zones.
*
@@ -282,8 +352,8 @@ class ProjectsZonesClustersResourceApi {
* number](https://support.google.com/cloud/answer/6158840).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides, or "-"
- * for all zones.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides, or "-" for all zones.
*
* Completes with a [ListClustersResponse].
*
@@ -321,6 +391,122 @@ class ProjectsZonesClustersResourceApi {
}
/**
+ * Sets labels on a cluster.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * [projectId] - The Google Developers Console [project ID or project
+ * number](https://developers.google.com/console/help/new/#projectnumber).
+ *
+ * [zone] - The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
+ *
+ * [clusterId] - The name of the cluster.
+ *
+ * Completes with a [Operation].
+ *
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an
+ * error.
+ *
+ * If the used [http.Client] completes with an error when making a REST call,
+ * this method will complete with the same error.
+ */
+ async.Future<Operation> resourceLabels(SetLabelsRequest request, core.String projectId, core.String zone, core.String clusterId) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
+ if (projectId == null) {
+ throw new core.ArgumentError("Parameter projectId is required.");
+ }
+ if (zone == null) {
+ throw new core.ArgumentError("Parameter zone is required.");
+ }
+ if (clusterId == null) {
+ throw new core.ArgumentError("Parameter clusterId is required.");
+ }
+
+ _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/resourceLabels';
+
+ var _response = _requester.request(_url,
+ "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new Operation.fromJson(data));
+ }
+
+ /**
+ * Used to set master auth materials. Currently supports :-
+ * Changing the admin password of a specific cluster.
+ * This can be either via password generation or explicitly set the password.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * [projectId] - The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ *
+ * [zone] - The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
+ *
+ * [clusterId] - The name of the cluster to upgrade.
+ *
+ * Completes with a [Operation].
+ *
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an
+ * error.
+ *
+ * If the used [http.Client] completes with an error when making a REST call,
+ * this method will complete with the same error.
+ */
+ async.Future<Operation> setMasterAuth(SetMasterAuthRequest request, core.String projectId, core.String zone, core.String clusterId) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
+ if (projectId == null) {
+ throw new core.ArgumentError("Parameter projectId is required.");
+ }
+ if (zone == null) {
+ throw new core.ArgumentError("Parameter zone is required.");
+ }
+ if (clusterId == null) {
+ throw new core.ArgumentError("Parameter clusterId is required.");
+ }
+
+ _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + ':setMasterAuth';
+
+ var _response = _requester.request(_url,
+ "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new Operation.fromJson(data));
+ }
+
+ /**
* Updates the settings of a specific cluster.
*
* [request] - The metadata request object.
@@ -331,7 +517,8 @@ class ProjectsZonesClustersResourceApi {
* number](https://support.google.com/cloud/answer/6158840).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*
* [clusterId] - The name of the cluster to upgrade.
*
@@ -396,7 +583,8 @@ class ProjectsZonesClustersNodePoolsResourceApi {
* number](https://developers.google.com/console/help/new/#projectnumber).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*
* [clusterId] - The name of the cluster.
*
@@ -450,7 +638,8 @@ class ProjectsZonesClustersNodePoolsResourceApi {
* number](https://developers.google.com/console/help/new/#projectnumber).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*
* [clusterId] - The name of the cluster.
*
@@ -506,7 +695,8 @@ class ProjectsZonesClustersNodePoolsResourceApi {
* number](https://developers.google.com/console/help/new/#projectnumber).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*
* [clusterId] - The name of the cluster.
*
@@ -562,7 +752,8 @@ class ProjectsZonesClustersNodePoolsResourceApi {
* number](https://developers.google.com/console/help/new/#projectnumber).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*
* [clusterId] - The name of the cluster.
*
@@ -605,8 +796,8 @@ class ProjectsZonesClustersNodePoolsResourceApi {
}
/**
- * Roll back the previously Aborted or Failed NodePool upgrade. This will be
- * an no-op if the last upgrade successfully completed.
+ * Roll back the previously Aborted or Failed NodePool upgrade.
+ * This will be an no-op if the last upgrade successfully completed.
*
* [request] - The metadata request object.
*
@@ -616,7 +807,8 @@ class ProjectsZonesClustersNodePoolsResourceApi {
* number](https://support.google.com/cloud/answer/6158840).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*
* [clusterId] - The name of the cluster to rollback.
*
@@ -677,7 +869,8 @@ class ProjectsZonesClustersNodePoolsResourceApi {
* number](https://support.google.com/cloud/answer/6158840).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*
* [clusterId] - The name of the cluster to update.
*
@@ -801,7 +994,8 @@ class ProjectsZonesOperationsResourceApi {
* number](https://support.google.com/cloud/answer/6158840).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*
* [operationId] - The server-assigned `name` of the operation.
*
@@ -852,8 +1046,8 @@ class ProjectsZonesOperationsResourceApi {
* number](https://support.google.com/cloud/answer/6158840).
*
* [zone] - The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) to return operations for, or `-` for
- * all zones.
+ * [zone](/compute/docs/zones#available)
+ * to return operations for, or `-` for all zones.
*
* Completes with a [ListOperationsResponse].
*
@@ -900,9 +1094,9 @@ class ProjectsZonesOperationsResourceApi {
*/
class AddonsConfig {
/**
- * Configuration for the horizontal pod autoscaling feature, which increases
- * or decreases the number of replica pods a replication controller has based
- * on the resource usage of the existing pods.
+ * Configuration for the horizontal pod autoscaling feature, which
+ * increases or decreases the number of replica pods a replication controller
+ * has based on the resource usage of the existing pods.
*/
HorizontalPodAutoscaling horizontalPodAutoscaling;
/**
@@ -935,19 +1129,19 @@ class AddonsConfig {
}
/**
- * AutoUpgradeOptions defines the set of options for the user to control how the
- * Auto Upgrades will proceed.
+ * AutoUpgradeOptions defines the set of options for the user to control how
+ * the Auto Upgrades will proceed.
*/
class AutoUpgradeOptions {
/**
- * [Output only] This field is set when upgrades are about to commence with
- * the approximate start time for the upgrades, in
+ * [Output only] This field is set when upgrades are about to commence
+ * with the approximate start time for the upgrades, in
* [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
*/
core.String autoUpgradeStartTime;
/**
- * [Output only] This field is set when upgrades are about to commence with
- * the description of the upgrade.
+ * [Output only] This field is set when upgrades are about to commence
+ * with the description of the upgrade.
*/
core.String description;
@@ -995,8 +1189,8 @@ class Cluster {
/**
* The IP address range of the container pods in this cluster, in
* [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
- * notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically
- * chosen or specify a `/14` block in `10.0.0.0/8`.
+ * notation (e.g. `10.96.0.0/14`). Leave blank to have
+ * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
*/
core.String clusterIpv4Cidr;
/**
@@ -1009,9 +1203,9 @@ class Cluster {
/** [Output only] The number of nodes currently in the cluster. */
core.int currentNodeCount;
/**
- * [Output only] The current version of the node software components. If they
- * are currently at multiple versions because they're in the process of being
- * upgraded, this reflects the minimum version of all nodes.
+ * [Output only] The current version of the node software components.
+ * If they are currently at multiple versions because they're in the process
+ * of being upgraded, this reflects the minimum version of all nodes.
*/
core.String currentNodeVersion;
/** An optional description of this cluster. */
@@ -1019,21 +1213,24 @@ class Cluster {
/**
* Kubernetes alpha features are enabled on this cluster. This includes alpha
* API groups (e.g. v1alpha1) and features that may not be production ready in
- * the kubernetes version of the master and nodes. The cluster has no SLA for
- * uptime and master/node upgrades are disabled. Alpha enabled clusters are
- * automatically deleted thirty days after creation.
+ * the kubernetes version of the master and nodes.
+ * The cluster has no SLA for uptime and master/node upgrades are disabled.
+ * Alpha enabled clusters are automatically deleted thirty days after
+ * creation.
*/
core.bool enableKubernetesAlpha;
/**
- * [Output only] The IP address of this cluster's master endpoint. The
- * endpoint can be accessed from the internet at
- * `https://username:password@endpoint/`. See the `masterAuth` property of
- * this resource for username and password information.
+ * [Output only] The IP address of this cluster's master endpoint.
+ * The endpoint can be accessed from the internet at
+ * `https://username:password@endpoint/`.
+ *
+ * See the `masterAuth` property of this resource for username and
+ * password information.
*/
core.String endpoint;
/**
- * [Output only] The time the cluster will be automatically deleted in
- * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+ * [Output only] The time the cluster will be automatically
+ * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
*/
core.String expireTime;
/**
@@ -1044,19 +1241,25 @@ class Cluster {
core.String initialClusterVersion;
/**
* The number of nodes to create in this cluster. You must ensure that your
- * Compute Engine resource quota is sufficient for this number of instances.
- * You must also have available firewall and routes quota. For requests, this
- * field should only be used in lieu of a "node_pool" object, since this
- * configuration (along with the "node_config") will be used to create a
- * "NodePool" object with an auto-generated name. Do not use this and a
- * node_pool at the same time.
+ * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+ * is sufficient for this number of instances. You must also have available
+ * firewall and routes quota.
+ * For requests, this field should only be used in lieu of a
+ * "node_pool" object, since this configuration (along with the
+ * "node_config") will be used to create a "NodePool" object with an
+ * auto-generated name. Do not use this and a node_pool at the same time.
*/
core.int initialNodeCount;
/**
* [Output only] The resource URLs of [instance
- * groups](/compute/docs/instance-groups/) associated with this cluster.
+ * groups](/compute/docs/instance-groups/) associated with this
+ * cluster.
*/
core.List<core.String> instanceGroupUrls;
+ /** The fingerprint of the set of labels for this cluster. */
+ core.String labelFingerprint;
+ /** Configuration for the legacy ABAC authorization mode. */
+ LegacyAbac legacyAbac;
/**
* The list of Google Compute Engine
* [locations](/compute/docs/zones#available) in which the cluster's nodes
@@ -1064,44 +1267,52 @@ class Cluster {
*/
core.List<core.String> locations;
/**
- * The logging service the cluster should use to write logs. Currently
- * available options: * `logging.googleapis.com` - the Google Cloud Logging
- * service. * `none` - no logs will be exported from the cluster. * if left as
- * an empty string,`logging.googleapis.com` will be used.
+ * The logging service the cluster should use to write logs.
+ * Currently available options:
+ *
+ * * `logging.googleapis.com` - the Google Cloud Logging service.
+ * * `none` - no logs will be exported from the cluster.
+ * * if left as an empty string,`logging.googleapis.com` will be used.
*/
core.String loggingService;
/** The authentication information for accessing the master endpoint. */
MasterAuth masterAuth;
/**
- * The monitoring service the cluster should use to write metrics. Currently
- * available options: * `monitoring.googleapis.com` - the Google Cloud
- * Monitoring service. * `none` - no metrics will be exported from the
- * cluster. * if left as an empty string, `monitoring.googleapis.com` will be
- * used.
+ * The monitoring service the cluster should use to write metrics.
+ * Currently available options:
+ *
+ * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
+ * * `none` - no metrics will be exported from the cluster.
+ * * if left as an empty string, `monitoring.googleapis.com` will be used.
*/
core.String monitoringService;
/**
- * The name of this cluster. The name must be unique within this project and
- * zone, and can be up to 40 characters with the following restrictions: *
- * Lowercase letters, numbers, and hyphens only. * Must start with a letter. *
- * Must end with a number or a letter.
+ * The name of this cluster. The name must be unique within this project
+ * and zone, and can be up to 40 characters with the following restrictions:
+ *
+ * * Lowercase letters, numbers, and hyphens only.
+ * * Must start with a letter.
+ * * Must end with a number or a letter.
*/
core.String name;
/**
* The name of the Google Compute Engine
* [network](/compute/docs/networks-and-firewalls#networks) to which the
- * cluster is connected. If left unspecified, the `default` network will be
- * used.
+ * cluster is connected. If left unspecified, the `default` network
+ * will be used.
*/
core.String network;
/**
- * Parameters used in creating the cluster's nodes. See `nodeConfig` for the
- * description of its properties. For requests, this field should only be used
- * in lieu of a "node_pool" object, since this configuration (along with the
+ * Parameters used in creating the cluster's nodes.
+ * See `nodeConfig` for the description of its properties.
+ * For requests, this field should only be used in lieu of a
+ * "node_pool" object, since this configuration (along with the
* "initial_node_count") will be used to create a "NodePool" object with an
- * auto-generated name. Do not use this and a node_pool at the same time. For
- * responses, this field will be populated with the node configuration of the
- * first node pool. If unspecified, the defaults are used.
+ * auto-generated name. Do not use this and a node_pool at the same time.
+ * For responses, this field will be populated with the node configuration of
+ * the first node pool.
+ *
+ * If unspecified, the defaults are used.
*/
NodeConfig nodeConfig;
/**
@@ -1111,29 +1322,42 @@ class Cluster {
*/
core.int nodeIpv4CidrSize;
/**
- * The node pools associated with this cluster. This field should not be set
- * if "node_config" or "initial_node_count" are specified.
+ * The node pools associated with this cluster.
+ * This field should not be set if "node_config" or "initial_node_count" are
+ * specified.
*/
core.List<NodePool> nodePools;
+ /**
+ * The resource labels for the cluster to use to annotate any related GCE
+ * resources.
+ */
+ ResourceLabels resourceLabels;
/** [Output only] Server-defined URL for the resource. */
core.String selfLink;
/**
- * [Output only] The IP address range of the Kubernetes services in this
- * cluster, in
+ * [Output only] The IP address range of the Kubernetes services in
+ * this cluster, in
* [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
- * notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the
- * last `/16` from the container CIDR.
+ * notation (e.g. `1.2.3.4/29`). Service addresses are
+ * typically put in the last `/16` from the container CIDR.
*/
core.String servicesIpv4Cidr;
/**
* [Output only] The current status of this cluster.
* Possible string values are:
- * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED.
- * - "PROVISIONING" : A PROVISIONING.
- * - "RUNNING" : A RUNNING.
- * - "RECONCILING" : A RECONCILING.
- * - "STOPPING" : A STOPPING.
- * - "ERROR" : A ERROR.
+ * - "STATUS_UNSPECIFIED" : Not set.
+ * - "PROVISIONING" : The PROVISIONING state indicates the cluster is being
+ * created.
+ * - "RUNNING" : The RUNNING state indicates the cluster has been created and
+ * is fully
+ * usable.
+ * - "RECONCILING" : The RECONCILING state indicates that some work is
+ * actively being done on
+ * the cluster, such as upgrading the master or node software. Details can
+ * be found in the `statusMessage` field.
+ * - "STOPPING" : The STOPPING state indicates the cluster is being deleted.
+ * - "ERROR" : The ERROR state indicates the cluster may be unusable. Details
+ * can be found in the `statusMessage` field.
*/
core.String status;
/**
@@ -1143,12 +1367,14 @@ class Cluster {
core.String statusMessage;
/**
* The name of the Google Compute Engine
- * [subnetwork](/compute/docs/subnetworks) to which the cluster is connected.
+ * [subnetwork](/compute/docs/subnetworks) to which the
+ * cluster is connected.
*/
core.String subnetwork;
/**
* [Output only] The name of the Google Compute Engine
- * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * [zone](/compute/docs/zones#available) in which the cluster
+ * resides.
*/
core.String zone;
@@ -1194,6 +1420,12 @@ class Cluster {
if (_json.containsKey("instanceGroupUrls")) {
instanceGroupUrls = _json["instanceGroupUrls"];
}
+ if (_json.containsKey("labelFingerprint")) {
+ labelFingerprint = _json["labelFingerprint"];
+ }
+ if (_json.containsKey("legacyAbac")) {
+ legacyAbac = new LegacyAbac.fromJson(_json["legacyAbac"]);
+ }
if (_json.containsKey("locations")) {
locations = _json["locations"];
}
@@ -1221,6 +1453,9 @@ class Cluster {
if (_json.containsKey("nodePools")) {
nodePools = _json["nodePools"].map((value) => new NodePool.fromJson(value)).toList();
}
+ if (_json.containsKey("resourceLabels")) {
+ resourceLabels = new ResourceLabels.fromJson(_json["resourceLabels"]);
+ }
if (_json.containsKey("selfLink")) {
selfLink = _json["selfLink"];
}
@@ -1282,6 +1517,12 @@ class Cluster {
if (instanceGroupUrls != null) {
_json["instanceGroupUrls"] = instanceGroupUrls;
}
+ if (labelFingerprint != null) {
+ _json["labelFingerprint"] = labelFingerprint;
+ }
+ if (legacyAbac != null) {
+ _json["legacyAbac"] = (legacyAbac).toJson();
+ }
if (locations != null) {
_json["locations"] = locations;
}
@@ -1309,6 +1550,9 @@ class Cluster {
if (nodePools != null) {
_json["nodePools"] = nodePools.map((value) => (value).toJson()).toList();
}
+ if (resourceLabels != null) {
+ _json["resourceLabels"] = (resourceLabels).toJson();
+ }
if (selfLink != null) {
_json["selfLink"] = selfLink;
}
@@ -1332,24 +1576,26 @@ class Cluster {
}
/**
- * ClusterUpdate describes an update to the cluster. Exactly one update can be
- * applied to a cluster with each request, so at most one field can be provided.
+ * ClusterUpdate describes an update to the cluster. Exactly one update can
+ * be applied to a cluster with each request, so at most one field can be
+ * provided.
*/
class ClusterUpdate {
/** Configurations for the various addons available to run in the cluster. */
AddonsConfig desiredAddonsConfig;
/**
- * The desired image type for the node pool. NOTE: Set the "desired_node_pool"
- * field as well.
+ * The desired image type for the node pool.
+ * NOTE: Set the "desired_node_pool" field as well.
*/
core.String desiredImageType;
/**
* The desired list of Google Compute Engine
* [locations](/compute/docs/zones#available) in which the cluster's nodes
- * should be located. Changing the locations a cluster is in will result in
- * nodes being either created or removed from the cluster, depending on
- * whether locations are being added or removed. This list must always include
- * the cluster's primary zone.
+ * should be located. Changing the locations a cluster is in will result
+ * in nodes being either created or removed from the cluster, depending on
+ * whether locations are being added or removed.
+ *
+ * This list must always include the cluster's primary zone.
*/
core.List<core.String> desiredLocations;
/**
@@ -1359,16 +1605,18 @@ class ClusterUpdate {
*/
core.String desiredMasterVersion;
/**
- * The monitoring service the cluster should use to write metrics. Currently
- * available options: * "monitoring.googleapis.com" - the Google Cloud
- * Monitoring service * "none" - no metrics will be exported from the cluster
+ * The monitoring service the cluster should use to write metrics.
+ * Currently available options:
+ *
+ * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+ * * "none" - no metrics will be exported from the cluster
*/
core.String desiredMonitoringService;
/**
* Autoscaler configuration for the node pool specified in
- * desired_node_pool_id. If there is only one pool in the cluster and
- * desired_node_pool_id is not provided then the change applies to that single
- * node pool.
+ * desired_node_pool_id. If there is only one pool in the
+ * cluster and desired_node_pool_id is not provided then
+ * the change applies to that single node pool.
*/
NodePoolAutoscaling desiredNodePoolAutoscaling;
/**
@@ -1379,8 +1627,9 @@ class ClusterUpdate {
*/
core.String desiredNodePoolId;
/**
- * The Kubernetes version to change the nodes to (typically an upgrade). Use
- * `-` to upgrade to the latest version supported by the server.
+ * The Kubernetes version to change the nodes to (typically an
+ * upgrade). Use `-` to upgrade to the latest version supported by
+ * the server.
*/
core.String desiredNodeVersion;
@@ -1492,10 +1741,14 @@ class CreateNodePoolRequest {
/**
* A generic empty message that you can re-use to avoid defining duplicated
- * empty messages in your APIs. A typical example is to use it as the request or
- * the response type of an API method. For instance: service Foo { rpc
- * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON
- * representation for `Empty` is empty JSON object `{}`.
+ * empty messages in your APIs. A typical example is to use it as the request
+ * or the response type of an API method. For instance:
+ *
+ * service Foo {
+ * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
+ * }
+ *
+ * The JSON representation for `Empty` is empty JSON object `{}`.
*/
class Empty {
@@ -1546,8 +1799,8 @@ class HorizontalPodAutoscaling {
*/
class HttpLoadBalancing {
/**
- * Whether the HTTP Load Balancing controller is enabled in the cluster. When
- * enabled, it runs a small pod in the cluster that manages the load
+ * Whether the HTTP Load Balancing controller is enabled in the cluster.
+ * When enabled, it runs a small pod in the cluster that manages the load
* balancers.
*/
core.bool disabled;
@@ -1569,16 +1822,79 @@ class HttpLoadBalancing {
}
}
+/**
+ * A label to be applied to Google Compute Engine resources. It must comply
+ * with RFC1035 for each key and value.
+ */
+class Item {
+ /** The Key for this label. */
+ core.String key;
+ /** The Value for this label. */
+ core.String value;
+
+ Item();
+
+ Item.fromJson(core.Map _json) {
+ if (_json.containsKey("key")) {
+ key = _json["key"];
+ }
+ if (_json.containsKey("value")) {
+ value = _json["value"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (key != null) {
+ _json["key"] = key;
+ }
+ if (value != null) {
+ _json["value"] = value;
+ }
+ return _json;
+ }
+}
+
+/**
+ * Configuration for the legacy Attribute Based Access Control authorization
+ * mode.
+ */
+class LegacyAbac {
+ /**
+ * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+ * identities in the system, including service accounts, nodes, and
+ * controllers, will have statically granted permissions beyond those
+ * provided by the RBAC configuration or IAM.
+ */
+ core.bool enabled;
+
+ LegacyAbac();
+
+ LegacyAbac.fromJson(core.Map _json) {
+ if (_json.containsKey("enabled")) {
+ enabled = _json["enabled"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (enabled != null) {
+ _json["enabled"] = enabled;
+ }
+ return _json;
+ }
+}
+
/** ListClustersResponse is the result of ListClustersRequest. */
class ListClustersResponse {
/**
- * A list of clusters in the project in the specified zone, or across all
- * ones.
+ * A list of clusters in the project in the specified zone, or
+ * across all ones.
*/
core.List<Cluster> clusters;
/**
- * If any zones are listed here, the list of clusters returned may be missing
- * those zones.
+ * If any zones are listed here, the list of clusters returned
+ * may be missing those zones.
*/
core.List<core.String> missingZones;
@@ -1630,8 +1946,8 @@ class ListNodePoolsResponse {
/** ListOperationsResponse is the result of ListOperationsRequest. */
class ListOperationsResponse {
/**
- * If any zones are listed here, the list of operations returned may be
- * missing the operations from those zones.
+ * If any zones are listed here, the list of operations returned
+ * may be missing the operations from those zones.
*/
core.List<core.String> missingZones;
/** A list of operations in the project in the specified zone. */
@@ -1672,13 +1988,13 @@ class MasterAuth {
*/
core.String clientCertificate;
/**
- * [Output only] Base64-encoded private key used by clients to authenticate to
- * the cluster endpoint.
+ * [Output only] Base64-encoded private key used by clients to authenticate
+ * to the cluster endpoint.
*/
core.String clientKey;
/**
- * [Output only] Base64-encoded public certificate that is the root of trust
- * for the cluster.
+ * [Output only] Base64-encoded public certificate that is the root of
+ * trust for the cluster.
*/
core.String clusterCaCertificate;
/**
@@ -1736,63 +2052,77 @@ class MasterAuth {
/** Parameters that describe the nodes in a cluster. */
class NodeConfig {
/**
- * Size of the disk attached to each node, specified in GB. The smallest
- * allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
+ * Size of the disk attached to each node, specified in GB.
+ * The smallest allowed disk size is 10GB.
+ *
+ * If unspecified, the default disk size is 100GB.
*/
core.int diskSizeGb;
/**
- * The image type to use for this node. Note that for a given image type, the
- * latest version of it will be used.
+ * The image type to use for this node. Note that for a given image type,
+ * the latest version of it will be used.
*/
core.String imageType;
/**
* The map of Kubernetes labels (key/value pairs) to be applied to each node.
- * These will added in addition to any default label(s) that Kubernetes may
- * apply to the node. In case of conflict in label keys, the applied set may
- * differ depending on the Kubernetes version -- it's best to assume the
- * behavior is undefined and conflicts should be avoided. For more
- * information, including usage and the valid values, see:
+ * These will added in addition to any default label(s) that
+ * Kubernetes may apply to the node.
+ * In case of conflict in label keys, the applied set may differ depending on
+ * the Kubernetes version -- it's best to assume the behavior is undefined
+ * and conflicts should be avoided.
+ * For more information, including usage and the valid values, see:
* http://kubernetes.io/v1.1/docs/user-guide/labels.html
*/
core.Map<core.String, core.String> labels;
/**
- * The number of local SSD disks to be attached to the node. The limit for
- * this value is dependant upon the maximum number of disks available on a
- * machine per zone. See:
- * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits for
- * more information.
+ * The number of local SSD disks to be attached to the node.
+ *
+ * The limit for this value is dependant upon the maximum number of
+ * disks available on a machine per zone. See:
+ * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
+ * for more information.
*/
core.int localSsdCount;
/**
* The name of a Google Compute Engine [machine
- * type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified,
- * the default machine type is `n1-standard-1`.
+ * type](/compute/docs/machine-types) (e.g.
+ * `n1-standard-1`).
+ *
+ * If unspecified, the default machine type is
+ * `n1-standard-1`.
*/
core.String machineType;
/**
- * The metadata key/value pairs assigned to instances in the cluster. Keys
- * must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in
- * length. These are reflected as part of a URL in the metadata server.
+ * The metadata key/value pairs assigned to instances in the cluster.
+ *
+ * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
+ * in length. These are reflected as part of a URL in the metadata server.
* Additionally, to avoid ambiguity, keys must not conflict with any other
* metadata keys for the project or be one of the four reserved keys:
- * "instance-template", "kube-env", "startup-script", and "user-data" Values
- * are free-form strings, and only have meaning as interpreted by the image
- * running in the instance. The only restriction placed on them is that each
- * value's size must be less than or equal to 32 KB. The total size of all
- * keys and values must be less than 512 KB.
+ * "instance-template", "kube-env", "startup-script", and "user-data"
+ *
+ * Values are free-form strings, and only have meaning as interpreted by
+ * the image running in the instance. The only restriction placed on them is
+ * that each value's size must be less than or equal to 32 KB.
+ *
+ * The total size of all keys and values must be less than 512 KB.
*/
core.Map<core.String, core.String> metadata;
/**
- * The set of Google API scopes to be made available on all of the node VMs
- * under the "default" service account. The following scopes are recommended,
- * but not required, and by default are not included: *
- * `https://www.googleapis.com/auth/compute` is required for mounting
- * persistent storage on your nodes. *
- * `https://www.googleapis.com/auth/devstorage.read_only` is required for
- * communicating with **gcr.io** (the [Google Container
- * Registry](/container-registry/)). If unspecified, no scopes are added,
- * unless Cloud Logging or Cloud Monitoring are enabled, in which case their
- * required scopes will be added.
+ * The set of Google API scopes to be made available on all of the
+ * node VMs under the "default" service account.
+ *
+ * The following scopes are recommended, but not required, and by default are
+ * not included:
+ *
+ * * `https://www.googleapis.com/auth/compute` is required for mounting
+ * persistent storage on your nodes.
+ * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+ * communicating with **gcr.io**
+ * (the [Google Container Registry](/container-registry/)).
+ *
+ * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+ * Monitoring are enabled, in which case their required scopes will be added.
*/
core.List<core.String> oauthScopes;
/**
@@ -1802,15 +2132,15 @@ class NodeConfig {
*/
core.bool preemptible;
/**
- * The Google Cloud Platform Service Account to be used by the node VMs. If no
- * Service Account is specified, the "default" service account is used.
+ * The Google Cloud Platform Service Account to be used by the node VMs. If
+ * no Service Account is specified, the "default" service account is used.
*/
core.String serviceAccount;
/**
* The list of instance tags applied to all nodes. Tags are used to identify
- * valid sources or targets for network firewalls and are specified by the
- * client during cluster or node pool creation. Each tag within the list must
- * comply with RFC1035.
+ * valid sources or targets for network firewalls and are specified by
+ * the client during cluster or node pool creation. Each tag within the list
+ * must comply with RFC1035.
*/
core.List<core.String> tags;
@@ -1890,7 +2220,18 @@ class NodeConfig {
* node pool.
*/
class NodeManagement {
- /** Whether the nodes will be automatically upgraded. */
+ /**
+ * A flag that specifies whether the node auto-repair is enabled for the node
+ * pool. If enabled, the nodes in this node pool will be monitored and, if
+ * they fail health checks too many times, an automatic repair action will be
+ * triggered.
+ */
+ core.bool autoRepair;
+ /**
+ * A flag that specifies whether node auto-upgrade is enabled for the node
+ * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
+ * up to date with the latest release version of Kubernetes.
+ */
core.bool autoUpgrade;
/** Specifies the Auto Upgrade knobs for the node pool. */
AutoUpgradeOptions upgradeOptions;
@@ -1898,6 +2239,9 @@ class NodeManagement {
NodeManagement();
NodeManagement.fromJson(core.Map _json) {
+ if (_json.containsKey("autoRepair")) {
+ autoRepair = _json["autoRepair"];
+ }
if (_json.containsKey("autoUpgrade")) {
autoUpgrade = _json["autoUpgrade"];
}
@@ -1908,6 +2252,9 @@ class NodeManagement {
core.Map toJson() {
var _json = new core.Map();
+ if (autoRepair != null) {
+ _json["autoRepair"] = autoRepair;
+ }
if (autoUpgrade != null) {
_json["autoUpgrade"] = autoUpgrade;
}
@@ -1919,8 +2266,8 @@ class NodeManagement {
}
/**
- * NodePool contains the name and configuration for a cluster's node pool. Node
- * pools are a set of nodes (i.e. VM's), with a common configuration and
+ * NodePool contains the name and configuration for a cluster's node pool.
+ * Node pools are a set of nodes (i.e. VM's), with a common configuration and
* specification, under the control of the cluster master. They may have a set
* of Kubernetes labels applied to them, which may be used to reference them
* during pod scheduling. They may also be resized up or down, to accommodate
@@ -1928,21 +2275,23 @@ class NodeManagement {
*/
class NodePool {
/**
- * Autoscaler configuration for this NodePool. Autoscaler is enabled only if a
- * valid configuration is present.
+ * Autoscaler configuration for this NodePool. Autoscaler is enabled
+ * only if a valid configuration is present.
*/
NodePoolAutoscaling autoscaling;
/** The node configuration of the pool. */
NodeConfig config;
/**
- * The initial node count for the pool. You must ensure that your Compute
- * Engine resource quota is sufficient for this number of instances. You must
- * also have available firewall and routes quota.
+ * The initial node count for the pool. You must ensure that your
+ * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
+ * is sufficient for this number of instances. You must also have available
+ * firewall and routes quota.
*/
core.int initialNodeCount;
/**
* [Output only] The resource URLs of [instance
- * groups](/compute/docs/instance-groups/) associated with this node pool.
+ * groups](/compute/docs/instance-groups/) associated with this
+ * node pool.
*/
core.List<core.String> instanceGroupUrls;
/** NodeManagement configuration for this NodePool. */
@@ -1954,18 +2303,29 @@ class NodePool {
/**
* [Output only] The status of the nodes in this pool instance.
* Possible string values are:
- * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED.
- * - "PROVISIONING" : A PROVISIONING.
- * - "RUNNING" : A RUNNING.
- * - "RUNNING_WITH_ERROR" : A RUNNING_WITH_ERROR.
- * - "RECONCILING" : A RECONCILING.
- * - "STOPPING" : A STOPPING.
- * - "ERROR" : A ERROR.
+ * - "STATUS_UNSPECIFIED" : Not set.
+ * - "PROVISIONING" : The PROVISIONING state indicates the node pool is being
+ * created.
+ * - "RUNNING" : The RUNNING state indicates the node pool has been created
+ * and is fully usable.
+ * - "RUNNING_WITH_ERROR" : The RUNNING_WITH_ERROR state indicates the node
+ * pool has been created
+ * and is partially usable. Some error state has occurred and some
+ * functionality may be impaired. Customer may need to reissue a request
+ * or trigger a new update.
+ * - "RECONCILING" : The RECONCILING state indicates that some work is
+ * actively being done on
+ * the node pool, such as upgrading node software. Details can
+ * be found in the `statusMessage` field.
+ * - "STOPPING" : The STOPPING state indicates the node pool is being deleted.
+ * - "ERROR" : The ERROR state indicates the node pool may be unusable.
+ * Details
+ * can be found in the `statusMessage` field.
*/
core.String status;
/**
- * [Output only] Additional information about the current status of this node
- * pool instance, if available.
+ * [Output only] Additional information about the current status of this
+ * node pool instance, if available.
*/
core.String statusMessage;
/** [Output only] The version of the Kubernetes of this node. */
@@ -2101,16 +2461,20 @@ class Operation {
/**
* The operation type.
* Possible string values are:
- * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED.
- * - "CREATE_CLUSTER" : A CREATE_CLUSTER.
- * - "DELETE_CLUSTER" : A DELETE_CLUSTER.
- * - "UPGRADE_MASTER" : A UPGRADE_MASTER.
- * - "UPGRADE_NODES" : A UPGRADE_NODES.
- * - "REPAIR_CLUSTER" : A REPAIR_CLUSTER.
- * - "UPDATE_CLUSTER" : A UPDATE_CLUSTER.
- * - "CREATE_NODE_POOL" : A CREATE_NODE_POOL.
- * - "DELETE_NODE_POOL" : A DELETE_NODE_POOL.
- * - "SET_NODE_POOL_MANAGEMENT" : A SET_NODE_POOL_MANAGEMENT.
+ * - "TYPE_UNSPECIFIED" : Not set.
+ * - "CREATE_CLUSTER" : Cluster create.
+ * - "DELETE_CLUSTER" : Cluster delete.
+ * - "UPGRADE_MASTER" : A master upgrade.
+ * - "UPGRADE_NODES" : A node upgrade.
+ * - "REPAIR_CLUSTER" : Cluster repair.
+ * - "UPDATE_CLUSTER" : Cluster update.
+ * - "CREATE_NODE_POOL" : Node pool create.
+ * - "DELETE_NODE_POOL" : Node pool delete.
+ * - "SET_NODE_POOL_MANAGEMENT" : Set node pool management.
+ * - "AUTO_REPAIR_NODES" : Automatic node pool repair.
+ * - "AUTO_UPGRADE_NODES" : Automatic node upgrade.
+ * - "SET_LABELS" : Set labels.
+ * - "SET_MASTER_AUTH" : Set/generate master auth materials
*/
core.String operationType;
/** Server-defined URL for the resource. */
@@ -2118,11 +2482,11 @@ class Operation {
/**
* The current status of the operation.
* Possible string values are:
- * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED.
- * - "PENDING" : A PENDING.
- * - "RUNNING" : A RUNNING.
- * - "DONE" : A DONE.
- * - "ABORTING" : A ABORTING.
+ * - "STATUS_UNSPECIFIED" : Not set.
+ * - "PENDING" : The operation has been created.
+ * - "RUNNING" : The operation is currently running.
+ * - "DONE" : The operation is done, either cancelled or completed.
+ * - "ABORTING" : The operation is aborting.
*/
core.String status;
/** If an error has occurred, a textual description of the error. */
@@ -2130,8 +2494,9 @@ class Operation {
/** Server-defined URL for the target of the operation. */
core.String targetLink;
/**
- * The name of the Google Compute Engine [zone](/compute/docs/zones#available)
- * in which the operation is taking place.
+ * The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the operation
+ * is taking place.
*/
core.String zone;
@@ -2195,6 +2560,33 @@ class Operation {
}
/**
+ * The set of Google Compute Engine labels that will be applied to any
+ * underlying resources that the Google Container Cluster creates or uses.
+ * These are merely metadata on the resources, and do not change the behavior
+ * of the cluster.
+ */
+class ResourceLabels {
+ /** The list of labels. */
+ core.List<Item> items;
+
+ ResourceLabels();
+
+ ResourceLabels.fromJson(core.Map _json) {
+ if (_json.containsKey("items")) {
+ items = _json["items"].map((value) => new Item.fromJson(value)).toList();
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (items != null) {
+ _json["items"] = items.map((value) => (value).toJson()).toList();
+ }
+ return _json;
+ }
+}
+
+/**
* RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
* NodePool upgrade. This will be an no-op if the last upgrade successfully
* completed.
@@ -2267,6 +2659,108 @@ class ServerConfig {
}
/**
+ * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
+ * Engine cluster, which will in turn set them for Google Compute Engine
+ * resources used by that cluster
+ */
+class SetLabelsRequest {
+ /**
+ * The fingerprint of the previous set of labels for this resource,
+ * used to detect conflicts. The fingerprint is initially generated by
+ * Container Engine and changes after every request to modify or update
+ * labels. You must always provide an up-to-date fingerprint hash when
+ * updating or changing labels. Make a <code>get()</code> request to the
+ * resource to get the latest fingerprint.
+ */
+ core.String labelFingerprint;
+ /** The labels to set for that cluster. */
+ ResourceLabels resourceLabels;
+
+ SetLabelsRequest();
+
+ SetLabelsRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("labelFingerprint")) {
+ labelFingerprint = _json["labelFingerprint"];
+ }
+ if (_json.containsKey("resourceLabels")) {
+ resourceLabels = new ResourceLabels.fromJson(_json["resourceLabels"]);
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (labelFingerprint != null) {
+ _json["labelFingerprint"] = labelFingerprint;
+ }
+ if (resourceLabels != null) {
+ _json["resourceLabels"] = (resourceLabels).toJson();
+ }
+ return _json;
+ }
+}
+
+/**
+ * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
+ * a cluster.
+ */
+class SetLegacyAbacRequest {
+ /** Whether ABAC authorization will be enabled in the cluster. */
+ core.bool enabled;
+
+ SetLegacyAbacRequest();
+
+ SetLegacyAbacRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("enabled")) {
+ enabled = _json["enabled"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (enabled != null) {
+ _json["enabled"] = enabled;
+ }
+ return _json;
+ }
+}
+
+/** SetMasterAuthRequest updates the admin password of a cluster. */
+class SetMasterAuthRequest {
+ /**
+ * The exact form of action to be taken on the master auth
+ * Possible string values are:
+ * - "UNKNOWN" : Operation is unknown and will error out
+ * - "SET_PASSWORD" : Set the password to a user generated value.
+ * - "GENERATE_PASSWORD" : Generate a new password and set it to that.
+ */
+ core.String action;
+ /** A description of the update. */
+ MasterAuth update;
+
+ SetMasterAuthRequest();
+
+ SetMasterAuthRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("action")) {
+ action = _json["action"];
+ }
+ if (_json.containsKey("update")) {
+ update = new MasterAuth.fromJson(_json["update"]);
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (action != null) {
+ _json["action"] = action;
+ }
+ if (update != null) {
+ _json["update"] = (update).toJson();
+ }
+ return _json;
+ }
+}
+
+/**
* SetNodePoolManagementRequest sets the node management properties of a node
* pool.
*/
« no previous file with comments | « generated/googleapis/lib/consumersurveys/v2.dart ('k') | generated/googleapis/lib/content/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698