diff --git a/google/resource_container_cluster.go b/google/resource_container_cluster.go
index 59ff63b6d0e..f0de60f08a4 100644
--- a/google/resource_container_cluster.go
+++ b/google/resource_container_cluster.go
@@ -138,6 +138,12 @@ func resourceContainerCluster() *schema.Resource {
ForceNew: true,
},
+ "enable_legacy_abac": {
+ Type: schema.TypeBool,
+ Optional: true,
+ Default: true,
+ },
+
"endpoint": {
Type: schema.TypeString,
Computed: true,
@@ -315,6 +321,11 @@ func resourceContainerClusterCreate(d *schema.ResourceData, meta interface{}) er
cluster.Description = v.(string)
}
+ cluster.LegacyAbac = &container.LegacyAbac{
+ Enabled: d.Get("enable_legacy_abac").(bool),
+ ForceSendFields: []string{"Enabled"},
+ }
+
if v, ok := d.GetOk("logging_service"); ok {
cluster.LoggingService = v.(string)
}
@@ -513,6 +524,7 @@ func resourceContainerClusterRead(d *schema.ResourceData, meta interface{}) erro
d.Set("node_version", cluster.CurrentNodeVersion)
d.Set("cluster_ipv4_cidr", cluster.ClusterIpv4Cidr)
d.Set("description", cluster.Description)
+ d.Set("enable_legacy_abac", cluster.LegacyAbac.Enabled)
d.Set("logging_service", cluster.LoggingService)
d.Set("monitoring_service", cluster.MonitoringService)
d.Set("network", d.Get("network").(string))
@@ -595,6 +607,30 @@ func resourceContainerClusterUpdate(d *schema.ResourceData, meta interface{}) er
log.Printf("[INFO] GKE cluster %s locations have been updated to %v", d.Id(),
locations)
+
+ d.SetPartial("additional_zones")
+ }
+
+ if d.HasChange("enable_legacy_abac") {
+ enabled := d.Get("enable_legacy_abac").(bool)
+ req := &container.SetLegacyAbacRequest{
+ Enabled: enabled,
+ ForceSendFields: []string{"Enabled"},
+ }
+ op, err := config.clientContainer.Projects.Zones.Clusters.LegacyAbac(project, zoneName, clusterName, req).Do()
+ if err != nil {
+ return err
+ }
+
+ // Wait until it's updated
+ waitErr := containerOperationWait(config, op, project, zoneName, "updating GKE legacy ABAC", timeoutInMinutes, 2)
+ if waitErr != nil {
+ return waitErr
+ }
+
+ log.Printf("[INFO] GKE cluster %s legacy ABAC has been updated to %v", d.Id(), enabled)
+
+ d.SetPartial("enable_legacy_abac")
}
d.Partial(false)
diff --git a/google/resource_container_cluster_test.go b/google/resource_container_cluster_test.go
index fd0b00cc193..10922980a8c 100644
--- a/google/resource_container_cluster_test.go
+++ b/google/resource_container_cluster_test.go
@@ -91,6 +91,34 @@ func TestAccContainerCluster_withAdditionalZones(t *testing.T) {
})
}
+func TestAccContainerCluster_withLegacyAbac(t *testing.T) {
+ clusterName := fmt.Sprintf("cluster-test-%s", acctest.RandString(10))
+
+ resource.Test(t, resource.TestCase{
+ PreCheck: func() { testAccPreCheck(t) },
+ Providers: testAccProviders,
+ CheckDestroy: testAccCheckContainerClusterDestroy,
+ Steps: []resource.TestStep{
+ {
+ Config: testAccContainerCluster_withLegacyAbac(clusterName),
+ Check: resource.ComposeTestCheckFunc(
+ testAccCheckContainerCluster(
+ "google_container_cluster.with_legacy_abac"),
+ resource.TestCheckResourceAttr("google_container_cluster.with_legacy_abac", "enable_legacy_abac", "true"),
+ ),
+ },
+ {
+ Config: testAccContainerCluster_updateLegacyAbac(clusterName),
+ Check: resource.ComposeTestCheckFunc(
+ testAccCheckContainerCluster(
+ "google_container_cluster.with_legacy_abac"),
+ resource.TestCheckResourceAttr("google_container_cluster.with_legacy_abac", "enable_legacy_abac", "false"),
+ ),
+ },
+ },
+ })
+}
+
func TestAccContainerCluster_withVersion(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
@@ -289,6 +317,7 @@ func testAccCheckContainerCluster(n string) resource.TestCheckFunc {
{"zone", cluster.Zone},
{"cluster_ipv4_cidr", cluster.ClusterIpv4Cidr},
{"description", cluster.Description},
+ {"enable_legacy_abac", strconv.FormatBool(cluster.LegacyAbac.Enabled)},
{"endpoint", cluster.Endpoint},
{"instance_group_urls", igUrls},
{"logging_service", cluster.LoggingService},
@@ -520,6 +549,28 @@ resource "google_container_cluster" "with_additional_zones" {
}`, clusterName)
}
+func testAccContainerCluster_withLegacyAbac(clusterName string) string {
+ return fmt.Sprintf(`
+resource "google_container_cluster" "with_legacy_abac" {
+ name = "cluster-test-%s"
+ zone = "us-central1-a"
+ initial_node_count = 1
+
+ enable_legacy_abac = true
+}`, clusterName)
+}
+
+func testAccContainerCluster_updateLegacyAbac(clusterName string) string {
+ return fmt.Sprintf(`
+resource "google_container_cluster" "with_legacy_abac" {
+ name = "cluster-test-%s"
+ zone = "us-central1-a"
+ initial_node_count = 1
+
+ enable_legacy_abac = false
+}`, clusterName)
+}
+
var testAccContainerCluster_withVersion = fmt.Sprintf(`
data "google_container_engine_versions" "central1a" {
zone = "us-central1-a"
diff --git a/vendor/google.golang.org/api/container/v1/container-api.json b/vendor/google.golang.org/api/container/v1/container-api.json
index 0a07d88ab8b..c62d6e0a301 100644
--- a/vendor/google.golang.org/api/container/v1/container-api.json
+++ b/vendor/google.golang.org/api/container/v1/container-api.json
@@ -1,1339 +1,2288 @@
{
- "kind": "discovery#restDescription",
- "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/aTs6tIgXySgjqhtr4EU6PD-kvdQ\"",
- "discoveryVersion": "v1",
- "id": "container:v1",
- "name": "container",
- "version": "v1",
- "revision": "20161024",
- "title": "Google Container Engine API",
- "description": "Builds and manages clusters that run container-based applications, powered by open source Kubernetes technology.",
- "ownerDomain": "google.com",
- "ownerName": "Google",
- "icons": {
- "x16": "http://www.google.com/images/icons/product/search-16.gif",
- "x32": "http://www.google.com/images/icons/product/search-32.gif"
- },
- "documentationLink": "https://cloud.google.com/container-engine/",
- "protocol": "rest",
- "baseUrl": "https://container.googleapis.com/",
- "basePath": "",
- "rootUrl": "https://container.googleapis.com/",
- "servicePath": "",
- "batchPath": "batch",
- "parameters": {
- "access_token": {
- "type": "string",
- "description": "OAuth access token.",
- "location": "query"
- },
- "alt": {
- "type": "string",
- "description": "Data format for response.",
- "default": "json",
- "enumDescriptions": [
- "Responses with Content-Type of application/json",
- "Media download with context-dependent Content-Type",
- "Responses with Content-Type of application/x-protobuf"
- ],
- "location": "query"
- },
- "bearer_token": {
- "type": "string",
- "description": "OAuth bearer token.",
- "location": "query"
- },
- "callback": {
- "type": "string",
- "description": "JSONP",
- "location": "query"
- },
- "fields": {
- "type": "string",
- "description": "Selector specifying which fields to include in a partial response.",
- "location": "query"
- },
- "key": {
- "type": "string",
- "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
- "location": "query"
- },
- "oauth_token": {
- "type": "string",
- "description": "OAuth 2.0 token for the current user.",
- "location": "query"
- },
- "pp": {
- "type": "boolean",
- "description": "Pretty-print response.",
- "default": "true",
- "location": "query"
- },
- "prettyPrint": {
- "type": "boolean",
- "description": "Returns response with indentations and line breaks.",
- "default": "true",
- "location": "query"
- },
- "quotaUser": {
- "type": "string",
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
- "location": "query"
- },
- "upload_protocol": {
- "type": "string",
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
- "location": "query"
- },
- "uploadType": {
- "type": "string",
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
- "location": "query"
- },
- "$.xgafv": {
- "type": "string",
- "description": "V1 error format.",
- "enumDescriptions": [
- "v1 error format",
- "v2 error format"
- ],
- "location": "query"
- }
- },
- "auth": {
- "oauth2": {
- "scopes": {
- "https://www.googleapis.com/auth/cloud-platform": {
- "description": "View and manage your data across Google Cloud Platform services"
- }
- }
- }
- },
- "schemas": {
- "ListClustersResponse": {
- "id": "ListClustersResponse",
- "type": "object",
- "description": "ListClustersResponse is the result of ListClustersRequest.",
- "properties": {
- "clusters": {
- "type": "array",
- "description": "A list of clusters in the project in the specified zone, or across all ones.",
- "items": {
- "$ref": "Cluster"
- }
- },
- "missingZones": {
- "type": "array",
- "description": "If any zones are listed here, the list of clusters returned may be missing those zones.",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "Cluster": {
- "id": "Cluster",
- "type": "object",
- "description": "A Google Container Engine cluster.",
- "properties": {
- "name": {
- "type": "string",
- "description": "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."
- },
- "description": {
- "type": "string",
- "description": "An optional description of this cluster."
- },
- "initialNodeCount": {
- "type": "integer",
- "description": "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.",
- "format": "int32"
- },
- "nodeConfig": {
- "$ref": "NodeConfig",
- "description": "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."
- },
- "masterAuth": {
- "$ref": "MasterAuth",
- "description": "The authentication information for accessing the master endpoint."
- },
- "loggingService": {
- "type": "string",
- "description": "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."
- },
- "monitoringService": {
- "type": "string",
- "description": "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."
- },
- "network": {
- "type": "string",
- "description": "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."
- },
- "clusterIpv4Cidr": {
- "type": "string",
- "description": "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`."
- },
- "addonsConfig": {
- "$ref": "AddonsConfig",
- "description": "Configurations for the various addons available to run in the cluster."
- },
- "subnetwork": {
- "type": "string",
- "description": "The name of the Google Compute Engine [subnetwork](/compute/docs/subnetworks) to which the cluster is connected."
- },
- "nodePools": {
- "type": "array",
- "description": "The node pools associated with this cluster. This field should not be set if \"node_config\" or \"initial_node_count\" are specified.",
- "items": {
- "$ref": "NodePool"
- }
- },
- "locations": {
- "type": "array",
- "description": "The list of Google Compute Engine [locations](/compute/docs/zones#available) in which the cluster's nodes should be located.",
- "items": {
- "type": "string"
- }
- },
- "enableKubernetesAlpha": {
- "type": "boolean",
- "description": "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."
- },
- "selfLink": {
- "type": "string",
- "description": "[Output only] Server-defined URL for the resource."
- },
- "zone": {
- "type": "string",
- "description": "[Output only] The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides."
- },
- "endpoint": {
- "type": "string",
- "description": "[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."
- },
- "initialClusterVersion": {
- "type": "string",
- "description": "[Output only] The software version of the master endpoint and kubelets used in the cluster when it was first created. The version can be upgraded over time."
- },
- "currentMasterVersion": {
- "type": "string",
- "description": "[Output only] The current software version of the master endpoint."
- },
- "currentNodeVersion": {
- "type": "string",
- "description": "[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."
- },
- "createTime": {
- "type": "string",
- "description": "[Output only] The time the cluster was created, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format."
- },
- "status": {
- "type": "string",
- "description": "[Output only] The current status of this cluster.",
- "enum": [
- "STATUS_UNSPECIFIED",
- "PROVISIONING",
- "RUNNING",
- "RECONCILING",
- "STOPPING",
- "ERROR"
- ]
- },
- "statusMessage": {
- "type": "string",
- "description": "[Output only] Additional information about the current status of this cluster, if available."
- },
- "nodeIpv4CidrSize": {
- "type": "integer",
- "description": "[Output only] The size of the address space on each node for hosting containers. This is provisioned from within the `container_ipv4_cidr` range.",
- "format": "int32"
- },
- "servicesIpv4Cidr": {
- "type": "string",
- "description": "[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."
- },
- "instanceGroupUrls": {
- "type": "array",
- "description": "[Output only] The resource URLs of [instance groups](/compute/docs/instance-groups/) associated with this cluster.",
- "items": {
- "type": "string"
- }
- },
- "currentNodeCount": {
- "type": "integer",
- "description": "[Output only] The number of nodes currently in the cluster.",
- "format": "int32"
- },
- "expireTime": {
- "type": "string",
- "description": "[Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format."
+ "rootUrl": "https://container.googleapis.com/",
+ "basePath": "",
+ "ownerDomain": "google.com",
+ "name": "container",
+ "batchPath": "batch",
+ "documentationLink": "https://cloud.google.com/container-engine/",
+ "revision": "20170627",
+ "id": "container:v1",
+ "title": "Google Container Engine API",
+ "discoveryVersion": "v1",
+ "ownerName": "Google",
+ "resources": {
+ "projects": {
+ "resources": {
+ "zones": {
+ "methods": {
+ "getServerconfig": {
+ "description": "Returns configuration info about the Container Engine service.",
+ "httpMethod": "GET",
+ "response": {
+ "$ref": "ServerConfig"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone"
+ ],
+ "parameters": {
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/serverconfig",
+ "path": "v1/projects/{projectId}/zones/{zone}/serverconfig",
+ "id": "container.projects.zones.getServerconfig"
+ }
+ },
+ "resources": {
+ "clusters": {
+ "methods": {
+ "locations": {
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "httpMethod": "POST",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "location": "path",
+ "description": "The name of the cluster to upgrade.",
+ "type": "string",
+ "required": true
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
+ "id": "container.projects.zones.clusters.locations",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
+ "request": {
+ "$ref": "SetLocationsRequest"
+ },
+ "description": "Sets the locations of a specific cluster."
+ },
+ "update": {
+ "request": {
+ "$ref": "UpdateClusterRequest"
+ },
+ "description": "Updates the settings of a specific cluster.",
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "httpMethod": "PUT",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "location": "path",
+ "description": "The name of the cluster to upgrade.",
+ "type": "string",
+ "required": true
+ },
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "id": "container.projects.zones.clusters.update",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}"
+ },
+ "monitoring": {
+ "request": {
+ "$ref": "SetMonitoringServiceRequest"
+ },
+ "description": "Sets the monitoring service of a specific cluster.",
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "httpMethod": "POST",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true
+ },
+ "clusterId": {
+ "description": "The name of the cluster to upgrade.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring",
+ "id": "container.projects.zones.clusters.monitoring",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring"
+ },
+ "master": {
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "httpMethod": "POST",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true
+ },
+ "clusterId": {
+ "description": "The name of the cluster to upgrade.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
+ "id": "container.projects.zones.clusters.master",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
+ "request": {
+ "$ref": "UpdateMasterRequest"
+ },
+ "description": "Updates the master of a specific cluster."
+ },
+ "setMasterAuth": {
+ "httpMethod": "POST",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "location": "path",
+ "description": "The name of the cluster to upgrade.",
+ "type": "string",
+ "required": true
+ },
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ "id": "container.projects.zones.clusters.setMasterAuth",
+ "request": {
+ "$ref": "SetMasterAuthRequest"
+ },
+ "description": "Used to set master auth materials. Currently supports :-\nChanging the admin password of a specific cluster.\nThis can be either via password generation or explicitly set the password."
+ },
+ "logging": {
+ "httpMethod": "POST",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "response": {
+ "$ref": "Operation"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "location": "path",
+ "description": "The name of the cluster to upgrade.",
+ "type": "string",
+ "required": true
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
+ "id": "container.projects.zones.clusters.logging",
+ "request": {
+ "$ref": "SetLoggingServiceRequest"
+ },
+ "description": "Sets the logging service of a specific cluster."
+ },
+ "list": {
+ "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
+ "response": {
+ "$ref": "ListClustersResponse"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone"
+ ],
+ "httpMethod": "GET",
+ "parameters": {
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters",
+ "id": "container.projects.zones.clusters.list",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters"
+ },
+ "resourceLabels": {
+ "id": "container.projects.zones.clusters.resourceLabels",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
+ "request": {
+ "$ref": "SetLabelsRequest"
+ },
+ "description": "Sets labels on a cluster.",
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "httpMethod": "POST",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
+ "type": "string",
+ "required": true
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "description": "The name of the cluster.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels"
+ },
+ "create": {
+ "description": "Creates a cluster, consisting of the specified number and type of Google\nCompute Engine instances.\n\nBy default, the cluster is created in the project's\n[default network](/compute/docs/networks-and-firewalls#networks).\n\nOne firewall is added for the cluster. After cluster creation,\nthe cluster creates routes for each node to allow the containers\non that node to communicate with all other instances in the\ncluster.\n\nFinally, an entry is added to the project's global metadata indicating\nwhich CIDR range is being used by the cluster.",
+ "request": {
+ "$ref": "CreateClusterRequest"
+ },
+ "httpMethod": "POST",
+ "parameterOrder": [
+ "projectId",
+ "zone"
+ ],
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameters": {
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters",
+ "id": "container.projects.zones.clusters.create"
+ },
+ "completeIpRotation": {
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "httpMethod": "POST",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
+ "type": "string",
+ "required": true
+ },
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true
+ },
+ "clusterId": {
+ "description": "The name of the cluster.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ "id": "container.projects.zones.clusters.completeIpRotation",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ "request": {
+ "$ref": "CompleteIPRotationRequest"
+ },
+ "description": "Completes master IP rotation."
+ },
+ "setNetworkPolicy": {
+ "description": "Enables/Disables Network Policy for a cluster.",
+ "request": {
+ "$ref": "SetNetworkPolicyRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "httpMethod": "POST",
+ "parameters": {
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "description": "The name of the cluster.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
+ "id": "container.projects.zones.clusters.setNetworkPolicy",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy"
+ },
+ "legacyAbac": {
+ "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
+ "request": {
+ "$ref": "SetLegacyAbacRequest"
+ },
+ "httpMethod": "POST",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameters": {
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "location": "path",
+ "description": "The name of the cluster to update.",
+ "type": "string",
+ "required": true
+ },
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ "id": "container.projects.zones.clusters.legacyAbac"
+ },
+ "get": {
+ "httpMethod": "GET",
+ "response": {
+ "$ref": "Cluster"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "parameters": {
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true
+ },
+ "clusterId": {
+ "location": "path",
+ "description": "The name of the cluster to retrieve.",
+ "type": "string",
+ "required": true
+ },
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "id": "container.projects.zones.clusters.get",
+ "description": "Gets the details of a specific cluster."
+ },
+ "startIpRotation": {
+ "id": "container.projects.zones.clusters.startIpRotation",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
+ "request": {
+ "$ref": "StartIPRotationRequest"
+ },
+ "description": "Start master IP rotation.",
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "httpMethod": "POST",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true
+ },
+ "clusterId": {
+ "description": "The name of the cluster.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
+ "type": "string",
+ "required": true
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation"
+ },
+ "addons": {
+ "description": "Sets the addons of a specific cluster.",
+ "request": {
+ "$ref": "SetAddonsConfigRequest"
+ },
+ "httpMethod": "POST",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameters": {
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true
+ },
+ "clusterId": {
+ "location": "path",
+ "description": "The name of the cluster to upgrade.",
+ "type": "string",
+ "required": true
+ },
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
+ "id": "container.projects.zones.clusters.addons"
+ },
+ "delete": {
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "httpMethod": "DELETE",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "location": "path",
+ "description": "The name of the cluster to delete.",
+ "type": "string",
+ "required": true
+ },
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "id": "container.projects.zones.clusters.delete",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ "description": "Deletes the cluster, including the Kubernetes endpoint and all worker\nnodes.\n\nFirewalls and routes that were configured during cluster creation\nare also deleted.\n\nOther Google Compute Engine resources that might be in use by the cluster\n(e.g. load balancer resources) will not be deleted if they weren't present\nat the initial create time."
+ }
+ },
+ "resources": {
+ "nodePools": {
+ "methods": {
+ "setSize": {
+ "httpMethod": "POST",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameters": {
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true
+ },
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true
+ },
+ "clusterId": {
+ "description": "The name of the cluster to update.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "nodePoolId": {
+ "description": "The name of the node pool to update.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
+ "id": "container.projects.zones.clusters.nodePools.setSize",
+ "description": "Sets the size of a specific node pool.",
+ "request": {
+ "$ref": "SetNodePoolSizeRequest"
+ }
+ },
+ "setManagement": {
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
+ "httpMethod": "POST",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true
+ },
+ "clusterId": {
+ "description": "The name of the cluster to update.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "nodePoolId": {
+ "location": "path",
+ "description": "The name of the node pool to update.",
+ "type": "string",
+ "required": true
+ },
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ "id": "container.projects.zones.clusters.nodePools.setManagement",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ "request": {
+ "$ref": "SetNodePoolManagementRequest"
+ },
+ "description": "Sets the NodeManagement options for a node pool."
+ },
+ "delete": {
+ "id": "container.projects.zones.clusters.nodePools.delete",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ "description": "Deletes a node pool from a cluster.",
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
+ "httpMethod": "DELETE",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true
+ },
+ "clusterId": {
+ "description": "The name of the cluster.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "nodePoolId": {
+ "location": "path",
+ "description": "The name of the node pool to delete.",
+ "type": "string",
+ "required": true
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}"
+ },
+ "list": {
+ "httpMethod": "GET",
+ "response": {
+ "$ref": "ListNodePoolsResponse"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
+ "type": "string",
+ "required": true
+ },
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true
+ },
+ "clusterId": {
+ "location": "path",
+ "description": "The name of the cluster.",
+ "type": "string",
+ "required": true
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "id": "container.projects.zones.clusters.nodePools.list",
+ "description": "Lists the node pools for a cluster."
+ },
+ "rollback": {
+ "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
+ "request": {
+ "$ref": "RollbackNodePoolUpgradeRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
+ "httpMethod": "POST",
+ "parameters": {
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "description": "The name of the cluster to rollback.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "nodePoolId": {
+ "location": "path",
+ "description": "The name of the node pool to rollback.",
+ "type": "string",
+ "required": true
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ "id": "container.projects.zones.clusters.nodePools.rollback",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback"
+ },
+ "create": {
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId"
+ ],
+ "httpMethod": "POST",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
+ "type": "string",
+ "required": true
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "description": "The name of the cluster.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "id": "container.projects.zones.clusters.nodePools.create",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ "request": {
+ "$ref": "CreateNodePoolRequest"
+ },
+ "description": "Creates a node pool for a cluster."
+ },
+ "autoscaling": {
+ "description": "Sets the autoscaling settings of a specific node pool.",
+ "request": {
+ "$ref": "SetNodePoolAutoscalingRequest"
+ },
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
+ "httpMethod": "POST",
+ "parameters": {
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true
+ },
+ "clusterId": {
+ "description": "The name of the cluster to upgrade.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "nodePoolId": {
+ "description": "The name of the node pool to upgrade.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling",
+ "id": "container.projects.zones.clusters.nodePools.autoscaling",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling"
+ },
+ "get": {
+ "httpMethod": "GET",
+ "response": {
+ "$ref": "NodePool"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
+ "type": "string",
+ "required": true
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "location": "path",
+ "description": "The name of the cluster.",
+ "type": "string",
+ "required": true
+ },
+ "nodePoolId": {
+ "location": "path",
+ "description": "The name of the node pool.",
+ "type": "string",
+ "required": true
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ "id": "container.projects.zones.clusters.nodePools.get",
+ "description": "Retrieves the node pool requested."
+ },
+ "update": {
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "clusterId",
+ "nodePoolId"
+ ],
+ "httpMethod": "POST",
+ "parameters": {
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true
+ },
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "clusterId": {
+ "description": "The name of the cluster to upgrade.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "nodePoolId": {
+ "location": "path",
+ "description": "The name of the node pool to upgrade.",
+ "type": "string",
+ "required": true
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update",
+ "id": "container.projects.zones.clusters.nodePools.update",
+ "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update",
+ "description": "Updates the version and/or image type of a specific node pool.",
+ "request": {
+ "$ref": "UpdateNodePoolRequest"
+ }
+ }
+ }
+ }
+ }
+ },
+ "operations": {
+ "methods": {
+ "cancel": {
+ "httpMethod": "POST",
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "operationId"
+ ],
+ "response": {
+ "$ref": "Empty"
+ },
+ "parameters": {
+ "operationId": {
+ "description": "The server-assigned `name` of the operation.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "projectId": {
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.",
+ "type": "string",
+ "required": true
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
+ "path": "v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
+ "id": "container.projects.zones.operations.cancel",
+ "description": "Cancels the specified operation.",
+ "request": {
+ "$ref": "CancelOperationRequest"
+ }
+ },
+ "get": {
+ "description": "Gets the specified operation.",
+ "response": {
+ "$ref": "Operation"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone",
+ "operationId"
+ ],
+ "httpMethod": "GET",
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "parameters": {
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string",
+ "required": true,
+ "location": "path"
+ },
+ "operationId": {
+ "location": "path",
+ "description": "The server-assigned `name` of the operation.",
+ "type": "string",
+ "required": true
+ },
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true
+ }
+ },
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/operations/{operationId}",
+ "id": "container.projects.zones.operations.get",
+ "path": "v1/projects/{projectId}/zones/{zone}/operations/{operationId}"
+ },
+ "list": {
+ "httpMethod": "GET",
+ "response": {
+ "$ref": "ListOperationsResponse"
+ },
+ "parameterOrder": [
+ "projectId",
+ "zone"
+ ],
+ "parameters": {
+ "zone": {
+ "location": "path",
+ "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.",
+ "type": "string",
+ "required": true
+ },
+ "projectId": {
+ "location": "path",
+ "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ "type": "string",
+ "required": true
+ }
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform"
+ ],
+ "flatPath": "v1/projects/{projectId}/zones/{zone}/operations",
+ "path": "v1/projects/{projectId}/zones/{zone}/operations",
+ "id": "container.projects.zones.operations.list",
+ "description": "Lists all operations in a project in a specific zone or all zones."
+ }
+ }
+ }
+ }
+ }
+ }
}
- }
},
- "NodeConfig": {
- "id": "NodeConfig",
- "type": "object",
- "description": "Parameters that describe the nodes in a cluster.",
- "properties": {
- "machineType": {
- "type": "string",
- "description": "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`."
- },
- "diskSizeGb": {
- "type": "integer",
- "description": "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.",
- "format": "int32"
- },
- "oauthScopes": {
- "type": "array",
- "description": "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.",
- "items": {
+ "parameters": {
+ "upload_protocol": {
+ "location": "query",
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
- }
},
- "serviceAccount": {
- "type": "string",
- "description": "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."
+ "prettyPrint": {
+ "location": "query",
+ "description": "Returns response with indentations and line breaks.",
+ "default": "true",
+ "type": "boolean"
},
- "metadata": {
- "type": "object",
- "description": "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.",
- "additionalProperties": {
+ "fields": {
+ "location": "query",
+ "description": "Selector specifying which fields to include in a partial response.",
"type": "string"
- }
},
- "imageType": {
- "type": "string",
- "description": "The image type to use for this node. Note that for a given image type, the latest version of it will be used."
- },
- "labels": {
- "type": "object",
- "description": "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: http://kubernetes.io/v1.1/docs/user-guide/labels.html",
- "additionalProperties": {
- "type": "string"
- }
- },
- "localSsdCount": {
- "type": "integer",
- "description": "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.",
- "format": "int32"
- },
- "tags": {
- "type": "array",
- "description": "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.",
- "items": {
+ "uploadType": {
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
+ "type": "string",
+ "location": "query"
+ },
+ "callback": {
+ "description": "JSONP",
+ "type": "string",
+ "location": "query"
+ },
+ "$.xgafv": {
+ "enumDescriptions": [
+ "v1 error format",
+ "v2 error format"
+ ],
+ "location": "query",
+ "enum": [
+ "1",
+ "2"
+ ],
+ "description": "V1 error format.",
"type": "string"
- }
- },
- "preemptible": {
- "type": "boolean",
- "description": "Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances."
- }
- }
- },
- "MasterAuth": {
- "id": "MasterAuth",
- "type": "object",
- "description": "The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates.",
- "properties": {
- "username": {
- "type": "string",
- "description": "The username to use for HTTP basic authentication to the master endpoint."
- },
- "password": {
- "type": "string",
- "description": "The password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password."
- },
- "clusterCaCertificate": {
- "type": "string",
- "description": "[Output only] Base64-encoded public certificate that is the root of trust for the cluster."
- },
- "clientCertificate": {
- "type": "string",
- "description": "[Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint."
- },
- "clientKey": {
- "type": "string",
- "description": "[Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint."
- }
- }
- },
- "AddonsConfig": {
- "id": "AddonsConfig",
- "type": "object",
- "description": "Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality.",
- "properties": {
- "httpLoadBalancing": {
- "$ref": "HttpLoadBalancing",
- "description": "Configuration for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster."
- },
- "horizontalPodAutoscaling": {
- "$ref": "HorizontalPodAutoscaling",
- "description": "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."
- }
- }
- },
- "HttpLoadBalancing": {
- "id": "HttpLoadBalancing",
- "type": "object",
- "description": "Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster.",
- "properties": {
- "disabled": {
- "type": "boolean",
- "description": "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."
- }
- }
- },
- "HorizontalPodAutoscaling": {
- "id": "HorizontalPodAutoscaling",
- "type": "object",
- "description": "Configuration options 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.",
- "properties": {
- "disabled": {
- "type": "boolean",
- "description": "Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that a Heapster pod is running in the cluster, which is also used by the Cloud Monitoring service."
- }
- }
- },
- "NodePool": {
- "id": "NodePool",
- "type": "object",
- "description": "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 the workload.",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name of the node pool."
- },
- "config": {
- "$ref": "NodeConfig",
- "description": "The node configuration of the pool."
- },
- "initialNodeCount": {
- "type": "integer",
- "description": "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.",
- "format": "int32"
},
- "selfLink": {
- "type": "string",
- "description": "[Output only] Server-defined URL for the resource."
- },
- "version": {
- "type": "string",
- "description": "[Output only] The version of the Kubernetes of this node."
- },
- "instanceGroupUrls": {
- "type": "array",
- "description": "[Output only] The resource URLs of [instance groups](/compute/docs/instance-groups/) associated with this node pool.",
- "items": {
+ "alt": {
+ "description": "Data format for response.",
+ "default": "json",
+ "enum": [
+ "json",
+ "media",
+ "proto"
+ ],
+ "type": "string",
+ "enumDescriptions": [
+ "Responses with Content-Type of application/json",
+ "Media download with context-dependent Content-Type",
+ "Responses with Content-Type of application/x-protobuf"
+ ],
+ "location": "query"
+ },
+ "key": {
+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
+ "type": "string",
+ "location": "query"
+ },
+ "access_token": {
+ "location": "query",
+ "description": "OAuth access token.",
"type": "string"
- }
- },
- "status": {
- "type": "string",
- "description": "[Output only] The status of the nodes in this pool instance.",
- "enum": [
- "STATUS_UNSPECIFIED",
- "PROVISIONING",
- "RUNNING",
- "RUNNING_WITH_ERROR",
- "RECONCILING",
- "STOPPING",
- "ERROR"
- ]
- },
- "statusMessage": {
- "type": "string",
- "description": "[Output only] Additional information about the current status of this node pool instance, if available."
- },
- "autoscaling": {
- "$ref": "NodePoolAutoscaling",
- "description": "Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present."
- },
- "management": {
- "$ref": "NodeManagement",
- "description": "NodeManagement configuration for this NodePool."
- }
- }
- },
- "NodePoolAutoscaling": {
- "id": "NodePoolAutoscaling",
- "type": "object",
- "description": "NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage.",
- "properties": {
- "enabled": {
- "type": "boolean",
- "description": "Is autoscaling enabled for this node pool."
- },
- "minNodeCount": {
- "type": "integer",
- "description": "Minimum number of nodes in the NodePool. Must be \u003e= 1 and \u003c= max_node_count.",
- "format": "int32"
- },
- "maxNodeCount": {
- "type": "integer",
- "description": "Maximum number of nodes in the NodePool. Must be \u003e= min_node_count. There has to enough quota to scale up the cluster.",
- "format": "int32"
- }
- }
- },
- "NodeManagement": {
- "id": "NodeManagement",
- "type": "object",
- "description": "NodeManagement defines the set of node management services turned on for the node pool.",
- "properties": {
- "autoUpgrade": {
- "type": "boolean",
- "description": "Whether the nodes will be automatically upgraded."
- },
- "upgradeOptions": {
- "$ref": "AutoUpgradeOptions",
- "description": "Specifies the Auto Upgrade knobs for the node pool."
- }
- }
- },
- "AutoUpgradeOptions": {
- "id": "AutoUpgradeOptions",
- "type": "object",
- "description": "AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed.",
- "properties": {
- "autoUpgradeStartTime": {
- "type": "string",
- "description": "[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."
- },
- "description": {
- "type": "string",
- "description": "[Output only] This field is set when upgrades are about to commence with the description of the upgrade."
- }
- }
- },
- "CreateClusterRequest": {
- "id": "CreateClusterRequest",
- "type": "object",
- "description": "CreateClusterRequest creates a cluster.",
- "properties": {
- "cluster": {
- "$ref": "Cluster",
- "description": "A [cluster resource](/container-engine/reference/rest/v1/projects.zones.clusters)"
- }
- }
- },
- "Operation": {
- "id": "Operation",
- "type": "object",
- "description": "This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.",
- "properties": {
- "name": {
- "type": "string",
- "description": "The server-assigned ID for the operation."
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the operation is taking place."
- },
- "operationType": {
- "type": "string",
- "description": "The operation type.",
- "enum": [
- "TYPE_UNSPECIFIED",
- "CREATE_CLUSTER",
- "DELETE_CLUSTER",
- "UPGRADE_MASTER",
- "UPGRADE_NODES",
- "REPAIR_CLUSTER",
- "UPDATE_CLUSTER",
- "CREATE_NODE_POOL",
- "DELETE_NODE_POOL",
- "SET_NODE_POOL_MANAGEMENT"
- ]
},
- "status": {
- "type": "string",
- "description": "The current status of the operation.",
- "enum": [
- "STATUS_UNSPECIFIED",
- "PENDING",
- "RUNNING",
- "DONE",
- "ABORTING"
- ]
- },
- "detail": {
- "type": "string",
- "description": "Detailed operation progress, if available."
- },
- "statusMessage": {
- "type": "string",
- "description": "If an error has occurred, a textual description of the error."
- },
- "selfLink": {
- "type": "string",
- "description": "Server-defined URL for the resource."
- },
- "targetLink": {
- "type": "string",
- "description": "Server-defined URL for the target of the operation."
- }
- }
- },
- "UpdateClusterRequest": {
- "id": "UpdateClusterRequest",
- "type": "object",
- "description": "UpdateClusterRequest updates the settings of a cluster.",
- "properties": {
- "update": {
- "$ref": "ClusterUpdate",
- "description": "A description of the update."
+ "quotaUser": {
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
+ "type": "string",
+ "location": "query"
+ },
+ "pp": {
+ "description": "Pretty-print response.",
+ "default": "true",
+ "type": "boolean",
+ "location": "query"
+ },
+ "oauth_token": {
+ "description": "OAuth 2.0 token for the current user.",
+ "type": "string",
+ "location": "query"
+ },
+ "bearer_token": {
+ "description": "OAuth bearer token.",
+ "type": "string",
+ "location": "query"
}
- }
},
- "ClusterUpdate": {
- "id": "ClusterUpdate",
- "type": "object",
- "description": "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.",
- "properties": {
- "desiredNodeVersion": {
- "type": "string",
- "description": "The Kubernetes version to change the nodes to (typically an upgrade). Use `-` to upgrade to the latest version supported by the server."
- },
- "desiredMonitoringService": {
- "type": "string",
- "description": "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"
- },
- "desiredAddonsConfig": {
- "$ref": "AddonsConfig",
- "description": "Configurations for the various addons available to run in the cluster."
- },
- "desiredNodePoolId": {
- "type": "string",
- "description": "The node pool to be upgraded. This field is mandatory if \"desired_node_version\", \"desired_image_family\" or \"desired_node_pool_autoscaling\" is specified and there is more than one node pool on the cluster."
+ "schemas": {
+ "NodeConfig": {
+ "properties": {
+ "preemptible": {
+ "description": "Whether the nodes are created as preemptible VM instances. See:\nhttps://cloud.google.com/compute/docs/instances/preemptible for more\ninformation about preemptible VM instances.",
+ "type": "boolean"
+ },
+ "labels": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The map of Kubernetes labels (key/value pairs) to be applied to each node.\nThese will added in addition to any default label(s) that\nKubernetes may apply to the node.\nIn case of conflict in label keys, the applied set may differ depending on\nthe Kubernetes version -- it's best to assume the behavior is undefined\nand conflicts should be avoided.\nFor more information, including usage and the valid values, see:\nhttp://kubernetes.io/v1.1/docs/user-guide/labels.html",
+ "type": "object"
+ },
+ "localSsdCount": {
+ "format": "int32",
+ "description": "The number of local SSD disks to be attached to the node.\n\nThe limit for this value is dependant upon the maximum number of\ndisks available on a machine per zone. See:\nhttps://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits\nfor more information.",
+ "type": "integer"
+ },
+ "metadata": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The metadata key/value pairs assigned to instances in the cluster.\n\nKeys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes\nin length. These are reflected as part of a URL in the metadata server.\nAdditionally, to avoid ambiguity, keys must not conflict with any other\nmetadata keys for the project or be one of the four reserved keys:\n\"instance-template\", \"kube-env\", \"startup-script\", and \"user-data\"\n\nValues are free-form strings, and only have meaning as interpreted by\nthe image running in the instance. The only restriction placed on them is\nthat each value's size must be less than or equal to 32 KB.\n\nThe total size of all keys and values must be less than 512 KB.",
+ "type": "object"
+ },
+ "diskSizeGb": {
+ "format": "int32",
+ "description": "Size of the disk attached to each node, specified in GB.\nThe smallest allowed disk size is 10GB.\n\nIf unspecified, the default disk size is 100GB.",
+ "type": "integer"
+ },
+ "tags": {
+ "description": "The list of instance tags applied to all nodes. Tags are used to identify\nvalid sources or targets for network firewalls and are specified by\nthe client during cluster or node pool creation. Each tag within the list\nmust comply with RFC1035.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "serviceAccount": {
+ "description": "The Google Cloud Platform Service Account to be used by the node VMs. If\nno Service Account is specified, the \"default\" service account is used.",
+ "type": "string"
+ },
+ "machineType": {
+ "description": "The name of a Google Compute Engine [machine\ntype](/compute/docs/machine-types) (e.g.\n`n1-standard-1`).\n\nIf unspecified, the default machine type is\n`n1-standard-1`.",
+ "type": "string"
+ },
+ "imageType": {
+ "description": "The image type to use for this node. Note that for a given image type,\nthe latest version of it will be used.",
+ "type": "string"
+ },
+ "oauthScopes": {
+ "description": "The set of Google API scopes to be made available on all of the\nnode VMs under the \"default\" service account.\n\nThe following scopes are recommended, but not required, and by default are\nnot included:\n\n* `https://www.googleapis.com/auth/compute` is required for mounting\npersistent storage on your nodes.\n* `https://www.googleapis.com/auth/devstorage.read_only` is required for\ncommunicating with **gcr.io**\n(the [Google Container Registry](/container-registry/)).\n\nIf unspecified, no scopes are added, unless Cloud Logging or Cloud\nMonitoring are enabled, in which case their required scopes will be added.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "id": "NodeConfig",
+ "description": "Parameters that describe the nodes in a cluster.",
+ "type": "object"
+ },
+ "MasterAuth": {
+ "description": "The authentication information for accessing the master endpoint.\nAuthentication can be done using HTTP basic auth or using client\ncertificates.",
+ "type": "object",
+ "properties": {
+ "password": {
+ "description": "The password to use for HTTP basic authentication to the master endpoint.\nBecause the master endpoint is open to the Internet, you should create a\nstrong password. If a password is provided for cluster creation, username\nmust be non-empty.",
+ "type": "string"
+ },
+ "clientCertificateConfig": {
+ "description": "Configuration for client certificate authentication on the cluster. If no\nconfiguration is specified, a client certificate is issued.",
+ "$ref": "ClientCertificateConfig"
+ },
+ "clientKey": {
+ "description": "[Output only] Base64-encoded private key used by clients to authenticate\nto the cluster endpoint.",
+ "type": "string"
+ },
+ "clusterCaCertificate": {
+ "description": "[Output only] Base64-encoded public certificate that is the root of\ntrust for the cluster.",
+ "type": "string"
+ },
+ "clientCertificate": {
+ "description": "[Output only] Base64-encoded public certificate used by clients to\nauthenticate to the cluster endpoint.",
+ "type": "string"
+ },
+ "username": {
+ "description": "The username to use for HTTP basic authentication to the master endpoint.\nFor clusters v1.6.0 and later, you can disable basic authentication by\nproviding an empty username.",
+ "type": "string"
+ }
+ },
+ "id": "MasterAuth"
},
- "desiredImageType": {
- "type": "string",
- "description": "The desired image type for the node pool. NOTE: Set the \"desired_node_pool\" field as well."
+ "AutoUpgradeOptions": {
+ "properties": {
+ "description": {
+ "description": "[Output only] This field is set when upgrades are about to commence\nwith the description of the upgrade.",
+ "type": "string"
+ },
+ "autoUpgradeStartTime": {
+ "description": "[Output only] This field is set when upgrades are about to commence\nwith the approximate start time for the upgrades, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
+ "type": "string"
+ }
+ },
+ "id": "AutoUpgradeOptions",
+ "description": "AutoUpgradeOptions defines the set of options for the user to control how\nthe Auto Upgrades will proceed.",
+ "type": "object"
+ },
+ "ListClustersResponse": {
+ "properties": {
+ "missingZones": {
+ "description": "If any zones are listed here, the list of clusters returned\nmay be missing those zones.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "clusters": {
+ "description": "A list of clusters in the project in the specified zone, or\nacross all ones.",
+ "items": {
+ "$ref": "Cluster"
+ },
+ "type": "array"
+ }
+ },
+ "id": "ListClustersResponse",
+ "description": "ListClustersResponse is the result of ListClustersRequest.",
+ "type": "object"
+ },
+ "HttpLoadBalancing": {
+ "properties": {
+ "disabled": {
+ "description": "Whether the HTTP Load Balancing controller is enabled in the cluster.\nWhen enabled, it runs a small pod in the cluster that manages the load\nbalancers.",
+ "type": "boolean"
+ }
+ },
+ "id": "HttpLoadBalancing",
+ "description": "Configuration options for the HTTP (L7) load balancing controller addon,\nwhich makes it easy to set up HTTP load balancers for services in a cluster.",
+ "type": "object"
+ },
+ "SetNetworkPolicyRequest": {
+ "properties": {
+ "networkPolicy": {
+ "$ref": "NetworkPolicy",
+ "description": "Configuration options for the NetworkPolicy feature."
+ }
+ },
+ "id": "SetNetworkPolicyRequest",
+ "description": "SetNetworkPolicyRequest enables/disables network policy for a cluster.",
+ "type": "object"
},
- "desiredNodePoolAutoscaling": {
- "$ref": "NodePoolAutoscaling",
- "description": "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."
+ "SetMasterAuthRequest": {
+ "properties": {
+ "update": {
+ "$ref": "MasterAuth",
+ "description": "A description of the update."
+ },
+ "action": {
+ "enum": [
+ "UNKNOWN",
+ "SET_PASSWORD",
+ "GENERATE_PASSWORD"
+ ],
+ "description": "The exact form of action to be taken on the master auth",
+ "type": "string",
+ "enumDescriptions": [
+ "Operation is unknown and will error out",
+ "Set the password to a user generated value.",
+ "Generate a new password and set it to that."
+ ]
+ }
+ },
+ "id": "SetMasterAuthRequest",
+ "description": "SetMasterAuthRequest updates the admin password of a cluster.",
+ "type": "object"
+ },
+ "NodePoolAutoscaling": {
+ "properties": {
+ "enabled": {
+ "description": "Is autoscaling enabled for this node pool.",
+ "type": "boolean"
+ },
+ "maxNodeCount": {
+ "format": "int32",
+ "description": "Maximum number of nodes in the NodePool. Must be \u003e= min_node_count. There\nhas to enough quota to scale up the cluster.",
+ "type": "integer"
+ },
+ "minNodeCount": {
+ "format": "int32",
+ "description": "Minimum number of nodes in the NodePool. Must be \u003e= 1 and \u003c=\nmax_node_count.",
+ "type": "integer"
+ }
+ },
+ "id": "NodePoolAutoscaling",
+ "description": "NodePoolAutoscaling contains information required by cluster autoscaler to\nadjust the size of the node pool to the current cluster usage.",
+ "type": "object"
+ },
+ "ClientCertificateConfig": {
+ "properties": {
+ "issueClientCertificate": {
+ "description": "Issue a client certificate.",
+ "type": "boolean"
+ }
+ },
+ "id": "ClientCertificateConfig",
+ "description": "Configuration for client certificates on the cluster.",
+ "type": "object"
+ },
+ "IPAllocationPolicy": {
+ "description": "Configuration for controlling how IPs are allocated in the cluster.",
+ "type": "object",
+ "properties": {
+ "servicesIpv4Cidr": {
+ "description": "The IP address range of the services IPs in this cluster. If blank, a range\nwill be automatically chosen with the default size.\n\nThis field is only applicable when `use_ip_aliases` is true.\n\nSet to blank to have a range will be chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range be chosen with a specific\nnetmask.\n\nSet to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)\nnotation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.\n`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range\nto use.",
+ "type": "string"
+ },
+ "useIpAliases": {
+ "description": "Whether alias IPs will be used for pod IPs in the cluster.",
+ "type": "boolean"
+ },
+ "createSubnetwork": {
+ "description": "Whether a new subnetwork will be created automatically for the cluster.\n\nThis field is only applicable when `use_ip_aliases` is true.",
+ "type": "boolean"
+ },
+ "subnetworkName": {
+ "description": "A custom subnetwork name to be used if `create_subnetwork` is true. If\nthis field is empty, then an automatic name will choosen for the new\nsubnetwork.",
+ "type": "string"
+ },
+ "clusterIpv4Cidr": {
+ "description": "The IP address range for the cluster pod IPs. If this field is set, then\n`cluster.cluster_ipv4_cidr` must be left blank.\n\nThis field is only applicable when `use_ip_aliases` is true.\n\nSet to blank to have a range will be chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range be chosen with a specific\nnetmask.\n\nSet to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)\nnotation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.\n`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range\nto use.",
+ "type": "string"
+ },
+ "nodeIpv4Cidr": {
+ "description": "The IP address range of the instance IPs in this cluster.\n\nThis is applicable only if `create_subnetwork` is true.\n\nSet to blank to have a range will be chosen with the default size.\n\nSet to /netmask (e.g. `/14`) to have a range be chosen with a specific\nnetmask.\n\nSet to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)\nnotation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.\n`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range\nto use.",
+ "type": "string"
+ }
+ },
+ "id": "IPAllocationPolicy"
+ },
+ "ClusterUpdate": {
+ "properties": {
+ "desiredLocations": {
+ "description": "The desired list of Google Compute Engine\n[locations](/compute/docs/zones#available) in which the cluster's nodes\nshould be located. Changing the locations a cluster is in will result\nin nodes being either created or removed from the cluster, depending on\nwhether locations are being added or removed.\n\nThis list must always include the cluster's primary zone.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "desiredNodePoolAutoscaling": {
+ "$ref": "NodePoolAutoscaling",
+ "description": "Autoscaler configuration for the node pool specified in\ndesired_node_pool_id. If there is only one pool in the\ncluster and desired_node_pool_id is not provided then\nthe change applies to that single node pool."
+ },
+ "desiredMonitoringService": {
+ "description": "The monitoring service the cluster should use to write metrics.\nCurrently available options:\n\n* \"monitoring.googleapis.com\" - the Google Cloud Monitoring service\n* \"none\" - no metrics will be exported from the cluster",
+ "type": "string"
+ },
+ "desiredImageType": {
+ "description": "The desired image type for the node pool.\nNOTE: Set the \"desired_node_pool\" field as well.",
+ "type": "string"
+ },
+ "desiredAddonsConfig": {
+ "$ref": "AddonsConfig",
+ "description": "Configurations for the various addons available to run in the cluster."
+ },
+ "desiredNodePoolId": {
+ "description": "The node pool to be upgraded. This field is mandatory if\n\"desired_node_version\", \"desired_image_family\" or\n\"desired_node_pool_autoscaling\" is specified and there is more than one\nnode pool on the cluster.",
+ "type": "string"
+ },
+ "desiredNodeVersion": {
+ "description": "The Kubernetes version to change the nodes to (typically an\nupgrade). Use `-` to upgrade to the latest version supported by\nthe server.",
+ "type": "string"
+ },
+ "desiredMasterVersion": {
+ "description": "The Kubernetes version to change the master to. The only valid value is the\nlatest supported version. Use \"-\" to have the server automatically select\nthe latest version.",
+ "type": "string"
+ }
+ },
+ "id": "ClusterUpdate",
+ "description": "ClusterUpdate describes an update to the cluster. Exactly one update can\nbe applied to a cluster with each request, so at most one field can be\nprovided.",
+ "type": "object"
+ },
+ "SetLoggingServiceRequest": {
+ "description": "SetLoggingServiceRequest sets the logging service of a cluster.",
+ "type": "object",
+ "properties": {
+ "loggingService": {
+ "description": "The logging service the cluster should use to write metrics.\nCurrently available options:\n\n* \"logging.googleapis.com\" - the Google Cloud Logging service\n* \"none\" - no metrics will be exported from the cluster",
+ "type": "string"
+ }
+ },
+ "id": "SetLoggingServiceRequest"
},
- "desiredLocations": {
- "type": "array",
- "description": "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.",
- "items": {
- "type": "string"
- }
+ "HorizontalPodAutoscaling": {
+ "properties": {
+ "disabled": {
+ "description": "Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.\nWhen enabled, it ensures that a Heapster pod is running in the cluster,\nwhich is also used by the Cloud Monitoring service.",
+ "type": "boolean"
+ }
+ },
+ "id": "HorizontalPodAutoscaling",
+ "description": "Configuration options for the horizontal pod autoscaling feature, which\nincreases or decreases the number of replica pods a replication controller\nhas based on the resource usage of the existing pods.",
+ "type": "object"
+ },
+ "SetNodePoolManagementRequest": {
+ "description": "SetNodePoolManagementRequest sets the node management properties of a node\npool.",
+ "type": "object",
+ "properties": {
+ "management": {
+ "$ref": "NodeManagement",
+ "description": "NodeManagement configuration for the node pool."
+ }
+ },
+ "id": "SetNodePoolManagementRequest"
+ },
+ "Empty": {
+ "properties": {},
+ "id": "Empty",
+ "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
+ "type": "object"
+ },
+ "SetNodePoolAutoscalingRequest": {
+ "description": "SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.",
+ "type": "object",
+ "properties": {
+ "autoscaling": {
+ "description": "Autoscaling configuration for the node pool.",
+ "$ref": "NodePoolAutoscaling"
+ }
+ },
+ "id": "SetNodePoolAutoscalingRequest"
+ },
+ "CreateClusterRequest": {
+ "description": "CreateClusterRequest creates a cluster.",
+ "type": "object",
+ "properties": {
+ "cluster": {
+ "$ref": "Cluster",
+ "description": "A [cluster\nresource](/container-engine/reference/rest/v1/projects.zones.clusters)"
+ }
+ },
+ "id": "CreateClusterRequest"
},
- "desiredMasterVersion": {
- "type": "string",
- "description": "The Kubernetes version to change the master to. The only valid value is the latest supported version. Use \"-\" to have the server automatically select the latest version."
- }
- }
- },
- "ListOperationsResponse": {
- "id": "ListOperationsResponse",
- "type": "object",
- "description": "ListOperationsResponse is the result of ListOperationsRequest.",
- "properties": {
- "operations": {
- "type": "array",
- "description": "A list of operations in the project in the specified zone.",
- "items": {
- "$ref": "Operation"
- }
+ "ListNodePoolsResponse": {
+ "description": "ListNodePoolsResponse is the result of ListNodePoolsRequest.",
+ "type": "object",
+ "properties": {
+ "nodePools": {
+ "description": "A list of node pools for a cluster.",
+ "items": {
+ "$ref": "NodePool"
+ },
+ "type": "array"
+ }
+ },
+ "id": "ListNodePoolsResponse"
+ },
+ "CompleteIPRotationRequest": {
+ "description": "CompleteIPRotationRequest moves the cluster master back into single-IP mode.",
+ "type": "object",
+ "properties": {},
+ "id": "CompleteIPRotationRequest"
+ },
+ "StartIPRotationRequest": {
+ "description": "StartIPRotationRequest creates a new IP for the cluster and then performs\na node upgrade on each node pool to point to the new IP.",
+ "type": "object",
+ "properties": {},
+ "id": "StartIPRotationRequest"
+ },
+ "LegacyAbac": {
+ "description": "Configuration for the legacy Attribute Based Access Control authorization\nmode.",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "Whether the ABAC authorizer is enabled for this cluster. When enabled,\nidentities in the system, including service accounts, nodes, and\ncontrollers, will have statically granted permissions beyond those\nprovided by the RBAC configuration or IAM.",
+ "type": "boolean"
+ }
+ },
+ "id": "LegacyAbac"
+ },
+ "UpdateNodePoolRequest": {
+ "description": "UpdateNodePoolRequests update a node pool's image and/or version.",
+ "type": "object",
+ "properties": {
+ "nodeVersion": {
+ "description": "The Kubernetes version to change the nodes to (typically an\nupgrade). Use `-` to upgrade to the latest version supported by\nthe server.",
+ "type": "string"
+ },
+ "imageType": {
+ "description": "The desired image type for the node pool.",
+ "type": "string"
+ }
+ },
+ "id": "UpdateNodePoolRequest"
},
- "missingZones": {
- "type": "array",
- "description": "If any zones are listed here, the list of operations returned may be missing the operations from those zones.",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "CancelOperationRequest": {
- "id": "CancelOperationRequest",
- "type": "object",
- "description": "CancelOperationRequest cancels a single operation."
- },
- "Empty": {
- "id": "Empty",
- "type": "object",
- "description": "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 `{}`."
- },
- "ServerConfig": {
- "id": "ServerConfig",
- "type": "object",
- "description": "Container Engine service configuration.",
- "properties": {
- "defaultClusterVersion": {
- "type": "string",
- "description": "Version of Kubernetes the service deploys by default."
+ "SetAddonsConfigRequest": {
+ "properties": {
+ "addonsConfig": {
+ "description": "The desired configurations for the various addons available to run in the\ncluster.",
+ "$ref": "AddonsConfig"
+ }
+ },
+ "id": "SetAddonsConfigRequest",
+ "description": "SetAddonsConfigRequest sets the addons associated with the cluster.",
+ "type": "object"
+ },
+ "SetLabelsRequest": {
+ "description": "SetLabelsRequest sets the Google Cloud Platform labels on a Google Container\nEngine cluster, which will in turn set them for Google Compute Engine\nresources used by that cluster",
+ "type": "object",
+ "properties": {
+ "resourceLabels": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "The labels to set for that cluster.",
+ "type": "object"
+ },
+ "labelFingerprint": {
+ "description": "The fingerprint of the previous set of labels for this resource,\nused to detect conflicts. The fingerprint is initially generated by\nContainer Engine and changes after every request to modify or update\nlabels. You must always provide an up-to-date fingerprint hash when\nupdating or changing labels. Make a \u003ccode\u003eget()\u003c/code\u003e request to the\nresource to get the latest fingerprint.",
+ "type": "string"
+ }
+ },
+ "id": "SetLabelsRequest"
},
- "validNodeVersions": {
- "type": "array",
- "description": "List of valid node upgrade target versions.",
- "items": {
- "type": "string"
- }
+ "NodePool": {
+ "properties": {
+ "config": {
+ "description": "The node configuration of the pool.",
+ "$ref": "NodeConfig"
+ },
+ "statusMessage": {
+ "description": "[Output only] Additional information about the current status of this\nnode pool instance, if available.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name of the node pool.",
+ "type": "string"
+ },
+ "autoscaling": {
+ "$ref": "NodePoolAutoscaling",
+ "description": "Autoscaler configuration for this NodePool. Autoscaler is enabled\nonly if a valid configuration is present."
+ },
+ "management": {
+ "$ref": "NodeManagement",
+ "description": "NodeManagement configuration for this NodePool."
+ },
+ "initialNodeCount": {
+ "format": "int32",
+ "description": "The initial node count for the pool. You must ensure that your\nCompute Engine \u003ca href=\"/compute/docs/resource-quotas\"\u003eresource quota\u003c/a\u003e\nis sufficient for this number of instances. You must also have available\nfirewall and routes quota.",
+ "type": "integer"
+ },
+ "selfLink": {
+ "description": "[Output only] Server-defined URL for the resource.",
+ "type": "string"
+ },
+ "instanceGroupUrls": {
+ "description": "[Output only] The resource URLs of [instance\ngroups](/compute/docs/instance-groups/) associated with this\nnode pool.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "version": {
+ "description": "[Output only] The version of the Kubernetes of this node.",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "STATUS_UNSPECIFIED",
+ "PROVISIONING",
+ "RUNNING",
+ "RUNNING_WITH_ERROR",
+ "RECONCILING",
+ "STOPPING",
+ "ERROR"
+ ],
+ "description": "[Output only] The status of the nodes in this pool instance.",
+ "type": "string",
+ "enumDescriptions": [
+ "Not set.",
+ "The PROVISIONING state indicates the node pool is being created.",
+ "The RUNNING state indicates the node pool has been created\nand is fully usable.",
+ "The RUNNING_WITH_ERROR state indicates the node pool has been created\nand is partially usable. Some error state has occurred and some\nfunctionality may be impaired. Customer may need to reissue a request\nor trigger a new update.",
+ "The RECONCILING state indicates that some work is actively being done on\nthe node pool, such as upgrading node software. Details can\nbe found in the `statusMessage` field.",
+ "The STOPPING state indicates the node pool is being deleted.",
+ "The ERROR state indicates the node pool may be unusable. Details\ncan be found in the `statusMessage` field."
+ ]
+ }
+ },
+ "id": "NodePool",
+ "description": "NodePool contains the name and configuration for a cluster's node pool.\nNode pools are a set of nodes (i.e. VM's), with a common configuration and\nspecification, under the control of the cluster master. They may have a set\nof Kubernetes labels applied to them, which may be used to reference them\nduring pod scheduling. They may also be resized up or down, to accommodate\nthe workload.",
+ "type": "object"
+ },
+ "NodeManagement": {
+ "description": "NodeManagement defines the set of node management services turned on for the\nnode pool.",
+ "type": "object",
+ "properties": {
+ "autoRepair": {
+ "description": "A flag that specifies whether the node auto-repair is enabled for the node\npool. If enabled, the nodes in this node pool will be monitored and, if\nthey fail health checks too many times, an automatic repair action will be\ntriggered.",
+ "type": "boolean"
+ },
+ "autoUpgrade": {
+ "description": "A flag that specifies whether node auto-upgrade is enabled for the node\npool. If enabled, node auto-upgrade helps keep the nodes in your node pool\nup to date with the latest release version of Kubernetes.",
+ "type": "boolean"
+ },
+ "upgradeOptions": {
+ "description": "Specifies the Auto Upgrade knobs for the node pool.",
+ "$ref": "AutoUpgradeOptions"
+ }
+ },
+ "id": "NodeManagement"
+ },
+ "CancelOperationRequest": {
+ "description": "CancelOperationRequest cancels a single operation.",
+ "type": "object",
+ "properties": {},
+ "id": "CancelOperationRequest"
+ },
+ "SetLegacyAbacRequest": {
+ "properties": {
+ "enabled": {
+ "description": "Whether ABAC authorization will be enabled in the cluster.",
+ "type": "boolean"
+ }
+ },
+ "id": "SetLegacyAbacRequest",
+ "description": "SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for\na cluster.",
+ "type": "object"
},
- "defaultImageType": {
- "type": "string",
- "description": "Default image type."
+ "Operation": {
+ "properties": {
+ "zone": {
+ "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation\nis taking place.",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "STATUS_UNSPECIFIED",
+ "PENDING",
+ "RUNNING",
+ "DONE",
+ "ABORTING"
+ ],
+ "description": "The current status of the operation.",
+ "type": "string",
+ "enumDescriptions": [
+ "Not set.",
+ "The operation has been created.",
+ "The operation is currently running.",
+ "The operation is done, either cancelled or completed.",
+ "The operation is aborting."
+ ]
+ },
+ "name": {
+ "description": "The server-assigned ID for the operation.",
+ "type": "string"
+ },
+ "statusMessage": {
+ "description": "If an error has occurred, a textual description of the error.",
+ "type": "string"
+ },
+ "selfLink": {
+ "description": "Server-defined URL for the resource.",
+ "type": "string"
+ },
+ "targetLink": {
+ "description": "Server-defined URL for the target of the operation.",
+ "type": "string"
+ },
+ "detail": {
+ "description": "Detailed operation progress, if available.",
+ "type": "string"
+ },
+ "operationType": {
+ "enumDescriptions": [
+ "Not set.",
+ "Cluster create.",
+ "Cluster delete.",
+ "A master upgrade.",
+ "A node upgrade.",
+ "Cluster repair.",
+ "Cluster update.",
+ "Node pool create.",
+ "Node pool delete.",
+ "Set node pool management.",
+ "Automatic node pool repair.",
+ "Automatic node upgrade.",
+ "Set labels.",
+ "Set/generate master auth materials",
+ "Set node pool size.",
+ "Updates network policy for a cluster."
+ ],
+ "enum": [
+ "TYPE_UNSPECIFIED",
+ "CREATE_CLUSTER",
+ "DELETE_CLUSTER",
+ "UPGRADE_MASTER",
+ "UPGRADE_NODES",
+ "REPAIR_CLUSTER",
+ "UPDATE_CLUSTER",
+ "CREATE_NODE_POOL",
+ "DELETE_NODE_POOL",
+ "SET_NODE_POOL_MANAGEMENT",
+ "AUTO_REPAIR_NODES",
+ "AUTO_UPGRADE_NODES",
+ "SET_LABELS",
+ "SET_MASTER_AUTH",
+ "SET_NODE_POOL_SIZE",
+ "SET_NETWORK_POLICY"
+ ],
+ "description": "The operation type.",
+ "type": "string"
+ }
+ },
+ "id": "Operation",
+ "description": "This operation resource represents operations that may have happened or are\nhappening on the cluster. All fields are output only.",
+ "type": "object"
+ },
+ "AddonsConfig": {
+ "description": "Configuration for the addons that can be automatically spun up in the\ncluster, enabling additional functionality.",
+ "type": "object",
+ "properties": {
+ "horizontalPodAutoscaling": {
+ "$ref": "HorizontalPodAutoscaling",
+ "description": "Configuration for the horizontal pod autoscaling feature, which\nincreases or decreases the number of replica pods a replication controller\nhas based on the resource usage of the existing pods."
+ },
+ "httpLoadBalancing": {
+ "$ref": "HttpLoadBalancing",
+ "description": "Configuration for the HTTP (L7) load balancing controller addon, which\nmakes it easy to set up HTTP load balancers for services in a cluster."
+ }
+ },
+ "id": "AddonsConfig"
+ },
+ "SetLocationsRequest": {
+ "properties": {
+ "locations": {
+ "description": "The desired list of Google Compute Engine\n[locations](/compute/docs/zones#available) in which the cluster's nodes\nshould be located. Changing the locations a cluster is in will result\nin nodes being either created or removed from the cluster, depending on\nwhether locations are being added or removed.\n\nThis list must always include the cluster's primary zone.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "id": "SetLocationsRequest",
+ "description": "SetLocationsRequest sets the locations of the cluster.",
+ "type": "object"
+ },
+ "RollbackNodePoolUpgradeRequest": {
+ "properties": {},
+ "id": "RollbackNodePoolUpgradeRequest",
+ "description": "RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed\nNodePool upgrade. This will be an no-op if the last upgrade successfully\ncompleted.",
+ "type": "object"
+ },
+ "SetNodePoolSizeRequest": {
+ "description": "SetNodePoolSizeRequest sets the size a node\npool.",
+ "type": "object",
+ "properties": {
+ "nodeCount": {
+ "format": "int32",
+ "description": "The desired node count for the pool.",
+ "type": "integer"
+ }
+ },
+ "id": "SetNodePoolSizeRequest"
},
- "validImageTypes": {
- "type": "array",
- "description": "List of valid image types.",
- "items": {
- "type": "string"
- }
+ "UpdateClusterRequest": {
+ "description": "UpdateClusterRequest updates the settings of a cluster.",
+ "type": "object",
+ "properties": {
+ "update": {
+ "$ref": "ClusterUpdate",
+ "description": "A description of the update."
+ }
+ },
+ "id": "UpdateClusterRequest"
+ },
+ "NetworkPolicy": {
+ "description": "Configuration options for the NetworkPolicy feature.\nhttps://kubernetes.io/docs/concepts/services-networking/networkpolicies/",
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "description": "Whether network policy is enabled on the cluster.",
+ "type": "boolean"
+ },
+ "provider": {
+ "enum": [
+ "UNKNOWN",
+ "CALICO"
+ ],
+ "description": "The selected network policy provider.",
+ "type": "string",
+ "enumDescriptions": [
+ "Not set",
+ "Tigera (Calico Felix)."
+ ]
+ }
+ },
+ "id": "NetworkPolicy"
},
- "validMasterVersions": {
- "type": "array",
- "description": "List of valid master versions.",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "ListNodePoolsResponse": {
- "id": "ListNodePoolsResponse",
- "type": "object",
- "description": "ListNodePoolsResponse is the result of ListNodePoolsRequest.",
- "properties": {
- "nodePools": {
- "type": "array",
- "description": "A list of node pools for a cluster.",
- "items": {
- "$ref": "NodePool"
- }
- }
- }
- },
- "CreateNodePoolRequest": {
- "id": "CreateNodePoolRequest",
- "type": "object",
- "description": "CreateNodePoolRequest creates a node pool for a cluster.",
- "properties": {
- "nodePool": {
- "$ref": "NodePool",
- "description": "The node pool to create."
- }
- }
- },
- "RollbackNodePoolUpgradeRequest": {
- "id": "RollbackNodePoolUpgradeRequest",
- "type": "object",
- "description": "RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed."
- },
- "SetNodePoolManagementRequest": {
- "id": "SetNodePoolManagementRequest",
- "type": "object",
- "description": "SetNodePoolManagementRequest sets the node management properties of a node pool.",
- "properties": {
- "management": {
- "$ref": "NodeManagement",
- "description": "NodeManagement configuration for the node pool."
- }
- }
- }
- },
- "resources": {
- "projects": {
- "resources": {
- "zones": {
- "methods": {
- "getServerconfig": {
- "id": "container.projects.zones.getServerconfig",
- "path": "v1/projects/{projectId}/zones/{zone}/serverconfig",
- "httpMethod": "GET",
- "description": "Returns configuration info about the Container Engine service.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
- "required": true,
- "location": "path"
+ "UpdateMasterRequest": {
+ "properties": {
+ "masterVersion": {
+ "description": "The Kubernetes version to change the master to. The only valid value is the\nlatest supported version. Use \"-\" to have the server automatically select\nthe latest version.",
+ "type": "string"
+ }
+ },
+ "id": "UpdateMasterRequest",
+ "description": "UpdateMasterRequest updates the master of the cluster.",
+ "type": "object"
+ },
+ "Cluster": {
+ "properties": {
+ "network": {
+ "description": "The name of the Google Compute Engine\n[network](/compute/docs/networks-and-firewalls#networks) to which the\ncluster is connected. If left unspecified, the `default` network\nwill be used.",
+ "type": "string"
+ },
+ "labelFingerprint": {
+ "description": "The fingerprint of the set of labels for this cluster.",
+ "type": "string"
},
"zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "response": {
- "$ref": "ServerConfig"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- }
- },
- "resources": {
- "clusters": {
- "methods": {
- "list": {
- "id": "container.projects.zones.clusters.list",
- "path": "v1/projects/{projectId}/zones/{zone}/clusters",
- "httpMethod": "GET",
- "description": "Lists all clusters owned by a project in either the specified zone or all zones.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides, or \"-\" for all zones.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "response": {
- "$ref": "ListClustersResponse"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "get": {
- "id": "container.projects.zones.clusters.get",
- "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "httpMethod": "GET",
- "description": "Gets the details of a specific cluster.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster to retrieve.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "response": {
- "$ref": "Cluster"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "create": {
- "id": "container.projects.zones.clusters.create",
- "path": "v1/projects/{projectId}/zones/{zone}/clusters",
- "httpMethod": "POST",
- "description": "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.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "request": {
- "$ref": "CreateClusterRequest"
- },
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
+ "description": "[Output only] The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ "type": "string"
},
- "update": {
- "id": "container.projects.zones.clusters.update",
- "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "httpMethod": "PUT",
- "description": "Updates the settings of a specific cluster.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster to upgrade.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "request": {
- "$ref": "UpdateClusterRequest"
- },
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "delete": {
- "id": "container.projects.zones.clusters.delete",
- "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- "httpMethod": "DELETE",
- "description": "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.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
- "required": true,
- "location": "path"
+ "loggingService": {
+ "description": "The logging service the cluster should use to write logs.\nCurrently available options:\n\n* `logging.googleapis.com` - the Google Cloud Logging service.\n* `none` - no logs will be exported from the cluster.\n* if left as an empty string,`logging.googleapis.com` will be used.",
+ "type": "string"
+ },
+ "nodeIpv4CidrSize": {
+ "format": "int32",
+ "description": "[Output only] The size of the address space on each node for hosting\ncontainers. This is provisioned from within the `container_ipv4_cidr`\nrange.",
+ "type": "integer"
+ },
+ "expireTime": {
+ "description": "[Output only] The time the cluster will be automatically\ndeleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
+ "type": "string"
+ },
+ "statusMessage": {
+ "description": "[Output only] Additional information about the current status of this\ncluster, if available.",
+ "type": "string"
+ },
+ "masterAuth": {
+ "$ref": "MasterAuth",
+ "description": "The authentication information for accessing the master endpoint."
+ },
+ "currentMasterVersion": {
+ "description": "[Output only] The current software version of the master endpoint.",
+ "type": "string"
+ },
+ "nodeConfig": {
+ "$ref": "NodeConfig",
+ "description": "Parameters used in creating the cluster's nodes.\nSee `nodeConfig` for the description of its properties.\nFor requests, this field should only be used in lieu of a\n\"node_pool\" object, since this configuration (along with the\n\"initial_node_count\") will be used to create a \"NodePool\" object with an\nauto-generated name. Do not use this and a node_pool at the same time.\nFor responses, this field will be populated with the node configuration of\nthe first node pool.\n\nIf unspecified, the defaults are used."
+ },
+ "addonsConfig": {
+ "description": "Configurations for the various addons available to run in the cluster.",
+ "$ref": "AddonsConfig"
+ },
+ "status": {
+ "enum": [
+ "STATUS_UNSPECIFIED",
+ "PROVISIONING",
+ "RUNNING",
+ "RECONCILING",
+ "STOPPING",
+ "ERROR"
+ ],
+ "description": "[Output only] The current status of this cluster.",
+ "type": "string",
+ "enumDescriptions": [
+ "Not set.",
+ "The PROVISIONING state indicates the cluster is being created.",
+ "The RUNNING state indicates the cluster has been created and is fully\nusable.",
+ "The RECONCILING state indicates that some work is actively being done on\nthe cluster, such as upgrading the master or node software. Details can\nbe found in the `statusMessage` field.",
+ "The STOPPING state indicates the cluster is being deleted.",
+ "The ERROR state indicates the cluster may be unusable. Details\ncan be found in the `statusMessage` field."
+ ]
+ },
+ "currentNodeVersion": {
+ "description": "[Output only] The current version of the node software components.\nIf they are currently at multiple versions because they're in the process\nof being upgraded, this reflects the minimum version of all nodes.",
+ "type": "string"
+ },
+ "subnetwork": {
+ "description": "The name of the Google Compute Engine\n[subnetwork](/compute/docs/subnetworks) to which the\ncluster is connected.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The name of this cluster. The name must be unique within this project\nand zone, and can be up to 40 characters with the following restrictions:\n\n* Lowercase letters, numbers, and hyphens only.\n* Must start with a letter.\n* Must end with a number or a letter.",
+ "type": "string"
+ },
+ "resourceLabels": {
+ "additionalProperties": {
+ "type": "string"
},
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
- "required": true,
- "location": "path"
+ "description": "The resource labels for the cluster to use to annotate any related\nGoogle Compute Engine resources.",
+ "type": "object"
+ },
+ "initialClusterVersion": {
+ "description": "The initial Kubernetes version for this cluster. Valid versions are those\nfound in validMasterVersions returned by getServerConfig. The version can\nbe upgraded over time; such upgrades are reflected in\ncurrentMasterVersion and currentNodeVersion.",
+ "type": "string"
+ },
+ "ipAllocationPolicy": {
+ "$ref": "IPAllocationPolicy",
+ "description": "Configuration for cluster IP allocation."
+ },
+ "endpoint": {
+ "description": "[Output only] The IP address of this cluster's master endpoint.\nThe endpoint can be accessed from the internet at\n`https://username:password@endpoint/`.\n\nSee the `masterAuth` property of this resource for username and\npassword information.",
+ "type": "string"
+ },
+ "legacyAbac": {
+ "description": "Configuration for the legacy ABAC authorization mode.",
+ "$ref": "LegacyAbac"
+ },
+ "createTime": {
+ "description": "[Output only] The time the cluster was created, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
+ "type": "string"
+ },
+ "clusterIpv4Cidr": {
+ "description": "The IP address range of the container pods in this cluster, in\n[CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)\nnotation (e.g. `10.96.0.0/14`). Leave blank to have\none automatically chosen or specify a `/14` block in `10.0.0.0/8`.",
+ "type": "string"
+ },
+ "initialNodeCount": {
+ "format": "int32",
+ "description": "The number of nodes to create in this cluster. You must ensure that your\nCompute Engine \u003ca href=\"/compute/docs/resource-quotas\"\u003eresource quota\u003c/a\u003e\nis sufficient for this number of instances. You must also have available\nfirewall and routes quota.\nFor requests, this field should only be used in lieu of a\n\"node_pool\" object, since this configuration (along with the\n\"node_config\") will be used to create a \"NodePool\" object with an\nauto-generated name. Do not use this and a node_pool at the same time.",
+ "type": "integer"
+ },
+ "selfLink": {
+ "description": "[Output only] Server-defined URL for the resource.",
+ "type": "string"
+ },
+ "locations": {
+ "description": "The list of Google Compute Engine\n[locations](/compute/docs/zones#available) in which the cluster's nodes\nshould be located.",
+ "items": {
+ "type": "string"
},
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster to delete.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- }
- },
- "resources": {
+ "type": "array"
+ },
"nodePools": {
- "methods": {
- "list": {
- "id": "container.projects.zones.clusters.nodePools.list",
- "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "httpMethod": "GET",
- "description": "Lists the node pools for a cluster.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "response": {
- "$ref": "ListNodePoolsResponse"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "get": {
- "id": "container.projects.zones.clusters.nodePools.get",
- "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "httpMethod": "GET",
- "description": "Retrieves the node pool requested.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster.",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "type": "string",
- "description": "The name of the node pool.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "response": {
+ "description": "The node pools associated with this cluster.\nThis field should not be set if \"node_config\" or \"initial_node_count\" are\nspecified.",
+ "items": {
"$ref": "NodePool"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
},
- "create": {
- "id": "container.projects.zones.clusters.nodePools.create",
- "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- "httpMethod": "POST",
- "description": "Creates a node pool for a cluster.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId"
- ],
- "request": {
- "$ref": "CreateNodePoolRequest"
- },
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
+ "type": "array"
+ },
+ "instanceGroupUrls": {
+ "description": "[Output only] The resource URLs of [instance\ngroups](/compute/docs/instance-groups/) associated with this\ncluster.",
+ "items": {
+ "type": "string"
},
- "delete": {
- "id": "container.projects.zones.clusters.nodePools.delete",
- "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
- "httpMethod": "DELETE",
- "description": "Deletes a node pool from a cluster.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster.",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "type": "string",
- "description": "The name of the node pool to delete.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
+ "type": "array"
+ },
+ "networkPolicy": {
+ "$ref": "NetworkPolicy",
+ "description": "Configuration options for the NetworkPolicy feature."
+ },
+ "servicesIpv4Cidr": {
+ "description": "[Output only] The IP address range of the Kubernetes services in\nthis cluster, in\n[CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)\nnotation (e.g. `1.2.3.4/29`). Service addresses are\ntypically put in the last `/16` from the container CIDR.",
+ "type": "string"
+ },
+ "enableKubernetesAlpha": {
+ "description": "Kubernetes alpha features are enabled on this cluster. This includes alpha\nAPI groups (e.g. v1alpha1) and features that may not be production ready in\nthe kubernetes version of the master and nodes.\nThe cluster has no SLA for uptime and master/node upgrades are disabled.\nAlpha enabled clusters are automatically deleted thirty days after\ncreation.",
+ "type": "boolean"
+ },
+ "description": {
+ "description": "An optional description of this cluster.",
+ "type": "string"
+ },
+ "currentNodeCount": {
+ "format": "int32",
+ "description": "[Output only] The number of nodes currently in the cluster.",
+ "type": "integer"
+ },
+ "monitoringService": {
+ "description": "The monitoring service the cluster should use to write metrics.\nCurrently available options:\n\n* `monitoring.googleapis.com` - the Google Cloud Monitoring service.\n* `none` - no metrics will be exported from the cluster.\n* if left as an empty string, `monitoring.googleapis.com` will be used.",
+ "type": "string"
+ }
+ },
+ "id": "Cluster",
+ "description": "A Google Container Engine cluster.",
+ "type": "object"
+ },
+ "CreateNodePoolRequest": {
+ "description": "CreateNodePoolRequest creates a node pool for a cluster.",
+ "type": "object",
+ "properties": {
+ "nodePool": {
+ "$ref": "NodePool",
+ "description": "The node pool to create."
+ }
+ },
+ "id": "CreateNodePoolRequest"
+ },
+ "ListOperationsResponse": {
+ "properties": {
+ "missingZones": {
+ "description": "If any zones are listed here, the list of operations returned\nmay be missing the operations from those zones.",
+ "items": {
+ "type": "string"
},
- "rollback": {
- "id": "container.projects.zones.clusters.nodePools.rollback",
- "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
- "httpMethod": "POST",
- "description": "Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster to rollback.",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "type": "string",
- "description": "The name of the node pool to rollback.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "request": {
- "$ref": "RollbackNodePoolUpgradeRequest"
- },
- "response": {
+ "type": "array"
+ },
+ "operations": {
+ "description": "A list of operations in the project in the specified zone.",
+ "items": {
"$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
},
- "setManagement": {
- "id": "container.projects.zones.clusters.nodePools.setManagement",
- "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
- "httpMethod": "POST",
- "description": "Sets the NodeManagement options for a node pool.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
- "required": true,
- "location": "path"
- },
- "clusterId": {
- "type": "string",
- "description": "The name of the cluster to update.",
- "required": true,
- "location": "path"
- },
- "nodePoolId": {
- "type": "string",
- "description": "The name of the node pool to update.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "clusterId",
- "nodePoolId"
- ],
- "request": {
- "$ref": "SetNodePoolManagementRequest"
- },
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- }
- }
+ "type": "array"
}
- }
},
- "operations": {
- "methods": {
- "list": {
- "id": "container.projects.zones.operations.list",
- "path": "v1/projects/{projectId}/zones/{zone}/operations",
- "httpMethod": "GET",
- "description": "Lists all operations in a project in a specific zone or all zones.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for, or `-` for all zones.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone"
- ],
- "response": {
- "$ref": "ListOperationsResponse"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "get": {
- "id": "container.projects.zones.operations.get",
- "path": "v1/projects/{projectId}/zones/{zone}/operations/{operationId}",
- "httpMethod": "GET",
- "description": "Gets the specified operation.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
- "required": true,
- "location": "path"
- },
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
- "required": true,
- "location": "path"
+ "id": "ListOperationsResponse",
+ "description": "ListOperationsResponse is the result of ListOperationsRequest.",
+ "type": "object"
+ },
+ "SetMonitoringServiceRequest": {
+ "properties": {
+ "monitoringService": {
+ "description": "The monitoring service the cluster should use to write metrics.\nCurrently available options:\n\n* \"monitoring.googleapis.com\" - the Google Cloud Monitoring service\n* \"none\" - no metrics will be exported from the cluster",
+ "type": "string"
+ }
+ },
+ "id": "SetMonitoringServiceRequest",
+ "description": "SetMonitoringServiceRequest sets the monitoring service of a cluster.",
+ "type": "object"
+ },
+ "ServerConfig": {
+ "properties": {
+ "validMasterVersions": {
+ "description": "List of valid master versions.",
+ "items": {
+ "type": "string"
},
- "operationId": {
- "type": "string",
- "description": "The server-assigned `name` of the operation.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "operationId"
- ],
- "response": {
- "$ref": "Operation"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
- },
- "cancel": {
- "id": "container.projects.zones.operations.cancel",
- "path": "v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
- "httpMethod": "POST",
- "description": "Cancels the specified operation.",
- "parameters": {
- "projectId": {
- "type": "string",
- "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
- "required": true,
- "location": "path"
+ "type": "array"
+ },
+ "defaultImageType": {
+ "description": "Default image type.",
+ "type": "string"
+ },
+ "defaultClusterVersion": {
+ "description": "Version of Kubernetes the service deploys by default.",
+ "type": "string"
+ },
+ "validImageTypes": {
+ "description": "List of valid image types.",
+ "items": {
+ "type": "string"
},
- "zone": {
- "type": "string",
- "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the operation resides.",
- "required": true,
- "location": "path"
+ "type": "array"
+ },
+ "validNodeVersions": {
+ "description": "List of valid node upgrade target versions.",
+ "items": {
+ "type": "string"
},
- "operationId": {
- "type": "string",
- "description": "The server-assigned `name` of the operation.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "projectId",
- "zone",
- "operationId"
- ],
- "request": {
- "$ref": "CancelOperationRequest"
- },
- "response": {
- "$ref": "Empty"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform"
- ]
+ "type": "array"
+ }
+ },
+ "id": "ServerConfig",
+ "description": "Container Engine service configuration.",
+ "type": "object"
+ }
+ },
+ "icons": {
+ "x16": "http://www.google.com/images/icons/product/search-16.gif",
+ "x32": "http://www.google.com/images/icons/product/search-32.gif"
+ },
+ "protocol": "rest",
+ "version": "v1",
+ "baseUrl": "https://container.googleapis.com/",
+ "auth": {
+ "oauth2": {
+ "scopes": {
+ "https://www.googleapis.com/auth/cloud-platform": {
+ "description": "View and manage your data across Google Cloud Platform services"
}
- }
}
- }
}
- }
- }
- }
+ },
+ "servicePath": "",
+ "description": "The Google Container Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
+ "kind": "discovery#restDescription"
}
diff --git a/vendor/google.golang.org/api/container/v1/container-gen.go b/vendor/google.golang.org/api/container/v1/container-gen.go
index c6e08354a9c..23773ab98b4 100644
--- a/vendor/google.golang.org/api/container/v1/container-gen.go
+++ b/vendor/google.golang.org/api/container/v1/container-gen.go
@@ -61,10 +61,9 @@ func New(client *http.Client) (*Service, error) {
}
type Service struct {
- client *http.Client
- BasePath string // API endpoint base URL
- UserAgent string // optional additional User-Agent fragment
- GoogleClientHeaderElement string // client header fragment, for Google use only
+ client *http.Client
+ BasePath string // API endpoint base URL
+ UserAgent string // optional additional User-Agent fragment
Projects *ProjectsService
}
@@ -76,10 +75,6 @@ func (s *Service) userAgent() string {
return googleapi.UserAgent + " " + s.UserAgent
}
-func (s *Service) clientHeader() string {
- return gensupport.GoogleClientHeader("20170210", s.GoogleClientHeaderElement)
-}
-
func NewProjectsService(s *Service) *ProjectsService {
rs := &ProjectsService{s: s}
rs.Zones = NewProjectsZonesService(s)
@@ -138,17 +133,20 @@ type ProjectsZonesOperationsService struct {
}
// AddonsConfig: Configuration for the addons that can be automatically
-// spun up in the cluster, enabling additional functionality.
+// spun up in the
+// cluster, enabling additional functionality.
type AddonsConfig struct {
// HorizontalPodAutoscaling: 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.
+ // 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 `json:"horizontalPodAutoscaling,omitempty"`
// HttpLoadBalancing: Configuration for the HTTP (L7) load balancing
- // controller addon, which makes it easy to set up HTTP load balancers
- // for services in a cluster.
+ // controller addon, which
+ // makes it easy to set up HTTP load balancers for services in a
+ // cluster.
HttpLoadBalancing *HttpLoadBalancing `json:"httpLoadBalancing,omitempty"`
// ForceSendFields is a list of field names (e.g.
@@ -177,16 +175,19 @@ func (s *AddonsConfig) MarshalJSON() ([]byte, error) {
}
// AutoUpgradeOptions: AutoUpgradeOptions defines the set of options for
-// the user to control how the Auto Upgrades will proceed.
+// the user to control how
+// the Auto Upgrades will proceed.
type AutoUpgradeOptions struct {
// AutoUpgradeStartTime: [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.
+ // are about to commence
+ // with the approximate start time for the upgrades,
+ // in
+ // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
AutoUpgradeStartTime string `json:"autoUpgradeStartTime,omitempty"`
// Description: [Output only] This field is set when upgrades are about
- // to commence with the description of the upgrade.
+ // to commence
+ // with the description of the upgrade.
Description string `json:"description,omitempty"`
// ForceSendFields is a list of field names (e.g.
@@ -219,6 +220,37 @@ func (s *AutoUpgradeOptions) MarshalJSON() ([]byte, error) {
type CancelOperationRequest struct {
}
+// ClientCertificateConfig: Configuration for client certificates on the
+// cluster.
+type ClientCertificateConfig struct {
+ // IssueClientCertificate: Issue a client certificate.
+ IssueClientCertificate bool `json:"issueClientCertificate,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g.
+ // "IssueClientCertificate") to unconditionally include in API requests.
+ // By default, fields with empty values are omitted from API requests.
+ // However, any non-pointer, non-interface field appearing in
+ // ForceSendFields will be sent to the server regardless of whether the
+ // field is empty or not. This may be used to include empty fields in
+ // Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "IssueClientCertificate")
+ // to include in API requests with the JSON null value. By default,
+ // fields with empty values are omitted from API requests. However, any
+ // field with an empty value appearing in NullFields will be sent to the
+ // server as null. It is an error if a field in this list has a
+ // non-empty value. This may be used to include null fields in Patch
+ // requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *ClientCertificateConfig) MarshalJSON() ([]byte, error) {
+ type noMethod ClientCertificateConfig
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
// Cluster: A Google Container Engine cluster.
type Cluster struct {
// AddonsConfig: Configurations for the various addons available to run
@@ -226,13 +258,16 @@ type Cluster struct {
AddonsConfig *AddonsConfig `json:"addonsConfig,omitempty"`
// ClusterIpv4Cidr: The IP address range of the container pods in this
- // cluster, in
+ // 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`.
ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
- // CreateTime: [Output only] The time the cluster was created, in
+ // CreateTime: [Output only] The time the cluster was created,
+ // in
// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
CreateTime string `json:"createTime,omitempty"`
@@ -245,62 +280,99 @@ type Cluster struct {
CurrentNodeCount int64 `json:"currentNodeCount,omitempty"`
// CurrentNodeVersion: [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.
+ // 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.
CurrentNodeVersion string `json:"currentNodeVersion,omitempty"`
// Description: An optional description of this cluster.
Description string `json:"description,omitempty"`
// EnableKubernetesAlpha: 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.
+ // 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.
EnableKubernetesAlpha bool `json:"enableKubernetesAlpha,omitempty"`
// Endpoint: [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.
+ // 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.
Endpoint string `json:"endpoint,omitempty"`
- // ExpireTime: [Output only] The time the cluster will be automatically
+ // ExpireTime: [Output only] The time the cluster will be
+ // automatically
// deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
// format.
ExpireTime string `json:"expireTime,omitempty"`
- // InitialClusterVersion: [Output only] The software version of the
- // master endpoint and kubelets used in the cluster when it was first
- // created. The version can be upgraded over time.
+ // InitialClusterVersion: The initial Kubernetes version for this
+ // cluster. Valid versions are those
+ // found in validMasterVersions returned by getServerConfig. The
+ // version can
+ // be upgraded over time; such upgrades are reflected
+ // in
+ // currentMasterVersion and currentNodeVersion.
InitialClusterVersion string `json:"initialClusterVersion,omitempty"`
// InitialNodeCount: 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
+ // 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.
InitialNodeCount int64 `json:"initialNodeCount,omitempty"`
- // InstanceGroupUrls: [Output only] The resource URLs of [instance
- // groups](/compute/docs/instance-groups/) associated with this cluster.
+ // InstanceGroupUrls: [Output only] The resource URLs of
+ // [instance
+ // groups](/compute/docs/instance-groups/) associated with this
+ // cluster.
InstanceGroupUrls []string `json:"instanceGroupUrls,omitempty"`
- // Locations: The list of Google Compute Engine
+ // IpAllocationPolicy: Configuration for cluster IP allocation.
+ IpAllocationPolicy *IPAllocationPolicy `json:"ipAllocationPolicy,omitempty"`
+
+ // LabelFingerprint: The fingerprint of the set of labels for this
+ // cluster.
+ LabelFingerprint string `json:"labelFingerprint,omitempty"`
+
+ // LegacyAbac: Configuration for the legacy ABAC authorization mode.
+ LegacyAbac *LegacyAbac `json:"legacyAbac,omitempty"`
+
+ // Locations: The list of Google Compute
+ // Engine
// [locations](/compute/docs/zones#available) in which the cluster's
- // nodes should be located.
+ // nodes
+ // should be located.
Locations []string `json:"locations,omitempty"`
// LoggingService: 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.
+ // 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.
LoggingService string `json:"loggingService,omitempty"`
// MasterAuth: The authentication information for accessing the master
@@ -308,76 +380,120 @@ type Cluster struct {
MasterAuth *MasterAuth `json:"masterAuth,omitempty"`
// MonitoringService: 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.
+ // 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.
MonitoringService string `json:"monitoringService,omitempty"`
// Name: 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.
+ // 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.
Name string `json:"name,omitempty"`
- // Network: 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.
+ // Network: 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.
Network string `json:"network,omitempty"`
- // NodeConfig: 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.
+ // NetworkPolicy: Configuration options for the NetworkPolicy feature.
+ NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"`
+
+ // NodeConfig: 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.
NodeConfig *NodeConfig `json:"nodeConfig,omitempty"`
// NodeIpv4CidrSize: [Output only] The size of the address space on each
- // node for hosting containers. This is provisioned from within the
- // `container_ipv4_cidr` range.
+ // node for hosting
+ // containers. This is provisioned from within the
+ // `container_ipv4_cidr`
+ // range.
NodeIpv4CidrSize int64 `json:"nodeIpv4CidrSize,omitempty"`
- // NodePools: The node pools associated with this cluster. This field
- // should not be set if "node_config" or "initial_node_count" are
+ // NodePools: The node pools associated with this cluster.
+ // This field should not be set if "node_config" or "initial_node_count"
+ // are
// specified.
NodePools []*NodePool `json:"nodePools,omitempty"`
+ // ResourceLabels: The resource labels for the cluster to use to
+ // annotate any related
+ // Google Compute Engine resources.
+ ResourceLabels map[string]string `json:"resourceLabels,omitempty"`
+
// SelfLink: [Output only] Server-defined URL for the resource.
SelfLink string `json:"selfLink,omitempty"`
// ServicesIpv4Cidr: [Output only] The IP address range of the
- // Kubernetes services in this cluster, in
+ // 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.
ServicesIpv4Cidr string `json:"servicesIpv4Cidr,omitempty"`
// Status: [Output only] The current status of this cluster.
//
// Possible values:
- // "STATUS_UNSPECIFIED"
- // "PROVISIONING"
- // "RUNNING"
- // "RECONCILING"
- // "STOPPING"
- // "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.
Status string `json:"status,omitempty"`
// StatusMessage: [Output only] Additional information about the current
- // status of this cluster, if available.
+ // status of this
+ // cluster, if available.
StatusMessage string `json:"statusMessage,omitempty"`
- // Subnetwork: The name of the Google Compute Engine
- // [subnetwork](/compute/docs/subnetworks) to which the cluster is
- // connected.
+ // Subnetwork: The name of the Google Compute
+ // Engine
+ // [subnetwork](/compute/docs/subnetworks) to which the
+ // cluster is connected.
Subnetwork string `json:"subnetwork,omitempty"`
- // Zone: [Output only] The name of the Google Compute Engine
- // [zone](/compute/docs/zones#available) in which the cluster resides.
+ // Zone: [Output only] The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the cluster
+ // resides.
Zone string `json:"zone,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -408,51 +524,67 @@ func (s *Cluster) MarshalJSON() ([]byte, error) {
}
// ClusterUpdate: 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.
+// Exactly one update can
+// be applied to a cluster with each request, so at most one field can
+// be
+// provided.
type ClusterUpdate struct {
// DesiredAddonsConfig: Configurations for the various addons available
// to run in the cluster.
DesiredAddonsConfig *AddonsConfig `json:"desiredAddonsConfig,omitempty"`
- // DesiredImageType: The desired image type for the node pool. NOTE: Set
- // the "desired_node_pool" field as well.
+ // DesiredImageType: The desired image type for the node pool.
+ // NOTE: Set the "desired_node_pool" field as well.
DesiredImageType string `json:"desiredImageType,omitempty"`
- // DesiredLocations: The desired list of Google Compute Engine
+ // DesiredLocations: 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.
+ // 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.
DesiredLocations []string `json:"desiredLocations,omitempty"`
// DesiredMasterVersion: The Kubernetes version to change the master to.
- // The only valid value is the latest supported version. Use "-" to have
- // the server automatically select the latest version.
+ // The only valid value is the
+ // latest supported version. Use "-" to have the server automatically
+ // select
+ // the latest version.
DesiredMasterVersion string `json:"desiredMasterVersion,omitempty"`
// DesiredMonitoringService: 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
+ // use to write metrics.
+ // Currently available options:
+ //
+ // * "monitoring.googleapis.com" - the Google Cloud Monitoring service
+ // * "none" - no metrics will be exported from the cluster
DesiredMonitoringService string `json:"desiredMonitoringService,omitempty"`
// DesiredNodePoolAutoscaling: 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.
+ // 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.
DesiredNodePoolAutoscaling *NodePoolAutoscaling `json:"desiredNodePoolAutoscaling,omitempty"`
// DesiredNodePoolId: The node pool to be upgraded. This field is
- // mandatory if "desired_node_version", "desired_image_family" or
+ // mandatory if
+ // "desired_node_version", "desired_image_family"
+ // or
// "desired_node_pool_autoscaling" is specified and there is more than
- // one node pool on the cluster.
+ // one
+ // node pool on the cluster.
DesiredNodePoolId string `json:"desiredNodePoolId,omitempty"`
// DesiredNodeVersion: The Kubernetes version to change the nodes to
- // (typically an upgrade). Use `-` to upgrade to the latest version
- // supported by the server.
+ // (typically an
+ // upgrade). Use `-` to upgrade to the latest version supported by
+ // the server.
DesiredNodeVersion string `json:"desiredNodeVersion,omitempty"`
// ForceSendFields is a list of field names (e.g. "DesiredAddonsConfig")
@@ -479,10 +611,17 @@ func (s *ClusterUpdate) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
+// CompleteIPRotationRequest: CompleteIPRotationRequest moves the
+// cluster master back into single-IP mode.
+type CompleteIPRotationRequest struct {
+}
+
// CreateClusterRequest: CreateClusterRequest creates a cluster.
type CreateClusterRequest struct {
- // Cluster: A [cluster
- // resource](/container-engine/reference/rest/v1/projects.zones.clusters)
+ // Cluster: A
+ // [cluster
+ // resource](/container-engine/reference/rest/v1/projects.zones.
+ // clusters)
Cluster *Cluster `json:"cluster,omitempty"`
// ForceSendFields is a list of field names (e.g. "Cluster") to
@@ -538,11 +677,17 @@ func (s *CreateNodePoolRequest) MarshalJSON() ([]byte, error) {
}
// Empty: 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 `{}`.
+// 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 `{}`.
type Empty struct {
// ServerResponse contains the HTTP response code and headers from the
// server.
@@ -550,14 +695,16 @@ type Empty struct {
}
// HorizontalPodAutoscaling: Configuration options 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.
+// 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.
type HorizontalPodAutoscaling struct {
// Disabled: Whether the Horizontal Pod Autoscaling feature is enabled
- // in the cluster. When enabled, it ensures that a Heapster pod is
- // running in the cluster, which is also used by the Cloud Monitoring
- // service.
+ // in the cluster.
+ // When enabled, it ensures that a Heapster pod is running in the
+ // cluster,
+ // which is also used by the Cloud Monitoring service.
Disabled bool `json:"disabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Disabled") to
@@ -584,12 +731,15 @@ func (s *HorizontalPodAutoscaling) MarshalJSON() ([]byte, error) {
}
// HttpLoadBalancing: Configuration options for the HTTP (L7) load
-// balancing controller addon, which makes it easy to set up HTTP load
-// balancers for services in a cluster.
+// balancing controller addon,
+// which makes it easy to set up HTTP load balancers for services in a
+// cluster.
type HttpLoadBalancing struct {
// Disabled: 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.
+ // the cluster.
+ // When enabled, it runs a small pod in the cluster that manages the
+ // load
+ // balancers.
Disabled bool `json:"disabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Disabled") to
@@ -615,15 +765,165 @@ func (s *HttpLoadBalancing) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
+// IPAllocationPolicy: Configuration for controlling how IPs are
+// allocated in the cluster.
+type IPAllocationPolicy struct {
+ // ClusterIpv4Cidr: The IP address range for the cluster pod IPs. If
+ // this field is set, then
+ // `cluster.cluster_ipv4_cidr` must be left blank.
+ //
+ // This field is only applicable when `use_ip_aliases` is true.
+ //
+ // Set to blank to have a range will be chosen with the default
+ // size.
+ //
+ // Set to /netmask (e.g. `/14`) to have a range be chosen with a
+ // specific
+ // netmask.
+ //
+ // Set to a
+ // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+ // no
+ // tation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks
+ // (e.g.
+ // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific
+ // range
+ // to use.
+ ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
+
+ // CreateSubnetwork: Whether a new subnetwork will be created
+ // automatically for the cluster.
+ //
+ // This field is only applicable when `use_ip_aliases` is true.
+ CreateSubnetwork bool `json:"createSubnetwork,omitempty"`
+
+ // NodeIpv4Cidr: The IP address range of the instance IPs in this
+ // cluster.
+ //
+ // This is applicable only if `create_subnetwork` is true.
+ //
+ // Set to blank to have a range will be chosen with the default
+ // size.
+ //
+ // Set to /netmask (e.g. `/14`) to have a range be chosen with a
+ // specific
+ // netmask.
+ //
+ // Set to a
+ // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+ // no
+ // tation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks
+ // (e.g.
+ // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific
+ // range
+ // to use.
+ NodeIpv4Cidr string `json:"nodeIpv4Cidr,omitempty"`
+
+ // ServicesIpv4Cidr: The IP address range of the services IPs in this
+ // cluster. If blank, a range
+ // will be automatically chosen with the default size.
+ //
+ // This field is only applicable when `use_ip_aliases` is true.
+ //
+ // Set to blank to have a range will be chosen with the default
+ // size.
+ //
+ // Set to /netmask (e.g. `/14`) to have a range be chosen with a
+ // specific
+ // netmask.
+ //
+ // Set to a
+ // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+ // no
+ // tation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks
+ // (e.g.
+ // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific
+ // range
+ // to use.
+ ServicesIpv4Cidr string `json:"servicesIpv4Cidr,omitempty"`
+
+ // SubnetworkName: A custom subnetwork name to be used if
+ // `create_subnetwork` is true. If
+ // this field is empty, then an automatic name will choosen for the
+ // new
+ // subnetwork.
+ SubnetworkName string `json:"subnetworkName,omitempty"`
+
+ // UseIpAliases: Whether alias IPs will be used for pod IPs in the
+ // cluster.
+ UseIpAliases bool `json:"useIpAliases,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ClusterIpv4Cidr") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "ClusterIpv4Cidr") to
+ // include in API requests with the JSON null value. By default, fields
+ // with empty values are omitted from API requests. However, any field
+ // with an empty value appearing in NullFields will be sent to the
+ // server as null. It is an error if a field in this list has a
+ // non-empty value. This may be used to include null fields in Patch
+ // requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *IPAllocationPolicy) MarshalJSON() ([]byte, error) {
+ type noMethod IPAllocationPolicy
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// LegacyAbac: Configuration for the legacy Attribute Based Access
+// Control authorization
+// mode.
+type LegacyAbac struct {
+ // Enabled: 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.
+ Enabled bool `json:"enabled,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Enabled") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "Enabled") to include in
+ // API requests with the JSON null value. By default, fields with empty
+ // values are omitted from API requests. However, any field with an
+ // empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *LegacyAbac) MarshalJSON() ([]byte, error) {
+ type noMethod LegacyAbac
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
// ListClustersResponse: ListClustersResponse is the result of
// ListClustersRequest.
type ListClustersResponse struct {
- // Clusters: A list of clusters in the project in the specified zone, or
+ // Clusters: A list of clusters in the project in the specified zone,
+ // or
// across all ones.
Clusters []*Cluster `json:"clusters,omitempty"`
// MissingZones: If any zones are listed here, the list of clusters
- // returned may be missing those zones.
+ // returned
+ // may be missing those zones.
MissingZones []string `json:"missingZones,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -690,7 +990,8 @@ func (s *ListNodePoolsResponse) MarshalJSON() ([]byte, error) {
// ListOperationsRequest.
type ListOperationsResponse struct {
// MissingZones: If any zones are listed here, the list of operations
- // returned may be missing the operations from those zones.
+ // returned
+ // may be missing the operations from those zones.
MissingZones []string `json:"missingZones,omitempty"`
// Operations: A list of operations in the project in the specified
@@ -725,28 +1026,45 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
}
// MasterAuth: The authentication information for accessing the master
-// endpoint. Authentication can be done using HTTP basic auth or using
-// client certificates.
+// endpoint.
+// Authentication can be done using HTTP basic auth or using
+// client
+// certificates.
type MasterAuth struct {
// ClientCertificate: [Output only] Base64-encoded public certificate
- // used by clients to authenticate to the cluster endpoint.
+ // used by clients to
+ // authenticate to the cluster endpoint.
ClientCertificate string `json:"clientCertificate,omitempty"`
+ // ClientCertificateConfig: Configuration for client certificate
+ // authentication on the cluster. If no
+ // configuration is specified, a client certificate is issued.
+ ClientCertificateConfig *ClientCertificateConfig `json:"clientCertificateConfig,omitempty"`
+
// ClientKey: [Output only] Base64-encoded private key used by clients
- // to authenticate to the cluster endpoint.
+ // to authenticate
+ // to the cluster endpoint.
ClientKey string `json:"clientKey,omitempty"`
// ClusterCaCertificate: [Output only] Base64-encoded public certificate
- // that is the root of trust for the cluster.
+ // that is the root of
+ // trust for the cluster.
ClusterCaCertificate string `json:"clusterCaCertificate,omitempty"`
// Password: The password to use for HTTP basic authentication to the
- // master endpoint. Because the master endpoint is open to the Internet,
- // you should create a strong password.
+ // master endpoint.
+ // Because the master endpoint is open to the Internet, you should
+ // create a
+ // strong password. If a password is provided for cluster creation,
+ // username
+ // must be non-empty.
Password string `json:"password,omitempty"`
// Username: The username to use for HTTP basic authentication to the
// master endpoint.
+ // For clusters v1.6.0 and later, you can disable basic authentication
+ // by
+ // providing an empty username.
Username string `json:"username,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClientCertificate")
@@ -773,78 +1091,159 @@ func (s *MasterAuth) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
+// NetworkPolicy: Configuration options for the NetworkPolicy
+// feature.
+// https://kubernetes.io/docs/concepts/services-networking/netwo
+// rkpolicies/
+type NetworkPolicy struct {
+ // Enabled: Whether network policy is enabled on the cluster.
+ Enabled bool `json:"enabled,omitempty"`
+
+ // Provider: The selected network policy provider.
+ //
+ // Possible values:
+ // "UNKNOWN" - Not set
+ // "CALICO" - Tigera (Calico Felix).
+ Provider string `json:"provider,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Enabled") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "Enabled") to include in
+ // API requests with the JSON null value. By default, fields with empty
+ // values are omitted from API requests. However, any field with an
+ // empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *NetworkPolicy) MarshalJSON() ([]byte, error) {
+ type noMethod NetworkPolicy
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
// NodeConfig: Parameters that describe the nodes in a cluster.
type NodeConfig struct {
- // DiskSizeGb: 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.
+ // DiskSizeGb: 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.
DiskSizeGb int64 `json:"diskSizeGb,omitempty"`
// ImageType: The image type to use for this node. Note that for a given
- // image type, the latest version of it will be used.
+ // image type,
+ // the latest version of it will be used.
ImageType string `json:"imageType,omitempty"`
// Labels: 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: http://kubernetes.io/v1.1/docs/user-guide/labels.html
+ // 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:
+ // http://kubernetes.io/v1.1/docs/user-guide/labels.html
Labels map[string]string `json:"labels,omitempty"`
// LocalSsdCount: 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.
+ // 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_l
+ // imits
+ // for more information.
LocalSsdCount int64 `json:"localSsdCount,omitempty"`
- // MachineType: 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`.
+ // MachineType: 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`.
MachineType string `json:"machineType,omitempty"`
// Metadata: 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.
+ // 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.
Metadata map[string]string `json:"metadata,omitempty"`
// OauthScopes: 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.
+ // 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.
OauthScopes []string `json:"oauthScopes,omitempty"`
// Preemptible: Whether the nodes are created as preemptible VM
- // instances. See:
- // https://cloud.google.com/compute/docs/instances/preemptible for more
- // inforamtion about preemptible VM instances.
+ // instances.
+ // See:
+ // https://cloud.google.com/compute/docs/instances/preemptible for
+ // more
+ // information about preemptible VM instances.
Preemptible bool `json:"preemptible,omitempty"`
// ServiceAccount: 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.
+ // by the node VMs. If
+ // no Service Account is specified, the "default" service account is
+ // used.
ServiceAccount string `json:"serviceAccount,omitempty"`
// Tags: 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.
+ // 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.
Tags []string `json:"tags,omitempty"`
// ForceSendFields is a list of field names (e.g. "DiskSizeGb") to
@@ -871,15 +1270,29 @@ func (s *NodeConfig) MarshalJSON() ([]byte, error) {
}
// NodeManagement: NodeManagement defines the set of node management
-// services turned on for the node pool.
+// services turned on for the
+// node pool.
type NodeManagement struct {
- // AutoUpgrade: Whether the nodes will be automatically upgraded.
+ // AutoRepair: 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.
+ AutoRepair bool `json:"autoRepair,omitempty"`
+
+ // AutoUpgrade: 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.
AutoUpgrade bool `json:"autoUpgrade,omitempty"`
// UpgradeOptions: Specifies the Auto Upgrade knobs for the node pool.
UpgradeOptions *AutoUpgradeOptions `json:"upgradeOptions,omitempty"`
- // ForceSendFields is a list of field names (e.g. "AutoUpgrade") to
+ // ForceSendFields is a list of field names (e.g. "AutoRepair") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -887,10 +1300,10 @@ type NodeManagement struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
- // NullFields is a list of field names (e.g. "AutoUpgrade") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
+ // NullFields is a list of field names (e.g. "AutoRepair") to include in
+ // API requests with the JSON null value. By default, fields with empty
+ // values are omitted from API requests. However, any field with an
+ // empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
@@ -903,28 +1316,38 @@ func (s *NodeManagement) MarshalJSON() ([]byte, error) {
}
// NodePool: 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 the workload.
+// 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
+// the workload.
type NodePool struct {
// Autoscaling: Autoscaler configuration for this NodePool. Autoscaler
- // is enabled only if a valid configuration is present.
+ // is enabled
+ // only if a valid configuration is present.
Autoscaling *NodePoolAutoscaling `json:"autoscaling,omitempty"`
// Config: The node configuration of the pool.
Config *NodeConfig `json:"config,omitempty"`
// InitialNodeCount: 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.
+ // ensure that your
+ // Compute Engine resource
+ // quota
+ // is sufficient for this number of instances. You must also have
+ // available
+ // firewall and routes quota.
InitialNodeCount int64 `json:"initialNodeCount,omitempty"`
- // InstanceGroupUrls: [Output only] The resource URLs of [instance
- // groups](/compute/docs/instance-groups/) associated with this node
- // pool.
+ // InstanceGroupUrls: [Output only] The resource URLs of
+ // [instance
+ // groups](/compute/docs/instance-groups/) associated with this
+ // node pool.
InstanceGroupUrls []string `json:"instanceGroupUrls,omitempty"`
// Management: NodeManagement configuration for this NodePool.
@@ -939,17 +1362,33 @@ type NodePool struct {
// Status: [Output only] The status of the nodes in this pool instance.
//
// Possible values:
- // "STATUS_UNSPECIFIED"
- // "PROVISIONING"
- // "RUNNING"
- // "RUNNING_WITH_ERROR"
- // "RECONCILING"
- // "STOPPING"
- // "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.
Status string `json:"status,omitempty"`
// StatusMessage: [Output only] Additional information about the current
- // status of this node pool instance, if available.
+ // status of this
+ // node pool instance, if available.
StatusMessage string `json:"statusMessage,omitempty"`
// Version: [Output only] The version of the Kubernetes of this node.
@@ -983,18 +1422,20 @@ func (s *NodePool) MarshalJSON() ([]byte, error) {
}
// NodePoolAutoscaling: NodePoolAutoscaling contains information
-// required by cluster autoscaler to adjust the size of the node pool to
-// the current cluster usage.
+// required by cluster autoscaler to
+// adjust the size of the node pool to the current cluster usage.
type NodePoolAutoscaling struct {
// Enabled: Is autoscaling enabled for this node pool.
Enabled bool `json:"enabled,omitempty"`
// MaxNodeCount: Maximum number of nodes in the NodePool. Must be >=
- // min_node_count. There has to enough quota to scale up the cluster.
+ // min_node_count. There
+ // has to enough quota to scale up the cluster.
MaxNodeCount int64 `json:"maxNodeCount,omitempty"`
// MinNodeCount: Minimum number of nodes in the NodePool. Must be >= 1
- // and <= max_node_count.
+ // and <=
+ // max_node_count.
MinNodeCount int64 `json:"minNodeCount,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") to
@@ -1021,8 +1462,8 @@ func (s *NodePoolAutoscaling) MarshalJSON() ([]byte, error) {
}
// Operation: This operation resource represents operations that may
-// have happened or are happening on the cluster. All fields are output
-// only.
+// have happened or are
+// happening on the cluster. All fields are output only.
type Operation struct {
// Detail: Detailed operation progress, if available.
Detail string `json:"detail,omitempty"`
@@ -1033,16 +1474,22 @@ type Operation struct {
// OperationType: The operation type.
//
// Possible values:
- // "TYPE_UNSPECIFIED"
- // "CREATE_CLUSTER"
- // "DELETE_CLUSTER"
- // "UPGRADE_MASTER"
- // "UPGRADE_NODES"
- // "REPAIR_CLUSTER"
- // "UPDATE_CLUSTER"
- // "CREATE_NODE_POOL"
- // "DELETE_NODE_POOL"
- // "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
+ // "SET_NODE_POOL_SIZE" - Set node pool size.
+ // "SET_NETWORK_POLICY" - Updates network policy for a cluster.
OperationType string `json:"operationType,omitempty"`
// SelfLink: Server-defined URL for the resource.
@@ -1051,11 +1498,11 @@ type Operation struct {
// Status: The current status of the operation.
//
// Possible values:
- // "STATUS_UNSPECIFIED"
- // "PENDING"
- // "RUNNING"
- // "DONE"
- // "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.
Status string `json:"status,omitempty"`
// StatusMessage: If an error has occurred, a textual description of the
@@ -1065,9 +1512,10 @@ type Operation struct {
// TargetLink: Server-defined URL for the target of the operation.
TargetLink string `json:"targetLink,omitempty"`
- // Zone: The name of the Google Compute Engine
- // [zone](/compute/docs/zones#available) in which the operation is
- // taking place.
+ // Zone: The name of the Google Compute
+ // Engine
+ // [zone](/compute/docs/zones#available) in which the operation
+ // is taking place.
Zone string `json:"zone,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
@@ -1098,8 +1546,10 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
}
// RollbackNodePoolUpgradeRequest: RollbackNodePoolUpgradeRequest
-// rollbacks the previously Aborted or Failed NodePool upgrade. This
-// will be an no-op if the last upgrade successfully completed.
+// rollbacks the previously Aborted or Failed
+// NodePool upgrade. This will be an no-op if the last upgrade
+// successfully
+// completed.
type RollbackNodePoolUpgradeRequest struct {
}
@@ -1150,13 +1600,15 @@ func (s *ServerConfig) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// SetNodePoolManagementRequest: SetNodePoolManagementRequest sets the
-// node management properties of a node pool.
-type SetNodePoolManagementRequest struct {
- // Management: NodeManagement configuration for the node pool.
- Management *NodeManagement `json:"management,omitempty"`
+// SetAddonsConfigRequest: SetAddonsConfigRequest sets the addons
+// associated with the cluster.
+type SetAddonsConfigRequest struct {
+ // AddonsConfig: The desired configurations for the various addons
+ // available to run in the
+ // cluster.
+ AddonsConfig *AddonsConfig `json:"addonsConfig,omitempty"`
- // ForceSendFields is a list of field names (e.g. "Management") to
+ // ForceSendFields is a list of field names (e.g. "AddonsConfig") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -1164,7 +1616,83 @@ type SetNodePoolManagementRequest struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
- // NullFields is a list of field names (e.g. "Management") to include in
+ // NullFields is a list of field names (e.g. "AddonsConfig") to include
+ // in API requests with the JSON null value. By default, fields with
+ // empty values are omitted from API requests. However, any field with
+ // an empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *SetAddonsConfigRequest) MarshalJSON() ([]byte, error) {
+ type noMethod SetAddonsConfigRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetLabelsRequest: 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
+type SetLabelsRequest struct {
+ // LabelFingerprint: 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 get()
request to
+ // the
+ // resource to get the latest fingerprint.
+ LabelFingerprint string `json:"labelFingerprint,omitempty"`
+
+ // ResourceLabels: The labels to set for that cluster.
+ ResourceLabels map[string]string `json:"resourceLabels,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "LabelFingerprint") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "LabelFingerprint") to
+ // include in API requests with the JSON null value. By default, fields
+ // with empty values are omitted from API requests. However, any field
+ // with an empty value appearing in NullFields will be sent to the
+ // server as null. It is an error if a field in this list has a
+ // non-empty value. This may be used to include null fields in Patch
+ // requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *SetLabelsRequest) MarshalJSON() ([]byte, error) {
+ type noMethod SetLabelsRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetLegacyAbacRequest: SetLegacyAbacRequest enables or disables the
+// ABAC authorization mechanism for
+// a cluster.
+type SetLegacyAbacRequest struct {
+ // Enabled: Whether ABAC authorization will be enabled in the cluster.
+ Enabled bool `json:"enabled,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Enabled") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "Enabled") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
@@ -1173,19 +1701,29 @@ type SetNodePoolManagementRequest struct {
NullFields []string `json:"-"`
}
-func (s *SetNodePoolManagementRequest) MarshalJSON() ([]byte, error) {
- type noMethod SetNodePoolManagementRequest
+func (s *SetLegacyAbacRequest) MarshalJSON() ([]byte, error) {
+ type noMethod SetLegacyAbacRequest
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// UpdateClusterRequest: UpdateClusterRequest updates the settings of a
+// SetLocationsRequest: SetLocationsRequest sets the locations of the
// cluster.
-type UpdateClusterRequest struct {
- // Update: A description of the update.
- Update *ClusterUpdate `json:"update,omitempty"`
+type SetLocationsRequest struct {
+ // Locations: 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.
+ Locations []string `json:"locations,omitempty"`
- // ForceSendFields is a list of field names (e.g. "Update") to
+ // ForceSendFields is a list of field names (e.g. "Locations") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
@@ -1193,8 +1731,8 @@ type UpdateClusterRequest struct {
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
- // NullFields is a list of field names (e.g. "Update") to include in API
- // requests with the JSON null value. By default, fields with empty
+ // NullFields is a list of field names (e.g. "Locations") to include in
+ // API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
@@ -1202,99 +1740,2584 @@ type UpdateClusterRequest struct {
NullFields []string `json:"-"`
}
-func (s *UpdateClusterRequest) MarshalJSON() ([]byte, error) {
- type noMethod UpdateClusterRequest
+func (s *SetLocationsRequest) MarshalJSON() ([]byte, error) {
+ type noMethod SetLocationsRequest
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
-// method id "container.projects.zones.getServerconfig":
-
-type ProjectsZonesGetServerconfigCall struct {
- s *Service
- projectId string
- zone string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
-}
+// SetLoggingServiceRequest: SetLoggingServiceRequest sets the logging
+// service of a cluster.
+type SetLoggingServiceRequest struct {
+ // LoggingService: The logging service the cluster should use to write
+ // metrics.
+ // Currently available options:
+ //
+ // * "logging.googleapis.com" - the Google Cloud Logging service
+ // * "none" - no metrics will be exported from the cluster
+ LoggingService string `json:"loggingService,omitempty"`
-// GetServerconfig: Returns configuration info about the Container
-// Engine service.
-func (r *ProjectsZonesService) GetServerconfig(projectId string, zone string) *ProjectsZonesGetServerconfigCall {
- c := &ProjectsZonesGetServerconfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ // ForceSendFields is a list of field names (e.g. "LoggingService") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "LoggingService") to
+ // include in API requests with the JSON null value. By default, fields
+ // with empty values are omitted from API requests. However, any field
+ // with an empty value appearing in NullFields will be sent to the
+ // server as null. It is an error if a field in this list has a
+ // non-empty value. This may be used to include null fields in Patch
+ // requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *SetLoggingServiceRequest) MarshalJSON() ([]byte, error) {
+ type noMethod SetLoggingServiceRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetMasterAuthRequest: SetMasterAuthRequest updates the admin password
+// of a cluster.
+type SetMasterAuthRequest struct {
+ // Action: The exact form of action to be taken on the master auth
+ //
+ // Possible values:
+ // "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.
+ Action string `json:"action,omitempty"`
+
+ // Update: A description of the update.
+ Update *MasterAuth `json:"update,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Action") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "Action") to include in API
+ // requests with the JSON null value. By default, fields with empty
+ // values are omitted from API requests. However, any field with an
+ // empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *SetMasterAuthRequest) MarshalJSON() ([]byte, error) {
+ type noMethod SetMasterAuthRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetMonitoringServiceRequest: SetMonitoringServiceRequest sets the
+// monitoring service of a cluster.
+type SetMonitoringServiceRequest struct {
+ // MonitoringService: 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
+ MonitoringService string `json:"monitoringService,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "MonitoringService")
+ // to unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "MonitoringService") to
+ // include in API requests with the JSON null value. By default, fields
+ // with empty values are omitted from API requests. However, any field
+ // with an empty value appearing in NullFields will be sent to the
+ // server as null. It is an error if a field in this list has a
+ // non-empty value. This may be used to include null fields in Patch
+ // requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *SetMonitoringServiceRequest) MarshalJSON() ([]byte, error) {
+ type noMethod SetMonitoringServiceRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetNetworkPolicyRequest: SetNetworkPolicyRequest enables/disables
+// network policy for a cluster.
+type SetNetworkPolicyRequest struct {
+ // NetworkPolicy: Configuration options for the NetworkPolicy feature.
+ NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "NetworkPolicy") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "NetworkPolicy") to include
+ // in API requests with the JSON null value. By default, fields with
+ // empty values are omitted from API requests. However, any field with
+ // an empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *SetNetworkPolicyRequest) MarshalJSON() ([]byte, error) {
+ type noMethod SetNetworkPolicyRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetNodePoolAutoscalingRequest: SetNodePoolAutoscalingRequest sets the
+// autoscaler settings of a node pool.
+type SetNodePoolAutoscalingRequest struct {
+ // Autoscaling: Autoscaling configuration for the node pool.
+ Autoscaling *NodePoolAutoscaling `json:"autoscaling,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Autoscaling") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "Autoscaling") to include
+ // in API requests with the JSON null value. By default, fields with
+ // empty values are omitted from API requests. However, any field with
+ // an empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *SetNodePoolAutoscalingRequest) MarshalJSON() ([]byte, error) {
+ type noMethod SetNodePoolAutoscalingRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetNodePoolManagementRequest: SetNodePoolManagementRequest sets the
+// node management properties of a node
+// pool.
+type SetNodePoolManagementRequest struct {
+ // Management: NodeManagement configuration for the node pool.
+ Management *NodeManagement `json:"management,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Management") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "Management") to include in
+ // API requests with the JSON null value. By default, fields with empty
+ // values are omitted from API requests. However, any field with an
+ // empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *SetNodePoolManagementRequest) MarshalJSON() ([]byte, error) {
+ type noMethod SetNodePoolManagementRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// SetNodePoolSizeRequest: SetNodePoolSizeRequest sets the size a
+// node
+// pool.
+type SetNodePoolSizeRequest struct {
+ // NodeCount: The desired node count for the pool.
+ NodeCount int64 `json:"nodeCount,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "NodeCount") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "NodeCount") to include in
+ // API requests with the JSON null value. By default, fields with empty
+ // values are omitted from API requests. However, any field with an
+ // empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *SetNodePoolSizeRequest) MarshalJSON() ([]byte, error) {
+ type noMethod SetNodePoolSizeRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// StartIPRotationRequest: StartIPRotationRequest creates a new IP for
+// the cluster and then performs
+// a node upgrade on each node pool to point to the new IP.
+type StartIPRotationRequest struct {
+}
+
+// UpdateClusterRequest: UpdateClusterRequest updates the settings of a
+// cluster.
+type UpdateClusterRequest struct {
+ // Update: A description of the update.
+ Update *ClusterUpdate `json:"update,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "Update") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "Update") to include in API
+ // requests with the JSON null value. By default, fields with empty
+ // values are omitted from API requests. However, any field with an
+ // empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *UpdateClusterRequest) MarshalJSON() ([]byte, error) {
+ type noMethod UpdateClusterRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// UpdateMasterRequest: UpdateMasterRequest updates the master of the
+// cluster.
+type UpdateMasterRequest struct {
+ // MasterVersion: The Kubernetes version to change the master to. The
+ // only valid value is the
+ // latest supported version. Use "-" to have the server automatically
+ // select
+ // the latest version.
+ MasterVersion string `json:"masterVersion,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "MasterVersion") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "MasterVersion") to include
+ // in API requests with the JSON null value. By default, fields with
+ // empty values are omitted from API requests. However, any field with
+ // an empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *UpdateMasterRequest) MarshalJSON() ([]byte, error) {
+ type noMethod UpdateMasterRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// UpdateNodePoolRequest: UpdateNodePoolRequests update a node pool's
+// image and/or version.
+type UpdateNodePoolRequest struct {
+ // ImageType: The desired image type for the node pool.
+ ImageType string `json:"imageType,omitempty"`
+
+ // NodeVersion: The Kubernetes version to change the nodes to (typically
+ // an
+ // upgrade). Use `-` to upgrade to the latest version supported by
+ // the server.
+ NodeVersion string `json:"nodeVersion,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "ImageType") to
+ // unconditionally include in API requests. By default, fields with
+ // empty values are omitted from API requests. However, any non-pointer,
+ // non-interface field appearing in ForceSendFields will be sent to the
+ // server regardless of whether the field is empty or not. This may be
+ // used to include empty fields in Patch requests.
+ ForceSendFields []string `json:"-"`
+
+ // NullFields is a list of field names (e.g. "ImageType") to include in
+ // API requests with the JSON null value. By default, fields with empty
+ // values are omitted from API requests. However, any field with an
+ // empty value appearing in NullFields will be sent to the server as
+ // null. It is an error if a field in this list has a non-empty value.
+ // This may be used to include null fields in Patch requests.
+ NullFields []string `json:"-"`
+}
+
+func (s *UpdateNodePoolRequest) MarshalJSON() ([]byte, error) {
+ type noMethod UpdateNodePoolRequest
+ raw := noMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
+// method id "container.projects.zones.getServerconfig":
+
+type ProjectsZonesGetServerconfigCall struct {
+ s *Service
+ projectId string
+ zone string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// GetServerconfig: Returns configuration info about the Container
+// Engine service.
+func (r *ProjectsZonesService) GetServerconfig(projectId string, zone string) *ProjectsZonesGetServerconfigCall {
+ c := &ProjectsZonesGetServerconfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesGetServerconfigCall) Fields(s ...googleapi.Field) *ProjectsZonesGetServerconfigCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets the optional parameter which makes the operation
+// fail if the object's ETag matches the given value. This is useful for
+// getting updates only after the object has changed since the last
+// request. Use googleapi.IsNotModified to check whether the response
+// error from Do is the result of In-None-Match.
+func (c *ProjectsZonesGetServerconfigCall) IfNoneMatch(entityTag string) *ProjectsZonesGetServerconfigCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesGetServerconfigCall) Context(ctx context.Context) *ProjectsZonesGetServerconfigCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesGetServerconfigCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesGetServerconfigCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ var body io.Reader = nil
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/serverconfig")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.getServerconfig" call.
+// Exactly one of *ServerConfig or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *ServerConfig.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesGetServerconfigCall) Do(opts ...googleapi.CallOption) (*ServerConfig, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &ServerConfig{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Returns configuration info about the Container Engine service.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/serverconfig",
+ // "httpMethod": "GET",
+ // "id": "container.projects.zones.getServerconfig",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone"
+ // ],
+ // "parameters": {
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/serverconfig",
+ // "response": {
+ // "$ref": "ServerConfig"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.addons":
+
+type ProjectsZonesClustersAddonsCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setaddonsconfigrequest *SetAddonsConfigRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Addons: Sets the addons of a specific cluster.
+func (r *ProjectsZonesClustersService) Addons(projectId string, zone string, clusterId string, setaddonsconfigrequest *SetAddonsConfigRequest) *ProjectsZonesClustersAddonsCall {
+ c := &ProjectsZonesClustersAddonsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.clusterId = clusterId
+ c.setaddonsconfigrequest = setaddonsconfigrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersAddonsCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersAddonsCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersAddonsCall) Context(ctx context.Context) *ProjectsZonesClustersAddonsCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersAddonsCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersAddonsCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setaddonsconfigrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.addons" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersAddonsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the addons of a specific cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.addons",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone",
+ // "clusterId"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster to upgrade.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons",
+ // "request": {
+ // "$ref": "SetAddonsConfigRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.completeIpRotation":
+
+type ProjectsZonesClustersCompleteIpRotationCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ completeiprotationrequest *CompleteIPRotationRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// CompleteIpRotation: Completes master IP rotation.
+func (r *ProjectsZonesClustersService) CompleteIpRotation(projectId string, zone string, clusterId string, completeiprotationrequest *CompleteIPRotationRequest) *ProjectsZonesClustersCompleteIpRotationCall {
+ c := &ProjectsZonesClustersCompleteIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.clusterId = clusterId
+ c.completeiprotationrequest = completeiprotationrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersCompleteIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCompleteIpRotationCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersCompleteIpRotationCall) Context(ctx context.Context) *ProjectsZonesClustersCompleteIpRotationCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersCompleteIpRotationCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersCompleteIpRotationCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.completeiprotationrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.completeIpRotation" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersCompleteIpRotationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Completes master IP rotation.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.completeIpRotation",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone",
+ // "clusterId"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation",
+ // "request": {
+ // "$ref": "CompleteIPRotationRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.create":
+
+type ProjectsZonesClustersCreateCall struct {
+ s *Service
+ projectId string
+ zone string
+ createclusterrequest *CreateClusterRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Create: 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.
+func (r *ProjectsZonesClustersService) Create(projectId string, zone string, createclusterrequest *CreateClusterRequest) *ProjectsZonesClustersCreateCall {
+ c := &ProjectsZonesClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.createclusterrequest = createclusterrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCreateCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersCreateCall) Context(ctx context.Context) *ProjectsZonesClustersCreateCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersCreateCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersCreateCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.createclusterrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.create" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Creates a cluster, consisting of the specified number and type of Google\nCompute Engine instances.\n\nBy default, the cluster is created in the project's\n[default network](/compute/docs/networks-and-firewalls#networks).\n\nOne firewall is added for the cluster. After cluster creation,\nthe cluster creates routes for each node to allow the containers\non that node to communicate with all other instances in the\ncluster.\n\nFinally, an entry is added to the project's global metadata indicating\nwhich CIDR range is being used by the cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.create",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone"
+ // ],
+ // "parameters": {
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters",
+ // "request": {
+ // "$ref": "CreateClusterRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.delete":
+
+type ProjectsZonesClustersDeleteCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Delete: 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.
+func (r *ProjectsZonesClustersService) Delete(projectId string, zone string, clusterId string) *ProjectsZonesClustersDeleteCall {
+ c := &ProjectsZonesClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.clusterId = clusterId
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersDeleteCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersDeleteCall) Context(ctx context.Context) *ProjectsZonesClustersDeleteCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersDeleteCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersDeleteCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("DELETE", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.delete" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Deletes the cluster, including the Kubernetes endpoint and all worker\nnodes.\n\nFirewalls and routes that were configured during cluster creation\nare also deleted.\n\nOther Google Compute Engine resources that might be in use by the cluster\n(e.g. load balancer resources) will not be deleted if they weren't present\nat the initial create time.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "httpMethod": "DELETE",
+ // "id": "container.projects.zones.clusters.delete",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone",
+ // "clusterId"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster to delete.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.get":
+
+type ProjectsZonesClustersGetCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Gets the details of a specific cluster.
+func (r *ProjectsZonesClustersService) Get(projectId string, zone string, clusterId string) *ProjectsZonesClustersGetCall {
+ c := &ProjectsZonesClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.clusterId = clusterId
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersGetCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets the optional parameter which makes the operation
+// fail if the object's ETag matches the given value. This is useful for
+// getting updates only after the object has changed since the last
+// request. Use googleapi.IsNotModified to check whether the response
+// error from Do is the result of In-None-Match.
+func (c *ProjectsZonesClustersGetCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersGetCall) Context(ctx context.Context) *ProjectsZonesClustersGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ var body io.Reader = nil
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.get" call.
+// Exactly one of *Cluster or error will be non-nil. Any non-2xx status
+// code is an error. Response headers are in either
+// *Cluster.ServerResponse.Header or (if a response was returned at all)
+// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
+// check whether the returned error was because http.StatusNotModified
+// was returned.
+func (c *ProjectsZonesClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluster, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Cluster{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Gets the details of a specific cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "httpMethod": "GET",
+ // "id": "container.projects.zones.clusters.get",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone",
+ // "clusterId"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster to retrieve.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "response": {
+ // "$ref": "Cluster"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.legacyAbac":
+
+type ProjectsZonesClustersLegacyAbacCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setlegacyabacrequest *SetLegacyAbacRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// LegacyAbac: Enables or disables the ABAC authorization mechanism on a
+// cluster.
+func (r *ProjectsZonesClustersService) LegacyAbac(projectId string, zone string, clusterId string, setlegacyabacrequest *SetLegacyAbacRequest) *ProjectsZonesClustersLegacyAbacCall {
+ c := &ProjectsZonesClustersLegacyAbacCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.clusterId = clusterId
+ c.setlegacyabacrequest = setlegacyabacrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersLegacyAbacCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersLegacyAbacCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersLegacyAbacCall) Context(ctx context.Context) *ProjectsZonesClustersLegacyAbacCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersLegacyAbacCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersLegacyAbacCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setlegacyabacrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.legacyAbac" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersLegacyAbacCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Enables or disables the ABAC authorization mechanism on a cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.legacyAbac",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone",
+ // "clusterId"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster to update.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac",
+ // "request": {
+ // "$ref": "SetLegacyAbacRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.list":
+
+type ProjectsZonesClustersListCall struct {
+ s *Service
+ projectId string
+ zone string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: Lists all clusters owned by a project in either the specified
+// zone or all
+// zones.
+func (r *ProjectsZonesClustersService) List(projectId string, zone string) *ProjectsZonesClustersListCall {
+ c := &ProjectsZonesClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// IfNoneMatch sets the optional parameter which makes the operation
+// fail if the object's ETag matches the given value. This is useful for
+// getting updates only after the object has changed since the last
+// request. Use googleapi.IsNotModified to check whether the response
+// error from Do is the result of In-None-Match.
+func (c *ProjectsZonesClustersListCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersListCall) Context(ctx context.Context) *ProjectsZonesClustersListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ var body io.Reader = nil
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.list" call.
+// Exactly one of *ListClustersResponse or error will be non-nil. Any
+// non-2xx status code is an error. Response headers are in either
+// *ListClustersResponse.ServerResponse.Header or (if a response was
+// returned at all) in error.(*googleapi.Error).Header. Use
+// googleapi.IsNotModified to check whether the returned error was
+// because http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersListCall) Do(opts ...googleapi.CallOption) (*ListClustersResponse, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &ListClustersResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Lists all clusters owned by a project in either the specified zone or all\nzones.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters",
+ // "httpMethod": "GET",
+ // "id": "container.projects.zones.clusters.list",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone"
+ // ],
+ // "parameters": {
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides, or \"-\" for all zones.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters",
+ // "response": {
+ // "$ref": "ListClustersResponse"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.locations":
+
+type ProjectsZonesClustersLocationsCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setlocationsrequest *SetLocationsRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Locations: Sets the locations of a specific cluster.
+func (r *ProjectsZonesClustersService) Locations(projectId string, zone string, clusterId string, setlocationsrequest *SetLocationsRequest) *ProjectsZonesClustersLocationsCall {
+ c := &ProjectsZonesClustersLocationsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.clusterId = clusterId
+ c.setlocationsrequest = setlocationsrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersLocationsCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersLocationsCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersLocationsCall) Context(ctx context.Context) *ProjectsZonesClustersLocationsCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersLocationsCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersLocationsCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setlocationsrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.locations" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersLocationsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the locations of a specific cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.locations",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone",
+ // "clusterId"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster to upgrade.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations",
+ // "request": {
+ // "$ref": "SetLocationsRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.logging":
+
+type ProjectsZonesClustersLoggingCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setloggingservicerequest *SetLoggingServiceRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Logging: Sets the logging service of a specific cluster.
+func (r *ProjectsZonesClustersService) Logging(projectId string, zone string, clusterId string, setloggingservicerequest *SetLoggingServiceRequest) *ProjectsZonesClustersLoggingCall {
+ c := &ProjectsZonesClustersLoggingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.clusterId = clusterId
+ c.setloggingservicerequest = setloggingservicerequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersLoggingCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersLoggingCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersLoggingCall) Context(ctx context.Context) *ProjectsZonesClustersLoggingCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersLoggingCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersLoggingCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setloggingservicerequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.logging" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersLoggingCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the logging service of a specific cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.logging",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone",
+ // "clusterId"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster to upgrade.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging",
+ // "request": {
+ // "$ref": "SetLoggingServiceRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.master":
+
+type ProjectsZonesClustersMasterCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ updatemasterrequest *UpdateMasterRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Master: Updates the master of a specific cluster.
+func (r *ProjectsZonesClustersService) Master(projectId string, zone string, clusterId string, updatemasterrequest *UpdateMasterRequest) *ProjectsZonesClustersMasterCall {
+ c := &ProjectsZonesClustersMasterCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.clusterId = clusterId
+ c.updatemasterrequest = updatemasterrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersMasterCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersMasterCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersMasterCall) Context(ctx context.Context) *ProjectsZonesClustersMasterCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersMasterCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersMasterCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.updatemasterrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.master" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersMasterCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Updates the master of a specific cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.master",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone",
+ // "clusterId"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster to upgrade.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master",
+ // "request": {
+ // "$ref": "UpdateMasterRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.monitoring":
+
+type ProjectsZonesClustersMonitoringCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setmonitoringservicerequest *SetMonitoringServiceRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Monitoring: Sets the monitoring service of a specific cluster.
+func (r *ProjectsZonesClustersService) Monitoring(projectId string, zone string, clusterId string, setmonitoringservicerequest *SetMonitoringServiceRequest) *ProjectsZonesClustersMonitoringCall {
+ c := &ProjectsZonesClustersMonitoringCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.clusterId = clusterId
+ c.setmonitoringservicerequest = setmonitoringservicerequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersMonitoringCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersMonitoringCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersMonitoringCall) Context(ctx context.Context) *ProjectsZonesClustersMonitoringCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersMonitoringCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersMonitoringCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setmonitoringservicerequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.monitoring" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersMonitoringCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets the monitoring service of a specific cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.monitoring",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone",
+ // "clusterId"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster to upgrade.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring",
+ // "request": {
+ // "$ref": "SetMonitoringServiceRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.resourceLabels":
+
+type ProjectsZonesClustersResourceLabelsCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setlabelsrequest *SetLabelsRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// ResourceLabels: Sets labels on a cluster.
+func (r *ProjectsZonesClustersService) ResourceLabels(projectId string, zone string, clusterId string, setlabelsrequest *SetLabelsRequest) *ProjectsZonesClustersResourceLabelsCall {
+ c := &ProjectsZonesClustersResourceLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.clusterId = clusterId
+ c.setlabelsrequest = setlabelsrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersResourceLabelsCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersResourceLabelsCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersResourceLabelsCall) Context(ctx context.Context) *ProjectsZonesClustersResourceLabelsCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersResourceLabelsCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersResourceLabelsCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setlabelsrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.resourceLabels" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersResourceLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Sets labels on a cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.resourceLabels",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone",
+ // "clusterId"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels",
+ // "request": {
+ // "$ref": "SetLabelsRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.setMasterAuth":
+
+type ProjectsZonesClustersSetMasterAuthCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setmasterauthrequest *SetMasterAuthRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetMasterAuth: 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.
+func (r *ProjectsZonesClustersService) SetMasterAuth(projectId string, zone string, clusterId string, setmasterauthrequest *SetMasterAuthRequest) *ProjectsZonesClustersSetMasterAuthCall {
+ c := &ProjectsZonesClustersSetMasterAuthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
+ c.clusterId = clusterId
+ c.setmasterauthrequest = setmasterauthrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesGetServerconfigCall) Fields(s ...googleapi.Field) *ProjectsZonesGetServerconfigCall {
+func (c *ProjectsZonesClustersSetMasterAuthCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetMasterAuthCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
-// IfNoneMatch sets the optional parameter which makes the operation
-// fail if the object's ETag matches the given value. This is useful for
-// getting updates only after the object has changed since the last
-// request. Use googleapi.IsNotModified to check whether the response
-// error from Do is the result of In-None-Match.
-func (c *ProjectsZonesGetServerconfigCall) IfNoneMatch(entityTag string) *ProjectsZonesGetServerconfigCall {
- c.ifNoneMatch_ = entityTag
+// Context sets the context to be used in this call's Do method. Any
+// pending HTTP request will be aborted if the provided context is
+// canceled.
+func (c *ProjectsZonesClustersSetMasterAuthCall) Context(ctx context.Context) *ProjectsZonesClustersSetMasterAuthCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *ProjectsZonesClustersSetMasterAuthCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *ProjectsZonesClustersSetMasterAuthCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setmasterauthrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "container.projects.zones.clusters.setMasterAuth" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersSetMasterAuthCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Operation{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := json.NewDecoder(res.Body).Decode(target); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Used to set master auth materials. Currently supports :-\nChanging the admin password of a specific cluster.\nThis can be either via password generation or explicitly set the password.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.setMasterAuth",
+ // "parameterOrder": [
+ // "projectId",
+ // "zone",
+ // "clusterId"
+ // ],
+ // "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster to upgrade.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "projectId": {
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "zone": {
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth",
+ // "request": {
+ // "$ref": "SetMasterAuthRequest"
+ // },
+ // "response": {
+ // "$ref": "Operation"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/cloud-platform"
+ // ]
+ // }
+
+}
+
+// method id "container.projects.zones.clusters.setNetworkPolicy":
+
+type ProjectsZonesClustersSetNetworkPolicyCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ setnetworkpolicyrequest *SetNetworkPolicyRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// SetNetworkPolicy: Enables/Disables Network Policy for a cluster.
+func (r *ProjectsZonesClustersService) SetNetworkPolicy(projectId string, zone string, clusterId string, setnetworkpolicyrequest *SetNetworkPolicyRequest) *ProjectsZonesClustersSetNetworkPolicyCall {
+ c := &ProjectsZonesClustersSetNetworkPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.projectId = projectId
+ c.zone = zone
+ c.clusterId = clusterId
+ c.setnetworkpolicyrequest = setnetworkpolicyrequest
+ return c
+}
+
+// Fields allows partial responses to be retrieved. See
+// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
+// for more information.
+func (c *ProjectsZonesClustersSetNetworkPolicyCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersSetNetworkPolicyCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesGetServerconfigCall) Context(ctx context.Context) *ProjectsZonesGetServerconfigCall {
+func (c *ProjectsZonesClustersSetNetworkPolicyCall) Context(ctx context.Context) *ProjectsZonesClustersSetNetworkPolicyCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesGetServerconfigCall) Header() http.Header {
+func (c *ProjectsZonesClustersSetNetworkPolicyCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesGetServerconfigCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersSetNetworkPolicyCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setnetworkpolicyrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/serverconfig")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
+ req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
"zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.getServerconfig" call.
-// Exactly one of *ServerConfig or error will be non-nil. Any non-2xx
+// Do executes the "container.projects.zones.clusters.setNetworkPolicy" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
-// *ServerConfig.ServerResponse.Header or (if a response was returned at
+// *Operation.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
-func (c *ProjectsZonesGetServerconfigCall) Do(opts ...googleapi.CallOption) (*ServerConfig, error) {
+func (c *ProjectsZonesClustersSetNetworkPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -1313,7 +4336,7 @@ func (c *ProjectsZonesGetServerconfigCall) Do(opts ...googleapi.CallOption) (*Se
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &ServerConfig{
+ ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
@@ -1325,30 +4348,41 @@ func (c *ProjectsZonesGetServerconfigCall) Do(opts ...googleapi.CallOption) (*Se
}
return ret, nil
// {
- // "description": "Returns configuration info about the Container Engine service.",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.getServerconfig",
+ // "description": "Enables/Disables Network Policy for a cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.setNetworkPolicy",
// "parameterOrder": [
// "projectId",
- // "zone"
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1/projects/{projectId}/zones/{zone}/serverconfig",
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy",
+ // "request": {
+ // "$ref": "SetNetworkPolicyRequest"
+ // },
// "response": {
- // "$ref": "ServerConfig"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -1357,39 +4391,33 @@ func (c *ProjectsZonesGetServerconfigCall) Do(opts ...googleapi.CallOption) (*Se
}
-// method id "container.projects.zones.clusters.create":
+// method id "container.projects.zones.clusters.startIpRotation":
-type ProjectsZonesClustersCreateCall struct {
- s *Service
- projectId string
- zone string
- createclusterrequest *CreateClusterRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersStartIpRotationCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ startiprotationrequest *StartIPRotationRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Create: 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.
-func (r *ProjectsZonesClustersService) Create(projectId string, zone string, createclusterrequest *CreateClusterRequest) *ProjectsZonesClustersCreateCall {
- c := &ProjectsZonesClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// StartIpRotation: Start master IP rotation.
+func (r *ProjectsZonesClustersService) StartIpRotation(projectId string, zone string, clusterId string, startiprotationrequest *StartIPRotationRequest) *ProjectsZonesClustersStartIpRotationCall {
+ c := &ProjectsZonesClustersStartIpRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
- c.createclusterrequest = createclusterrequest
+ c.clusterId = clusterId
+ c.startiprotationrequest = startiprotationrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCreateCall {
+func (c *ProjectsZonesClustersStartIpRotationCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersStartIpRotationCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -1397,53 +4425,53 @@ func (c *ProjectsZonesClustersCreateCall) Fields(s ...googleapi.Field) *Projects
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesClustersCreateCall) Context(ctx context.Context) *ProjectsZonesClustersCreateCall {
+func (c *ProjectsZonesClustersStartIpRotationCall) Context(ctx context.Context) *ProjectsZonesClustersStartIpRotationCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesClustersCreateCall) Header() http.Header {
+func (c *ProjectsZonesClustersStartIpRotationCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersCreateCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersStartIpRotationCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.createclusterrequest)
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.startiprotationrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
"zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.create" call.
+// Do executes the "container.projects.zones.clusters.startIpRotation" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
-func (c *ProjectsZonesClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsZonesClustersStartIpRotationCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -1474,30 +4502,38 @@ func (c *ProjectsZonesClustersCreateCall) Do(opts ...googleapi.CallOption) (*Ope
}
return ret, nil
// {
- // "description": "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.",
+ // "description": "Start master IP rotation.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.create",
+ // "id": "container.projects.zones.clusters.startIpRotation",
// "parameterOrder": [
// "projectId",
- // "zone"
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1/projects/{projectId}/zones/{zone}/clusters",
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation",
// "request": {
- // "$ref": "CreateClusterRequest"
+ // "$ref": "StartIPRotationRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -1508,37 +4544,34 @@ func (c *ProjectsZonesClustersCreateCall) Do(opts ...googleapi.CallOption) (*Ope
// }
}
-
-// method id "container.projects.zones.clusters.delete":
-
-type ProjectsZonesClustersDeleteCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+
+// method id "container.projects.zones.clusters.update":
+
+type ProjectsZonesClustersUpdateCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ updateclusterrequest *UpdateClusterRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Delete: 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.
-func (r *ProjectsZonesClustersService) Delete(projectId string, zone string, clusterId string) *ProjectsZonesClustersDeleteCall {
- c := &ProjectsZonesClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Update: Updates the settings of a specific cluster.
+func (r *ProjectsZonesClustersService) Update(projectId string, zone string, clusterId string, updateclusterrequest *UpdateClusterRequest) *ProjectsZonesClustersUpdateCall {
+ c := &ProjectsZonesClustersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
+ c.updateclusterrequest = updateclusterrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersDeleteCall {
+func (c *ProjectsZonesClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -1546,32 +4579,36 @@ func (c *ProjectsZonesClustersDeleteCall) Fields(s ...googleapi.Field) *Projects
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesClustersDeleteCall) Context(ctx context.Context) *ProjectsZonesClustersDeleteCall {
+func (c *ProjectsZonesClustersUpdateCall) Context(ctx context.Context) *ProjectsZonesClustersUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesClustersDeleteCall) Header() http.Header {
+func (c *ProjectsZonesClustersUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersDeleteCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.updateclusterrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("DELETE", urls, body)
+ req, _ := http.NewRequest("PUT", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
@@ -1581,14 +4618,14 @@ func (c *ProjectsZonesClustersDeleteCall) doRequest(alt string) (*http.Response,
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.delete" call.
+// Do executes the "container.projects.zones.clusters.update" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
-func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsZonesClustersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -1619,9 +4656,10 @@ func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Ope
}
return ret, nil
// {
- // "description": "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.",
- // "httpMethod": "DELETE",
- // "id": "container.projects.zones.clusters.delete",
+ // "description": "Updates the settings of a specific cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "httpMethod": "PUT",
+ // "id": "container.projects.zones.clusters.update",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -1629,25 +4667,28 @@ func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Ope
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to delete.",
+ // "description": "The name of the cluster to upgrade.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "request": {
+ // "$ref": "UpdateClusterRequest"
+ // },
// "response": {
// "$ref": "Operation"
// },
@@ -1658,95 +4699,90 @@ func (c *ProjectsZonesClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Ope
}
-// method id "container.projects.zones.clusters.get":
+// method id "container.projects.zones.clusters.nodePools.autoscaling":
-type ProjectsZonesClustersGetCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersNodePoolsAutoscalingCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ nodePoolId string
+ setnodepoolautoscalingrequest *SetNodePoolAutoscalingRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Get: Gets the details of a specific cluster.
-func (r *ProjectsZonesClustersService) Get(projectId string, zone string, clusterId string) *ProjectsZonesClustersGetCall {
- c := &ProjectsZonesClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Autoscaling: Sets the autoscaling settings of a specific node pool.
+func (r *ProjectsZonesClustersNodePoolsService) Autoscaling(projectId string, zone string, clusterId string, nodePoolId string, setnodepoolautoscalingrequest *SetNodePoolAutoscalingRequest) *ProjectsZonesClustersNodePoolsAutoscalingCall {
+ c := &ProjectsZonesClustersNodePoolsAutoscalingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
+ c.nodePoolId = nodePoolId
+ c.setnodepoolautoscalingrequest = setnodepoolautoscalingrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesClustersGetCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersGetCall {
+func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsAutoscalingCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
-// IfNoneMatch sets the optional parameter which makes the operation
-// fail if the object's ETag matches the given value. This is useful for
-// getting updates only after the object has changed since the last
-// request. Use googleapi.IsNotModified to check whether the response
-// error from Do is the result of In-None-Match.
-func (c *ProjectsZonesClustersGetCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersGetCall {
- c.ifNoneMatch_ = entityTag
- return c
-}
-
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesClustersGetCall) Context(ctx context.Context) *ProjectsZonesClustersGetCall {
+func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsAutoscalingCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesClustersGetCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersGetCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setnodepoolautoscalingrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
+ req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
- "projectId": c.projectId,
- "zone": c.zone,
- "clusterId": c.clusterId,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ "nodePoolId": c.nodePoolId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.get" call.
-// Exactly one of *Cluster or error will be non-nil. Any non-2xx status
-// code is an error. Response headers are in either
-// *Cluster.ServerResponse.Header or (if a response was returned at all)
-// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
-// check whether the returned error was because http.StatusNotModified
-// was returned.
-func (c *ProjectsZonesClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluster, error) {
+// Do executes the "container.projects.zones.clusters.nodePools.autoscaling" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersNodePoolsAutoscalingCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -1765,7 +4801,7 @@ func (c *ProjectsZonesClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluste
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Cluster{
+ ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
@@ -1777,37 +4813,48 @@ func (c *ProjectsZonesClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluste
}
return ret, nil
// {
- // "description": "Gets the details of a specific cluster.",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.get",
+ // "description": "Sets the autoscaling settings of a specific node pool.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.nodePools.autoscaling",
// "parameterOrder": [
// "projectId",
// "zone",
- // "clusterId"
+ // "clusterId",
+ // "nodePoolId"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to retrieve.",
+ // "description": "The name of the cluster to upgrade.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "nodePoolId": {
+ // "description": "The name of the node pool to upgrade.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling",
+ // "request": {
+ // "$ref": "SetNodePoolAutoscalingRequest"
+ // },
// "response": {
- // "$ref": "Cluster"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -1816,93 +4863,87 @@ func (c *ProjectsZonesClustersGetCall) Do(opts ...googleapi.CallOption) (*Cluste
}
-// method id "container.projects.zones.clusters.list":
+// method id "container.projects.zones.clusters.nodePools.create":
-type ProjectsZonesClustersListCall struct {
- s *Service
- projectId string
- zone string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersNodePoolsCreateCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ createnodepoolrequest *CreateNodePoolRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// List: Lists all clusters owned by a project in either the specified
-// zone or all zones.
-func (r *ProjectsZonesClustersService) List(projectId string, zone string) *ProjectsZonesClustersListCall {
- c := &ProjectsZonesClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Create: Creates a node pool for a cluster.
+func (r *ProjectsZonesClustersNodePoolsService) Create(projectId string, zone string, clusterId string, createnodepoolrequest *CreateNodePoolRequest) *ProjectsZonesClustersNodePoolsCreateCall {
+ c := &ProjectsZonesClustersNodePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
+ c.clusterId = clusterId
+ c.createnodepoolrequest = createnodepoolrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesClustersListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersListCall {
+func (c *ProjectsZonesClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
-// IfNoneMatch sets the optional parameter which makes the operation
-// fail if the object's ETag matches the given value. This is useful for
-// getting updates only after the object has changed since the last
-// request. Use googleapi.IsNotModified to check whether the response
-// error from Do is the result of In-None-Match.
-func (c *ProjectsZonesClustersListCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersListCall {
- c.ifNoneMatch_ = entityTag
- return c
-}
-
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesClustersListCall) Context(ctx context.Context) *ProjectsZonesClustersListCall {
+func (c *ProjectsZonesClustersNodePoolsCreateCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsCreateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesClustersListCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersListCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersNodePoolsCreateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.createnodepoolrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
+ req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
"zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.list" call.
-// Exactly one of *ListClustersResponse or error will be non-nil. Any
-// non-2xx status code is an error. Response headers are in either
-// *ListClustersResponse.ServerResponse.Header or (if a response was
-// returned at all) in error.(*googleapi.Error).Header. Use
-// googleapi.IsNotModified to check whether the returned error was
-// because http.StatusNotModified was returned.
-func (c *ProjectsZonesClustersListCall) Do(opts ...googleapi.CallOption) (*ListClustersResponse, error) {
+// Do executes the "container.projects.zones.clusters.nodePools.create" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -1921,7 +4962,7 @@ func (c *ProjectsZonesClustersListCall) Do(opts ...googleapi.CallOption) (*ListC
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &ListClustersResponse{
+ ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
@@ -1933,30 +4974,41 @@ func (c *ProjectsZonesClustersListCall) Do(opts ...googleapi.CallOption) (*ListC
}
return ret, nil
// {
- // "description": "Lists all clusters owned by a project in either the specified zone or all zones.",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.list",
+ // "description": "Creates a node pool for a cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.nodePools.create",
// "parameterOrder": [
// "projectId",
- // "zone"
+ // "zone",
+ // "clusterId"
// ],
// "parameters": {
+ // "clusterId": {
+ // "description": "The name of the cluster.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides, or \"-\" for all zones.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1/projects/{projectId}/zones/{zone}/clusters",
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ // "request": {
+ // "$ref": "CreateNodePoolRequest"
+ // },
// "response": {
- // "$ref": "ListClustersResponse"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -1965,33 +5017,33 @@ func (c *ProjectsZonesClustersListCall) Do(opts ...googleapi.CallOption) (*ListC
}
-// method id "container.projects.zones.clusters.update":
+// method id "container.projects.zones.clusters.nodePools.delete":
-type ProjectsZonesClustersUpdateCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- updateclusterrequest *UpdateClusterRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersNodePoolsDeleteCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ nodePoolId string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Update: Updates the settings of a specific cluster.
-func (r *ProjectsZonesClustersService) Update(projectId string, zone string, clusterId string, updateclusterrequest *UpdateClusterRequest) *ProjectsZonesClustersUpdateCall {
- c := &ProjectsZonesClustersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Delete: Deletes a node pool from a cluster.
+func (r *ProjectsZonesClustersNodePoolsService) Delete(projectId string, zone string, clusterId string, nodePoolId string) *ProjectsZonesClustersNodePoolsDeleteCall {
+ c := &ProjectsZonesClustersNodePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
- c.updateclusterrequest = updateclusterrequest
+ c.nodePoolId = nodePoolId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesClustersUpdateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersUpdateCall {
+func (c *ProjectsZonesClustersNodePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -1999,54 +5051,49 @@ func (c *ProjectsZonesClustersUpdateCall) Fields(s ...googleapi.Field) *Projects
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesClustersUpdateCall) Context(ctx context.Context) *ProjectsZonesClustersUpdateCall {
+func (c *ProjectsZonesClustersNodePoolsDeleteCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsDeleteCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesClustersUpdateCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersUpdateCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersNodePoolsDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.updateclusterrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("PUT", urls, body)
+ req, _ := http.NewRequest("DELETE", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
- "projectId": c.projectId,
- "zone": c.zone,
- "clusterId": c.clusterId,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ "nodePoolId": c.nodePoolId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.update" call.
+// Do executes the "container.projects.zones.clusters.nodePools.delete" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
-func (c *ProjectsZonesClustersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsZonesClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -2077,38 +5124,43 @@ func (c *ProjectsZonesClustersUpdateCall) Do(opts ...googleapi.CallOption) (*Ope
}
return ret, nil
// {
- // "description": "Updates the settings of a specific cluster.",
- // "httpMethod": "PUT",
- // "id": "container.projects.zones.clusters.update",
+ // "description": "Deletes a node pool from a cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ // "httpMethod": "DELETE",
+ // "id": "container.projects.zones.clusters.nodePools.delete",
// "parameterOrder": [
// "projectId",
// "zone",
- // "clusterId"
+ // "clusterId",
+ // "nodePoolId"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to upgrade.",
+ // "description": "The name of the cluster.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "nodePoolId": {
+ // "description": "The name of the node pool to delete.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}",
- // "request": {
- // "$ref": "UpdateClusterRequest"
- // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
// "response": {
// "$ref": "Operation"
// },
@@ -2119,88 +5171,97 @@ func (c *ProjectsZonesClustersUpdateCall) Do(opts ...googleapi.CallOption) (*Ope
}
-// method id "container.projects.zones.clusters.nodePools.create":
+// method id "container.projects.zones.clusters.nodePools.get":
-type ProjectsZonesClustersNodePoolsCreateCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- createnodepoolrequest *CreateNodePoolRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersNodePoolsGetCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ nodePoolId string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
}
-// Create: Creates a node pool for a cluster.
-func (r *ProjectsZonesClustersNodePoolsService) Create(projectId string, zone string, clusterId string, createnodepoolrequest *CreateNodePoolRequest) *ProjectsZonesClustersNodePoolsCreateCall {
- c := &ProjectsZonesClustersNodePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Get: Retrieves the node pool requested.
+func (r *ProjectsZonesClustersNodePoolsService) Get(projectId string, zone string, clusterId string, nodePoolId string) *ProjectsZonesClustersNodePoolsGetCall {
+ c := &ProjectsZonesClustersNodePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
- c.createnodepoolrequest = createnodepoolrequest
+ c.nodePoolId = nodePoolId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesClustersNodePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsCreateCall {
+func (c *ProjectsZonesClustersNodePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
+// IfNoneMatch sets the optional parameter which makes the operation
+// fail if the object's ETag matches the given value. This is useful for
+// getting updates only after the object has changed since the last
+// request. Use googleapi.IsNotModified to check whether the response
+// error from Do is the result of In-None-Match.
+func (c *ProjectsZonesClustersNodePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersNodePoolsGetCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesClustersNodePoolsCreateCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsCreateCall {
+func (c *ProjectsZonesClustersNodePoolsGetCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesClustersNodePoolsCreateCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersNodePoolsCreateCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersNodePoolsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.createnodepoolrequest)
- if err != nil {
- return nil, err
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
- reqHeaders.Set("Content-Type", "application/json")
+ var body io.Reader = nil
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
+ req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
- "projectId": c.projectId,
- "zone": c.zone,
- "clusterId": c.clusterId,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ "nodePoolId": c.nodePoolId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.nodePools.create" call.
-// Exactly one of *Operation or error will be non-nil. Any non-2xx
-// status code is an error. Response headers are in either
-// *Operation.ServerResponse.Header or (if a response was returned at
+// Do executes the "container.projects.zones.clusters.nodePools.get" call.
+// Exactly one of *NodePool or error will be non-nil. Any non-2xx status
+// code is an error. Response headers are in either
+// *NodePool.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
-func (c *ProjectsZonesClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsZonesClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption) (*NodePool, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -2219,7 +5280,7 @@ func (c *ProjectsZonesClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOpti
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Operation{
+ ret := &NodePool{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
@@ -2231,13 +5292,15 @@ func (c *ProjectsZonesClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOpti
}
return ret, nil
// {
- // "description": "Creates a node pool for a cluster.",
- // "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.nodePools.create",
+ // "description": "Retrieves the node pool requested.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ // "httpMethod": "GET",
+ // "id": "container.projects.zones.clusters.nodePools.get",
// "parameterOrder": [
// "projectId",
// "zone",
- // "clusterId"
+ // "clusterId",
+ // "nodePoolId"
// ],
// "parameters": {
// "clusterId": {
@@ -2246,25 +5309,28 @@ func (c *ProjectsZonesClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOpti
// "required": true,
// "type": "string"
// },
+ // "nodePoolId": {
+ // "description": "The name of the node pool.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
- // "request": {
- // "$ref": "CreateNodePoolRequest"
- // },
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
// "response": {
- // "$ref": "Operation"
+ // "$ref": "NodePool"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -2273,84 +5339,94 @@ func (c *ProjectsZonesClustersNodePoolsCreateCall) Do(opts ...googleapi.CallOpti
}
-// method id "container.projects.zones.clusters.nodePools.delete":
+// method id "container.projects.zones.clusters.nodePools.list":
-type ProjectsZonesClustersNodePoolsDeleteCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersNodePoolsListCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
}
-// Delete: Deletes a node pool from a cluster.
-func (r *ProjectsZonesClustersNodePoolsService) Delete(projectId string, zone string, clusterId string, nodePoolId string) *ProjectsZonesClustersNodePoolsDeleteCall {
- c := &ProjectsZonesClustersNodePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// List: Lists the node pools for a cluster.
+func (r *ProjectsZonesClustersNodePoolsService) List(projectId string, zone string, clusterId string) *ProjectsZonesClustersNodePoolsListCall {
+ c := &ProjectsZonesClustersNodePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
- c.nodePoolId = nodePoolId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesClustersNodePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsDeleteCall {
+func (c *ProjectsZonesClustersNodePoolsListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
+// IfNoneMatch sets the optional parameter which makes the operation
+// fail if the object's ETag matches the given value. This is useful for
+// getting updates only after the object has changed since the last
+// request. Use googleapi.IsNotModified to check whether the response
+// error from Do is the result of In-None-Match.
+func (c *ProjectsZonesClustersNodePoolsListCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersNodePoolsListCall {
+ c.ifNoneMatch_ = entityTag
+ return c
+}
+
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesClustersNodePoolsDeleteCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsDeleteCall {
+func (c *ProjectsZonesClustersNodePoolsListCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesClustersNodePoolsDeleteCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersNodePoolsDeleteCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersNodePoolsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("DELETE", urls, body)
+ req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
- "projectId": c.projectId,
- "zone": c.zone,
- "clusterId": c.clusterId,
- "nodePoolId": c.nodePoolId,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.nodePools.delete" call.
-// Exactly one of *Operation or error will be non-nil. Any non-2xx
-// status code is an error. Response headers are in either
-// *Operation.ServerResponse.Header or (if a response was returned at
-// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
-// to check whether the returned error was because
-// http.StatusNotModified was returned.
-func (c *ProjectsZonesClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+// Do executes the "container.projects.zones.clusters.nodePools.list" call.
+// Exactly one of *ListNodePoolsResponse or error will be non-nil. Any
+// non-2xx status code is an error. Response headers are in either
+// *ListNodePoolsResponse.ServerResponse.Header or (if a response was
+// returned at all) in error.(*googleapi.Error).Header. Use
+// googleapi.IsNotModified to check whether the returned error was
+// because http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersNodePoolsListCall) Do(opts ...googleapi.CallOption) (*ListNodePoolsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -2369,7 +5445,7 @@ func (c *ProjectsZonesClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOpti
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &Operation{
+ ret := &ListNodePoolsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
@@ -2381,14 +5457,14 @@ func (c *ProjectsZonesClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOpti
}
return ret, nil
// {
- // "description": "Deletes a node pool from a cluster.",
- // "httpMethod": "DELETE",
- // "id": "container.projects.zones.clusters.nodePools.delete",
+ // "description": "Lists the node pools for a cluster.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ // "httpMethod": "GET",
+ // "id": "container.projects.zones.clusters.nodePools.list",
// "parameterOrder": [
// "projectId",
// "zone",
- // "clusterId",
- // "nodePoolId"
+ // "clusterId"
// ],
// "parameters": {
// "clusterId": {
@@ -2397,28 +5473,22 @@ func (c *ProjectsZonesClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOpti
// "required": true,
// "type": "string"
// },
- // "nodePoolId": {
- // "description": "The name of the node pool to delete.",
- // "location": "path",
- // "required": true,
- // "type": "string"
- // },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://developers.google.com/console/help/new/#projectnumber).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
// "response": {
- // "$ref": "Operation"
+ // "$ref": "ListNodePoolsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -2427,80 +5497,74 @@ func (c *ProjectsZonesClustersNodePoolsDeleteCall) Do(opts ...googleapi.CallOpti
}
-// method id "container.projects.zones.clusters.nodePools.get":
+// method id "container.projects.zones.clusters.nodePools.rollback":
-type ProjectsZonesClustersNodePoolsGetCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersNodePoolsRollbackCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ nodePoolId string
+ rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Get: Retrieves the node pool requested.
-func (r *ProjectsZonesClustersNodePoolsService) Get(projectId string, zone string, clusterId string, nodePoolId string) *ProjectsZonesClustersNodePoolsGetCall {
- c := &ProjectsZonesClustersNodePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Rollback: Roll back the previously Aborted or Failed NodePool
+// upgrade.
+// This will be an no-op if the last upgrade successfully completed.
+func (r *ProjectsZonesClustersNodePoolsService) Rollback(projectId string, zone string, clusterId string, nodePoolId string, rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest) *ProjectsZonesClustersNodePoolsRollbackCall {
+ c := &ProjectsZonesClustersNodePoolsRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
c.nodePoolId = nodePoolId
+ c.rollbacknodepoolupgraderequest = rollbacknodepoolupgraderequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesClustersNodePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsGetCall {
+func (c *ProjectsZonesClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsRollbackCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
-// IfNoneMatch sets the optional parameter which makes the operation
-// fail if the object's ETag matches the given value. This is useful for
-// getting updates only after the object has changed since the last
-// request. Use googleapi.IsNotModified to check whether the response
-// error from Do is the result of In-None-Match.
-func (c *ProjectsZonesClustersNodePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersNodePoolsGetCall {
- c.ifNoneMatch_ = entityTag
- return c
-}
-
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesClustersNodePoolsGetCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsGetCall {
+func (c *ProjectsZonesClustersNodePoolsRollbackCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsRollbackCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesClustersNodePoolsGetCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsRollbackCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersNodePoolsGetCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersNodePoolsRollbackCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollbacknodepoolupgraderequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
+ req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"projectId": c.projectId,
@@ -2511,14 +5575,14 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) doRequest(alt string) (*http.Res
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.nodePools.get" call.
-// Exactly one of *NodePool or error will be non-nil. Any non-2xx status
-// code is an error. Response headers are in either
-// *NodePool.ServerResponse.Header or (if a response was returned at
+// Do executes the "container.projects.zones.clusters.nodePools.rollback" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
-func (c *ProjectsZonesClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption) (*NodePool, error) {
+func (c *ProjectsZonesClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -2537,7 +5601,7 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &NodePool{
+ ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
@@ -2549,9 +5613,10 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption)
}
return ret, nil
// {
- // "description": "Retrieves the node pool requested.",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.nodePools.get",
+ // "description": "Roll back the previously Aborted or Failed NodePool upgrade.\nThis will be an no-op if the last upgrade successfully completed.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.nodePools.rollback",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -2560,33 +5625,36 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption)
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.",
+ // "description": "The name of the cluster to rollback.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "nodePoolId": {
- // "description": "The name of the node pool.",
+ // "description": "The name of the node pool to rollback.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}",
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ // "request": {
+ // "$ref": "RollbackNodePoolUpgradeRequest"
+ // },
// "response": {
- // "$ref": "NodePool"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -2595,95 +5663,90 @@ func (c *ProjectsZonesClustersNodePoolsGetCall) Do(opts ...googleapi.CallOption)
}
-// method id "container.projects.zones.clusters.nodePools.list":
+// method id "container.projects.zones.clusters.nodePools.setManagement":
-type ProjectsZonesClustersNodePoolsListCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersNodePoolsSetManagementCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ nodePoolId string
+ setnodepoolmanagementrequest *SetNodePoolManagementRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// List: Lists the node pools for a cluster.
-func (r *ProjectsZonesClustersNodePoolsService) List(projectId string, zone string, clusterId string) *ProjectsZonesClustersNodePoolsListCall {
- c := &ProjectsZonesClustersNodePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// SetManagement: Sets the NodeManagement options for a node pool.
+func (r *ProjectsZonesClustersNodePoolsService) SetManagement(projectId string, zone string, clusterId string, nodePoolId string, setnodepoolmanagementrequest *SetNodePoolManagementRequest) *ProjectsZonesClustersNodePoolsSetManagementCall {
+ c := &ProjectsZonesClustersNodePoolsSetManagementCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
+ c.nodePoolId = nodePoolId
+ c.setnodepoolmanagementrequest = setnodepoolmanagementrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesClustersNodePoolsListCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsListCall {
+func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsSetManagementCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
-// IfNoneMatch sets the optional parameter which makes the operation
-// fail if the object's ETag matches the given value. This is useful for
-// getting updates only after the object has changed since the last
-// request. Use googleapi.IsNotModified to check whether the response
-// error from Do is the result of In-None-Match.
-func (c *ProjectsZonesClustersNodePoolsListCall) IfNoneMatch(entityTag string) *ProjectsZonesClustersNodePoolsListCall {
- c.ifNoneMatch_ = entityTag
- return c
-}
-
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesClustersNodePoolsListCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsListCall {
+func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsSetManagementCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesClustersNodePoolsListCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersNodePoolsListCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersNodePoolsSetManagementCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setnodepoolmanagementrequest)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement")
urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
+ req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
- "projectId": c.projectId,
- "zone": c.zone,
- "clusterId": c.clusterId,
+ "projectId": c.projectId,
+ "zone": c.zone,
+ "clusterId": c.clusterId,
+ "nodePoolId": c.nodePoolId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.nodePools.list" call.
-// Exactly one of *ListNodePoolsResponse or error will be non-nil. Any
-// non-2xx status code is an error. Response headers are in either
-// *ListNodePoolsResponse.ServerResponse.Header or (if a response was
-// returned at all) in error.(*googleapi.Error).Header. Use
-// googleapi.IsNotModified to check whether the returned error was
-// because http.StatusNotModified was returned.
-func (c *ProjectsZonesClustersNodePoolsListCall) Do(opts ...googleapi.CallOption) (*ListNodePoolsResponse, error) {
+// Do executes the "container.projects.zones.clusters.nodePools.setManagement" call.
+// Exactly one of *Operation or error will be non-nil. Any non-2xx
+// status code is an error. Response headers are in either
+// *Operation.ServerResponse.Header or (if a response was returned at
+// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
+// to check whether the returned error was because
+// http.StatusNotModified was returned.
+func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -2702,7 +5765,7 @@ func (c *ProjectsZonesClustersNodePoolsListCall) Do(opts ...googleapi.CallOption
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
- ret := &ListNodePoolsResponse{
+ ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
@@ -2714,37 +5777,48 @@ func (c *ProjectsZonesClustersNodePoolsListCall) Do(opts ...googleapi.CallOption
}
return ret, nil
// {
- // "description": "Lists the node pools for a cluster.",
- // "httpMethod": "GET",
- // "id": "container.projects.zones.clusters.nodePools.list",
+ // "description": "Sets the NodeManagement options for a node pool.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ // "httpMethod": "POST",
+ // "id": "container.projects.zones.clusters.nodePools.setManagement",
// "parameterOrder": [
// "projectId",
// "zone",
- // "clusterId"
+ // "clusterId",
+ // "nodePoolId"
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster.",
+ // "description": "The name of the cluster to update.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "nodePoolId": {
+ // "description": "The name of the node pool to update.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools",
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ // "request": {
+ // "$ref": "SetNodePoolManagementRequest"
+ // },
// "response": {
- // "$ref": "ListNodePoolsResponse"
+ // "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform"
@@ -2753,37 +5827,35 @@ func (c *ProjectsZonesClustersNodePoolsListCall) Do(opts ...googleapi.CallOption
}
-// method id "container.projects.zones.clusters.nodePools.rollback":
+// method id "container.projects.zones.clusters.nodePools.setSize":
-type ProjectsZonesClustersNodePoolsRollbackCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersNodePoolsSetSizeCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ nodePoolId string
+ setnodepoolsizerequest *SetNodePoolSizeRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// Rollback: Roll back the previously Aborted or Failed NodePool
-// upgrade. This will be an no-op if the last upgrade successfully
-// completed.
-func (r *ProjectsZonesClustersNodePoolsService) Rollback(projectId string, zone string, clusterId string, nodePoolId string, rollbacknodepoolupgraderequest *RollbackNodePoolUpgradeRequest) *ProjectsZonesClustersNodePoolsRollbackCall {
- c := &ProjectsZonesClustersNodePoolsRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// SetSize: Sets the size of a specific node pool.
+func (r *ProjectsZonesClustersNodePoolsService) SetSize(projectId string, zone string, clusterId string, nodePoolId string, setnodepoolsizerequest *SetNodePoolSizeRequest) *ProjectsZonesClustersNodePoolsSetSizeCall {
+ c := &ProjectsZonesClustersNodePoolsSetSizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
c.nodePoolId = nodePoolId
- c.rollbacknodepoolupgraderequest = rollbacknodepoolupgraderequest
+ c.setnodepoolsizerequest = setnodepoolsizerequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsRollbackCall {
+func (c *ProjectsZonesClustersNodePoolsSetSizeCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsSetSizeCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -2791,35 +5863,34 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) Fields(s ...googleapi.Field
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesClustersNodePoolsRollbackCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsRollbackCall {
+func (c *ProjectsZonesClustersNodePoolsSetSizeCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsSetSizeCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesClustersNodePoolsRollbackCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsSetSizeCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersNodePoolsRollbackCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersNodePoolsSetSizeCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollbacknodepoolupgraderequest)
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.setnodepoolsizerequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -2832,14 +5903,14 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) doRequest(alt string) (*htt
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.nodePools.rollback" call.
+// Do executes the "container.projects.zones.clusters.nodePools.setSize" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
-func (c *ProjectsZonesClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsZonesClustersNodePoolsSetSizeCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -2870,9 +5941,10 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOp
}
return ret, nil
// {
- // "description": "Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed.",
+ // "description": "Sets the size of a specific node pool.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.nodePools.rollback",
+ // "id": "container.projects.zones.clusters.nodePools.setSize",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -2881,33 +5953,33 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOp
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to rollback.",
+ // "description": "The name of the cluster to update.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "nodePoolId": {
- // "description": "The name of the node pool to rollback.",
+ // "description": "The name of the node pool to update.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback",
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize",
// "request": {
- // "$ref": "RollbackNodePoolUpgradeRequest"
+ // "$ref": "SetNodePoolSizeRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -2919,35 +5991,36 @@ func (c *ProjectsZonesClustersNodePoolsRollbackCall) Do(opts ...googleapi.CallOp
}
-// method id "container.projects.zones.clusters.nodePools.setManagement":
+// method id "container.projects.zones.clusters.nodePools.update":
-type ProjectsZonesClustersNodePoolsSetManagementCall struct {
- s *Service
- projectId string
- zone string
- clusterId string
- nodePoolId string
- setnodepoolmanagementrequest *SetNodePoolManagementRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
+type ProjectsZonesClustersNodePoolsUpdateCall struct {
+ s *Service
+ projectId string
+ zone string
+ clusterId string
+ nodePoolId string
+ updatenodepoolrequest *UpdateNodePoolRequest
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
}
-// SetManagement: Sets the NodeManagement options for a node pool.
-func (r *ProjectsZonesClustersNodePoolsService) SetManagement(projectId string, zone string, clusterId string, nodePoolId string, setnodepoolmanagementrequest *SetNodePoolManagementRequest) *ProjectsZonesClustersNodePoolsSetManagementCall {
- c := &ProjectsZonesClustersNodePoolsSetManagementCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+// Update: Updates the version and/or image type of a specific node
+// pool.
+func (r *ProjectsZonesClustersNodePoolsService) Update(projectId string, zone string, clusterId string, nodePoolId string, updatenodepoolrequest *UpdateNodePoolRequest) *ProjectsZonesClustersNodePoolsUpdateCall {
+ c := &ProjectsZonesClustersNodePoolsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.projectId = projectId
c.zone = zone
c.clusterId = clusterId
c.nodePoolId = nodePoolId
- c.setnodepoolmanagementrequest = setnodepoolmanagementrequest
+ c.updatenodepoolrequest = updatenodepoolrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
-func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsSetManagementCall {
+func (c *ProjectsZonesClustersNodePoolsUpdateCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersNodePoolsUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
@@ -2955,35 +6028,34 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Fields(s ...googleapi.
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
-func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsSetManagementCall {
+func (c *ProjectsZonesClustersNodePoolsUpdateCall) Context(ctx context.Context) *ProjectsZonesClustersNodePoolsUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
-func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Header() http.Header {
+func (c *ProjectsZonesClustersNodePoolsUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
-func (c *ProjectsZonesClustersNodePoolsSetManagementCall) doRequest(alt string) (*http.Response, error) {
+func (c *ProjectsZonesClustersNodePoolsUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.setnodepoolmanagementrequest)
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.updatenodepoolrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement")
+ urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@@ -2996,14 +6068,14 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) doRequest(alt string)
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
-// Do executes the "container.projects.zones.clusters.nodePools.setManagement" call.
+// Do executes the "container.projects.zones.clusters.nodePools.update" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
-func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
+func (c *ProjectsZonesClustersNodePoolsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
@@ -3034,9 +6106,10 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Do(opts ...googleapi.C
}
return ret, nil
// {
- // "description": "Sets the NodeManagement options for a node pool.",
+ // "description": "Updates the version and/or image type of a specific node pool.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update",
// "httpMethod": "POST",
- // "id": "container.projects.zones.clusters.nodePools.setManagement",
+ // "id": "container.projects.zones.clusters.nodePools.update",
// "parameterOrder": [
// "projectId",
// "zone",
@@ -3045,33 +6118,33 @@ func (c *ProjectsZonesClustersNodePoolsSetManagementCall) Do(opts ...googleapi.C
// ],
// "parameters": {
// "clusterId": {
- // "description": "The name of the cluster to update.",
+ // "description": "The name of the cluster to upgrade.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "nodePoolId": {
- // "description": "The name of the node pool to update.",
+ // "description": "The name of the node pool to upgrade.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
- // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement",
+ // "path": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update",
// "request": {
- // "$ref": "SetNodePoolManagementRequest"
+ // "$ref": "UpdateNodePoolRequest"
// },
// "response": {
// "$ref": "Operation"
@@ -3137,7 +6210,6 @@ func (c *ProjectsZonesOperationsCancelCall) doRequest(alt string) (*http.Respons
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
if err != nil {
@@ -3196,6 +6268,7 @@ func (c *ProjectsZonesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E
return ret, nil
// {
// "description": "Cancels the specified operation.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel",
// "httpMethod": "POST",
// "id": "container.projects.zones.operations.cancel",
// "parameterOrder": [
@@ -3211,13 +6284,13 @@ func (c *ProjectsZonesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*E
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the operation resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the operation resides.",
// "location": "path",
// "required": true,
// "type": "string"
@@ -3300,7 +6373,6 @@ func (c *ProjectsZonesOperationsGetCall) doRequest(alt string) (*http.Response,
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
@@ -3357,6 +6429,7 @@ func (c *ProjectsZonesOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper
return ret, nil
// {
// "description": "Gets the specified operation.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/operations/{operationId}",
// "httpMethod": "GET",
// "id": "container.projects.zones.operations.get",
// "parameterOrder": [
@@ -3372,13 +6445,13 @@ func (c *ProjectsZonesOperationsGetCall) Do(opts ...googleapi.CallOption) (*Oper
// "type": "string"
// },
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides.",
+ // "description": "The name of the Google Compute Engine\n[zone](/compute/docs/zones#available) in which the cluster\nresides.",
// "location": "path",
// "required": true,
// "type": "string"
@@ -3457,7 +6530,6 @@ func (c *ProjectsZonesOperationsListCall) doRequest(alt string) (*http.Response,
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
- reqHeaders.Set("x-goog-api-client", c.s.clientHeader())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
@@ -3513,6 +6585,7 @@ func (c *ProjectsZonesOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis
return ret, nil
// {
// "description": "Lists all operations in a project in a specific zone or all zones.",
+ // "flatPath": "v1/projects/{projectId}/zones/{zone}/operations",
// "httpMethod": "GET",
// "id": "container.projects.zones.operations.list",
// "parameterOrder": [
@@ -3521,13 +6594,13 @@ func (c *ProjectsZonesOperationsListCall) Do(opts ...googleapi.CallOption) (*Lis
// ],
// "parameters": {
// "projectId": {
- // "description": "The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).",
+ // "description": "The Google Developers Console [project ID or project\nnumber](https://support.google.com/cloud/answer/6158840).",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "zone": {
- // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for, or `-` for all zones.",
+ // "description": "The name of the Google Compute Engine [zone](/compute/docs/zones#available)\nto return operations for, or `-` for all zones.",
// "location": "path",
// "required": true,
// "type": "string"
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 76c84634da8..1ffcac87cf2 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -808,10 +808,10 @@
"revisionTime": "2017-06-08T21:27:40Z"
},
{
- "checksumSHA1": "lAMqZyc46cU5WaRuw4mVHFXpvps=",
+ "checksumSHA1": "Ny63yO2/yvMFQltnIXU3gzim69M=",
"path": "google.golang.org/api/container/v1",
- "revision": "64485db7e8c8be51e572801d06cdbcfadd3546c1",
- "revisionTime": "2017-02-23T23:41:36Z"
+ "revision": "66dba45b06824cbfe030e696b156d562994531e1",
+ "revisionTime": "2017-07-22T12:18:25Z"
},
{
"checksumSHA1": "JYl35km48fLrIx7YUtzcgd4J7Rk=",